rategame-shared 1.1.162 → 1.1.164

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.
@@ -1,11 +1,12 @@
1
1
  import { z } from "zod";
2
- import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
2
+ import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingLikeSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
3
3
  import { seasonGroupingSchema } from "../schemas/sharedTypes";
4
4
  export type Rating = z.infer<typeof ratingSchema>;
5
5
  export type ProfileRatingStats = z.infer<typeof profileRatingStatsSchema>;
6
6
  export type SeasonStats = z.infer<typeof seasonStatsSchema>;
7
7
  export type SeasonGrouping = z.infer<typeof seasonGroupingSchema>;
8
8
  export type SeasonGroupStats = z.infer<typeof seasonGroupStatsSchema>;
9
+ export type RoundStats = z.infer<typeof roundStatsSchema>;
9
10
  export type RatingLike = z.infer<typeof ratingLikeSchema>;
10
11
  export type CreateRating = z.infer<typeof createRatingSchema>;
11
12
  export type SearchRating = z.infer<typeof searchRatingSchema>;
@@ -3212,6 +3212,7 @@ export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3212
3212
  ratings: import("zod").ZodNumber;
3213
3213
  average: import("zod").ZodString;
3214
3214
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"combined">, import("zod").ZodLiteral<"regularSeason">, import("zod").ZodLiteral<"playoffs">]>;
3215
+ totalGames: import("zod").ZodOptional<import("zod").ZodNumber>;
3215
3216
  earliestDate: import("zod").ZodOptional<import("zod").ZodNumber>;
3216
3217
  latestDate: import("zod").ZodOptional<import("zod").ZodNumber>;
3217
3218
  }, "strip", import("zod").ZodTypeAny, {
@@ -3219,6 +3220,7 @@ export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3219
3220
  ratings: number;
3220
3221
  season: string;
3221
3222
  average: string;
3223
+ totalGames?: number | undefined;
3222
3224
  earliestDate?: number | undefined;
3223
3225
  latestDate?: number | undefined;
3224
3226
  }, {
@@ -3226,6 +3228,29 @@ export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3226
3228
  ratings: number;
3227
3229
  season: string;
3228
3230
  average: string;
3231
+ totalGames?: number | undefined;
3232
+ earliestDate?: number | undefined;
3233
+ latestDate?: number | undefined;
3234
+ }>;
3235
+ export declare const roundStatsSchema: import("zod").ZodObject<{
3236
+ round: import("zod").ZodString;
3237
+ ratings: import("zod").ZodNumber;
3238
+ average: import("zod").ZodString;
3239
+ totalGames: import("zod").ZodNumber;
3240
+ earliestDate: import("zod").ZodOptional<import("zod").ZodNumber>;
3241
+ latestDate: import("zod").ZodOptional<import("zod").ZodNumber>;
3242
+ }, "strip", import("zod").ZodTypeAny, {
3243
+ round: string;
3244
+ ratings: number;
3245
+ average: string;
3246
+ totalGames: number;
3247
+ earliestDate?: number | undefined;
3248
+ latestDate?: number | undefined;
3249
+ }, {
3250
+ round: string;
3251
+ ratings: number;
3252
+ average: string;
3253
+ totalGames: number;
3229
3254
  earliestDate?: number | undefined;
3230
3255
  latestDate?: number | undefined;
3231
3256
  }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.seasonGroupStatsSchema = exports.seasonStatsSchema = exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
3
+ exports.roundStatsSchema = exports.seasonGroupStatsSchema = 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");
@@ -141,6 +141,15 @@ exports.seasonGroupStatsSchema = (0, zod_1.object)({
141
141
  ratings: (0, zod_1.number)(),
142
142
  average: (0, zod_1.string)(),
143
143
  type: sharedTypes_1.seasonGroupingSchema,
144
+ totalGames: (0, zod_1.number)().optional(),
145
+ earliestDate: (0, zod_1.number)().optional(),
146
+ latestDate: (0, zod_1.number)().optional(),
147
+ });
148
+ exports.roundStatsSchema = (0, zod_1.object)({
149
+ round: (0, zod_1.string)(),
150
+ ratings: (0, zod_1.number)(),
151
+ average: (0, zod_1.string)(),
152
+ totalGames: (0, zod_1.number)(),
144
153
  earliestDate: (0, zod_1.number)().optional(),
145
154
  latestDate: (0, zod_1.number)().optional(),
146
155
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.162",
3
+ "version": "1.1.164",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",