rategame-shared 1.0.81 → 1.0.82
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 +1 -0
- package/dist/index.js +1 -0
- package/dist/schemas/game.d.ts +45 -0
- package/dist/schemas/player.d.ts +9 -0
- package/dist/schemas/player.js +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ 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/player';
|
|
5
6
|
export * from "./models/user";
|
|
6
7
|
export * from "./models/rating";
|
|
7
8
|
export * from "./models/game";
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ __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/player"), exports);
|
|
21
22
|
__exportStar(require("./models/user"), exports);
|
|
22
23
|
__exportStar(require("./models/rating"), exports);
|
|
23
24
|
__exportStar(require("./models/game"), exports);
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -422,6 +422,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
422
422
|
wins: z.ZodNumber;
|
|
423
423
|
losses: z.ZodNumber;
|
|
424
424
|
saves: z.ZodNumber;
|
|
425
|
+
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
425
428
|
}, "strip", z.ZodTypeAny, {
|
|
426
429
|
name: string;
|
|
427
430
|
games: number;
|
|
@@ -429,6 +432,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
429
432
|
losses: number;
|
|
430
433
|
saves: number;
|
|
431
434
|
id?: string | undefined;
|
|
435
|
+
isWinningPitcher?: boolean | undefined;
|
|
436
|
+
isLosingPitcher?: boolean | undefined;
|
|
437
|
+
isSavingPitcher?: boolean | undefined;
|
|
432
438
|
}, {
|
|
433
439
|
name: string;
|
|
434
440
|
games: number;
|
|
@@ -436,6 +442,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
436
442
|
losses: number;
|
|
437
443
|
saves: number;
|
|
438
444
|
id?: string | undefined;
|
|
445
|
+
isWinningPitcher?: boolean | undefined;
|
|
446
|
+
isLosingPitcher?: boolean | undefined;
|
|
447
|
+
isSavingPitcher?: boolean | undefined;
|
|
439
448
|
}>>;
|
|
440
449
|
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
441
450
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -444,6 +453,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
444
453
|
wins: z.ZodNumber;
|
|
445
454
|
losses: z.ZodNumber;
|
|
446
455
|
saves: z.ZodNumber;
|
|
456
|
+
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
457
|
+
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
458
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
447
459
|
}, "strip", z.ZodTypeAny, {
|
|
448
460
|
name: string;
|
|
449
461
|
games: number;
|
|
@@ -451,6 +463,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
451
463
|
losses: number;
|
|
452
464
|
saves: number;
|
|
453
465
|
id?: string | undefined;
|
|
466
|
+
isWinningPitcher?: boolean | undefined;
|
|
467
|
+
isLosingPitcher?: boolean | undefined;
|
|
468
|
+
isSavingPitcher?: boolean | undefined;
|
|
454
469
|
}, {
|
|
455
470
|
name: string;
|
|
456
471
|
games: number;
|
|
@@ -458,6 +473,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
458
473
|
losses: number;
|
|
459
474
|
saves: number;
|
|
460
475
|
id?: string | undefined;
|
|
476
|
+
isWinningPitcher?: boolean | undefined;
|
|
477
|
+
isLosingPitcher?: boolean | undefined;
|
|
478
|
+
isSavingPitcher?: boolean | undefined;
|
|
461
479
|
}>>;
|
|
462
480
|
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
463
481
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -466,6 +484,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
466
484
|
wins: z.ZodNumber;
|
|
467
485
|
losses: z.ZodNumber;
|
|
468
486
|
saves: z.ZodNumber;
|
|
487
|
+
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
469
490
|
}, "strip", z.ZodTypeAny, {
|
|
470
491
|
name: string;
|
|
471
492
|
games: number;
|
|
@@ -473,6 +494,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
473
494
|
losses: number;
|
|
474
495
|
saves: number;
|
|
475
496
|
id?: string | undefined;
|
|
497
|
+
isWinningPitcher?: boolean | undefined;
|
|
498
|
+
isLosingPitcher?: boolean | undefined;
|
|
499
|
+
isSavingPitcher?: boolean | undefined;
|
|
476
500
|
}, {
|
|
477
501
|
name: string;
|
|
478
502
|
games: number;
|
|
@@ -480,6 +504,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
480
504
|
losses: number;
|
|
481
505
|
saves: number;
|
|
482
506
|
id?: string | undefined;
|
|
507
|
+
isWinningPitcher?: boolean | undefined;
|
|
508
|
+
isLosingPitcher?: boolean | undefined;
|
|
509
|
+
isSavingPitcher?: boolean | undefined;
|
|
483
510
|
}>>;
|
|
484
511
|
}, "strip", z.ZodTypeAny, {
|
|
485
512
|
status: "live" | "scheduled" | "final";
|
|
@@ -538,6 +565,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
538
565
|
losses: number;
|
|
539
566
|
saves: number;
|
|
540
567
|
id?: string | undefined;
|
|
568
|
+
isWinningPitcher?: boolean | undefined;
|
|
569
|
+
isLosingPitcher?: boolean | undefined;
|
|
570
|
+
isSavingPitcher?: boolean | undefined;
|
|
541
571
|
} | undefined;
|
|
542
572
|
winningPitcher?: {
|
|
543
573
|
name: string;
|
|
@@ -546,6 +576,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
546
576
|
losses: number;
|
|
547
577
|
saves: number;
|
|
548
578
|
id?: string | undefined;
|
|
579
|
+
isWinningPitcher?: boolean | undefined;
|
|
580
|
+
isLosingPitcher?: boolean | undefined;
|
|
581
|
+
isSavingPitcher?: boolean | undefined;
|
|
549
582
|
} | undefined;
|
|
550
583
|
savingPitcher?: {
|
|
551
584
|
name: string;
|
|
@@ -554,6 +587,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
554
587
|
losses: number;
|
|
555
588
|
saves: number;
|
|
556
589
|
id?: string | undefined;
|
|
590
|
+
isWinningPitcher?: boolean | undefined;
|
|
591
|
+
isLosingPitcher?: boolean | undefined;
|
|
592
|
+
isSavingPitcher?: boolean | undefined;
|
|
557
593
|
} | undefined;
|
|
558
594
|
}, {
|
|
559
595
|
status: "live" | "scheduled" | "final";
|
|
@@ -612,6 +648,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
612
648
|
losses: number;
|
|
613
649
|
saves: number;
|
|
614
650
|
id?: string | undefined;
|
|
651
|
+
isWinningPitcher?: boolean | undefined;
|
|
652
|
+
isLosingPitcher?: boolean | undefined;
|
|
653
|
+
isSavingPitcher?: boolean | undefined;
|
|
615
654
|
} | undefined;
|
|
616
655
|
winningPitcher?: {
|
|
617
656
|
name: string;
|
|
@@ -620,6 +659,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
620
659
|
losses: number;
|
|
621
660
|
saves: number;
|
|
622
661
|
id?: string | undefined;
|
|
662
|
+
isWinningPitcher?: boolean | undefined;
|
|
663
|
+
isLosingPitcher?: boolean | undefined;
|
|
664
|
+
isSavingPitcher?: boolean | undefined;
|
|
623
665
|
} | undefined;
|
|
624
666
|
savingPitcher?: {
|
|
625
667
|
name: string;
|
|
@@ -628,6 +670,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
628
670
|
losses: number;
|
|
629
671
|
saves: number;
|
|
630
672
|
id?: string | undefined;
|
|
673
|
+
isWinningPitcher?: boolean | undefined;
|
|
674
|
+
isLosingPitcher?: boolean | undefined;
|
|
675
|
+
isSavingPitcher?: boolean | undefined;
|
|
631
676
|
} | undefined;
|
|
632
677
|
}>;
|
|
633
678
|
export declare const searchGameSchema: z.ZodObject<{
|
package/dist/schemas/player.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
6
6
|
wins: z.ZodNumber;
|
|
7
7
|
losses: z.ZodNumber;
|
|
8
8
|
saves: z.ZodNumber;
|
|
9
|
+
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
9
12
|
}, "strip", z.ZodTypeAny, {
|
|
10
13
|
name: string;
|
|
11
14
|
games: number;
|
|
@@ -13,6 +16,9 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
13
16
|
losses: number;
|
|
14
17
|
saves: number;
|
|
15
18
|
id?: string | undefined;
|
|
19
|
+
isWinningPitcher?: boolean | undefined;
|
|
20
|
+
isLosingPitcher?: boolean | undefined;
|
|
21
|
+
isSavingPitcher?: boolean | undefined;
|
|
16
22
|
}, {
|
|
17
23
|
name: string;
|
|
18
24
|
games: number;
|
|
@@ -20,4 +26,7 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
20
26
|
losses: number;
|
|
21
27
|
saves: number;
|
|
22
28
|
id?: string | undefined;
|
|
29
|
+
isWinningPitcher?: boolean | undefined;
|
|
30
|
+
isLosingPitcher?: boolean | undefined;
|
|
31
|
+
isSavingPitcher?: boolean | undefined;
|
|
23
32
|
}>;
|
package/dist/schemas/player.js
CHANGED
|
@@ -9,4 +9,7 @@ exports.mlbPlayerSchema = zod_1.z.object({
|
|
|
9
9
|
wins: zod_1.z.number(),
|
|
10
10
|
losses: zod_1.z.number(),
|
|
11
11
|
saves: zod_1.z.number(),
|
|
12
|
+
isWinningPitcher: zod_1.z.boolean().optional(),
|
|
13
|
+
isLosingPitcher: zod_1.z.boolean().optional(),
|
|
14
|
+
isSavingPitcher: zod_1.z.boolean().optional(),
|
|
12
15
|
});
|