rategame-shared 1.0.89 → 1.0.91

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.
@@ -538,9 +538,10 @@ export declare const mlbGameSchema: z.ZodObject<{
538
538
  inningNumber: number;
539
539
  }[];
540
540
  id?: string | undefined;
541
- round?: number | undefined;
542
541
  isClosed?: boolean | undefined;
543
542
  ratingWindowClosedAt?: number | undefined;
543
+ round?: number | undefined;
544
+ inningHalf?: "T" | "B" | undefined;
544
545
  seriesInfo?: {
545
546
  maxLength: number;
546
547
  homeTeamWins: number;
@@ -554,7 +555,6 @@ export declare const mlbGameSchema: z.ZodObject<{
554
555
  options: Record<number, number>;
555
556
  };
556
557
  } | undefined;
557
- inningHalf?: "T" | "B" | undefined;
558
558
  losingPitcherId?: string | undefined;
559
559
  winningPitcherId?: string | undefined;
560
560
  savingPitcherId?: string | undefined;
@@ -621,9 +621,10 @@ export declare const mlbGameSchema: z.ZodObject<{
621
621
  inningNumber: number;
622
622
  }[];
623
623
  id?: string | undefined;
624
- round?: number | undefined;
625
624
  isClosed?: boolean | undefined;
626
625
  ratingWindowClosedAt?: number | undefined;
626
+ round?: number | undefined;
627
+ inningHalf?: "T" | "B" | undefined;
627
628
  seriesInfo?: {
628
629
  maxLength: number;
629
630
  homeTeamWins: number;
@@ -637,7 +638,6 @@ export declare const mlbGameSchema: z.ZodObject<{
637
638
  options: Record<number, number>;
638
639
  };
639
640
  } | undefined;
640
- inningHalf?: "T" | "B" | undefined;
641
641
  losingPitcherId?: string | undefined;
642
642
  winningPitcherId?: string | undefined;
643
643
  savingPitcherId?: string | undefined;
@@ -686,20 +686,20 @@ export declare const searchGameSchema: z.ZodObject<{
686
686
  offset: z.ZodOptional<z.ZodString>;
687
687
  }, "strip", z.ZodTypeAny, {
688
688
  league: "nba" | "ncaa";
689
- offset?: string | undefined;
690
- round?: string | undefined;
691
689
  q?: string | undefined;
692
- createdAt?: "12h" | "daily" | "weekly" | undefined;
693
690
  teamId?: string | undefined;
691
+ round?: string | undefined;
692
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
694
693
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
695
694
  limit?: string | undefined;
695
+ offset?: string | undefined;
696
696
  }, {
697
697
  league: "nba" | "ncaa";
698
- offset?: string | undefined;
699
- round?: string | undefined;
700
698
  q?: string | undefined;
701
- createdAt?: "12h" | "daily" | "weekly" | undefined;
702
699
  teamId?: string | undefined;
700
+ round?: string | undefined;
701
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
703
702
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
704
703
  limit?: string | undefined;
704
+ offset?: string | undefined;
705
705
  }>;
@@ -249,34 +249,37 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
249
249
  comment: import("zod").ZodOptional<import("zod").ZodString>;
250
250
  username: import("zod").ZodOptional<import("zod").ZodString>;
251
251
  following: import("zod").ZodOptional<import("zod").ZodString>;
252
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
252
253
  }, "strip", import("zod").ZodTypeAny, {
253
254
  league: "nba" | "ncaa";
254
- offset?: string | undefined;
255
- round?: string | undefined;
256
255
  q?: string | undefined;
257
- username?: string | undefined;
258
- createdAt?: "12h" | "daily" | "weekly" | undefined;
259
256
  teamId?: string | undefined;
257
+ round?: string | undefined;
258
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
260
259
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
261
260
  limit?: string | undefined;
262
- comment?: string | undefined;
261
+ offset?: string | undefined;
263
262
  gameId?: string | undefined;
264
263
  showEmptyRatings?: string | undefined;
264
+ comment?: string | undefined;
265
+ username?: string | undefined;
265
266
  following?: string | undefined;
267
+ userId?: string | undefined;
266
268
  }, {
267
269
  league: "nba" | "ncaa";
268
- offset?: string | undefined;
269
- round?: string | undefined;
270
270
  q?: string | undefined;
271
- username?: string | undefined;
272
- createdAt?: "12h" | "daily" | "weekly" | undefined;
273
271
  teamId?: string | undefined;
272
+ round?: string | undefined;
273
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
274
274
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
275
275
  limit?: string | undefined;
276
- comment?: string | undefined;
276
+ offset?: string | undefined;
277
277
  gameId?: string | undefined;
278
278
  showEmptyRatings?: string | undefined;
279
+ comment?: string | undefined;
280
+ username?: string | undefined;
279
281
  following?: string | undefined;
282
+ userId?: string | undefined;
280
283
  }>;
281
284
  export declare const ratingLikeSchema: import("zod").ZodObject<{
282
285
  ratingId: import("zod").ZodString;
@@ -344,159 +347,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
344
347
  };
345
348
  agree: boolean;
346
349
  }>;
347
- export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
348
- id: import("zod").ZodString;
349
- createdAt: import("zod").ZodNumber;
350
+ export declare const createRatingSchema: import("zod").ZodObject<{
350
351
  rating: import("zod").ZodNumber;
351
352
  comment: import("zod").ZodOptional<import("zod").ZodString>;
352
- user: import("zod").ZodObject<{
353
- id: import("zod").ZodString;
354
- username: import("zod").ZodString;
355
- avatarUrl: import("zod").ZodString;
356
- email: import("zod").ZodString;
357
- badge: import("zod").ZodOptional<import("zod").ZodString>;
358
- }, "strip", import("zod").ZodTypeAny, {
359
- id: string;
360
- email: string;
361
- username: string;
362
- avatarUrl: string;
363
- badge?: string | undefined;
364
- }, {
365
- id: string;
366
- email: string;
367
- username: string;
368
- avatarUrl: string;
369
- badge?: string | undefined;
370
- }>;
371
- game: import("zod").ZodObject<{
372
- id: import("zod").ZodString;
373
- round: import("zod").ZodNumber;
374
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
375
- homeTeam: import("zod").ZodObject<{
376
- id: import("zod").ZodOptional<import("zod").ZodString>;
377
- apiTeamId: import("zod").ZodNumber;
378
- name: import("zod").ZodString;
379
- score: import("zod").ZodNumber;
380
- isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
381
- image: import("zod").ZodString;
382
- seed: import("zod").ZodNumber;
383
- }, "strip", import("zod").ZodTypeAny, {
384
- name: string;
385
- image: string;
386
- apiTeamId: number;
387
- seed: number;
388
- score: number;
389
- id?: string | undefined;
390
- isWinner?: boolean | undefined;
391
- }, {
392
- name: string;
393
- image: string;
394
- apiTeamId: number;
395
- seed: number;
396
- score: number;
397
- id?: string | undefined;
398
- isWinner?: boolean | undefined;
399
- }>;
400
- awayTeam: import("zod").ZodObject<{
401
- id: import("zod").ZodOptional<import("zod").ZodString>;
402
- apiTeamId: import("zod").ZodNumber;
403
- name: import("zod").ZodString;
404
- score: import("zod").ZodNumber;
405
- isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
406
- image: import("zod").ZodString;
407
- seed: import("zod").ZodNumber;
408
- }, "strip", import("zod").ZodTypeAny, {
409
- name: string;
410
- image: string;
411
- apiTeamId: number;
412
- seed: number;
413
- score: number;
414
- id?: string | undefined;
415
- isWinner?: boolean | undefined;
416
- }, {
417
- name: string;
418
- image: string;
419
- apiTeamId: number;
420
- seed: number;
421
- score: number;
422
- id?: string | undefined;
423
- isWinner?: boolean | undefined;
424
- }>;
425
- seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
426
- homeTeamWins: import("zod").ZodNumber;
427
- awayTeamWins: import("zod").ZodNumber;
428
- gameNumber: import("zod").ZodNumber;
429
- maxLength: import("zod").ZodNumber;
430
- }, "strip", import("zod").ZodTypeAny, {
431
- maxLength: number;
432
- homeTeamWins: number;
433
- awayTeamWins: number;
434
- gameNumber: number;
435
- }, {
436
- maxLength: number;
437
- homeTeamWins: number;
438
- awayTeamWins: number;
439
- gameNumber: number;
440
- }>>;
441
- }, "strip", import("zod").ZodTypeAny, {
442
- id: string;
443
- round: number;
444
- league: "nba" | "ncaa";
445
- homeTeam: {
446
- name: string;
447
- image: string;
448
- apiTeamId: number;
449
- seed: number;
450
- score: number;
451
- id?: string | undefined;
452
- isWinner?: boolean | undefined;
453
- };
454
- awayTeam: {
455
- name: string;
456
- image: string;
457
- apiTeamId: number;
458
- seed: number;
459
- score: number;
460
- id?: string | undefined;
461
- isWinner?: boolean | undefined;
462
- };
463
- seriesInfo?: {
464
- maxLength: number;
465
- homeTeamWins: number;
466
- awayTeamWins: number;
467
- gameNumber: number;
468
- } | undefined;
469
- }, {
470
- id: string;
471
- round: number;
472
- league: "nba" | "ncaa";
473
- homeTeam: {
474
- name: string;
475
- image: string;
476
- apiTeamId: number;
477
- seed: number;
478
- score: number;
479
- id?: string | undefined;
480
- isWinner?: boolean | undefined;
481
- };
482
- awayTeam: {
483
- name: string;
484
- image: string;
485
- apiTeamId: number;
486
- seed: number;
487
- score: number;
488
- id?: string | undefined;
489
- isWinner?: boolean | undefined;
490
- };
491
- seriesInfo?: {
492
- maxLength: number;
493
- homeTeamWins: number;
494
- awayTeamWins: number;
495
- gameNumber: number;
496
- } | undefined;
497
- }>;
498
353
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
499
- }, "id" | "user" | "createdAt">, {
500
354
  game: import("zod").ZodObject<Omit<{
501
355
  id: import("zod").ZodString;
502
356
  round: import("zod").ZodNumber;
@@ -587,7 +441,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
587
441
  } | undefined;
588
442
  }>;
589
443
  id: import("zod").ZodOptional<import("zod").ZodString>;
590
- }>, "strip", import("zod").ZodTypeAny, {
444
+ }, "strip", import("zod").ZodTypeAny, {
591
445
  rating: number;
592
446
  game: {
593
447
  id: string;
@@ -599,9 +453,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
599
453
  gameNumber: number;
600
454
  } | undefined;
601
455
  };
602
- id?: string | undefined;
603
456
  comment?: string | undefined;
604
457
  userLikes?: number | undefined;
458
+ id?: string | undefined;
605
459
  }, {
606
460
  rating: number;
607
461
  game: {
@@ -614,7 +468,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
614
468
  gameNumber: number;
615
469
  } | undefined;
616
470
  };
617
- id?: string | undefined;
618
471
  comment?: string | undefined;
619
472
  userLikes?: number | undefined;
473
+ id?: string | undefined;
620
474
  }>;
@@ -50,6 +50,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
50
50
  comment: (0, zod_1.string)().optional(),
51
51
  username: (0, zod_1.string)().optional(),
52
52
  following: (0, zod_1.string)().optional(),
53
+ userId: (0, zod_1.string)().optional(),
53
54
  });
54
55
  exports.ratingLikeSchema = (0, zod_1.object)({
55
56
  ratingId: (0, zod_1.string)(),
@@ -107,6 +107,7 @@ export declare const userSchema: import("zod").ZodObject<{
107
107
  tiktok?: string | undefined;
108
108
  }>>;
109
109
  platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
110
+ selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
110
111
  }, "strip", import("zod").ZodTypeAny, {
111
112
  id: string;
112
113
  email: string;
@@ -120,10 +121,6 @@ export declare const userSchema: import("zod").ZodObject<{
120
121
  }>;
121
122
  askedForPushNotifications: boolean;
122
123
  acceptedPushNotifications: boolean;
123
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
124
- totalRatedGames?: number | undefined;
125
- commentsLeft?: number | undefined;
126
- avgRating?: number | undefined;
127
124
  leagues?: {
128
125
  nba: {
129
126
  totalRatedGames: number;
@@ -136,6 +133,9 @@ export declare const userSchema: import("zod").ZodObject<{
136
133
  avgRating: number;
137
134
  };
138
135
  } | undefined;
136
+ totalRatedGames?: number | undefined;
137
+ commentsLeft?: number | undefined;
138
+ avgRating?: number | undefined;
139
139
  isRegistrationComplete?: boolean | undefined;
140
140
  badge?: string | undefined;
141
141
  registrationStep?: number | undefined;
@@ -149,6 +149,8 @@ export declare const userSchema: import("zod").ZodObject<{
149
149
  youtube?: string | undefined;
150
150
  tiktok?: string | undefined;
151
151
  } | undefined;
152
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
153
+ selectedTeamsPerLeague?: Record<string, string[]> | undefined;
152
154
  }, {
153
155
  id: string;
154
156
  email: string;
@@ -162,10 +164,6 @@ export declare const userSchema: import("zod").ZodObject<{
162
164
  }>;
163
165
  askedForPushNotifications: boolean;
164
166
  acceptedPushNotifications: boolean;
165
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
166
- totalRatedGames?: number | undefined;
167
- commentsLeft?: number | undefined;
168
- avgRating?: number | undefined;
169
167
  leagues?: {
170
168
  nba: {
171
169
  totalRatedGames: number;
@@ -178,6 +176,9 @@ export declare const userSchema: import("zod").ZodObject<{
178
176
  avgRating: number;
179
177
  };
180
178
  } | undefined;
179
+ totalRatedGames?: number | undefined;
180
+ commentsLeft?: number | undefined;
181
+ avgRating?: number | undefined;
181
182
  isRegistrationComplete?: boolean | undefined;
182
183
  badge?: string | undefined;
183
184
  registrationStep?: number | undefined;
@@ -191,6 +192,8 @@ export declare const userSchema: import("zod").ZodObject<{
191
192
  youtube?: string | undefined;
192
193
  tiktok?: string | undefined;
193
194
  } | undefined;
195
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
196
+ selectedTeamsPerLeague?: Record<string, string[]> | undefined;
194
197
  }>;
195
198
  export declare const createUserSchema: import("zod").ZodObject<Omit<{
196
199
  id: import("zod").ZodString;
@@ -288,6 +291,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
288
291
  tiktok?: string | undefined;
289
292
  }>>;
290
293
  platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
294
+ selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
291
295
  }, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
292
296
  email: string;
293
297
  username: string;
@@ -319,6 +323,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
319
323
  youtube?: string | undefined;
320
324
  tiktok?: string | undefined;
321
325
  } | undefined;
326
+ selectedTeamsPerLeague?: Record<string, string[]> | undefined;
322
327
  }, {
323
328
  email: string;
324
329
  username: string;
@@ -350,4 +355,5 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
350
355
  youtube?: string | undefined;
351
356
  tiktok?: string | undefined;
352
357
  } | undefined;
358
+ selectedTeamsPerLeague?: Record<string, string[]> | undefined;
353
359
  }>;
@@ -47,6 +47,7 @@ exports.userSchema = (0, zod_1.object)({
47
47
  (0, zod_1.literal)("windows"),
48
48
  (0, zod_1.literal)("web"),
49
49
  ]).optional(),
50
+ selectedTeamsPerLeague: (0, zod_1.record)((0, zod_1.array)((0, zod_1.string)())).optional(),
50
51
  });
51
52
  exports.createUserSchema = exports.userSchema.omit({
52
53
  id: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
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",