@wise-old-man/utils 3.1.18 → 3.2.1
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 +8 -2
- package/dist/es/index.js +8 -2
- package/dist/es/index.mjs +8 -2
- package/dist/index.d.ts +28 -20
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -558,7 +558,8 @@ const Activity = {
|
|
|
558
558
|
LAST_MAN_STANDING: 'last_man_standing',
|
|
559
559
|
PVP_ARENA: 'pvp_arena',
|
|
560
560
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
561
|
-
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift'
|
|
561
|
+
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
562
|
+
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
562
563
|
};
|
|
563
564
|
const Boss = {
|
|
564
565
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
@@ -590,6 +591,7 @@ const Boss = {
|
|
|
590
591
|
KRAKEN: 'kraken',
|
|
591
592
|
KREEARRA: 'kreearra',
|
|
592
593
|
KRIL_TSUTSAROTH: 'kril_tsutsaroth',
|
|
594
|
+
LUNAR_CHESTS: 'lunar_chests',
|
|
593
595
|
MIMIC: 'mimic',
|
|
594
596
|
NEX: 'nex',
|
|
595
597
|
NIGHTMARE: 'nightmare',
|
|
@@ -600,6 +602,7 @@ const Boss = {
|
|
|
600
602
|
SCORPIA: 'scorpia',
|
|
601
603
|
SCURRIUS: 'scurrius',
|
|
602
604
|
SKOTIZO: 'skotizo',
|
|
605
|
+
SOL_HEREDIT: 'sol_heredit',
|
|
603
606
|
SPINDEL: 'spindel',
|
|
604
607
|
TEMPOROSS: 'tempoross',
|
|
605
608
|
THE_GAUNTLET: 'the_gauntlet',
|
|
@@ -1925,6 +1928,7 @@ const BossProps = mapValues({
|
|
|
1925
1928
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1926
1929
|
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1927
1930
|
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1931
|
+
[Boss.LUNAR_CHESTS]: { name: 'Lunar Chests' },
|
|
1928
1932
|
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1929
1933
|
[Boss.NEX]: { name: 'Nex' },
|
|
1930
1934
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
@@ -1935,6 +1939,7 @@ const BossProps = mapValues({
|
|
|
1935
1939
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1936
1940
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1937
1941
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1942
|
+
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
1938
1943
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1939
1944
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1940
1945
|
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
@@ -1970,7 +1975,8 @@ const ActivityProps = mapValues({
|
|
|
1970
1975
|
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1971
1976
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1972
1977
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1973
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1978
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1979
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1974
1980
|
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1975
1981
|
const ComputedMetricProps = mapValues({
|
|
1976
1982
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
package/dist/es/index.js
CHANGED
|
@@ -556,7 +556,8 @@ const Activity = {
|
|
|
556
556
|
LAST_MAN_STANDING: 'last_man_standing',
|
|
557
557
|
PVP_ARENA: 'pvp_arena',
|
|
558
558
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
559
|
-
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift'
|
|
559
|
+
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
560
|
+
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
560
561
|
};
|
|
561
562
|
const Boss = {
|
|
562
563
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
@@ -588,6 +589,7 @@ const Boss = {
|
|
|
588
589
|
KRAKEN: 'kraken',
|
|
589
590
|
KREEARRA: 'kreearra',
|
|
590
591
|
KRIL_TSUTSAROTH: 'kril_tsutsaroth',
|
|
592
|
+
LUNAR_CHESTS: 'lunar_chests',
|
|
591
593
|
MIMIC: 'mimic',
|
|
592
594
|
NEX: 'nex',
|
|
593
595
|
NIGHTMARE: 'nightmare',
|
|
@@ -598,6 +600,7 @@ const Boss = {
|
|
|
598
600
|
SCORPIA: 'scorpia',
|
|
599
601
|
SCURRIUS: 'scurrius',
|
|
600
602
|
SKOTIZO: 'skotizo',
|
|
603
|
+
SOL_HEREDIT: 'sol_heredit',
|
|
601
604
|
SPINDEL: 'spindel',
|
|
602
605
|
TEMPOROSS: 'tempoross',
|
|
603
606
|
THE_GAUNTLET: 'the_gauntlet',
|
|
@@ -1923,6 +1926,7 @@ const BossProps = mapValues({
|
|
|
1923
1926
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1924
1927
|
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1925
1928
|
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1929
|
+
[Boss.LUNAR_CHESTS]: { name: 'Lunar Chests' },
|
|
1926
1930
|
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1927
1931
|
[Boss.NEX]: { name: 'Nex' },
|
|
1928
1932
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
@@ -1933,6 +1937,7 @@ const BossProps = mapValues({
|
|
|
1933
1937
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1934
1938
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1935
1939
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1940
|
+
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
1936
1941
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1937
1942
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1938
1943
|
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
@@ -1968,7 +1973,8 @@ const ActivityProps = mapValues({
|
|
|
1968
1973
|
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1969
1974
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1970
1975
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1971
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1976
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1977
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1972
1978
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.ACTIVITY, measure: MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1973
1979
|
const ComputedMetricProps = mapValues({
|
|
1974
1980
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
package/dist/es/index.mjs
CHANGED
|
@@ -556,7 +556,8 @@ const Activity = {
|
|
|
556
556
|
LAST_MAN_STANDING: 'last_man_standing',
|
|
557
557
|
PVP_ARENA: 'pvp_arena',
|
|
558
558
|
SOUL_WARS_ZEAL: 'soul_wars_zeal',
|
|
559
|
-
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift'
|
|
559
|
+
GUARDIANS_OF_THE_RIFT: 'guardians_of_the_rift',
|
|
560
|
+
COLOSSEUM_GLORY: 'colosseum_glory'
|
|
560
561
|
};
|
|
561
562
|
const Boss = {
|
|
562
563
|
ABYSSAL_SIRE: 'abyssal_sire',
|
|
@@ -588,6 +589,7 @@ const Boss = {
|
|
|
588
589
|
KRAKEN: 'kraken',
|
|
589
590
|
KREEARRA: 'kreearra',
|
|
590
591
|
KRIL_TSUTSAROTH: 'kril_tsutsaroth',
|
|
592
|
+
LUNAR_CHESTS: 'lunar_chests',
|
|
591
593
|
MIMIC: 'mimic',
|
|
592
594
|
NEX: 'nex',
|
|
593
595
|
NIGHTMARE: 'nightmare',
|
|
@@ -598,6 +600,7 @@ const Boss = {
|
|
|
598
600
|
SCORPIA: 'scorpia',
|
|
599
601
|
SCURRIUS: 'scurrius',
|
|
600
602
|
SKOTIZO: 'skotizo',
|
|
603
|
+
SOL_HEREDIT: 'sol_heredit',
|
|
601
604
|
SPINDEL: 'spindel',
|
|
602
605
|
TEMPOROSS: 'tempoross',
|
|
603
606
|
THE_GAUNTLET: 'the_gauntlet',
|
|
@@ -1923,6 +1926,7 @@ const BossProps = mapValues({
|
|
|
1923
1926
|
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1924
1927
|
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1925
1928
|
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1929
|
+
[Boss.LUNAR_CHESTS]: { name: 'Lunar Chests' },
|
|
1926
1930
|
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1927
1931
|
[Boss.NEX]: { name: 'Nex' },
|
|
1928
1932
|
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
@@ -1933,6 +1937,7 @@ const BossProps = mapValues({
|
|
|
1933
1937
|
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1934
1938
|
[Boss.SCURRIUS]: { name: 'Scurrius' },
|
|
1935
1939
|
[Boss.SKOTIZO]: { name: 'Skotizo' },
|
|
1940
|
+
[Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
|
|
1936
1941
|
[Boss.SPINDEL]: { name: 'Spindel' },
|
|
1937
1942
|
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1938
1943
|
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
@@ -1968,7 +1973,8 @@ const ActivityProps = mapValues({
|
|
|
1968
1973
|
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1969
1974
|
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1970
1975
|
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1971
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1976
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 },
|
|
1977
|
+
[Activity.COLOSSEUM_GLORY]: { name: 'Colosseum Glory', minimumValue: 300 }
|
|
1972
1978
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.ACTIVITY, measure: MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1973
1979
|
const ComputedMetricProps = mapValues({
|
|
1974
1980
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export type MemberActivity = {
|
|
|
15
15
|
groupId: number;
|
|
16
16
|
playerId: number;
|
|
17
17
|
type: ActivityType;
|
|
18
|
-
role
|
|
18
|
+
role: GroupRole | null;
|
|
19
|
+
previousRole: GroupRole | null;
|
|
19
20
|
createdAt: Date;
|
|
20
21
|
};
|
|
21
22
|
|
|
@@ -393,7 +394,7 @@ declare const Skill: {
|
|
|
393
394
|
readonly HUNTER: "hunter";
|
|
394
395
|
readonly CONSTRUCTION: "construction";
|
|
395
396
|
};
|
|
396
|
-
type Skill = typeof Skill[keyof typeof Skill];
|
|
397
|
+
type Skill = (typeof Skill)[keyof typeof Skill];
|
|
397
398
|
declare const Activity: {
|
|
398
399
|
readonly LEAGUE_POINTS: "league_points";
|
|
399
400
|
readonly BOUNTY_HUNTER_HUNTER: "bounty_hunter_hunter";
|
|
@@ -409,8 +410,9 @@ declare const Activity: {
|
|
|
409
410
|
readonly PVP_ARENA: "pvp_arena";
|
|
410
411
|
readonly SOUL_WARS_ZEAL: "soul_wars_zeal";
|
|
411
412
|
readonly GUARDIANS_OF_THE_RIFT: "guardians_of_the_rift";
|
|
413
|
+
readonly COLOSSEUM_GLORY: "colosseum_glory";
|
|
412
414
|
};
|
|
413
|
-
type Activity = typeof Activity[keyof typeof Activity];
|
|
415
|
+
type Activity = (typeof Activity)[keyof typeof Activity];
|
|
414
416
|
declare const Boss: {
|
|
415
417
|
readonly ABYSSAL_SIRE: "abyssal_sire";
|
|
416
418
|
readonly ALCHEMICAL_HYDRA: "alchemical_hydra";
|
|
@@ -441,6 +443,7 @@ declare const Boss: {
|
|
|
441
443
|
readonly KRAKEN: "kraken";
|
|
442
444
|
readonly KREEARRA: "kreearra";
|
|
443
445
|
readonly KRIL_TSUTSAROTH: "kril_tsutsaroth";
|
|
446
|
+
readonly LUNAR_CHESTS: "lunar_chests";
|
|
444
447
|
readonly MIMIC: "mimic";
|
|
445
448
|
readonly NEX: "nex";
|
|
446
449
|
readonly NIGHTMARE: "nightmare";
|
|
@@ -451,6 +454,7 @@ declare const Boss: {
|
|
|
451
454
|
readonly SCORPIA: "scorpia";
|
|
452
455
|
readonly SCURRIUS: "scurrius";
|
|
453
456
|
readonly SKOTIZO: "skotizo";
|
|
457
|
+
readonly SOL_HEREDIT: "sol_heredit";
|
|
454
458
|
readonly SPINDEL: "spindel";
|
|
455
459
|
readonly TEMPOROSS: "tempoross";
|
|
456
460
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
@@ -472,12 +476,12 @@ declare const Boss: {
|
|
|
472
476
|
readonly ZALCANO: "zalcano";
|
|
473
477
|
readonly ZULRAH: "zulrah";
|
|
474
478
|
};
|
|
475
|
-
type Boss = typeof Boss[keyof typeof Boss];
|
|
479
|
+
type Boss = (typeof Boss)[keyof typeof Boss];
|
|
476
480
|
declare const ComputedMetric: {
|
|
477
481
|
readonly EHP: "ehp";
|
|
478
482
|
readonly EHB: "ehb";
|
|
479
483
|
};
|
|
480
|
-
type ComputedMetric = typeof ComputedMetric[keyof typeof ComputedMetric];
|
|
484
|
+
type ComputedMetric = (typeof ComputedMetric)[keyof typeof ComputedMetric];
|
|
481
485
|
declare const Metric: {
|
|
482
486
|
readonly EHP: "ehp";
|
|
483
487
|
readonly EHB: "ehb";
|
|
@@ -510,6 +514,7 @@ declare const Metric: {
|
|
|
510
514
|
readonly KRAKEN: "kraken";
|
|
511
515
|
readonly KREEARRA: "kreearra";
|
|
512
516
|
readonly KRIL_TSUTSAROTH: "kril_tsutsaroth";
|
|
517
|
+
readonly LUNAR_CHESTS: "lunar_chests";
|
|
513
518
|
readonly MIMIC: "mimic";
|
|
514
519
|
readonly NEX: "nex";
|
|
515
520
|
readonly NIGHTMARE: "nightmare";
|
|
@@ -520,6 +525,7 @@ declare const Metric: {
|
|
|
520
525
|
readonly SCORPIA: "scorpia";
|
|
521
526
|
readonly SCURRIUS: "scurrius";
|
|
522
527
|
readonly SKOTIZO: "skotizo";
|
|
528
|
+
readonly SOL_HEREDIT: "sol_heredit";
|
|
523
529
|
readonly SPINDEL: "spindel";
|
|
524
530
|
readonly TEMPOROSS: "tempoross";
|
|
525
531
|
readonly THE_GAUNTLET: "the_gauntlet";
|
|
@@ -554,6 +560,7 @@ declare const Metric: {
|
|
|
554
560
|
readonly PVP_ARENA: "pvp_arena";
|
|
555
561
|
readonly SOUL_WARS_ZEAL: "soul_wars_zeal";
|
|
556
562
|
readonly GUARDIANS_OF_THE_RIFT: "guardians_of_the_rift";
|
|
563
|
+
readonly COLOSSEUM_GLORY: "colosseum_glory";
|
|
557
564
|
readonly OVERALL: "overall";
|
|
558
565
|
readonly ATTACK: "attack";
|
|
559
566
|
readonly DEFENCE: "defence";
|
|
@@ -579,13 +586,13 @@ declare const Metric: {
|
|
|
579
586
|
readonly HUNTER: "hunter";
|
|
580
587
|
readonly CONSTRUCTION: "construction";
|
|
581
588
|
};
|
|
582
|
-
type Metric = typeof Metric[keyof typeof Metric];
|
|
589
|
+
type Metric = (typeof Metric)[keyof typeof Metric];
|
|
583
590
|
declare const NameChangeStatus: {
|
|
584
591
|
readonly PENDING: "pending";
|
|
585
592
|
readonly DENIED: "denied";
|
|
586
593
|
readonly APPROVED: "approved";
|
|
587
594
|
};
|
|
588
|
-
type NameChangeStatus = typeof NameChangeStatus[keyof typeof NameChangeStatus];
|
|
595
|
+
type NameChangeStatus = (typeof NameChangeStatus)[keyof typeof NameChangeStatus];
|
|
589
596
|
declare const Period: {
|
|
590
597
|
readonly FIVE_MIN: "five_min";
|
|
591
598
|
readonly DAY: "day";
|
|
@@ -593,7 +600,7 @@ declare const Period: {
|
|
|
593
600
|
readonly MONTH: "month";
|
|
594
601
|
readonly YEAR: "year";
|
|
595
602
|
};
|
|
596
|
-
type Period = typeof Period[keyof typeof Period];
|
|
603
|
+
type Period = (typeof Period)[keyof typeof Period];
|
|
597
604
|
declare const PlayerType: {
|
|
598
605
|
readonly UNKNOWN: "unknown";
|
|
599
606
|
readonly REGULAR: "regular";
|
|
@@ -601,7 +608,7 @@ declare const PlayerType: {
|
|
|
601
608
|
readonly HARDCORE: "hardcore";
|
|
602
609
|
readonly ULTIMATE: "ultimate";
|
|
603
610
|
};
|
|
604
|
-
type PlayerType = typeof PlayerType[keyof typeof PlayerType];
|
|
611
|
+
type PlayerType = (typeof PlayerType)[keyof typeof PlayerType];
|
|
605
612
|
declare const PlayerBuild: {
|
|
606
613
|
readonly MAIN: "main";
|
|
607
614
|
readonly F2P: "f2p";
|
|
@@ -611,7 +618,7 @@ declare const PlayerBuild: {
|
|
|
611
618
|
readonly DEF1: "def1";
|
|
612
619
|
readonly HP10: "hp10";
|
|
613
620
|
};
|
|
614
|
-
type PlayerBuild = typeof PlayerBuild[keyof typeof PlayerBuild];
|
|
621
|
+
type PlayerBuild = (typeof PlayerBuild)[keyof typeof PlayerBuild];
|
|
615
622
|
declare const PlayerStatus: {
|
|
616
623
|
readonly ACTIVE: "active";
|
|
617
624
|
readonly UNRANKED: "unranked";
|
|
@@ -619,12 +626,12 @@ declare const PlayerStatus: {
|
|
|
619
626
|
readonly ARCHIVED: "archived";
|
|
620
627
|
readonly BANNED: "banned";
|
|
621
628
|
};
|
|
622
|
-
type PlayerStatus = typeof PlayerStatus[keyof typeof PlayerStatus];
|
|
629
|
+
type PlayerStatus = (typeof PlayerStatus)[keyof typeof PlayerStatus];
|
|
623
630
|
declare const CompetitionType: {
|
|
624
631
|
readonly CLASSIC: "classic";
|
|
625
632
|
readonly TEAM: "team";
|
|
626
633
|
};
|
|
627
|
-
type CompetitionType = typeof CompetitionType[keyof typeof CompetitionType];
|
|
634
|
+
type CompetitionType = (typeof CompetitionType)[keyof typeof CompetitionType];
|
|
628
635
|
declare const GroupRole: {
|
|
629
636
|
readonly ACHIEVER: "achiever";
|
|
630
637
|
readonly ADAMANT: "adamant";
|
|
@@ -896,7 +903,7 @@ declare const GroupRole: {
|
|
|
896
903
|
readonly ZEALOT: "zealot";
|
|
897
904
|
readonly ZENYTE: "zenyte";
|
|
898
905
|
};
|
|
899
|
-
type GroupRole = typeof GroupRole[keyof typeof GroupRole];
|
|
906
|
+
type GroupRole = (typeof GroupRole)[keyof typeof GroupRole];
|
|
900
907
|
declare const Country: {
|
|
901
908
|
readonly AD: "AD";
|
|
902
909
|
readonly AE: "AE";
|
|
@@ -1148,13 +1155,13 @@ declare const Country: {
|
|
|
1148
1155
|
readonly ZM: "ZM";
|
|
1149
1156
|
readonly ZW: "ZW";
|
|
1150
1157
|
};
|
|
1151
|
-
type Country = typeof Country[keyof typeof Country];
|
|
1158
|
+
type Country = (typeof Country)[keyof typeof Country];
|
|
1152
1159
|
declare const ActivityType: {
|
|
1153
1160
|
readonly JOINED: "joined";
|
|
1154
1161
|
readonly LEFT: "left";
|
|
1155
1162
|
readonly CHANGED_ROLE: "changed_role";
|
|
1156
1163
|
};
|
|
1157
|
-
type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
1164
|
+
type ActivityType = (typeof ActivityType)[keyof typeof ActivityType];
|
|
1158
1165
|
|
|
1159
1166
|
type Achievement = Omit<Prisma_Base_Achievement, 'threshold' | 'accuracy'> & {
|
|
1160
1167
|
threshold: number;
|
|
@@ -1373,11 +1380,9 @@ interface TempleGroupData {
|
|
|
1373
1380
|
members: string[];
|
|
1374
1381
|
leaders: string[];
|
|
1375
1382
|
}
|
|
1376
|
-
type MemberRoleChangeEvent = Omit<MemberActivity, 'createdAt'
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
type MemberJoinedEvent = Omit<MemberActivity, 'createdAt'>;
|
|
1380
|
-
type MemberLeftEvent = Omit<MemberActivity, 'createdAt' | 'role'>;
|
|
1383
|
+
type MemberRoleChangeEvent = Omit<MemberActivity, 'createdAt'>;
|
|
1384
|
+
type MemberJoinedEvent = Omit<MemberActivity, 'createdAt' | 'previousRole'>;
|
|
1385
|
+
type MemberLeftEvent = Omit<MemberActivity, 'createdAt' | 'previousRole'>;
|
|
1381
1386
|
type MemberActivityWithPlayer = MemberActivity & {
|
|
1382
1387
|
player: Player;
|
|
1383
1388
|
};
|
|
@@ -1639,6 +1644,7 @@ declare const MetricProps: {
|
|
|
1639
1644
|
readonly pvp_arena: ActivityProperties;
|
|
1640
1645
|
readonly soul_wars_zeal: ActivityProperties;
|
|
1641
1646
|
readonly guardians_of_the_rift: ActivityProperties;
|
|
1647
|
+
readonly colosseum_glory: ActivityProperties;
|
|
1642
1648
|
readonly abyssal_sire: BossProperties;
|
|
1643
1649
|
readonly alchemical_hydra: BossProperties;
|
|
1644
1650
|
readonly artio: BossProperties;
|
|
@@ -1668,6 +1674,7 @@ declare const MetricProps: {
|
|
|
1668
1674
|
readonly kraken: BossProperties;
|
|
1669
1675
|
readonly kreearra: BossProperties;
|
|
1670
1676
|
readonly kril_tsutsaroth: BossProperties;
|
|
1677
|
+
readonly lunar_chests: BossProperties;
|
|
1671
1678
|
readonly mimic: BossProperties;
|
|
1672
1679
|
readonly nex: BossProperties;
|
|
1673
1680
|
readonly nightmare: BossProperties;
|
|
@@ -1678,6 +1685,7 @@ declare const MetricProps: {
|
|
|
1678
1685
|
readonly scorpia: BossProperties;
|
|
1679
1686
|
readonly scurrius: BossProperties;
|
|
1680
1687
|
readonly skotizo: BossProperties;
|
|
1688
|
+
readonly sol_heredit: BossProperties;
|
|
1681
1689
|
readonly spindel: BossProperties;
|
|
1682
1690
|
readonly tempoross: BossProperties;
|
|
1683
1691
|
readonly the_gauntlet: BossProperties;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
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",
|