rategame-shared 1.0.50 → 1.0.52

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.
@@ -148,7 +148,7 @@ export declare const gameSchema: z.ZodObject<{
148
148
  options: Record<number, number>;
149
149
  };
150
150
  }>;
151
- userIds: z.ZodArray<z.ZodString, "many">;
151
+ userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  round: number;
154
154
  status: "live" | "scheduled" | "final";
@@ -189,8 +189,8 @@ export declare const gameSchema: z.ZodObject<{
189
189
  options: Record<number, number>;
190
190
  };
191
191
  };
192
- userIds: string[];
193
192
  id?: string | undefined;
193
+ userIds?: string[] | undefined;
194
194
  }, {
195
195
  round: number;
196
196
  status: "live" | "scheduled" | "final";
@@ -231,15 +231,15 @@ export declare const gameSchema: z.ZodObject<{
231
231
  options: Record<number, number>;
232
232
  };
233
233
  };
234
- userIds: string[];
235
234
  id?: string | undefined;
235
+ userIds?: string[] | undefined;
236
236
  }>;
237
237
  export declare const searchGameSchema: z.ZodObject<{
238
238
  q: z.ZodOptional<z.ZodString>;
239
239
  teamId: z.ZodOptional<z.ZodString>;
240
240
  round: z.ZodOptional<z.ZodString>;
241
241
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
242
- sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating:asc">, z.ZodLiteral<"rating:desc">, z.ZodLiteral<"createdAt:asc">, z.ZodLiteral<"createdAt:desc">]>>;
242
+ sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating:asc">, z.ZodLiteral<"rating:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
243
243
  limit: z.ZodOptional<z.ZodString>;
244
244
  offset: z.ZodOptional<z.ZodString>;
245
245
  }, "strip", z.ZodTypeAny, {
@@ -247,7 +247,7 @@ export declare const searchGameSchema: z.ZodObject<{
247
247
  teamId?: string | undefined;
248
248
  round?: string | undefined;
249
249
  createdAt?: "12h" | "daily" | "weekly" | undefined;
250
- sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
250
+ sortBy?: "rating:asc" | "rating:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
251
251
  limit?: string | undefined;
252
252
  offset?: string | undefined;
253
253
  }, {
@@ -255,7 +255,7 @@ export declare const searchGameSchema: z.ZodObject<{
255
255
  teamId?: string | undefined;
256
256
  round?: string | undefined;
257
257
  createdAt?: "12h" | "daily" | "weekly" | undefined;
258
- sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
258
+ sortBy?: "rating:asc" | "rating:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
259
259
  limit?: string | undefined;
260
260
  offset?: string | undefined;
261
261
  }>;
@@ -41,7 +41,7 @@ exports.gameSchema = zod_1.z.object({
41
41
  periodNumber: zod_1.z.number(),
42
42
  })),
43
43
  rating: exports.gameRatingAggregateSchema,
44
- userIds: zod_1.z.array(zod_1.z.string()),
44
+ userIds: zod_1.z.array(zod_1.z.string()).optional(),
45
45
  });
46
46
  exports.searchGameSchema = zod_1.z.object({
47
47
  q: zod_1.z.string().optional(),
@@ -54,8 +54,8 @@ exports.searchGameSchema = zod_1.z.object({
54
54
  .union([
55
55
  zod_1.z.literal("rating:asc"),
56
56
  zod_1.z.literal("rating:desc"),
57
- zod_1.z.literal("createdAt:asc"),
58
- zod_1.z.literal("createdAt:desc"),
57
+ zod_1.z.literal("startedAt:asc"),
58
+ zod_1.z.literal("startedAt:desc"),
59
59
  ])
60
60
  .optional(),
61
61
  limit: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
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",