@zyacreatives/shared 2.2.76 → 2.2.77
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 +6 -6
- package/dist/schemas/user.js +3 -3
- package/package.json +1 -1
- package/src/schemas/user.ts +3 -3
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;
|
|
@@ -406,16 +406,16 @@ export declare const UserWithJobBookmarksEntitySchema: z.ZodObject<{
|
|
|
406
406
|
createdAt: z.ZodString;
|
|
407
407
|
updatedAt: z.ZodString;
|
|
408
408
|
}, z.core.$strip>;
|
|
409
|
-
}, z.core.$strip
|
|
409
|
+
}, z.core.$strip>>>;
|
|
410
410
|
}, z.core.$strip>;
|
|
411
411
|
export declare const UserWithJobBookmarksInputSchema: z.ZodObject<{
|
|
412
|
-
cursor: z.ZodNullable<z.ZodString
|
|
413
|
-
limit: z.ZodNullable<z.ZodInt
|
|
412
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
413
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
414
414
|
}, z.core.$strip>;
|
|
415
415
|
export declare const UserWithJobBookmarksOutputSchema: z.ZodObject<{
|
|
416
416
|
bookmarks: z.ZodObject<{
|
|
417
417
|
userId: z.ZodCUID2;
|
|
418
|
-
jobBookmarks: z.ZodArray<z.ZodObject<{
|
|
418
|
+
jobBookmarks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
419
|
id: z.ZodCUID2;
|
|
420
420
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
421
421
|
userId: z.ZodCUID2;
|
|
@@ -452,7 +452,7 @@ export declare const UserWithJobBookmarksOutputSchema: z.ZodObject<{
|
|
|
452
452
|
createdAt: z.ZodString;
|
|
453
453
|
updatedAt: z.ZodString;
|
|
454
454
|
}, z.core.$strip>;
|
|
455
|
-
}, z.core.$strip
|
|
455
|
+
}, z.core.$strip>>>;
|
|
456
456
|
}, z.core.$strip>;
|
|
457
457
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
458
458
|
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -125,11 +125,11 @@ exports.UserWithJobBookmarksEntitySchema = zod_openapi_1.z.object({
|
|
|
125
125
|
userId: zod_openapi_1.z.cuid2().openapi({ example: "afoaifaofi" }),
|
|
126
126
|
jobBookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
|
|
127
127
|
job: job_1.JobSearchDocumentSchema,
|
|
128
|
-
})),
|
|
128
|
+
})).optional(),
|
|
129
129
|
});
|
|
130
130
|
exports.UserWithJobBookmarksInputSchema = zod_openapi_1.z.object({
|
|
131
|
-
cursor: zod_openapi_1.z.string().nullable(),
|
|
132
|
-
limit: zod_openapi_1.z.int().positive().nullable(),
|
|
131
|
+
cursor: zod_openapi_1.z.string().optional().nullable(),
|
|
132
|
+
limit: zod_openapi_1.z.int().positive().optional().nullable(),
|
|
133
133
|
});
|
|
134
134
|
exports.UserWithJobBookmarksOutputSchema = zod_openapi_1.z.object({
|
|
135
135
|
bookmarks: exports.UserWithJobBookmarksEntitySchema,
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -158,12 +158,12 @@ export const UserWithJobBookmarksEntitySchema = z.object({
|
|
|
158
158
|
BookmarkEntitySchema.extend({
|
|
159
159
|
job: JobSearchDocumentSchema,
|
|
160
160
|
}),
|
|
161
|
-
),
|
|
161
|
+
).optional(),
|
|
162
162
|
});
|
|
163
163
|
|
|
164
164
|
export const UserWithJobBookmarksInputSchema = z.object({
|
|
165
|
-
cursor: z.string().nullable(),
|
|
166
|
-
limit: z.int().positive().nullable(),
|
|
165
|
+
cursor: z.string().optional().nullable(),
|
|
166
|
+
limit: z.int().positive().optional().nullable(),
|
|
167
167
|
});
|
|
168
168
|
|
|
169
169
|
export const UserWithJobBookmarksOutputSchema = z.object({
|