@zyacreatives/shared 2.0.14 → 2.0.16
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/job.d.ts +6 -6
- package/dist/schemas/job.js +4 -4
- package/package.json +1 -1
- package/src/schemas/job.ts +7 -4
package/dist/schemas/job.d.ts
CHANGED
|
@@ -372,7 +372,7 @@ export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
|
372
372
|
}>;
|
|
373
373
|
overview: z.ZodString;
|
|
374
374
|
keyResponsibilities: z.ZodString;
|
|
375
|
-
requiredSkills: z.ZodString
|
|
375
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
376
376
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
377
377
|
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
378
378
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
@@ -403,7 +403,7 @@ export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
|
403
403
|
deliverables: z.ZodString;
|
|
404
404
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
405
405
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
406
|
-
requiredSkills: z.ZodString
|
|
406
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
407
407
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
408
408
|
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
409
409
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -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";
|
|
@@ -436,7 +436,7 @@ export declare const UpdateRoleJobInputSchema: z.ZodObject<{
|
|
|
436
436
|
}>>;
|
|
437
437
|
overview: z.ZodOptional<z.ZodString>;
|
|
438
438
|
keyResponsibilities: z.ZodOptional<z.ZodString>;
|
|
439
|
-
requiredSkills: z.ZodOptional<z.ZodString
|
|
439
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
440
440
|
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
441
441
|
companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
442
442
|
wagesMin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -462,12 +462,12 @@ 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>>;
|
|
469
469
|
aboutCompany: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
470
|
-
requiredSkills: z.ZodOptional<z.ZodString
|
|
470
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
471
471
|
wagesMin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
472
472
|
wagesMax: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
473
473
|
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
package/dist/schemas/job.js
CHANGED
|
@@ -161,7 +161,7 @@ exports.CreateRoleJobInputSchema = zod_1.z.object({
|
|
|
161
161
|
experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
|
|
162
162
|
overview: zod_1.z.string(),
|
|
163
163
|
keyResponsibilities: zod_1.z.string(),
|
|
164
|
-
requiredSkills: zod_1.z.string(),
|
|
164
|
+
requiredSkills: zod_1.z.array(zod_1.z.string()),
|
|
165
165
|
employeeRequirements: zod_1.z.string().optional(),
|
|
166
166
|
companyBenefits: zod_1.z.string().optional(),
|
|
167
167
|
wagesMin: zod_1.z.number().optional(),
|
|
@@ -179,7 +179,7 @@ exports.CreateGigJobInputSchema = zod_1.z.object({
|
|
|
179
179
|
deliverables: zod_1.z.string(),
|
|
180
180
|
employeeRequirements: zod_1.z.string().optional(),
|
|
181
181
|
aboutCompany: zod_1.z.string().optional(),
|
|
182
|
-
requiredSkills: zod_1.z.string(),
|
|
182
|
+
requiredSkills: zod_1.z.array(zod_1.z.string()),
|
|
183
183
|
wagesMin: zod_1.z.number().optional(),
|
|
184
184
|
wagesMax: zod_1.z.number().optional(),
|
|
185
185
|
wagesCurrency: zod_1.z
|
|
@@ -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
package/src/schemas/job.ts
CHANGED
|
@@ -217,7 +217,7 @@ export const CreateRoleJobInputSchema = z.object({
|
|
|
217
217
|
),
|
|
218
218
|
overview: z.string(),
|
|
219
219
|
keyResponsibilities: z.string(),
|
|
220
|
-
requiredSkills: z.string(),
|
|
220
|
+
requiredSkills: z.array(z.string()),
|
|
221
221
|
employeeRequirements: z.string().optional(),
|
|
222
222
|
companyBenefits: z.string().optional(),
|
|
223
223
|
wagesMin: z.number().optional(),
|
|
@@ -236,7 +236,7 @@ export const CreateGigJobInputSchema = z.object({
|
|
|
236
236
|
deliverables: z.string(),
|
|
237
237
|
employeeRequirements: z.string().optional(),
|
|
238
238
|
aboutCompany: z.string().optional(),
|
|
239
|
-
requiredSkills: z.string(),
|
|
239
|
+
requiredSkills: z.array(z.string()),
|
|
240
240
|
wagesMin: z.number().optional(),
|
|
241
241
|
wagesMax: z.number().optional(),
|
|
242
242
|
wagesCurrency: z
|
|
@@ -247,8 +247,11 @@ export const CreateGigJobInputSchema = z.object({
|
|
|
247
247
|
.optional(),
|
|
248
248
|
});
|
|
249
249
|
|
|
250
|
-
export const UpdateRoleJobInputSchema =
|
|
251
|
-
|
|
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(),
|