@zyacreatives/shared 2.0.12 → 2.0.14

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.
@@ -42,6 +42,9 @@ export declare const BaseJobEntitySchema: z.ZodObject<{
42
42
  EMEA: "EMEA";
43
43
  "Asia Pacific": "Asia Pacific";
44
44
  }>;
45
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
46
+ [x: string]: string;
47
+ }>>>;
45
48
  createdAt: z.ZodDate;
46
49
  updatedAt: z.ZodDate;
47
50
  }, z.core.$strip>;
@@ -93,6 +96,9 @@ export declare const JobEntitySchema: z.ZodObject<{
93
96
  EMEA: "EMEA";
94
97
  "Asia Pacific": "Asia Pacific";
95
98
  }>;
99
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
100
+ [x: string]: string;
101
+ }>>>;
96
102
  createdAt: z.ZodDate;
97
103
  updatedAt: z.ZodDate;
98
104
  }, z.core.$strip>;
@@ -100,10 +106,10 @@ export declare const GigJobEntitySchema: z.ZodObject<{
100
106
  id: z.ZodCUID2;
101
107
  jobType: z.ZodLiteral<"GIG">;
102
108
  overview: z.ZodString;
103
- deliverables: z.ZodArray<z.ZodString>;
104
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ deliverables: z.ZodString;
110
+ employeeRequirements: z.ZodOptional<z.ZodString>;
105
111
  aboutCompany: z.ZodOptional<z.ZodString>;
106
- requiredSkills: z.ZodArray<z.ZodString>;
112
+ requiredSkills: z.ZodString;
107
113
  wagesMin: z.ZodOptional<z.ZodNumber>;
108
114
  wagesMax: z.ZodOptional<z.ZodNumber>;
109
115
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -125,7 +131,6 @@ export declare const GigJobEntitySchema: z.ZodObject<{
125
131
  Monthly: "Monthly";
126
132
  "Project Based": "Project Based";
127
133
  }>>;
128
- jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
129
134
  }, z.core.$strip>;
130
135
  export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
131
136
  title: z.ZodString;
@@ -167,15 +172,18 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
167
172
  EMEA: "EMEA";
168
173
  "Asia Pacific": "Asia Pacific";
169
174
  }>;
175
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
176
+ [x: string]: string;
177
+ }>>>;
170
178
  createdAt: z.ZodDate;
171
179
  updatedAt: z.ZodDate;
172
180
  id: z.ZodCUID2;
173
181
  jobType: z.ZodLiteral<"GIG">;
174
182
  overview: z.ZodString;
175
- deliverables: z.ZodArray<z.ZodString>;
176
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
183
+ deliverables: z.ZodString;
184
+ employeeRequirements: z.ZodOptional<z.ZodString>;
177
185
  aboutCompany: z.ZodOptional<z.ZodString>;
178
- requiredSkills: z.ZodArray<z.ZodString>;
186
+ requiredSkills: z.ZodString;
179
187
  wagesMin: z.ZodOptional<z.ZodNumber>;
180
188
  wagesMax: z.ZodOptional<z.ZodNumber>;
181
189
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -197,7 +205,6 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
197
205
  Monthly: "Monthly";
198
206
  "Project Based": "Project Based";
199
207
  }>>;
200
- jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
201
208
  }, z.core.$strip>;
202
209
  export declare const RoleJobEntitySchema: z.ZodObject<{
203
210
  id: z.ZodCUID2;
@@ -209,10 +216,10 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
209
216
  "5+ years": "5+ years";
210
217
  }>;
211
218
  overview: z.ZodString;
212
- keyResponsibilities: z.ZodArray<z.ZodString>;
213
- requiredSkills: z.ZodArray<z.ZodString>;
214
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
215
- companyBenefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
219
+ keyResponsibilities: z.ZodString;
220
+ requiredSkills: z.ZodString;
221
+ employeeRequirements: z.ZodOptional<z.ZodString>;
222
+ companyBenefits: z.ZodOptional<z.ZodString>;
216
223
  wagesMin: z.ZodOptional<z.ZodNumber>;
217
224
  wagesMax: z.ZodOptional<z.ZodNumber>;
218
225
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -234,7 +241,6 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
234
241
  Monthly: "Monthly";
235
242
  "Project Based": "Project Based";
236
243
  }>>;
237
- jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
238
244
  }, z.core.$strip>;
239
245
  export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
240
246
  title: z.ZodString;
@@ -276,6 +282,9 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
276
282
  EMEA: "EMEA";
277
283
  "Asia Pacific": "Asia Pacific";
278
284
  }>;
285
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
286
+ [x: string]: string;
287
+ }>>>;
279
288
  createdAt: z.ZodDate;
280
289
  updatedAt: z.ZodDate;
281
290
  id: z.ZodCUID2;
@@ -287,10 +296,10 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
287
296
  "5+ years": "5+ years";
288
297
  }>;
289
298
  overview: z.ZodString;
290
- keyResponsibilities: z.ZodArray<z.ZodString>;
291
- requiredSkills: z.ZodArray<z.ZodString>;
292
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
293
- companyBenefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
+ keyResponsibilities: z.ZodString;
300
+ requiredSkills: z.ZodString;
301
+ employeeRequirements: z.ZodOptional<z.ZodString>;
302
+ companyBenefits: z.ZodOptional<z.ZodString>;
294
303
  wagesMin: z.ZodOptional<z.ZodNumber>;
295
304
  wagesMax: z.ZodOptional<z.ZodNumber>;
296
305
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -312,7 +321,6 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
312
321
  Monthly: "Monthly";
313
322
  "Project Based": "Project Based";
314
323
  }>>;
315
- jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
316
324
  }, z.core.$strip>;
317
325
  export declare const CreateJobInputSchema: z.ZodObject<{
318
326
  title: z.ZodString;
@@ -363,10 +371,10 @@ export declare const CreateRoleJobInputSchema: z.ZodObject<{
363
371
  "5+ years": "5+ years";
364
372
  }>;
365
373
  overview: z.ZodString;
366
- keyResponsibilities: z.ZodArray<z.ZodString>;
367
- requiredSkills: z.ZodArray<z.ZodString>;
368
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
369
- companyBenefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ keyResponsibilities: z.ZodString;
375
+ requiredSkills: z.ZodString;
376
+ employeeRequirements: z.ZodOptional<z.ZodString>;
377
+ companyBenefits: z.ZodOptional<z.ZodString>;
370
378
  wagesMin: z.ZodOptional<z.ZodNumber>;
371
379
  wagesMax: z.ZodOptional<z.ZodNumber>;
372
380
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -392,10 +400,10 @@ export declare const CreateRoleJobInputSchema: z.ZodObject<{
392
400
  export declare const CreateGigJobInputSchema: z.ZodObject<{
393
401
  id: z.ZodCUID2;
394
402
  overview: z.ZodString;
395
- deliverables: z.ZodArray<z.ZodString>;
396
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
+ deliverables: z.ZodString;
404
+ employeeRequirements: z.ZodOptional<z.ZodString>;
397
405
  aboutCompany: z.ZodOptional<z.ZodString>;
398
- requiredSkills: z.ZodArray<z.ZodString>;
406
+ requiredSkills: z.ZodString;
399
407
  wagesMin: z.ZodOptional<z.ZodNumber>;
400
408
  wagesMax: z.ZodOptional<z.ZodNumber>;
401
409
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -427,10 +435,10 @@ export declare const UpdateRoleJobInputSchema: z.ZodObject<{
427
435
  "5+ years": "5+ years";
428
436
  }>>;
429
437
  overview: z.ZodOptional<z.ZodString>;
430
- keyResponsibilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
431
- requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
432
- employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
433
- companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
438
+ keyResponsibilities: z.ZodOptional<z.ZodString>;
439
+ requiredSkills: z.ZodOptional<z.ZodString>;
440
+ employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
441
+ companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodString>>;
434
442
  wagesMin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
435
443
  wagesMax: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
436
444
  wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
@@ -456,10 +464,10 @@ export declare const UpdateRoleJobInputSchema: z.ZodObject<{
456
464
  export declare const UpdateGigJobInputSchema: z.ZodObject<{
457
465
  id: z.ZodOptional<z.ZodCUID2>;
458
466
  overview: z.ZodOptional<z.ZodString>;
459
- deliverables: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
- employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
467
+ deliverables: z.ZodOptional<z.ZodString>;
468
+ employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
461
469
  aboutCompany: z.ZodOptional<z.ZodOptional<z.ZodString>>;
462
- requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
470
+ requiredSkills: z.ZodOptional<z.ZodString>;
463
471
  wagesMin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
464
472
  wagesMax: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
465
473
  wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
@@ -563,15 +571,18 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
563
571
  EMEA: "EMEA";
564
572
  "Asia Pacific": "Asia Pacific";
565
573
  }>;
574
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
575
+ [x: string]: string;
576
+ }>>>;
566
577
  createdAt: z.ZodDate;
567
578
  updatedAt: z.ZodDate;
568
579
  id: z.ZodCUID2;
569
580
  jobType: z.ZodLiteral<"GIG">;
570
581
  overview: z.ZodString;
571
- deliverables: z.ZodArray<z.ZodString>;
572
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
582
+ deliverables: z.ZodString;
583
+ employeeRequirements: z.ZodOptional<z.ZodString>;
573
584
  aboutCompany: z.ZodOptional<z.ZodString>;
574
- requiredSkills: z.ZodArray<z.ZodString>;
585
+ requiredSkills: z.ZodString;
575
586
  wagesMin: z.ZodOptional<z.ZodNumber>;
576
587
  wagesMax: z.ZodOptional<z.ZodNumber>;
577
588
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -593,7 +604,6 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
593
604
  Monthly: "Monthly";
594
605
  "Project Based": "Project Based";
595
606
  }>>;
596
- jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
597
607
  }, z.core.$strip>, z.ZodObject<{
598
608
  title: z.ZodString;
599
609
  brandId: z.ZodCUID2;
@@ -634,6 +644,9 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
634
644
  EMEA: "EMEA";
635
645
  "Asia Pacific": "Asia Pacific";
636
646
  }>;
647
+ jobSections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
648
+ [x: string]: string;
649
+ }>>>;
637
650
  createdAt: z.ZodDate;
638
651
  updatedAt: z.ZodDate;
639
652
  id: z.ZodCUID2;
@@ -645,10 +658,10 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
645
658
  "5+ years": "5+ years";
646
659
  }>;
647
660
  overview: z.ZodString;
648
- keyResponsibilities: z.ZodArray<z.ZodString>;
649
- requiredSkills: z.ZodArray<z.ZodString>;
650
- employeeRequirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
651
- companyBenefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
661
+ keyResponsibilities: z.ZodString;
662
+ requiredSkills: z.ZodString;
663
+ employeeRequirements: z.ZodOptional<z.ZodString>;
664
+ companyBenefits: z.ZodOptional<z.ZodString>;
652
665
  wagesMin: z.ZodOptional<z.ZodNumber>;
653
666
  wagesMax: z.ZodOptional<z.ZodNumber>;
654
667
  wagesCurrency: z.ZodOptional<z.ZodEnum<{
@@ -670,5 +683,4 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
670
683
  Monthly: "Monthly";
671
684
  "Project Based": "Project Based";
672
685
  }>>;
673
- jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
674
686
  }, z.core.$strip>], "jobType">;
@@ -18,6 +18,13 @@ exports.BaseJobEntitySchema = zod_1.z.object({
18
18
  .enum(Object.values(constants_1.GIG_TYPE))
19
19
  .optional(),
20
20
  location: zod_1.z.enum(Object.values(constants_1.JOB_LOCATIONS)),
21
+ jobSections: zod_1.z
22
+ .array(JobSectionEnum)
23
+ .default([
24
+ constants_1.JOB_SECTIONS.PERSONAL_INFORMATION,
25
+ constants_1.JOB_SECTIONS.PROFESSIONAL_INFORMATION,
26
+ constants_1.JOB_SECTIONS.RESUME,
27
+ ]),
21
28
  createdAt: zod_1.z.date(),
22
29
  updatedAt: zod_1.z.date(),
23
30
  });
@@ -40,6 +47,13 @@ exports.JobEntitySchema = zod_1.z.object({
40
47
  .enum(Object.values(constants_1.GIG_TYPE))
41
48
  .optional(),
42
49
  location: zod_1.z.enum(Object.values(constants_1.JOB_LOCATIONS)),
50
+ jobSections: zod_1.z
51
+ .array(JobSectionEnum)
52
+ .default([
53
+ constants_1.JOB_SECTIONS.PERSONAL_INFORMATION,
54
+ constants_1.JOB_SECTIONS.PROFESSIONAL_INFORMATION,
55
+ constants_1.JOB_SECTIONS.RESUME,
56
+ ]),
43
57
  createdAt: zod_1.z.date(),
44
58
  updatedAt: zod_1.z.date(),
45
59
  });
@@ -47,10 +61,10 @@ exports.GigJobEntitySchema = zod_1.z.object({
47
61
  id: zod_1.z.cuid2(),
48
62
  jobType: zod_1.z.literal(constants_1.JOB_TYPE.GIG),
49
63
  overview: zod_1.z.string(),
50
- deliverables: zod_1.z.array(zod_1.z.string()),
51
- employeeRequirements: zod_1.z.array(zod_1.z.string()).optional(),
64
+ deliverables: zod_1.z.string(),
65
+ employeeRequirements: zod_1.z.string().optional(),
52
66
  aboutCompany: zod_1.z.string().optional(),
53
- requiredSkills: zod_1.z.array(zod_1.z.string()),
67
+ requiredSkills: zod_1.z.string(),
54
68
  wagesMin: zod_1.z.number().optional(),
55
69
  wagesMax: zod_1.z.number().optional(),
56
70
  wagesCurrency: zod_1.z
@@ -59,9 +73,6 @@ exports.GigJobEntitySchema = zod_1.z.object({
59
73
  wagesType: zod_1.z
60
74
  .enum(Object.values(constants_1.WAGE_TYPES))
61
75
  .optional(),
62
- jobSections: zod_1.z
63
- .array(zod_1.z.string())
64
- .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
65
76
  });
66
77
  exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(exports.GigJobEntitySchema.shape);
67
78
  exports.RoleJobEntitySchema = zod_1.z.object({
@@ -69,10 +80,10 @@ exports.RoleJobEntitySchema = zod_1.z.object({
69
80
  jobType: zod_1.z.literal(constants_1.JOB_TYPE.ROLE),
70
81
  experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
71
82
  overview: zod_1.z.string(),
72
- keyResponsibilities: zod_1.z.array(zod_1.z.string()),
73
- requiredSkills: zod_1.z.array(zod_1.z.string()),
74
- employeeRequirements: zod_1.z.array(zod_1.z.string()).optional(),
75
- companyBenefits: zod_1.z.array(zod_1.z.string()).optional(),
83
+ keyResponsibilities: zod_1.z.string(),
84
+ requiredSkills: zod_1.z.string(),
85
+ employeeRequirements: zod_1.z.string().optional(),
86
+ companyBenefits: zod_1.z.string().optional(),
76
87
  wagesMin: zod_1.z.number().optional(),
77
88
  wagesMax: zod_1.z.number().optional(),
78
89
  wagesCurrency: zod_1.z
@@ -81,9 +92,6 @@ exports.RoleJobEntitySchema = zod_1.z.object({
81
92
  wagesType: zod_1.z
82
93
  .enum(Object.values(constants_1.WAGE_TYPES))
83
94
  .optional(),
84
- jobSections: zod_1.z
85
- .array(zod_1.z.string())
86
- .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
87
95
  });
88
96
  exports.JobWithRoleDetailsEntitySchema = exports.JobEntitySchema.extend(exports.RoleJobEntitySchema.shape);
89
97
  exports.CreateJobInputSchema = zod_1.z
@@ -152,10 +160,10 @@ exports.CreateRoleJobInputSchema = zod_1.z.object({
152
160
  id: zod_1.z.cuid2(),
153
161
  experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
154
162
  overview: zod_1.z.string(),
155
- keyResponsibilities: zod_1.z.array(zod_1.z.string()),
156
- requiredSkills: zod_1.z.array(zod_1.z.string()),
157
- employeeRequirements: zod_1.z.array(zod_1.z.string()).optional(),
158
- companyBenefits: zod_1.z.array(zod_1.z.string()).optional(),
163
+ keyResponsibilities: zod_1.z.string(),
164
+ requiredSkills: zod_1.z.string(),
165
+ employeeRequirements: zod_1.z.string().optional(),
166
+ companyBenefits: zod_1.z.string().optional(),
159
167
  wagesMin: zod_1.z.number().optional(),
160
168
  wagesMax: zod_1.z.number().optional(),
161
169
  wagesCurrency: zod_1.z
@@ -168,10 +176,10 @@ exports.CreateRoleJobInputSchema = zod_1.z.object({
168
176
  exports.CreateGigJobInputSchema = zod_1.z.object({
169
177
  id: zod_1.z.cuid2(),
170
178
  overview: zod_1.z.string(),
171
- deliverables: zod_1.z.array(zod_1.z.string()),
172
- employeeRequirements: zod_1.z.array(zod_1.z.string()).optional(),
179
+ deliverables: zod_1.z.string(),
180
+ employeeRequirements: zod_1.z.string().optional(),
173
181
  aboutCompany: zod_1.z.string().optional(),
174
- requiredSkills: zod_1.z.array(zod_1.z.string()),
182
+ requiredSkills: zod_1.z.string(),
175
183
  wagesMin: zod_1.z.number().optional(),
176
184
  wagesMax: zod_1.z.number().optional(),
177
185
  wagesCurrency: zod_1.z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -45,6 +45,13 @@ export const BaseJobEntitySchema = z.object({
45
45
  location: z.enum(
46
46
  Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]]
47
47
  ),
48
+ jobSections: z
49
+ .array(JobSectionEnum)
50
+ .default([
51
+ JOB_SECTIONS.PERSONAL_INFORMATION,
52
+ JOB_SECTIONS.PROFESSIONAL_INFORMATION,
53
+ JOB_SECTIONS.RESUME,
54
+ ]),
48
55
  createdAt: z.date(),
49
56
  updatedAt: z.date(),
50
57
  });
@@ -73,7 +80,15 @@ export const JobEntitySchema = z.object({
73
80
  location: z.enum(
74
81
  Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]]
75
82
  ),
83
+ jobSections: z
84
+ .array(JobSectionEnum)
85
+ .default([
86
+ JOB_SECTIONS.PERSONAL_INFORMATION,
87
+ JOB_SECTIONS.PROFESSIONAL_INFORMATION,
88
+ JOB_SECTIONS.RESUME,
89
+ ]),
76
90
  createdAt: z.date(),
91
+
77
92
  updatedAt: z.date(),
78
93
  });
79
94
 
@@ -81,10 +96,10 @@ export const GigJobEntitySchema = z.object({
81
96
  id: z.cuid2(),
82
97
  jobType: z.literal(JOB_TYPE.GIG),
83
98
  overview: z.string(),
84
- deliverables: z.array(z.string()),
85
- employeeRequirements: z.array(z.string()).optional(),
99
+ deliverables: z.string(),
100
+ employeeRequirements: z.string().optional(),
86
101
  aboutCompany: z.string().optional(),
87
- requiredSkills: z.array(z.string()),
102
+ requiredSkills: z.string(),
88
103
  wagesMin: z.number().optional(),
89
104
  wagesMax: z.number().optional(),
90
105
  wagesCurrency: z
@@ -93,9 +108,6 @@ export const GigJobEntitySchema = z.object({
93
108
  wagesType: z
94
109
  .enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]])
95
110
  .optional(),
96
- jobSections: z
97
- .array(z.string())
98
- .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
99
111
  });
100
112
 
101
113
  export const JobWithGigDetailsEntitySchema = JobEntitySchema.extend(
@@ -109,10 +121,10 @@ export const RoleJobEntitySchema = z.object({
109
121
  Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
110
122
  ),
111
123
  overview: z.string(),
112
- keyResponsibilities: z.array(z.string()),
113
- requiredSkills: z.array(z.string()),
114
- employeeRequirements: z.array(z.string()).optional(),
115
- companyBenefits: z.array(z.string()).optional(),
124
+ keyResponsibilities: z.string(),
125
+ requiredSkills: z.string(),
126
+ employeeRequirements: z.string().optional(),
127
+ companyBenefits: z.string().optional(),
116
128
  wagesMin: z.number().optional(),
117
129
  wagesMax: z.number().optional(),
118
130
  wagesCurrency: z
@@ -121,9 +133,6 @@ export const RoleJobEntitySchema = z.object({
121
133
  wagesType: z
122
134
  .enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]])
123
135
  .optional(),
124
- jobSections: z
125
- .array(z.string())
126
- .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
127
136
  });
128
137
 
129
138
  export const JobWithRoleDetailsEntitySchema = JobEntitySchema.extend(
@@ -207,10 +216,10 @@ export const CreateRoleJobInputSchema = z.object({
207
216
  Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
208
217
  ),
209
218
  overview: z.string(),
210
- keyResponsibilities: z.array(z.string()),
211
- requiredSkills: z.array(z.string()),
212
- employeeRequirements: z.array(z.string()).optional(),
213
- companyBenefits: z.array(z.string()).optional(),
219
+ keyResponsibilities: z.string(),
220
+ requiredSkills: z.string(),
221
+ employeeRequirements: z.string().optional(),
222
+ companyBenefits: z.string().optional(),
214
223
  wagesMin: z.number().optional(),
215
224
  wagesMax: z.number().optional(),
216
225
  wagesCurrency: z
@@ -224,10 +233,10 @@ export const CreateRoleJobInputSchema = z.object({
224
233
  export const CreateGigJobInputSchema = z.object({
225
234
  id: z.cuid2(),
226
235
  overview: z.string(),
227
- deliverables: z.array(z.string()),
228
- employeeRequirements: z.array(z.string()).optional(),
236
+ deliverables: z.string(),
237
+ employeeRequirements: z.string().optional(),
229
238
  aboutCompany: z.string().optional(),
230
- requiredSkills: z.array(z.string()),
239
+ requiredSkills: z.string(),
231
240
  wagesMin: z.number().optional(),
232
241
  wagesMax: z.number().optional(),
233
242
  wagesCurrency: z