rategame-shared 1.0.88 → 1.0.90
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 +169 -17
- package/dist/schemas/rating.js +2 -1
- package/dist/schemas/user.d.ts +8 -8
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -248,35 +248,38 @@ 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
|
-
|
|
251
|
+
following: import("zod").ZodOptional<import("zod").ZodString>;
|
|
252
|
+
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
252
253
|
}, "strip", import("zod").ZodTypeAny, {
|
|
253
254
|
league: "nba" | "ncaa";
|
|
254
|
-
|
|
255
|
-
teamId?: string | undefined;
|
|
255
|
+
offset?: string | undefined;
|
|
256
256
|
round?: string | undefined;
|
|
257
|
+
q?: string | undefined;
|
|
258
|
+
username?: string | undefined;
|
|
257
259
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
260
|
+
teamId?: string | undefined;
|
|
258
261
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
259
262
|
limit?: string | undefined;
|
|
260
|
-
|
|
263
|
+
comment?: string | undefined;
|
|
261
264
|
gameId?: string | undefined;
|
|
262
265
|
showEmptyRatings?: string | undefined;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
followedUsers?: string[] | undefined;
|
|
266
|
+
following?: string | undefined;
|
|
267
|
+
userId?: string | undefined;
|
|
266
268
|
}, {
|
|
267
269
|
league: "nba" | "ncaa";
|
|
268
|
-
|
|
269
|
-
teamId?: string | undefined;
|
|
270
|
+
offset?: string | undefined;
|
|
270
271
|
round?: string | undefined;
|
|
272
|
+
q?: string | undefined;
|
|
273
|
+
username?: string | undefined;
|
|
271
274
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
275
|
+
teamId?: string | undefined;
|
|
272
276
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
273
277
|
limit?: string | undefined;
|
|
274
|
-
|
|
278
|
+
comment?: string | undefined;
|
|
275
279
|
gameId?: string | undefined;
|
|
276
280
|
showEmptyRatings?: string | undefined;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
followedUsers?: string[] | undefined;
|
|
281
|
+
following?: string | undefined;
|
|
282
|
+
userId?: string | undefined;
|
|
280
283
|
}>;
|
|
281
284
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
282
285
|
ratingId: import("zod").ZodString;
|
|
@@ -344,10 +347,159 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
344
347
|
};
|
|
345
348
|
agree: boolean;
|
|
346
349
|
}>;
|
|
347
|
-
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
350
|
+
export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
|
|
351
|
+
id: import("zod").ZodString;
|
|
352
|
+
createdAt: import("zod").ZodNumber;
|
|
348
353
|
rating: import("zod").ZodNumber;
|
|
349
354
|
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
|
+
}>;
|
|
350
501
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
502
|
+
}, "id" | "user" | "createdAt">, {
|
|
351
503
|
game: import("zod").ZodObject<Omit<{
|
|
352
504
|
id: import("zod").ZodString;
|
|
353
505
|
round: import("zod").ZodNumber;
|
|
@@ -438,7 +590,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
438
590
|
} | undefined;
|
|
439
591
|
}>;
|
|
440
592
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
441
|
-
}
|
|
593
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
442
594
|
rating: number;
|
|
443
595
|
game: {
|
|
444
596
|
id: string;
|
|
@@ -450,9 +602,9 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
450
602
|
gameNumber: number;
|
|
451
603
|
} | undefined;
|
|
452
604
|
};
|
|
605
|
+
id?: string | undefined;
|
|
453
606
|
comment?: string | undefined;
|
|
454
607
|
userLikes?: number | undefined;
|
|
455
|
-
id?: string | undefined;
|
|
456
608
|
}, {
|
|
457
609
|
rating: number;
|
|
458
610
|
game: {
|
|
@@ -465,7 +617,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
465
617
|
gameNumber: number;
|
|
466
618
|
} | undefined;
|
|
467
619
|
};
|
|
620
|
+
id?: string | undefined;
|
|
468
621
|
comment?: string | undefined;
|
|
469
622
|
userLikes?: number | undefined;
|
|
470
|
-
id?: string | undefined;
|
|
471
623
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -49,7 +49,8 @@ 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
|
-
|
|
52
|
+
following: (0, zod_1.string)().optional(),
|
|
53
|
+
userId: (0, zod_1.string)().optional(),
|
|
53
54
|
});
|
|
54
55
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
55
56
|
ratingId: (0, zod_1.string)(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -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" | "macos" | "windows" | "web" | 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" | "macos" | "windows" | "web" | 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" | "macos" | "windows" | "web" | 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" | "macos" | "windows" | "web" | undefined;
|
|
194
194
|
}>;
|
|
195
195
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
196
196
|
id: import("zod").ZodString;
|