forked from OpenWF/SpaceNinjaServer
44 lines
1023 B
TypeScript
44 lines
1023 B
TypeScript
|
/* eslint-disable prettier/prettier */
|
||
|
import { ISuitDatabase } from "@/src/types/inventoryTypes/SuitTypes";
|
||
|
import { IWeaponResponse } from "@/src/types/inventoryTypes/weaponTypes";
|
||
|
|
||
|
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 interface IPurchaseResponse {
|
||
|
InventoryChanges: {
|
||
|
SuitBin?: IBinChanges;
|
||
|
WeaponBin?: IBinChanges;
|
||
|
Suits?: ISuitDatabase[];
|
||
|
LongGuns?: IWeaponResponse[];
|
||
|
Pistols?: IWeaponResponse[];
|
||
|
Melee?: IWeaponResponse[];
|
||
|
PremiumCredits?: number;
|
||
|
RegularCredits?: number;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export type IBinChanges = {
|
||
|
count: number;
|
||
|
platinum: number;
|
||
|
Slots: number;
|
||
|
};
|
||
|
|
||
|
export enum SlotType {
|
||
|
SUIT = "SuitBin",
|
||
|
WEAPON = "WeaponBin"
|
||
|
}
|