@zyacreatives/shared 1.9.95 → 1.9.96
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 +36 -24
- package/dist/schemas/job.js +0 -4
- package/package.json +1 -1
- package/src/schemas/job.ts +0 -6
package/dist/schemas/job.d.ts
CHANGED
|
@@ -75,9 +75,15 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
75
75
|
brandId: z.ZodCUID2;
|
|
76
76
|
brandName: z.ZodCUID2;
|
|
77
77
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
78
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
[x: string]: string;
|
|
80
|
+
}>>;
|
|
78
81
|
workMode: z.ZodEnum<{
|
|
79
82
|
[x: string]: string;
|
|
80
83
|
}>;
|
|
84
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
85
|
+
[x: string]: string;
|
|
86
|
+
}>>;
|
|
81
87
|
location: z.ZodEnum<{
|
|
82
88
|
Africa: "Africa";
|
|
83
89
|
Asia: "Asia";
|
|
@@ -96,10 +102,6 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
96
102
|
updatedAt: z.ZodDate;
|
|
97
103
|
id: z.ZodCUID2;
|
|
98
104
|
jobType: z.ZodLiteral<string>;
|
|
99
|
-
employmentType: z.ZodNull;
|
|
100
|
-
gigType: z.ZodEnum<{
|
|
101
|
-
[x: string]: string;
|
|
102
|
-
}>;
|
|
103
105
|
overview: z.ZodString;
|
|
104
106
|
deliverables: z.ZodArray<z.ZodString>;
|
|
105
107
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -133,9 +135,15 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
133
135
|
brandId: z.ZodCUID2;
|
|
134
136
|
brandName: z.ZodCUID2;
|
|
135
137
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
138
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
139
|
+
[x: string]: string;
|
|
140
|
+
}>>;
|
|
136
141
|
workMode: z.ZodEnum<{
|
|
137
142
|
[x: string]: string;
|
|
138
143
|
}>;
|
|
144
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
[x: string]: string;
|
|
146
|
+
}>>;
|
|
139
147
|
location: z.ZodEnum<{
|
|
140
148
|
Africa: "Africa";
|
|
141
149
|
Asia: "Asia";
|
|
@@ -154,10 +162,6 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
154
162
|
updatedAt: z.ZodDate;
|
|
155
163
|
id: z.ZodCUID2;
|
|
156
164
|
jobType: z.ZodLiteral<string>;
|
|
157
|
-
employmentType: z.ZodNull;
|
|
158
|
-
gigType: z.ZodEnum<{
|
|
159
|
-
[x: string]: string;
|
|
160
|
-
}>;
|
|
161
165
|
overview: z.ZodString;
|
|
162
166
|
deliverables: z.ZodArray<z.ZodString>;
|
|
163
167
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -191,9 +195,15 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
191
195
|
brandId: z.ZodCUID2;
|
|
192
196
|
brandName: z.ZodCUID2;
|
|
193
197
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
198
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
[x: string]: string;
|
|
200
|
+
}>>;
|
|
194
201
|
workMode: z.ZodEnum<{
|
|
195
202
|
[x: string]: string;
|
|
196
203
|
}>;
|
|
204
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
205
|
+
[x: string]: string;
|
|
206
|
+
}>>;
|
|
197
207
|
location: z.ZodEnum<{
|
|
198
208
|
Africa: "Africa";
|
|
199
209
|
Asia: "Asia";
|
|
@@ -212,10 +222,6 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
212
222
|
updatedAt: z.ZodDate;
|
|
213
223
|
id: z.ZodCUID2;
|
|
214
224
|
jobType: z.ZodLiteral<string>;
|
|
215
|
-
gigType: z.ZodNull;
|
|
216
|
-
employmentType: z.ZodEnum<{
|
|
217
|
-
[x: string]: string;
|
|
218
|
-
}>;
|
|
219
225
|
experienceLevel: z.ZodEnum<{
|
|
220
226
|
"0-1 year": "0-1 year";
|
|
221
227
|
"1-3 years": "1-3 years";
|
|
@@ -255,9 +261,15 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
255
261
|
brandId: z.ZodCUID2;
|
|
256
262
|
brandName: z.ZodCUID2;
|
|
257
263
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
264
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
265
|
+
[x: string]: string;
|
|
266
|
+
}>>;
|
|
258
267
|
workMode: z.ZodEnum<{
|
|
259
268
|
[x: string]: string;
|
|
260
269
|
}>;
|
|
270
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
271
|
+
[x: string]: string;
|
|
272
|
+
}>>;
|
|
261
273
|
location: z.ZodEnum<{
|
|
262
274
|
Africa: "Africa";
|
|
263
275
|
Asia: "Asia";
|
|
@@ -276,10 +288,6 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
276
288
|
updatedAt: z.ZodDate;
|
|
277
289
|
id: z.ZodCUID2;
|
|
278
290
|
jobType: z.ZodLiteral<string>;
|
|
279
|
-
gigType: z.ZodNull;
|
|
280
|
-
employmentType: z.ZodEnum<{
|
|
281
|
-
[x: string]: string;
|
|
282
|
-
}>;
|
|
283
291
|
experienceLevel: z.ZodEnum<{
|
|
284
292
|
"0-1 year": "0-1 year";
|
|
285
293
|
"1-3 years": "1-3 years";
|
|
@@ -514,9 +522,15 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
514
522
|
brandId: z.ZodCUID2;
|
|
515
523
|
brandName: z.ZodCUID2;
|
|
516
524
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
525
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
526
|
+
[x: string]: string;
|
|
527
|
+
}>>;
|
|
517
528
|
workMode: z.ZodEnum<{
|
|
518
529
|
[x: string]: string;
|
|
519
530
|
}>;
|
|
531
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
532
|
+
[x: string]: string;
|
|
533
|
+
}>>;
|
|
520
534
|
location: z.ZodEnum<{
|
|
521
535
|
Africa: "Africa";
|
|
522
536
|
Asia: "Asia";
|
|
@@ -535,10 +549,6 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
535
549
|
updatedAt: z.ZodDate;
|
|
536
550
|
id: z.ZodCUID2;
|
|
537
551
|
jobType: z.ZodLiteral<string>;
|
|
538
|
-
employmentType: z.ZodNull;
|
|
539
|
-
gigType: z.ZodEnum<{
|
|
540
|
-
[x: string]: string;
|
|
541
|
-
}>;
|
|
542
552
|
overview: z.ZodString;
|
|
543
553
|
deliverables: z.ZodArray<z.ZodString>;
|
|
544
554
|
employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -571,9 +581,15 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
571
581
|
brandId: z.ZodCUID2;
|
|
572
582
|
brandName: z.ZodCUID2;
|
|
573
583
|
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
584
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
585
|
+
[x: string]: string;
|
|
586
|
+
}>>;
|
|
574
587
|
workMode: z.ZodEnum<{
|
|
575
588
|
[x: string]: string;
|
|
576
589
|
}>;
|
|
590
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
591
|
+
[x: string]: string;
|
|
592
|
+
}>>;
|
|
577
593
|
location: z.ZodEnum<{
|
|
578
594
|
Africa: "Africa";
|
|
579
595
|
Asia: "Asia";
|
|
@@ -592,10 +608,6 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
592
608
|
updatedAt: z.ZodDate;
|
|
593
609
|
id: z.ZodCUID2;
|
|
594
610
|
jobType: z.ZodLiteral<string>;
|
|
595
|
-
gigType: z.ZodNull;
|
|
596
|
-
employmentType: z.ZodEnum<{
|
|
597
|
-
[x: string]: string;
|
|
598
|
-
}>;
|
|
599
611
|
experienceLevel: z.ZodEnum<{
|
|
600
612
|
"0-1 year": "0-1 year";
|
|
601
613
|
"1-3 years": "1-3 years";
|
package/dist/schemas/job.js
CHANGED
|
@@ -43,8 +43,6 @@ exports.JobEntitySchema = zod_1.z.object({
|
|
|
43
43
|
exports.GigJobEntitySchema = exports.JobEntitySchema.extend({
|
|
44
44
|
id: zod_1.z.cuid2(),
|
|
45
45
|
jobType: zod_1.z.literal(constants_1.JOB_TYPE.GIG),
|
|
46
|
-
employmentType: zod_1.z.null(),
|
|
47
|
-
gigType: zod_1.z.enum(Object.values(constants_1.GIG_TYPE)),
|
|
48
46
|
overview: zod_1.z.string(),
|
|
49
47
|
deliverables: zod_1.z.array(zod_1.z.string()),
|
|
50
48
|
employeeRequirements: zod_1.z.array(zod_1.z.string()).optional(),
|
|
@@ -66,8 +64,6 @@ exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(exports.G
|
|
|
66
64
|
exports.RoleJobEntitySchema = exports.JobEntitySchema.extend({
|
|
67
65
|
id: zod_1.z.cuid2(),
|
|
68
66
|
jobType: zod_1.z.literal(constants_1.JOB_TYPE.ROLE),
|
|
69
|
-
gigType: zod_1.z.null(), // enforce null for ROLE
|
|
70
|
-
employmentType: zod_1.z.enum(Object.values(constants_1.EMPLOYMENT_TYPE)),
|
|
71
67
|
experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
|
|
72
68
|
overview: zod_1.z.string(),
|
|
73
69
|
keyResponsibilities: zod_1.z.array(zod_1.z.string()),
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -72,8 +72,6 @@ export const JobEntitySchema = z.object({
|
|
|
72
72
|
export const GigJobEntitySchema = JobEntitySchema.extend({
|
|
73
73
|
id: z.cuid2(),
|
|
74
74
|
jobType: z.literal(JOB_TYPE.GIG),
|
|
75
|
-
employmentType: z.null(),
|
|
76
|
-
gigType: z.enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]]),
|
|
77
75
|
overview: z.string(),
|
|
78
76
|
deliverables: z.array(z.string()),
|
|
79
77
|
employeeRequirements: z.array(z.string()).optional(),
|
|
@@ -99,10 +97,6 @@ export const JobWithGigDetailsEntitySchema = JobEntitySchema.extend(
|
|
|
99
97
|
export const RoleJobEntitySchema = JobEntitySchema.extend({
|
|
100
98
|
id: z.cuid2(),
|
|
101
99
|
jobType: z.literal(JOB_TYPE.ROLE),
|
|
102
|
-
gigType: z.null(), // enforce null for ROLE
|
|
103
|
-
employmentType: z.enum(
|
|
104
|
-
Object.values(EMPLOYMENT_TYPE) as [EmploymentType, ...EmploymentType[]]
|
|
105
|
-
),
|
|
106
100
|
experienceLevel: z.enum(
|
|
107
101
|
Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
|
|
108
102
|
),
|