rategame-shared 1.1.462 → 1.1.463

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.
@@ -1146,6 +1146,9 @@ export declare const articleSchema: z.ZodObject<{
1146
1146
  label: z.ZodOptional<z.ZodString>;
1147
1147
  context: z.ZodOptional<z.ZodString>;
1148
1148
  achievedAt: z.ZodOptional<z.ZodNumber>;
1149
+ /**
1150
+ * Schema for updating an existing article.
1151
+ */
1149
1152
  seen: z.ZodOptional<z.ZodBoolean>;
1150
1153
  isOngoing: z.ZodOptional<z.ZodBoolean>;
1151
1154
  }, "strip", z.ZodTypeAny, {
@@ -1166,9 +1169,7 @@ export declare const articleSchema: z.ZodObject<{
1166
1169
  isOngoing?: boolean | undefined;
1167
1170
  }>>>;
1168
1171
  seen: z.ZodOptional<z.ZodBoolean>;
1169
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>; /**
1170
- * Thread comment schema for articles.
1171
- */
1172
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>;
1172
1173
  category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating">, z.ZodLiteral<"picks">, z.ZodLiteral<"takes">, z.ZodLiteral<"voting">, z.ZodLiteral<"social">, z.ZodLiteral<"stadium">, z.ZodLiteral<"lists">, z.ZodLiteral<"profile">]>>;
1173
1174
  league: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>, z.ZodString]>>;
1174
1175
  sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
@@ -2528,6 +2529,9 @@ export declare const createArticleSchema: z.ZodObject<{
2528
2529
  label: z.ZodOptional<z.ZodString>;
2529
2530
  context: z.ZodOptional<z.ZodString>;
2530
2531
  achievedAt: z.ZodOptional<z.ZodNumber>;
2532
+ /**
2533
+ * Schema for updating an existing article.
2534
+ */
2531
2535
  seen: z.ZodOptional<z.ZodBoolean>;
2532
2536
  isOngoing: z.ZodOptional<z.ZodBoolean>;
2533
2537
  }, "strip", z.ZodTypeAny, {
@@ -2548,9 +2552,7 @@ export declare const createArticleSchema: z.ZodObject<{
2548
2552
  isOngoing?: boolean | undefined;
2549
2553
  }>>>;
2550
2554
  seen: z.ZodOptional<z.ZodBoolean>;
2551
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>; /**
2552
- * Thread comment schema for articles.
2553
- */
2555
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>;
2554
2556
  category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating">, z.ZodLiteral<"picks">, z.ZodLiteral<"takes">, z.ZodLiteral<"voting">, z.ZodLiteral<"social">, z.ZodLiteral<"stadium">, z.ZodLiteral<"lists">, z.ZodLiteral<"profile">]>>;
2555
2557
  league: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>, z.ZodString]>>;
2556
2558
  sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
@@ -2912,12 +2914,18 @@ export declare const searchArticleSchema: z.ZodObject<{
2912
2914
  limit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2913
2915
  offset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2914
2916
  sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"createdAt:desc">, z.ZodLiteral<"userLikes:desc">]>>;
2917
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"16hr">, z.ZodLiteral<"Today">, z.ZodLiteral<"Last 3 Days">, z.ZodLiteral<"This Week">, z.ZodLiteral<"This Season">, z.ZodLiteral<"This Month">, z.ZodLiteral<"This Year">, z.ZodLiteral<"2025">, z.ZodLiteral<"2024">, z.ZodLiteral<"All">, z.ZodLiteral<"All Time">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
2918
+ customDateFrom: z.ZodOptional<z.ZodString>;
2919
+ customDateTo: z.ZodOptional<z.ZodString>;
2915
2920
  }, "strip", z.ZodTypeAny, {
2916
2921
  offset: string;
2917
2922
  limit: string;
2918
2923
  type?: "stadium" | "league" | "game" | "team" | undefined;
2919
2924
  q?: string | undefined;
2920
2925
  league?: string | undefined;
2926
+ createdAt?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | undefined;
2927
+ customDateFrom?: string | undefined;
2928
+ customDateTo?: string | undefined;
2921
2929
  stadiumId?: string | undefined;
2922
2930
  teamId?: string | number | undefined;
2923
2931
  sortBy?: "createdAt:desc" | "userLikes:desc" | undefined;
@@ -2928,7 +2936,10 @@ export declare const searchArticleSchema: z.ZodObject<{
2928
2936
  offset?: string | undefined;
2929
2937
  q?: string | undefined;
2930
2938
  league?: string | undefined;
2939
+ createdAt?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | undefined;
2931
2940
  limit?: string | undefined;
2941
+ customDateFrom?: string | undefined;
2942
+ customDateTo?: string | undefined;
2932
2943
  stadiumId?: string | undefined;
2933
2944
  teamId?: string | number | undefined;
2934
2945
  sortBy?: "createdAt:desc" | "userLikes:desc" | undefined;
@@ -3964,6 +3975,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
3964
3975
  label: z.ZodOptional<z.ZodString>;
3965
3976
  context: z.ZodOptional<z.ZodString>;
3966
3977
  achievedAt: z.ZodOptional<z.ZodNumber>;
3978
+ /**
3979
+ * Schema for updating an existing article.
3980
+ */
3967
3981
  seen: z.ZodOptional<z.ZodBoolean>;
3968
3982
  isOngoing: z.ZodOptional<z.ZodBoolean>;
3969
3983
  }, "strip", z.ZodTypeAny, {
@@ -3984,9 +3998,7 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
3984
3998
  isOngoing?: boolean | undefined;
3985
3999
  }>>>;
3986
4000
  seen: z.ZodOptional<z.ZodBoolean>;
3987
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>; /**
3988
- * Thread comment schema for articles.
3989
- */
4001
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>;
3990
4002
  category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating">, z.ZodLiteral<"picks">, z.ZodLiteral<"takes">, z.ZodLiteral<"voting">, z.ZodLiteral<"social">, z.ZodLiteral<"stadium">, z.ZodLiteral<"lists">, z.ZodLiteral<"profile">]>>;
3991
4003
  league: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>, z.ZodString]>>;
3992
4004
  sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
@@ -5214,6 +5226,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
5214
5226
  label: z.ZodOptional<z.ZodString>;
5215
5227
  context: z.ZodOptional<z.ZodString>;
5216
5228
  achievedAt: z.ZodOptional<z.ZodNumber>;
5229
+ /**
5230
+ * Schema for updating an existing article.
5231
+ */
5217
5232
  seen: z.ZodOptional<z.ZodBoolean>;
5218
5233
  isOngoing: z.ZodOptional<z.ZodBoolean>;
5219
5234
  }, "strip", z.ZodTypeAny, {
@@ -5234,9 +5249,7 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
5234
5249
  isOngoing?: boolean | undefined;
5235
5250
  }>>>;
5236
5251
  seen: z.ZodOptional<z.ZodBoolean>;
5237
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>; /**
5238
- * Thread comment schema for articles.
5239
- */
5252
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>;
5240
5253
  category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating">, z.ZodLiteral<"picks">, z.ZodLiteral<"takes">, z.ZodLiteral<"voting">, z.ZodLiteral<"social">, z.ZodLiteral<"stadium">, z.ZodLiteral<"lists">, z.ZodLiteral<"profile">]>>;
5241
5254
  league: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>, z.ZodString]>>;
5242
5255
  sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
@@ -6516,6 +6529,9 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
6516
6529
  label: z.ZodOptional<z.ZodString>;
6517
6530
  context: z.ZodOptional<z.ZodString>;
6518
6531
  achievedAt: z.ZodOptional<z.ZodNumber>;
6532
+ /**
6533
+ * Schema for updating an existing article.
6534
+ */
6519
6535
  seen: z.ZodOptional<z.ZodBoolean>;
6520
6536
  isOngoing: z.ZodOptional<z.ZodBoolean>;
6521
6537
  }, "strip", z.ZodTypeAny, {
@@ -6536,9 +6552,7 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
6536
6552
  isOngoing?: boolean | undefined;
6537
6553
  }>>>;
6538
6554
  seen: z.ZodOptional<z.ZodBoolean>;
6539
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>; /**
6540
- * Thread comment schema for articles.
6541
- */
6555
+ type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"global">, z.ZodLiteral<"sport">, z.ZodLiteral<"league">]>>;
6542
6556
  category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating">, z.ZodLiteral<"picks">, z.ZodLiteral<"takes">, z.ZodLiteral<"voting">, z.ZodLiteral<"social">, z.ZodLiteral<"stadium">, z.ZodLiteral<"lists">, z.ZodLiteral<"profile">]>>;
6543
6557
  league: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>, z.ZodString]>>;
6544
6558
  sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
@@ -4,6 +4,7 @@ exports.articleThreadCommentLikeSchema = exports.articleThreadCommentSchema = ex
4
4
  const zod_1 = require("zod");
5
5
  const user_1 = require("./user");
6
6
  const trivia_1 = require("./trivia");
7
+ const sharedTypes_1 = require("./sharedTypes");
7
8
  /**
8
9
  * Tag types available on an article. Extends the trivia entity types
9
10
  * (team/league/stadium/game) with article-only tags. `rategame` marks an
@@ -108,6 +109,9 @@ exports.searchArticleSchema = zod_1.z.object({
108
109
  sortBy: zod_1.z
109
110
  .union([zod_1.z.literal("createdAt:desc"), zod_1.z.literal("userLikes:desc")])
110
111
  .optional(),
112
+ createdAt: sharedTypes_1.timeFilterSchema.optional(),
113
+ customDateFrom: zod_1.z.string().optional(),
114
+ customDateTo: zod_1.z.string().optional(),
111
115
  });
112
116
  /**
113
117
  * Thread comment schema for articles.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.462",
3
+ "version": "1.1.463",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",