rategame-shared 1.1.141 → 1.1.142
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/models/rating.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, seasonStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
3
3
|
export type Rating = z.infer<typeof ratingSchema>;
|
|
4
4
|
export type ProfileRatingStats = z.infer<typeof profileRatingStatsSchema>;
|
|
5
|
+
export type SeasonStats = z.infer<typeof seasonStatsSchema>;
|
|
5
6
|
export type RatingLike = z.infer<typeof ratingLikeSchema>;
|
|
6
7
|
export type CreateRating = z.infer<typeof createRatingSchema>;
|
|
7
8
|
export type SearchRating = z.infer<typeof searchRatingSchema>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const mlbPlayerSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
wins: z.ZodNumber;
|
|
6
|
+
losses: z.ZodNumber;
|
|
7
|
+
saves: z.ZodNumber;
|
|
8
|
+
games: z.ZodNumber;
|
|
9
|
+
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
name: string;
|
|
14
|
+
wins: number;
|
|
15
|
+
losses: number;
|
|
16
|
+
saves: number;
|
|
17
|
+
games: number;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
isWinningPitcher?: boolean | undefined;
|
|
20
|
+
isLosingPitcher?: boolean | undefined;
|
|
21
|
+
isSavingPitcher?: boolean | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
name: string;
|
|
24
|
+
wins: number;
|
|
25
|
+
losses: number;
|
|
26
|
+
saves: number;
|
|
27
|
+
games: number;
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
isWinningPitcher?: boolean | undefined;
|
|
30
|
+
isLosingPitcher?: boolean | undefined;
|
|
31
|
+
isSavingPitcher?: boolean | undefined;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
wins: zod_1.z.number(),
|
|
9
|
+
losses: zod_1.z.number(),
|
|
10
|
+
saves: zod_1.z.number(),
|
|
11
|
+
games: 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(),
|
|
15
|
+
});
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -2873,3 +2873,16 @@ export declare const profileRatingStatsSchema: import("zod").ZodObject<{
|
|
|
2873
2873
|
avgRating: string;
|
|
2874
2874
|
ratedGames: string;
|
|
2875
2875
|
}>;
|
|
2876
|
+
export declare const seasonStatsSchema: import("zod").ZodObject<{
|
|
2877
|
+
season: import("zod").ZodString;
|
|
2878
|
+
ratings: import("zod").ZodNumber;
|
|
2879
|
+
average: import("zod").ZodString;
|
|
2880
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
2881
|
+
ratings: number;
|
|
2882
|
+
season: string;
|
|
2883
|
+
average: string;
|
|
2884
|
+
}, {
|
|
2885
|
+
ratings: number;
|
|
2886
|
+
season: string;
|
|
2887
|
+
average: string;
|
|
2888
|
+
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
|
|
3
|
+
exports.seasonStatsSchema = exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const game_1 = require("./game");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -130,3 +130,8 @@ exports.profileRatingStatsSchema = (0, zod_1.object)({
|
|
|
130
130
|
avgRating: (0, zod_1.string)(),
|
|
131
131
|
ratedGames: (0, zod_1.string)(),
|
|
132
132
|
});
|
|
133
|
+
exports.seasonStatsSchema = (0, zod_1.object)({
|
|
134
|
+
season: (0, zod_1.string)(),
|
|
135
|
+
ratings: (0, zod_1.number)(),
|
|
136
|
+
average: (0, zod_1.string)(),
|
|
137
|
+
});
|