SpaceNinjaServerOnlyGit/src/types/purchaseTypes.ts
2024-09-06 02:16:27 +03:00

33 lines
819 B
TypeScript

export interface IPurchaseRequest {
PurchaseParams: IPurchaseParams;
buildLabel: string;
}
export interface IPurchaseParams {
Source: number;
StoreItem: string;
StorePage: string;
SearchTerm: string;
CurrentLocation: string;
Quantity: number;
UsePremium: boolean;
ExpectedPrice: number;
}
export type IInventoryChanges = Record<string, IBinChanges | object[]>;
export type IBinChanges = {
count: number;
platinum: number;
Slots: number;
Extra?: number;
};
export type SlotPurchaseName = "SuitSlotItem" | "TwoSentinelSlotItem" | "TwoWeaponSlotItem";
export type SlotNames = "SuitBin" | "WeaponBin" | "MechBin" | "PveBonusLoadoutBin" | "SentinelBin";
export type SlotPurchase = {
[P in SlotPurchaseName]: { name: SlotNames; slotsPerPurchase: number };
};