rategame-shared 1.1.316 → 1.1.318

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/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export * from "./schemas/userEvent";
12
12
  export * from "./schemas/player";
13
13
  export * from "./schemas/voting";
14
14
  export * from "./schemas/stadium";
15
+ export * from "./schemas/content";
15
16
  export * from "./models/user";
16
17
  export * from "./models/rating";
17
18
  export * from "./models/game";
@@ -23,6 +24,7 @@ export * from "./models/support";
23
24
  export * from "./models/list";
24
25
  export * from "./models/moderation";
25
26
  export * from "./models/userEvent";
27
+ export * from "./models/content";
26
28
  export * from "./helpers/index";
27
29
  export * from "./models/player";
28
30
  export * from "./models/voting";
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ __exportStar(require("./schemas/userEvent"), exports);
28
28
  __exportStar(require("./schemas/player"), exports);
29
29
  __exportStar(require("./schemas/voting"), exports);
30
30
  __exportStar(require("./schemas/stadium"), exports);
31
+ __exportStar(require("./schemas/content"), exports);
31
32
  __exportStar(require("./models/user"), exports);
32
33
  __exportStar(require("./models/rating"), exports);
33
34
  __exportStar(require("./models/game"), exports);
@@ -39,6 +40,7 @@ __exportStar(require("./models/support"), exports);
39
40
  __exportStar(require("./models/list"), exports);
40
41
  __exportStar(require("./models/moderation"), exports);
41
42
  __exportStar(require("./models/userEvent"), exports);
43
+ __exportStar(require("./models/content"), exports);
42
44
  __exportStar(require("./helpers/index"), exports);
43
45
  __exportStar(require("./models/player"), exports);
44
46
  __exportStar(require("./models/voting"), exports);
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { featuredVideoSchema } from "../schemas/content";
3
+ export type FeaturedVideo = z.infer<typeof featuredVideoSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -721,6 +721,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
721
721
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
722
722
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
723
723
  }>>;
724
+ playerTopLists: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">]>>>;
724
725
  }, "strip", z.ZodTypeAny, {
725
726
  allGames?: boolean | undefined;
726
727
  favoriteLeagues?: boolean | undefined;
@@ -748,6 +749,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
748
749
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
749
750
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
750
751
  } | undefined;
752
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
751
753
  }, {
752
754
  allGames?: boolean | undefined;
753
755
  favoriteLeagues?: boolean | undefined;
@@ -775,6 +777,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
775
777
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
776
778
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
777
779
  } | undefined;
780
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
778
781
  }>>;
779
782
  spoilersEnabled: z.ZodOptional<z.ZodBoolean>;
780
783
  viewedChangelogs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
@@ -1822,6 +1825,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
1822
1825
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
1823
1826
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
1824
1827
  }>>;
1828
+ playerTopLists: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">]>>>;
1825
1829
  }, "strip", z.ZodTypeAny, {
1826
1830
  allGames?: boolean | undefined;
1827
1831
  favoriteLeagues?: boolean | undefined;
@@ -1849,6 +1853,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
1849
1853
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
1850
1854
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
1851
1855
  } | undefined;
1856
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
1852
1857
  }, {
1853
1858
  allGames?: boolean | undefined;
1854
1859
  favoriteLeagues?: boolean | undefined;
@@ -1876,6 +1881,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
1876
1881
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
1877
1882
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
1878
1883
  } | undefined;
1884
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
1879
1885
  }>>;
1880
1886
  spoilersEnabled: z.ZodOptional<z.ZodBoolean>;
1881
1887
  viewedChangelogs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
@@ -2979,6 +2985,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
2979
2985
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
2980
2986
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
2981
2987
  }>>;
2988
+ playerTopLists: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">]>>>;
2982
2989
  }, "strip", z.ZodTypeAny, {
2983
2990
  allGames?: boolean | undefined;
2984
2991
  favoriteLeagues?: boolean | undefined;
@@ -3006,6 +3013,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
3006
3013
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
3007
3014
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
3008
3015
  } | undefined;
3016
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
3009
3017
  }, {
3010
3018
  allGames?: boolean | undefined;
3011
3019
  favoriteLeagues?: boolean | undefined;
@@ -3033,6 +3041,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
3033
3041
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
3034
3042
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
3035
3043
  } | undefined;
3044
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
3036
3045
  }>>;
3037
3046
  spoilersEnabled: z.ZodOptional<z.ZodBoolean>;
3038
3047
  viewedChangelogs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
@@ -4079,6 +4088,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4079
4088
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
4080
4089
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
4081
4090
  }>>;
4091
+ playerTopLists: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">]>>>;
4082
4092
  }, "strip", z.ZodTypeAny, {
4083
4093
  allGames?: boolean | undefined;
4084
4094
  favoriteLeagues?: boolean | undefined;
@@ -4106,6 +4116,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4106
4116
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
4107
4117
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
4108
4118
  } | undefined;
4119
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
4109
4120
  }, {
4110
4121
  allGames?: boolean | undefined;
4111
4122
  favoriteLeagues?: boolean | undefined;
@@ -4133,6 +4144,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4133
4144
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
4134
4145
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
4135
4146
  } | undefined;
4147
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
4136
4148
  }>>;
4137
4149
  spoilersEnabled: z.ZodOptional<z.ZodBoolean>;
4138
4150
  viewedChangelogs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
@@ -5231,6 +5243,7 @@ export declare const messageReactionSchema: z.ZodObject<{
5231
5243
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
5232
5244
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
5233
5245
  }>>;
5246
+ playerTopLists: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">]>>>;
5234
5247
  }, "strip", z.ZodTypeAny, {
5235
5248
  allGames?: boolean | undefined;
5236
5249
  favoriteLeagues?: boolean | undefined;
@@ -5258,6 +5271,7 @@ export declare const messageReactionSchema: z.ZodObject<{
5258
5271
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
5259
5272
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
5260
5273
  } | undefined;
5274
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
5261
5275
  }, {
5262
5276
  allGames?: boolean | undefined;
5263
5277
  favoriteLeagues?: boolean | undefined;
@@ -5285,6 +5299,7 @@ export declare const messageReactionSchema: z.ZodObject<{
5285
5299
  mostRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
5286
5300
  worstRated?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | null | undefined;
5287
5301
  } | undefined;
5302
+ playerTopLists?: "daily" | "weekly" | "monthly" | null | undefined;
5288
5303
  }>>;
5289
5304
  spoilersEnabled: z.ZodOptional<z.ZodBoolean>;
5290
5305
  viewedChangelogs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
@@ -0,0 +1,19 @@
1
+ export declare const featuredVideoSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ title: import("zod").ZodString;
4
+ description: import("zod").ZodString;
5
+ url: import("zod").ZodString;
6
+ thumbnail: import("zod").ZodString;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ id: string;
9
+ url: string;
10
+ title: string;
11
+ description: string;
12
+ thumbnail: string;
13
+ }, {
14
+ id: string;
15
+ url: string;
16
+ title: string;
17
+ description: string;
18
+ thumbnail: string;
19
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.featuredVideoSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.featuredVideoSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.string)(),
7
+ title: (0, zod_1.string)(),
8
+ description: (0, zod_1.string)(),
9
+ url: (0, zod_1.string)(),
10
+ thumbnail: (0, zod_1.string)(),
11
+ });