@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.
- package/dist/cjs/index.cjs +2 -2
- package/dist/es/index.js +2 -2
- package/dist/es/index.mjs +2 -2
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
package/dist/es/index.js
CHANGED
package/dist/es/index.mjs
CHANGED
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
|
|
637
|
-
readonly
|
|
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.
|
|
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",
|