rategame-shared 1.0.91 → 1.0.92
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/schemas/user.d.ts +46 -0
- package/dist/schemas/user.js +5 -0
- package/package.json +1 -1
package/dist/schemas/user.d.ts
CHANGED
|
@@ -108,6 +108,19 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
108
108
|
}>>;
|
|
109
109
|
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
|
|
110
110
|
selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
111
|
+
notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
112
|
+
allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
113
|
+
favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
114
|
+
favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
115
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
116
|
+
allGames?: boolean | undefined;
|
|
117
|
+
favoriteLeagues?: boolean | undefined;
|
|
118
|
+
favoriteTeams?: boolean | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
allGames?: boolean | undefined;
|
|
121
|
+
favoriteLeagues?: boolean | undefined;
|
|
122
|
+
favoriteTeams?: boolean | undefined;
|
|
123
|
+
}>>;
|
|
111
124
|
}, "strip", import("zod").ZodTypeAny, {
|
|
112
125
|
id: string;
|
|
113
126
|
email: string;
|
|
@@ -151,6 +164,11 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
151
164
|
} | undefined;
|
|
152
165
|
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
153
166
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
167
|
+
notificationSettings?: {
|
|
168
|
+
allGames?: boolean | undefined;
|
|
169
|
+
favoriteLeagues?: boolean | undefined;
|
|
170
|
+
favoriteTeams?: boolean | undefined;
|
|
171
|
+
} | undefined;
|
|
154
172
|
}, {
|
|
155
173
|
id: string;
|
|
156
174
|
email: string;
|
|
@@ -194,6 +212,11 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
194
212
|
} | undefined;
|
|
195
213
|
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
196
214
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
215
|
+
notificationSettings?: {
|
|
216
|
+
allGames?: boolean | undefined;
|
|
217
|
+
favoriteLeagues?: boolean | undefined;
|
|
218
|
+
favoriteTeams?: boolean | undefined;
|
|
219
|
+
} | undefined;
|
|
197
220
|
}>;
|
|
198
221
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
199
222
|
id: import("zod").ZodString;
|
|
@@ -292,6 +315,19 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
292
315
|
}>>;
|
|
293
316
|
platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
|
|
294
317
|
selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
|
|
318
|
+
notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
319
|
+
allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
320
|
+
favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
321
|
+
favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
322
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
323
|
+
allGames?: boolean | undefined;
|
|
324
|
+
favoriteLeagues?: boolean | undefined;
|
|
325
|
+
favoriteTeams?: boolean | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
allGames?: boolean | undefined;
|
|
328
|
+
favoriteLeagues?: boolean | undefined;
|
|
329
|
+
favoriteTeams?: boolean | undefined;
|
|
330
|
+
}>>;
|
|
295
331
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
296
332
|
email: string;
|
|
297
333
|
username: string;
|
|
@@ -324,6 +360,11 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
324
360
|
tiktok?: string | undefined;
|
|
325
361
|
} | undefined;
|
|
326
362
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
363
|
+
notificationSettings?: {
|
|
364
|
+
allGames?: boolean | undefined;
|
|
365
|
+
favoriteLeagues?: boolean | undefined;
|
|
366
|
+
favoriteTeams?: boolean | undefined;
|
|
367
|
+
} | undefined;
|
|
327
368
|
}, {
|
|
328
369
|
email: string;
|
|
329
370
|
username: string;
|
|
@@ -356,4 +397,9 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
356
397
|
tiktok?: string | undefined;
|
|
357
398
|
} | undefined;
|
|
358
399
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
400
|
+
notificationSettings?: {
|
|
401
|
+
allGames?: boolean | undefined;
|
|
402
|
+
favoriteLeagues?: boolean | undefined;
|
|
403
|
+
favoriteTeams?: boolean | undefined;
|
|
404
|
+
} | undefined;
|
|
359
405
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -48,6 +48,11 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
48
48
|
(0, zod_1.literal)("web"),
|
|
49
49
|
]).optional(),
|
|
50
50
|
selectedTeamsPerLeague: (0, zod_1.record)((0, zod_1.array)((0, zod_1.string)())).optional(),
|
|
51
|
+
notificationSettings: (0, zod_1.object)({
|
|
52
|
+
allGames: (0, zod_1.boolean)().optional(),
|
|
53
|
+
favoriteLeagues: (0, zod_1.boolean)().optional(),
|
|
54
|
+
favoriteTeams: (0, zod_1.boolean)().optional(),
|
|
55
|
+
}).optional(),
|
|
51
56
|
});
|
|
52
57
|
exports.createUserSchema = exports.userSchema.omit({
|
|
53
58
|
id: true,
|