@zyacreatives/shared 2.0.14 → 2.0.15

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.
@@ -427,7 +427,7 @@ export declare const CreateGigJobInputSchema: z.ZodObject<{
427
427
  }>>;
428
428
  }, z.core.$strip>;
429
429
  export declare const UpdateRoleJobInputSchema: z.ZodObject<{
430
- id: z.ZodOptional<z.ZodCUID2>;
430
+ id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
431
431
  experienceLevel: z.ZodOptional<z.ZodEnum<{
432
432
  "0-1 year": "0-1 year";
433
433
  "1-3 years": "1-3 years";
@@ -462,7 +462,7 @@ export declare const UpdateRoleJobInputSchema: z.ZodObject<{
462
462
  }>>>;
463
463
  }, z.core.$strip>;
464
464
  export declare const UpdateGigJobInputSchema: z.ZodObject<{
465
- id: z.ZodOptional<z.ZodCUID2>;
465
+ id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
466
466
  overview: z.ZodOptional<z.ZodString>;
467
467
  deliverables: z.ZodOptional<z.ZodString>;
468
468
  employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -189,8 +189,8 @@ exports.CreateGigJobInputSchema = zod_1.z.object({
189
189
  .enum(Object.values(constants_1.WAGE_TYPES))
190
190
  .optional(),
191
191
  });
192
- exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial();
193
- exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial();
192
+ exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial().required({ id: true });
193
+ exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial().required({ id: true });
194
194
  exports.UpdateJobInputSchema = exports.CreateJobInputSchema.partial().extend({
195
195
  id: zod_1.z.cuid2(),
196
196
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -247,8 +247,11 @@ export const CreateGigJobInputSchema = z.object({
247
247
  .optional(),
248
248
  });
249
249
 
250
- export const UpdateRoleJobInputSchema = CreateRoleJobInputSchema.partial();
251
- export const UpdateGigJobInputSchema = CreateGigJobInputSchema.partial();
250
+ export const UpdateRoleJobInputSchema =
251
+ CreateRoleJobInputSchema.partial().required({ id: true });
252
+
253
+ export const UpdateGigJobInputSchema =
254
+ CreateGigJobInputSchema.partial().required({ id: true });
252
255
 
253
256
  export const UpdateJobInputSchema = CreateJobInputSchema.partial().extend({
254
257
  id: z.cuid2(),