rategame-shared 1.0.76 → 1.0.78

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.
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
- import { gameRatingAggregateSchema, gameSchema, gameTeamSchema, searchGameSchema } from "../schemas/game";
2
+ import { gameRatingAggregateSchema, gameSchema, gameTeamSchema, mlbGameSchema, searchGameSchema } from "../schemas/game";
3
3
  export type Game = z.infer<typeof gameSchema>;
4
+ export type MLBGame = z.infer<typeof mlbGameSchema>;
4
5
  export type GameRatingAggregate = z.infer<typeof gameRatingAggregateSchema>;
5
6
  export type GameTeam = z.infer<typeof gameTeamSchema>;
6
7
  export type SearchGame = z.infer<typeof searchGameSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { mlbPlayerSchema } from "../schemas/player";
3
+ export type MLBPlayer = z.infer<typeof mlbPlayerSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,16 +11,16 @@ export declare const gameTeamSchema: z.ZodObject<{
11
11
  name: string;
12
12
  image: string;
13
13
  apiTeamId: number;
14
- score: number;
15
14
  seed: number;
15
+ score: number;
16
16
  id?: string | undefined;
17
17
  isWinner?: boolean | undefined;
18
18
  }, {
19
19
  name: string;
20
20
  image: string;
21
21
  apiTeamId: number;
22
- score: number;
23
22
  seed: number;
23
+ score: number;
24
24
  id?: string | undefined;
25
25
  isWinner?: boolean | undefined;
26
26
  }>;
@@ -87,16 +87,16 @@ export declare const gameSchema: z.ZodObject<{
87
87
  name: string;
88
88
  image: string;
89
89
  apiTeamId: number;
90
- score: number;
91
90
  seed: number;
91
+ score: number;
92
92
  id?: string | undefined;
93
93
  isWinner?: boolean | undefined;
94
94
  }, {
95
95
  name: string;
96
96
  image: string;
97
97
  apiTeamId: number;
98
- score: number;
99
98
  seed: number;
99
+ score: number;
100
100
  id?: string | undefined;
101
101
  isWinner?: boolean | undefined;
102
102
  }>;
@@ -112,16 +112,16 @@ export declare const gameSchema: z.ZodObject<{
112
112
  name: string;
113
113
  image: string;
114
114
  apiTeamId: number;
115
- score: number;
116
115
  seed: number;
116
+ score: number;
117
117
  id?: string | undefined;
118
118
  isWinner?: boolean | undefined;
119
119
  }, {
120
120
  name: string;
121
121
  image: string;
122
122
  apiTeamId: number;
123
- score: number;
124
123
  seed: number;
124
+ score: number;
125
125
  id?: string | undefined;
126
126
  isWinner?: boolean | undefined;
127
127
  }>;
@@ -194,8 +194,8 @@ export declare const gameSchema: z.ZodObject<{
194
194
  name: string;
195
195
  image: string;
196
196
  apiTeamId: number;
197
- score: number;
198
197
  seed: number;
198
+ score: number;
199
199
  id?: string | undefined;
200
200
  isWinner?: boolean | undefined;
201
201
  };
@@ -203,8 +203,8 @@ export declare const gameSchema: z.ZodObject<{
203
203
  name: string;
204
204
  image: string;
205
205
  apiTeamId: number;
206
- score: number;
207
206
  seed: number;
207
+ score: number;
208
208
  id?: string | undefined;
209
209
  isWinner?: boolean | undefined;
210
210
  };
@@ -244,8 +244,8 @@ export declare const gameSchema: z.ZodObject<{
244
244
  name: string;
245
245
  image: string;
246
246
  apiTeamId: number;
247
- score: number;
248
247
  seed: number;
248
+ score: number;
249
249
  id?: string | undefined;
250
250
  isWinner?: boolean | undefined;
251
251
  };
@@ -253,8 +253,8 @@ export declare const gameSchema: z.ZodObject<{
253
253
  name: string;
254
254
  image: string;
255
255
  apiTeamId: number;
256
- score: number;
257
256
  seed: number;
257
+ score: number;
258
258
  id?: string | undefined;
259
259
  isWinner?: boolean | undefined;
260
260
  };
@@ -284,6 +284,352 @@ export declare const gameSchema: z.ZodObject<{
284
284
  };
285
285
  } | undefined;
286
286
  }>;
287
+ export declare const inningSchema: z.ZodObject<{
288
+ inningNumber: z.ZodNumber;
289
+ awayScore: z.ZodNumber;
290
+ homeScore: z.ZodNumber;
291
+ }, "strip", z.ZodTypeAny, {
292
+ awayScore: number;
293
+ homeScore: number;
294
+ inningNumber: number;
295
+ }, {
296
+ awayScore: number;
297
+ homeScore: number;
298
+ inningNumber: number;
299
+ }>;
300
+ export declare const mlbGameSchema: z.ZodObject<{
301
+ id: z.ZodOptional<z.ZodString>;
302
+ status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
303
+ isClosed: z.ZodOptional<z.ZodBoolean>;
304
+ startedAt: z.ZodNumber;
305
+ finishedAt: z.ZodNumber;
306
+ ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
307
+ round: z.ZodOptional<z.ZodNumber>;
308
+ apiGameId: z.ZodNumber;
309
+ homeTeam: z.ZodObject<{
310
+ id: z.ZodOptional<z.ZodString>;
311
+ apiTeamId: z.ZodNumber;
312
+ name: z.ZodString;
313
+ score: z.ZodNumber;
314
+ isWinner: z.ZodOptional<z.ZodBoolean>;
315
+ image: z.ZodString;
316
+ seed: z.ZodNumber;
317
+ }, "strip", z.ZodTypeAny, {
318
+ name: string;
319
+ image: string;
320
+ apiTeamId: number;
321
+ seed: number;
322
+ score: number;
323
+ id?: string | undefined;
324
+ isWinner?: boolean | undefined;
325
+ }, {
326
+ name: string;
327
+ image: string;
328
+ apiTeamId: number;
329
+ seed: number;
330
+ score: number;
331
+ id?: string | undefined;
332
+ isWinner?: boolean | undefined;
333
+ }>;
334
+ awayTeam: z.ZodObject<{
335
+ id: z.ZodOptional<z.ZodString>;
336
+ apiTeamId: z.ZodNumber;
337
+ name: z.ZodString;
338
+ score: z.ZodNumber;
339
+ isWinner: z.ZodOptional<z.ZodBoolean>;
340
+ image: z.ZodString;
341
+ seed: z.ZodNumber;
342
+ }, "strip", z.ZodTypeAny, {
343
+ name: string;
344
+ image: string;
345
+ apiTeamId: number;
346
+ seed: number;
347
+ score: number;
348
+ id?: string | undefined;
349
+ isWinner?: boolean | undefined;
350
+ }, {
351
+ name: string;
352
+ image: string;
353
+ apiTeamId: number;
354
+ seed: number;
355
+ score: number;
356
+ id?: string | undefined;
357
+ isWinner?: boolean | undefined;
358
+ }>;
359
+ totalInningsRemaining: z.ZodNumber;
360
+ innings: z.ZodArray<z.ZodObject<{
361
+ inningNumber: z.ZodNumber;
362
+ awayScore: z.ZodNumber;
363
+ homeScore: z.ZodNumber;
364
+ }, "strip", z.ZodTypeAny, {
365
+ awayScore: number;
366
+ homeScore: number;
367
+ inningNumber: number;
368
+ }, {
369
+ awayScore: number;
370
+ homeScore: number;
371
+ inningNumber: number;
372
+ }>, "many">;
373
+ inningHalf: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"T">, z.ZodLiteral<"B">]>>;
374
+ seriesInfo: z.ZodOptional<z.ZodObject<{
375
+ homeTeamWins: z.ZodNumber;
376
+ awayTeamWins: z.ZodNumber;
377
+ gameNumber: z.ZodNumber;
378
+ maxLength: z.ZodNumber;
379
+ }, "strip", z.ZodTypeAny, {
380
+ maxLength: number;
381
+ homeTeamWins: number;
382
+ awayTeamWins: number;
383
+ gameNumber: number;
384
+ }, {
385
+ maxLength: number;
386
+ homeTeamWins: number;
387
+ awayTeamWins: number;
388
+ gameNumber: number;
389
+ }>>;
390
+ rating: z.ZodOptional<z.ZodObject<{
391
+ avg: z.ZodNumber;
392
+ votes: z.ZodObject<{
393
+ options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
394
+ total: z.ZodNumber;
395
+ }, "strip", z.ZodTypeAny, {
396
+ total: number;
397
+ options: Record<number, number>;
398
+ }, {
399
+ total: number;
400
+ options: Record<number, number>;
401
+ }>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ avg: number;
404
+ votes: {
405
+ total: number;
406
+ options: Record<number, number>;
407
+ };
408
+ }, {
409
+ avg: number;
410
+ votes: {
411
+ total: number;
412
+ options: Record<number, number>;
413
+ };
414
+ }>>;
415
+ losingPitcherId: z.ZodOptional<z.ZodString>;
416
+ winningPitcherId: z.ZodOptional<z.ZodString>;
417
+ savingPitcherId: z.ZodOptional<z.ZodString>;
418
+ losingPitcher: z.ZodOptional<z.ZodObject<{
419
+ id: z.ZodOptional<z.ZodString>;
420
+ name: z.ZodString;
421
+ games: z.ZodNumber;
422
+ wins: z.ZodNumber;
423
+ losses: z.ZodNumber;
424
+ saves: z.ZodNumber;
425
+ }, "strip", z.ZodTypeAny, {
426
+ name: string;
427
+ games: number;
428
+ wins: number;
429
+ losses: number;
430
+ saves: number;
431
+ id?: string | undefined;
432
+ }, {
433
+ name: string;
434
+ games: number;
435
+ wins: number;
436
+ losses: number;
437
+ saves: number;
438
+ id?: string | undefined;
439
+ }>>;
440
+ winningPitcher: z.ZodOptional<z.ZodObject<{
441
+ id: z.ZodOptional<z.ZodString>;
442
+ name: z.ZodString;
443
+ games: z.ZodNumber;
444
+ wins: z.ZodNumber;
445
+ losses: z.ZodNumber;
446
+ saves: z.ZodNumber;
447
+ }, "strip", z.ZodTypeAny, {
448
+ name: string;
449
+ games: number;
450
+ wins: number;
451
+ losses: number;
452
+ saves: number;
453
+ id?: string | undefined;
454
+ }, {
455
+ name: string;
456
+ games: number;
457
+ wins: number;
458
+ losses: number;
459
+ saves: number;
460
+ id?: string | undefined;
461
+ }>>;
462
+ savingPitcher: z.ZodOptional<z.ZodObject<{
463
+ id: z.ZodOptional<z.ZodString>;
464
+ name: z.ZodString;
465
+ games: z.ZodNumber;
466
+ wins: z.ZodNumber;
467
+ losses: z.ZodNumber;
468
+ saves: z.ZodNumber;
469
+ }, "strip", z.ZodTypeAny, {
470
+ name: string;
471
+ games: number;
472
+ wins: number;
473
+ losses: number;
474
+ saves: number;
475
+ id?: string | undefined;
476
+ }, {
477
+ name: string;
478
+ games: number;
479
+ wins: number;
480
+ losses: number;
481
+ saves: number;
482
+ id?: string | undefined;
483
+ }>>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ status: "live" | "scheduled" | "final";
486
+ startedAt: number;
487
+ finishedAt: number;
488
+ apiGameId: number;
489
+ homeTeam: {
490
+ name: string;
491
+ image: string;
492
+ apiTeamId: number;
493
+ seed: number;
494
+ score: number;
495
+ id?: string | undefined;
496
+ isWinner?: boolean | undefined;
497
+ };
498
+ awayTeam: {
499
+ name: string;
500
+ image: string;
501
+ apiTeamId: number;
502
+ seed: number;
503
+ score: number;
504
+ id?: string | undefined;
505
+ isWinner?: boolean | undefined;
506
+ };
507
+ totalInningsRemaining: number;
508
+ innings: {
509
+ awayScore: number;
510
+ homeScore: number;
511
+ inningNumber: number;
512
+ }[];
513
+ id?: string | undefined;
514
+ isClosed?: boolean | undefined;
515
+ ratingWindowClosedAt?: number | undefined;
516
+ round?: number | undefined;
517
+ inningHalf?: "T" | "B" | undefined;
518
+ seriesInfo?: {
519
+ maxLength: number;
520
+ homeTeamWins: number;
521
+ awayTeamWins: number;
522
+ gameNumber: number;
523
+ } | undefined;
524
+ rating?: {
525
+ avg: number;
526
+ votes: {
527
+ total: number;
528
+ options: Record<number, number>;
529
+ };
530
+ } | undefined;
531
+ losingPitcherId?: string | undefined;
532
+ winningPitcherId?: string | undefined;
533
+ savingPitcherId?: string | undefined;
534
+ losingPitcher?: {
535
+ name: string;
536
+ games: number;
537
+ wins: number;
538
+ losses: number;
539
+ saves: number;
540
+ id?: string | undefined;
541
+ } | undefined;
542
+ winningPitcher?: {
543
+ name: string;
544
+ games: number;
545
+ wins: number;
546
+ losses: number;
547
+ saves: number;
548
+ id?: string | undefined;
549
+ } | undefined;
550
+ savingPitcher?: {
551
+ name: string;
552
+ games: number;
553
+ wins: number;
554
+ losses: number;
555
+ saves: number;
556
+ id?: string | undefined;
557
+ } | undefined;
558
+ }, {
559
+ status: "live" | "scheduled" | "final";
560
+ startedAt: number;
561
+ finishedAt: number;
562
+ apiGameId: number;
563
+ homeTeam: {
564
+ name: string;
565
+ image: string;
566
+ apiTeamId: number;
567
+ seed: number;
568
+ score: number;
569
+ id?: string | undefined;
570
+ isWinner?: boolean | undefined;
571
+ };
572
+ awayTeam: {
573
+ name: string;
574
+ image: string;
575
+ apiTeamId: number;
576
+ seed: number;
577
+ score: number;
578
+ id?: string | undefined;
579
+ isWinner?: boolean | undefined;
580
+ };
581
+ totalInningsRemaining: number;
582
+ innings: {
583
+ awayScore: number;
584
+ homeScore: number;
585
+ inningNumber: number;
586
+ }[];
587
+ id?: string | undefined;
588
+ isClosed?: boolean | undefined;
589
+ ratingWindowClosedAt?: number | undefined;
590
+ round?: number | undefined;
591
+ inningHalf?: "T" | "B" | undefined;
592
+ seriesInfo?: {
593
+ maxLength: number;
594
+ homeTeamWins: number;
595
+ awayTeamWins: number;
596
+ gameNumber: number;
597
+ } | undefined;
598
+ rating?: {
599
+ avg: number;
600
+ votes: {
601
+ total: number;
602
+ options: Record<number, number>;
603
+ };
604
+ } | undefined;
605
+ losingPitcherId?: string | undefined;
606
+ winningPitcherId?: string | undefined;
607
+ savingPitcherId?: string | undefined;
608
+ losingPitcher?: {
609
+ name: string;
610
+ games: number;
611
+ wins: number;
612
+ losses: number;
613
+ saves: number;
614
+ id?: string | undefined;
615
+ } | undefined;
616
+ winningPitcher?: {
617
+ name: string;
618
+ games: number;
619
+ wins: number;
620
+ losses: number;
621
+ saves: number;
622
+ id?: string | undefined;
623
+ } | undefined;
624
+ savingPitcher?: {
625
+ name: string;
626
+ games: number;
627
+ wins: number;
628
+ losses: number;
629
+ saves: number;
630
+ id?: string | undefined;
631
+ } | undefined;
632
+ }>;
287
633
  export declare const searchGameSchema: z.ZodObject<{
288
634
  q: z.ZodOptional<z.ZodString>;
289
635
  teamId: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchGameSchema = exports.gameSchema = exports.seriesInfoSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
3
+ exports.searchGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.gameSchema = exports.seriesInfoSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const player_1 = require("./player");
5
6
  exports.gameTeamSchema = zod_1.z.object({
6
7
  id: zod_1.z.string().optional(),
7
8
  apiTeamId: zod_1.z.number(),
@@ -52,6 +53,38 @@ exports.gameSchema = zod_1.z.object({
52
53
  seriesInfo: exports.seriesInfoSchema.optional(),
53
54
  rating: exports.gameRatingAggregateSchema.optional(),
54
55
  });
56
+ exports.inningSchema = zod_1.z.object({
57
+ inningNumber: zod_1.z.number(),
58
+ awayScore: zod_1.z.number(),
59
+ homeScore: zod_1.z.number(),
60
+ });
61
+ exports.mlbGameSchema = zod_1.z.object({
62
+ id: zod_1.z.string().optional(),
63
+ status: zod_1.z.union([
64
+ zod_1.z.literal("scheduled"),
65
+ zod_1.z.literal("live"),
66
+ zod_1.z.literal("final"),
67
+ ]),
68
+ isClosed: zod_1.z.boolean().optional(),
69
+ startedAt: zod_1.z.number(),
70
+ finishedAt: zod_1.z.number(),
71
+ ratingWindowClosedAt: zod_1.z.number().optional(),
72
+ round: zod_1.z.number().optional(),
73
+ apiGameId: zod_1.z.number(),
74
+ homeTeam: exports.gameTeamSchema,
75
+ awayTeam: exports.gameTeamSchema,
76
+ totalInningsRemaining: zod_1.z.number(),
77
+ innings: zod_1.z.array(exports.inningSchema),
78
+ inningHalf: zod_1.z.union([zod_1.z.literal("T"), zod_1.z.literal("B")]).optional(),
79
+ seriesInfo: exports.seriesInfoSchema.optional(),
80
+ rating: exports.gameRatingAggregateSchema.optional(),
81
+ losingPitcherId: zod_1.z.string().optional(),
82
+ winningPitcherId: zod_1.z.string().optional(),
83
+ savingPitcherId: zod_1.z.string().optional(),
84
+ losingPitcher: player_1.mlbPlayerSchema.optional(),
85
+ winningPitcher: player_1.mlbPlayerSchema.optional(),
86
+ savingPitcher: player_1.mlbPlayerSchema.optional(),
87
+ });
55
88
  exports.searchGameSchema = zod_1.z.object({
56
89
  q: zod_1.z.string().optional(),
57
90
  teamId: zod_1.z.string().optional(),
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ export declare const mlbPlayerSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ name: z.ZodString;
5
+ games: z.ZodNumber;
6
+ wins: z.ZodNumber;
7
+ losses: z.ZodNumber;
8
+ saves: z.ZodNumber;
9
+ }, "strip", z.ZodTypeAny, {
10
+ name: string;
11
+ games: number;
12
+ wins: number;
13
+ losses: number;
14
+ saves: number;
15
+ id?: string | undefined;
16
+ }, {
17
+ name: string;
18
+ games: number;
19
+ wins: number;
20
+ losses: number;
21
+ saves: number;
22
+ id?: string | undefined;
23
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mlbPlayerSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.mlbPlayerSchema = zod_1.z.object({
6
+ id: zod_1.z.string().optional(),
7
+ name: zod_1.z.string(),
8
+ games: zod_1.z.number(),
9
+ wins: zod_1.z.number(),
10
+ losses: zod_1.z.number(),
11
+ saves: zod_1.z.number(),
12
+ });
@@ -38,16 +38,16 @@ export declare const ratingSchema: import("zod").ZodObject<{
38
38
  name: string;
39
39
  image: string;
40
40
  apiTeamId: number;
41
- score: number;
42
41
  seed: number;
42
+ score: number;
43
43
  id?: string | undefined;
44
44
  isWinner?: boolean | undefined;
45
45
  }, {
46
46
  name: string;
47
47
  image: string;
48
48
  apiTeamId: number;
49
- score: number;
50
49
  seed: number;
50
+ score: number;
51
51
  id?: string | undefined;
52
52
  isWinner?: boolean | undefined;
53
53
  }>;
@@ -63,16 +63,16 @@ export declare const ratingSchema: import("zod").ZodObject<{
63
63
  name: string;
64
64
  image: string;
65
65
  apiTeamId: number;
66
- score: number;
67
66
  seed: number;
67
+ score: number;
68
68
  id?: string | undefined;
69
69
  isWinner?: boolean | undefined;
70
70
  }, {
71
71
  name: string;
72
72
  image: string;
73
73
  apiTeamId: number;
74
- score: number;
75
74
  seed: number;
75
+ score: number;
76
76
  id?: string | undefined;
77
77
  isWinner?: boolean | undefined;
78
78
  }>;
@@ -100,8 +100,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
100
100
  name: string;
101
101
  image: string;
102
102
  apiTeamId: number;
103
- score: number;
104
103
  seed: number;
104
+ score: number;
105
105
  id?: string | undefined;
106
106
  isWinner?: boolean | undefined;
107
107
  };
@@ -109,8 +109,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
109
109
  name: string;
110
110
  image: string;
111
111
  apiTeamId: number;
112
- score: number;
113
112
  seed: number;
113
+ score: number;
114
114
  id?: string | undefined;
115
115
  isWinner?: boolean | undefined;
116
116
  };
@@ -128,8 +128,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
128
128
  name: string;
129
129
  image: string;
130
130
  apiTeamId: number;
131
- score: number;
132
131
  seed: number;
132
+ score: number;
133
133
  id?: string | undefined;
134
134
  isWinner?: boolean | undefined;
135
135
  };
@@ -137,8 +137,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
137
137
  name: string;
138
138
  image: string;
139
139
  apiTeamId: number;
140
- score: number;
141
140
  seed: number;
141
+ score: number;
142
142
  id?: string | undefined;
143
143
  isWinner?: boolean | undefined;
144
144
  };
@@ -169,8 +169,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
169
169
  name: string;
170
170
  image: string;
171
171
  apiTeamId: number;
172
- score: number;
173
172
  seed: number;
173
+ score: number;
174
174
  id?: string | undefined;
175
175
  isWinner?: boolean | undefined;
176
176
  };
@@ -178,8 +178,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
178
178
  name: string;
179
179
  image: string;
180
180
  apiTeamId: number;
181
- score: number;
182
181
  seed: number;
182
+ score: number;
183
183
  id?: string | undefined;
184
184
  isWinner?: boolean | undefined;
185
185
  };
@@ -211,8 +211,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
211
211
  name: string;
212
212
  image: string;
213
213
  apiTeamId: number;
214
- score: number;
215
214
  seed: number;
215
+ score: number;
216
216
  id?: string | undefined;
217
217
  isWinner?: boolean | undefined;
218
218
  };
@@ -220,8 +220,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
220
220
  name: string;
221
221
  image: string;
222
222
  apiTeamId: number;
223
- score: number;
224
223
  seed: number;
224
+ score: number;
225
225
  id?: string | undefined;
226
226
  isWinner?: boolean | undefined;
227
227
  };
@@ -355,16 +355,16 @@ export declare const createRatingSchema: import("zod").ZodObject<{
355
355
  name: string;
356
356
  image: string;
357
357
  apiTeamId: number;
358
- score: number;
359
358
  seed: number;
359
+ score: number;
360
360
  id?: string | undefined;
361
361
  isWinner?: boolean | undefined;
362
362
  }, {
363
363
  name: string;
364
364
  image: string;
365
365
  apiTeamId: number;
366
- score: number;
367
366
  seed: number;
367
+ score: number;
368
368
  id?: string | undefined;
369
369
  isWinner?: boolean | undefined;
370
370
  }>;
@@ -380,16 +380,16 @@ export declare const createRatingSchema: import("zod").ZodObject<{
380
380
  name: string;
381
381
  image: string;
382
382
  apiTeamId: number;
383
- score: number;
384
383
  seed: number;
384
+ score: number;
385
385
  id?: string | undefined;
386
386
  isWinner?: boolean | undefined;
387
387
  }, {
388
388
  name: string;
389
389
  image: string;
390
390
  apiTeamId: number;
391
- score: number;
392
391
  seed: number;
392
+ score: number;
393
393
  id?: string | undefined;
394
394
  isWinner?: boolean | undefined;
395
395
  }>;
@@ -94,14 +94,17 @@ export declare const userSchema: import("zod").ZodObject<{
94
94
  instagram: import("zod").ZodOptional<import("zod").ZodString>;
95
95
  x: import("zod").ZodOptional<import("zod").ZodString>;
96
96
  youtube: import("zod").ZodOptional<import("zod").ZodString>;
97
+ tiktok: import("zod").ZodOptional<import("zod").ZodString>;
97
98
  }, "strip", import("zod").ZodTypeAny, {
98
99
  instagram?: string | undefined;
99
100
  x?: string | undefined;
100
101
  youtube?: string | undefined;
102
+ tiktok?: string | undefined;
101
103
  }, {
102
104
  instagram?: string | undefined;
103
105
  x?: string | undefined;
104
106
  youtube?: string | undefined;
107
+ tiktok?: string | undefined;
105
108
  }>>;
106
109
  }, "strip", import("zod").ZodTypeAny, {
107
110
  id: string;
@@ -142,6 +145,7 @@ export declare const userSchema: import("zod").ZodObject<{
142
145
  instagram?: string | undefined;
143
146
  x?: string | undefined;
144
147
  youtube?: string | undefined;
148
+ tiktok?: string | undefined;
145
149
  } | undefined;
146
150
  }, {
147
151
  id: string;
@@ -182,6 +186,7 @@ export declare const userSchema: import("zod").ZodObject<{
182
186
  instagram?: string | undefined;
183
187
  x?: string | undefined;
184
188
  youtube?: string | undefined;
189
+ tiktok?: string | undefined;
185
190
  } | undefined;
186
191
  }>;
187
192
  export declare const createUserSchema: import("zod").ZodObject<Omit<{
@@ -267,14 +272,17 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
267
272
  instagram: import("zod").ZodOptional<import("zod").ZodString>;
268
273
  x: import("zod").ZodOptional<import("zod").ZodString>;
269
274
  youtube: import("zod").ZodOptional<import("zod").ZodString>;
275
+ tiktok: import("zod").ZodOptional<import("zod").ZodString>;
270
276
  }, "strip", import("zod").ZodTypeAny, {
271
277
  instagram?: string | undefined;
272
278
  x?: string | undefined;
273
279
  youtube?: string | undefined;
280
+ tiktok?: string | undefined;
274
281
  }, {
275
282
  instagram?: string | undefined;
276
283
  x?: string | undefined;
277
284
  youtube?: string | undefined;
285
+ tiktok?: string | undefined;
278
286
  }>>;
279
287
  }, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
280
288
  email: string;
@@ -304,6 +312,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
304
312
  instagram?: string | undefined;
305
313
  x?: string | undefined;
306
314
  youtube?: string | undefined;
315
+ tiktok?: string | undefined;
307
316
  } | undefined;
308
317
  }, {
309
318
  email: string;
@@ -333,5 +342,6 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
333
342
  instagram?: string | undefined;
334
343
  x?: string | undefined;
335
344
  youtube?: string | undefined;
345
+ tiktok?: string | undefined;
336
346
  } | undefined;
337
347
  }>;
@@ -38,6 +38,7 @@ exports.userSchema = (0, zod_1.object)({
38
38
  instagram: (0, zod_1.string)().optional(),
39
39
  x: (0, zod_1.string)().optional(),
40
40
  youtube: (0, zod_1.string)().optional(),
41
+ tiktok: (0, zod_1.string)().optional(),
41
42
  }).optional(),
42
43
  });
43
44
  exports.createUserSchema = exports.userSchema.omit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
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",