rategame-shared 1.1.163 → 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>;
@@ -3232,3 +3232,25 @@ export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3232
3232
  earliestDate?: number | undefined;
3233
3233
  latestDate?: number | undefined;
3234
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;
3254
+ earliestDate?: number | undefined;
3255
+ latestDate?: number | undefined;
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");
@@ -145,3 +145,11 @@ exports.seasonGroupStatsSchema = (0, zod_1.object)({
145
145
  earliestDate: (0, zod_1.number)().optional(),
146
146
  latestDate: (0, zod_1.number)().optional(),
147
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)(),
153
+ earliestDate: (0, zod_1.number)().optional(),
154
+ latestDate: (0, zod_1.number)().optional(),
155
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.163",
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",