rategame-shared 1.1.181 → 1.1.182

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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { basketballGameSchema, cfbGameSchema, creatorPickSchema, footballGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, groupedRatingAggregateSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
2
+ import { basketballGameSchema, cfbGameSchema, creatorPickSchema, footballGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, groupedRatingAggregateSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, overviewSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
3
3
  export type Game = z.infer<typeof gameSchema>;
4
4
  export type BasketballGame = z.infer<typeof basketballGameSchema>;
5
5
  export type MLBGame = z.infer<typeof mlbGameSchema>;
@@ -15,3 +15,4 @@ export type CreatorPick = z.infer<typeof creatorPickSchema>;
15
15
  export type WeightedRatingAggregate = z.infer<typeof weightedRatingAggregateSchema>;
16
16
  export type WeightedRatingAggregateOptions = z.infer<typeof weightedRatingAggregateOptionsSchema>;
17
17
  export type GroupedRatingsAggregate = z.infer<typeof groupedRatingAggregateSchema>;
18
+ export type OverviewStats = z.infer<typeof overviewSchema>;
@@ -48719,3 +48719,16 @@ export declare const creatorPickSchema: z.ZodObject<{
48719
48719
  createdAt?: number | undefined;
48720
48720
  comment?: string | undefined;
48721
48721
  }>;
48722
+ export declare const overviewSchema: z.ZodObject<{
48723
+ games: z.ZodNumber;
48724
+ ratings: z.ZodNumber;
48725
+ avgRating: z.ZodString;
48726
+ }, "strip", z.ZodTypeAny, {
48727
+ avgRating: string;
48728
+ ratings: number;
48729
+ games: number;
48730
+ }, {
48731
+ avgRating: string;
48732
+ ratings: number;
48733
+ games: number;
48734
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.creatorPickSchema = exports.searchGameSchema = exports.unionGameSchema = exports.nhlGameSchema = exports.cfbGameSchema = exports.nflGameSchema = exports.footballGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.basketballGameSchema = exports.commonGameSchema = exports.gameSchema = exports.seriesInfoSchema = exports.groupedRatingAggregateSchema = exports.weightedRatingAggregateSchema = exports.weightedRatingAggregateOptionsSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
3
+ exports.overviewSchema = exports.creatorPickSchema = exports.searchGameSchema = exports.unionGameSchema = exports.nhlGameSchema = exports.cfbGameSchema = exports.nflGameSchema = exports.footballGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.basketballGameSchema = exports.commonGameSchema = exports.gameSchema = exports.seriesInfoSchema = exports.groupedRatingAggregateSchema = exports.weightedRatingAggregateSchema = exports.weightedRatingAggregateOptionsSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const sharedTypes_1 = require("./sharedTypes");
6
6
  const user_1 = require("./user");
@@ -341,3 +341,8 @@ exports.creatorPickSchema = zod_1.z.object({
341
341
  comment: zod_1.z.string().optional(),
342
342
  createdAt: zod_1.z.number().optional(),
343
343
  });
344
+ exports.overviewSchema = zod_1.z.object({
345
+ games: zod_1.z.number(),
346
+ ratings: zod_1.z.number(),
347
+ avgRating: zod_1.z.string(),
348
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.181",
3
+ "version": "1.1.182",
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",