SpaceNinjaServer/src/types/purchaseTypes.ts
7f8ddd a931863249
Fix interface names, +genericUpdate (#51)
Co-authored-by: nk <nk@fbi.rocks>
Co-authored-by: Ordis <134585663+OrdisPrime@users.noreply.github.com>
2023-09-05 14:37:30 +02:00

45 lines
1.1 KiB
TypeScript

import { ISuitDatabase } from "@/src/types/inventoryTypes/SuitTypes";
import { IFlavourItem } from "@/src/types/inventoryTypes/inventoryTypes";
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;
FlavourItems?: IFlavourItem[];
};
}
export type IBinChanges = {
count: number;
platinum: number;
Slots: number;
};
export enum SlotType {
SUIT = "SuitBin",
WEAPON = "WeaponBin"
}