2023-06-14 02:26:19 +02:00
|
|
|
export interface IPurchaseRequest {
|
|
|
|
PurchaseParams: IPurchaseParams;
|
|
|
|
buildLabel: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPurchaseParams {
|
|
|
|
Source: number;
|
2024-12-22 20:35:08 +01:00
|
|
|
SourceId?: string; // for Source 7
|
2023-06-14 02:26:19 +02:00
|
|
|
StoreItem: string;
|
|
|
|
StorePage: string;
|
|
|
|
SearchTerm: string;
|
|
|
|
CurrentLocation: string;
|
|
|
|
Quantity: number;
|
|
|
|
UsePremium: boolean;
|
|
|
|
ExpectedPrice: number;
|
|
|
|
}
|
|
|
|
|
2024-06-20 16:35:24 +02:00
|
|
|
export type IInventoryChanges = Record<string, IBinChanges | object[]>;
|
2023-06-14 02:26:19 +02:00
|
|
|
|
|
|
|
export type IBinChanges = {
|
|
|
|
count: number;
|
|
|
|
platinum: number;
|
|
|
|
Slots: number;
|
2023-12-28 16:24:52 +01:00
|
|
|
Extra?: number;
|
2023-06-14 02:26:19 +02:00
|
|
|
};
|
|
|
|
|
2023-12-28 16:24:52 +01:00
|
|
|
export type SlotPurchaseName =
|
|
|
|
| "SuitSlotItem"
|
|
|
|
| "TwoSentinelSlotItem"
|
|
|
|
| "TwoWeaponSlotItem"
|
|
|
|
| "SpaceSuitSlotItem"
|
|
|
|
| "TwoSpaceWeaponSlotItem"
|
|
|
|
| "MechSlotItem"
|
|
|
|
| "TwoOperatorWeaponSlotItem"
|
|
|
|
| "RandomModSlotItem"
|
|
|
|
| "TwoCrewShipSalvageSlotItem"
|
|
|
|
| "CrewMemberSlotItem";
|
|
|
|
|
|
|
|
export type SlotNames =
|
|
|
|
| "SuitBin"
|
|
|
|
| "WeaponBin"
|
|
|
|
| "MechBin"
|
|
|
|
| "PveBonusLoadoutBin"
|
|
|
|
| "SentinelBin"
|
|
|
|
| "SpaceSuitBin"
|
|
|
|
| "SpaceWeaponBin"
|
|
|
|
| "OperatorAmpBin"
|
|
|
|
| "RandomModBin"
|
|
|
|
| "CrewShipSalvageBin"
|
|
|
|
| "CrewMemberBin";
|
|
|
|
|
|
|
|
export type SlotPurchase = {
|
|
|
|
[P in SlotPurchaseName]: { name: SlotNames; slotsPerPurchase: number };
|
|
|
|
};
|