rategame-shared 1.1.33 → 1.1.35

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.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,9 @@ export * from "./schemas/user";
2
2
  export * from "./schemas/rating";
3
3
  export * from "./schemas/game";
4
4
  export * from "./schemas/team";
5
+ export * from "./schemas/notification";
5
6
  export * from "./models/user";
6
7
  export * from "./models/rating";
7
8
  export * from "./models/game";
8
9
  export * from "./models/team";
10
+ export * from "./models/notification";
package/dist/index.js CHANGED
@@ -18,7 +18,9 @@ __exportStar(require("./schemas/user"), exports);
18
18
  __exportStar(require("./schemas/rating"), exports);
19
19
  __exportStar(require("./schemas/game"), exports);
20
20
  __exportStar(require("./schemas/team"), exports);
21
+ __exportStar(require("./schemas/notification"), exports);
21
22
  __exportStar(require("./models/user"), exports);
22
23
  __exportStar(require("./models/rating"), exports);
23
24
  __exportStar(require("./models/game"), exports);
24
25
  __exportStar(require("./models/team"), exports);
26
+ __exportStar(require("./models/notification"), exports);
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { internalNotification } from "../schemas/notification";
3
+ export type InternalNotification = z.infer<typeof internalNotification>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -488,7 +488,7 @@ export declare const commonGameSchema: z.ZodObject<{
488
488
  };
489
489
  } | undefined;
490
490
  }>;
491
- export declare const basketballGameSchema: z.ZodObject<{
491
+ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
492
492
  id: z.ZodOptional<z.ZodString>;
493
493
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
494
494
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -594,6 +594,7 @@ export declare const basketballGameSchema: z.ZodObject<{
594
594
  options: Record<number, number>;
595
595
  };
596
596
  }>>;
597
+ }, {
597
598
  round: z.ZodNumber;
598
599
  timeRemainingMinutes: z.ZodNumber;
599
600
  timeRemainingSeconds: z.ZodNumber;
@@ -612,7 +613,7 @@ export declare const basketballGameSchema: z.ZodObject<{
612
613
  }>, "many">;
613
614
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
614
615
  periodDuration: z.ZodNumber;
615
- }, "strip", z.ZodTypeAny, {
616
+ }>, "strip", z.ZodTypeAny, {
616
617
  round: number;
617
618
  status: "live" | "scheduled" | "final";
618
619
  startedAt: number;
@@ -730,7 +731,7 @@ export declare const inningSchema: z.ZodObject<{
730
731
  homeScore: number;
731
732
  inningNumber: number;
732
733
  }>;
733
- export declare const mlbGameSchema: z.ZodObject<{
734
+ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
734
735
  id: z.ZodOptional<z.ZodString>;
735
736
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
736
737
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -836,6 +837,7 @@ export declare const mlbGameSchema: z.ZodObject<{
836
837
  options: Record<number, number>;
837
838
  };
838
839
  }>>;
840
+ }, {
839
841
  totalInningsRemaining: z.ZodNumber;
840
842
  innings: z.ZodArray<z.ZodObject<{
841
843
  inningNumber: z.ZodNumber;
@@ -864,7 +866,7 @@ export declare const mlbGameSchema: z.ZodObject<{
864
866
  runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
865
867
  runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
866
868
  runnerOnThird: z.ZodOptional<z.ZodBoolean>;
867
- }, "strip", z.ZodTypeAny, {
869
+ }>, "strip", z.ZodTypeAny, {
868
870
  status: "live" | "scheduled" | "final";
869
871
  startedAt: number;
870
872
  finishedAt: number;
@@ -989,7 +991,7 @@ export declare const mlbGameSchema: z.ZodObject<{
989
991
  runnerOnSecond?: boolean | undefined;
990
992
  runnerOnThird?: boolean | undefined;
991
993
  }>;
992
- export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
994
+ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
993
995
  id: z.ZodOptional<z.ZodString>;
994
996
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
995
997
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -1095,6 +1097,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1095
1097
  options: Record<number, number>;
1096
1098
  };
1097
1099
  }>>;
1100
+ }, {
1098
1101
  round: z.ZodNumber;
1099
1102
  timeRemainingMinutes: z.ZodNumber;
1100
1103
  timeRemainingSeconds: z.ZodNumber;
@@ -1113,7 +1116,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1113
1116
  }>, "many">;
1114
1117
  periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
1115
1118
  periodDuration: z.ZodNumber;
1116
- }, "strip", z.ZodTypeAny, {
1119
+ }>, "strip", z.ZodTypeAny, {
1117
1120
  round: number;
1118
1121
  status: "live" | "scheduled" | "final";
1119
1122
  startedAt: number;
@@ -1217,7 +1220,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1217
1220
  options: Record<number, number>;
1218
1221
  };
1219
1222
  } | undefined;
1220
- }>, z.ZodObject<{
1223
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1221
1224
  id: z.ZodOptional<z.ZodString>;
1222
1225
  status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
1223
1226
  isClosed: z.ZodOptional<z.ZodBoolean>;
@@ -1323,6 +1326,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1323
1326
  options: Record<number, number>;
1324
1327
  };
1325
1328
  }>>;
1329
+ }, {
1326
1330
  totalInningsRemaining: z.ZodNumber;
1327
1331
  innings: z.ZodArray<z.ZodObject<{
1328
1332
  inningNumber: z.ZodNumber;
@@ -1351,7 +1355,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
1351
1355
  runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
1352
1356
  runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
1353
1357
  runnerOnThird: z.ZodOptional<z.ZodBoolean>;
1354
- }, "strip", z.ZodTypeAny, {
1358
+ }>, "strip", z.ZodTypeAny, {
1355
1359
  status: "live" | "scheduled" | "final";
1356
1360
  startedAt: number;
1357
1361
  finishedAt: number;
@@ -1487,20 +1491,20 @@ export declare const searchGameSchema: z.ZodObject<{
1487
1491
  offset: z.ZodOptional<z.ZodString>;
1488
1492
  }, "strip", z.ZodTypeAny, {
1489
1493
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
1490
- q?: string | undefined;
1491
- teamId?: string | undefined;
1494
+ offset?: string | undefined;
1492
1495
  round?: string | undefined;
1496
+ q?: string | undefined;
1493
1497
  createdAt?: "12h" | "daily" | "weekly" | undefined;
1498
+ teamId?: string | undefined;
1494
1499
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1495
1500
  limit?: string | undefined;
1496
- offset?: string | undefined;
1497
1501
  }, {
1498
1502
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
1499
- q?: string | undefined;
1500
- teamId?: string | undefined;
1503
+ offset?: string | undefined;
1501
1504
  round?: string | undefined;
1505
+ q?: string | undefined;
1502
1506
  createdAt?: "12h" | "daily" | "weekly" | undefined;
1507
+ teamId?: string | undefined;
1503
1508
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
1504
1509
  limit?: string | undefined;
1505
- offset?: string | undefined;
1506
1510
  }>;
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ export declare const internalNotification: z.ZodObject<{
3
+ id: z.ZodString;
4
+ userId: z.ZodString;
5
+ initiator: z.ZodObject<{
6
+ id: z.ZodString;
7
+ username: z.ZodString;
8
+ avatarUrl: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ username: string;
12
+ avatarUrl?: string | undefined;
13
+ }, {
14
+ id: string;
15
+ username: string;
16
+ avatarUrl?: string | undefined;
17
+ }>;
18
+ text: z.ZodString;
19
+ source: z.ZodString;
20
+ category: z.ZodString;
21
+ data: z.ZodOptional<z.ZodAny>;
22
+ link: z.ZodOptional<z.ZodString>;
23
+ linkText: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id: string;
26
+ source: string;
27
+ text: string;
28
+ userId: string;
29
+ initiator: {
30
+ id: string;
31
+ username: string;
32
+ avatarUrl?: string | undefined;
33
+ };
34
+ category: string;
35
+ link?: string | undefined;
36
+ data?: any;
37
+ linkText?: string | undefined;
38
+ }, {
39
+ id: string;
40
+ source: string;
41
+ text: string;
42
+ userId: string;
43
+ initiator: {
44
+ id: string;
45
+ username: string;
46
+ avatarUrl?: string | undefined;
47
+ };
48
+ category: string;
49
+ link?: string | undefined;
50
+ data?: any;
51
+ linkText?: string | undefined;
52
+ }>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.internalNotification = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.internalNotification = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ userId: zod_1.z.string(),
8
+ initiator: zod_1.z.object({
9
+ id: zod_1.z.string(),
10
+ username: zod_1.z.string(),
11
+ avatarUrl: zod_1.z.string().optional(),
12
+ }),
13
+ text: zod_1.z.string(),
14
+ source: zod_1.z.string(),
15
+ category: zod_1.z.string(),
16
+ data: zod_1.z.any().optional(),
17
+ link: zod_1.z.string().optional(),
18
+ linkText: zod_1.z.string().optional(),
19
+ });
@@ -268,34 +268,34 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
268
268
  division: import("zod").ZodOptional<import("zod").ZodString>;
269
269
  }, "strip", import("zod").ZodTypeAny, {
270
270
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
271
- q?: string | undefined;
272
- teamId?: string | undefined;
271
+ offset?: string | undefined;
273
272
  round?: string | undefined;
273
+ q?: string | undefined;
274
+ username?: string | undefined;
274
275
  createdAt?: "12h" | "daily" | "weekly" | undefined;
276
+ teamId?: string | undefined;
275
277
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
276
278
  limit?: string | undefined;
277
- offset?: string | undefined;
279
+ comment?: string | undefined;
278
280
  gameId?: string | undefined;
279
281
  showEmptyRatings?: string | undefined;
280
- comment?: string | undefined;
281
- username?: string | undefined;
282
282
  following?: string | undefined;
283
283
  userId?: string | undefined;
284
284
  mlbTeamLeague?: string | undefined;
285
285
  division?: string | undefined;
286
286
  }, {
287
287
  league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
288
- q?: string | undefined;
289
- teamId?: string | undefined;
288
+ offset?: string | undefined;
290
289
  round?: string | undefined;
290
+ q?: string | undefined;
291
+ username?: string | undefined;
291
292
  createdAt?: "12h" | "daily" | "weekly" | undefined;
293
+ teamId?: string | undefined;
292
294
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
293
295
  limit?: string | undefined;
294
- offset?: string | undefined;
296
+ comment?: string | undefined;
295
297
  gameId?: string | undefined;
296
298
  showEmptyRatings?: string | undefined;
297
- comment?: string | undefined;
298
- username?: string | undefined;
299
299
  following?: string | undefined;
300
300
  userId?: string | undefined;
301
301
  mlbTeamLeague?: string | undefined;
@@ -367,10 +367,169 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
367
367
  };
368
368
  agree: boolean;
369
369
  }>;
370
- export declare const createRatingSchema: import("zod").ZodObject<{
370
+ export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
371
+ id: import("zod").ZodString;
372
+ createdAt: import("zod").ZodNumber;
371
373
  rating: import("zod").ZodNumber;
372
374
  comment: import("zod").ZodOptional<import("zod").ZodString>;
375
+ user: import("zod").ZodObject<{
376
+ id: import("zod").ZodString;
377
+ username: import("zod").ZodString;
378
+ avatarUrl: import("zod").ZodString;
379
+ email: import("zod").ZodString;
380
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
381
+ }, "strip", import("zod").ZodTypeAny, {
382
+ id: string;
383
+ email: string;
384
+ username: string;
385
+ avatarUrl: string;
386
+ badge?: string | undefined;
387
+ }, {
388
+ id: string;
389
+ email: string;
390
+ username: string;
391
+ avatarUrl: string;
392
+ badge?: string | undefined;
393
+ }>;
394
+ game: import("zod").ZodObject<{
395
+ id: import("zod").ZodString;
396
+ round: import("zod").ZodOptional<import("zod").ZodNumber>;
397
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">]>;
398
+ homeTeam: import("zod").ZodObject<{
399
+ id: import("zod").ZodOptional<import("zod").ZodString>;
400
+ apiTeamId: import("zod").ZodNumber;
401
+ name: import("zod").ZodString;
402
+ score: import("zod").ZodNumber;
403
+ isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
404
+ image: import("zod").ZodString;
405
+ seed: import("zod").ZodOptional<import("zod").ZodNumber>;
406
+ teamCode: import("zod").ZodOptional<import("zod").ZodString>;
407
+ }, "strip", import("zod").ZodTypeAny, {
408
+ name: string;
409
+ image: string;
410
+ apiTeamId: number;
411
+ score: number;
412
+ id?: string | undefined;
413
+ isWinner?: boolean | undefined;
414
+ seed?: number | undefined;
415
+ teamCode?: string | undefined;
416
+ }, {
417
+ name: string;
418
+ image: string;
419
+ apiTeamId: number;
420
+ score: number;
421
+ id?: string | undefined;
422
+ isWinner?: boolean | undefined;
423
+ seed?: number | undefined;
424
+ teamCode?: string | undefined;
425
+ }>;
426
+ awayTeam: import("zod").ZodObject<{
427
+ id: import("zod").ZodOptional<import("zod").ZodString>;
428
+ apiTeamId: import("zod").ZodNumber;
429
+ name: import("zod").ZodString;
430
+ score: import("zod").ZodNumber;
431
+ isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
432
+ image: import("zod").ZodString;
433
+ seed: import("zod").ZodOptional<import("zod").ZodNumber>;
434
+ teamCode: import("zod").ZodOptional<import("zod").ZodString>;
435
+ }, "strip", import("zod").ZodTypeAny, {
436
+ name: string;
437
+ image: string;
438
+ apiTeamId: number;
439
+ score: number;
440
+ id?: string | undefined;
441
+ isWinner?: boolean | undefined;
442
+ seed?: number | undefined;
443
+ teamCode?: string | undefined;
444
+ }, {
445
+ name: string;
446
+ image: string;
447
+ apiTeamId: number;
448
+ score: number;
449
+ id?: string | undefined;
450
+ isWinner?: boolean | undefined;
451
+ seed?: number | undefined;
452
+ teamCode?: string | undefined;
453
+ }>;
454
+ seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
455
+ homeTeamWins: import("zod").ZodNumber;
456
+ awayTeamWins: import("zod").ZodNumber;
457
+ gameNumber: import("zod").ZodNumber;
458
+ maxLength: import("zod").ZodNumber;
459
+ }, "strip", import("zod").ZodTypeAny, {
460
+ maxLength: number;
461
+ homeTeamWins: number;
462
+ awayTeamWins: number;
463
+ gameNumber: number;
464
+ }, {
465
+ maxLength: number;
466
+ homeTeamWins: number;
467
+ awayTeamWins: number;
468
+ gameNumber: number;
469
+ }>>;
470
+ }, "strip", import("zod").ZodTypeAny, {
471
+ id: string;
472
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
473
+ homeTeam: {
474
+ name: string;
475
+ image: string;
476
+ apiTeamId: number;
477
+ score: number;
478
+ id?: string | undefined;
479
+ isWinner?: boolean | undefined;
480
+ seed?: number | undefined;
481
+ teamCode?: string | undefined;
482
+ };
483
+ awayTeam: {
484
+ name: string;
485
+ image: string;
486
+ apiTeamId: number;
487
+ score: number;
488
+ id?: string | undefined;
489
+ isWinner?: boolean | undefined;
490
+ seed?: number | undefined;
491
+ teamCode?: string | undefined;
492
+ };
493
+ round?: number | undefined;
494
+ seriesInfo?: {
495
+ maxLength: number;
496
+ homeTeamWins: number;
497
+ awayTeamWins: number;
498
+ gameNumber: number;
499
+ } | undefined;
500
+ }, {
501
+ id: string;
502
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
503
+ homeTeam: {
504
+ name: string;
505
+ image: string;
506
+ apiTeamId: number;
507
+ score: number;
508
+ id?: string | undefined;
509
+ isWinner?: boolean | undefined;
510
+ seed?: number | undefined;
511
+ teamCode?: string | undefined;
512
+ };
513
+ awayTeam: {
514
+ name: string;
515
+ image: string;
516
+ apiTeamId: number;
517
+ score: number;
518
+ id?: string | undefined;
519
+ isWinner?: boolean | undefined;
520
+ seed?: number | undefined;
521
+ teamCode?: string | undefined;
522
+ };
523
+ round?: number | undefined;
524
+ seriesInfo?: {
525
+ maxLength: number;
526
+ homeTeamWins: number;
527
+ awayTeamWins: number;
528
+ gameNumber: number;
529
+ } | undefined;
530
+ }>;
373
531
  userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
532
+ }, "id" | "user" | "createdAt">, {
374
533
  game: import("zod").ZodObject<Omit<{
375
534
  id: import("zod").ZodString;
376
535
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -467,7 +626,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
467
626
  } | undefined;
468
627
  }>;
469
628
  id: import("zod").ZodOptional<import("zod").ZodString>;
470
- }, "strip", import("zod").ZodTypeAny, {
629
+ }>, "strip", import("zod").ZodTypeAny, {
471
630
  rating: number;
472
631
  game: {
473
632
  id: string;
@@ -479,9 +638,9 @@ export declare const createRatingSchema: import("zod").ZodObject<{
479
638
  gameNumber: number;
480
639
  } | undefined;
481
640
  };
641
+ id?: string | undefined;
482
642
  comment?: string | undefined;
483
643
  userLikes?: number | undefined;
484
- id?: string | undefined;
485
644
  }, {
486
645
  rating: number;
487
646
  game: {
@@ -494,9 +653,9 @@ export declare const createRatingSchema: import("zod").ZodObject<{
494
653
  gameNumber: number;
495
654
  } | undefined;
496
655
  };
656
+ id?: string | undefined;
497
657
  comment?: string | undefined;
498
658
  userLikes?: number | undefined;
499
- id?: string | undefined;
500
659
  }>;
501
660
  export declare const threadCommentSchema: import("zod").ZodObject<{
502
661
  id: import("zod").ZodString;
@@ -45,8 +45,8 @@ export declare const mlbTeamSchema: z.ZodObject<{
45
45
  league: "national" | "american";
46
46
  division: "east" | "central" | "west";
47
47
  id?: string | undefined;
48
- city?: string | undefined;
49
48
  teamCode?: string | undefined;
49
+ city?: string | undefined;
50
50
  }, {
51
51
  name: string;
52
52
  image: string;
@@ -54,6 +54,6 @@ export declare const mlbTeamSchema: z.ZodObject<{
54
54
  league: "national" | "american";
55
55
  division: "east" | "central" | "west";
56
56
  id?: string | undefined;
57
- city?: string | undefined;
58
57
  teamCode?: string | undefined;
58
+ city?: string | undefined;
59
59
  }>;
@@ -271,6 +271,10 @@ export declare const userSchema: import("zod").ZodObject<{
271
271
  }>;
272
272
  askedForPushNotifications: boolean;
273
273
  acceptedPushNotifications: boolean;
274
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
275
+ totalRatedGames?: number | undefined;
276
+ commentsLeft?: number | undefined;
277
+ avgRating?: number | undefined;
274
278
  avatarUrl?: string | null | undefined;
275
279
  leagues?: {
276
280
  nba: {
@@ -314,9 +318,6 @@ export declare const userSchema: import("zod").ZodObject<{
314
318
  avgRating: number;
315
319
  };
316
320
  } | undefined;
317
- totalRatedGames?: number | undefined;
318
- commentsLeft?: number | undefined;
319
- avgRating?: number | undefined;
320
321
  isRegistrationComplete?: boolean | undefined;
321
322
  badge?: string | undefined;
322
323
  registrationStep?: number | undefined;
@@ -330,7 +331,6 @@ export declare const userSchema: import("zod").ZodObject<{
330
331
  youtube?: string | undefined;
331
332
  tiktok?: string | undefined;
332
333
  } | undefined;
333
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
334
334
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
335
335
  notificationSettings?: {
336
336
  allGames?: boolean | undefined;
@@ -349,6 +349,10 @@ export declare const userSchema: import("zod").ZodObject<{
349
349
  }>;
350
350
  askedForPushNotifications: boolean;
351
351
  acceptedPushNotifications: boolean;
352
+ platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
353
+ totalRatedGames?: number | undefined;
354
+ commentsLeft?: number | undefined;
355
+ avgRating?: number | undefined;
352
356
  avatarUrl?: string | null | undefined;
353
357
  leagues?: {
354
358
  nba: {
@@ -392,9 +396,6 @@ export declare const userSchema: import("zod").ZodObject<{
392
396
  avgRating: number;
393
397
  };
394
398
  } | undefined;
395
- totalRatedGames?: number | undefined;
396
- commentsLeft?: number | undefined;
397
- avgRating?: number | undefined;
398
399
  isRegistrationComplete?: boolean | undefined;
399
400
  badge?: string | undefined;
400
401
  registrationStep?: number | undefined;
@@ -408,7 +409,6 @@ export declare const userSchema: import("zod").ZodObject<{
408
409
  youtube?: string | undefined;
409
410
  tiktok?: string | undefined;
410
411
  } | undefined;
411
- platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
412
412
  selectedTeamsPerLeague?: Record<string, string[]> | undefined;
413
413
  notificationSettings?: {
414
414
  allGames?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
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",