rategame-shared 1.0.87 → 1.0.88
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 +14 -163
- package/dist/schemas/user.d.ts +12 -12
- package/dist/schemas/user.js +7 -1
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -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
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -251,31 +251,31 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
251
251
|
followedUsers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
252
252
|
}, "strip", import("zod").ZodTypeAny, {
|
|
253
253
|
league: "nba" | "ncaa";
|
|
254
|
-
offset?: string | undefined;
|
|
255
|
-
round?: string | undefined;
|
|
256
254
|
q?: string | undefined;
|
|
257
|
-
username?: string | undefined;
|
|
258
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
259
255
|
teamId?: string | undefined;
|
|
256
|
+
round?: string | undefined;
|
|
257
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
260
258
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
261
259
|
limit?: string | undefined;
|
|
262
|
-
|
|
260
|
+
offset?: string | undefined;
|
|
263
261
|
gameId?: string | undefined;
|
|
264
262
|
showEmptyRatings?: string | undefined;
|
|
263
|
+
comment?: string | undefined;
|
|
264
|
+
username?: string | undefined;
|
|
265
265
|
followedUsers?: string[] | undefined;
|
|
266
266
|
}, {
|
|
267
267
|
league: "nba" | "ncaa";
|
|
268
|
-
offset?: string | undefined;
|
|
269
|
-
round?: string | undefined;
|
|
270
268
|
q?: string | undefined;
|
|
271
|
-
username?: string | undefined;
|
|
272
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
273
269
|
teamId?: string | undefined;
|
|
270
|
+
round?: string | undefined;
|
|
271
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
274
272
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
275
273
|
limit?: string | undefined;
|
|
276
|
-
|
|
274
|
+
offset?: string | undefined;
|
|
277
275
|
gameId?: string | undefined;
|
|
278
276
|
showEmptyRatings?: string | undefined;
|
|
277
|
+
comment?: string | undefined;
|
|
278
|
+
username?: string | undefined;
|
|
279
279
|
followedUsers?: string[] | undefined;
|
|
280
280
|
}>;
|
|
281
281
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
@@ -344,159 +344,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
344
344
|
};
|
|
345
345
|
agree: boolean;
|
|
346
346
|
}>;
|
|
347
|
-
export declare const createRatingSchema: import("zod").ZodObject<
|
|
348
|
-
id: import("zod").ZodString;
|
|
349
|
-
createdAt: import("zod").ZodNumber;
|
|
347
|
+
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
350
348
|
rating: import("zod").ZodNumber;
|
|
351
349
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
352
|
-
user: import("zod").ZodObject<{
|
|
353
|
-
id: import("zod").ZodString;
|
|
354
|
-
username: import("zod").ZodString;
|
|
355
|
-
avatarUrl: import("zod").ZodString;
|
|
356
|
-
email: import("zod").ZodString;
|
|
357
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
358
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
359
|
-
id: string;
|
|
360
|
-
email: string;
|
|
361
|
-
username: string;
|
|
362
|
-
avatarUrl: string;
|
|
363
|
-
badge?: string | undefined;
|
|
364
|
-
}, {
|
|
365
|
-
id: string;
|
|
366
|
-
email: string;
|
|
367
|
-
username: string;
|
|
368
|
-
avatarUrl: string;
|
|
369
|
-
badge?: string | undefined;
|
|
370
|
-
}>;
|
|
371
|
-
game: import("zod").ZodObject<{
|
|
372
|
-
id: import("zod").ZodString;
|
|
373
|
-
round: import("zod").ZodNumber;
|
|
374
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
375
|
-
homeTeam: import("zod").ZodObject<{
|
|
376
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
377
|
-
apiTeamId: import("zod").ZodNumber;
|
|
378
|
-
name: import("zod").ZodString;
|
|
379
|
-
score: import("zod").ZodNumber;
|
|
380
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
381
|
-
image: import("zod").ZodString;
|
|
382
|
-
seed: import("zod").ZodNumber;
|
|
383
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
384
|
-
name: string;
|
|
385
|
-
image: string;
|
|
386
|
-
apiTeamId: number;
|
|
387
|
-
seed: number;
|
|
388
|
-
score: number;
|
|
389
|
-
id?: string | undefined;
|
|
390
|
-
isWinner?: boolean | undefined;
|
|
391
|
-
}, {
|
|
392
|
-
name: string;
|
|
393
|
-
image: string;
|
|
394
|
-
apiTeamId: number;
|
|
395
|
-
seed: number;
|
|
396
|
-
score: number;
|
|
397
|
-
id?: string | undefined;
|
|
398
|
-
isWinner?: boolean | undefined;
|
|
399
|
-
}>;
|
|
400
|
-
awayTeam: import("zod").ZodObject<{
|
|
401
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
402
|
-
apiTeamId: import("zod").ZodNumber;
|
|
403
|
-
name: import("zod").ZodString;
|
|
404
|
-
score: import("zod").ZodNumber;
|
|
405
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
406
|
-
image: import("zod").ZodString;
|
|
407
|
-
seed: import("zod").ZodNumber;
|
|
408
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
409
|
-
name: string;
|
|
410
|
-
image: string;
|
|
411
|
-
apiTeamId: number;
|
|
412
|
-
seed: number;
|
|
413
|
-
score: number;
|
|
414
|
-
id?: string | undefined;
|
|
415
|
-
isWinner?: boolean | undefined;
|
|
416
|
-
}, {
|
|
417
|
-
name: string;
|
|
418
|
-
image: string;
|
|
419
|
-
apiTeamId: number;
|
|
420
|
-
seed: number;
|
|
421
|
-
score: number;
|
|
422
|
-
id?: string | undefined;
|
|
423
|
-
isWinner?: boolean | undefined;
|
|
424
|
-
}>;
|
|
425
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
426
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
427
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
428
|
-
gameNumber: import("zod").ZodNumber;
|
|
429
|
-
maxLength: import("zod").ZodNumber;
|
|
430
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
431
|
-
maxLength: number;
|
|
432
|
-
homeTeamWins: number;
|
|
433
|
-
awayTeamWins: number;
|
|
434
|
-
gameNumber: number;
|
|
435
|
-
}, {
|
|
436
|
-
maxLength: number;
|
|
437
|
-
homeTeamWins: number;
|
|
438
|
-
awayTeamWins: number;
|
|
439
|
-
gameNumber: number;
|
|
440
|
-
}>>;
|
|
441
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
442
|
-
id: string;
|
|
443
|
-
round: number;
|
|
444
|
-
league: "nba" | "ncaa";
|
|
445
|
-
homeTeam: {
|
|
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
|
-
awayTeam: {
|
|
455
|
-
name: string;
|
|
456
|
-
image: string;
|
|
457
|
-
apiTeamId: number;
|
|
458
|
-
seed: number;
|
|
459
|
-
score: number;
|
|
460
|
-
id?: string | undefined;
|
|
461
|
-
isWinner?: boolean | undefined;
|
|
462
|
-
};
|
|
463
|
-
seriesInfo?: {
|
|
464
|
-
maxLength: number;
|
|
465
|
-
homeTeamWins: number;
|
|
466
|
-
awayTeamWins: number;
|
|
467
|
-
gameNumber: number;
|
|
468
|
-
} | undefined;
|
|
469
|
-
}, {
|
|
470
|
-
id: string;
|
|
471
|
-
round: number;
|
|
472
|
-
league: "nba" | "ncaa";
|
|
473
|
-
homeTeam: {
|
|
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
|
-
awayTeam: {
|
|
483
|
-
name: string;
|
|
484
|
-
image: string;
|
|
485
|
-
apiTeamId: number;
|
|
486
|
-
seed: number;
|
|
487
|
-
score: number;
|
|
488
|
-
id?: string | undefined;
|
|
489
|
-
isWinner?: boolean | undefined;
|
|
490
|
-
};
|
|
491
|
-
seriesInfo?: {
|
|
492
|
-
maxLength: number;
|
|
493
|
-
homeTeamWins: number;
|
|
494
|
-
awayTeamWins: number;
|
|
495
|
-
gameNumber: number;
|
|
496
|
-
} | undefined;
|
|
497
|
-
}>;
|
|
498
350
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
499
|
-
}, "id" | "user" | "createdAt">, {
|
|
500
351
|
game: import("zod").ZodObject<Omit<{
|
|
501
352
|
id: import("zod").ZodString;
|
|
502
353
|
round: import("zod").ZodNumber;
|
|
@@ -587,7 +438,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
587
438
|
} | undefined;
|
|
588
439
|
}>;
|
|
589
440
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
590
|
-
}
|
|
441
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
591
442
|
rating: number;
|
|
592
443
|
game: {
|
|
593
444
|
id: string;
|
|
@@ -599,9 +450,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
599
450
|
gameNumber: number;
|
|
600
451
|
} | undefined;
|
|
601
452
|
};
|
|
602
|
-
id?: string | undefined;
|
|
603
453
|
comment?: string | undefined;
|
|
604
454
|
userLikes?: number | undefined;
|
|
455
|
+
id?: string | undefined;
|
|
605
456
|
}, {
|
|
606
457
|
rating: number;
|
|
607
458
|
game: {
|
|
@@ -614,7 +465,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
614
465
|
gameNumber: number;
|
|
615
466
|
} | undefined;
|
|
616
467
|
};
|
|
617
|
-
id?: string | undefined;
|
|
618
468
|
comment?: string | undefined;
|
|
619
469
|
userLikes?: number | undefined;
|
|
470
|
+
id?: string | undefined;
|
|
620
471
|
}>;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
106
106
|
youtube?: string | undefined;
|
|
107
107
|
tiktok?: string | undefined;
|
|
108
108
|
}>>;
|
|
109
|
-
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">]>>;
|
|
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
110
|
}, "strip", import("zod").ZodTypeAny, {
|
|
111
111
|
id: string;
|
|
112
112
|
email: string;
|
|
@@ -120,10 +120,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
120
120
|
}>;
|
|
121
121
|
askedForPushNotifications: boolean;
|
|
122
122
|
acceptedPushNotifications: boolean;
|
|
123
|
-
platform?: "ios" | "android" | undefined;
|
|
124
|
-
totalRatedGames?: number | undefined;
|
|
125
|
-
commentsLeft?: number | undefined;
|
|
126
|
-
avgRating?: number | undefined;
|
|
127
123
|
leagues?: {
|
|
128
124
|
nba: {
|
|
129
125
|
totalRatedGames: number;
|
|
@@ -136,6 +132,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
136
132
|
avgRating: number;
|
|
137
133
|
};
|
|
138
134
|
} | undefined;
|
|
135
|
+
totalRatedGames?: number | undefined;
|
|
136
|
+
commentsLeft?: number | undefined;
|
|
137
|
+
avgRating?: number | undefined;
|
|
139
138
|
isRegistrationComplete?: boolean | undefined;
|
|
140
139
|
badge?: string | undefined;
|
|
141
140
|
registrationStep?: number | undefined;
|
|
@@ -149,6 +148,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
149
148
|
youtube?: string | undefined;
|
|
150
149
|
tiktok?: string | undefined;
|
|
151
150
|
} | undefined;
|
|
151
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
152
152
|
}, {
|
|
153
153
|
id: string;
|
|
154
154
|
email: string;
|
|
@@ -162,10 +162,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
162
162
|
}>;
|
|
163
163
|
askedForPushNotifications: boolean;
|
|
164
164
|
acceptedPushNotifications: boolean;
|
|
165
|
-
platform?: "ios" | "android" | undefined;
|
|
166
|
-
totalRatedGames?: number | undefined;
|
|
167
|
-
commentsLeft?: number | undefined;
|
|
168
|
-
avgRating?: number | undefined;
|
|
169
165
|
leagues?: {
|
|
170
166
|
nba: {
|
|
171
167
|
totalRatedGames: number;
|
|
@@ -178,6 +174,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
178
174
|
avgRating: number;
|
|
179
175
|
};
|
|
180
176
|
} | undefined;
|
|
177
|
+
totalRatedGames?: number | undefined;
|
|
178
|
+
commentsLeft?: number | undefined;
|
|
179
|
+
avgRating?: number | undefined;
|
|
181
180
|
isRegistrationComplete?: boolean | undefined;
|
|
182
181
|
badge?: string | undefined;
|
|
183
182
|
registrationStep?: number | undefined;
|
|
@@ -191,6 +190,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
191
190
|
youtube?: string | undefined;
|
|
192
191
|
tiktok?: string | undefined;
|
|
193
192
|
} | 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;
|
|
@@ -287,12 +287,12 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
287
287
|
youtube?: string | undefined;
|
|
288
288
|
tiktok?: string | undefined;
|
|
289
289
|
}>>;
|
|
290
|
-
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">]>>;
|
|
290
|
+
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">]>>;
|
|
291
291
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
292
292
|
email: string;
|
|
293
293
|
username: string;
|
|
294
294
|
avatarUrl: string;
|
|
295
|
-
platform?: "ios" | "android" | undefined;
|
|
295
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
296
296
|
commentsLeft?: number | undefined;
|
|
297
297
|
leagues?: {
|
|
298
298
|
nba: {
|
|
@@ -323,7 +323,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
323
323
|
email: string;
|
|
324
324
|
username: string;
|
|
325
325
|
avatarUrl: string;
|
|
326
|
-
platform?: "ios" | "android" | undefined;
|
|
326
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
327
327
|
commentsLeft?: number | undefined;
|
|
328
328
|
leagues?: {
|
|
329
329
|
nba: {
|
package/dist/schemas/user.js
CHANGED
|
@@ -40,7 +40,13 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
40
40
|
youtube: (0, zod_1.string)().optional(),
|
|
41
41
|
tiktok: (0, zod_1.string)().optional(),
|
|
42
42
|
}).optional(),
|
|
43
|
-
platform: (0, zod_1.union)([
|
|
43
|
+
platform: (0, zod_1.union)([
|
|
44
|
+
(0, zod_1.literal)("ios"),
|
|
45
|
+
(0, zod_1.literal)("android"),
|
|
46
|
+
(0, zod_1.literal)("macos"),
|
|
47
|
+
(0, zod_1.literal)("windows"),
|
|
48
|
+
(0, zod_1.literal)("web"),
|
|
49
|
+
]).optional(),
|
|
44
50
|
});
|
|
45
51
|
exports.createUserSchema = exports.userSchema.omit({
|
|
46
52
|
id: true,
|