-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.d.ts
98 lines (87 loc) · 2.28 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
declare module 'skyhelper-networth' {
export interface NetworthOptions {
v2Endpoint?: boolean;
cache?: boolean;
onlyNetworth?: boolean;
prices?: object;
returnItemData?: boolean;
museumData?: object;
}
export interface PreDecodedNetworthOptions {
v2Endpoint?: boolean;
cache?: boolean;
onlyNetworth?: boolean;
prices?: object;
returnItemData?: boolean;
}
export interface ItemNetworthOptions {
cache?: boolean;
prices?: object;
returnItemData?: boolean;
}
export interface ItemCalculation {
id: string;
type: string;
price: number;
count: number;
star?: number;
shards?: number;
}
export interface Item {
uuid?: string | null;
uniqueId?: string;
type?: string;
exp?: number;
active?: boolean;
tier?: string;
heldItem?: string | null;
candyUsed?: number;
skin?: string | null;
level?: number;
xpMax?: number;
name: string;
loreName?: string;
id: string;
price: number;
base: number;
calculation: ItemCalculation[];
count: number;
soulbound: boolean;
item?: object;
}
export interface Category {
total: number;
unsoulboundTotal: number;
items?: Item[];
}
export interface Categories {
armor: Category;
equipment: Category;
wardrobe: Category;
inventory: Category;
enderchest: Category;
accessories: Category;
personal_vault: Category;
fishing_bag: Category;
potion_bag: Category;
candy_inventory: Category;
carvinal_mask_inventory: Category;
storage: Category;
museum: Category;
sacks: Category;
essence: Category;
pets: Category;
}
export interface NetworthResult {
noInventory: boolean;
networth: number;
unsoulboundNetworth: number;
purse: number;
bank: number;
types: Categories;
}
export function getNetworth(profileData: object, bankBalance: number, options?: NetworthOptions): Promise<NetworthResult>;
export function getPreDecodedNetworth(profileData: object, items: object, bankBalance: number, options?: PreDecodedNetworthOptions): Promise<NetworthResult>;
export function getItemNetworth(item: object, options?: ItemNetworthOptions): Promise<Item>;
export function getPrices(cache?: boolean): Promise<object>;
}