@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.
@@ -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>;
@@ -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.array(bookmark_1.BookmarkEntitySchema.extend({
127
- job: job_1.JobSearchDocumentSchema,
128
- })).optional(),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.77",
3
+ "version": "2.2.78",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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.array(
158
- BookmarkEntitySchema.extend({
159
- job: JobSearchDocumentSchema,
160
- }),
161
- ).optional(),
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({