rategame-shared 1.1.150 → 1.1.152
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.d.ts +2 -1
- package/dist/helpers/index.js +15 -15
- package/dist/schemas/game.d.ts +40 -40
- package/dist/schemas/rating.d.ts +6 -6
- package/dist/schemas/team.d.ts +14 -14
- package/dist/schemas/user.d.ts +15 -14
- package/dist/schemas/user.js +16 -2
- package/package.json +1 -1
- package/dist/models/player.d.ts +0 -3
- package/dist/models/player.js +0 -2
- package/dist/schemas/player.d.ts +0 -32
- package/dist/schemas/player.js +0 -15
package/dist/helpers/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { Timestamp } from "@firebase/firestore";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { timeFilterSchema } from "../schemas/sharedTypes";
|
|
4
4
|
import { Achievement } from "../models/user";
|
|
5
|
+
import { achievementId } from "../schemas/user";
|
|
5
6
|
export declare const firestoreTimestampSchema: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
6
7
|
type LeagueSlug = "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl";
|
|
7
8
|
export declare const urlPrefixMap: Record<LeagueSlug, string>;
|
|
8
9
|
export type TimeFilter = z.infer<typeof timeFilterSchema>;
|
|
9
|
-
export declare const
|
|
10
|
+
export declare const achievementsMap: Record<typeof achievementId._type, Achievement>;
|
|
10
11
|
export {};
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.achievementsMap = exports.urlPrefixMap = exports.firestoreTimestampSchema = void 0;
|
|
4
4
|
const firestore_1 = require("@firebase/firestore");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.firestoreTimestampSchema = zod_1.z.instanceof(firestore_1.Timestamp);
|
|
@@ -15,8 +15,8 @@ exports.urlPrefixMap = {
|
|
|
15
15
|
cbb: "leagues/cbb/",
|
|
16
16
|
cfb: "leagues/cfb/",
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
{
|
|
18
|
+
exports.achievementsMap = {
|
|
19
|
+
speed_rater: {
|
|
20
20
|
id: "speed_rater",
|
|
21
21
|
name: "Speed Rater",
|
|
22
22
|
description: "Rate a game within 5 minutes of it ending.",
|
|
@@ -26,7 +26,7 @@ exports.ACHIEVEMENTS = [
|
|
|
26
26
|
gold: { threshold: 50 },
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
{
|
|
29
|
+
popular_opinion: {
|
|
30
30
|
id: "popular_opinion",
|
|
31
31
|
name: "Popular Opinion",
|
|
32
32
|
description: "Get likes on a single rating.",
|
|
@@ -36,7 +36,7 @@ exports.ACHIEVEMENTS = [
|
|
|
36
36
|
gold: { threshold: 50 },
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
|
-
{
|
|
39
|
+
home_team_hero: {
|
|
40
40
|
id: "home_team_hero",
|
|
41
41
|
name: "Home Team Hero",
|
|
42
42
|
description: "Rate games where your favorite team wins.",
|
|
@@ -46,7 +46,7 @@ exports.ACHIEVEMENTS = [
|
|
|
46
46
|
gold: { threshold: 50 },
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
|
-
{
|
|
49
|
+
loyal_but_hurt: {
|
|
50
50
|
id: "loyal_but_hurt",
|
|
51
51
|
name: "Loyal but Hurt",
|
|
52
52
|
description: "Rate games where your favorite team loses.",
|
|
@@ -56,7 +56,7 @@ exports.ACHIEVEMENTS = [
|
|
|
56
56
|
gold: { threshold: 50 },
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
|
-
{
|
|
59
|
+
multi_sport_fan: {
|
|
60
60
|
id: "multi_sport_fan",
|
|
61
61
|
name: "Multi-Sport Fan",
|
|
62
62
|
description: "Rate at least one game from all leagues.",
|
|
@@ -66,17 +66,17 @@ exports.ACHIEVEMENTS = [
|
|
|
66
66
|
gold: { threshold: 8 },
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
|
-
{
|
|
69
|
+
superfan: {
|
|
70
70
|
id: "superfan",
|
|
71
71
|
name: "Superfan",
|
|
72
72
|
description: "Rate every game played by your favorite team in a season.",
|
|
73
73
|
},
|
|
74
|
-
{
|
|
74
|
+
personalized_picks: {
|
|
75
75
|
id: "personalized_picks",
|
|
76
76
|
name: "Personalized Picks",
|
|
77
77
|
description: "Select your favorite teams in the app.",
|
|
78
78
|
},
|
|
79
|
-
{
|
|
79
|
+
marathon_viewer: {
|
|
80
80
|
id: "marathon_viewer",
|
|
81
81
|
name: "Marathon Viewer",
|
|
82
82
|
description: "Rate games in a single day.",
|
|
@@ -86,7 +86,7 @@ exports.ACHIEVEMENTS = [
|
|
|
86
86
|
gold: { threshold: 20 },
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
|
-
{
|
|
89
|
+
new_years_resolution: {
|
|
90
90
|
id: "new_years_resolution",
|
|
91
91
|
name: "New Year’s Resolution",
|
|
92
92
|
description: "Rate games on January 1st.",
|
|
@@ -96,12 +96,12 @@ exports.ACHIEVEMENTS = [
|
|
|
96
96
|
gold: { threshold: 10 },
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
|
-
{
|
|
99
|
+
finals_fever: {
|
|
100
100
|
id: "finals_fever",
|
|
101
101
|
name: "Finals Fever",
|
|
102
102
|
description: "Rate every game of a championship series.",
|
|
103
103
|
},
|
|
104
|
-
{
|
|
104
|
+
summer_sports_fan: {
|
|
105
105
|
id: "summer_sports_fan",
|
|
106
106
|
name: "Summer Sports Fan",
|
|
107
107
|
description: "Rate games during the off-season of most leagues.",
|
|
@@ -111,9 +111,9 @@ exports.ACHIEVEMENTS = [
|
|
|
111
111
|
gold: { threshold: 100 },
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
|
-
{
|
|
114
|
+
live_every_moment: {
|
|
115
115
|
id: "live_every_moment",
|
|
116
116
|
name: "Live Every Moment",
|
|
117
117
|
description: "Rate at least 50% of all games in a single season for one league.",
|
|
118
118
|
},
|
|
119
|
-
|
|
119
|
+
};
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -3288,7 +3288,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
3288
3288
|
count: number;
|
|
3289
3289
|
}[] | undefined;
|
|
3290
3290
|
}>>;
|
|
3291
|
-
achievements: z.ZodOptional<z.
|
|
3291
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
3292
3292
|
id: z.ZodString;
|
|
3293
3293
|
name: z.ZodString;
|
|
3294
3294
|
description: z.ZodString;
|
|
@@ -3392,7 +3392,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
3392
3392
|
};
|
|
3393
3393
|
} | undefined;
|
|
3394
3394
|
currentTier?: number | undefined;
|
|
3395
|
-
}
|
|
3395
|
+
}>>>;
|
|
3396
3396
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
3397
3397
|
id: string;
|
|
3398
3398
|
email: string;
|
|
@@ -5459,7 +5459,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5459
5459
|
count: number;
|
|
5460
5460
|
}[] | undefined;
|
|
5461
5461
|
}>>;
|
|
5462
|
-
achievements: z.ZodOptional<z.
|
|
5462
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
5463
5463
|
id: z.ZodString;
|
|
5464
5464
|
name: z.ZodString;
|
|
5465
5465
|
description: z.ZodString;
|
|
@@ -5563,7 +5563,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
5563
5563
|
};
|
|
5564
5564
|
} | undefined;
|
|
5565
5565
|
currentTier?: number | undefined;
|
|
5566
|
-
}
|
|
5566
|
+
}>>>;
|
|
5567
5567
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
5568
5568
|
id: string;
|
|
5569
5569
|
email: string;
|
|
@@ -7691,7 +7691,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7691
7691
|
count: number;
|
|
7692
7692
|
}[] | undefined;
|
|
7693
7693
|
}>>;
|
|
7694
|
-
achievements: z.ZodOptional<z.
|
|
7694
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
7695
7695
|
id: z.ZodString;
|
|
7696
7696
|
name: z.ZodString;
|
|
7697
7697
|
description: z.ZodString;
|
|
@@ -7795,7 +7795,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
7795
7795
|
};
|
|
7796
7796
|
} | undefined;
|
|
7797
7797
|
currentTier?: number | undefined;
|
|
7798
|
-
}
|
|
7798
|
+
}>>>;
|
|
7799
7799
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
7800
7800
|
id: string;
|
|
7801
7801
|
email: string;
|
|
@@ -9931,7 +9931,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9931
9931
|
count: number;
|
|
9932
9932
|
}[] | undefined;
|
|
9933
9933
|
}>>;
|
|
9934
|
-
achievements: z.ZodOptional<z.
|
|
9934
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
9935
9935
|
id: z.ZodString;
|
|
9936
9936
|
name: z.ZodString;
|
|
9937
9937
|
description: z.ZodString;
|
|
@@ -10035,7 +10035,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
10035
10035
|
};
|
|
10036
10036
|
} | undefined;
|
|
10037
10037
|
currentTier?: number | undefined;
|
|
10038
|
-
}
|
|
10038
|
+
}>>>;
|
|
10039
10039
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
10040
10040
|
id: string;
|
|
10041
10041
|
email: string;
|
|
@@ -12249,7 +12249,7 @@ export declare const nflGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
12249
12249
|
count: number;
|
|
12250
12250
|
}[] | undefined;
|
|
12251
12251
|
}>>;
|
|
12252
|
-
achievements: z.ZodOptional<z.
|
|
12252
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
12253
12253
|
id: z.ZodString;
|
|
12254
12254
|
name: z.ZodString;
|
|
12255
12255
|
description: z.ZodString;
|
|
@@ -12353,7 +12353,7 @@ export declare const nflGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
12353
12353
|
};
|
|
12354
12354
|
} | undefined;
|
|
12355
12355
|
currentTier?: number | undefined;
|
|
12356
|
-
}
|
|
12356
|
+
}>>>;
|
|
12357
12357
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
12358
12358
|
id: string;
|
|
12359
12359
|
email: string;
|
|
@@ -14545,7 +14545,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
14545
14545
|
count: number;
|
|
14546
14546
|
}[] | undefined;
|
|
14547
14547
|
}>>;
|
|
14548
|
-
achievements: z.ZodOptional<z.
|
|
14548
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
14549
14549
|
id: z.ZodString;
|
|
14550
14550
|
name: z.ZodString;
|
|
14551
14551
|
description: z.ZodString;
|
|
@@ -14649,7 +14649,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
14649
14649
|
};
|
|
14650
14650
|
} | undefined;
|
|
14651
14651
|
currentTier?: number | undefined;
|
|
14652
|
-
}
|
|
14652
|
+
}>>>;
|
|
14653
14653
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
14654
14654
|
id: string;
|
|
14655
14655
|
email: string;
|
|
@@ -16823,7 +16823,7 @@ export declare const nhlGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16823
16823
|
count: number;
|
|
16824
16824
|
}[] | undefined;
|
|
16825
16825
|
}>>;
|
|
16826
|
-
achievements: z.ZodOptional<z.
|
|
16826
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
16827
16827
|
id: z.ZodString;
|
|
16828
16828
|
name: z.ZodString;
|
|
16829
16829
|
description: z.ZodString;
|
|
@@ -16927,7 +16927,7 @@ export declare const nhlGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
16927
16927
|
};
|
|
16928
16928
|
} | undefined;
|
|
16929
16929
|
currentTier?: number | undefined;
|
|
16930
|
-
}
|
|
16930
|
+
}>>>;
|
|
16931
16931
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
16932
16932
|
id: string;
|
|
16933
16933
|
email: string;
|
|
@@ -19014,7 +19014,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
19014
19014
|
count: number;
|
|
19015
19015
|
}[] | undefined;
|
|
19016
19016
|
}>>;
|
|
19017
|
-
achievements: z.ZodOptional<z.
|
|
19017
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
19018
19018
|
id: z.ZodString;
|
|
19019
19019
|
name: z.ZodString;
|
|
19020
19020
|
description: z.ZodString;
|
|
@@ -19118,7 +19118,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
19118
19118
|
};
|
|
19119
19119
|
} | undefined;
|
|
19120
19120
|
currentTier?: number | undefined;
|
|
19121
|
-
}
|
|
19121
|
+
}>>>;
|
|
19122
19122
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
19123
19123
|
id: string;
|
|
19124
19124
|
email: string;
|
|
@@ -21232,7 +21232,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
21232
21232
|
count: number;
|
|
21233
21233
|
}[] | undefined;
|
|
21234
21234
|
}>>;
|
|
21235
|
-
achievements: z.ZodOptional<z.
|
|
21235
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
21236
21236
|
id: z.ZodString;
|
|
21237
21237
|
name: z.ZodString;
|
|
21238
21238
|
description: z.ZodString;
|
|
@@ -21336,7 +21336,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
21336
21336
|
};
|
|
21337
21337
|
} | undefined;
|
|
21338
21338
|
currentTier?: number | undefined;
|
|
21339
|
-
}
|
|
21339
|
+
}>>>;
|
|
21340
21340
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
21341
21341
|
id: string;
|
|
21342
21342
|
email: string;
|
|
@@ -23471,7 +23471,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
23471
23471
|
count: number;
|
|
23472
23472
|
}[] | undefined;
|
|
23473
23473
|
}>>;
|
|
23474
|
-
achievements: z.ZodOptional<z.
|
|
23474
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
23475
23475
|
id: z.ZodString;
|
|
23476
23476
|
name: z.ZodString;
|
|
23477
23477
|
description: z.ZodString;
|
|
@@ -23575,7 +23575,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
23575
23575
|
};
|
|
23576
23576
|
} | undefined;
|
|
23577
23577
|
currentTier?: number | undefined;
|
|
23578
|
-
}
|
|
23578
|
+
}>>>;
|
|
23579
23579
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
23580
23580
|
id: string;
|
|
23581
23581
|
email: string;
|
|
@@ -25788,7 +25788,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
25788
25788
|
count: number;
|
|
25789
25789
|
}[] | undefined;
|
|
25790
25790
|
}>>;
|
|
25791
|
-
achievements: z.ZodOptional<z.
|
|
25791
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
25792
25792
|
id: z.ZodString;
|
|
25793
25793
|
name: z.ZodString;
|
|
25794
25794
|
description: z.ZodString;
|
|
@@ -25892,7 +25892,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
25892
25892
|
};
|
|
25893
25893
|
} | undefined;
|
|
25894
25894
|
currentTier?: number | undefined;
|
|
25895
|
-
}
|
|
25895
|
+
}>>>;
|
|
25896
25896
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
25897
25897
|
id: string;
|
|
25898
25898
|
email: string;
|
|
@@ -28083,7 +28083,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
28083
28083
|
count: number;
|
|
28084
28084
|
}[] | undefined;
|
|
28085
28085
|
}>>;
|
|
28086
|
-
achievements: z.ZodOptional<z.
|
|
28086
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
28087
28087
|
id: z.ZodString;
|
|
28088
28088
|
name: z.ZodString;
|
|
28089
28089
|
description: z.ZodString;
|
|
@@ -28187,7 +28187,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
28187
28187
|
};
|
|
28188
28188
|
} | undefined;
|
|
28189
28189
|
currentTier?: number | undefined;
|
|
28190
|
-
}
|
|
28190
|
+
}>>>;
|
|
28191
28191
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
28192
28192
|
id: string;
|
|
28193
28193
|
email: string;
|
|
@@ -30360,7 +30360,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
30360
30360
|
count: number;
|
|
30361
30361
|
}[] | undefined;
|
|
30362
30362
|
}>>;
|
|
30363
|
-
achievements: z.ZodOptional<z.
|
|
30363
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
30364
30364
|
id: z.ZodString;
|
|
30365
30365
|
name: z.ZodString;
|
|
30366
30366
|
description: z.ZodString;
|
|
@@ -30464,7 +30464,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
30464
30464
|
};
|
|
30465
30465
|
} | undefined;
|
|
30466
30466
|
currentTier?: number | undefined;
|
|
30467
|
-
}
|
|
30467
|
+
}>>>;
|
|
30468
30468
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
30469
30469
|
id: string;
|
|
30470
30470
|
email: string;
|
|
@@ -32595,7 +32595,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
32595
32595
|
count: number;
|
|
32596
32596
|
}[] | undefined;
|
|
32597
32597
|
}>>;
|
|
32598
|
-
achievements: z.ZodOptional<z.
|
|
32598
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
32599
32599
|
id: z.ZodString;
|
|
32600
32600
|
name: z.ZodString;
|
|
32601
32601
|
description: z.ZodString;
|
|
@@ -32699,7 +32699,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
32699
32699
|
};
|
|
32700
32700
|
} | undefined;
|
|
32701
32701
|
currentTier?: number | undefined;
|
|
32702
|
-
}
|
|
32702
|
+
}>>>;
|
|
32703
32703
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
32704
32704
|
id: string;
|
|
32705
32705
|
email: string;
|
|
@@ -34813,7 +34813,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
34813
34813
|
count: number;
|
|
34814
34814
|
}[] | undefined;
|
|
34815
34815
|
}>>;
|
|
34816
|
-
achievements: z.ZodOptional<z.
|
|
34816
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
34817
34817
|
id: z.ZodString;
|
|
34818
34818
|
name: z.ZodString;
|
|
34819
34819
|
description: z.ZodString;
|
|
@@ -34917,7 +34917,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
34917
34917
|
};
|
|
34918
34918
|
} | undefined;
|
|
34919
34919
|
currentTier?: number | undefined;
|
|
34920
|
-
}
|
|
34920
|
+
}>>>;
|
|
34921
34921
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
34922
34922
|
id: string;
|
|
34923
34923
|
email: string;
|
|
@@ -37052,7 +37052,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
37052
37052
|
count: number;
|
|
37053
37053
|
}[] | undefined;
|
|
37054
37054
|
}>>;
|
|
37055
|
-
achievements: z.ZodOptional<z.
|
|
37055
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
37056
37056
|
id: z.ZodString;
|
|
37057
37057
|
name: z.ZodString;
|
|
37058
37058
|
description: z.ZodString;
|
|
@@ -37156,7 +37156,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
37156
37156
|
};
|
|
37157
37157
|
} | undefined;
|
|
37158
37158
|
currentTier?: number | undefined;
|
|
37159
|
-
}
|
|
37159
|
+
}>>>;
|
|
37160
37160
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
37161
37161
|
id: string;
|
|
37162
37162
|
email: string;
|
|
@@ -39369,7 +39369,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
39369
39369
|
count: number;
|
|
39370
39370
|
}[] | undefined;
|
|
39371
39371
|
}>>;
|
|
39372
|
-
achievements: z.ZodOptional<z.
|
|
39372
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
39373
39373
|
id: z.ZodString;
|
|
39374
39374
|
name: z.ZodString;
|
|
39375
39375
|
description: z.ZodString;
|
|
@@ -39473,7 +39473,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
39473
39473
|
};
|
|
39474
39474
|
} | undefined;
|
|
39475
39475
|
currentTier?: number | undefined;
|
|
39476
|
-
}
|
|
39476
|
+
}>>>;
|
|
39477
39477
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
39478
39478
|
id: string;
|
|
39479
39479
|
email: string;
|
|
@@ -41664,7 +41664,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
41664
41664
|
count: number;
|
|
41665
41665
|
}[] | undefined;
|
|
41666
41666
|
}>>;
|
|
41667
|
-
achievements: z.ZodOptional<z.
|
|
41667
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
41668
41668
|
id: z.ZodString;
|
|
41669
41669
|
name: z.ZodString;
|
|
41670
41670
|
description: z.ZodString;
|
|
@@ -41768,7 +41768,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
41768
41768
|
};
|
|
41769
41769
|
} | undefined;
|
|
41770
41770
|
currentTier?: number | undefined;
|
|
41771
|
-
}
|
|
41771
|
+
}>>>;
|
|
41772
41772
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
41773
41773
|
id: string;
|
|
41774
41774
|
email: string;
|
|
@@ -43941,7 +43941,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
43941
43941
|
count: number;
|
|
43942
43942
|
}[] | undefined;
|
|
43943
43943
|
}>>;
|
|
43944
|
-
achievements: z.ZodOptional<z.
|
|
43944
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
43945
43945
|
id: z.ZodString;
|
|
43946
43946
|
name: z.ZodString;
|
|
43947
43947
|
description: z.ZodString;
|
|
@@ -44045,7 +44045,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
44045
44045
|
};
|
|
44046
44046
|
} | undefined;
|
|
44047
44047
|
currentTier?: number | undefined;
|
|
44048
|
-
}
|
|
44048
|
+
}>>>;
|
|
44049
44049
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
44050
44050
|
id: string;
|
|
44051
44051
|
email: string;
|
|
@@ -45075,7 +45075,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
45075
45075
|
count: number;
|
|
45076
45076
|
}[] | undefined;
|
|
45077
45077
|
}>>;
|
|
45078
|
-
achievements: z.ZodOptional<z.
|
|
45078
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
45079
45079
|
id: z.ZodString;
|
|
45080
45080
|
name: z.ZodString;
|
|
45081
45081
|
description: z.ZodString;
|
|
@@ -45179,7 +45179,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
45179
45179
|
};
|
|
45180
45180
|
} | undefined;
|
|
45181
45181
|
currentTier?: number | undefined;
|
|
45182
|
-
}
|
|
45182
|
+
}>>>;
|
|
45183
45183
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
45184
45184
|
id: string;
|
|
45185
45185
|
email: string;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -1455,7 +1455,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1455
1455
|
count: number;
|
|
1456
1456
|
}[] | undefined;
|
|
1457
1457
|
}>>;
|
|
1458
|
-
achievements: import("zod").ZodOptional<import("zod").
|
|
1458
|
+
achievements: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>, import("zod").ZodObject<{
|
|
1459
1459
|
id: import("zod").ZodString;
|
|
1460
1460
|
name: import("zod").ZodString;
|
|
1461
1461
|
description: import("zod").ZodString;
|
|
@@ -1559,7 +1559,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1559
1559
|
};
|
|
1560
1560
|
} | undefined;
|
|
1561
1561
|
currentTier?: number | undefined;
|
|
1562
|
-
}
|
|
1562
|
+
}>>>;
|
|
1563
1563
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
1564
1564
|
id: string;
|
|
1565
1565
|
email: string;
|
|
@@ -2209,7 +2209,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2209
2209
|
count: number;
|
|
2210
2210
|
}[] | undefined;
|
|
2211
2211
|
}>>;
|
|
2212
|
-
achievements: import("zod").ZodOptional<import("zod").
|
|
2212
|
+
achievements: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>, import("zod").ZodObject<{
|
|
2213
2213
|
id: import("zod").ZodString;
|
|
2214
2214
|
name: import("zod").ZodString;
|
|
2215
2215
|
description: import("zod").ZodString;
|
|
@@ -2313,7 +2313,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2313
2313
|
};
|
|
2314
2314
|
} | undefined;
|
|
2315
2315
|
currentTier?: number | undefined;
|
|
2316
|
-
}
|
|
2316
|
+
}>>>;
|
|
2317
2317
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
2318
2318
|
id: string;
|
|
2319
2319
|
email: string;
|
|
@@ -3029,7 +3029,7 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
|
|
3029
3029
|
count: number;
|
|
3030
3030
|
}[] | undefined;
|
|
3031
3031
|
}>>;
|
|
3032
|
-
achievements: import("zod").ZodOptional<import("zod").
|
|
3032
|
+
achievements: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>, import("zod").ZodObject<{
|
|
3033
3033
|
id: import("zod").ZodString;
|
|
3034
3034
|
name: import("zod").ZodString;
|
|
3035
3035
|
description: import("zod").ZodString;
|
|
@@ -3133,7 +3133,7 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
|
|
3133
3133
|
};
|
|
3134
3134
|
} | undefined;
|
|
3135
3135
|
currentTier?: number | undefined;
|
|
3136
|
-
}
|
|
3136
|
+
}>>>;
|
|
3137
3137
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
3138
3138
|
id: string;
|
|
3139
3139
|
email: string;
|
package/dist/schemas/team.d.ts
CHANGED
|
@@ -639,7 +639,7 @@ export declare const teamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
639
639
|
count: number;
|
|
640
640
|
}[] | undefined;
|
|
641
641
|
}>>;
|
|
642
|
-
achievements: z.ZodOptional<z.
|
|
642
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
643
643
|
id: z.ZodString;
|
|
644
644
|
name: z.ZodString;
|
|
645
645
|
description: z.ZodString;
|
|
@@ -743,7 +743,7 @@ export declare const teamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
743
743
|
};
|
|
744
744
|
} | undefined;
|
|
745
745
|
currentTier?: number | undefined;
|
|
746
|
-
}
|
|
746
|
+
}>>>;
|
|
747
747
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
748
748
|
id: string;
|
|
749
749
|
email: string;
|
|
@@ -1450,7 +1450,7 @@ export declare const mlbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1450
1450
|
count: number;
|
|
1451
1451
|
}[] | undefined;
|
|
1452
1452
|
}>>;
|
|
1453
|
-
achievements: z.ZodOptional<z.
|
|
1453
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
1454
1454
|
id: z.ZodString;
|
|
1455
1455
|
name: z.ZodString;
|
|
1456
1456
|
description: z.ZodString;
|
|
@@ -1554,7 +1554,7 @@ export declare const mlbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1554
1554
|
};
|
|
1555
1555
|
} | undefined;
|
|
1556
1556
|
currentTier?: number | undefined;
|
|
1557
|
-
}
|
|
1557
|
+
}>>>;
|
|
1558
1558
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
1559
1559
|
id: string;
|
|
1560
1560
|
email: string;
|
|
@@ -2259,7 +2259,7 @@ export declare const footballTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2259
2259
|
count: number;
|
|
2260
2260
|
}[] | undefined;
|
|
2261
2261
|
}>>;
|
|
2262
|
-
achievements: z.ZodOptional<z.
|
|
2262
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
2263
2263
|
id: z.ZodString;
|
|
2264
2264
|
name: z.ZodString;
|
|
2265
2265
|
description: z.ZodString;
|
|
@@ -2363,7 +2363,7 @@ export declare const footballTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2363
2363
|
};
|
|
2364
2364
|
} | undefined;
|
|
2365
2365
|
currentTier?: number | undefined;
|
|
2366
|
-
}
|
|
2366
|
+
}>>>;
|
|
2367
2367
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
2368
2368
|
id: string;
|
|
2369
2369
|
email: string;
|
|
@@ -3065,7 +3065,7 @@ export declare const nflTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3065
3065
|
count: number;
|
|
3066
3066
|
}[] | undefined;
|
|
3067
3067
|
}>>;
|
|
3068
|
-
achievements: z.ZodOptional<z.
|
|
3068
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
3069
3069
|
id: z.ZodString;
|
|
3070
3070
|
name: z.ZodString;
|
|
3071
3071
|
description: z.ZodString;
|
|
@@ -3169,7 +3169,7 @@ export declare const nflTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3169
3169
|
};
|
|
3170
3170
|
} | undefined;
|
|
3171
3171
|
currentTier?: number | undefined;
|
|
3172
|
-
}
|
|
3172
|
+
}>>>;
|
|
3173
3173
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
3174
3174
|
id: string;
|
|
3175
3175
|
email: string;
|
|
@@ -3874,7 +3874,7 @@ export declare const cfbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3874
3874
|
count: number;
|
|
3875
3875
|
}[] | undefined;
|
|
3876
3876
|
}>>;
|
|
3877
|
-
achievements: z.ZodOptional<z.
|
|
3877
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
3878
3878
|
id: z.ZodString;
|
|
3879
3879
|
name: z.ZodString;
|
|
3880
3880
|
description: z.ZodString;
|
|
@@ -3978,7 +3978,7 @@ export declare const cfbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3978
3978
|
};
|
|
3979
3979
|
} | undefined;
|
|
3980
3980
|
currentTier?: number | undefined;
|
|
3981
|
-
}
|
|
3981
|
+
}>>>;
|
|
3982
3982
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
3983
3983
|
id: string;
|
|
3984
3984
|
email: string;
|
|
@@ -4686,7 +4686,7 @@ export declare const cbbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4686
4686
|
count: number;
|
|
4687
4687
|
}[] | undefined;
|
|
4688
4688
|
}>>;
|
|
4689
|
-
achievements: z.ZodOptional<z.
|
|
4689
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
4690
4690
|
id: z.ZodString;
|
|
4691
4691
|
name: z.ZodString;
|
|
4692
4692
|
description: z.ZodString;
|
|
@@ -4790,7 +4790,7 @@ export declare const cbbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4790
4790
|
};
|
|
4791
4791
|
} | undefined;
|
|
4792
4792
|
currentTier?: number | undefined;
|
|
4793
|
-
}
|
|
4793
|
+
}>>>;
|
|
4794
4794
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
4795
4795
|
id: string;
|
|
4796
4796
|
email: string;
|
|
@@ -5498,7 +5498,7 @@ export declare const nhlTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5498
5498
|
count: number;
|
|
5499
5499
|
}[] | undefined;
|
|
5500
5500
|
}>>;
|
|
5501
|
-
achievements: z.ZodOptional<z.
|
|
5501
|
+
achievements: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"speed_rater">, z.ZodLiteral<"popular_opinion">, z.ZodLiteral<"home_team_hero">, z.ZodLiteral<"loyal_but_hurt">, z.ZodLiteral<"multi_sport_fan">, z.ZodLiteral<"superfan">, z.ZodLiteral<"personalized_picks">, z.ZodLiteral<"marathon_viewer">, z.ZodLiteral<"new_years_resolution">, z.ZodLiteral<"finals_fever">, z.ZodLiteral<"summer_sports_fan">, z.ZodLiteral<"live_every_moment">]>, z.ZodObject<{
|
|
5502
5502
|
id: z.ZodString;
|
|
5503
5503
|
name: z.ZodString;
|
|
5504
5504
|
description: z.ZodString;
|
|
@@ -5602,7 +5602,7 @@ export declare const nhlTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5602
5602
|
};
|
|
5603
5603
|
} | undefined;
|
|
5604
5604
|
currentTier?: number | undefined;
|
|
5605
|
-
}
|
|
5605
|
+
}>>>;
|
|
5606
5606
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
5607
5607
|
id: string;
|
|
5608
5608
|
email: string;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const leagueStatsSchema: import("zod").ZodObject<{
|
|
|
34
34
|
weightedRating: number;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
|
+
export declare const achievementId: import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>;
|
|
37
38
|
export declare const achievementSchema: import("zod").ZodObject<{
|
|
38
39
|
id: import("zod").ZodString;
|
|
39
40
|
name: import("zod").ZodString;
|
|
@@ -772,7 +773,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
772
773
|
count: number;
|
|
773
774
|
}[] | undefined;
|
|
774
775
|
}>>;
|
|
775
|
-
achievements: import("zod").ZodOptional<import("zod").
|
|
776
|
+
achievements: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>, import("zod").ZodObject<{
|
|
776
777
|
id: import("zod").ZodString;
|
|
777
778
|
name: import("zod").ZodString;
|
|
778
779
|
description: import("zod").ZodString;
|
|
@@ -876,7 +877,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
876
877
|
};
|
|
877
878
|
} | undefined;
|
|
878
879
|
currentTier?: number | undefined;
|
|
879
|
-
}
|
|
880
|
+
}>>>;
|
|
880
881
|
}, "strip", import("zod").ZodTypeAny, {
|
|
881
882
|
id: string;
|
|
882
883
|
email: string;
|
|
@@ -1032,7 +1033,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
1032
1033
|
count: number;
|
|
1033
1034
|
}[] | undefined;
|
|
1034
1035
|
} | undefined;
|
|
1035
|
-
achievements?: {
|
|
1036
|
+
achievements?: Partial<Record<"speed_rater" | "popular_opinion" | "home_team_hero" | "loyal_but_hurt" | "multi_sport_fan" | "superfan" | "personalized_picks" | "marathon_viewer" | "new_years_resolution" | "finals_fever" | "summer_sports_fan" | "live_every_moment", {
|
|
1036
1037
|
id: string;
|
|
1037
1038
|
name: string;
|
|
1038
1039
|
description: string;
|
|
@@ -1052,7 +1053,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
1052
1053
|
};
|
|
1053
1054
|
} | undefined;
|
|
1054
1055
|
currentTier?: number | undefined;
|
|
1055
|
-
}
|
|
1056
|
+
}>> | undefined;
|
|
1056
1057
|
}, {
|
|
1057
1058
|
id: string;
|
|
1058
1059
|
email: string;
|
|
@@ -1208,7 +1209,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
1208
1209
|
count: number;
|
|
1209
1210
|
}[] | undefined;
|
|
1210
1211
|
} | undefined;
|
|
1211
|
-
achievements?: {
|
|
1212
|
+
achievements?: Partial<Record<"speed_rater" | "popular_opinion" | "home_team_hero" | "loyal_but_hurt" | "multi_sport_fan" | "superfan" | "personalized_picks" | "marathon_viewer" | "new_years_resolution" | "finals_fever" | "summer_sports_fan" | "live_every_moment", {
|
|
1212
1213
|
id: string;
|
|
1213
1214
|
name: string;
|
|
1214
1215
|
description: string;
|
|
@@ -1228,7 +1229,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
1228
1229
|
};
|
|
1229
1230
|
} | undefined;
|
|
1230
1231
|
currentTier?: number | undefined;
|
|
1231
|
-
}
|
|
1232
|
+
}>> | undefined;
|
|
1232
1233
|
}>;
|
|
1233
1234
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
1234
1235
|
id: import("zod").ZodString;
|
|
@@ -1863,7 +1864,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
1863
1864
|
count: number;
|
|
1864
1865
|
}[] | undefined;
|
|
1865
1866
|
}>>;
|
|
1866
|
-
achievements: import("zod").ZodOptional<import("zod").
|
|
1867
|
+
achievements: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>, import("zod").ZodObject<{
|
|
1867
1868
|
id: import("zod").ZodString;
|
|
1868
1869
|
name: import("zod").ZodString;
|
|
1869
1870
|
description: import("zod").ZodString;
|
|
@@ -1967,7 +1968,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
1967
1968
|
};
|
|
1968
1969
|
} | undefined;
|
|
1969
1970
|
currentTier?: number | undefined;
|
|
1970
|
-
}
|
|
1971
|
+
}>>>;
|
|
1971
1972
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
1972
1973
|
email: string;
|
|
1973
1974
|
username: string;
|
|
@@ -2112,7 +2113,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
2112
2113
|
count: number;
|
|
2113
2114
|
}[] | undefined;
|
|
2114
2115
|
} | undefined;
|
|
2115
|
-
achievements?: {
|
|
2116
|
+
achievements?: Partial<Record<"speed_rater" | "popular_opinion" | "home_team_hero" | "loyal_but_hurt" | "multi_sport_fan" | "superfan" | "personalized_picks" | "marathon_viewer" | "new_years_resolution" | "finals_fever" | "summer_sports_fan" | "live_every_moment", {
|
|
2116
2117
|
id: string;
|
|
2117
2118
|
name: string;
|
|
2118
2119
|
description: string;
|
|
@@ -2132,7 +2133,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
2132
2133
|
};
|
|
2133
2134
|
} | undefined;
|
|
2134
2135
|
currentTier?: number | undefined;
|
|
2135
|
-
}
|
|
2136
|
+
}>> | undefined;
|
|
2136
2137
|
}, {
|
|
2137
2138
|
email: string;
|
|
2138
2139
|
username: string;
|
|
@@ -2277,7 +2278,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
2277
2278
|
count: number;
|
|
2278
2279
|
}[] | undefined;
|
|
2279
2280
|
} | undefined;
|
|
2280
|
-
achievements?: {
|
|
2281
|
+
achievements?: Partial<Record<"speed_rater" | "popular_opinion" | "home_team_hero" | "loyal_but_hurt" | "multi_sport_fan" | "superfan" | "personalized_picks" | "marathon_viewer" | "new_years_resolution" | "finals_fever" | "summer_sports_fan" | "live_every_moment", {
|
|
2281
2282
|
id: string;
|
|
2282
2283
|
name: string;
|
|
2283
2284
|
description: string;
|
|
@@ -2297,7 +2298,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
2297
2298
|
};
|
|
2298
2299
|
} | undefined;
|
|
2299
2300
|
currentTier?: number | undefined;
|
|
2300
|
-
}
|
|
2301
|
+
}>> | undefined;
|
|
2301
2302
|
}>;
|
|
2302
2303
|
export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
|
|
2303
2304
|
id: import("zod").ZodString;
|
|
@@ -2932,7 +2933,7 @@ export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
|
|
|
2932
2933
|
count: number;
|
|
2933
2934
|
}[] | undefined;
|
|
2934
2935
|
}>>;
|
|
2935
|
-
achievements: import("zod").ZodOptional<import("zod").
|
|
2936
|
+
achievements: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodUnion<[import("zod").ZodLiteral<"speed_rater">, import("zod").ZodLiteral<"popular_opinion">, import("zod").ZodLiteral<"home_team_hero">, import("zod").ZodLiteral<"loyal_but_hurt">, import("zod").ZodLiteral<"multi_sport_fan">, import("zod").ZodLiteral<"superfan">, import("zod").ZodLiteral<"personalized_picks">, import("zod").ZodLiteral<"marathon_viewer">, import("zod").ZodLiteral<"new_years_resolution">, import("zod").ZodLiteral<"finals_fever">, import("zod").ZodLiteral<"summer_sports_fan">, import("zod").ZodLiteral<"live_every_moment">]>, import("zod").ZodObject<{
|
|
2936
2937
|
id: import("zod").ZodString;
|
|
2937
2938
|
name: import("zod").ZodString;
|
|
2938
2939
|
description: import("zod").ZodString;
|
|
@@ -3036,7 +3037,7 @@ export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
|
|
|
3036
3037
|
};
|
|
3037
3038
|
} | undefined;
|
|
3038
3039
|
currentTier?: number | undefined;
|
|
3039
|
-
}
|
|
3040
|
+
}>>>;
|
|
3040
3041
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
3041
3042
|
id: string;
|
|
3042
3043
|
email: string;
|
package/dist/schemas/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchUserSchema = exports.reducedUserSchema = exports.createUserSchema = exports.userSchema = exports.achievementSchema = exports.leagueStatsSchema = void 0;
|
|
3
|
+
exports.searchUserSchema = exports.reducedUserSchema = exports.createUserSchema = exports.userSchema = exports.achievementSchema = exports.achievementId = exports.leagueStatsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const sharedTypes_1 = require("./sharedTypes");
|
|
6
6
|
exports.leagueStatsSchema = (0, zod_1.object)({
|
|
@@ -13,6 +13,20 @@ exports.leagueStatsSchema = (0, zod_1.object)({
|
|
|
13
13
|
weightedRating: (0, zod_1.number)(),
|
|
14
14
|
}),
|
|
15
15
|
});
|
|
16
|
+
exports.achievementId = (0, zod_1.union)([
|
|
17
|
+
(0, zod_1.literal)("speed_rater"),
|
|
18
|
+
(0, zod_1.literal)("popular_opinion"),
|
|
19
|
+
(0, zod_1.literal)("home_team_hero"),
|
|
20
|
+
(0, zod_1.literal)("loyal_but_hurt"),
|
|
21
|
+
(0, zod_1.literal)("multi_sport_fan"),
|
|
22
|
+
(0, zod_1.literal)("superfan"),
|
|
23
|
+
(0, zod_1.literal)("personalized_picks"),
|
|
24
|
+
(0, zod_1.literal)("marathon_viewer"),
|
|
25
|
+
(0, zod_1.literal)("new_years_resolution"),
|
|
26
|
+
(0, zod_1.literal)("finals_fever"),
|
|
27
|
+
(0, zod_1.literal)("summer_sports_fan"),
|
|
28
|
+
(0, zod_1.literal)("live_every_moment"),
|
|
29
|
+
]);
|
|
16
30
|
exports.achievementSchema = (0, zod_1.object)({
|
|
17
31
|
id: (0, zod_1.string)(),
|
|
18
32
|
name: (0, zod_1.string)(),
|
|
@@ -114,7 +128,7 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
114
128
|
achievedAt: (0, zod_1.number)(),
|
|
115
129
|
})).optional(),
|
|
116
130
|
}).optional(),
|
|
117
|
-
achievements: (0, zod_1.
|
|
131
|
+
achievements: (0, zod_1.record)(exports.achievementId, exports.achievementSchema).optional(),
|
|
118
132
|
});
|
|
119
133
|
exports.createUserSchema = exports.userSchema.omit({
|
|
120
134
|
id: true,
|
package/package.json
CHANGED
package/dist/models/player.d.ts
DELETED
package/dist/models/player.js
DELETED
package/dist/schemas/player.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
}>;
|
package/dist/schemas/player.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
});
|