rategame-shared 1.0.77 → 1.0.79
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/schemas/game.d.ts +10 -10
- package/dist/schemas/rating.d.ts +10 -156
- package/dist/schemas/rating.js +1 -1
- package/dist/schemas/user.d.ts +16 -6
- package/dist/schemas/user.js +1 -0
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -511,9 +511,10 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
511
511
|
inningNumber: number;
|
|
512
512
|
}[];
|
|
513
513
|
id?: string | undefined;
|
|
514
|
-
round?: number | undefined;
|
|
515
514
|
isClosed?: boolean | undefined;
|
|
516
515
|
ratingWindowClosedAt?: number | undefined;
|
|
516
|
+
round?: number | undefined;
|
|
517
|
+
inningHalf?: "T" | "B" | undefined;
|
|
517
518
|
seriesInfo?: {
|
|
518
519
|
maxLength: number;
|
|
519
520
|
homeTeamWins: number;
|
|
@@ -527,7 +528,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
527
528
|
options: Record<number, number>;
|
|
528
529
|
};
|
|
529
530
|
} | undefined;
|
|
530
|
-
inningHalf?: "T" | "B" | undefined;
|
|
531
531
|
losingPitcherId?: string | undefined;
|
|
532
532
|
winningPitcherId?: string | undefined;
|
|
533
533
|
savingPitcherId?: string | undefined;
|
|
@@ -585,9 +585,10 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
585
585
|
inningNumber: number;
|
|
586
586
|
}[];
|
|
587
587
|
id?: string | undefined;
|
|
588
|
-
round?: number | undefined;
|
|
589
588
|
isClosed?: boolean | undefined;
|
|
590
589
|
ratingWindowClosedAt?: number | undefined;
|
|
590
|
+
round?: number | undefined;
|
|
591
|
+
inningHalf?: "T" | "B" | undefined;
|
|
591
592
|
seriesInfo?: {
|
|
592
593
|
maxLength: number;
|
|
593
594
|
homeTeamWins: number;
|
|
@@ -601,7 +602,6 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
601
602
|
options: Record<number, number>;
|
|
602
603
|
};
|
|
603
604
|
} | undefined;
|
|
604
|
-
inningHalf?: "T" | "B" | undefined;
|
|
605
605
|
losingPitcherId?: string | undefined;
|
|
606
606
|
winningPitcherId?: string | undefined;
|
|
607
607
|
savingPitcherId?: string | undefined;
|
|
@@ -641,20 +641,20 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
641
641
|
offset: z.ZodOptional<z.ZodString>;
|
|
642
642
|
}, "strip", z.ZodTypeAny, {
|
|
643
643
|
league: "nba" | "ncaa";
|
|
644
|
-
offset?: string | undefined;
|
|
645
|
-
round?: string | undefined;
|
|
646
644
|
q?: string | undefined;
|
|
647
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
648
645
|
teamId?: string | undefined;
|
|
646
|
+
round?: string | undefined;
|
|
647
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
649
648
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
650
649
|
limit?: string | undefined;
|
|
650
|
+
offset?: string | undefined;
|
|
651
651
|
}, {
|
|
652
652
|
league: "nba" | "ncaa";
|
|
653
|
-
offset?: string | undefined;
|
|
654
|
-
round?: string | undefined;
|
|
655
653
|
q?: string | undefined;
|
|
656
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
657
654
|
teamId?: string | undefined;
|
|
655
|
+
round?: string | undefined;
|
|
656
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
658
657
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
659
658
|
limit?: string | undefined;
|
|
659
|
+
offset?: string | undefined;
|
|
660
660
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -248,24 +248,24 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
248
248
|
showEmptyRatings: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
249
|
}, "strip", import("zod").ZodTypeAny, {
|
|
250
250
|
league: "nba" | "ncaa";
|
|
251
|
-
offset?: string | undefined;
|
|
252
|
-
round?: string | undefined;
|
|
253
251
|
q?: string | undefined;
|
|
254
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
255
252
|
teamId?: string | undefined;
|
|
253
|
+
round?: string | undefined;
|
|
254
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
256
255
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
257
256
|
limit?: string | undefined;
|
|
257
|
+
offset?: string | undefined;
|
|
258
258
|
gameId?: string | undefined;
|
|
259
259
|
showEmptyRatings?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
league: "nba" | "ncaa";
|
|
262
|
-
offset?: string | undefined;
|
|
263
|
-
round?: string | undefined;
|
|
264
262
|
q?: string | undefined;
|
|
265
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
266
263
|
teamId?: string | undefined;
|
|
264
|
+
round?: string | undefined;
|
|
265
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
267
266
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
268
267
|
limit?: string | undefined;
|
|
268
|
+
offset?: string | undefined;
|
|
269
269
|
gameId?: string | undefined;
|
|
270
270
|
showEmptyRatings?: string | undefined;
|
|
271
271
|
}>;
|
|
@@ -335,159 +335,11 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
335
335
|
};
|
|
336
336
|
agree: boolean;
|
|
337
337
|
}>;
|
|
338
|
-
export declare const createRatingSchema: import("zod").ZodObject<
|
|
338
|
+
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
339
339
|
id: import("zod").ZodString;
|
|
340
|
-
createdAt: import("zod").ZodNumber;
|
|
341
340
|
rating: import("zod").ZodNumber;
|
|
342
341
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
343
|
-
user: import("zod").ZodObject<{
|
|
344
|
-
id: import("zod").ZodString;
|
|
345
|
-
username: import("zod").ZodString;
|
|
346
|
-
avatarUrl: import("zod").ZodString;
|
|
347
|
-
email: import("zod").ZodString;
|
|
348
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
350
|
-
id: string;
|
|
351
|
-
email: string;
|
|
352
|
-
username: string;
|
|
353
|
-
avatarUrl: string;
|
|
354
|
-
badge?: string | undefined;
|
|
355
|
-
}, {
|
|
356
|
-
id: string;
|
|
357
|
-
email: string;
|
|
358
|
-
username: string;
|
|
359
|
-
avatarUrl: string;
|
|
360
|
-
badge?: string | undefined;
|
|
361
|
-
}>;
|
|
362
|
-
game: import("zod").ZodObject<{
|
|
363
|
-
id: import("zod").ZodString;
|
|
364
|
-
round: import("zod").ZodNumber;
|
|
365
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
366
|
-
homeTeam: import("zod").ZodObject<{
|
|
367
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
368
|
-
apiTeamId: import("zod").ZodNumber;
|
|
369
|
-
name: import("zod").ZodString;
|
|
370
|
-
score: import("zod").ZodNumber;
|
|
371
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
372
|
-
image: import("zod").ZodString;
|
|
373
|
-
seed: import("zod").ZodNumber;
|
|
374
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
375
|
-
name: string;
|
|
376
|
-
image: string;
|
|
377
|
-
apiTeamId: number;
|
|
378
|
-
seed: number;
|
|
379
|
-
score: number;
|
|
380
|
-
id?: string | undefined;
|
|
381
|
-
isWinner?: boolean | undefined;
|
|
382
|
-
}, {
|
|
383
|
-
name: string;
|
|
384
|
-
image: string;
|
|
385
|
-
apiTeamId: number;
|
|
386
|
-
seed: number;
|
|
387
|
-
score: number;
|
|
388
|
-
id?: string | undefined;
|
|
389
|
-
isWinner?: boolean | undefined;
|
|
390
|
-
}>;
|
|
391
|
-
awayTeam: import("zod").ZodObject<{
|
|
392
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
393
|
-
apiTeamId: import("zod").ZodNumber;
|
|
394
|
-
name: import("zod").ZodString;
|
|
395
|
-
score: import("zod").ZodNumber;
|
|
396
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
397
|
-
image: import("zod").ZodString;
|
|
398
|
-
seed: import("zod").ZodNumber;
|
|
399
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
400
|
-
name: string;
|
|
401
|
-
image: string;
|
|
402
|
-
apiTeamId: number;
|
|
403
|
-
seed: number;
|
|
404
|
-
score: number;
|
|
405
|
-
id?: string | undefined;
|
|
406
|
-
isWinner?: boolean | undefined;
|
|
407
|
-
}, {
|
|
408
|
-
name: string;
|
|
409
|
-
image: string;
|
|
410
|
-
apiTeamId: number;
|
|
411
|
-
seed: number;
|
|
412
|
-
score: number;
|
|
413
|
-
id?: string | undefined;
|
|
414
|
-
isWinner?: boolean | undefined;
|
|
415
|
-
}>;
|
|
416
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
417
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
418
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
419
|
-
gameNumber: import("zod").ZodNumber;
|
|
420
|
-
maxLength: import("zod").ZodNumber;
|
|
421
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
422
|
-
maxLength: number;
|
|
423
|
-
homeTeamWins: number;
|
|
424
|
-
awayTeamWins: number;
|
|
425
|
-
gameNumber: number;
|
|
426
|
-
}, {
|
|
427
|
-
maxLength: number;
|
|
428
|
-
homeTeamWins: number;
|
|
429
|
-
awayTeamWins: number;
|
|
430
|
-
gameNumber: number;
|
|
431
|
-
}>>;
|
|
432
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
433
|
-
id: string;
|
|
434
|
-
round: number;
|
|
435
|
-
league: "nba" | "ncaa";
|
|
436
|
-
homeTeam: {
|
|
437
|
-
name: string;
|
|
438
|
-
image: string;
|
|
439
|
-
apiTeamId: number;
|
|
440
|
-
seed: number;
|
|
441
|
-
score: number;
|
|
442
|
-
id?: string | undefined;
|
|
443
|
-
isWinner?: boolean | undefined;
|
|
444
|
-
};
|
|
445
|
-
awayTeam: {
|
|
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
|
-
seriesInfo?: {
|
|
455
|
-
maxLength: number;
|
|
456
|
-
homeTeamWins: number;
|
|
457
|
-
awayTeamWins: number;
|
|
458
|
-
gameNumber: number;
|
|
459
|
-
} | undefined;
|
|
460
|
-
}, {
|
|
461
|
-
id: string;
|
|
462
|
-
round: number;
|
|
463
|
-
league: "nba" | "ncaa";
|
|
464
|
-
homeTeam: {
|
|
465
|
-
name: string;
|
|
466
|
-
image: string;
|
|
467
|
-
apiTeamId: number;
|
|
468
|
-
seed: number;
|
|
469
|
-
score: number;
|
|
470
|
-
id?: string | undefined;
|
|
471
|
-
isWinner?: boolean | undefined;
|
|
472
|
-
};
|
|
473
|
-
awayTeam: {
|
|
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
|
-
seriesInfo?: {
|
|
483
|
-
maxLength: number;
|
|
484
|
-
homeTeamWins: number;
|
|
485
|
-
awayTeamWins: number;
|
|
486
|
-
gameNumber: number;
|
|
487
|
-
} | undefined;
|
|
488
|
-
}>;
|
|
489
342
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
490
|
-
}, "id" | "user" | "createdAt">, {
|
|
491
343
|
game: import("zod").ZodObject<Omit<{
|
|
492
344
|
id: import("zod").ZodString;
|
|
493
345
|
round: import("zod").ZodNumber;
|
|
@@ -577,7 +429,8 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
577
429
|
gameNumber: number;
|
|
578
430
|
} | undefined;
|
|
579
431
|
}>;
|
|
580
|
-
}
|
|
432
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
433
|
+
id: string;
|
|
581
434
|
rating: number;
|
|
582
435
|
game: {
|
|
583
436
|
id: string;
|
|
@@ -592,6 +445,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
592
445
|
comment?: string | undefined;
|
|
593
446
|
userLikes?: number | undefined;
|
|
594
447
|
}, {
|
|
448
|
+
id: string;
|
|
595
449
|
rating: number;
|
|
596
450
|
game: {
|
|
597
451
|
id: string;
|
package/dist/schemas/rating.js
CHANGED
package/dist/schemas/user.d.ts
CHANGED
|
@@ -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;
|
|
@@ -116,9 +119,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
116
119
|
}>;
|
|
117
120
|
askedForPushNotifications: boolean;
|
|
118
121
|
acceptedPushNotifications: boolean;
|
|
119
|
-
totalRatedGames?: number | undefined;
|
|
120
|
-
commentsLeft?: number | undefined;
|
|
121
|
-
avgRating?: number | undefined;
|
|
122
122
|
leagues?: {
|
|
123
123
|
nba: {
|
|
124
124
|
totalRatedGames: number;
|
|
@@ -131,6 +131,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
131
131
|
avgRating: number;
|
|
132
132
|
};
|
|
133
133
|
} | undefined;
|
|
134
|
+
totalRatedGames?: number | undefined;
|
|
135
|
+
commentsLeft?: number | undefined;
|
|
136
|
+
avgRating?: number | undefined;
|
|
134
137
|
isRegistrationComplete?: boolean | undefined;
|
|
135
138
|
badge?: string | undefined;
|
|
136
139
|
registrationStep?: number | undefined;
|
|
@@ -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;
|
|
@@ -156,9 +160,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
156
160
|
}>;
|
|
157
161
|
askedForPushNotifications: boolean;
|
|
158
162
|
acceptedPushNotifications: boolean;
|
|
159
|
-
totalRatedGames?: number | undefined;
|
|
160
|
-
commentsLeft?: number | undefined;
|
|
161
|
-
avgRating?: number | undefined;
|
|
162
163
|
leagues?: {
|
|
163
164
|
nba: {
|
|
164
165
|
totalRatedGames: number;
|
|
@@ -171,6 +172,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
171
172
|
avgRating: number;
|
|
172
173
|
};
|
|
173
174
|
} | undefined;
|
|
175
|
+
totalRatedGames?: number | undefined;
|
|
176
|
+
commentsLeft?: number | undefined;
|
|
177
|
+
avgRating?: number | undefined;
|
|
174
178
|
isRegistrationComplete?: boolean | undefined;
|
|
175
179
|
badge?: string | undefined;
|
|
176
180
|
registrationStep?: number | undefined;
|
|
@@ -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
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -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({
|