@zyacreatives/shared 1.9.8 → 1.9.9
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 +10 -10
- package/dist/schemas/job.js +1 -3
- package/package.json +1 -1
- package/src/schemas/job.ts +3 -5
package/dist/schemas/job.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
17
17
|
gigType: z.ZodNullable<z.ZodEnum<{
|
|
18
18
|
[x: string]: string;
|
|
19
19
|
}>>;
|
|
20
|
-
location: z.
|
|
20
|
+
location: z.ZodEnum<{
|
|
21
21
|
Africa: "Africa";
|
|
22
22
|
Asia: "Asia";
|
|
23
23
|
Europe: "Europe";
|
|
@@ -30,7 +30,7 @@ export declare const JobEntitySchema: z.ZodObject<{
|
|
|
30
30
|
Remote: "Remote";
|
|
31
31
|
EMEA: "EMEA";
|
|
32
32
|
"Asia Pacific": "Asia Pacific";
|
|
33
|
-
}
|
|
33
|
+
}>;
|
|
34
34
|
createdAt: z.ZodDate;
|
|
35
35
|
updatedAt: z.ZodDate;
|
|
36
36
|
}, z.core.$strip>;
|
|
@@ -42,7 +42,7 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
42
42
|
workMode: z.ZodEnum<{
|
|
43
43
|
[x: string]: string;
|
|
44
44
|
}>;
|
|
45
|
-
location: z.
|
|
45
|
+
location: z.ZodEnum<{
|
|
46
46
|
Africa: "Africa";
|
|
47
47
|
Asia: "Asia";
|
|
48
48
|
Europe: "Europe";
|
|
@@ -55,7 +55,7 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
55
55
|
Remote: "Remote";
|
|
56
56
|
EMEA: "EMEA";
|
|
57
57
|
"Asia Pacific": "Asia Pacific";
|
|
58
|
-
}
|
|
58
|
+
}>;
|
|
59
59
|
createdAt: z.ZodDate;
|
|
60
60
|
updatedAt: z.ZodDate;
|
|
61
61
|
id: z.ZodCUID2;
|
|
@@ -99,7 +99,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
99
99
|
workMode: z.ZodEnum<{
|
|
100
100
|
[x: string]: string;
|
|
101
101
|
}>;
|
|
102
|
-
location: z.
|
|
102
|
+
location: z.ZodEnum<{
|
|
103
103
|
Africa: "Africa";
|
|
104
104
|
Asia: "Asia";
|
|
105
105
|
Europe: "Europe";
|
|
@@ -112,7 +112,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
112
112
|
Remote: "Remote";
|
|
113
113
|
EMEA: "EMEA";
|
|
114
114
|
"Asia Pacific": "Asia Pacific";
|
|
115
|
-
}
|
|
115
|
+
}>;
|
|
116
116
|
createdAt: z.ZodDate;
|
|
117
117
|
updatedAt: z.ZodDate;
|
|
118
118
|
id: z.ZodCUID2;
|
|
@@ -157,7 +157,7 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
157
157
|
workMode: z.ZodEnum<{
|
|
158
158
|
[x: string]: string;
|
|
159
159
|
}>;
|
|
160
|
-
location: z.
|
|
160
|
+
location: z.ZodEnum<{
|
|
161
161
|
Africa: "Africa";
|
|
162
162
|
Asia: "Asia";
|
|
163
163
|
Europe: "Europe";
|
|
@@ -170,7 +170,7 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
170
170
|
Remote: "Remote";
|
|
171
171
|
EMEA: "EMEA";
|
|
172
172
|
"Asia Pacific": "Asia Pacific";
|
|
173
|
-
}
|
|
173
|
+
}>;
|
|
174
174
|
createdAt: z.ZodDate;
|
|
175
175
|
updatedAt: z.ZodDate;
|
|
176
176
|
jobType: z.ZodLiteral<string>;
|
|
@@ -220,7 +220,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
220
220
|
workMode: z.ZodEnum<{
|
|
221
221
|
[x: string]: string;
|
|
222
222
|
}>;
|
|
223
|
-
location: z.
|
|
223
|
+
location: z.ZodEnum<{
|
|
224
224
|
Africa: "Africa";
|
|
225
225
|
Asia: "Asia";
|
|
226
226
|
Europe: "Europe";
|
|
@@ -233,7 +233,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
233
233
|
Remote: "Remote";
|
|
234
234
|
EMEA: "EMEA";
|
|
235
235
|
"Asia Pacific": "Asia Pacific";
|
|
236
|
-
}
|
|
236
|
+
}>;
|
|
237
237
|
createdAt: z.ZodDate;
|
|
238
238
|
updatedAt: z.ZodDate;
|
|
239
239
|
jobType: z.ZodLiteral<string>;
|
package/dist/schemas/job.js
CHANGED
|
@@ -17,9 +17,7 @@ exports.JobEntitySchema = zod_1.z.object({
|
|
|
17
17
|
gigType: zod_1.z
|
|
18
18
|
.enum(Object.values(constants_1.GIG_TYPE))
|
|
19
19
|
.nullable(), // nullable because ROLE jobs don’t have it
|
|
20
|
-
location: zod_1.z
|
|
21
|
-
.array(zod_1.z.enum(Object.values(constants_1.JOB_LOCATIONS)))
|
|
22
|
-
.nonempty(),
|
|
20
|
+
location: zod_1.z.enum(Object.values(constants_1.JOB_LOCATIONS)),
|
|
23
21
|
createdAt: zod_1.z.date(),
|
|
24
22
|
updatedAt: zod_1.z.date(),
|
|
25
23
|
});
|
package/package.json
CHANGED
package/src/schemas/job.ts
CHANGED
|
@@ -37,11 +37,9 @@ export const JobEntitySchema = z.object({
|
|
|
37
37
|
gigType: z
|
|
38
38
|
.enum(Object.values(GIG_TYPE) as [GigType, ...GigType[]])
|
|
39
39
|
.nullable(), // nullable because ROLE jobs don’t have it
|
|
40
|
-
location: z
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
)
|
|
44
|
-
.nonempty(),
|
|
40
|
+
location: z.enum(
|
|
41
|
+
Object.values(JOB_LOCATIONS) as [JobLocation, ...JobLocation[]]
|
|
42
|
+
),
|
|
45
43
|
createdAt: z.date(),
|
|
46
44
|
updatedAt: z.date(),
|
|
47
45
|
});
|