@thejob/schema 1.0.43 → 1.0.44
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/cjs/common/constants.d.ts +1 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +1 -0
- package/dist/cjs/interfaces.index.d.ts +6 -6
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +3 -3
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +3 -1
- package/dist/esm/common/constants.d.ts +1 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +1 -0
- package/dist/esm/interfaces.index.d.ts +6 -6
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +3 -3
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +3 -1
- package/package.json +1 -1
|
@@ -124,9 +124,9 @@ export declare const JobSchema: ObjectSchema<{
|
|
|
124
124
|
endDate: string;
|
|
125
125
|
isActive: boolean;
|
|
126
126
|
};
|
|
127
|
-
experienceLevel: import("../common").ExperienceLevel | undefined;
|
|
128
|
-
contactEmail: string | undefined;
|
|
129
|
-
workingHoursPerWeek: number | undefined;
|
|
127
|
+
experienceLevel: import("../common").ExperienceLevel | null | undefined;
|
|
128
|
+
contactEmail: string | null | undefined;
|
|
129
|
+
workingHoursPerWeek: number | null | undefined;
|
|
130
130
|
tags: any[] | undefined;
|
|
131
131
|
questionnaire: ({
|
|
132
132
|
label?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAInB,OAAO,EACL,YAAY,EAKb,MAAM,aAAa,CAAC;AACrB,OAAO,E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CAAC,CAAC"}
|
|
@@ -204,6 +204,7 @@ export const JobSchema = object({
|
|
|
204
204
|
*/
|
|
205
205
|
experienceLevel: string()
|
|
206
206
|
.oneOf(SupportedExperienceLevels)
|
|
207
|
+
.nullable()
|
|
207
208
|
.optional()
|
|
208
209
|
.label("Experience level"),
|
|
209
210
|
/*
|
|
@@ -211,7 +212,7 @@ export const JobSchema = object({
|
|
|
211
212
|
* This section is optional and can be used to specify the contact email for the job post.
|
|
212
213
|
* It is useful for jobs that require direct communication with the employer.
|
|
213
214
|
*/
|
|
214
|
-
contactEmail: string().email().optional().label("Contact email"),
|
|
215
|
+
contactEmail: string().email().nullable().optional().label("Contact email"),
|
|
215
216
|
/*
|
|
216
217
|
* Working hours per week section
|
|
217
218
|
* This section is optional and can be used to specify the number of working hours per week for the job.
|
|
@@ -219,6 +220,7 @@ export const JobSchema = object({
|
|
|
219
220
|
* The value should be a number between 1 and 168 (24 hours * 7 days).
|
|
220
221
|
*/
|
|
221
222
|
workingHoursPerWeek: number()
|
|
223
|
+
.nullable()
|
|
222
224
|
.optional()
|
|
223
225
|
.min(1)
|
|
224
226
|
.max(24 * 7)
|