@zyacreatives/shared 1.9.96 → 1.9.97
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 +0 -58
- package/dist/schemas/job.js +2 -2
- package/package.json +1 -1
- package/src/schemas/job.ts +2 -2
package/dist/schemas/job.d.ts
CHANGED
|
@@ -71,35 +71,6 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
71
71
|
updatedAt: z.ZodDate;
|
|
72
72
|
}, z.core.$strip>;
|
|
73
73
|
export declare const GigJobEntitySchema: z.ZodObject<{
|
|
74
|
-
title: z.ZodString;
|
|
75
|
-
brandId: z.ZodCUID2;
|
|
76
|
-
brandName: z.ZodCUID2;
|
|
77
|
-
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
78
|
-
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
[x: string]: string;
|
|
80
|
-
}>>;
|
|
81
|
-
workMode: z.ZodEnum<{
|
|
82
|
-
[x: string]: string;
|
|
83
|
-
}>;
|
|
84
|
-
gigType: z.ZodOptional<z.ZodEnum<{
|
|
85
|
-
[x: string]: string;
|
|
86
|
-
}>>;
|
|
87
|
-
location: z.ZodEnum<{
|
|
88
|
-
Africa: "Africa";
|
|
89
|
-
Asia: "Asia";
|
|
90
|
-
Europe: "Europe";
|
|
91
|
-
"North America": "North America";
|
|
92
|
-
"South America": "South America";
|
|
93
|
-
"Middle East": "Middle East";
|
|
94
|
-
Oceania: "Oceania";
|
|
95
|
-
Global: "Global";
|
|
96
|
-
Other: "Other";
|
|
97
|
-
Remote: "Remote";
|
|
98
|
-
EMEA: "EMEA";
|
|
99
|
-
"Asia Pacific": "Asia Pacific";
|
|
100
|
-
}>;
|
|
101
|
-
createdAt: z.ZodDate;
|
|
102
|
-
updatedAt: z.ZodDate;
|
|
103
74
|
id: z.ZodCUID2;
|
|
104
75
|
jobType: z.ZodLiteral<string>;
|
|
105
76
|
overview: z.ZodString;
|
|
@@ -191,35 +162,6 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
191
162
|
jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
192
163
|
}, z.core.$strip>;
|
|
193
164
|
export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
194
|
-
title: z.ZodString;
|
|
195
|
-
brandId: z.ZodCUID2;
|
|
196
|
-
brandName: z.ZodCUID2;
|
|
197
|
-
brandImgUrl: z.ZodOptional<z.ZodCUID2>;
|
|
198
|
-
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
199
|
-
[x: string]: string;
|
|
200
|
-
}>>;
|
|
201
|
-
workMode: z.ZodEnum<{
|
|
202
|
-
[x: string]: string;
|
|
203
|
-
}>;
|
|
204
|
-
gigType: z.ZodOptional<z.ZodEnum<{
|
|
205
|
-
[x: string]: string;
|
|
206
|
-
}>>;
|
|
207
|
-
location: z.ZodEnum<{
|
|
208
|
-
Africa: "Africa";
|
|
209
|
-
Asia: "Asia";
|
|
210
|
-
Europe: "Europe";
|
|
211
|
-
"North America": "North America";
|
|
212
|
-
"South America": "South America";
|
|
213
|
-
"Middle East": "Middle East";
|
|
214
|
-
Oceania: "Oceania";
|
|
215
|
-
Global: "Global";
|
|
216
|
-
Other: "Other";
|
|
217
|
-
Remote: "Remote";
|
|
218
|
-
EMEA: "EMEA";
|
|
219
|
-
"Asia Pacific": "Asia Pacific";
|
|
220
|
-
}>;
|
|
221
|
-
createdAt: z.ZodDate;
|
|
222
|
-
updatedAt: z.ZodDate;
|
|
223
165
|
id: z.ZodCUID2;
|
|
224
166
|
jobType: z.ZodLiteral<string>;
|
|
225
167
|
experienceLevel: z.ZodEnum<{
|
package/dist/schemas/job.js
CHANGED
|
@@ -40,7 +40,7 @@ exports.JobEntitySchema = zod_1.z.object({
|
|
|
40
40
|
createdAt: zod_1.z.date(),
|
|
41
41
|
updatedAt: zod_1.z.date(),
|
|
42
42
|
});
|
|
43
|
-
exports.GigJobEntitySchema =
|
|
43
|
+
exports.GigJobEntitySchema = zod_1.z.object({
|
|
44
44
|
id: zod_1.z.cuid2(),
|
|
45
45
|
jobType: zod_1.z.literal(constants_1.JOB_TYPE.GIG),
|
|
46
46
|
overview: zod_1.z.string(),
|
|
@@ -61,7 +61,7 @@ exports.GigJobEntitySchema = exports.JobEntitySchema.extend({
|
|
|
61
61
|
.default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
|
|
62
62
|
});
|
|
63
63
|
exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(exports.GigJobEntitySchema.shape);
|
|
64
|
-
exports.RoleJobEntitySchema =
|
|
64
|
+
exports.RoleJobEntitySchema = zod_1.z.object({
|
|
65
65
|
id: zod_1.z.cuid2(),
|
|
66
66
|
jobType: zod_1.z.literal(constants_1.JOB_TYPE.ROLE),
|
|
67
67
|
experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -69,7 +69,7 @@ export const JobEntitySchema = z.object({
|
|
|
69
69
|
updatedAt: z.date(),
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
export const GigJobEntitySchema =
|
|
72
|
+
export const GigJobEntitySchema = z.object({
|
|
73
73
|
id: z.cuid2(),
|
|
74
74
|
jobType: z.literal(JOB_TYPE.GIG),
|
|
75
75
|
overview: z.string(),
|
|
@@ -94,7 +94,7 @@ export const JobWithGigDetailsEntitySchema = JobEntitySchema.extend(
|
|
|
94
94
|
GigJobEntitySchema.shape
|
|
95
95
|
);
|
|
96
96
|
|
|
97
|
-
export const RoleJobEntitySchema =
|
|
97
|
+
export const RoleJobEntitySchema = z.object({
|
|
98
98
|
id: z.cuid2(),
|
|
99
99
|
jobType: z.literal(JOB_TYPE.ROLE),
|
|
100
100
|
experienceLevel: z.enum(
|