@zyacreatives/shared 2.2.76 → 2.2.78
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 +8 -6
- package/dist/schemas/user.js +9 -5
- package/package.json +1 -1
- package/src/schemas/user.ts +11 -7
package/dist/schemas/user.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
|
|
|
369
369
|
}, z.core.$strip>;
|
|
370
370
|
export declare const UserWithJobBookmarksEntitySchema: z.ZodObject<{
|
|
371
371
|
userId: z.ZodCUID2;
|
|
372
|
-
jobBookmarks: z.ZodArray<z.ZodObject<{
|
|
372
|
+
jobBookmarks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
373
|
id: z.ZodCUID2;
|
|
374
374
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
375
375
|
userId: z.ZodCUID2;
|
|
@@ -405,17 +405,18 @@ export declare const UserWithJobBookmarksEntitySchema: z.ZodObject<{
|
|
|
405
405
|
wagesType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
406
|
createdAt: z.ZodString;
|
|
407
407
|
updatedAt: z.ZodString;
|
|
408
|
+
isBookmarked: z.ZodDefault<z.ZodBoolean>;
|
|
408
409
|
}, z.core.$strip>;
|
|
409
|
-
}, z.core.$strip
|
|
410
|
+
}, z.core.$strip>>>;
|
|
410
411
|
}, z.core.$strip>;
|
|
411
412
|
export declare const UserWithJobBookmarksInputSchema: z.ZodObject<{
|
|
412
|
-
cursor: z.ZodNullable<z.ZodString
|
|
413
|
-
limit: z.ZodNullable<z.ZodInt
|
|
413
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
414
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
414
415
|
}, z.core.$strip>;
|
|
415
416
|
export declare const UserWithJobBookmarksOutputSchema: z.ZodObject<{
|
|
416
417
|
bookmarks: z.ZodObject<{
|
|
417
418
|
userId: z.ZodCUID2;
|
|
418
|
-
jobBookmarks: z.ZodArray<z.ZodObject<{
|
|
419
|
+
jobBookmarks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
420
|
id: z.ZodCUID2;
|
|
420
421
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
421
422
|
userId: z.ZodCUID2;
|
|
@@ -451,8 +452,9 @@ export declare const UserWithJobBookmarksOutputSchema: z.ZodObject<{
|
|
|
451
452
|
wagesType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
452
453
|
createdAt: z.ZodString;
|
|
453
454
|
updatedAt: z.ZodString;
|
|
455
|
+
isBookmarked: z.ZodDefault<z.ZodBoolean>;
|
|
454
456
|
}, z.core.$strip>;
|
|
455
|
-
}, z.core.$strip
|
|
457
|
+
}, z.core.$strip>>>;
|
|
456
458
|
}, z.core.$strip>;
|
|
457
459
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
458
460
|
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -123,13 +123,17 @@ exports.UserWithPostBookmarksEntitySchema = zod_openapi_1.z.object({
|
|
|
123
123
|
});
|
|
124
124
|
exports.UserWithJobBookmarksEntitySchema = zod_openapi_1.z.object({
|
|
125
125
|
userId: zod_openapi_1.z.cuid2().openapi({ example: "afoaifaofi" }),
|
|
126
|
-
jobBookmarks: zod_openapi_1.z
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
jobBookmarks: zod_openapi_1.z
|
|
127
|
+
.array(bookmark_1.BookmarkEntitySchema.extend({
|
|
128
|
+
job: job_1.JobSearchDocumentSchema.extend({
|
|
129
|
+
isBookmarked: zod_openapi_1.z.boolean().default(true),
|
|
130
|
+
}),
|
|
131
|
+
}))
|
|
132
|
+
.optional(),
|
|
129
133
|
});
|
|
130
134
|
exports.UserWithJobBookmarksInputSchema = zod_openapi_1.z.object({
|
|
131
|
-
cursor: zod_openapi_1.z.string().nullable(),
|
|
132
|
-
limit: zod_openapi_1.z.int().positive().nullable(),
|
|
135
|
+
cursor: zod_openapi_1.z.string().optional().nullable(),
|
|
136
|
+
limit: zod_openapi_1.z.int().positive().optional().nullable(),
|
|
133
137
|
});
|
|
134
138
|
exports.UserWithJobBookmarksOutputSchema = zod_openapi_1.z.object({
|
|
135
139
|
bookmarks: exports.UserWithJobBookmarksEntitySchema,
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -154,16 +154,20 @@ export const UserWithPostBookmarksEntitySchema = z.object({
|
|
|
154
154
|
|
|
155
155
|
export const UserWithJobBookmarksEntitySchema = z.object({
|
|
156
156
|
userId: z.cuid2().openapi({ example: "afoaifaofi" }),
|
|
157
|
-
jobBookmarks: z
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
jobBookmarks: z
|
|
158
|
+
.array(
|
|
159
|
+
BookmarkEntitySchema.extend({
|
|
160
|
+
job: JobSearchDocumentSchema.extend({
|
|
161
|
+
isBookmarked: z.boolean().default(true),
|
|
162
|
+
}),
|
|
163
|
+
}),
|
|
164
|
+
)
|
|
165
|
+
.optional(),
|
|
162
166
|
});
|
|
163
167
|
|
|
164
168
|
export const UserWithJobBookmarksInputSchema = z.object({
|
|
165
|
-
cursor: z.string().nullable(),
|
|
166
|
-
limit: z.int().positive().nullable(),
|
|
169
|
+
cursor: z.string().optional().nullable(),
|
|
170
|
+
limit: z.int().positive().optional().nullable(),
|
|
167
171
|
});
|
|
168
172
|
|
|
169
173
|
export const UserWithJobBookmarksOutputSchema = z.object({
|