-
Notifications
You must be signed in to change notification settings - Fork 7
/
types.d.ts
68 lines (60 loc) · 1.13 KB
/
types.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
declare global {
export type Player = {
username: string;
image_url?: string;
items?: number;
wealth_index?: number;
zone?: string;
};
export type FullLeaderboardResponse = {
leaderboard: {
players: Player[];
};
};
export type RecipeMeta = {
title: string;
description: string;
};
export type RecipesResponse = {
recipes: RecipeMeta[];
};
type Population = {
[key: string]: number;
};
type Item = {
createdAt?: Date;
name: string;
number?: number;
rarity: number;
zone?: string;
count?: number;
cooked?: boolean;
};
interface MetaResponse {
meta: {
latestSpawned: Item;
mostSpawned: Item;
leastSpawned: Item;
population: Population;
latestClaim: {
player: Player;
item: Item;
};
latestCook: {
player: Player;
item: Item;
};
};
}
interface InventoryResponse {
inventory: {
total: number;
items: Item[];
location: string;
spawn_date: Date | null;
players_in_zone: number;
wealth_index: number;
};
}
}
export {};