@wise-old-man/utils 4.0.5 → 4.0.7
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/cjs/index.cjs +6 -2
- package/dist/es/index.js +6 -2
- package/dist/es/index.mjs +6 -2
- package/dist/index.d.ts +38 -120
- package/package.json +8 -9
package/dist/cjs/index.cjs
CHANGED
|
@@ -916,7 +916,8 @@ const Skill = {
|
|
|
916
916
|
FARMING: 'farming',
|
|
917
917
|
RUNECRAFTING: 'runecrafting',
|
|
918
918
|
HUNTER: 'hunter',
|
|
919
|
-
CONSTRUCTION: 'construction'
|
|
919
|
+
CONSTRUCTION: 'construction',
|
|
920
|
+
SAILING: 'sailing'
|
|
920
921
|
};
|
|
921
922
|
const Activity = {
|
|
922
923
|
LEAGUE_POINTS: 'league_points',
|
|
@@ -979,6 +980,7 @@ const Boss = {
|
|
|
979
980
|
SARACHNIS: 'sarachnis',
|
|
980
981
|
SCORPIA: 'scorpia',
|
|
981
982
|
SCURRIUS: 'scurrius',
|
|
983
|
+
SHELLBANE_GRYPHON: 'shellbane_gryphon',
|
|
982
984
|
SKOTIZO: 'skotizo',
|
|
983
985
|
SOL_HEREDIT: 'sol_heredit',
|
|
984
986
|
SPINDEL: 'spindel',
|
|
@@ -2092,7 +2094,8 @@ const SkillProps = mapValues({
|
|
|
2092
2094
|
[Skill.FARMING]: { name: 'Farming', isMembers: true },
|
|
2093
2095
|
[Skill.RUNECRAFTING]: { name: 'Runecrafting' },
|
|
2094
2096
|
[Skill.HUNTER]: { name: 'Hunter', isMembers: true },
|
|
2095
|
-
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
|
|
2097
|
+
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true },
|
|
2098
|
+
[Skill.SAILING]: { name: 'Sailing', isMembers: true }
|
|
2096
2099
|
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.SKILL, measure: exports.MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
|
|
2097
2100
|
const BossProps = mapValues({
|
|
2098
2101
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
@@ -2138,6 +2141,7 @@ const BossProps = mapValues({
|
|
|
2138
2141
|
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
2139
2142
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
2140
2143
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
2144
|
+
[Boss.SHELLBANE_GRYPHON]: { name: 'Shellbane Gryphon' },
|
|
2141
2145
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
2142
2146
|
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
2143
2147
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
package/dist/es/index.js
CHANGED
|
@@ -914,7 +914,8 @@ const Skill = {
|
|
|
914
914
|
FARMING: 'farming',
|
|
915
915
|
RUNECRAFTING: 'runecrafting',
|
|
916
916
|
HUNTER: 'hunter',
|
|
917
|
-
CONSTRUCTION: 'construction'
|
|
917
|
+
CONSTRUCTION: 'construction',
|
|
918
|
+
SAILING: 'sailing'
|
|
918
919
|
};
|
|
919
920
|
const Activity = {
|
|
920
921
|
LEAGUE_POINTS: 'league_points',
|
|
@@ -977,6 +978,7 @@ const Boss = {
|
|
|
977
978
|
SARACHNIS: 'sarachnis',
|
|
978
979
|
SCORPIA: 'scorpia',
|
|
979
980
|
SCURRIUS: 'scurrius',
|
|
981
|
+
SHELLBANE_GRYPHON: 'shellbane_gryphon',
|
|
980
982
|
SKOTIZO: 'skotizo',
|
|
981
983
|
SOL_HEREDIT: 'sol_heredit',
|
|
982
984
|
SPINDEL: 'spindel',
|
|
@@ -2090,7 +2092,8 @@ const SkillProps = mapValues({
|
|
|
2090
2092
|
[Skill.FARMING]: { name: 'Farming', isMembers: true },
|
|
2091
2093
|
[Skill.RUNECRAFTING]: { name: 'Runecrafting' },
|
|
2092
2094
|
[Skill.HUNTER]: { name: 'Hunter', isMembers: true },
|
|
2093
|
-
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
|
|
2095
|
+
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true },
|
|
2096
|
+
[Skill.SAILING]: { name: 'Sailing', isMembers: true }
|
|
2094
2097
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.SKILL, measure: MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
|
|
2095
2098
|
const BossProps = mapValues({
|
|
2096
2099
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
@@ -2136,6 +2139,7 @@ const BossProps = mapValues({
|
|
|
2136
2139
|
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
2137
2140
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
2138
2141
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
2142
|
+
[Boss.SHELLBANE_GRYPHON]: { name: 'Shellbane Gryphon' },
|
|
2139
2143
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
2140
2144
|
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
2141
2145
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
package/dist/es/index.mjs
CHANGED
|
@@ -914,7 +914,8 @@ const Skill = {
|
|
|
914
914
|
FARMING: 'farming',
|
|
915
915
|
RUNECRAFTING: 'runecrafting',
|
|
916
916
|
HUNTER: 'hunter',
|
|
917
|
-
CONSTRUCTION: 'construction'
|
|
917
|
+
CONSTRUCTION: 'construction',
|
|
918
|
+
SAILING: 'sailing'
|
|
918
919
|
};
|
|
919
920
|
const Activity = {
|
|
920
921
|
LEAGUE_POINTS: 'league_points',
|
|
@@ -977,6 +978,7 @@ const Boss = {
|
|
|
977
978
|
SARACHNIS: 'sarachnis',
|
|
978
979
|
SCORPIA: 'scorpia',
|
|
979
980
|
SCURRIUS: 'scurrius',
|
|
981
|
+
SHELLBANE_GRYPHON: 'shellbane_gryphon',
|
|
980
982
|
SKOTIZO: 'skotizo',
|
|
981
983
|
SOL_HEREDIT: 'sol_heredit',
|
|
982
984
|
SPINDEL: 'spindel',
|
|
@@ -2090,7 +2092,8 @@ const SkillProps = mapValues({
|
|
|
2090
2092
|
[Skill.FARMING]: { name: 'Farming', isMembers: true },
|
|
2091
2093
|
[Skill.RUNECRAFTING]: { name: 'Runecrafting' },
|
|
2092
2094
|
[Skill.HUNTER]: { name: 'Hunter', isMembers: true },
|
|
2093
|
-
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
|
|
2095
|
+
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true },
|
|
2096
|
+
[Skill.SAILING]: { name: 'Sailing', isMembers: true }
|
|
2094
2097
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.SKILL, measure: MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
|
|
2095
2098
|
const BossProps = mapValues({
|
|
2096
2099
|
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
@@ -2136,6 +2139,7 @@ const BossProps = mapValues({
|
|
|
2136
2139
|
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
2137
2140
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
2138
2141
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
2142
|
+
[Boss.SHELLBANE_GRYPHON]: { name: 'Shellbane Gryphon' },
|
|
2139
2143
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
2140
2144
|
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
2141
2145
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ declare const Skill: {
|
|
|
38
38
|
readonly RUNECRAFTING: "runecrafting";
|
|
39
39
|
readonly HUNTER: "hunter";
|
|
40
40
|
readonly CONSTRUCTION: "construction";
|
|
41
|
+
readonly SAILING: "sailing";
|
|
41
42
|
};
|
|
42
43
|
type Skill = (typeof Skill)[keyof typeof Skill];
|
|
43
44
|
declare const Activity: {
|
|
@@ -102,6 +103,7 @@ declare const Boss: {
|
|
|
102
103
|
readonly SARACHNIS: "sarachnis";
|
|
103
104
|
readonly SCORPIA: "scorpia";
|
|
104
105
|
readonly SCURRIUS: "scurrius";
|
|
106
|
+
readonly SHELLBANE_GRYPHON: "shellbane_gryphon";
|
|
105
107
|
readonly SKOTIZO: "skotizo";
|
|
106
108
|
readonly SOL_HEREDIT: "sol_heredit";
|
|
107
109
|
readonly SPINDEL: "spindel";
|
|
@@ -179,6 +181,7 @@ declare const Metric: {
|
|
|
179
181
|
readonly SARACHNIS: "sarachnis";
|
|
180
182
|
readonly SCORPIA: "scorpia";
|
|
181
183
|
readonly SCURRIUS: "scurrius";
|
|
184
|
+
readonly SHELLBANE_GRYPHON: "shellbane_gryphon";
|
|
182
185
|
readonly SKOTIZO: "skotizo";
|
|
183
186
|
readonly SOL_HEREDIT: "sol_heredit";
|
|
184
187
|
readonly SPINDEL: "spindel";
|
|
@@ -244,6 +247,7 @@ declare const Metric: {
|
|
|
244
247
|
readonly RUNECRAFTING: "runecrafting";
|
|
245
248
|
readonly HUNTER: "hunter";
|
|
246
249
|
readonly CONSTRUCTION: "construction";
|
|
250
|
+
readonly SAILING: "sailing";
|
|
247
251
|
};
|
|
248
252
|
type Metric = (typeof Metric)[keyof typeof Metric];
|
|
249
253
|
declare const METRICS: Metric[];
|
|
@@ -306,6 +310,8 @@ interface Snapshot {
|
|
|
306
310
|
hunterExperience: number;
|
|
307
311
|
constructionRank: number;
|
|
308
312
|
constructionExperience: number;
|
|
313
|
+
sailingRank: number;
|
|
314
|
+
sailingExperience: number;
|
|
309
315
|
league_pointsRank: number;
|
|
310
316
|
league_pointsScore: number;
|
|
311
317
|
bounty_hunter_hunterRank: number;
|
|
@@ -422,6 +428,8 @@ interface Snapshot {
|
|
|
422
428
|
scorpiaKills: number;
|
|
423
429
|
scurriusRank: number;
|
|
424
430
|
scurriusKills: number;
|
|
431
|
+
shellbane_gryphonRank: number;
|
|
432
|
+
shellbane_gryphonKills: number;
|
|
425
433
|
skotizoRank: number;
|
|
426
434
|
skotizoKills: number;
|
|
427
435
|
sol_hereditRank: number;
|
|
@@ -834,123 +842,6 @@ declare const Country: {
|
|
|
834
842
|
type Country = (typeof Country)[keyof typeof Country];
|
|
835
843
|
declare const COUNTRY_CODES: Country[];
|
|
836
844
|
|
|
837
|
-
interface Delta {
|
|
838
|
-
playerId: number;
|
|
839
|
-
period: Period;
|
|
840
|
-
startedAt: Date;
|
|
841
|
-
endedAt: Date;
|
|
842
|
-
updatedAt: Date | null;
|
|
843
|
-
overall: number;
|
|
844
|
-
attack: number;
|
|
845
|
-
defence: number;
|
|
846
|
-
strength: number;
|
|
847
|
-
hitpoints: number;
|
|
848
|
-
ranged: number;
|
|
849
|
-
prayer: number;
|
|
850
|
-
magic: number;
|
|
851
|
-
cooking: number;
|
|
852
|
-
woodcutting: number;
|
|
853
|
-
fletching: number;
|
|
854
|
-
fishing: number;
|
|
855
|
-
firemaking: number;
|
|
856
|
-
crafting: number;
|
|
857
|
-
smithing: number;
|
|
858
|
-
mining: number;
|
|
859
|
-
herblore: number;
|
|
860
|
-
agility: number;
|
|
861
|
-
thieving: number;
|
|
862
|
-
slayer: number;
|
|
863
|
-
farming: number;
|
|
864
|
-
runecrafting: number;
|
|
865
|
-
hunter: number;
|
|
866
|
-
construction: number;
|
|
867
|
-
abyssal_sire: number;
|
|
868
|
-
alchemical_hydra: number;
|
|
869
|
-
amoxliatl: number;
|
|
870
|
-
araxxor: number;
|
|
871
|
-
artio: number;
|
|
872
|
-
barrows_chests: number;
|
|
873
|
-
bryophyta: number;
|
|
874
|
-
callisto: number;
|
|
875
|
-
calvarion: number;
|
|
876
|
-
cerberus: number;
|
|
877
|
-
chambers_of_xeric: number;
|
|
878
|
-
chambers_of_xeric_challenge_mode: number;
|
|
879
|
-
chaos_elemental: number;
|
|
880
|
-
chaos_fanatic: number;
|
|
881
|
-
commander_zilyana: number;
|
|
882
|
-
corporeal_beast: number;
|
|
883
|
-
crazy_archaeologist: number;
|
|
884
|
-
dagannoth_prime: number;
|
|
885
|
-
dagannoth_rex: number;
|
|
886
|
-
dagannoth_supreme: number;
|
|
887
|
-
deranged_archaeologist: number;
|
|
888
|
-
doom_of_mokhaiotl: number;
|
|
889
|
-
duke_sucellus: number;
|
|
890
|
-
general_graardor: number;
|
|
891
|
-
giant_mole: number;
|
|
892
|
-
grotesque_guardians: number;
|
|
893
|
-
hespori: number;
|
|
894
|
-
kalphite_queen: number;
|
|
895
|
-
king_black_dragon: number;
|
|
896
|
-
kraken: number;
|
|
897
|
-
kreearra: number;
|
|
898
|
-
kril_tsutsaroth: number;
|
|
899
|
-
lunar_chests: number;
|
|
900
|
-
mimic: number;
|
|
901
|
-
nex: number;
|
|
902
|
-
nightmare: number;
|
|
903
|
-
phosanis_nightmare: number;
|
|
904
|
-
obor: number;
|
|
905
|
-
phantom_muspah: number;
|
|
906
|
-
sarachnis: number;
|
|
907
|
-
scorpia: number;
|
|
908
|
-
scurrius: number;
|
|
909
|
-
skotizo: number;
|
|
910
|
-
sol_heredit: number;
|
|
911
|
-
spindel: number;
|
|
912
|
-
tempoross: number;
|
|
913
|
-
the_gauntlet: number;
|
|
914
|
-
the_corrupted_gauntlet: number;
|
|
915
|
-
the_hueycoatl: number;
|
|
916
|
-
the_leviathan: number;
|
|
917
|
-
the_royal_titans: number;
|
|
918
|
-
the_whisperer: number;
|
|
919
|
-
theatre_of_blood: number;
|
|
920
|
-
theatre_of_blood_hard_mode: number;
|
|
921
|
-
thermonuclear_smoke_devil: number;
|
|
922
|
-
tombs_of_amascut: number;
|
|
923
|
-
tombs_of_amascut_expert: number;
|
|
924
|
-
tzkal_zuk: number;
|
|
925
|
-
tztok_jad: number;
|
|
926
|
-
vardorvis: number;
|
|
927
|
-
venenatis: number;
|
|
928
|
-
vetion: number;
|
|
929
|
-
vorkath: number;
|
|
930
|
-
wintertodt: number;
|
|
931
|
-
yama: number;
|
|
932
|
-
zalcano: number;
|
|
933
|
-
zulrah: number;
|
|
934
|
-
league_points: number;
|
|
935
|
-
bounty_hunter_hunter: number;
|
|
936
|
-
bounty_hunter_rogue: number;
|
|
937
|
-
clue_scrolls_all: number;
|
|
938
|
-
clue_scrolls_beginner: number;
|
|
939
|
-
clue_scrolls_easy: number;
|
|
940
|
-
clue_scrolls_medium: number;
|
|
941
|
-
clue_scrolls_hard: number;
|
|
942
|
-
clue_scrolls_elite: number;
|
|
943
|
-
clue_scrolls_master: number;
|
|
944
|
-
last_man_standing: number;
|
|
945
|
-
pvp_arena: number;
|
|
946
|
-
soul_wars_zeal: number;
|
|
947
|
-
guardians_of_the_rift: number;
|
|
948
|
-
colosseum_glory: number;
|
|
949
|
-
collections_logged: number;
|
|
950
|
-
ehp: number;
|
|
951
|
-
ehb: number;
|
|
952
|
-
}
|
|
953
|
-
|
|
954
845
|
declare enum EfficiencyAlgorithmType {
|
|
955
846
|
MAIN = "main",
|
|
956
847
|
IRONMAN = "ironman",
|
|
@@ -1360,6 +1251,8 @@ interface Participation {
|
|
|
1360
1251
|
competitionId: number;
|
|
1361
1252
|
startSnapshotId: number | null;
|
|
1362
1253
|
endSnapshotId: number | null;
|
|
1254
|
+
startSnapshotDate: Date | null;
|
|
1255
|
+
endSnapshotDate: Date | null;
|
|
1363
1256
|
teamName: string | null;
|
|
1364
1257
|
createdAt: Date;
|
|
1365
1258
|
updatedAt: Date;
|
|
@@ -1451,6 +1344,7 @@ interface Player {
|
|
|
1451
1344
|
lastChangedAt: Date | null;
|
|
1452
1345
|
lastImportedAt: Date | null;
|
|
1453
1346
|
latestSnapshotId: number | null;
|
|
1347
|
+
latestSnapshotDate: Date | null;
|
|
1454
1348
|
}
|
|
1455
1349
|
|
|
1456
1350
|
interface Record$1 {
|
|
@@ -1484,6 +1378,15 @@ interface SkillMetaConfig {
|
|
|
1484
1378
|
bonuses: SkillMetaBonus[];
|
|
1485
1379
|
}
|
|
1486
1380
|
|
|
1381
|
+
interface TrendDatapoint {
|
|
1382
|
+
date: Date;
|
|
1383
|
+
metric: Metric;
|
|
1384
|
+
sum: number;
|
|
1385
|
+
maxValue: number;
|
|
1386
|
+
minValue: number;
|
|
1387
|
+
maxRank: number;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1487
1390
|
/**
|
|
1488
1391
|
* Response types are used to format the data returned by the API.
|
|
1489
1392
|
*
|
|
@@ -1493,6 +1396,7 @@ interface SkillMetaConfig {
|
|
|
1493
1396
|
|
|
1494
1397
|
interface AchievementResponse extends Achievement {
|
|
1495
1398
|
measure: AchievementMeasure;
|
|
1399
|
+
legacy: boolean;
|
|
1496
1400
|
}
|
|
1497
1401
|
|
|
1498
1402
|
/**
|
|
@@ -1541,7 +1445,7 @@ interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'cr
|
|
|
1541
1445
|
* they often include transformations, additional properties or sensitive field omissions.
|
|
1542
1446
|
*/
|
|
1543
1447
|
|
|
1544
|
-
type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapshotId'>;
|
|
1448
|
+
type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapshotId' | 'startSnapshotDate' | 'endSnapshotDate'>;
|
|
1545
1449
|
|
|
1546
1450
|
/**
|
|
1547
1451
|
* Response types are used to format the data returned by the API.
|
|
@@ -1550,7 +1454,7 @@ type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapsho
|
|
|
1550
1454
|
* they often include transformations, additional properties or sensitive field omissions.
|
|
1551
1455
|
*/
|
|
1552
1456
|
|
|
1553
|
-
type PlayerResponse = Omit<Player, 'latestSnapshotId'>;
|
|
1457
|
+
type PlayerResponse = Omit<Player, 'latestSnapshotId' | 'latestSnapshotDate'>;
|
|
1554
1458
|
|
|
1555
1459
|
/**
|
|
1556
1460
|
* Response types are used to format the data returned by the API.
|
|
@@ -3595,6 +3499,13 @@ declare const MetricProps: {
|
|
|
3595
3499
|
type: MetricType;
|
|
3596
3500
|
measure: MetricMeasure;
|
|
3597
3501
|
};
|
|
3502
|
+
readonly shellbane_gryphon: {
|
|
3503
|
+
name: string;
|
|
3504
|
+
minimumValue: number;
|
|
3505
|
+
isMembers: boolean;
|
|
3506
|
+
type: MetricType;
|
|
3507
|
+
measure: MetricMeasure;
|
|
3508
|
+
};
|
|
3598
3509
|
readonly skotizo: {
|
|
3599
3510
|
name: string;
|
|
3600
3511
|
minimumValue: number;
|
|
@@ -3938,6 +3849,13 @@ declare const MetricProps: {
|
|
|
3938
3849
|
type: MetricType;
|
|
3939
3850
|
measure: MetricMeasure;
|
|
3940
3851
|
};
|
|
3852
|
+
readonly sailing: {
|
|
3853
|
+
name: string;
|
|
3854
|
+
isCombat: boolean;
|
|
3855
|
+
isMembers: boolean;
|
|
3856
|
+
type: MetricType;
|
|
3857
|
+
measure: MetricMeasure;
|
|
3858
|
+
};
|
|
3941
3859
|
};
|
|
3942
3860
|
declare const REAL_SKILLS: Skill[];
|
|
3943
3861
|
declare const F2P_BOSSES: Boss[];
|
|
@@ -3982,4 +3900,4 @@ declare function isPlayerType(typeString: string): typeString is PlayerType;
|
|
|
3982
3900
|
|
|
3983
3901
|
declare function roundNumber(num: number, cases: number): number;
|
|
3984
3902
|
|
|
3985
|
-
export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementMeasure, type AchievementProgressResponse, type AchievementResponse, Activity, ActivityProps, BOSSES, Boss, type BossMetaConfig, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type CachedDelta, type Competition, CompetitionCSVTableType, type CompetitionDetailsResponse, type CompetitionMetric, type CompetitionResponse, CompetitionStatus, CompetitionStatusProps, type CompetitionTeam, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, type CreateCompetitionPayload, type CreateGroupPayload, type
|
|
3903
|
+
export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementMeasure, type AchievementProgressResponse, type AchievementResponse, Activity, ActivityProps, BOSSES, Boss, type BossMetaConfig, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type CachedDelta, type Competition, CompetitionCSVTableType, type CompetitionDetailsResponse, type CompetitionMetric, type CompetitionResponse, CompetitionStatus, CompetitionStatusProps, type CompetitionTeam, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, type CreateCompetitionPayload, type CreateGroupPayload, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type Group, type GroupDetailsResponse, type GroupHiscoresEntryResponse, type GroupResponse, GroupRole, type GroupRoleOrder, GroupRoleProps, type GroupSocialLinks, type GroupStatisticsResponse, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MemberActivity, type MemberActivityResponse, MemberActivityType, type Membership, type MembershipResponse, Metric, type MetricDelta, MetricMeasure, MetricProps, MetricType, type NameChange, type NameChangeDenyContext, type NameChangeDetailsResponse, type NameChangeResponse, type NameChangeReviewContext, type NameChangeSkipContext, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVILEGED_GROUP_ROLES, type ParticipantHistoryResponse, type Participation, type ParticipationResponse, type Patron, Period, PeriodProps, type Player, type PlayerAnnotation, PlayerAnnotationType, type PlayerArchive, type PlayerArchiveResponse, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingResponse, type PlayerDeltasMapResponse, type PlayerDetailsResponse, type PlayerResponse, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record$1 as Record, type RecordResponse, SKILLS, SKILL_EXP_AT_99, Skill, type SkillMetaBonus, type SkillMetaConfig, type SkillMetaMethod, SkillProps, type Snapshot, type SnapshotResponse, type TimeRangeFilter, type TrendDatapoint, WOMClient, findCountry, findCountryByCode, findCountryByName, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerStatus, isPlayerType, isSkill, padNumber, parsePeriodExpression, roundNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.7",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
-
"lint": "eslint
|
|
35
|
+
"lint": "eslint",
|
|
36
36
|
"prepublish": "npm run build",
|
|
37
37
|
"prebuild": "cd ../server && npm run prisma:generate",
|
|
38
38
|
"build": "rm -rf ./dist && npx rollup -c && tsc dist/index.d.ts"
|
|
@@ -40,16 +40,15 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
42
42
|
"@types/node": "^14.14.22",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"
|
|
47
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
48
|
-
"prettier": "^2.7.1",
|
|
43
|
+
"eslint": "~9.35.0",
|
|
44
|
+
"eslint-config-prettier": "^10.1.8",
|
|
45
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
46
|
+
"prettier": "^3.6.2",
|
|
49
47
|
"rollup": "^4.12.0",
|
|
50
48
|
"rollup-plugin-dts": "^6.1.0",
|
|
51
49
|
"tslib": "^2.4.0",
|
|
52
|
-
"typescript": "^5.3.3"
|
|
50
|
+
"typescript": "^5.3.3",
|
|
51
|
+
"typescript-eslint": "^8.43.0"
|
|
53
52
|
},
|
|
54
53
|
"dependencies": {}
|
|
55
54
|
}
|