@zyacreatives/shared 2.2.77 → 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 +2 -0
- package/dist/schemas/user.js +7 -3
- package/package.json +1 -1
- package/src/schemas/user.ts +9 -5
package/dist/schemas/user.d.ts
CHANGED
|
@@ -405,6 +405,7 @@ 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
410
|
}, z.core.$strip>>>;
|
|
410
411
|
}, z.core.$strip>;
|
|
@@ -451,6 +452,7 @@ 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
457
|
}, z.core.$strip>>>;
|
|
456
458
|
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -123,9 +123,13 @@ 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
135
|
cursor: zod_openapi_1.z.string().optional().nullable(),
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -154,11 +154,15 @@ 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({
|