rategame-shared 1.0.59 → 1.0.61
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.
|
@@ -34,7 +34,7 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
34
34
|
isClosed: z.ZodBoolean;
|
|
35
35
|
startedAt: z.ZodNumber;
|
|
36
36
|
finishedAt: z.ZodNumber;
|
|
37
|
-
ratingWindowClosedAt: z.ZodNumber
|
|
37
|
+
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
38
38
|
apiGameId: z.ZodNumber;
|
|
39
39
|
homeTeam: z.ZodObject<{
|
|
40
40
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -149,7 +149,6 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
149
149
|
isClosed: boolean;
|
|
150
150
|
startedAt: number;
|
|
151
151
|
finishedAt: number;
|
|
152
|
-
ratingWindowClosedAt: number;
|
|
153
152
|
apiGameId: number;
|
|
154
153
|
homeTeam: {
|
|
155
154
|
name: string;
|
|
@@ -176,6 +175,7 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
176
175
|
gameNumber: number;
|
|
177
176
|
};
|
|
178
177
|
id?: string | undefined;
|
|
178
|
+
ratingWindowClosedAt?: number | undefined;
|
|
179
179
|
rating?: {
|
|
180
180
|
avg: number;
|
|
181
181
|
votes: {
|
|
@@ -195,7 +195,6 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
195
195
|
isClosed: boolean;
|
|
196
196
|
startedAt: number;
|
|
197
197
|
finishedAt: number;
|
|
198
|
-
ratingWindowClosedAt: number;
|
|
199
198
|
apiGameId: number;
|
|
200
199
|
homeTeam: {
|
|
201
200
|
name: string;
|
|
@@ -222,6 +221,7 @@ export declare const nbaGameSchema: z.ZodObject<{
|
|
|
222
221
|
gameNumber: number;
|
|
223
222
|
};
|
|
224
223
|
id?: string | undefined;
|
|
224
|
+
ratingWindowClosedAt?: number | undefined;
|
|
225
225
|
rating?: {
|
|
226
226
|
avg: number;
|
|
227
227
|
votes: {
|
package/dist/schemas/nba/game.js
CHANGED
|
@@ -25,7 +25,7 @@ exports.nbaGameSchema = zod_1.z.object({
|
|
|
25
25
|
isClosed: zod_1.z.boolean(),
|
|
26
26
|
startedAt: zod_1.z.number(),
|
|
27
27
|
finishedAt: zod_1.z.number(),
|
|
28
|
-
ratingWindowClosedAt: zod_1.z.number(),
|
|
28
|
+
ratingWindowClosedAt: zod_1.z.number().optional(),
|
|
29
29
|
apiGameId: zod_1.z.number(),
|
|
30
30
|
homeTeam: team_1.nbaTeamSchema,
|
|
31
31
|
awayTeam: team_1.nbaTeamSchema,
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
22
22
|
askedForPushNotifications: import("zod").ZodBoolean;
|
|
23
23
|
acceptedPushNotifications: import("zod").ZodBoolean;
|
|
24
24
|
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
26
|
+
selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
27
|
+
selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
25
28
|
}, "strip", import("zod").ZodTypeAny, {
|
|
26
29
|
id: string;
|
|
27
30
|
email: string;
|
|
@@ -40,6 +43,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
40
43
|
avgRating?: number | undefined;
|
|
41
44
|
isRegistrationComplete?: boolean | undefined;
|
|
42
45
|
badge?: string | undefined;
|
|
46
|
+
registrationStep?: number | undefined;
|
|
47
|
+
selectedLeagues?: string[] | undefined;
|
|
48
|
+
selectedTeams?: string[] | undefined;
|
|
43
49
|
}, {
|
|
44
50
|
id: string;
|
|
45
51
|
email: string;
|
|
@@ -58,6 +64,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
58
64
|
avgRating?: number | undefined;
|
|
59
65
|
isRegistrationComplete?: boolean | undefined;
|
|
60
66
|
badge?: string | undefined;
|
|
67
|
+
registrationStep?: number | undefined;
|
|
68
|
+
selectedLeagues?: string[] | undefined;
|
|
69
|
+
selectedTeams?: string[] | undefined;
|
|
61
70
|
}>;
|
|
62
71
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
63
72
|
id: import("zod").ZodString;
|
|
@@ -83,6 +92,9 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
83
92
|
askedForPushNotifications: import("zod").ZodBoolean;
|
|
84
93
|
acceptedPushNotifications: import("zod").ZodBoolean;
|
|
85
94
|
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
+
selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
97
|
+
selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
86
98
|
}, "id" | "createdAt" | "updatedAt" | "totalRatedGames" | "avgRating" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
87
99
|
email: string;
|
|
88
100
|
username: string;
|
|
@@ -90,6 +102,9 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
90
102
|
commentsLeft?: number | undefined;
|
|
91
103
|
isRegistrationComplete?: boolean | undefined;
|
|
92
104
|
badge?: string | undefined;
|
|
105
|
+
registrationStep?: number | undefined;
|
|
106
|
+
selectedLeagues?: string[] | undefined;
|
|
107
|
+
selectedTeams?: string[] | undefined;
|
|
93
108
|
}, {
|
|
94
109
|
email: string;
|
|
95
110
|
username: string;
|
|
@@ -97,4 +112,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
97
112
|
commentsLeft?: number | undefined;
|
|
98
113
|
isRegistrationComplete?: boolean | undefined;
|
|
99
114
|
badge?: string | undefined;
|
|
115
|
+
registrationStep?: number | undefined;
|
|
116
|
+
selectedLeagues?: string[] | undefined;
|
|
117
|
+
selectedTeams?: string[] | undefined;
|
|
100
118
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -20,6 +20,9 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
20
20
|
askedForPushNotifications: (0, zod_1.boolean)(),
|
|
21
21
|
acceptedPushNotifications: (0, zod_1.boolean)(),
|
|
22
22
|
badge: (0, zod_1.string)().optional(),
|
|
23
|
+
registrationStep: (0, zod_1.number)().optional(),
|
|
24
|
+
selectedLeagues: (0, zod_1.array)((0, zod_1.string)()).optional(),
|
|
25
|
+
selectedTeams: (0, zod_1.array)((0, zod_1.string)()).optional(),
|
|
23
26
|
});
|
|
24
27
|
exports.createUserSchema = exports.userSchema.omit({
|
|
25
28
|
id: true,
|