-
Notifications
You must be signed in to change notification settings - Fork 3
/
Types.ts
212 lines (173 loc) Β· 3 KB
/
Types.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
export interface WarframeMarketRoot {
payload: {
items: Array<WarframeMarketItem>;
};
}
export interface WarframeMarketItem {
/**
* WFM Item ID
*/
id: string;
/**
* Url name for querying WFM
*/
url_name: string;
/**
* Thumbnail URL relative to wfm api base
*/
thumb: string;
/**
* Item Name
*/
item_name: string;
}
export interface WFCDRelic {
/**
* Relic Tier (Axi, Neo, etc.)
*/
tier: string;
/**
* Relic Name (A1, A10, etc.)
*/
relicName: string;
/**
* Relic Refinement state
*/
state: 'Intact' | 'Exceptional' | 'Flawless' | 'Radiant';
/**
* Relic Rewards
*/
rewards: Array<WFCDRelicReward>;
/**
* Internal WFCD id
*/
_id: string;
}
export interface WFCDRelicReward {
/**
* Dropped Item name
*/
itemName: string;
/**
* Dropchance Rarity (Uncommon/Rare ?)
*/
rarity: 'Uncommon' | 'Rare';
/**
* Actual Dropchance in %
*/
chance: number;
/**
* Internal ID
*/
_id: string;
}
export interface WFCDItem {
/**
* Item Name
*/
name: string;
/** Unique identifying name */
uniqueName: string;
/**
* Item Drop Location
*/
drops?: Array<WFCDItemDropLocation>;
}
export interface WFCDItemDropLocation {
/**
* Dropchance in %
*/
chance: number;
/**
* Mission location
*/
location: string;
/**
* Drop rarity
*/
rarity: string;
/**
* Relic Type
*/
type: string;
}
export interface TitaniaRelic {
/**
* Relic Combined Name (Ex: Axi A1)
*/
name: string;
/**
* Relic Rewards when opened
*/
rewards: Array<TitaniaRelicReward>;
/**
* Drop Locations for the relics
*/
locations: Array<TitaniaRelicLocation>;
/**
* Warframe Market Information
* undefined for untradable
*/
warframeMarket?: TitaniaWFMInfo;
/**
* Relic Vault Information
*/
vaultInfo: TitaniaRelicVaultedInfo;
/** unique name for corresponding warframe-items Item */
uniqueName: string;
}
export interface TitaniaRelicReward {
/**
* Relic Rarity (Uncommon,Rare ?)
*/
rarity: 'Uncommon' | 'Rare';
/**
* Reward Drop Chance in %
*/
chance: number;
/**
* Item Information
*/
item: TitaniaRelicRewardItem;
}
export interface TitaniaRelicRewardItem {
/**
* Item Name
*/
name: string;
/** unique name for corresponding warframe-items Item */
uniqueName: string;
/**
* WarframeMarket Info
*/
warframeMarket?: TitaniaWFMInfo;
}
export type Rarity = 'Uncommon' | 'Rare' | 'Legendary' | 'Common';
export interface TitaniaRelicLocation {
/** Location Info $planet-$node (Ex: Eris - Phalan) */
location: string;
/**
* Rarity (Uncommon, Rare ?)
*/
rarity: Rarity;
/**
* Dropchance in %
*/
chance: number;
}
export interface TitaniaWFMInfo {
/**
* Warframe Market ID
*/
id: string;
/**
* Warframe market URL parameter
*/
urlName: string;
}
export interface TitaniaRelicVaultedInfo {
/**
* If the relic is vaulted
*/
vaulted: boolean;
}