@wise-old-man/utils 1.0.28 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2135 -0
- package/dist/index.js +2544 -0
- package/package.json +18 -14
- package/dist/lib/competitions.d.ts +0 -33
- package/dist/lib/competitions.js +0 -51
- package/dist/lib/competitions.js.map +0 -1
- package/dist/lib/countries.d.ts +0 -17
- package/dist/lib/countries.js +0 -278
- package/dist/lib/countries.js.map +0 -1
- package/dist/lib/experience.d.ts +0 -9
- package/dist/lib/experience.js +0 -69
- package/dist/lib/experience.js.map +0 -1
- package/dist/lib/groups.d.ts +0 -1622
- package/dist/lib/groups.js +0 -564
- package/dist/lib/groups.js.map +0 -1
- package/dist/lib/index.d.ts +0 -9
- package/dist/lib/index.js +0 -22
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/metrics.d.ts +0 -22848
- package/dist/lib/metrics.js +0 -544
- package/dist/lib/metrics.js.map +0 -1
- package/dist/lib/numbers.d.ts +0 -2
- package/dist/lib/numbers.js +0 -8
- package/dist/lib/numbers.js.map +0 -1
- package/dist/lib/periods.d.ts +0 -37
- package/dist/lib/periods.js +0 -66
- package/dist/lib/periods.js.map +0 -1
- package/dist/lib/players.d.ts +0 -59
- package/dist/lib/players.js +0 -72
- package/dist/lib/players.js.map +0 -1
- package/dist/lib/strings.d.ts +0 -3
- package/dist/lib/strings.js +0 -32
- package/dist/lib/strings.js.map +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2135 @@
|
|
|
1
|
+
export type Prisma_Base_Achievement = {
|
|
2
|
+
playerId: number
|
|
3
|
+
name: string
|
|
4
|
+
metric: Metric
|
|
5
|
+
threshold: bigint
|
|
6
|
+
createdAt: Date
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export type Competition = {
|
|
11
|
+
id: number
|
|
12
|
+
title: string
|
|
13
|
+
metric: Metric
|
|
14
|
+
type: CompetitionType
|
|
15
|
+
startsAt: Date
|
|
16
|
+
endsAt: Date
|
|
17
|
+
groupId: number | null
|
|
18
|
+
score: number
|
|
19
|
+
verificationHash: string
|
|
20
|
+
createdAt: Date | null
|
|
21
|
+
updatedAt: Date | null
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export type Prisma_Base_Delta = {
|
|
26
|
+
id: number
|
|
27
|
+
playerId: number
|
|
28
|
+
period: Period
|
|
29
|
+
startedAt: Date
|
|
30
|
+
endedAt: Date
|
|
31
|
+
updatedAt: Date | null
|
|
32
|
+
overall: bigint
|
|
33
|
+
attack: number
|
|
34
|
+
defence: number
|
|
35
|
+
strength: number
|
|
36
|
+
hitpoints: number
|
|
37
|
+
ranged: number
|
|
38
|
+
prayer: number
|
|
39
|
+
magic: number
|
|
40
|
+
cooking: number
|
|
41
|
+
woodcutting: number
|
|
42
|
+
fletching: number
|
|
43
|
+
fishing: number
|
|
44
|
+
firemaking: number
|
|
45
|
+
crafting: number
|
|
46
|
+
smithing: number
|
|
47
|
+
mining: number
|
|
48
|
+
herblore: number
|
|
49
|
+
agility: number
|
|
50
|
+
thieving: number
|
|
51
|
+
slayer: number
|
|
52
|
+
farming: number
|
|
53
|
+
runecrafting: number
|
|
54
|
+
hunter: number
|
|
55
|
+
construction: number
|
|
56
|
+
abyssal_sire: number
|
|
57
|
+
alchemical_hydra: number
|
|
58
|
+
barrows_chests: number
|
|
59
|
+
bryophyta: number
|
|
60
|
+
callisto: number
|
|
61
|
+
cerberus: number
|
|
62
|
+
chambers_of_xeric: number
|
|
63
|
+
chambers_of_xeric_challenge_mode: number
|
|
64
|
+
chaos_elemental: number
|
|
65
|
+
chaos_fanatic: number
|
|
66
|
+
commander_zilyana: number
|
|
67
|
+
corporeal_beast: number
|
|
68
|
+
crazy_archaeologist: number
|
|
69
|
+
dagannoth_prime: number
|
|
70
|
+
dagannoth_rex: number
|
|
71
|
+
dagannoth_supreme: number
|
|
72
|
+
deranged_archaeologist: number
|
|
73
|
+
general_graardor: number
|
|
74
|
+
giant_mole: number
|
|
75
|
+
grotesque_guardians: number
|
|
76
|
+
hespori: number
|
|
77
|
+
kalphite_queen: number
|
|
78
|
+
king_black_dragon: number
|
|
79
|
+
kraken: number
|
|
80
|
+
kreearra: number
|
|
81
|
+
kril_tsutsaroth: number
|
|
82
|
+
mimic: number
|
|
83
|
+
nex: number
|
|
84
|
+
nightmare: number
|
|
85
|
+
phosanis_nightmare: number
|
|
86
|
+
obor: number
|
|
87
|
+
sarachnis: number
|
|
88
|
+
scorpia: number
|
|
89
|
+
skotizo: number
|
|
90
|
+
tempoross: number
|
|
91
|
+
the_gauntlet: number
|
|
92
|
+
the_corrupted_gauntlet: number
|
|
93
|
+
theatre_of_blood: number
|
|
94
|
+
theatre_of_blood_hard_mode: number
|
|
95
|
+
thermonuclear_smoke_devil: number
|
|
96
|
+
tombs_of_amascut: number
|
|
97
|
+
tombs_of_amascut_expert: number
|
|
98
|
+
tzkal_zuk: number
|
|
99
|
+
tztok_jad: number
|
|
100
|
+
venenatis: number
|
|
101
|
+
vetion: number
|
|
102
|
+
vorkath: number
|
|
103
|
+
wintertodt: number
|
|
104
|
+
zalcano: number
|
|
105
|
+
zulrah: number
|
|
106
|
+
league_points: number
|
|
107
|
+
bounty_hunter_hunter: number
|
|
108
|
+
bounty_hunter_rogue: number
|
|
109
|
+
clue_scrolls_all: number
|
|
110
|
+
clue_scrolls_beginner: number
|
|
111
|
+
clue_scrolls_easy: number
|
|
112
|
+
clue_scrolls_medium: number
|
|
113
|
+
clue_scrolls_hard: number
|
|
114
|
+
clue_scrolls_elite: number
|
|
115
|
+
clue_scrolls_master: number
|
|
116
|
+
last_man_standing: number
|
|
117
|
+
pvp_arena: number
|
|
118
|
+
soul_wars_zeal: number
|
|
119
|
+
guardians_of_the_rift: number
|
|
120
|
+
ehp: number
|
|
121
|
+
ehb: number
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
export type Group = {
|
|
126
|
+
id: number
|
|
127
|
+
name: string
|
|
128
|
+
clanChat: string | null
|
|
129
|
+
description: string | null
|
|
130
|
+
homeworld: number | null
|
|
131
|
+
verified: boolean
|
|
132
|
+
score: number
|
|
133
|
+
verificationHash: string
|
|
134
|
+
createdAt: Date
|
|
135
|
+
updatedAt: Date
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
export type Membership = {
|
|
140
|
+
playerId: number
|
|
141
|
+
groupId: number
|
|
142
|
+
role: GroupRole
|
|
143
|
+
createdAt: Date
|
|
144
|
+
updatedAt: Date
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
export type NameChange = {
|
|
149
|
+
id: number
|
|
150
|
+
playerId: number
|
|
151
|
+
oldName: string
|
|
152
|
+
newName: string
|
|
153
|
+
status: NameChangeStatus
|
|
154
|
+
resolvedAt: Date | null
|
|
155
|
+
updatedAt: Date
|
|
156
|
+
createdAt: Date
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
export type Participation = {
|
|
161
|
+
playerId: number
|
|
162
|
+
competitionId: number
|
|
163
|
+
startSnapshotId: number | null
|
|
164
|
+
endSnapshotId: number | null
|
|
165
|
+
teamName: string | null
|
|
166
|
+
createdAt: Date
|
|
167
|
+
updatedAt: Date
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
export type Prisma_Base_Player = {
|
|
172
|
+
id: number
|
|
173
|
+
username: string
|
|
174
|
+
displayName: string
|
|
175
|
+
type: PlayerType
|
|
176
|
+
build: PlayerBuild
|
|
177
|
+
country: Country | null
|
|
178
|
+
flagged: boolean
|
|
179
|
+
exp: bigint
|
|
180
|
+
ehp: number
|
|
181
|
+
ehb: number
|
|
182
|
+
ttm: number
|
|
183
|
+
tt200m: number
|
|
184
|
+
registeredAt: Date
|
|
185
|
+
updatedAt: Date | null
|
|
186
|
+
lastChangedAt: Date | null
|
|
187
|
+
lastImportedAt: Date | null
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
export type Prisma_Base_Record = {
|
|
192
|
+
id: number
|
|
193
|
+
playerId: number
|
|
194
|
+
period: Period
|
|
195
|
+
metric: Metric
|
|
196
|
+
value: bigint
|
|
197
|
+
updatedAt: Date
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
export type Prisma_Base_Snapshot = {
|
|
202
|
+
id: number
|
|
203
|
+
playerId: number
|
|
204
|
+
importedAt: Date | null
|
|
205
|
+
createdAt: Date
|
|
206
|
+
overallRank: number
|
|
207
|
+
overallExperience: bigint
|
|
208
|
+
attackRank: number
|
|
209
|
+
attackExperience: number
|
|
210
|
+
defenceRank: number
|
|
211
|
+
defenceExperience: number
|
|
212
|
+
strengthRank: number
|
|
213
|
+
strengthExperience: number
|
|
214
|
+
hitpointsRank: number
|
|
215
|
+
hitpointsExperience: number
|
|
216
|
+
rangedRank: number
|
|
217
|
+
rangedExperience: number
|
|
218
|
+
prayerRank: number
|
|
219
|
+
prayerExperience: number
|
|
220
|
+
magicRank: number
|
|
221
|
+
magicExperience: number
|
|
222
|
+
cookingRank: number
|
|
223
|
+
cookingExperience: number
|
|
224
|
+
woodcuttingRank: number
|
|
225
|
+
woodcuttingExperience: number
|
|
226
|
+
fletchingRank: number
|
|
227
|
+
fletchingExperience: number
|
|
228
|
+
fishingRank: number
|
|
229
|
+
fishingExperience: number
|
|
230
|
+
firemakingRank: number
|
|
231
|
+
firemakingExperience: number
|
|
232
|
+
craftingRank: number
|
|
233
|
+
craftingExperience: number
|
|
234
|
+
smithingRank: number
|
|
235
|
+
smithingExperience: number
|
|
236
|
+
miningRank: number
|
|
237
|
+
miningExperience: number
|
|
238
|
+
herbloreRank: number
|
|
239
|
+
herbloreExperience: number
|
|
240
|
+
agilityRank: number
|
|
241
|
+
agilityExperience: number
|
|
242
|
+
thievingRank: number
|
|
243
|
+
thievingExperience: number
|
|
244
|
+
slayerRank: number
|
|
245
|
+
slayerExperience: number
|
|
246
|
+
farmingRank: number
|
|
247
|
+
farmingExperience: number
|
|
248
|
+
runecraftingRank: number
|
|
249
|
+
runecraftingExperience: number
|
|
250
|
+
hunterRank: number
|
|
251
|
+
hunterExperience: number
|
|
252
|
+
constructionRank: number
|
|
253
|
+
constructionExperience: number
|
|
254
|
+
league_pointsRank: number
|
|
255
|
+
league_pointsScore: number
|
|
256
|
+
bounty_hunter_hunterRank: number
|
|
257
|
+
bounty_hunter_hunterScore: number
|
|
258
|
+
bounty_hunter_rogueScore: number
|
|
259
|
+
clue_scrolls_allRank: number
|
|
260
|
+
bounty_hunter_rogueRank: number
|
|
261
|
+
clue_scrolls_allScore: number
|
|
262
|
+
clue_scrolls_beginnerRank: number
|
|
263
|
+
clue_scrolls_easyRank: number
|
|
264
|
+
clue_scrolls_beginnerScore: number
|
|
265
|
+
clue_scrolls_easyScore: number
|
|
266
|
+
clue_scrolls_mediumRank: number
|
|
267
|
+
clue_scrolls_mediumScore: number
|
|
268
|
+
clue_scrolls_hardRank: number
|
|
269
|
+
clue_scrolls_hardScore: number
|
|
270
|
+
clue_scrolls_eliteRank: number
|
|
271
|
+
clue_scrolls_eliteScore: number
|
|
272
|
+
clue_scrolls_masterRank: number
|
|
273
|
+
clue_scrolls_masterScore: number
|
|
274
|
+
last_man_standingRank: number
|
|
275
|
+
last_man_standingScore: number
|
|
276
|
+
pvp_arenaRank: number
|
|
277
|
+
pvp_arenaScore: number
|
|
278
|
+
abyssal_sireRank: number
|
|
279
|
+
abyssal_sireKills: number
|
|
280
|
+
alchemical_hydraRank: number
|
|
281
|
+
alchemical_hydraKills: number
|
|
282
|
+
barrows_chestsRank: number
|
|
283
|
+
barrows_chestsKills: number
|
|
284
|
+
bryophytaKills: number
|
|
285
|
+
bryophytaRank: number
|
|
286
|
+
cerberusKills: number
|
|
287
|
+
chambers_of_xericRank: number
|
|
288
|
+
cerberusRank: number
|
|
289
|
+
callistoRank: number
|
|
290
|
+
callistoKills: number
|
|
291
|
+
chambers_of_xericKills: number
|
|
292
|
+
chambers_of_xeric_challenge_modeRank: number
|
|
293
|
+
chambers_of_xeric_challenge_modeKills: number
|
|
294
|
+
chaos_elementalKills: number
|
|
295
|
+
chaos_fanaticKills: number
|
|
296
|
+
chaos_fanaticRank: number
|
|
297
|
+
commander_zilyanaRank: number
|
|
298
|
+
chaos_elementalRank: number
|
|
299
|
+
commander_zilyanaKills: number
|
|
300
|
+
corporeal_beastRank: number
|
|
301
|
+
corporeal_beastKills: number
|
|
302
|
+
crazy_archaeologistRank: number
|
|
303
|
+
crazy_archaeologistKills: number
|
|
304
|
+
dagannoth_primeRank: number
|
|
305
|
+
dagannoth_primeKills: number
|
|
306
|
+
dagannoth_rexRank: number
|
|
307
|
+
dagannoth_rexKills: number
|
|
308
|
+
dagannoth_supremeRank: number
|
|
309
|
+
dagannoth_supremeKills: number
|
|
310
|
+
deranged_archaeologistRank: number
|
|
311
|
+
deranged_archaeologistKills: number
|
|
312
|
+
general_graardorRank: number
|
|
313
|
+
general_graardorKills: number
|
|
314
|
+
giant_moleRank: number
|
|
315
|
+
giant_moleKills: number
|
|
316
|
+
grotesque_guardiansRank: number
|
|
317
|
+
grotesque_guardiansKills: number
|
|
318
|
+
hesporiRank: number
|
|
319
|
+
kalphite_queenKills: number
|
|
320
|
+
hesporiKills: number
|
|
321
|
+
kalphite_queenRank: number
|
|
322
|
+
king_black_dragonRank: number
|
|
323
|
+
king_black_dragonKills: number
|
|
324
|
+
krakenRank: number
|
|
325
|
+
krakenKills: number
|
|
326
|
+
kreearraRank: number
|
|
327
|
+
kreearraKills: number
|
|
328
|
+
kril_tsutsarothRank: number
|
|
329
|
+
kril_tsutsarothKills: number
|
|
330
|
+
mimicRank: number
|
|
331
|
+
mimicKills: number
|
|
332
|
+
nightmareRank: number
|
|
333
|
+
nightmareKills: number
|
|
334
|
+
oborRank: number
|
|
335
|
+
oborKills: number
|
|
336
|
+
sarachnisRank: number
|
|
337
|
+
sarachnisKills: number
|
|
338
|
+
scorpiaRank: number
|
|
339
|
+
scorpiaKills: number
|
|
340
|
+
skotizoRank: number
|
|
341
|
+
skotizoKills: number
|
|
342
|
+
the_gauntletRank: number
|
|
343
|
+
the_gauntletKills: number
|
|
344
|
+
the_corrupted_gauntletKills: number
|
|
345
|
+
the_corrupted_gauntletRank: number
|
|
346
|
+
theatre_of_bloodRank: number
|
|
347
|
+
theatre_of_bloodKills: number
|
|
348
|
+
thermonuclear_smoke_devilRank: number
|
|
349
|
+
thermonuclear_smoke_devilKills: number
|
|
350
|
+
tombs_of_amascutRank: number
|
|
351
|
+
tombs_of_amascutKills: number
|
|
352
|
+
tombs_of_amascut_expertRank: number
|
|
353
|
+
tombs_of_amascut_expertKills: number
|
|
354
|
+
tzkal_zukRank: number
|
|
355
|
+
tzkal_zukKills: number
|
|
356
|
+
tztok_jadRank: number
|
|
357
|
+
tztok_jadKills: number
|
|
358
|
+
venenatisRank: number
|
|
359
|
+
venenatisKills: number
|
|
360
|
+
vetionRank: number
|
|
361
|
+
vetionKills: number
|
|
362
|
+
vorkathRank: number
|
|
363
|
+
vorkathKills: number
|
|
364
|
+
wintertodtRank: number
|
|
365
|
+
zalcanoRank: number
|
|
366
|
+
wintertodtKills: number
|
|
367
|
+
zalcanoKills: number
|
|
368
|
+
zulrahRank: number
|
|
369
|
+
zulrahKills: number
|
|
370
|
+
ehpValue: number
|
|
371
|
+
ehbValue: number
|
|
372
|
+
ehbRank: number
|
|
373
|
+
ehpRank: number
|
|
374
|
+
soul_wars_zealScore: number
|
|
375
|
+
soul_wars_zealRank: number
|
|
376
|
+
temporossKills: number
|
|
377
|
+
temporossRank: number
|
|
378
|
+
theatre_of_blood_hard_modeKills: number
|
|
379
|
+
theatre_of_blood_hard_modeRank: number
|
|
380
|
+
phosanis_nightmareKills: number
|
|
381
|
+
phosanis_nightmareRank: number
|
|
382
|
+
nexKills: number
|
|
383
|
+
nexRank: number
|
|
384
|
+
guardians_of_the_riftScore: number
|
|
385
|
+
guardians_of_the_riftRank: number
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Prisma currently seems to ignore the @map() in enum declarations.
|
|
394
|
+
*
|
|
395
|
+
* So by declaring this enum in the schema file:
|
|
396
|
+
*
|
|
397
|
+
* enum NameChangeStatus {
|
|
398
|
+
* PENDING @map('pending')
|
|
399
|
+
* DENIED @map('denied')
|
|
400
|
+
* APPROVED @map('approved')
|
|
401
|
+
* }
|
|
402
|
+
*
|
|
403
|
+
* you would expect the prisma client to then generate the following object:
|
|
404
|
+
*
|
|
405
|
+
* const NameChangeStatus = {
|
|
406
|
+
* PENDING: 'pending',
|
|
407
|
+
* DENIED: 'denied',
|
|
408
|
+
* APPROVED: 'approved',
|
|
409
|
+
* }
|
|
410
|
+
*
|
|
411
|
+
* but unfortunately, the mapping is only used for queries, and the actual esulting object is this:
|
|
412
|
+
*
|
|
413
|
+
* const NameChangeStatus = {
|
|
414
|
+
* PENDING: 'PENDING',
|
|
415
|
+
* DENIED: 'DENIED',
|
|
416
|
+
* APPROVED: 'APPROVED',
|
|
417
|
+
* }
|
|
418
|
+
*
|
|
419
|
+
* And because I'd hate having to call enum values in lowercase, like:
|
|
420
|
+
* NameChangeStatus.pending
|
|
421
|
+
* Metric.king_black_dragon
|
|
422
|
+
* Period.day
|
|
423
|
+
*
|
|
424
|
+
* I'd rather do some mapping to ensure I have the best of both worlds,
|
|
425
|
+
* lowercase database values, but with uppercase in code.
|
|
426
|
+
* With the mappings below, we can now use prisma enums by calling them with uppercase, like:
|
|
427
|
+
*
|
|
428
|
+
* NameChangeStatus.PENDING
|
|
429
|
+
* Metric.KING_BLACK_DRAGON
|
|
430
|
+
* Period.DAY
|
|
431
|
+
*
|
|
432
|
+
*/
|
|
433
|
+
declare const Skill: {
|
|
434
|
+
readonly OVERALL: "overall";
|
|
435
|
+
readonly ATTACK: "attack";
|
|
436
|
+
readonly DEFENCE: "defence";
|
|
437
|
+
readonly STRENGTH: "strength";
|
|
438
|
+
readonly HITPOINTS: "hitpoints";
|
|
439
|
+
readonly RANGED: "ranged";
|
|
440
|
+
readonly PRAYER: "prayer";
|
|
441
|
+
readonly MAGIC: "magic";
|
|
442
|
+
readonly COOKING: "cooking";
|
|
443
|
+
readonly WOODCUTTING: "woodcutting";
|
|
444
|
+
readonly FLETCHING: "fletching";
|
|
445
|
+
readonly FISHING: "fishing";
|
|
446
|
+
readonly FIREMAKING: "firemaking";
|
|
447
|
+
readonly CRAFTING: "crafting";
|
|
448
|
+
readonly SMITHING: "smithing";
|
|
449
|
+
readonly MINING: "mining";
|
|
450
|
+
readonly HERBLORE: "herblore";
|
|
451
|
+
readonly AGILITY: "agility";
|
|
452
|
+
readonly THIEVING: "thieving";
|
|
453
|
+
readonly SLAYER: "slayer";
|
|
454
|
+
readonly FARMING: "farming";
|
|
455
|
+
readonly RUNECRAFTING: "runecrafting";
|
|
456
|
+
readonly HUNTER: "hunter";
|
|
457
|
+
readonly CONSTRUCTION: "construction";
|
|
458
|
+
};
|
|
459
|
+
declare type Skill = typeof Skill[keyof typeof Skill];
|
|
460
|
+
declare const Activity: {
|
|
461
|
+
LEAGUE_POINTS: string;
|
|
462
|
+
BOUNTY_HUNTER_HUNTER: string;
|
|
463
|
+
BOUNTY_HUNTER_ROGUE: string;
|
|
464
|
+
CLUE_SCROLLS_ALL: string;
|
|
465
|
+
CLUE_SCROLLS_BEGINNER: string;
|
|
466
|
+
CLUE_SCROLLS_EASY: string;
|
|
467
|
+
CLUE_SCROLLS_MEDIUM: string;
|
|
468
|
+
CLUE_SCROLLS_HARD: string;
|
|
469
|
+
CLUE_SCROLLS_ELITE: string;
|
|
470
|
+
CLUE_SCROLLS_MASTER: string;
|
|
471
|
+
LAST_MAN_STANDING: string;
|
|
472
|
+
PVP_ARENA: string;
|
|
473
|
+
SOUL_WARS_ZEAL: string;
|
|
474
|
+
GUARDIANS_OF_THE_RIFT: string;
|
|
475
|
+
};
|
|
476
|
+
declare type Activity = typeof Activity[keyof typeof Activity];
|
|
477
|
+
declare const Boss: {
|
|
478
|
+
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
479
|
+
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
480
|
+
readonly BARROWS_CHESTS: "barrows_chests";
|
|
481
|
+
readonly BRYOPHYTA: "bryophyta";
|
|
482
|
+
readonly CALLISTO: "callisto";
|
|
483
|
+
readonly CERBERUS: "cerberus";
|
|
484
|
+
readonly CHAMBERS_OF_XERIC: "chambers_of_xeric";
|
|
485
|
+
readonly CHAMBERS_OF_XERIC_CM: "chambers_of_xeric_challenge_mode";
|
|
486
|
+
readonly CHAOS_ELEMENTAL: "chaos_elemental";
|
|
487
|
+
readonly CHAOS_FANATIC: "chaos_fanatic";
|
|
488
|
+
readonly COMMANDER_ZILYANA: "commander_zilyana";
|
|
489
|
+
readonly CORPOREAL_BEAST: "corporeal_beast";
|
|
490
|
+
readonly CRAZY_ARCHAEOLOGIST: "crazy_archaeologist";
|
|
491
|
+
readonly DAGANNOTH_PRIME: "dagannoth_prime";
|
|
492
|
+
readonly DAGANNOTH_REX: "dagannoth_rex";
|
|
493
|
+
readonly DAGANNOTH_SUPREME: "dagannoth_supreme";
|
|
494
|
+
readonly DERANGED_ARCHAEOLOGIST: "deranged_archaeologist";
|
|
495
|
+
readonly GENERAL_GRAARDOR: "general_graardor";
|
|
496
|
+
readonly GIANT_MOLE: "giant_mole";
|
|
497
|
+
readonly GROTESQUE_GUARDIANS: "grotesque_guardians";
|
|
498
|
+
readonly HESPORI: "hespori";
|
|
499
|
+
readonly KALPHITE_QUEEN: "kalphite_queen";
|
|
500
|
+
readonly KING_BLACK_DRAGON: "king_black_dragon";
|
|
501
|
+
readonly KRAKEN: "kraken";
|
|
502
|
+
readonly KREEARRA: "kreearra";
|
|
503
|
+
readonly KRIL_TSUTSAROTH: "kril_tsutsaroth";
|
|
504
|
+
readonly MIMIC: "mimic";
|
|
505
|
+
readonly NEX: "nex";
|
|
506
|
+
readonly NIGHTMARE: "nightmare";
|
|
507
|
+
readonly PHOSANIS_NIGHTMARE: "phosanis_nightmare";
|
|
508
|
+
readonly OBOR: "obor";
|
|
509
|
+
readonly SARACHNIS: "sarachnis";
|
|
510
|
+
readonly SCORPIA: "scorpia";
|
|
511
|
+
readonly SKOTIZO: "skotizo";
|
|
512
|
+
readonly TEMPOROSS: "tempoross";
|
|
513
|
+
readonly THE_GAUNTLET: "the_gauntlet";
|
|
514
|
+
readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
|
|
515
|
+
readonly THEATRE_OF_BLOOD: "theatre_of_blood";
|
|
516
|
+
readonly THEATRE_OF_BLOOD_HARD_MODE: "theatre_of_blood_hard_mode";
|
|
517
|
+
readonly THERMONUCLEAR_SMOKE_DEVIL: "thermonuclear_smoke_devil";
|
|
518
|
+
readonly TOMBS_OF_AMASCUT: "tombs_of_amascut";
|
|
519
|
+
readonly TOMBS_OF_AMASCUT_EXPERT: "tombs_of_amascut_expert";
|
|
520
|
+
readonly TZKAL_ZUK: "tzkal_zuk";
|
|
521
|
+
readonly TZTOK_JAD: "tztok_jad";
|
|
522
|
+
readonly VENENATIS: "venenatis";
|
|
523
|
+
readonly VETION: "vetion";
|
|
524
|
+
readonly VORKATH: "vorkath";
|
|
525
|
+
readonly WINTERTODT: "wintertodt";
|
|
526
|
+
readonly ZALCANO: "zalcano";
|
|
527
|
+
readonly ZULRAH: "zulrah";
|
|
528
|
+
};
|
|
529
|
+
declare type Boss = typeof Boss[keyof typeof Boss];
|
|
530
|
+
declare const Virtual: {
|
|
531
|
+
readonly EHP: "ehp";
|
|
532
|
+
readonly EHB: "ehb";
|
|
533
|
+
};
|
|
534
|
+
declare type Virtual = typeof Virtual[keyof typeof Virtual];
|
|
535
|
+
declare const Metric: {
|
|
536
|
+
readonly EHP: "ehp";
|
|
537
|
+
readonly EHB: "ehb";
|
|
538
|
+
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
539
|
+
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
540
|
+
readonly BARROWS_CHESTS: "barrows_chests";
|
|
541
|
+
readonly BRYOPHYTA: "bryophyta";
|
|
542
|
+
readonly CALLISTO: "callisto";
|
|
543
|
+
readonly CERBERUS: "cerberus";
|
|
544
|
+
readonly CHAMBERS_OF_XERIC: "chambers_of_xeric";
|
|
545
|
+
readonly CHAMBERS_OF_XERIC_CM: "chambers_of_xeric_challenge_mode";
|
|
546
|
+
readonly CHAOS_ELEMENTAL: "chaos_elemental";
|
|
547
|
+
readonly CHAOS_FANATIC: "chaos_fanatic";
|
|
548
|
+
readonly COMMANDER_ZILYANA: "commander_zilyana";
|
|
549
|
+
readonly CORPOREAL_BEAST: "corporeal_beast";
|
|
550
|
+
readonly CRAZY_ARCHAEOLOGIST: "crazy_archaeologist";
|
|
551
|
+
readonly DAGANNOTH_PRIME: "dagannoth_prime";
|
|
552
|
+
readonly DAGANNOTH_REX: "dagannoth_rex";
|
|
553
|
+
readonly DAGANNOTH_SUPREME: "dagannoth_supreme";
|
|
554
|
+
readonly DERANGED_ARCHAEOLOGIST: "deranged_archaeologist";
|
|
555
|
+
readonly GENERAL_GRAARDOR: "general_graardor";
|
|
556
|
+
readonly GIANT_MOLE: "giant_mole";
|
|
557
|
+
readonly GROTESQUE_GUARDIANS: "grotesque_guardians";
|
|
558
|
+
readonly HESPORI: "hespori";
|
|
559
|
+
readonly KALPHITE_QUEEN: "kalphite_queen";
|
|
560
|
+
readonly KING_BLACK_DRAGON: "king_black_dragon";
|
|
561
|
+
readonly KRAKEN: "kraken";
|
|
562
|
+
readonly KREEARRA: "kreearra";
|
|
563
|
+
readonly KRIL_TSUTSAROTH: "kril_tsutsaroth";
|
|
564
|
+
readonly MIMIC: "mimic";
|
|
565
|
+
readonly NEX: "nex";
|
|
566
|
+
readonly NIGHTMARE: "nightmare";
|
|
567
|
+
readonly PHOSANIS_NIGHTMARE: "phosanis_nightmare";
|
|
568
|
+
readonly OBOR: "obor";
|
|
569
|
+
readonly SARACHNIS: "sarachnis";
|
|
570
|
+
readonly SCORPIA: "scorpia";
|
|
571
|
+
readonly SKOTIZO: "skotizo";
|
|
572
|
+
readonly TEMPOROSS: "tempoross";
|
|
573
|
+
readonly THE_GAUNTLET: "the_gauntlet";
|
|
574
|
+
readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
|
|
575
|
+
readonly THEATRE_OF_BLOOD: "theatre_of_blood";
|
|
576
|
+
readonly THEATRE_OF_BLOOD_HARD_MODE: "theatre_of_blood_hard_mode";
|
|
577
|
+
readonly THERMONUCLEAR_SMOKE_DEVIL: "thermonuclear_smoke_devil";
|
|
578
|
+
readonly TOMBS_OF_AMASCUT: "tombs_of_amascut";
|
|
579
|
+
readonly TOMBS_OF_AMASCUT_EXPERT: "tombs_of_amascut_expert";
|
|
580
|
+
readonly TZKAL_ZUK: "tzkal_zuk";
|
|
581
|
+
readonly TZTOK_JAD: "tztok_jad";
|
|
582
|
+
readonly VENENATIS: "venenatis";
|
|
583
|
+
readonly VETION: "vetion";
|
|
584
|
+
readonly VORKATH: "vorkath";
|
|
585
|
+
readonly WINTERTODT: "wintertodt";
|
|
586
|
+
readonly ZALCANO: "zalcano";
|
|
587
|
+
readonly ZULRAH: "zulrah";
|
|
588
|
+
readonly LEAGUE_POINTS: string;
|
|
589
|
+
readonly BOUNTY_HUNTER_HUNTER: string;
|
|
590
|
+
readonly BOUNTY_HUNTER_ROGUE: string;
|
|
591
|
+
readonly CLUE_SCROLLS_ALL: string;
|
|
592
|
+
readonly CLUE_SCROLLS_BEGINNER: string;
|
|
593
|
+
readonly CLUE_SCROLLS_EASY: string;
|
|
594
|
+
readonly CLUE_SCROLLS_MEDIUM: string;
|
|
595
|
+
readonly CLUE_SCROLLS_HARD: string;
|
|
596
|
+
readonly CLUE_SCROLLS_ELITE: string;
|
|
597
|
+
readonly CLUE_SCROLLS_MASTER: string;
|
|
598
|
+
readonly LAST_MAN_STANDING: string;
|
|
599
|
+
readonly PVP_ARENA: string;
|
|
600
|
+
readonly SOUL_WARS_ZEAL: string;
|
|
601
|
+
readonly GUARDIANS_OF_THE_RIFT: string;
|
|
602
|
+
readonly OVERALL: "overall";
|
|
603
|
+
readonly ATTACK: "attack";
|
|
604
|
+
readonly DEFENCE: "defence";
|
|
605
|
+
readonly STRENGTH: "strength";
|
|
606
|
+
readonly HITPOINTS: "hitpoints";
|
|
607
|
+
readonly RANGED: "ranged";
|
|
608
|
+
readonly PRAYER: "prayer";
|
|
609
|
+
readonly MAGIC: "magic";
|
|
610
|
+
readonly COOKING: "cooking";
|
|
611
|
+
readonly WOODCUTTING: "woodcutting";
|
|
612
|
+
readonly FLETCHING: "fletching";
|
|
613
|
+
readonly FISHING: "fishing";
|
|
614
|
+
readonly FIREMAKING: "firemaking";
|
|
615
|
+
readonly CRAFTING: "crafting";
|
|
616
|
+
readonly SMITHING: "smithing";
|
|
617
|
+
readonly MINING: "mining";
|
|
618
|
+
readonly HERBLORE: "herblore";
|
|
619
|
+
readonly AGILITY: "agility";
|
|
620
|
+
readonly THIEVING: "thieving";
|
|
621
|
+
readonly SLAYER: "slayer";
|
|
622
|
+
readonly FARMING: "farming";
|
|
623
|
+
readonly RUNECRAFTING: "runecrafting";
|
|
624
|
+
readonly HUNTER: "hunter";
|
|
625
|
+
readonly CONSTRUCTION: "construction";
|
|
626
|
+
};
|
|
627
|
+
declare type Metric = typeof Metric[keyof typeof Metric];
|
|
628
|
+
declare const NameChangeStatus: {
|
|
629
|
+
readonly PENDING: "pending";
|
|
630
|
+
readonly DENIED: "denied";
|
|
631
|
+
readonly APPROVED: "approved";
|
|
632
|
+
};
|
|
633
|
+
declare type NameChangeStatus = typeof NameChangeStatus[keyof typeof NameChangeStatus];
|
|
634
|
+
declare const Period: {
|
|
635
|
+
readonly FIVE_MIN: "five_min";
|
|
636
|
+
readonly DAY: "day";
|
|
637
|
+
readonly WEEK: "week";
|
|
638
|
+
readonly MONTH: "month";
|
|
639
|
+
readonly YEAR: "year";
|
|
640
|
+
};
|
|
641
|
+
declare type Period = typeof Period[keyof typeof Period];
|
|
642
|
+
declare const PlayerType: {
|
|
643
|
+
readonly UNKNOWN: "unknown";
|
|
644
|
+
readonly REGULAR: "regular";
|
|
645
|
+
readonly IRONMAN: "ironman";
|
|
646
|
+
readonly HARDCORE: "hardcore";
|
|
647
|
+
readonly ULTIMATE: "ultimate";
|
|
648
|
+
};
|
|
649
|
+
declare type PlayerType = typeof PlayerType[keyof typeof PlayerType];
|
|
650
|
+
declare const PlayerBuild: {
|
|
651
|
+
readonly MAIN: "main";
|
|
652
|
+
readonly F2P: "f2p";
|
|
653
|
+
readonly LVL3: "lvl3";
|
|
654
|
+
readonly ZERKER: "zerker";
|
|
655
|
+
readonly DEF1: "def1";
|
|
656
|
+
readonly HP10: "hp10";
|
|
657
|
+
};
|
|
658
|
+
declare type PlayerBuild = typeof PlayerBuild[keyof typeof PlayerBuild];
|
|
659
|
+
declare const CompetitionType: {
|
|
660
|
+
readonly CLASSIC: "classic";
|
|
661
|
+
readonly TEAM: "team";
|
|
662
|
+
};
|
|
663
|
+
declare type CompetitionType = typeof CompetitionType[keyof typeof CompetitionType];
|
|
664
|
+
declare const GroupRole: {
|
|
665
|
+
readonly ACHIEVER: "achiever";
|
|
666
|
+
readonly ADAMANT: "adamant";
|
|
667
|
+
readonly ADEPT: "adept";
|
|
668
|
+
readonly ADMINISTRATOR: "administrator";
|
|
669
|
+
readonly ADMIRAL: "admiral";
|
|
670
|
+
readonly ADVENTURER: "adventurer";
|
|
671
|
+
readonly AIR: "air";
|
|
672
|
+
readonly ANCHOR: "anchor";
|
|
673
|
+
readonly APOTHECARY: "apothecary";
|
|
674
|
+
readonly ARCHER: "archer";
|
|
675
|
+
readonly ARMADYLEAN: "armadylean";
|
|
676
|
+
readonly ARTILLERY: "artillery";
|
|
677
|
+
readonly ARTISAN: "artisan";
|
|
678
|
+
readonly ASGARNIAN: "asgarnian";
|
|
679
|
+
readonly ASSASSIN: "assassin";
|
|
680
|
+
readonly ASSISTANT: "assistant";
|
|
681
|
+
readonly ASTRAL: "astral";
|
|
682
|
+
readonly ATHLETE: "athlete";
|
|
683
|
+
readonly ATTACKER: "attacker";
|
|
684
|
+
readonly BANDIT: "bandit";
|
|
685
|
+
readonly BANDOSIAN: "bandosian";
|
|
686
|
+
readonly BARBARIAN: "barbarian";
|
|
687
|
+
readonly BATTLEMAGE: "battlemage";
|
|
688
|
+
readonly BEAST: "beast";
|
|
689
|
+
readonly BERSERKER: "berserker";
|
|
690
|
+
readonly BLISTERWOOD: "blisterwood";
|
|
691
|
+
readonly BLOOD: "blood";
|
|
692
|
+
readonly BLUE: "blue";
|
|
693
|
+
readonly BOB: "bob";
|
|
694
|
+
readonly BODY: "body";
|
|
695
|
+
readonly BRASSICAN: "brassican";
|
|
696
|
+
readonly BRAWLER: "brawler";
|
|
697
|
+
readonly BRIGADIER: "brigadier";
|
|
698
|
+
readonly BRIGAND: "brigand";
|
|
699
|
+
readonly BRONZE: "bronze";
|
|
700
|
+
readonly BRUISER: "bruiser";
|
|
701
|
+
readonly BULWARK: "bulwark";
|
|
702
|
+
readonly BURGLAR: "burglar";
|
|
703
|
+
readonly BURNT: "burnt";
|
|
704
|
+
readonly CADET: "cadet";
|
|
705
|
+
readonly CAPTAIN: "captain";
|
|
706
|
+
readonly CARRY: "carry";
|
|
707
|
+
readonly CHAMPION: "champion";
|
|
708
|
+
readonly CHAOS: "chaos";
|
|
709
|
+
readonly CLERIC: "cleric";
|
|
710
|
+
readonly COLLECTOR: "collector";
|
|
711
|
+
readonly COLONEL: "colonel";
|
|
712
|
+
readonly COMMANDER: "commander";
|
|
713
|
+
readonly COMPETITOR: "competitor";
|
|
714
|
+
readonly COMPLETIONIST: "completionist";
|
|
715
|
+
readonly CONSTRUCTOR: "constructor";
|
|
716
|
+
readonly COOK: "cook";
|
|
717
|
+
readonly COORDINATOR: "coordinator";
|
|
718
|
+
readonly CORPORAL: "corporal";
|
|
719
|
+
readonly COSMIC: "cosmic";
|
|
720
|
+
readonly COUNCILLOR: "councillor";
|
|
721
|
+
readonly CRAFTER: "crafter";
|
|
722
|
+
readonly CREW: "crew";
|
|
723
|
+
readonly CRUSADER: "crusader";
|
|
724
|
+
readonly CUTPURSE: "cutpurse";
|
|
725
|
+
readonly DEATH: "death";
|
|
726
|
+
readonly DEFENDER: "defender";
|
|
727
|
+
readonly DEFILER: "defiler";
|
|
728
|
+
readonly DEPUTY_OWNER: "deputy_owner";
|
|
729
|
+
readonly DESTROYER: "destroyer";
|
|
730
|
+
readonly DIAMOND: "diamond";
|
|
731
|
+
readonly DISEASED: "diseased";
|
|
732
|
+
readonly DOCTOR: "doctor";
|
|
733
|
+
readonly DOGSBODY: "dogsbody";
|
|
734
|
+
readonly DRAGON: "dragon";
|
|
735
|
+
readonly DRAGONSTONE: "dragonstone";
|
|
736
|
+
readonly DRUID: "druid";
|
|
737
|
+
readonly DUELLIST: "duellist";
|
|
738
|
+
readonly EARTH: "earth";
|
|
739
|
+
readonly ELITE: "elite";
|
|
740
|
+
readonly EMERALD: "emerald";
|
|
741
|
+
readonly ENFORCER: "enforcer";
|
|
742
|
+
readonly EPIC: "epic";
|
|
743
|
+
readonly EXECUTIVE: "executive";
|
|
744
|
+
readonly EXPERT: "expert";
|
|
745
|
+
readonly EXPLORER: "explorer";
|
|
746
|
+
readonly FARMER: "farmer";
|
|
747
|
+
readonly FEEDER: "feeder";
|
|
748
|
+
readonly FIGHTER: "fighter";
|
|
749
|
+
readonly FIRE: "fire";
|
|
750
|
+
readonly FIREMAKER: "firemaker";
|
|
751
|
+
readonly FIRESTARTER: "firestarter";
|
|
752
|
+
readonly FISHER: "fisher";
|
|
753
|
+
readonly FLETCHER: "fletcher";
|
|
754
|
+
readonly FORAGER: "forager";
|
|
755
|
+
readonly FREMENNIK: "fremennik";
|
|
756
|
+
readonly GAMER: "gamer";
|
|
757
|
+
readonly GATHERER: "gatherer";
|
|
758
|
+
readonly GENERAL: "general";
|
|
759
|
+
readonly GNOME_CHILD: "gnome_child";
|
|
760
|
+
readonly GNOME_ELDER: "gnome_elder";
|
|
761
|
+
readonly GOBLIN: "goblin";
|
|
762
|
+
readonly GOLD: "gold";
|
|
763
|
+
readonly GOON: "goon";
|
|
764
|
+
readonly GREEN: "green";
|
|
765
|
+
readonly GREY: "grey";
|
|
766
|
+
readonly GUARDIAN: "guardian";
|
|
767
|
+
readonly GUTHIXIAN: "guthixian";
|
|
768
|
+
readonly HARPOON: "harpoon";
|
|
769
|
+
readonly HEALER: "healer";
|
|
770
|
+
readonly HELLCAT: "hellcat";
|
|
771
|
+
readonly HELPER: "helper";
|
|
772
|
+
readonly HERBOLOGIST: "herbologist";
|
|
773
|
+
readonly HERO: "hero";
|
|
774
|
+
readonly HOLY: "holy";
|
|
775
|
+
readonly HOARDER: "hoarder";
|
|
776
|
+
readonly HUNTER: "hunter";
|
|
777
|
+
readonly IGNITOR: "ignitor";
|
|
778
|
+
readonly ILLUSIONIST: "illusionist";
|
|
779
|
+
readonly IMP: "imp";
|
|
780
|
+
readonly INFANTRY: "infantry";
|
|
781
|
+
readonly INQUISITOR: "inquisitor";
|
|
782
|
+
readonly IRON: "iron";
|
|
783
|
+
readonly JADE: "jade";
|
|
784
|
+
readonly JUSTICIAR: "justiciar";
|
|
785
|
+
readonly KANDARIN: "kandarin";
|
|
786
|
+
readonly KARAMJAN: "karamjan";
|
|
787
|
+
readonly KHARIDIAN: "kharidian";
|
|
788
|
+
readonly KITTEN: "kitten";
|
|
789
|
+
readonly KNIGHT: "knight";
|
|
790
|
+
readonly LABOURER: "labourer";
|
|
791
|
+
readonly LAW: "law";
|
|
792
|
+
readonly LEADER: "leader";
|
|
793
|
+
readonly LEARNER: "learner";
|
|
794
|
+
readonly LEGACY: "legacy";
|
|
795
|
+
readonly LEGEND: "legend";
|
|
796
|
+
readonly LEGIONNAIRE: "legionnaire";
|
|
797
|
+
readonly LIEUTENANT: "lieutenant";
|
|
798
|
+
readonly LOOTER: "looter";
|
|
799
|
+
readonly LUMBERJACK: "lumberjack";
|
|
800
|
+
readonly MAGIC: "magic";
|
|
801
|
+
readonly MAGICIAN: "magician";
|
|
802
|
+
readonly MAJOR: "major";
|
|
803
|
+
readonly MAPLE: "maple";
|
|
804
|
+
readonly MARSHAL: "marshal";
|
|
805
|
+
readonly MASTER: "master";
|
|
806
|
+
readonly MAXED: "maxed";
|
|
807
|
+
readonly MEDIATOR: "mediator";
|
|
808
|
+
readonly MEDIC: "medic";
|
|
809
|
+
readonly MENTOR: "mentor";
|
|
810
|
+
readonly MEMBER: "member";
|
|
811
|
+
readonly MERCHANT: "merchant";
|
|
812
|
+
readonly MIND: "mind";
|
|
813
|
+
readonly MINER: "miner";
|
|
814
|
+
readonly MINION: "minion";
|
|
815
|
+
readonly MISTHALINIAN: "misthalinian";
|
|
816
|
+
readonly MITHRIL: "mithril";
|
|
817
|
+
readonly MODERATOR: "moderator";
|
|
818
|
+
readonly MONARCH: "monarch";
|
|
819
|
+
readonly MORYTANIAN: "morytanian";
|
|
820
|
+
readonly MYSTIC: "mystic";
|
|
821
|
+
readonly MYTH: "myth";
|
|
822
|
+
readonly NATURAL: "natural";
|
|
823
|
+
readonly NATURE: "nature";
|
|
824
|
+
readonly NECROMANCER: "necromancer";
|
|
825
|
+
readonly NINJA: "ninja";
|
|
826
|
+
readonly NOBLE: "noble";
|
|
827
|
+
readonly NOVICE: "novice";
|
|
828
|
+
readonly NURSE: "nurse";
|
|
829
|
+
readonly OAK: "oak";
|
|
830
|
+
readonly OFFICER: "officer";
|
|
831
|
+
readonly ONYX: "onyx";
|
|
832
|
+
readonly OPAL: "opal";
|
|
833
|
+
readonly ORACLE: "oracle";
|
|
834
|
+
readonly ORANGE: "orange";
|
|
835
|
+
readonly OWNER: "owner";
|
|
836
|
+
readonly PAGE: "page";
|
|
837
|
+
readonly PALADIN: "paladin";
|
|
838
|
+
readonly PAWN: "pawn";
|
|
839
|
+
readonly PILGRIM: "pilgrim";
|
|
840
|
+
readonly PINE: "pine";
|
|
841
|
+
readonly PINK: "pink";
|
|
842
|
+
readonly PREFECT: "prefect";
|
|
843
|
+
readonly PRIEST: "priest";
|
|
844
|
+
readonly PRIVATE: "private";
|
|
845
|
+
readonly PRODIGY: "prodigy";
|
|
846
|
+
readonly PROSELYTE: "proselyte";
|
|
847
|
+
readonly PROSPECTOR: "prospector";
|
|
848
|
+
readonly PROTECTOR: "protector";
|
|
849
|
+
readonly PURE: "pure";
|
|
850
|
+
readonly PURPLE: "purple";
|
|
851
|
+
readonly PYROMANCER: "pyromancer";
|
|
852
|
+
readonly QUESTER: "quester";
|
|
853
|
+
readonly RACER: "racer";
|
|
854
|
+
readonly RAIDER: "raider";
|
|
855
|
+
readonly RANGER: "ranger";
|
|
856
|
+
readonly RECORD_CHASER: "record_chaser";
|
|
857
|
+
readonly RECRUIT: "recruit";
|
|
858
|
+
readonly RECRUITER: "recruiter";
|
|
859
|
+
readonly RED_TOPAZ: "red_topaz";
|
|
860
|
+
readonly RED: "red";
|
|
861
|
+
readonly ROGUE: "rogue";
|
|
862
|
+
readonly RUBY: "ruby";
|
|
863
|
+
readonly RUNE: "rune";
|
|
864
|
+
readonly RUNECRAFTER: "runecrafter";
|
|
865
|
+
readonly SAGE: "sage";
|
|
866
|
+
readonly SAPPHIRE: "sapphire";
|
|
867
|
+
readonly SARADOMINIST: "saradominist";
|
|
868
|
+
readonly SAVIOUR: "saviour";
|
|
869
|
+
readonly SCAVENGER: "scavenger";
|
|
870
|
+
readonly SCHOLAR: "scholar";
|
|
871
|
+
readonly SCOURGE: "scourge";
|
|
872
|
+
readonly SCOUT: "scout";
|
|
873
|
+
readonly SCRIBE: "scribe";
|
|
874
|
+
readonly SEER: "seer";
|
|
875
|
+
readonly SENATOR: "senator";
|
|
876
|
+
readonly SENTRY: "sentry";
|
|
877
|
+
readonly SERENIST: "serenist";
|
|
878
|
+
readonly SERGEANT: "sergeant";
|
|
879
|
+
readonly SHAMAN: "shaman";
|
|
880
|
+
readonly SHERIFF: "sheriff";
|
|
881
|
+
readonly SHORT_GREEN_GUY: "short_green_guy";
|
|
882
|
+
readonly SKILLER: "skiller";
|
|
883
|
+
readonly SKULLED: "skulled";
|
|
884
|
+
readonly SLAYER: "slayer";
|
|
885
|
+
readonly SMITER: "smiter";
|
|
886
|
+
readonly SMITH: "smith";
|
|
887
|
+
readonly SMUGGLER: "smuggler";
|
|
888
|
+
readonly SNIPER: "sniper";
|
|
889
|
+
readonly SOUL: "soul";
|
|
890
|
+
readonly SPECIALIST: "specialist";
|
|
891
|
+
readonly SPEED_RUNNER: "speed_runner";
|
|
892
|
+
readonly SPELLCASTER: "spellcaster";
|
|
893
|
+
readonly SQUIRE: "squire";
|
|
894
|
+
readonly STAFF: "staff";
|
|
895
|
+
readonly STEEL: "steel";
|
|
896
|
+
readonly STRIDER: "strider";
|
|
897
|
+
readonly STRIKER: "striker";
|
|
898
|
+
readonly SUMMONER: "summoner";
|
|
899
|
+
readonly SUPERIOR: "superior";
|
|
900
|
+
readonly SUPERVISOR: "supervisor";
|
|
901
|
+
readonly TEACHER: "teacher";
|
|
902
|
+
readonly TEMPLAR: "templar";
|
|
903
|
+
readonly THERAPIST: "therapist";
|
|
904
|
+
readonly THIEF: "thief";
|
|
905
|
+
readonly TIRANNIAN: "tirannian";
|
|
906
|
+
readonly TRIALIST: "trialist";
|
|
907
|
+
readonly TRICKSTER: "trickster";
|
|
908
|
+
readonly TZKAL: "tzkal";
|
|
909
|
+
readonly TZTOK: "tztok";
|
|
910
|
+
readonly UNHOLY: "unholy";
|
|
911
|
+
readonly VAGRANT: "vagrant";
|
|
912
|
+
readonly VANGUARD: "vanguard";
|
|
913
|
+
readonly WALKER: "walker";
|
|
914
|
+
readonly WANDERER: "wanderer";
|
|
915
|
+
readonly WARDEN: "warden";
|
|
916
|
+
readonly WARLOCK: "warlock";
|
|
917
|
+
readonly WARRIOR: "warrior";
|
|
918
|
+
readonly WATER: "water";
|
|
919
|
+
readonly WILD: "wild";
|
|
920
|
+
readonly WILLOW: "willow";
|
|
921
|
+
readonly WILY: "wily";
|
|
922
|
+
readonly WINTUMBER: "wintumber";
|
|
923
|
+
readonly WITCH: "witch";
|
|
924
|
+
readonly WIZARD: "wizard";
|
|
925
|
+
readonly WORKER: "worker";
|
|
926
|
+
readonly WRATH: "wrath";
|
|
927
|
+
readonly XERICIAN: "xerician";
|
|
928
|
+
readonly YELLOW: "yellow";
|
|
929
|
+
readonly YEW: "yew";
|
|
930
|
+
readonly ZAMORAKIAN: "zamorakian";
|
|
931
|
+
readonly ZAROSIAN: "zarosian";
|
|
932
|
+
readonly ZEALOT: "zealot";
|
|
933
|
+
readonly ZENYTE: "zenyte";
|
|
934
|
+
};
|
|
935
|
+
declare type GroupRole = typeof GroupRole[keyof typeof GroupRole];
|
|
936
|
+
declare const Country: {
|
|
937
|
+
readonly AD: "AD";
|
|
938
|
+
readonly AE: "AE";
|
|
939
|
+
readonly AF: "AF";
|
|
940
|
+
readonly AG: "AG";
|
|
941
|
+
readonly AI: "AI";
|
|
942
|
+
readonly AL: "AL";
|
|
943
|
+
readonly AM: "AM";
|
|
944
|
+
readonly AO: "AO";
|
|
945
|
+
readonly AQ: "AQ";
|
|
946
|
+
readonly AR: "AR";
|
|
947
|
+
readonly AS: "AS";
|
|
948
|
+
readonly AT: "AT";
|
|
949
|
+
readonly AU: "AU";
|
|
950
|
+
readonly AW: "AW";
|
|
951
|
+
readonly AX: "AX";
|
|
952
|
+
readonly AZ: "AZ";
|
|
953
|
+
readonly BA: "BA";
|
|
954
|
+
readonly BB: "BB";
|
|
955
|
+
readonly BD: "BD";
|
|
956
|
+
readonly BE: "BE";
|
|
957
|
+
readonly BF: "BF";
|
|
958
|
+
readonly BG: "BG";
|
|
959
|
+
readonly BH: "BH";
|
|
960
|
+
readonly BI: "BI";
|
|
961
|
+
readonly BJ: "BJ";
|
|
962
|
+
readonly BL: "BL";
|
|
963
|
+
readonly BM: "BM";
|
|
964
|
+
readonly BN: "BN";
|
|
965
|
+
readonly BO: "BO";
|
|
966
|
+
readonly BQ: "BQ";
|
|
967
|
+
readonly BR: "BR";
|
|
968
|
+
readonly BS: "BS";
|
|
969
|
+
readonly BT: "BT";
|
|
970
|
+
readonly BV: "BV";
|
|
971
|
+
readonly BW: "BW";
|
|
972
|
+
readonly BY: "BY";
|
|
973
|
+
readonly BZ: "BZ";
|
|
974
|
+
readonly CA: "CA";
|
|
975
|
+
readonly CC: "CC";
|
|
976
|
+
readonly CD: "CD";
|
|
977
|
+
readonly CF: "CF";
|
|
978
|
+
readonly CG: "CG";
|
|
979
|
+
readonly CH: "CH";
|
|
980
|
+
readonly CI: "CI";
|
|
981
|
+
readonly CK: "CK";
|
|
982
|
+
readonly CL: "CL";
|
|
983
|
+
readonly CM: "CM";
|
|
984
|
+
readonly CN: "CN";
|
|
985
|
+
readonly CO: "CO";
|
|
986
|
+
readonly CR: "CR";
|
|
987
|
+
readonly CU: "CU";
|
|
988
|
+
readonly CV: "CV";
|
|
989
|
+
readonly CW: "CW";
|
|
990
|
+
readonly CX: "CX";
|
|
991
|
+
readonly CY: "CY";
|
|
992
|
+
readonly CZ: "CZ";
|
|
993
|
+
readonly DE: "DE";
|
|
994
|
+
readonly DJ: "DJ";
|
|
995
|
+
readonly DK: "DK";
|
|
996
|
+
readonly DM: "DM";
|
|
997
|
+
readonly DO: "DO";
|
|
998
|
+
readonly DZ: "DZ";
|
|
999
|
+
readonly EC: "EC";
|
|
1000
|
+
readonly EE: "EE";
|
|
1001
|
+
readonly EG: "EG";
|
|
1002
|
+
readonly EH: "EH";
|
|
1003
|
+
readonly ER: "ER";
|
|
1004
|
+
readonly ES: "ES";
|
|
1005
|
+
readonly ET: "ET";
|
|
1006
|
+
readonly FI: "FI";
|
|
1007
|
+
readonly FJ: "FJ";
|
|
1008
|
+
readonly FK: "FK";
|
|
1009
|
+
readonly FM: "FM";
|
|
1010
|
+
readonly FO: "FO";
|
|
1011
|
+
readonly FR: "FR";
|
|
1012
|
+
readonly GA: "GA";
|
|
1013
|
+
readonly GB: "GB";
|
|
1014
|
+
readonly GD: "GD";
|
|
1015
|
+
readonly GE: "GE";
|
|
1016
|
+
readonly GF: "GF";
|
|
1017
|
+
readonly GG: "GG";
|
|
1018
|
+
readonly GH: "GH";
|
|
1019
|
+
readonly GI: "GI";
|
|
1020
|
+
readonly GL: "GL";
|
|
1021
|
+
readonly GM: "GM";
|
|
1022
|
+
readonly GN: "GN";
|
|
1023
|
+
readonly GP: "GP";
|
|
1024
|
+
readonly GQ: "GQ";
|
|
1025
|
+
readonly GR: "GR";
|
|
1026
|
+
readonly GS: "GS";
|
|
1027
|
+
readonly GT: "GT";
|
|
1028
|
+
readonly GU: "GU";
|
|
1029
|
+
readonly GW: "GW";
|
|
1030
|
+
readonly GY: "GY";
|
|
1031
|
+
readonly HK: "HK";
|
|
1032
|
+
readonly HM: "HM";
|
|
1033
|
+
readonly HN: "HN";
|
|
1034
|
+
readonly HR: "HR";
|
|
1035
|
+
readonly HT: "HT";
|
|
1036
|
+
readonly HU: "HU";
|
|
1037
|
+
readonly ID: "ID";
|
|
1038
|
+
readonly IE: "IE";
|
|
1039
|
+
readonly IL: "IL";
|
|
1040
|
+
readonly IM: "IM";
|
|
1041
|
+
readonly IN: "IN";
|
|
1042
|
+
readonly IO: "IO";
|
|
1043
|
+
readonly IQ: "IQ";
|
|
1044
|
+
readonly IR: "IR";
|
|
1045
|
+
readonly IS: "IS";
|
|
1046
|
+
readonly IT: "IT";
|
|
1047
|
+
readonly JE: "JE";
|
|
1048
|
+
readonly JM: "JM";
|
|
1049
|
+
readonly JO: "JO";
|
|
1050
|
+
readonly JP: "JP";
|
|
1051
|
+
readonly KE: "KE";
|
|
1052
|
+
readonly KG: "KG";
|
|
1053
|
+
readonly KH: "KH";
|
|
1054
|
+
readonly KI: "KI";
|
|
1055
|
+
readonly KM: "KM";
|
|
1056
|
+
readonly KN: "KN";
|
|
1057
|
+
readonly KP: "KP";
|
|
1058
|
+
readonly KR: "KR";
|
|
1059
|
+
readonly KW: "KW";
|
|
1060
|
+
readonly KY: "KY";
|
|
1061
|
+
readonly KZ: "KZ";
|
|
1062
|
+
readonly LA: "LA";
|
|
1063
|
+
readonly LB: "LB";
|
|
1064
|
+
readonly LC: "LC";
|
|
1065
|
+
readonly LI: "LI";
|
|
1066
|
+
readonly LK: "LK";
|
|
1067
|
+
readonly LR: "LR";
|
|
1068
|
+
readonly LS: "LS";
|
|
1069
|
+
readonly LT: "LT";
|
|
1070
|
+
readonly LU: "LU";
|
|
1071
|
+
readonly LV: "LV";
|
|
1072
|
+
readonly LY: "LY";
|
|
1073
|
+
readonly MA: "MA";
|
|
1074
|
+
readonly MC: "MC";
|
|
1075
|
+
readonly MD: "MD";
|
|
1076
|
+
readonly ME: "ME";
|
|
1077
|
+
readonly MF: "MF";
|
|
1078
|
+
readonly MG: "MG";
|
|
1079
|
+
readonly MH: "MH";
|
|
1080
|
+
readonly MK: "MK";
|
|
1081
|
+
readonly ML: "ML";
|
|
1082
|
+
readonly MM: "MM";
|
|
1083
|
+
readonly MN: "MN";
|
|
1084
|
+
readonly MO: "MO";
|
|
1085
|
+
readonly MP: "MP";
|
|
1086
|
+
readonly MQ: "MQ";
|
|
1087
|
+
readonly MR: "MR";
|
|
1088
|
+
readonly MS: "MS";
|
|
1089
|
+
readonly MT: "MT";
|
|
1090
|
+
readonly MU: "MU";
|
|
1091
|
+
readonly MV: "MV";
|
|
1092
|
+
readonly MW: "MW";
|
|
1093
|
+
readonly MX: "MX";
|
|
1094
|
+
readonly MY: "MY";
|
|
1095
|
+
readonly MZ: "MZ";
|
|
1096
|
+
readonly NA: "NA";
|
|
1097
|
+
readonly NC: "NC";
|
|
1098
|
+
readonly NE: "NE";
|
|
1099
|
+
readonly NF: "NF";
|
|
1100
|
+
readonly NG: "NG";
|
|
1101
|
+
readonly NI: "NI";
|
|
1102
|
+
readonly NL: "NL";
|
|
1103
|
+
readonly NO: "NO";
|
|
1104
|
+
readonly NP: "NP";
|
|
1105
|
+
readonly NR: "NR";
|
|
1106
|
+
readonly NU: "NU";
|
|
1107
|
+
readonly NZ: "NZ";
|
|
1108
|
+
readonly OM: "OM";
|
|
1109
|
+
readonly PA: "PA";
|
|
1110
|
+
readonly PE: "PE";
|
|
1111
|
+
readonly PF: "PF";
|
|
1112
|
+
readonly PG: "PG";
|
|
1113
|
+
readonly PH: "PH";
|
|
1114
|
+
readonly PK: "PK";
|
|
1115
|
+
readonly PL: "PL";
|
|
1116
|
+
readonly PM: "PM";
|
|
1117
|
+
readonly PN: "PN";
|
|
1118
|
+
readonly PR: "PR";
|
|
1119
|
+
readonly PS: "PS";
|
|
1120
|
+
readonly PT: "PT";
|
|
1121
|
+
readonly PW: "PW";
|
|
1122
|
+
readonly PY: "PY";
|
|
1123
|
+
readonly QA: "QA";
|
|
1124
|
+
readonly RE: "RE";
|
|
1125
|
+
readonly RO: "RO";
|
|
1126
|
+
readonly RS: "RS";
|
|
1127
|
+
readonly RU: "RU";
|
|
1128
|
+
readonly RW: "RW";
|
|
1129
|
+
readonly SA: "SA";
|
|
1130
|
+
readonly SB: "SB";
|
|
1131
|
+
readonly SC: "SC";
|
|
1132
|
+
readonly SD: "SD";
|
|
1133
|
+
readonly SE: "SE";
|
|
1134
|
+
readonly SG: "SG";
|
|
1135
|
+
readonly SH: "SH";
|
|
1136
|
+
readonly SI: "SI";
|
|
1137
|
+
readonly SJ: "SJ";
|
|
1138
|
+
readonly SK: "SK";
|
|
1139
|
+
readonly SL: "SL";
|
|
1140
|
+
readonly SM: "SM";
|
|
1141
|
+
readonly SN: "SN";
|
|
1142
|
+
readonly SO: "SO";
|
|
1143
|
+
readonly SR: "SR";
|
|
1144
|
+
readonly SS: "SS";
|
|
1145
|
+
readonly ST: "ST";
|
|
1146
|
+
readonly SV: "SV";
|
|
1147
|
+
readonly SX: "SX";
|
|
1148
|
+
readonly SY: "SY";
|
|
1149
|
+
readonly SZ: "SZ";
|
|
1150
|
+
readonly TC: "TC";
|
|
1151
|
+
readonly TD: "TD";
|
|
1152
|
+
readonly TF: "TF";
|
|
1153
|
+
readonly TG: "TG";
|
|
1154
|
+
readonly TH: "TH";
|
|
1155
|
+
readonly TJ: "TJ";
|
|
1156
|
+
readonly TK: "TK";
|
|
1157
|
+
readonly TL: "TL";
|
|
1158
|
+
readonly TM: "TM";
|
|
1159
|
+
readonly TN: "TN";
|
|
1160
|
+
readonly TO: "TO";
|
|
1161
|
+
readonly TR: "TR";
|
|
1162
|
+
readonly TT: "TT";
|
|
1163
|
+
readonly TV: "TV";
|
|
1164
|
+
readonly TW: "TW";
|
|
1165
|
+
readonly TZ: "TZ";
|
|
1166
|
+
readonly UA: "UA";
|
|
1167
|
+
readonly UG: "UG";
|
|
1168
|
+
readonly UM: "UM";
|
|
1169
|
+
readonly US: "US";
|
|
1170
|
+
readonly UY: "UY";
|
|
1171
|
+
readonly UZ: "UZ";
|
|
1172
|
+
readonly VA: "VA";
|
|
1173
|
+
readonly VC: "VC";
|
|
1174
|
+
readonly VE: "VE";
|
|
1175
|
+
readonly VG: "VG";
|
|
1176
|
+
readonly VI: "VI";
|
|
1177
|
+
readonly VN: "VN";
|
|
1178
|
+
readonly VU: "VU";
|
|
1179
|
+
readonly WF: "WF";
|
|
1180
|
+
readonly WS: "WS";
|
|
1181
|
+
readonly YE: "YE";
|
|
1182
|
+
readonly YT: "YT";
|
|
1183
|
+
readonly ZA: "ZA";
|
|
1184
|
+
readonly ZM: "ZM";
|
|
1185
|
+
readonly ZW: "ZW";
|
|
1186
|
+
};
|
|
1187
|
+
declare type Country = typeof Country[keyof typeof Country];
|
|
1188
|
+
|
|
1189
|
+
declare enum CompetitionStatus {
|
|
1190
|
+
UPCOMING = "upcoming",
|
|
1191
|
+
ONGOING = "ongoing",
|
|
1192
|
+
FINISHED = "finished"
|
|
1193
|
+
}
|
|
1194
|
+
declare type CompetitionStatusPropsMap = {
|
|
1195
|
+
[status in CompetitionStatus]: {
|
|
1196
|
+
name: string;
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
declare type CompetitionTypePropsMap = {
|
|
1200
|
+
[type in CompetitionType]: {
|
|
1201
|
+
name: string;
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
declare const CompetitionTypeProps: CompetitionTypePropsMap;
|
|
1205
|
+
declare const CompetitionStatusProps: CompetitionStatusPropsMap;
|
|
1206
|
+
declare const COMPETITION_TYPES: ("classic" | "team")[];
|
|
1207
|
+
declare const COMPETITION_STATUSES: CompetitionStatus[];
|
|
1208
|
+
declare function findCompetitionType(typeName: string): CompetitionType | null;
|
|
1209
|
+
declare function findCompetitionStatus(statusName: string): CompetitionStatus | null;
|
|
1210
|
+
|
|
1211
|
+
interface CountryDetails {
|
|
1212
|
+
code: Country;
|
|
1213
|
+
name: string;
|
|
1214
|
+
}
|
|
1215
|
+
declare type CountryPropsMap = {
|
|
1216
|
+
[c in Country]: CountryDetails;
|
|
1217
|
+
};
|
|
1218
|
+
declare const CountryProps: CountryPropsMap;
|
|
1219
|
+
declare const COUNTRY_CODES: ("AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW")[];
|
|
1220
|
+
declare function findCountry(countryIdentifier: string): CountryDetails | undefined;
|
|
1221
|
+
declare function findCountryByName(countryName: string): CountryDetails | undefined;
|
|
1222
|
+
declare function findCountryByCode(countryCode: string): CountryDetails | undefined;
|
|
1223
|
+
|
|
1224
|
+
declare const MAX_LEVEL = 99;
|
|
1225
|
+
declare const MAX_VIRTUAL_LEVEL = 126;
|
|
1226
|
+
declare const MAX_SKILL_EXP = 200000000;
|
|
1227
|
+
declare const SKILL_EXP_AT_99 = 13034431;
|
|
1228
|
+
declare const CAPPED_MAX_TOTAL_XP: number;
|
|
1229
|
+
declare function getExpForLevel(level: number): number;
|
|
1230
|
+
declare function getLevel(exp: number, virtual?: boolean): number;
|
|
1231
|
+
declare function getCombatLevel(attack: number, strength: number, defence: number, ranged: number, magic: number, hitpoints: number, prayer: number): number;
|
|
1232
|
+
|
|
1233
|
+
declare const GROUP_ROLES: ("magic" | "slayer" | "hunter" | "achiever" | "adamant" | "adept" | "administrator" | "admiral" | "adventurer" | "air" | "anchor" | "apothecary" | "archer" | "armadylean" | "artillery" | "artisan" | "asgarnian" | "assassin" | "assistant" | "astral" | "athlete" | "attacker" | "bandit" | "bandosian" | "barbarian" | "battlemage" | "beast" | "berserker" | "blisterwood" | "blood" | "blue" | "bob" | "body" | "brassican" | "brawler" | "brigadier" | "brigand" | "bronze" | "bruiser" | "bulwark" | "burglar" | "burnt" | "cadet" | "captain" | "carry" | "champion" | "chaos" | "cleric" | "collector" | "colonel" | "commander" | "competitor" | "completionist" | "constructor" | "cook" | "coordinator" | "corporal" | "cosmic" | "councillor" | "crafter" | "crew" | "crusader" | "cutpurse" | "death" | "defender" | "defiler" | "deputy_owner" | "destroyer" | "diamond" | "diseased" | "doctor" | "dogsbody" | "dragon" | "dragonstone" | "druid" | "duellist" | "earth" | "elite" | "emerald" | "enforcer" | "epic" | "executive" | "expert" | "explorer" | "farmer" | "feeder" | "fighter" | "fire" | "firemaker" | "firestarter" | "fisher" | "fletcher" | "forager" | "fremennik" | "gamer" | "gatherer" | "general" | "gnome_child" | "gnome_elder" | "goblin" | "gold" | "goon" | "green" | "grey" | "guardian" | "guthixian" | "harpoon" | "healer" | "hellcat" | "helper" | "herbologist" | "hero" | "holy" | "hoarder" | "ignitor" | "illusionist" | "imp" | "infantry" | "inquisitor" | "iron" | "jade" | "justiciar" | "kandarin" | "karamjan" | "kharidian" | "kitten" | "knight" | "labourer" | "law" | "leader" | "learner" | "legacy" | "legend" | "legionnaire" | "lieutenant" | "looter" | "lumberjack" | "magician" | "major" | "maple" | "marshal" | "master" | "maxed" | "mediator" | "medic" | "mentor" | "member" | "merchant" | "mind" | "miner" | "minion" | "misthalinian" | "mithril" | "moderator" | "monarch" | "morytanian" | "mystic" | "myth" | "natural" | "nature" | "necromancer" | "ninja" | "noble" | "novice" | "nurse" | "oak" | "officer" | "onyx" | "opal" | "oracle" | "orange" | "owner" | "page" | "paladin" | "pawn" | "pilgrim" | "pine" | "pink" | "prefect" | "priest" | "private" | "prodigy" | "proselyte" | "prospector" | "protector" | "pure" | "purple" | "pyromancer" | "quester" | "racer" | "raider" | "ranger" | "record_chaser" | "recruit" | "recruiter" | "red_topaz" | "red" | "rogue" | "ruby" | "rune" | "runecrafter" | "sage" | "sapphire" | "saradominist" | "saviour" | "scavenger" | "scholar" | "scourge" | "scout" | "scribe" | "seer" | "senator" | "sentry" | "serenist" | "sergeant" | "shaman" | "sheriff" | "short_green_guy" | "skiller" | "skulled" | "smiter" | "smith" | "smuggler" | "sniper" | "soul" | "specialist" | "speed_runner" | "spellcaster" | "squire" | "staff" | "steel" | "strider" | "striker" | "summoner" | "superior" | "supervisor" | "teacher" | "templar" | "therapist" | "thief" | "tirannian" | "trialist" | "trickster" | "tzkal" | "tztok" | "unholy" | "vagrant" | "vanguard" | "walker" | "wanderer" | "warden" | "warlock" | "warrior" | "water" | "wild" | "willow" | "wily" | "wintumber" | "witch" | "wizard" | "worker" | "wrath" | "xerician" | "yellow" | "yew" | "zamorakian" | "zarosian" | "zealot" | "zenyte")[];
|
|
1234
|
+
declare const PRIVELEGED_GROUP_ROLES: GroupRole[];
|
|
1235
|
+
declare type GroupRolePropsMap = {
|
|
1236
|
+
[role in GroupRole]: {
|
|
1237
|
+
name: string;
|
|
1238
|
+
isPriveleged: boolean;
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
declare const GroupRoleProps: GroupRolePropsMap;
|
|
1242
|
+
declare function findGroupRole(roleName: string): GroupRole | null;
|
|
1243
|
+
|
|
1244
|
+
declare enum MetricType {
|
|
1245
|
+
SKILL = "skill",
|
|
1246
|
+
BOSS = "boss",
|
|
1247
|
+
ACTIVITY = "activity",
|
|
1248
|
+
VIRTUAL = "virtual"
|
|
1249
|
+
}
|
|
1250
|
+
declare enum MetricMeasure {
|
|
1251
|
+
EXPERIENCE = "experience",
|
|
1252
|
+
KILLS = "kills",
|
|
1253
|
+
SCORE = "score",
|
|
1254
|
+
VALUE = "value"
|
|
1255
|
+
}
|
|
1256
|
+
interface SkillProperties {
|
|
1257
|
+
name: string;
|
|
1258
|
+
isCombat: boolean;
|
|
1259
|
+
isMembers: boolean;
|
|
1260
|
+
type: MetricType;
|
|
1261
|
+
measure: MetricMeasure;
|
|
1262
|
+
}
|
|
1263
|
+
interface BossProperties {
|
|
1264
|
+
name: string;
|
|
1265
|
+
minimumKc: number;
|
|
1266
|
+
isMembers: boolean;
|
|
1267
|
+
type: MetricType;
|
|
1268
|
+
measure: MetricMeasure;
|
|
1269
|
+
}
|
|
1270
|
+
interface VirtualProperties {
|
|
1271
|
+
name: string;
|
|
1272
|
+
type: MetricType;
|
|
1273
|
+
measure: MetricMeasure;
|
|
1274
|
+
}
|
|
1275
|
+
declare const MetricProps: {
|
|
1276
|
+
ehp: VirtualProperties;
|
|
1277
|
+
ehb: VirtualProperties;
|
|
1278
|
+
abyssal_sire: BossProperties;
|
|
1279
|
+
alchemical_hydra: BossProperties;
|
|
1280
|
+
barrows_chests: BossProperties;
|
|
1281
|
+
bryophyta: BossProperties;
|
|
1282
|
+
callisto: BossProperties;
|
|
1283
|
+
cerberus: BossProperties;
|
|
1284
|
+
chambers_of_xeric: BossProperties;
|
|
1285
|
+
chambers_of_xeric_challenge_mode: BossProperties;
|
|
1286
|
+
chaos_elemental: BossProperties;
|
|
1287
|
+
chaos_fanatic: BossProperties;
|
|
1288
|
+
commander_zilyana: BossProperties;
|
|
1289
|
+
corporeal_beast: BossProperties;
|
|
1290
|
+
crazy_archaeologist: BossProperties;
|
|
1291
|
+
dagannoth_prime: BossProperties;
|
|
1292
|
+
dagannoth_rex: BossProperties;
|
|
1293
|
+
dagannoth_supreme: BossProperties;
|
|
1294
|
+
deranged_archaeologist: BossProperties;
|
|
1295
|
+
general_graardor: BossProperties;
|
|
1296
|
+
giant_mole: BossProperties;
|
|
1297
|
+
grotesque_guardians: BossProperties;
|
|
1298
|
+
hespori: BossProperties;
|
|
1299
|
+
kalphite_queen: BossProperties;
|
|
1300
|
+
king_black_dragon: BossProperties;
|
|
1301
|
+
kraken: BossProperties;
|
|
1302
|
+
kreearra: BossProperties;
|
|
1303
|
+
kril_tsutsaroth: BossProperties;
|
|
1304
|
+
mimic: BossProperties;
|
|
1305
|
+
nex: BossProperties;
|
|
1306
|
+
nightmare: BossProperties;
|
|
1307
|
+
phosanis_nightmare: BossProperties;
|
|
1308
|
+
obor: BossProperties;
|
|
1309
|
+
sarachnis: BossProperties;
|
|
1310
|
+
scorpia: BossProperties;
|
|
1311
|
+
skotizo: BossProperties;
|
|
1312
|
+
tempoross: BossProperties;
|
|
1313
|
+
the_gauntlet: BossProperties;
|
|
1314
|
+
the_corrupted_gauntlet: BossProperties;
|
|
1315
|
+
theatre_of_blood: BossProperties;
|
|
1316
|
+
theatre_of_blood_hard_mode: BossProperties;
|
|
1317
|
+
thermonuclear_smoke_devil: BossProperties;
|
|
1318
|
+
tombs_of_amascut: BossProperties;
|
|
1319
|
+
tombs_of_amascut_expert: BossProperties;
|
|
1320
|
+
tzkal_zuk: BossProperties;
|
|
1321
|
+
tztok_jad: BossProperties;
|
|
1322
|
+
venenatis: BossProperties;
|
|
1323
|
+
vetion: BossProperties;
|
|
1324
|
+
vorkath: BossProperties;
|
|
1325
|
+
wintertodt: BossProperties;
|
|
1326
|
+
zalcano: BossProperties;
|
|
1327
|
+
zulrah: BossProperties;
|
|
1328
|
+
overall: SkillProperties;
|
|
1329
|
+
attack: SkillProperties;
|
|
1330
|
+
defence: SkillProperties;
|
|
1331
|
+
strength: SkillProperties;
|
|
1332
|
+
hitpoints: SkillProperties;
|
|
1333
|
+
ranged: SkillProperties;
|
|
1334
|
+
prayer: SkillProperties;
|
|
1335
|
+
magic: SkillProperties;
|
|
1336
|
+
cooking: SkillProperties;
|
|
1337
|
+
woodcutting: SkillProperties;
|
|
1338
|
+
fletching: SkillProperties;
|
|
1339
|
+
fishing: SkillProperties;
|
|
1340
|
+
firemaking: SkillProperties;
|
|
1341
|
+
crafting: SkillProperties;
|
|
1342
|
+
smithing: SkillProperties;
|
|
1343
|
+
mining: SkillProperties;
|
|
1344
|
+
herblore: SkillProperties;
|
|
1345
|
+
agility: SkillProperties;
|
|
1346
|
+
thieving: SkillProperties;
|
|
1347
|
+
slayer: SkillProperties;
|
|
1348
|
+
farming: SkillProperties;
|
|
1349
|
+
runecrafting: SkillProperties;
|
|
1350
|
+
hunter: SkillProperties;
|
|
1351
|
+
construction: SkillProperties;
|
|
1352
|
+
};
|
|
1353
|
+
declare const METRICS: string[];
|
|
1354
|
+
declare const SKILLS: ("overall" | "attack" | "defence" | "strength" | "hitpoints" | "ranged" | "prayer" | "magic" | "cooking" | "woodcutting" | "fletching" | "fishing" | "firemaking" | "crafting" | "smithing" | "mining" | "herblore" | "agility" | "thieving" | "slayer" | "farming" | "runecrafting" | "hunter" | "construction")[];
|
|
1355
|
+
declare const BOSSES: ("abyssal_sire" | "alchemical_hydra" | "barrows_chests" | "bryophyta" | "callisto" | "cerberus" | "chambers_of_xeric" | "chambers_of_xeric_challenge_mode" | "chaos_elemental" | "chaos_fanatic" | "commander_zilyana" | "corporeal_beast" | "crazy_archaeologist" | "dagannoth_prime" | "dagannoth_rex" | "dagannoth_supreme" | "deranged_archaeologist" | "general_graardor" | "giant_mole" | "grotesque_guardians" | "hespori" | "kalphite_queen" | "king_black_dragon" | "kraken" | "kreearra" | "kril_tsutsaroth" | "mimic" | "nex" | "nightmare" | "phosanis_nightmare" | "obor" | "sarachnis" | "scorpia" | "skotizo" | "tempoross" | "the_gauntlet" | "the_corrupted_gauntlet" | "theatre_of_blood" | "theatre_of_blood_hard_mode" | "thermonuclear_smoke_devil" | "tombs_of_amascut" | "tombs_of_amascut_expert" | "tzkal_zuk" | "tztok_jad" | "venenatis" | "vetion" | "vorkath" | "wintertodt" | "zalcano" | "zulrah")[];
|
|
1356
|
+
declare const ACTIVITIES: string[];
|
|
1357
|
+
declare const VIRTUALS: ("ehp" | "ehb")[];
|
|
1358
|
+
declare const REAL_SKILLS: ("overall" | "attack" | "defence" | "strength" | "hitpoints" | "ranged" | "prayer" | "magic" | "cooking" | "woodcutting" | "fletching" | "fishing" | "firemaking" | "crafting" | "smithing" | "mining" | "herblore" | "agility" | "thieving" | "slayer" | "farming" | "runecrafting" | "hunter" | "construction")[];
|
|
1359
|
+
declare const F2P_BOSSES: ("abyssal_sire" | "alchemical_hydra" | "barrows_chests" | "bryophyta" | "callisto" | "cerberus" | "chambers_of_xeric" | "chambers_of_xeric_challenge_mode" | "chaos_elemental" | "chaos_fanatic" | "commander_zilyana" | "corporeal_beast" | "crazy_archaeologist" | "dagannoth_prime" | "dagannoth_rex" | "dagannoth_supreme" | "deranged_archaeologist" | "general_graardor" | "giant_mole" | "grotesque_guardians" | "hespori" | "kalphite_queen" | "king_black_dragon" | "kraken" | "kreearra" | "kril_tsutsaroth" | "mimic" | "nex" | "nightmare" | "phosanis_nightmare" | "obor" | "sarachnis" | "scorpia" | "skotizo" | "tempoross" | "the_gauntlet" | "the_corrupted_gauntlet" | "theatre_of_blood" | "theatre_of_blood_hard_mode" | "thermonuclear_smoke_devil" | "tombs_of_amascut" | "tombs_of_amascut_expert" | "tzkal_zuk" | "tztok_jad" | "venenatis" | "vetion" | "vorkath" | "wintertodt" | "zalcano" | "zulrah")[];
|
|
1360
|
+
declare const MEMBER_SKILLS: ("overall" | "attack" | "defence" | "strength" | "hitpoints" | "ranged" | "prayer" | "magic" | "cooking" | "woodcutting" | "fletching" | "fishing" | "firemaking" | "crafting" | "smithing" | "mining" | "herblore" | "agility" | "thieving" | "slayer" | "farming" | "runecrafting" | "hunter" | "construction")[];
|
|
1361
|
+
declare const COMBAT_SKILLS: ("overall" | "attack" | "defence" | "strength" | "hitpoints" | "ranged" | "prayer" | "magic" | "cooking" | "woodcutting" | "fletching" | "fishing" | "firemaking" | "crafting" | "smithing" | "mining" | "herblore" | "agility" | "thieving" | "slayer" | "farming" | "runecrafting" | "hunter" | "construction")[];
|
|
1362
|
+
declare function findMetric(metricName: string): Metric | null;
|
|
1363
|
+
declare function isSkill(metric: Metric): boolean;
|
|
1364
|
+
declare function isActivity(metric: Metric): boolean;
|
|
1365
|
+
declare function isBoss(metric: Metric): boolean;
|
|
1366
|
+
declare function isVirtualMetric(metric: Metric): boolean;
|
|
1367
|
+
declare function getMetricRankKey(metric: Metric): string;
|
|
1368
|
+
declare function getMetricValueKey(metric: Metric): string;
|
|
1369
|
+
declare function getMetricMeasure(metric: Metric): any;
|
|
1370
|
+
declare function getMetricName(metric: Metric): any;
|
|
1371
|
+
declare function getMinimumBossKc(metric: Metric): number;
|
|
1372
|
+
declare function getParentVirtualMetric(metric: Metric): "ehp" | "ehb";
|
|
1373
|
+
declare function parseMetricAbbreviation(abbreviation: string): string | null;
|
|
1374
|
+
|
|
1375
|
+
declare type PeriodPropsMap = {
|
|
1376
|
+
[period in Period]: {
|
|
1377
|
+
name: string;
|
|
1378
|
+
milliseconds: number;
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
declare const PeriodProps: PeriodPropsMap;
|
|
1382
|
+
declare const PERIODS: ("five_min" | "day" | "week" | "month" | "year")[];
|
|
1383
|
+
declare function findPeriod(periodName: string): Period | null;
|
|
1384
|
+
declare function parsePeriodExpression(periodExpression: string): {
|
|
1385
|
+
expression: string;
|
|
1386
|
+
durationMs: number;
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
declare type PlayerTypePropsMap = {
|
|
1390
|
+
[playerType in PlayerType]: {
|
|
1391
|
+
name: string;
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1394
|
+
declare type PlayerBuildPropsMap = {
|
|
1395
|
+
[playerBuild in PlayerBuild]: {
|
|
1396
|
+
name: string;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
declare const PlayerTypeProps: PlayerTypePropsMap;
|
|
1400
|
+
declare const PlayerBuildProps: PlayerBuildPropsMap;
|
|
1401
|
+
declare const PLAYER_TYPES: ("unknown" | "regular" | "ironman" | "hardcore" | "ultimate")[];
|
|
1402
|
+
declare const PLAYER_BUILDS: ("main" | "f2p" | "lvl3" | "zerker" | "def1" | "hp10")[];
|
|
1403
|
+
declare function findPlayerType(typeName: string): PlayerType | null;
|
|
1404
|
+
declare function findPlayerBuild(buildName: string): PlayerBuild | null;
|
|
1405
|
+
|
|
1406
|
+
declare function formatNumber(num: number, withLetters?: boolean): string | -1;
|
|
1407
|
+
declare function padNumber(value: number): string;
|
|
1408
|
+
declare function round(num: number, cases: number): number;
|
|
1409
|
+
|
|
1410
|
+
declare type Achievement = Omit<Prisma_Base_Achievement, 'threshold'> & {
|
|
1411
|
+
threshold: number;
|
|
1412
|
+
};
|
|
1413
|
+
declare type Record = Omit<Prisma_Base_Record, 'value'> & {
|
|
1414
|
+
value: number;
|
|
1415
|
+
};
|
|
1416
|
+
declare type Snapshot = Omit<Prisma_Base_Snapshot, 'overallExperience'> & {
|
|
1417
|
+
overallExperience: number;
|
|
1418
|
+
};
|
|
1419
|
+
declare type Player = Omit<Prisma_Base_Player, 'exp'> & {
|
|
1420
|
+
exp: number;
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
interface AchievementTemplate {
|
|
1424
|
+
name: string;
|
|
1425
|
+
metric: Metric;
|
|
1426
|
+
measure?: string;
|
|
1427
|
+
thresholds: number[];
|
|
1428
|
+
getCurrentValue?: (snapshot: Snapshot, threshold: number) => number;
|
|
1429
|
+
}
|
|
1430
|
+
interface AchievementDefinition {
|
|
1431
|
+
name: string;
|
|
1432
|
+
metric: Metric;
|
|
1433
|
+
measure: string;
|
|
1434
|
+
threshold: number;
|
|
1435
|
+
validate: (snapshot: Snapshot) => boolean;
|
|
1436
|
+
getCurrentValue: (snapshot: Snapshot) => number;
|
|
1437
|
+
}
|
|
1438
|
+
interface ExtendedAchievement extends Achievement {
|
|
1439
|
+
measure: string;
|
|
1440
|
+
}
|
|
1441
|
+
interface AchievementProgress extends ExtendedAchievement {
|
|
1442
|
+
currentValue: number;
|
|
1443
|
+
absoluteProgress: number;
|
|
1444
|
+
relativeProgress: number;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
interface MeasuredDeltaProgress {
|
|
1448
|
+
start: number;
|
|
1449
|
+
end: number;
|
|
1450
|
+
gained: number;
|
|
1451
|
+
}
|
|
1452
|
+
interface SkillDelta {
|
|
1453
|
+
metric: Skill;
|
|
1454
|
+
ehp: MeasuredDeltaProgress;
|
|
1455
|
+
rank: MeasuredDeltaProgress;
|
|
1456
|
+
level: MeasuredDeltaProgress;
|
|
1457
|
+
experience: MeasuredDeltaProgress;
|
|
1458
|
+
}
|
|
1459
|
+
interface BossDelta {
|
|
1460
|
+
metric: Boss;
|
|
1461
|
+
ehb: MeasuredDeltaProgress;
|
|
1462
|
+
rank: MeasuredDeltaProgress;
|
|
1463
|
+
kills: MeasuredDeltaProgress;
|
|
1464
|
+
}
|
|
1465
|
+
interface ActivityDelta {
|
|
1466
|
+
metric: Activity;
|
|
1467
|
+
rank: MeasuredDeltaProgress;
|
|
1468
|
+
score: MeasuredDeltaProgress;
|
|
1469
|
+
}
|
|
1470
|
+
interface VirtualDelta {
|
|
1471
|
+
metric: Virtual;
|
|
1472
|
+
rank: MeasuredDeltaProgress;
|
|
1473
|
+
value: MeasuredDeltaProgress;
|
|
1474
|
+
}
|
|
1475
|
+
interface PlayerDeltasArray {
|
|
1476
|
+
skills: Array<SkillDelta>;
|
|
1477
|
+
bosses: Array<BossDelta>;
|
|
1478
|
+
activities: Array<ActivityDelta>;
|
|
1479
|
+
virtuals: Array<VirtualDelta>;
|
|
1480
|
+
}
|
|
1481
|
+
interface PlayerDeltasMap {
|
|
1482
|
+
skills: {
|
|
1483
|
+
[skill in Skill]?: SkillDelta;
|
|
1484
|
+
};
|
|
1485
|
+
bosses: {
|
|
1486
|
+
[boss in Boss]?: BossDelta;
|
|
1487
|
+
};
|
|
1488
|
+
activities: {
|
|
1489
|
+
[activity in Activity]?: ActivityDelta;
|
|
1490
|
+
};
|
|
1491
|
+
virtuals: {
|
|
1492
|
+
[virtual in Virtual]?: VirtualDelta;
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
interface DeltaLeaderboardEntry {
|
|
1496
|
+
player: Player;
|
|
1497
|
+
playerId: number;
|
|
1498
|
+
startDate: Date;
|
|
1499
|
+
endDate: Date;
|
|
1500
|
+
gained: number;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
declare type SnapshotFragment = Omit<Snapshot, 'id'>;
|
|
1504
|
+
declare enum SnapshotDataSource {
|
|
1505
|
+
HISCORES = 0,
|
|
1506
|
+
CRYSTAL_MATH_LABS = 1
|
|
1507
|
+
}
|
|
1508
|
+
interface SkillValue {
|
|
1509
|
+
metric: Skill;
|
|
1510
|
+
rank: number;
|
|
1511
|
+
level: number;
|
|
1512
|
+
experience: number;
|
|
1513
|
+
ehp?: number;
|
|
1514
|
+
}
|
|
1515
|
+
interface BossValue {
|
|
1516
|
+
metric: Boss;
|
|
1517
|
+
rank: number;
|
|
1518
|
+
kills: number;
|
|
1519
|
+
ehb?: number;
|
|
1520
|
+
}
|
|
1521
|
+
interface ActivityValue {
|
|
1522
|
+
metric: Activity;
|
|
1523
|
+
rank: number;
|
|
1524
|
+
score: number;
|
|
1525
|
+
}
|
|
1526
|
+
interface VirtualValue {
|
|
1527
|
+
metric: Virtual;
|
|
1528
|
+
rank: number;
|
|
1529
|
+
value: number;
|
|
1530
|
+
}
|
|
1531
|
+
interface FormattedSnapshot {
|
|
1532
|
+
id: number;
|
|
1533
|
+
playerId: number;
|
|
1534
|
+
createdAt: Date;
|
|
1535
|
+
importedAt: Date | null;
|
|
1536
|
+
data: {
|
|
1537
|
+
skills: {
|
|
1538
|
+
[skill in Skill]?: SkillValue;
|
|
1539
|
+
};
|
|
1540
|
+
bosses: {
|
|
1541
|
+
[boss in Boss]?: BossValue;
|
|
1542
|
+
};
|
|
1543
|
+
activities: {
|
|
1544
|
+
[activity in Activity]?: ActivityValue;
|
|
1545
|
+
};
|
|
1546
|
+
virtuals: {
|
|
1547
|
+
[virtual in Virtual]?: VirtualValue;
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
interface GroupListItem extends Omit<Group, 'verificationHash'> {
|
|
1553
|
+
memberCount: number;
|
|
1554
|
+
}
|
|
1555
|
+
interface GroupWithMemberships extends GroupListItem {
|
|
1556
|
+
memberships: MembershipWithPlayer[];
|
|
1557
|
+
}
|
|
1558
|
+
interface MembershipWithGroup extends Membership {
|
|
1559
|
+
group: GroupListItem;
|
|
1560
|
+
}
|
|
1561
|
+
interface MembershipWithPlayer extends Membership {
|
|
1562
|
+
player: Player;
|
|
1563
|
+
}
|
|
1564
|
+
interface MemberInput {
|
|
1565
|
+
username: string;
|
|
1566
|
+
role: string | GroupRole;
|
|
1567
|
+
}
|
|
1568
|
+
interface SkillHiscoresItem {
|
|
1569
|
+
rank: number;
|
|
1570
|
+
level: number;
|
|
1571
|
+
experience: number;
|
|
1572
|
+
}
|
|
1573
|
+
interface BossHiscoresItem {
|
|
1574
|
+
rank: number;
|
|
1575
|
+
kills: number;
|
|
1576
|
+
}
|
|
1577
|
+
interface ActivityHiscoresItem {
|
|
1578
|
+
rank: number;
|
|
1579
|
+
score: number;
|
|
1580
|
+
}
|
|
1581
|
+
interface VirtualHiscoresItem {
|
|
1582
|
+
rank: number;
|
|
1583
|
+
value: number;
|
|
1584
|
+
}
|
|
1585
|
+
interface GroupHiscoresEntry {
|
|
1586
|
+
player: Player;
|
|
1587
|
+
data: SkillHiscoresItem | BossHiscoresItem | ActivityHiscoresItem | VirtualHiscoresItem;
|
|
1588
|
+
}
|
|
1589
|
+
interface GroupStatistics {
|
|
1590
|
+
maxedCombatCount: number;
|
|
1591
|
+
maxedTotalCount: number;
|
|
1592
|
+
maxed200msCount: number;
|
|
1593
|
+
averageStats: FormattedSnapshot;
|
|
1594
|
+
}
|
|
1595
|
+
declare enum MigrationDataSource {
|
|
1596
|
+
TEMPLE_OSRS = 0,
|
|
1597
|
+
CRYSTAL_MATH_LABS = 1
|
|
1598
|
+
}
|
|
1599
|
+
interface CMLGroupData {
|
|
1600
|
+
name: string;
|
|
1601
|
+
members: string[];
|
|
1602
|
+
}
|
|
1603
|
+
interface TempleGroupData {
|
|
1604
|
+
name: string;
|
|
1605
|
+
members: string[];
|
|
1606
|
+
leaders: string[];
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
declare type CleanCompetition = Omit<Competition, 'verificationHash'>;
|
|
1610
|
+
declare type CleanParticipation = Omit<Participation, 'startSnapshotId' | 'endSnapshotId'>;
|
|
1611
|
+
interface CompetitionListItem extends CleanCompetition {
|
|
1612
|
+
group?: GroupListItem;
|
|
1613
|
+
participantCount: number;
|
|
1614
|
+
}
|
|
1615
|
+
interface CompetitionDetails extends CompetitionListItem {
|
|
1616
|
+
participations: ParticipationWithPlayerAndProgress[];
|
|
1617
|
+
}
|
|
1618
|
+
interface CompetitionWithParticipations extends CompetitionListItem {
|
|
1619
|
+
participations: ParticipationWithPlayer[];
|
|
1620
|
+
}
|
|
1621
|
+
interface ParticipationWithCompetition extends CleanParticipation {
|
|
1622
|
+
competition: CompetitionListItem;
|
|
1623
|
+
}
|
|
1624
|
+
interface ParticipationWithPlayer extends CleanParticipation {
|
|
1625
|
+
player: Player;
|
|
1626
|
+
}
|
|
1627
|
+
interface ParticipationWithPlayerAndProgress extends ParticipationWithPlayer {
|
|
1628
|
+
progress: MeasuredDeltaProgress;
|
|
1629
|
+
}
|
|
1630
|
+
interface Team {
|
|
1631
|
+
name: string;
|
|
1632
|
+
participants: string[];
|
|
1633
|
+
}
|
|
1634
|
+
declare type Top5ProgressResult = Array<{
|
|
1635
|
+
player: Player;
|
|
1636
|
+
history: Array<{
|
|
1637
|
+
value: number;
|
|
1638
|
+
date: Date;
|
|
1639
|
+
}>;
|
|
1640
|
+
}>;
|
|
1641
|
+
|
|
1642
|
+
declare type ExperienceMap = {
|
|
1643
|
+
[skill in Skill]?: number;
|
|
1644
|
+
};
|
|
1645
|
+
declare type KillcountMap = {
|
|
1646
|
+
[boss in Boss]?: number;
|
|
1647
|
+
};
|
|
1648
|
+
declare type EfficiencyMap = {
|
|
1649
|
+
[m in Skill | Boss]?: number;
|
|
1650
|
+
};
|
|
1651
|
+
declare enum BonusType {
|
|
1652
|
+
START = 0,
|
|
1653
|
+
END = 1
|
|
1654
|
+
}
|
|
1655
|
+
declare enum EfficiencyAlgorithmType {
|
|
1656
|
+
MAIN = "main",
|
|
1657
|
+
IRONMAN = "ironman",
|
|
1658
|
+
LVL3 = "lvl3",
|
|
1659
|
+
F2P = "f2p"
|
|
1660
|
+
}
|
|
1661
|
+
interface SkillMetaConfig {
|
|
1662
|
+
skill: Skill;
|
|
1663
|
+
methods: Array<{
|
|
1664
|
+
rate: number;
|
|
1665
|
+
startExp: number;
|
|
1666
|
+
description: string;
|
|
1667
|
+
}>;
|
|
1668
|
+
bonuses: Bonus[];
|
|
1669
|
+
}
|
|
1670
|
+
interface BossMetaConfig {
|
|
1671
|
+
boss: Boss;
|
|
1672
|
+
rate: number;
|
|
1673
|
+
}
|
|
1674
|
+
interface Bonus {
|
|
1675
|
+
originSkill: Skill;
|
|
1676
|
+
bonusSkill: Skill;
|
|
1677
|
+
startExp: number;
|
|
1678
|
+
endExp: number;
|
|
1679
|
+
end: boolean;
|
|
1680
|
+
ratio: number;
|
|
1681
|
+
maxBonus?: number;
|
|
1682
|
+
}
|
|
1683
|
+
interface EfficiencyAlgorithm {
|
|
1684
|
+
skillMetas: SkillMetaConfig[];
|
|
1685
|
+
bossMetas: BossMetaConfig[];
|
|
1686
|
+
maximumEHP: number;
|
|
1687
|
+
maxedEHP: number;
|
|
1688
|
+
calculateEHB(killcountMap: KillcountMap): number;
|
|
1689
|
+
calculateEHP(experienceMap: ExperienceMap): number;
|
|
1690
|
+
calculateTTM(experienceMap: ExperienceMap): number;
|
|
1691
|
+
calculateTT200m(experienceMap: ExperienceMap): number;
|
|
1692
|
+
calculateSkillEHP(skill: Skill, experienceMap: ExperienceMap): number;
|
|
1693
|
+
calculateBossEHB(boss: Boss, killcountMap: KillcountMap): number;
|
|
1694
|
+
}
|
|
1695
|
+
declare type AlgorithmCache = {
|
|
1696
|
+
[a in EfficiencyAlgorithmType]: EfficiencyAlgorithm;
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1699
|
+
declare type NameChangeDetails = {
|
|
1700
|
+
nameChange: NameChange;
|
|
1701
|
+
data?: {
|
|
1702
|
+
isNewOnHiscores: boolean;
|
|
1703
|
+
isOldOnHiscores: boolean;
|
|
1704
|
+
isNewTracked: boolean;
|
|
1705
|
+
hasNegativeGains: boolean;
|
|
1706
|
+
timeDiff: number;
|
|
1707
|
+
hoursDiff: number;
|
|
1708
|
+
ehpDiff: number;
|
|
1709
|
+
ehbDiff: number;
|
|
1710
|
+
oldStats: FormattedSnapshot;
|
|
1711
|
+
newStats: FormattedSnapshot;
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
declare type PlayerResolvable = Partial<Pick<Player, 'id' | 'username'>>;
|
|
1716
|
+
interface PlayerDetails extends Player {
|
|
1717
|
+
combatLevel: number;
|
|
1718
|
+
latestSnapshot: FormattedSnapshot;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
declare type RecordLeaderboardEntry = Record & {
|
|
1722
|
+
player: Player;
|
|
1723
|
+
};
|
|
1724
|
+
|
|
1725
|
+
interface GenericCountMessageResponse {
|
|
1726
|
+
count: number;
|
|
1727
|
+
message: string;
|
|
1728
|
+
}
|
|
1729
|
+
interface GenericMessageResponse {
|
|
1730
|
+
message: string;
|
|
1731
|
+
}
|
|
1732
|
+
declare type TimeRangeFilter = {
|
|
1733
|
+
period: Period | string;
|
|
1734
|
+
} | {
|
|
1735
|
+
startDate: Date;
|
|
1736
|
+
endDate: Date;
|
|
1737
|
+
};
|
|
1738
|
+
interface BasePlayerFilter {
|
|
1739
|
+
country?: Country;
|
|
1740
|
+
playerType?: PlayerType;
|
|
1741
|
+
playerBuild?: PlayerBuild;
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* Groups Client Types
|
|
1745
|
+
*/
|
|
1746
|
+
interface GroupMemberFragment {
|
|
1747
|
+
username: string;
|
|
1748
|
+
role?: GroupRole;
|
|
1749
|
+
}
|
|
1750
|
+
interface CreateGroupPayload {
|
|
1751
|
+
name: string;
|
|
1752
|
+
clanChat?: string;
|
|
1753
|
+
homeworld?: number;
|
|
1754
|
+
description?: string;
|
|
1755
|
+
members: Array<GroupMemberFragment>;
|
|
1756
|
+
}
|
|
1757
|
+
declare type EditGroupPayload = Partial<CreateGroupPayload>;
|
|
1758
|
+
interface CreateGroupResponse {
|
|
1759
|
+
group: GroupWithMemberships;
|
|
1760
|
+
verificationCode: string;
|
|
1761
|
+
}
|
|
1762
|
+
interface ChangeMemberRolePayload {
|
|
1763
|
+
username: string;
|
|
1764
|
+
role: GroupRole;
|
|
1765
|
+
}
|
|
1766
|
+
declare type GetGroupGainsFilter = {
|
|
1767
|
+
metric: Metric;
|
|
1768
|
+
} & TimeRangeFilter;
|
|
1769
|
+
interface GroupRecordsFilter {
|
|
1770
|
+
metric: Metric;
|
|
1771
|
+
period: Period;
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Competitions Client Types
|
|
1775
|
+
*/
|
|
1776
|
+
interface CompetitionsSearchFilter {
|
|
1777
|
+
title?: string;
|
|
1778
|
+
metric?: Metric;
|
|
1779
|
+
type?: CompetitionType;
|
|
1780
|
+
status?: CompetitionStatus;
|
|
1781
|
+
}
|
|
1782
|
+
declare type CreateCompetitionPayload = {
|
|
1783
|
+
title: string;
|
|
1784
|
+
metric: Metric;
|
|
1785
|
+
startsAt: Date;
|
|
1786
|
+
endsAt: Date;
|
|
1787
|
+
groupId?: number;
|
|
1788
|
+
groupVerificationCode?: string;
|
|
1789
|
+
} & ({
|
|
1790
|
+
participants: string[];
|
|
1791
|
+
} | {
|
|
1792
|
+
teams: Team[];
|
|
1793
|
+
});
|
|
1794
|
+
declare type EditCompetitionPayload = {
|
|
1795
|
+
title?: string;
|
|
1796
|
+
metric?: Metric;
|
|
1797
|
+
startsAt?: Date;
|
|
1798
|
+
endsAt?: Date;
|
|
1799
|
+
participants?: string[];
|
|
1800
|
+
teams?: Team[];
|
|
1801
|
+
};
|
|
1802
|
+
declare type CreateCompetitionResponse = {
|
|
1803
|
+
competition: CompetitionWithParticipations;
|
|
1804
|
+
verificationCode: string;
|
|
1805
|
+
};
|
|
1806
|
+
/**
|
|
1807
|
+
* Name Changes Client Types
|
|
1808
|
+
*/
|
|
1809
|
+
declare type NameChangesSearchFilter = {
|
|
1810
|
+
username?: string;
|
|
1811
|
+
status?: NameChangeStatus;
|
|
1812
|
+
};
|
|
1813
|
+
/**
|
|
1814
|
+
* Record Client Types
|
|
1815
|
+
*/
|
|
1816
|
+
interface RecordLeaderboardFilter extends BasePlayerFilter {
|
|
1817
|
+
metric: Metric;
|
|
1818
|
+
period: Period | string;
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Player Client Types
|
|
1822
|
+
*/
|
|
1823
|
+
interface PlayerRecordsFilter {
|
|
1824
|
+
period: Period | string;
|
|
1825
|
+
metric: Metric;
|
|
1826
|
+
}
|
|
1827
|
+
interface AssertPlayerTypeResponse {
|
|
1828
|
+
player: Player;
|
|
1829
|
+
changed: boolean;
|
|
1830
|
+
}
|
|
1831
|
+
declare type GetPlayerGainsResponse<T extends PlayerDeltasArray | PlayerDeltasMap> = {
|
|
1832
|
+
startsAt: Date;
|
|
1833
|
+
endsAt: Date;
|
|
1834
|
+
data: T;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Efficiency Client Types
|
|
1838
|
+
*/
|
|
1839
|
+
declare type EfficiencyAlgorithmTypeUnion = `${EfficiencyAlgorithmType}`;
|
|
1840
|
+
interface EfficiencyLeaderboardsFilter extends BasePlayerFilter {
|
|
1841
|
+
metric: typeof Metric.EHP | typeof Metric.EHB | 'ehp+ehb';
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* Delta Client Types
|
|
1845
|
+
*/
|
|
1846
|
+
interface DeltaLeaderboardFilter extends BasePlayerFilter {
|
|
1847
|
+
metric: Metric;
|
|
1848
|
+
period: Period | string;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
declare class DeltasClient {
|
|
1852
|
+
/**
|
|
1853
|
+
* Fetches the current top leaderboard for a specific metric, period, playerType, playerBuild and country.
|
|
1854
|
+
* @returns A list of deltas, with their respective players, values and dates included.
|
|
1855
|
+
*/
|
|
1856
|
+
getDeltaLeaderboard(filter: DeltaLeaderboardFilter): Promise<DeltaLeaderboardEntry[]>;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
declare type PaginationOptions = Partial<{
|
|
1860
|
+
limit: number;
|
|
1861
|
+
offset: number;
|
|
1862
|
+
}>;
|
|
1863
|
+
|
|
1864
|
+
declare class GroupsClient {
|
|
1865
|
+
/**
|
|
1866
|
+
* Searches for groups that match a partial name.
|
|
1867
|
+
* @returns A list of groups.
|
|
1868
|
+
*/
|
|
1869
|
+
searchGroups(name: string, pagination?: PaginationOptions): Promise<GroupListItem[]>;
|
|
1870
|
+
/**
|
|
1871
|
+
* Fetches a group's details.
|
|
1872
|
+
* @returns A group details object.
|
|
1873
|
+
*/
|
|
1874
|
+
getGroupDetails(id: number): Promise<GroupListItem>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Fetches a group's entire members list.
|
|
1877
|
+
* @returns A list of memberships, with players included.
|
|
1878
|
+
*/
|
|
1879
|
+
getGroupMembers(id: number): Promise<MembershipWithPlayer[]>;
|
|
1880
|
+
/**
|
|
1881
|
+
* Creates a new group.
|
|
1882
|
+
* @returns The newly created group, and the verification code that authorizes future changes to it.
|
|
1883
|
+
*/
|
|
1884
|
+
createGroup(payload: CreateGroupPayload): Promise<CreateGroupResponse>;
|
|
1885
|
+
/**
|
|
1886
|
+
* Edits an existing group.
|
|
1887
|
+
* @returns The updated group.
|
|
1888
|
+
*/
|
|
1889
|
+
editGroup(id: number, payload: EditGroupPayload, verificationCode: string): Promise<GroupWithMemberships>;
|
|
1890
|
+
/**
|
|
1891
|
+
* Deletes an existing group.
|
|
1892
|
+
* @returns A confirmation message.
|
|
1893
|
+
*/
|
|
1894
|
+
deleteGroup(id: number, verificationCode: string): Promise<GenericMessageResponse>;
|
|
1895
|
+
/**
|
|
1896
|
+
* Adds all (valid) given usernames (and roles) to a group, ignoring duplicates.
|
|
1897
|
+
* @returns The number of members added and a confirmation message.
|
|
1898
|
+
*/
|
|
1899
|
+
addMembers(id: number, members: GroupMemberFragment[], verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Remove all given usernames from a group, ignoring usernames that aren't members.
|
|
1902
|
+
* @returns The number of members removed and a confirmation message.
|
|
1903
|
+
*/
|
|
1904
|
+
removeMembers(id: number, usernames: string[], verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
1905
|
+
/**
|
|
1906
|
+
* Changes a player's role in a given group.
|
|
1907
|
+
* @returns The updated membership, with player included.
|
|
1908
|
+
*/
|
|
1909
|
+
changeRole(id: number, payload: ChangeMemberRolePayload, verificationCode: string): Promise<MembershipWithPlayer>;
|
|
1910
|
+
/**
|
|
1911
|
+
* Adds an "update" request to the queue, for each outdated group member.
|
|
1912
|
+
* @returns The number of players to be updated and a confirmation message.
|
|
1913
|
+
*/
|
|
1914
|
+
updateAll(id: number, verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
1915
|
+
/**
|
|
1916
|
+
* Fetches all of the groups's competitions
|
|
1917
|
+
* @returns A list of competitions.
|
|
1918
|
+
*/
|
|
1919
|
+
getGroupCompetitions(id: number, pagination?: PaginationOptions): Promise<CompetitionListItem[]>;
|
|
1920
|
+
getGroupGains(id: number, filter: GetGroupGainsFilter, pagination?: PaginationOptions): Promise<DeltaLeaderboardEntry[]>;
|
|
1921
|
+
/**
|
|
1922
|
+
* Fetches a group members' latest achievements.
|
|
1923
|
+
* @returns A list of achievements.
|
|
1924
|
+
*/
|
|
1925
|
+
getGroupAchievements(id: number, pagination?: PaginationOptions): Promise<ExtendedAchievement[]>;
|
|
1926
|
+
/**
|
|
1927
|
+
* Fetches a group's record leaderboard for a specific metric and period.
|
|
1928
|
+
* @returns A list of records, including their respective players.
|
|
1929
|
+
*/
|
|
1930
|
+
getGroupRecords(id: number, filter: GroupRecordsFilter, pagination?: PaginationOptions): Promise<RecordLeaderboardEntry[]>;
|
|
1931
|
+
/**
|
|
1932
|
+
* Fetches a group's hiscores for a specific metric.
|
|
1933
|
+
* @returns A list of hiscores entries (value, rank), including their respective players.
|
|
1934
|
+
*/
|
|
1935
|
+
getGroupHiscores(id: number, metric: Metric, pagination?: PaginationOptions): Promise<GroupHiscoresEntry[]>;
|
|
1936
|
+
/**
|
|
1937
|
+
* Fetches a group members' latest name changes.
|
|
1938
|
+
* @returns A list of name change (approved) requests.
|
|
1939
|
+
*/
|
|
1940
|
+
getGroupNameChanges(id: number, pagination?: PaginationOptions): Promise<NameChange[]>;
|
|
1941
|
+
/**
|
|
1942
|
+
* Fetches a group's general statistics.
|
|
1943
|
+
* @returns An object with a few statistic values and an average stats snapshot.
|
|
1944
|
+
*/
|
|
1945
|
+
getGroupStatistics(id: number): Promise<GroupStatistics>;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
declare class PlayersClient {
|
|
1949
|
+
/**
|
|
1950
|
+
* Searches players by partial username.
|
|
1951
|
+
* @returns A list of players.
|
|
1952
|
+
*/
|
|
1953
|
+
searchPlayers(partialUsername: string, pagination?: PaginationOptions): Promise<Player[]>;
|
|
1954
|
+
/**
|
|
1955
|
+
* Updates/tracks a player.
|
|
1956
|
+
* @returns The player's new details, including the latest snapshot.
|
|
1957
|
+
*/
|
|
1958
|
+
updatePlayer(player: PlayerResolvable): Promise<PlayerDetails>;
|
|
1959
|
+
/**
|
|
1960
|
+
* Asserts (and attempts to fix, if necessary) a player's game-mode type.
|
|
1961
|
+
* @returns The updated player, and an indication of whether the type was changed.
|
|
1962
|
+
*/
|
|
1963
|
+
assertPlayerType(player: PlayerResolvable): Promise<AssertPlayerTypeResponse>;
|
|
1964
|
+
/**
|
|
1965
|
+
* Attempts to import a player's snapshot history from CrystalMathLabs.
|
|
1966
|
+
* @returns The number of snapshots that were imported.
|
|
1967
|
+
*/
|
|
1968
|
+
importPlayer(player: PlayerResolvable): Promise<GenericCountMessageResponse>;
|
|
1969
|
+
/**
|
|
1970
|
+
* Fetches a player's details.
|
|
1971
|
+
* @returns The player's details, including the latest snapshot.
|
|
1972
|
+
*/
|
|
1973
|
+
getPlayerDetails(player: PlayerResolvable): Promise<PlayerDetails>;
|
|
1974
|
+
/**
|
|
1975
|
+
* Fetches a player's current achievements.
|
|
1976
|
+
* @returns A list of achievements.
|
|
1977
|
+
*/
|
|
1978
|
+
getPlayerAchievements(player: PlayerResolvable): Promise<ExtendedAchievement[]>;
|
|
1979
|
+
/**
|
|
1980
|
+
* Fetches a player's current achievement progress.
|
|
1981
|
+
* @returns A list of achievements (completed or otherwise), with their respective relative/absolute progress percentage.
|
|
1982
|
+
*/
|
|
1983
|
+
getPlayerAchievementProgress(player: PlayerResolvable): Promise<AchievementProgress[]>;
|
|
1984
|
+
/**
|
|
1985
|
+
* Fetches all of the player's competition participations.
|
|
1986
|
+
* @returns A list of participations, with the respective competition included.
|
|
1987
|
+
*/
|
|
1988
|
+
getPlayerCompetitions(player: PlayerResolvable, pagination?: PaginationOptions): Promise<ParticipationWithCompetition[]>;
|
|
1989
|
+
/**
|
|
1990
|
+
* Fetches all of the player's group memberships.
|
|
1991
|
+
* @returns A list of memberships, with the respective group included.
|
|
1992
|
+
*/
|
|
1993
|
+
getPlayerGroups(player: PlayerResolvable, pagination?: PaginationOptions): Promise<MembershipWithGroup[]>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Fetches a player's gains, for a specific period or time range, as a [metric: data] map.
|
|
1996
|
+
* @returns A map of each metric's gained data.
|
|
1997
|
+
*/
|
|
1998
|
+
getPlayerGains(player: PlayerResolvable, options: TimeRangeFilter): Promise<GetPlayerGainsResponse<PlayerDeltasMap>>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Fetches a player's gains, for a specific period or time range, as an array.
|
|
2001
|
+
* @returns An array of each metric's gained data.
|
|
2002
|
+
*/
|
|
2003
|
+
getPlayerGainsAsArray(player: PlayerResolvable, options: TimeRangeFilter): Promise<GetPlayerGainsResponse<PlayerDeltasArray>>;
|
|
2004
|
+
/**
|
|
2005
|
+
* Fetches all of the player's records.
|
|
2006
|
+
* @returns A list of records.
|
|
2007
|
+
*/
|
|
2008
|
+
getPlayerRecords(player: PlayerResolvable, options?: PlayerRecordsFilter): Promise<Record[]>;
|
|
2009
|
+
/**
|
|
2010
|
+
* Fetches all of the player's past snapshots.
|
|
2011
|
+
* @returns A list of snapshots.
|
|
2012
|
+
*/
|
|
2013
|
+
getPlayerSnapshots(player: PlayerResolvable, options?: TimeRangeFilter): Promise<FormattedSnapshot[]>;
|
|
2014
|
+
/**
|
|
2015
|
+
* Fetches all of the player's approved name changes.
|
|
2016
|
+
* @returns A list of name changes.
|
|
2017
|
+
*/
|
|
2018
|
+
getPlayerNames(player: PlayerResolvable): Promise<NameChange[]>;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
declare class RecordsClient {
|
|
2022
|
+
/**
|
|
2023
|
+
* Fetches the current records leaderboard for a specific metric, period, playerType, playerBuild and country.
|
|
2024
|
+
* @returns A list of records, with their respective players, dates and values included.
|
|
2025
|
+
*/
|
|
2026
|
+
getRecordLeaderboard(filter: RecordLeaderboardFilter): Promise<RecordLeaderboardEntry[]>;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
declare class EfficiencyClient {
|
|
2030
|
+
/**
|
|
2031
|
+
* Fetches the current efficiency leaderboard for a specific virtual metric, playerType, playerBuild and country.
|
|
2032
|
+
* @returns A list of players.
|
|
2033
|
+
*/
|
|
2034
|
+
getEfficiencyLeaderboards(filter: EfficiencyLeaderboardsFilter, pagination?: PaginationOptions): Promise<Player[]>;
|
|
2035
|
+
/**
|
|
2036
|
+
* Fetches the top EHP (Efficient Hours Played) rates.
|
|
2037
|
+
* @returns A list of skilling methods and their bonus exp ratios.
|
|
2038
|
+
*/
|
|
2039
|
+
getEHPRates(algorithmType: EfficiencyAlgorithmTypeUnion): Promise<SkillMetaConfig>;
|
|
2040
|
+
/**
|
|
2041
|
+
* Fetches the top EHB (Efficient Hours Bossed) rates.
|
|
2042
|
+
* @returns A list of bosses and their respective "per-hour" kill rates.
|
|
2043
|
+
*/
|
|
2044
|
+
getEHBRates(algorithmType: EfficiencyAlgorithmTypeUnion): Promise<BossMetaConfig[]>;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
declare class NameChangesClient {
|
|
2048
|
+
/**
|
|
2049
|
+
* Searches for name changes that match a name and/or status filter.
|
|
2050
|
+
* @returns A list of name changes.
|
|
2051
|
+
*/
|
|
2052
|
+
searchNameChanges(filter: NameChangesSearchFilter, pagination?: PaginationOptions): Promise<NameChange[]>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Submits a name change request between two usernames (old and new).
|
|
2055
|
+
* @returns A pending name change request, to be reviewed and resolved at a later date.
|
|
2056
|
+
*/
|
|
2057
|
+
submitNameChange(oldName: string, newName: string): Promise<NameChange>;
|
|
2058
|
+
/**
|
|
2059
|
+
* Gets details on a specific name change request.
|
|
2060
|
+
* @returns The name change request's details, which includes all data required to review.
|
|
2061
|
+
*/
|
|
2062
|
+
getNameChangeDetails(id: number): Promise<NameChangeDetails>;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
declare class CompetitionsClient {
|
|
2066
|
+
/**
|
|
2067
|
+
* Searches for competitions that match a title, type, metric and status filter.
|
|
2068
|
+
* @returns A list of competitions.
|
|
2069
|
+
*/
|
|
2070
|
+
searchCompetitions(filter: CompetitionsSearchFilter, pagination?: PaginationOptions): Promise<CompetitionListItem[]>;
|
|
2071
|
+
/**
|
|
2072
|
+
* Fetches the competition's full details, including all the participants and their progress.
|
|
2073
|
+
* @returns A competition with a list of participants.
|
|
2074
|
+
*/
|
|
2075
|
+
getCompetitionDetails(id: number, previewMetric?: Metric): Promise<CompetitionDetails>;
|
|
2076
|
+
/**
|
|
2077
|
+
* Fetches all the values (exp, kc, etc) in chronological order within the bounds
|
|
2078
|
+
* of the competition, for the top 5 participants.
|
|
2079
|
+
* @returns A list of competition progress objects, including the player and their value history over time.
|
|
2080
|
+
*/
|
|
2081
|
+
getCompetitionTopHistory(id: number, previewMetric?: Metric): Promise<Top5ProgressResult>;
|
|
2082
|
+
/**
|
|
2083
|
+
* Creates a new competition.
|
|
2084
|
+
* @returns The newly created competition, and the verification code that authorizes future changes to it.
|
|
2085
|
+
*/
|
|
2086
|
+
createCompetition(payload: CreateCompetitionPayload): Promise<CreateCompetitionResponse>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Edits an existing competition.
|
|
2089
|
+
* @returns The updated competition.
|
|
2090
|
+
*/
|
|
2091
|
+
editCompetition(id: number, payload: EditCompetitionPayload, verificationCode: string): Promise<CompetitionWithParticipations>;
|
|
2092
|
+
/**
|
|
2093
|
+
* Deletes an existing competition.
|
|
2094
|
+
* @returns A confirmation message.
|
|
2095
|
+
*/
|
|
2096
|
+
deleteCompetition(id: number, verificationCode: string): Promise<GenericMessageResponse>;
|
|
2097
|
+
/**
|
|
2098
|
+
* Adds all (valid) given participants to a competition, ignoring duplicates.
|
|
2099
|
+
* @returns The number of participants added and a confirmation message.
|
|
2100
|
+
*/
|
|
2101
|
+
addParticipants(id: number, participants: string[], verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
2102
|
+
/**
|
|
2103
|
+
* Remove all given usernames from a competition, ignoring usernames that aren't competing.
|
|
2104
|
+
* @returns The number of participants removed and a confirmation message.
|
|
2105
|
+
*/
|
|
2106
|
+
removeParticipants(id: number, participants: string[], verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
2107
|
+
/**
|
|
2108
|
+
* Adds all (valid) given teams to a team competition, ignoring duplicates.
|
|
2109
|
+
* @returns The number of participants added and a confirmation message.
|
|
2110
|
+
*/
|
|
2111
|
+
addTeams(id: number, teams: Team[], verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
2112
|
+
/**
|
|
2113
|
+
* Remove all given team names from a competition, ignoring names that don't exist.
|
|
2114
|
+
* @returns The number of participants removed and a confirmation message.
|
|
2115
|
+
*/
|
|
2116
|
+
removeTeams(id: number, teamNames: string[], verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
2117
|
+
/**
|
|
2118
|
+
* Adds an "update" request to the queue, for each outdated competition participant.
|
|
2119
|
+
* @returns The number of players to be updated and a confirmation message.
|
|
2120
|
+
*/
|
|
2121
|
+
updateAll(id: number, verificationCode: string): Promise<GenericCountMessageResponse>;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
declare class WOMClient {
|
|
2125
|
+
deltas: DeltasClient;
|
|
2126
|
+
groups: GroupsClient;
|
|
2127
|
+
players: PlayersClient;
|
|
2128
|
+
records: RecordsClient;
|
|
2129
|
+
efficiency: EfficiencyClient;
|
|
2130
|
+
nameChanges: NameChangesClient;
|
|
2131
|
+
competitions: CompetitionsClient;
|
|
2132
|
+
constructor();
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityValue, AlgorithmCache, AssertPlayerTypeResponse, BOSSES, Bonus, BonusType, Boss, BossDelta, BossMetaConfig, BossValue, CAPPED_MAX_TOTAL_XP, CMLGroupData, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COUNTRY_CODES, ChangeMemberRolePayload, CompetitionDetails, CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, CompetitionWithParticipations, CompetitionsSearchFilter, Country, CountryDetails, CountryProps, CreateCompetitionPayload, CreateCompetitionResponse, CreateGroupPayload, CreateGroupResponse, DeltaLeaderboardEntry, DeltaLeaderboardFilter, EditCompetitionPayload, EditGroupPayload, EfficiencyAlgorithm, EfficiencyAlgorithmType, EfficiencyAlgorithmTypeUnion, EfficiencyLeaderboardsFilter, EfficiencyMap, ExperienceMap, ExtendedAchievement, F2P_BOSSES, FormattedSnapshot, GROUP_ROLES, GenericCountMessageResponse, GenericMessageResponse, GetGroupGainsFilter, GetPlayerGainsResponse, GroupHiscoresEntry, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics, GroupWithMemberships, KillcountMap, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MeasuredDeltaProgress, MemberInput, MembershipWithGroup, MembershipWithPlayer, Metric, MetricMeasure, MetricProps, MetricType, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerResolvable, PlayerType, PlayerTypeProps, REAL_SKILLS, Record, RecordLeaderboardEntry, RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, SkillDelta, SkillMetaConfig, SkillValue, Snapshot, SnapshotDataSource, SnapshotFragment, Team, TempleGroupData, TimeRangeFilter, Top5ProgressResult, VIRTUALS, Virtual, VirtualDelta, VirtualValue, WOMClient, findCompetitionStatus, findCompetitionType, findCountry, findCountryByCode, findCountryByName, findGroupRole, findMetric, findPeriod, findPlayerBuild, findPlayerType, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMetricMeasure, getMetricName, getMetricRankKey, getMetricValueKey, getMinimumBossKc, getParentVirtualMetric, isActivity, isBoss, isSkill, isVirtualMetric, padNumber, parseMetricAbbreviation, parsePeriodExpression, round };
|