rategame-shared 1.1.318 → 1.1.319

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.
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.gamePickUsersResponseDtoSchema = exports.userPicksByTeamResponseDtoSchema = exports.userPicksTeamStatsSchema = exports.userPicksStatsResponseDtoSchema = exports.userPicksLeagueStatsSchema = exports.userPickResponseDtoSchema = exports.gamePickStatsResponseDtoSchema = exports.pickUpdateDtoSchema = exports.pickSubmissionResponseDtoSchema = exports.pickSubmissionDtoSchema = exports.miniPickSchema = exports.pickSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const sharedTypes_1 = require("./sharedTypes");
6
+ const user_1 = require("./user");
7
+ const game_1 = require("./game");
8
+ // Pick schema - full prediction object stored in database
9
+ exports.pickSchema = zod_1.z.object({
10
+ id: zod_1.z.string(),
11
+ user: user_1.reducedUserSchema,
12
+ team: game_1.gameTeamSchema,
13
+ game: game_1.unionGameSchema,
14
+ gameId: zod_1.z.string(),
15
+ league: sharedTypes_1.leagueSlug,
16
+ createdAt: zod_1.z.number(),
17
+ updatedAt: zod_1.z.number(),
18
+ edited: zod_1.z.boolean(),
19
+ });
20
+ // Mini pick for embedding in ratings (same structure as ratingMiniPickSchema in rating.ts)
21
+ exports.miniPickSchema = zod_1.z.object({
22
+ id: zod_1.z.string(),
23
+ team: game_1.gameTeamSchema,
24
+ });
25
+ // Pick submission DTO
26
+ exports.pickSubmissionDtoSchema = zod_1.z.object({
27
+ gameId: zod_1.z.string(),
28
+ league: sharedTypes_1.leagueSlug,
29
+ team: game_1.gameTeamSchema,
30
+ user: user_1.reducedUserSchema,
31
+ game: game_1.unionGameSchema,
32
+ });
33
+ // Pick submission response DTO
34
+ exports.pickSubmissionResponseDtoSchema = zod_1.z.object({
35
+ success: zod_1.z.boolean(),
36
+ pickId: zod_1.z.string(),
37
+ message: zod_1.z.string().optional(),
38
+ });
39
+ // Pick update DTO
40
+ exports.pickUpdateDtoSchema = zod_1.z.object({
41
+ team: game_1.gameTeamSchema,
42
+ });
43
+ // Game pick stats response DTO (aggregated counts)
44
+ exports.gamePickStatsResponseDtoSchema = zod_1.z.object({
45
+ gameId: zod_1.z.string(),
46
+ league: sharedTypes_1.leagueSlug,
47
+ homeTeamPicks: zod_1.z.number(),
48
+ awayTeamPicks: zod_1.z.number(),
49
+ totalPicks: zod_1.z.number(),
50
+ homeTeamPercentage: zod_1.z.number(),
51
+ awayTeamPercentage: zod_1.z.number(),
52
+ });
53
+ // User pick response DTO
54
+ exports.userPickResponseDtoSchema = zod_1.z.object({
55
+ pick: exports.pickSchema.nullable(),
56
+ });
57
+ // User picks stats by league (for profile)
58
+ exports.userPicksLeagueStatsSchema = zod_1.z.object({
59
+ league: sharedTypes_1.leagueSlug,
60
+ totalPicks: zod_1.z.number(),
61
+ correctPicks: zod_1.z.number(),
62
+ incorrectPicks: zod_1.z.number(),
63
+ pendingPicks: zod_1.z.number(),
64
+ });
65
+ // User picks stats response (for profile)
66
+ exports.userPicksStatsResponseDtoSchema = zod_1.z.object({
67
+ totalPicks: zod_1.z.number(),
68
+ correctPicks: zod_1.z.number(),
69
+ incorrectPicks: zod_1.z.number(),
70
+ pendingPicks: zod_1.z.number(),
71
+ byLeague: zod_1.z.array(exports.userPicksLeagueStatsSchema),
72
+ });
73
+ // User picks by team stats (for league breakdown)
74
+ exports.userPicksTeamStatsSchema = zod_1.z.object({
75
+ teamId: zod_1.z.string(),
76
+ teamName: zod_1.z.string(),
77
+ teamImage: zod_1.z.string(),
78
+ totalPicks: zod_1.z.number(),
79
+ correctPicks: zod_1.z.number(),
80
+ incorrectPicks: zod_1.z.number(),
81
+ pendingPicks: zod_1.z.number(),
82
+ });
83
+ // User picks by team response (for league breakdown screen)
84
+ exports.userPicksByTeamResponseDtoSchema = zod_1.z.object({
85
+ league: sharedTypes_1.leagueSlug,
86
+ teams: zod_1.z.array(exports.userPicksTeamStatsSchema),
87
+ });
88
+ // Game pick users response (for bottom sheet)
89
+ exports.gamePickUsersResponseDtoSchema = zod_1.z.object({
90
+ gameId: zod_1.z.string(),
91
+ league: sharedTypes_1.leagueSlug,
92
+ homeTeamUsers: zod_1.z.array(user_1.reducedUserSchema),
93
+ awayTeamUsers: zod_1.z.array(user_1.reducedUserSchema),
94
+ });
@@ -1,3 +1,83 @@
1
+ export declare const ratingMiniPickSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ team: import("zod").ZodObject<{
4
+ id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
5
+ apiTeamId: import("zod").ZodNullable<import("zod").ZodNumber>;
6
+ name: import("zod").ZodNullable<import("zod").ZodString>;
7
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
8
+ isWinner: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodBoolean>>;
9
+ image: import("zod").ZodNullable<import("zod").ZodString>;
10
+ seed: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
11
+ teamCode: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
12
+ scoreExtraTime: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
13
+ stadiumUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
14
+ school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
15
+ city: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
16
+ venueName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
17
+ }, "strip", import("zod").ZodTypeAny, {
18
+ name: string | null;
19
+ image: string | null;
20
+ apiTeamId: number | null;
21
+ id?: string | null | undefined;
22
+ score?: number | undefined;
23
+ isWinner?: boolean | null | undefined;
24
+ seed?: number | null | undefined;
25
+ teamCode?: string | null | undefined;
26
+ scoreExtraTime?: number | null | undefined;
27
+ stadiumUrl?: string | null | undefined;
28
+ school?: string | null | undefined;
29
+ city?: string | null | undefined;
30
+ venueName?: string | null | undefined;
31
+ }, {
32
+ name: string | null;
33
+ image: string | null;
34
+ apiTeamId: number | null;
35
+ id?: string | null | undefined;
36
+ score?: number | undefined;
37
+ isWinner?: boolean | null | undefined;
38
+ seed?: number | null | undefined;
39
+ teamCode?: string | null | undefined;
40
+ scoreExtraTime?: number | null | undefined;
41
+ stadiumUrl?: string | null | undefined;
42
+ school?: string | null | undefined;
43
+ city?: string | null | undefined;
44
+ venueName?: string | null | undefined;
45
+ }>;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ id: string;
48
+ team: {
49
+ name: string | null;
50
+ image: string | null;
51
+ apiTeamId: number | null;
52
+ id?: string | null | undefined;
53
+ score?: number | undefined;
54
+ isWinner?: boolean | null | undefined;
55
+ seed?: number | null | undefined;
56
+ teamCode?: string | null | undefined;
57
+ scoreExtraTime?: number | null | undefined;
58
+ stadiumUrl?: string | null | undefined;
59
+ school?: string | null | undefined;
60
+ city?: string | null | undefined;
61
+ venueName?: string | null | undefined;
62
+ };
63
+ }, {
64
+ id: string;
65
+ team: {
66
+ name: string | null;
67
+ image: string | null;
68
+ apiTeamId: number | null;
69
+ id?: string | null | undefined;
70
+ score?: number | undefined;
71
+ isWinner?: boolean | null | undefined;
72
+ seed?: number | null | undefined;
73
+ teamCode?: string | null | undefined;
74
+ scoreExtraTime?: number | null | undefined;
75
+ stadiumUrl?: string | null | undefined;
76
+ school?: string | null | undefined;
77
+ city?: string | null | undefined;
78
+ venueName?: string | null | undefined;
79
+ };
80
+ }>;
1
81
  export declare const ratingCategorySchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>;
2
82
  export declare const ratingSchema: import("zod").ZodObject<{
3
83
  id: import("zod").ZodString;
@@ -235,6 +315,86 @@ export declare const ratingSchema: import("zod").ZodObject<{
235
315
  edited: import("zod").ZodOptional<import("zod").ZodBoolean>;
236
316
  category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
237
317
  userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
318
+ pick: import("zod").ZodOptional<import("zod").ZodObject<{
319
+ id: import("zod").ZodString;
320
+ team: import("zod").ZodObject<{
321
+ id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
322
+ apiTeamId: import("zod").ZodNullable<import("zod").ZodNumber>;
323
+ name: import("zod").ZodNullable<import("zod").ZodString>;
324
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
325
+ isWinner: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodBoolean>>;
326
+ image: import("zod").ZodNullable<import("zod").ZodString>;
327
+ seed: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
328
+ teamCode: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
329
+ scoreExtraTime: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
330
+ stadiumUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
331
+ school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
332
+ city: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
333
+ venueName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
334
+ }, "strip", import("zod").ZodTypeAny, {
335
+ name: string | null;
336
+ image: string | null;
337
+ apiTeamId: number | null;
338
+ id?: string | null | undefined;
339
+ score?: number | undefined;
340
+ isWinner?: boolean | null | undefined;
341
+ seed?: number | null | undefined;
342
+ teamCode?: string | null | undefined;
343
+ scoreExtraTime?: number | null | undefined;
344
+ stadiumUrl?: string | null | undefined;
345
+ school?: string | null | undefined;
346
+ city?: string | null | undefined;
347
+ venueName?: string | null | undefined;
348
+ }, {
349
+ name: string | null;
350
+ image: string | null;
351
+ apiTeamId: number | null;
352
+ id?: string | null | undefined;
353
+ score?: number | undefined;
354
+ isWinner?: boolean | null | undefined;
355
+ seed?: number | null | undefined;
356
+ teamCode?: string | null | undefined;
357
+ scoreExtraTime?: number | null | undefined;
358
+ stadiumUrl?: string | null | undefined;
359
+ school?: string | null | undefined;
360
+ city?: string | null | undefined;
361
+ venueName?: string | null | undefined;
362
+ }>;
363
+ }, "strip", import("zod").ZodTypeAny, {
364
+ id: string;
365
+ team: {
366
+ name: string | null;
367
+ image: string | null;
368
+ apiTeamId: number | null;
369
+ id?: string | null | undefined;
370
+ score?: number | undefined;
371
+ isWinner?: boolean | null | undefined;
372
+ seed?: number | null | undefined;
373
+ teamCode?: string | null | undefined;
374
+ scoreExtraTime?: number | null | undefined;
375
+ stadiumUrl?: string | null | undefined;
376
+ school?: string | null | undefined;
377
+ city?: string | null | undefined;
378
+ venueName?: string | null | undefined;
379
+ };
380
+ }, {
381
+ id: string;
382
+ team: {
383
+ name: string | null;
384
+ image: string | null;
385
+ apiTeamId: number | null;
386
+ id?: string | null | undefined;
387
+ score?: number | undefined;
388
+ isWinner?: boolean | null | undefined;
389
+ seed?: number | null | undefined;
390
+ teamCode?: string | null | undefined;
391
+ scoreExtraTime?: number | null | undefined;
392
+ stadiumUrl?: string | null | undefined;
393
+ school?: string | null | undefined;
394
+ city?: string | null | undefined;
395
+ venueName?: string | null | undefined;
396
+ };
397
+ }>>;
238
398
  }, "strip", import("zod").ZodTypeAny, {
239
399
  id: string;
240
400
  user: {
@@ -292,6 +452,24 @@ export declare const ratingSchema: import("zod").ZodObject<{
292
452
  seasonType?: number | undefined;
293
453
  roundName?: string | undefined;
294
454
  };
455
+ pick?: {
456
+ id: string;
457
+ team: {
458
+ name: string | null;
459
+ image: string | null;
460
+ apiTeamId: number | null;
461
+ id?: string | null | undefined;
462
+ score?: number | undefined;
463
+ isWinner?: boolean | null | undefined;
464
+ seed?: number | null | undefined;
465
+ teamCode?: string | null | undefined;
466
+ scoreExtraTime?: number | null | undefined;
467
+ stadiumUrl?: string | null | undefined;
468
+ school?: string | null | undefined;
469
+ city?: string | null | undefined;
470
+ venueName?: string | null | undefined;
471
+ };
472
+ } | undefined;
295
473
  weightedRating?: number | undefined;
296
474
  updatedAt?: number | undefined;
297
475
  comment?: string | undefined;
@@ -360,6 +538,24 @@ export declare const ratingSchema: import("zod").ZodObject<{
360
538
  seasonType?: number | undefined;
361
539
  roundName?: string | undefined;
362
540
  };
541
+ pick?: {
542
+ id: string;
543
+ team: {
544
+ name: string | null;
545
+ image: string | null;
546
+ apiTeamId: number | null;
547
+ id?: string | null | undefined;
548
+ score?: number | undefined;
549
+ isWinner?: boolean | null | undefined;
550
+ seed?: number | null | undefined;
551
+ teamCode?: string | null | undefined;
552
+ scoreExtraTime?: number | null | undefined;
553
+ stadiumUrl?: string | null | undefined;
554
+ school?: string | null | undefined;
555
+ city?: string | null | undefined;
556
+ venueName?: string | null | undefined;
557
+ };
558
+ } | undefined;
363
559
  weightedRating?: number | undefined;
364
560
  updatedAt?: number | undefined;
365
561
  comment?: string | undefined;
@@ -735,6 +931,86 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
735
931
  edited: import("zod").ZodOptional<import("zod").ZodBoolean>;
736
932
  category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
737
933
  userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
934
+ pick: import("zod").ZodOptional<import("zod").ZodObject<{
935
+ id: import("zod").ZodString;
936
+ team: import("zod").ZodObject<{
937
+ id: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
938
+ apiTeamId: import("zod").ZodNullable<import("zod").ZodNumber>;
939
+ name: import("zod").ZodNullable<import("zod").ZodString>;
940
+ score: import("zod").ZodOptional<import("zod").ZodNumber>;
941
+ isWinner: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodBoolean>>;
942
+ image: import("zod").ZodNullable<import("zod").ZodString>;
943
+ seed: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
944
+ teamCode: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
945
+ scoreExtraTime: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>;
946
+ stadiumUrl: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
947
+ school: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
948
+ city: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
949
+ venueName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
950
+ }, "strip", import("zod").ZodTypeAny, {
951
+ name: string | null;
952
+ image: string | null;
953
+ apiTeamId: number | null;
954
+ id?: string | null | undefined;
955
+ score?: number | undefined;
956
+ isWinner?: boolean | null | undefined;
957
+ seed?: number | null | undefined;
958
+ teamCode?: string | null | undefined;
959
+ scoreExtraTime?: number | null | undefined;
960
+ stadiumUrl?: string | null | undefined;
961
+ school?: string | null | undefined;
962
+ city?: string | null | undefined;
963
+ venueName?: string | null | undefined;
964
+ }, {
965
+ name: string | null;
966
+ image: string | null;
967
+ apiTeamId: number | null;
968
+ id?: string | null | undefined;
969
+ score?: number | undefined;
970
+ isWinner?: boolean | null | undefined;
971
+ seed?: number | null | undefined;
972
+ teamCode?: string | null | undefined;
973
+ scoreExtraTime?: number | null | undefined;
974
+ stadiumUrl?: string | null | undefined;
975
+ school?: string | null | undefined;
976
+ city?: string | null | undefined;
977
+ venueName?: string | null | undefined;
978
+ }>;
979
+ }, "strip", import("zod").ZodTypeAny, {
980
+ id: string;
981
+ team: {
982
+ name: string | null;
983
+ image: string | null;
984
+ apiTeamId: number | null;
985
+ id?: string | null | undefined;
986
+ score?: number | undefined;
987
+ isWinner?: boolean | null | undefined;
988
+ seed?: number | null | undefined;
989
+ teamCode?: string | null | undefined;
990
+ scoreExtraTime?: number | null | undefined;
991
+ stadiumUrl?: string | null | undefined;
992
+ school?: string | null | undefined;
993
+ city?: string | null | undefined;
994
+ venueName?: string | null | undefined;
995
+ };
996
+ }, {
997
+ id: string;
998
+ team: {
999
+ name: string | null;
1000
+ image: string | null;
1001
+ apiTeamId: number | null;
1002
+ id?: string | null | undefined;
1003
+ score?: number | undefined;
1004
+ isWinner?: boolean | null | undefined;
1005
+ seed?: number | null | undefined;
1006
+ teamCode?: string | null | undefined;
1007
+ scoreExtraTime?: number | null | undefined;
1008
+ stadiumUrl?: string | null | undefined;
1009
+ school?: string | null | undefined;
1010
+ city?: string | null | undefined;
1011
+ venueName?: string | null | undefined;
1012
+ };
1013
+ }>>;
738
1014
  }, "id" | "user" | "createdAt">, {
739
1015
  game: import("zod").ZodObject<Omit<{
740
1016
  id: import("zod").ZodString;
@@ -891,6 +1167,24 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
891
1167
  seasonType?: number | undefined;
892
1168
  };
893
1169
  id?: string | undefined;
1170
+ pick?: {
1171
+ id: string;
1172
+ team: {
1173
+ name: string | null;
1174
+ image: string | null;
1175
+ apiTeamId: number | null;
1176
+ id?: string | null | undefined;
1177
+ score?: number | undefined;
1178
+ isWinner?: boolean | null | undefined;
1179
+ seed?: number | null | undefined;
1180
+ teamCode?: string | null | undefined;
1181
+ scoreExtraTime?: number | null | undefined;
1182
+ stadiumUrl?: string | null | undefined;
1183
+ school?: string | null | undefined;
1184
+ city?: string | null | undefined;
1185
+ venueName?: string | null | undefined;
1186
+ };
1187
+ } | undefined;
894
1188
  weightedRating?: number | undefined;
895
1189
  updatedAt?: number | undefined;
896
1190
  comment?: string | undefined;
@@ -918,6 +1212,24 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
918
1212
  seasonType?: number | undefined;
919
1213
  };
920
1214
  id?: string | undefined;
1215
+ pick?: {
1216
+ id: string;
1217
+ team: {
1218
+ name: string | null;
1219
+ image: string | null;
1220
+ apiTeamId: number | null;
1221
+ id?: string | null | undefined;
1222
+ score?: number | undefined;
1223
+ isWinner?: boolean | null | undefined;
1224
+ seed?: number | null | undefined;
1225
+ teamCode?: string | null | undefined;
1226
+ scoreExtraTime?: number | null | undefined;
1227
+ stadiumUrl?: string | null | undefined;
1228
+ school?: string | null | undefined;
1229
+ city?: string | null | undefined;
1230
+ venueName?: string | null | undefined;
1231
+ };
1232
+ } | undefined;
921
1233
  weightedRating?: number | undefined;
922
1234
  updatedAt?: number | undefined;
923
1235
  comment?: string | undefined;
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.seriesStatsSchema = exports.roundStatsSchema = exports.seasonGroupStatsSchema = exports.seasonStatsSchema = exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = exports.ratingCategorySchema = void 0;
3
+ exports.seriesStatsSchema = exports.roundStatsSchema = exports.seasonGroupStatsSchema = exports.seasonStatsSchema = exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = exports.ratingCategorySchema = exports.ratingMiniPickSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const game_1 = require("./game");
6
6
  const user_1 = require("./user");
7
7
  const sharedTypes_1 = require("./sharedTypes");
8
+ // Mini pick schema defined here to avoid circular dependency with pick.ts
9
+ exports.ratingMiniPickSchema = (0, zod_1.object)({
10
+ id: (0, zod_1.string)(),
11
+ team: game_1.gameTeamSchema,
12
+ });
8
13
  exports.ratingCategorySchema = (0, zod_1.union)([
9
14
  (0, zod_1.literal)("watched"),
10
15
  (0, zod_1.literal)("attended"),
@@ -53,6 +58,7 @@ exports.ratingSchema = (0, zod_1.object)({
53
58
  edited: (0, zod_1.boolean)().optional(),
54
59
  category: exports.ratingCategorySchema.optional(),
55
60
  userLocation: (0, zod_1.string)().optional().nullable(),
61
+ pick: exports.ratingMiniPickSchema.optional(),
56
62
  });
57
63
  exports.searchRatingSchema = (0, zod_1.object)({
58
64
  q: (0, zod_1.string)().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.318",
3
+ "version": "1.1.319",
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",