@wise-old-man/utils 3.3.7 → 3.3.9

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.
@@ -605,6 +605,7 @@ const Boss = {
605
605
  THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
606
606
  THE_HUEYCOATL: 'the_hueycoatl',
607
607
  THE_LEVIATHAN: 'the_leviathan',
608
+ THE_ROYAL_TITANS: 'the_royal_titans',
608
609
  THE_WHISPERER: 'the_whisperer',
609
610
  THEATRE_OF_BLOOD: 'theatre_of_blood',
610
611
  THEATRE_OF_BLOOD_HARD_MODE: 'theatre_of_blood_hard_mode',
@@ -646,8 +647,8 @@ const PlayerType = {
646
647
  ULTIMATE: 'ultimate'
647
648
  };
648
649
  const PlayerAnnotationType = {
649
- BLACKLIST: 'blacklist',
650
- GREYLIST: 'greylist',
650
+ OPT_OUT: 'opt_out',
651
+ BLOCKED: 'blocked',
651
652
  FAKE_F2P: 'fake_f2p'
652
653
  };
653
654
  const PlayerBuild = {
@@ -1956,6 +1957,7 @@ const BossProps = mapValues({
1956
1957
  [Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
1957
1958
  [Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet' },
1958
1959
  [Boss.THE_LEVIATHAN]: { name: 'The Leviathan' },
1960
+ [Boss.THE_ROYAL_TITANS]: { name: 'The Royal Titans' },
1959
1961
  [Boss.THE_WHISPERER]: { name: 'The Whisperer' },
1960
1962
  [Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood' },
1961
1963
  [Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)' },
package/dist/es/index.js CHANGED
@@ -603,6 +603,7 @@ const Boss = {
603
603
  THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
604
604
  THE_HUEYCOATL: 'the_hueycoatl',
605
605
  THE_LEVIATHAN: 'the_leviathan',
606
+ THE_ROYAL_TITANS: 'the_royal_titans',
606
607
  THE_WHISPERER: 'the_whisperer',
607
608
  THEATRE_OF_BLOOD: 'theatre_of_blood',
608
609
  THEATRE_OF_BLOOD_HARD_MODE: 'theatre_of_blood_hard_mode',
@@ -644,8 +645,8 @@ const PlayerType = {
644
645
  ULTIMATE: 'ultimate'
645
646
  };
646
647
  const PlayerAnnotationType = {
647
- BLACKLIST: 'blacklist',
648
- GREYLIST: 'greylist',
648
+ OPT_OUT: 'opt_out',
649
+ BLOCKED: 'blocked',
649
650
  FAKE_F2P: 'fake_f2p'
650
651
  };
651
652
  const PlayerBuild = {
@@ -1954,6 +1955,7 @@ const BossProps = mapValues({
1954
1955
  [Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
1955
1956
  [Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet' },
1956
1957
  [Boss.THE_LEVIATHAN]: { name: 'The Leviathan' },
1958
+ [Boss.THE_ROYAL_TITANS]: { name: 'The Royal Titans' },
1957
1959
  [Boss.THE_WHISPERER]: { name: 'The Whisperer' },
1958
1960
  [Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood' },
1959
1961
  [Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)' },
package/dist/es/index.mjs CHANGED
@@ -603,6 +603,7 @@ const Boss = {
603
603
  THE_CORRUPTED_GAUNTLET: 'the_corrupted_gauntlet',
604
604
  THE_HUEYCOATL: 'the_hueycoatl',
605
605
  THE_LEVIATHAN: 'the_leviathan',
606
+ THE_ROYAL_TITANS: 'the_royal_titans',
606
607
  THE_WHISPERER: 'the_whisperer',
607
608
  THEATRE_OF_BLOOD: 'theatre_of_blood',
608
609
  THEATRE_OF_BLOOD_HARD_MODE: 'theatre_of_blood_hard_mode',
@@ -644,8 +645,8 @@ const PlayerType = {
644
645
  ULTIMATE: 'ultimate'
645
646
  };
646
647
  const PlayerAnnotationType = {
647
- BLACKLIST: 'blacklist',
648
- GREYLIST: 'greylist',
648
+ OPT_OUT: 'opt_out',
649
+ BLOCKED: 'blocked',
649
650
  FAKE_F2P: 'fake_f2p'
650
651
  };
651
652
  const PlayerBuild = {
@@ -1954,6 +1955,7 @@ const BossProps = mapValues({
1954
1955
  [Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
1955
1956
  [Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet' },
1956
1957
  [Boss.THE_LEVIATHAN]: { name: 'The Leviathan' },
1958
+ [Boss.THE_ROYAL_TITANS]: { name: 'The Royal Titans' },
1957
1959
  [Boss.THE_WHISPERER]: { name: 'The Whisperer' },
1958
1960
  [Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood' },
1959
1961
  [Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)' },
package/dist/index.d.ts CHANGED
@@ -20,6 +20,12 @@ export type MemberActivity = {
20
20
  createdAt: Date;
21
21
  };
22
22
 
23
+ export type PlayerAnnotation = {
24
+ playerId: number;
25
+ type: PlayerAnnotationType;
26
+ createdAt: Date;
27
+ };
28
+
23
29
  export type PlayerArchive = {
24
30
  playerId: number;
25
31
  previousUsername: string;
@@ -477,6 +483,7 @@ declare const Boss: {
477
483
  readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
478
484
  readonly THE_HUEYCOATL: "the_hueycoatl";
479
485
  readonly THE_LEVIATHAN: "the_leviathan";
486
+ readonly THE_ROYAL_TITANS: "the_royal_titans";
480
487
  readonly THE_WHISPERER: "the_whisperer";
481
488
  readonly THEATRE_OF_BLOOD: "theatre_of_blood";
482
489
  readonly THEATRE_OF_BLOOD_HARD_MODE: "theatre_of_blood_hard_mode";
@@ -551,6 +558,7 @@ declare const Metric: {
551
558
  readonly THE_CORRUPTED_GAUNTLET: "the_corrupted_gauntlet";
552
559
  readonly THE_HUEYCOATL: "the_hueycoatl";
553
560
  readonly THE_LEVIATHAN: "the_leviathan";
561
+ readonly THE_ROYAL_TITANS: "the_royal_titans";
554
562
  readonly THE_WHISPERER: "the_whisperer";
555
563
  readonly THEATRE_OF_BLOOD: "theatre_of_blood";
556
564
  readonly THEATRE_OF_BLOOD_HARD_MODE: "theatre_of_blood_hard_mode";
@@ -631,8 +639,8 @@ declare const PlayerType: {
631
639
  };
632
640
  type PlayerType = (typeof PlayerType)[keyof typeof PlayerType];
633
641
  declare const PlayerAnnotationType: {
634
- readonly BLACKLIST: "blacklist";
635
- readonly GREYLIST: "greylist";
642
+ readonly OPT_OUT: "opt_out";
643
+ readonly BLOCKED: "blocked";
636
644
  readonly FAKE_F2P: "fake_f2p";
637
645
  };
638
646
  type PlayerAnnotationType = (typeof PlayerAnnotationType)[keyof typeof PlayerAnnotationType];
@@ -1524,6 +1532,7 @@ interface PlayerDetails extends Player {
1524
1532
  combatLevel: number;
1525
1533
  archive: PlayerArchive | null;
1526
1534
  latestSnapshot: FormattedSnapshot | null;
1535
+ annotations: PlayerAnnotation[];
1527
1536
  }
1528
1537
  interface FlaggedPlayerReviewContext {
1529
1538
  previous: FormattedSnapshot;
@@ -1710,6 +1719,7 @@ declare const MetricProps: {
1710
1719
  readonly the_corrupted_gauntlet: BossProperties;
1711
1720
  readonly the_hueycoatl: BossProperties;
1712
1721
  readonly the_leviathan: BossProperties;
1722
+ readonly the_royal_titans: BossProperties;
1713
1723
  readonly the_whisperer: BossProperties;
1714
1724
  readonly theatre_of_blood: BossProperties;
1715
1725
  readonly theatre_of_blood_hard_mode: BossProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "3.3.7",
3
+ "version": "3.3.9",
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",