rategame-shared 1.0.86 → 1.0.87

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,10 +538,9 @@ export declare const mlbGameSchema: z.ZodObject<{
538
538
  inningNumber: number;
539
539
  }[];
540
540
  id?: string | undefined;
541
+ round?: number | undefined;
541
542
  isClosed?: boolean | undefined;
542
543
  ratingWindowClosedAt?: number | undefined;
543
- round?: number | undefined;
544
- inningHalf?: "T" | "B" | undefined;
545
544
  seriesInfo?: {
546
545
  maxLength: number;
547
546
  homeTeamWins: number;
@@ -555,6 +554,7 @@ export declare const mlbGameSchema: z.ZodObject<{
555
554
  options: Record<number, number>;
556
555
  };
557
556
  } | undefined;
557
+ inningHalf?: "T" | "B" | undefined;
558
558
  losingPitcherId?: string | undefined;
559
559
  winningPitcherId?: string | undefined;
560
560
  savingPitcherId?: string | undefined;
@@ -621,10 +621,9 @@ export declare const mlbGameSchema: z.ZodObject<{
621
621
  inningNumber: number;
622
622
  }[];
623
623
  id?: string | undefined;
624
+ round?: number | undefined;
624
625
  isClosed?: boolean | undefined;
625
626
  ratingWindowClosedAt?: number | undefined;
626
- round?: number | undefined;
627
- inningHalf?: "T" | "B" | undefined;
628
627
  seriesInfo?: {
629
628
  maxLength: number;
630
629
  homeTeamWins: number;
@@ -638,6 +637,7 @@ export declare const mlbGameSchema: z.ZodObject<{
638
637
  options: Record<number, number>;
639
638
  };
640
639
  } | 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
- q?: string | undefined;
690
- teamId?: string | undefined;
689
+ offset?: string | undefined;
691
690
  round?: string | undefined;
691
+ q?: string | undefined;
692
692
  createdAt?: "12h" | "daily" | "weekly" | undefined;
693
+ teamId?: string | undefined;
693
694
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
694
695
  limit?: string | undefined;
695
- offset?: string | undefined;
696
696
  }, {
697
697
  league: "nba" | "ncaa";
698
- q?: string | undefined;
699
- teamId?: string | undefined;
698
+ offset?: string | undefined;
700
699
  round?: string | undefined;
700
+ q?: string | undefined;
701
701
  createdAt?: "12h" | "daily" | "weekly" | undefined;
702
+ teamId?: string | undefined;
702
703
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
703
704
  limit?: string | undefined;
704
- offset?: string | undefined;
705
705
  }>;
@@ -248,32 +248,35 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
248
248
  showEmptyRatings: import("zod").ZodOptional<import("zod").ZodString>;
249
249
  comment: import("zod").ZodOptional<import("zod").ZodString>;
250
250
  username: import("zod").ZodOptional<import("zod").ZodString>;
251
+ followedUsers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
251
252
  }, "strip", import("zod").ZodTypeAny, {
252
253
  league: "nba" | "ncaa";
253
- q?: string | undefined;
254
- teamId?: string | undefined;
254
+ offset?: string | undefined;
255
255
  round?: string | undefined;
256
+ q?: string | undefined;
257
+ username?: string | undefined;
256
258
  createdAt?: "12h" | "daily" | "weekly" | undefined;
259
+ teamId?: string | undefined;
257
260
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
258
261
  limit?: string | undefined;
259
- offset?: string | undefined;
262
+ comment?: string | undefined;
260
263
  gameId?: string | undefined;
261
264
  showEmptyRatings?: string | undefined;
262
- comment?: string | undefined;
263
- username?: string | undefined;
265
+ followedUsers?: string[] | undefined;
264
266
  }, {
265
267
  league: "nba" | "ncaa";
266
- q?: string | undefined;
267
- teamId?: string | undefined;
268
+ offset?: string | undefined;
268
269
  round?: string | undefined;
270
+ q?: string | undefined;
271
+ username?: string | undefined;
269
272
  createdAt?: "12h" | "daily" | "weekly" | undefined;
273
+ teamId?: string | undefined;
270
274
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
271
275
  limit?: string | undefined;
272
- offset?: string | undefined;
276
+ comment?: string | undefined;
273
277
  gameId?: string | undefined;
274
278
  showEmptyRatings?: string | undefined;
275
- comment?: string | undefined;
276
- username?: string | undefined;
279
+ followedUsers?: string[] | undefined;
277
280
  }>;
278
281
  export declare const ratingLikeSchema: import("zod").ZodObject<{
279
282
  ratingId: import("zod").ZodString;
@@ -341,10 +344,159 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
341
344
  };
342
345
  agree: boolean;
343
346
  }>;
344
- export declare const createRatingSchema: import("zod").ZodObject<{
347
+ export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
348
+ id: import("zod").ZodString;
349
+ createdAt: import("zod").ZodNumber;
345
350
  rating: import("zod").ZodNumber;
346
351
  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
+ }>;
347
498
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
499
+ }, "id" | "user" | "createdAt">, {
348
500
  game: import("zod").ZodObject<Omit<{
349
501
  id: import("zod").ZodString;
350
502
  round: import("zod").ZodNumber;
@@ -435,7 +587,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
435
587
  } | undefined;
436
588
  }>;
437
589
  id: import("zod").ZodOptional<import("zod").ZodString>;
438
- }, "strip", import("zod").ZodTypeAny, {
590
+ }>, "strip", import("zod").ZodTypeAny, {
439
591
  rating: number;
440
592
  game: {
441
593
  id: string;
@@ -447,9 +599,9 @@ export declare const createRatingSchema: import("zod").ZodObject<{
447
599
  gameNumber: number;
448
600
  } | undefined;
449
601
  };
602
+ id?: string | undefined;
450
603
  comment?: string | undefined;
451
604
  userLikes?: number | undefined;
452
- id?: string | undefined;
453
605
  }, {
454
606
  rating: number;
455
607
  game: {
@@ -462,7 +614,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
462
614
  gameNumber: number;
463
615
  } | undefined;
464
616
  };
617
+ id?: string | undefined;
465
618
  comment?: string | undefined;
466
619
  userLikes?: number | undefined;
467
- id?: string | undefined;
468
620
  }>;
@@ -49,6 +49,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
49
49
  showEmptyRatings: (0, zod_1.string)().optional(),
50
50
  comment: (0, zod_1.string)().optional(),
51
51
  username: (0, zod_1.string)().optional(),
52
+ followedUsers: (0, zod_1.string)().array().optional(),
52
53
  });
53
54
  exports.ratingLikeSchema = (0, zod_1.object)({
54
55
  ratingId: (0, zod_1.string)(),
@@ -120,6 +120,10 @@ export declare const userSchema: import("zod").ZodObject<{
120
120
  }>;
121
121
  askedForPushNotifications: boolean;
122
122
  acceptedPushNotifications: boolean;
123
+ platform?: "ios" | "android" | undefined;
124
+ totalRatedGames?: number | undefined;
125
+ commentsLeft?: number | undefined;
126
+ avgRating?: number | undefined;
123
127
  leagues?: {
124
128
  nba: {
125
129
  totalRatedGames: number;
@@ -132,9 +136,6 @@ export declare const userSchema: import("zod").ZodObject<{
132
136
  avgRating: number;
133
137
  };
134
138
  } | undefined;
135
- totalRatedGames?: number | undefined;
136
- commentsLeft?: number | undefined;
137
- avgRating?: number | undefined;
138
139
  isRegistrationComplete?: boolean | undefined;
139
140
  badge?: string | undefined;
140
141
  registrationStep?: number | undefined;
@@ -148,7 +149,6 @@ export declare const userSchema: import("zod").ZodObject<{
148
149
  youtube?: string | undefined;
149
150
  tiktok?: string | undefined;
150
151
  } | undefined;
151
- platform?: "ios" | "android" | undefined;
152
152
  }, {
153
153
  id: string;
154
154
  email: string;
@@ -162,6 +162,10 @@ export declare const userSchema: import("zod").ZodObject<{
162
162
  }>;
163
163
  askedForPushNotifications: boolean;
164
164
  acceptedPushNotifications: boolean;
165
+ platform?: "ios" | "android" | undefined;
166
+ totalRatedGames?: number | undefined;
167
+ commentsLeft?: number | undefined;
168
+ avgRating?: number | undefined;
165
169
  leagues?: {
166
170
  nba: {
167
171
  totalRatedGames: number;
@@ -174,9 +178,6 @@ export declare const userSchema: import("zod").ZodObject<{
174
178
  avgRating: number;
175
179
  };
176
180
  } | undefined;
177
- totalRatedGames?: number | undefined;
178
- commentsLeft?: number | undefined;
179
- avgRating?: number | undefined;
180
181
  isRegistrationComplete?: boolean | undefined;
181
182
  badge?: string | undefined;
182
183
  registrationStep?: number | undefined;
@@ -190,7 +191,6 @@ export declare const userSchema: import("zod").ZodObject<{
190
191
  youtube?: string | undefined;
191
192
  tiktok?: string | undefined;
192
193
  } | undefined;
193
- platform?: "ios" | "android" | undefined;
194
194
  }>;
195
195
  export declare const createUserSchema: import("zod").ZodObject<Omit<{
196
196
  id: import("zod").ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
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",