rategame-shared 1.0.90 → 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
  }>;
@@ -252,32 +252,32 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
252
252
  userId: import("zod").ZodOptional<import("zod").ZodString>;
253
253
  }, "strip", import("zod").ZodTypeAny, {
254
254
  league: "nba" | "ncaa";
255
- offset?: string | undefined;
256
- round?: string | undefined;
257
255
  q?: string | undefined;
258
- username?: string | undefined;
259
- createdAt?: "12h" | "daily" | "weekly" | undefined;
260
256
  teamId?: string | undefined;
257
+ round?: string | undefined;
258
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
261
259
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
262
260
  limit?: string | undefined;
263
- comment?: string | undefined;
261
+ offset?: string | undefined;
264
262
  gameId?: string | undefined;
265
263
  showEmptyRatings?: string | undefined;
264
+ comment?: string | undefined;
265
+ username?: string | undefined;
266
266
  following?: string | undefined;
267
267
  userId?: string | undefined;
268
268
  }, {
269
269
  league: "nba" | "ncaa";
270
- offset?: string | undefined;
271
- round?: string | undefined;
272
270
  q?: string | undefined;
273
- username?: string | undefined;
274
- createdAt?: "12h" | "daily" | "weekly" | undefined;
275
271
  teamId?: string | undefined;
272
+ round?: string | undefined;
273
+ createdAt?: "12h" | "daily" | "weekly" | undefined;
276
274
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
277
275
  limit?: string | undefined;
278
- comment?: string | undefined;
276
+ offset?: string | undefined;
279
277
  gameId?: string | undefined;
280
278
  showEmptyRatings?: string | undefined;
279
+ comment?: string | undefined;
280
+ username?: string | undefined;
281
281
  following?: string | undefined;
282
282
  userId?: string | undefined;
283
283
  }>;
@@ -347,159 +347,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
347
347
  };
348
348
  agree: boolean;
349
349
  }>;
350
- export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
351
- id: import("zod").ZodString;
352
- createdAt: import("zod").ZodNumber;
350
+ export declare const createRatingSchema: import("zod").ZodObject<{
353
351
  rating: import("zod").ZodNumber;
354
352
  comment: import("zod").ZodOptional<import("zod").ZodString>;
355
- user: import("zod").ZodObject<{
356
- id: import("zod").ZodString;
357
- username: import("zod").ZodString;
358
- avatarUrl: import("zod").ZodString;
359
- email: import("zod").ZodString;
360
- badge: import("zod").ZodOptional<import("zod").ZodString>;
361
- }, "strip", import("zod").ZodTypeAny, {
362
- id: string;
363
- email: string;
364
- username: string;
365
- avatarUrl: string;
366
- badge?: string | undefined;
367
- }, {
368
- id: string;
369
- email: string;
370
- username: string;
371
- avatarUrl: string;
372
- badge?: string | undefined;
373
- }>;
374
- game: import("zod").ZodObject<{
375
- id: import("zod").ZodString;
376
- round: import("zod").ZodNumber;
377
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
378
- homeTeam: import("zod").ZodObject<{
379
- id: import("zod").ZodOptional<import("zod").ZodString>;
380
- apiTeamId: import("zod").ZodNumber;
381
- name: import("zod").ZodString;
382
- score: import("zod").ZodNumber;
383
- isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
384
- image: import("zod").ZodString;
385
- seed: import("zod").ZodNumber;
386
- }, "strip", import("zod").ZodTypeAny, {
387
- name: string;
388
- image: string;
389
- apiTeamId: number;
390
- seed: number;
391
- score: number;
392
- id?: string | undefined;
393
- isWinner?: boolean | undefined;
394
- }, {
395
- name: string;
396
- image: string;
397
- apiTeamId: number;
398
- seed: number;
399
- score: number;
400
- id?: string | undefined;
401
- isWinner?: boolean | undefined;
402
- }>;
403
- awayTeam: import("zod").ZodObject<{
404
- id: import("zod").ZodOptional<import("zod").ZodString>;
405
- apiTeamId: import("zod").ZodNumber;
406
- name: import("zod").ZodString;
407
- score: import("zod").ZodNumber;
408
- isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
409
- image: import("zod").ZodString;
410
- seed: import("zod").ZodNumber;
411
- }, "strip", import("zod").ZodTypeAny, {
412
- name: string;
413
- image: string;
414
- apiTeamId: number;
415
- seed: number;
416
- score: number;
417
- id?: string | undefined;
418
- isWinner?: boolean | undefined;
419
- }, {
420
- name: string;
421
- image: string;
422
- apiTeamId: number;
423
- seed: number;
424
- score: number;
425
- id?: string | undefined;
426
- isWinner?: boolean | undefined;
427
- }>;
428
- seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
429
- homeTeamWins: import("zod").ZodNumber;
430
- awayTeamWins: import("zod").ZodNumber;
431
- gameNumber: import("zod").ZodNumber;
432
- maxLength: import("zod").ZodNumber;
433
- }, "strip", import("zod").ZodTypeAny, {
434
- maxLength: number;
435
- homeTeamWins: number;
436
- awayTeamWins: number;
437
- gameNumber: number;
438
- }, {
439
- maxLength: number;
440
- homeTeamWins: number;
441
- awayTeamWins: number;
442
- gameNumber: number;
443
- }>>;
444
- }, "strip", import("zod").ZodTypeAny, {
445
- id: string;
446
- round: number;
447
- league: "nba" | "ncaa";
448
- homeTeam: {
449
- name: string;
450
- image: string;
451
- apiTeamId: number;
452
- seed: number;
453
- score: number;
454
- id?: string | undefined;
455
- isWinner?: boolean | undefined;
456
- };
457
- awayTeam: {
458
- name: string;
459
- image: string;
460
- apiTeamId: number;
461
- seed: number;
462
- score: number;
463
- id?: string | undefined;
464
- isWinner?: boolean | undefined;
465
- };
466
- seriesInfo?: {
467
- maxLength: number;
468
- homeTeamWins: number;
469
- awayTeamWins: number;
470
- gameNumber: number;
471
- } | undefined;
472
- }, {
473
- id: string;
474
- round: number;
475
- league: "nba" | "ncaa";
476
- homeTeam: {
477
- name: string;
478
- image: string;
479
- apiTeamId: number;
480
- seed: number;
481
- score: number;
482
- id?: string | undefined;
483
- isWinner?: boolean | undefined;
484
- };
485
- awayTeam: {
486
- name: string;
487
- image: string;
488
- apiTeamId: number;
489
- seed: number;
490
- score: number;
491
- id?: string | undefined;
492
- isWinner?: boolean | undefined;
493
- };
494
- seriesInfo?: {
495
- maxLength: number;
496
- homeTeamWins: number;
497
- awayTeamWins: number;
498
- gameNumber: number;
499
- } | undefined;
500
- }>;
501
353
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
502
- }, "id" | "user" | "createdAt">, {
503
354
  game: import("zod").ZodObject<Omit<{
504
355
  id: import("zod").ZodString;
505
356
  round: import("zod").ZodNumber;
@@ -590,7 +441,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
590
441
  } | undefined;
591
442
  }>;
592
443
  id: import("zod").ZodOptional<import("zod").ZodString>;
593
- }>, "strip", import("zod").ZodTypeAny, {
444
+ }, "strip", import("zod").ZodTypeAny, {
594
445
  rating: number;
595
446
  game: {
596
447
  id: string;
@@ -602,9 +453,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
602
453
  gameNumber: number;
603
454
  } | undefined;
604
455
  };
605
- id?: string | undefined;
606
456
  comment?: string | undefined;
607
457
  userLikes?: number | undefined;
458
+ id?: string | undefined;
608
459
  }, {
609
460
  rating: number;
610
461
  game: {
@@ -617,7 +468,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
617
468
  gameNumber: number;
618
469
  } | undefined;
619
470
  };
620
- id?: string | undefined;
621
471
  comment?: string | undefined;
622
472
  userLikes?: number | undefined;
473
+ id?: string | undefined;
623
474
  }>;
@@ -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.90",
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",