rategame-shared 1.1.180 → 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.
- package/dist/helpers/index.js +1 -1
- package/dist/models/game.d.ts +2 -1
- package/dist/schemas/game.d.ts +13 -0
- package/dist/schemas/game.js +6 -1
- package/package.json +1 -1
package/dist/helpers/index.js
CHANGED
|
@@ -87,7 +87,7 @@ exports.achievementsMap = {
|
|
|
87
87
|
"fan-tastic": {
|
|
88
88
|
id: "fan-tastic",
|
|
89
89
|
name: "Fan-Tastic",
|
|
90
|
-
description: "Select your favorite teams in the app(at least 3).",
|
|
90
|
+
description: "Select your favorite teams in the app\n(at least 3).",
|
|
91
91
|
type: "global",
|
|
92
92
|
},
|
|
93
93
|
marathon_fan: {
|
package/dist/models/game.d.ts
CHANGED
|
@@ -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>;
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -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
|
+
}>;
|
package/dist/schemas/game.js
CHANGED
|
@@ -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
|
+
});
|