@zyacreatives/shared 1.9.91 → 1.9.92
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 +4 -0
- package/dist/schemas/job.js +9 -1
- package/package.json +1 -1
- package/src/schemas/job.ts +11 -3
package/dist/schemas/job.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
90
90
|
MONTHLY: "MONTHLY";
|
|
91
91
|
PROJECT_BASED: "PROJECT_BASED";
|
|
92
92
|
}>>;
|
|
93
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
93
94
|
}, z.core.$strip>;
|
|
94
95
|
export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
95
96
|
title: z.ZodString;
|
|
@@ -147,6 +148,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
147
148
|
MONTHLY: "MONTHLY";
|
|
148
149
|
PROJECT_BASED: "PROJECT_BASED";
|
|
149
150
|
}>>;
|
|
151
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
150
152
|
}, z.core.$strip>;
|
|
151
153
|
export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
152
154
|
id: z.ZodCUID2;
|
|
@@ -210,6 +212,7 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
210
212
|
MONTHLY: "MONTHLY";
|
|
211
213
|
PROJECT_BASED: "PROJECT_BASED";
|
|
212
214
|
}>>;
|
|
215
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
213
216
|
}, z.core.$strip>;
|
|
214
217
|
export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
215
218
|
id: z.ZodCUID2;
|
|
@@ -273,6 +276,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
273
276
|
MONTHLY: "MONTHLY";
|
|
274
277
|
PROJECT_BASED: "PROJECT_BASED";
|
|
275
278
|
}>>;
|
|
279
|
+
jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
276
280
|
}, z.core.$strip>;
|
|
277
281
|
export declare const CreateJobInputSchema: z.ZodObject<{
|
|
278
282
|
title: z.ZodString;
|
package/dist/schemas/job.js
CHANGED
|
@@ -39,6 +39,9 @@ exports.GigJobEntitySchema = exports.JobEntitySchema.extend({
|
|
|
39
39
|
wagesType: zod_1.z
|
|
40
40
|
.enum(Object.values(constants_1.WAGE_TYPES))
|
|
41
41
|
.optional(),
|
|
42
|
+
jobSections: zod_1.z
|
|
43
|
+
.array(zod_1.z.string())
|
|
44
|
+
.default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
|
|
42
45
|
});
|
|
43
46
|
exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(exports.GigJobEntitySchema.shape);
|
|
44
47
|
exports.RoleJobEntitySchema = exports.JobEntitySchema.extend({
|
|
@@ -59,6 +62,9 @@ exports.RoleJobEntitySchema = exports.JobEntitySchema.extend({
|
|
|
59
62
|
wagesType: zod_1.z
|
|
60
63
|
.enum(Object.values(constants_1.WAGE_TYPES))
|
|
61
64
|
.optional(),
|
|
65
|
+
jobSections: zod_1.z
|
|
66
|
+
.array(zod_1.z.string())
|
|
67
|
+
.default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
|
|
62
68
|
});
|
|
63
69
|
exports.JobWithRoleDetailsEntitySchema = exports.JobEntitySchema.extend(exports.RoleJobEntitySchema.shape);
|
|
64
70
|
exports.CreateJobInputSchema = zod_1.z
|
|
@@ -67,7 +73,9 @@ exports.CreateJobInputSchema = zod_1.z
|
|
|
67
73
|
brandId: zod_1.z.cuid2(),
|
|
68
74
|
jobType: zod_1.z.enum(Object.values(constants_1.JOB_TYPE)),
|
|
69
75
|
// status: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
|
|
70
|
-
employmentType: zod_1.z
|
|
76
|
+
employmentType: zod_1.z
|
|
77
|
+
.enum(Object.values(constants_1.EMPLOYMENT_TYPE))
|
|
78
|
+
.optional(),
|
|
71
79
|
workMode: zod_1.z.enum(Object.values(constants_1.WORK_MODE)),
|
|
72
80
|
gigType: zod_1.z
|
|
73
81
|
.enum(Object.values(constants_1.GIG_TYPE))
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -62,6 +62,9 @@ export const GigJobEntitySchema = JobEntitySchema.extend({
|
|
|
62
62
|
wagesType: z
|
|
63
63
|
.enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]])
|
|
64
64
|
.optional(),
|
|
65
|
+
jobSections: z
|
|
66
|
+
.array(z.string())
|
|
67
|
+
.default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
|
|
65
68
|
});
|
|
66
69
|
|
|
67
70
|
export const JobWithGigDetailsEntitySchema = JobEntitySchema.extend(
|
|
@@ -90,6 +93,9 @@ export const RoleJobEntitySchema = JobEntitySchema.extend({
|
|
|
90
93
|
wagesType: z
|
|
91
94
|
.enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]])
|
|
92
95
|
.optional(),
|
|
96
|
+
jobSections: z
|
|
97
|
+
.array(z.string())
|
|
98
|
+
.default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
|
|
93
99
|
});
|
|
94
100
|
|
|
95
101
|
export const JobWithRoleDetailsEntitySchema = JobEntitySchema.extend(
|
|
@@ -102,9 +108,11 @@ export const CreateJobInputSchema = z
|
|
|
102
108
|
brandId: z.cuid2(),
|
|
103
109
|
jobType: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
|
|
104
110
|
// status: z.enum(Object.values(JOB_TYPE) as [JobType, ...JobType[]]),
|
|
105
|
-
employmentType: z
|
|
106
|
-
|
|
107
|
-
|
|
111
|
+
employmentType: z
|
|
112
|
+
.enum(
|
|
113
|
+
Object.values(EMPLOYMENT_TYPE) as [EmploymentType, ...EmploymentType[]]
|
|
114
|
+
)
|
|
115
|
+
.optional(),
|
|
108
116
|
workMode: z.enum(Object.values(WORK_MODE) as [WorkMode, ...WorkMode[]]),
|
|
109
117
|
gigType: z
|
|
110
118
|
.enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
|