@zyacreatives/shared 1.9.93 → 1.9.94
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 -8
- package/dist/schemas/job.js +4 -5
- package/package.json +1 -1
- package/src/schemas/job.ts +4 -7
package/dist/schemas/job.d.ts
CHANGED
|
@@ -329,7 +329,7 @@ export declare const CreateJobInputSchema: z.ZodObject<{
|
|
|
329
329
|
gigType: z.ZodOptional<z.ZodEnum<{
|
|
330
330
|
[x: string]: string;
|
|
331
331
|
}>>;
|
|
332
|
-
location: z.ZodDefault<z.
|
|
332
|
+
location: z.ZodDefault<z.ZodEnum<{
|
|
333
333
|
Africa: "Africa";
|
|
334
334
|
Asia: "Asia";
|
|
335
335
|
Europe: "Europe";
|
|
@@ -342,10 +342,10 @@ export declare const CreateJobInputSchema: z.ZodObject<{
|
|
|
342
342
|
Remote: "Remote";
|
|
343
343
|
EMEA: "EMEA";
|
|
344
344
|
"Asia Pacific": "Asia Pacific";
|
|
345
|
-
}
|
|
345
|
+
}>>;
|
|
346
346
|
}, z.core.$strip>;
|
|
347
347
|
export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
348
|
-
|
|
348
|
+
id: z.ZodCUID2;
|
|
349
349
|
experienceLevel: z.ZodEnum<{
|
|
350
350
|
"0-1 year": "0-1 year";
|
|
351
351
|
"1-3 years": "1-3 years";
|
|
@@ -380,7 +380,7 @@ export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
|
380
380
|
}>>;
|
|
381
381
|
}, z.core.$strip>;
|
|
382
382
|
export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
383
|
-
|
|
383
|
+
id: z.ZodCUID2;
|
|
384
384
|
overview: z.ZodString;
|
|
385
385
|
deliverables: z.ZodArray<z.ZodString>;
|
|
386
386
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -409,7 +409,6 @@ export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
|
409
409
|
}>>;
|
|
410
410
|
}, z.core.$strip>;
|
|
411
411
|
export declare const UpdateRoleJobInputSchema: z.ZodObject<{
|
|
412
|
-
jobId: z.ZodOptional<z.ZodCUID2>;
|
|
413
412
|
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
414
413
|
"0-1 year": "0-1 year";
|
|
415
414
|
"1-3 years": "1-3 years";
|
|
@@ -448,7 +447,6 @@ export declare const UpdateRoleJobInputSchema: z.ZodObject<{
|
|
|
448
447
|
}>>>;
|
|
449
448
|
}, z.core.$strip>;
|
|
450
449
|
export declare const UpdateGigJobInputSchema: z.ZodObject<{
|
|
451
|
-
jobId: z.ZodOptional<z.ZodCUID2>;
|
|
452
450
|
overview: z.ZodOptional<z.ZodString>;
|
|
453
451
|
deliverables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
454
452
|
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -495,7 +493,7 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
495
493
|
gigType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
496
494
|
[x: string]: string;
|
|
497
495
|
}>>>;
|
|
498
|
-
location: z.ZodOptional<z.ZodDefault<z.
|
|
496
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
499
497
|
Africa: "Africa";
|
|
500
498
|
Asia: "Asia";
|
|
501
499
|
Europe: "Europe";
|
|
@@ -508,7 +506,7 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
508
506
|
Remote: "Remote";
|
|
509
507
|
EMEA: "EMEA";
|
|
510
508
|
"Asia Pacific": "Asia Pacific";
|
|
511
|
-
}
|
|
509
|
+
}>>>;
|
|
512
510
|
id: z.ZodCUID2;
|
|
513
511
|
}, z.core.$strip>;
|
|
514
512
|
export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
package/dist/schemas/job.js
CHANGED
|
@@ -100,9 +100,8 @@ exports.CreateJobInputSchema = zod_1.z
|
|
|
100
100
|
.enum(Object.values(constants_1.GIG_TYPE))
|
|
101
101
|
.optional(),
|
|
102
102
|
location: zod_1.z
|
|
103
|
-
.
|
|
104
|
-
.
|
|
105
|
-
.default([constants_1.JOB_LOCATIONS.REMOTE]),
|
|
103
|
+
.enum(Object.values(constants_1.JOB_LOCATIONS))
|
|
104
|
+
.default(constants_1.JOB_LOCATIONS.REMOTE),
|
|
106
105
|
})
|
|
107
106
|
.superRefine((data, ctx) => {
|
|
108
107
|
if (data.jobType === constants_1.JOB_TYPE.ROLE) {
|
|
@@ -139,7 +138,7 @@ exports.CreateJobInputSchema = zod_1.z
|
|
|
139
138
|
}
|
|
140
139
|
});
|
|
141
140
|
exports.CreateRoleJobInputSchema = zod_1.z.object({
|
|
142
|
-
|
|
141
|
+
id: zod_1.z.cuid2(),
|
|
143
142
|
experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
|
|
144
143
|
overview: zod_1.z.string(),
|
|
145
144
|
keyResponsibilities: zod_1.z.array(zod_1.z.string()),
|
|
@@ -156,7 +155,7 @@ exports.CreateRoleJobInputSchema = zod_1.z.object({
|
|
|
156
155
|
.optional(),
|
|
157
156
|
});
|
|
158
157
|
exports.CreateGigJobInputSchema = zod_1.z.object({
|
|
159
|
-
|
|
158
|
+
id: zod_1.z.cuid2(),
|
|
160
159
|
overview: zod_1.z.string(),
|
|
161
160
|
deliverables: zod_1.z.array(zod_1.z.string()),
|
|
162
161
|
employeeRequirements: zod_1.z.array(zod_1.z.string()).optional(),
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -143,11 +143,8 @@ export const CreateJobInputSchema = z
|
|
|
143
143
|
.enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
|
|
144
144
|
.optional(),
|
|
145
145
|
location: z
|
|
146
|
-
.
|
|
147
|
-
|
|
148
|
-
)
|
|
149
|
-
.nonempty("At least one job location must be selected")
|
|
150
|
-
.default([JOB_LOCATIONS.REMOTE]),
|
|
146
|
+
.enum(Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]])
|
|
147
|
+
.default(JOB_LOCATIONS.REMOTE),
|
|
151
148
|
})
|
|
152
149
|
.superRefine((data, ctx) => {
|
|
153
150
|
if (data.jobType === JOB_TYPE.ROLE) {
|
|
@@ -186,7 +183,7 @@ export const CreateJobInputSchema = z
|
|
|
186
183
|
});
|
|
187
184
|
|
|
188
185
|
export const CreateRoleJobInputSchema = z.object({
|
|
189
|
-
|
|
186
|
+
id: z.cuid2(),
|
|
190
187
|
experienceLevel: z.enum(
|
|
191
188
|
Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
|
|
192
189
|
),
|
|
@@ -206,7 +203,7 @@ export const CreateRoleJobInputSchema = z.object({
|
|
|
206
203
|
});
|
|
207
204
|
|
|
208
205
|
export const CreateGigJobInputSchema = z.object({
|
|
209
|
-
|
|
206
|
+
id: z.cuid2(),
|
|
210
207
|
overview: z.string(),
|
|
211
208
|
deliverables: z.array(z.string()),
|
|
212
209
|
employeeRequirements: z.array(z.string()).optional(),
|