@wise-old-man/utils 3.3.8 → 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.
@@ -647,8 +647,8 @@ const PlayerType = {
647
647
  ULTIMATE: 'ultimate'
648
648
  };
649
649
  const PlayerAnnotationType = {
650
- BLACKLIST: 'blacklist',
651
- GREYLIST: 'greylist',
650
+ OPT_OUT: 'opt_out',
651
+ BLOCKED: 'blocked',
652
652
  FAKE_F2P: 'fake_f2p'
653
653
  };
654
654
  const PlayerBuild = {
package/dist/es/index.js CHANGED
@@ -645,8 +645,8 @@ const PlayerType = {
645
645
  ULTIMATE: 'ultimate'
646
646
  };
647
647
  const PlayerAnnotationType = {
648
- BLACKLIST: 'blacklist',
649
- GREYLIST: 'greylist',
648
+ OPT_OUT: 'opt_out',
649
+ BLOCKED: 'blocked',
650
650
  FAKE_F2P: 'fake_f2p'
651
651
  };
652
652
  const PlayerBuild = {
package/dist/es/index.mjs CHANGED
@@ -645,8 +645,8 @@ const PlayerType = {
645
645
  ULTIMATE: 'ultimate'
646
646
  };
647
647
  const PlayerAnnotationType = {
648
- BLACKLIST: 'blacklist',
649
- GREYLIST: 'greylist',
648
+ OPT_OUT: 'opt_out',
649
+ BLOCKED: 'blocked',
650
650
  FAKE_F2P: 'fake_f2p'
651
651
  };
652
652
  const PlayerBuild = {
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;
@@ -633,8 +639,8 @@ declare const PlayerType: {
633
639
  };
634
640
  type PlayerType = (typeof PlayerType)[keyof typeof PlayerType];
635
641
  declare const PlayerAnnotationType: {
636
- readonly BLACKLIST: "blacklist";
637
- readonly GREYLIST: "greylist";
642
+ readonly OPT_OUT: "opt_out";
643
+ readonly BLOCKED: "blocked";
638
644
  readonly FAKE_F2P: "fake_f2p";
639
645
  };
640
646
  type PlayerAnnotationType = (typeof PlayerAnnotationType)[keyof typeof PlayerAnnotationType];
@@ -1526,6 +1532,7 @@ interface PlayerDetails extends Player {
1526
1532
  combatLevel: number;
1527
1533
  archive: PlayerArchive | null;
1528
1534
  latestSnapshot: FormattedSnapshot | null;
1535
+ annotations: PlayerAnnotation[];
1529
1536
  }
1530
1537
  interface FlaggedPlayerReviewContext {
1531
1538
  previous: FormattedSnapshot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "3.3.8",
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",