@thejob/schema 1.0.47 → 1.0.48
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/interfaces.index.d.ts +8 -8
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +5 -5
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +9 -4
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +1 -1
- package/dist/esm/interfaces.index.d.ts +8 -8
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +5 -5
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +9 -4
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +1 -1
- package/package.json +1 -1
|
@@ -218,11 +218,11 @@ export declare const JobSchema: ObjectSchema<{
|
|
|
218
218
|
ratePerHour: number | undefined;
|
|
219
219
|
isPromoted: boolean | undefined;
|
|
220
220
|
salaryRange: {
|
|
221
|
-
min?: number | undefined;
|
|
222
|
-
max?: number | undefined;
|
|
221
|
+
min?: number | null | undefined;
|
|
222
|
+
max?: number | null | undefined;
|
|
223
|
+
compensationType?: import("../common").CompensationType | null | undefined;
|
|
223
224
|
currency: string;
|
|
224
|
-
|
|
225
|
-
isNegotiable: boolean;
|
|
225
|
+
isNegotiable: boolean | null;
|
|
226
226
|
} | null | undefined;
|
|
227
227
|
reports: {
|
|
228
228
|
createdAt: string;
|
|
@@ -283,7 +283,7 @@ export declare const JobSchema: ObjectSchema<{
|
|
|
283
283
|
min: undefined;
|
|
284
284
|
max: undefined;
|
|
285
285
|
compensationType: undefined;
|
|
286
|
-
isNegotiable:
|
|
286
|
+
isNegotiable: true;
|
|
287
287
|
};
|
|
288
288
|
reports: "";
|
|
289
289
|
termsAccepted: 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,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmZP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -329,13 +329,18 @@ export const JobSchema = object({
|
|
|
329
329
|
*/
|
|
330
330
|
salaryRange: object({
|
|
331
331
|
currency: string().required().label("Currency").default("USD"), // Default to USD if not provided
|
|
332
|
-
min: number().optional().min(0).label("Minimum Salary"),
|
|
333
|
-
max: number().optional().min(0).label("Maximum Salary"),
|
|
332
|
+
min: number().nullable().optional().min(0).label("Minimum Salary"),
|
|
333
|
+
max: number().nullable().optional().min(0).label("Maximum Salary"),
|
|
334
334
|
compensationType: string()
|
|
335
335
|
.oneOf(SupportedCompensationTypes)
|
|
336
|
-
.
|
|
336
|
+
.nullable()
|
|
337
|
+
.optional()
|
|
337
338
|
.label("Compensation Type"),
|
|
338
|
-
isNegotiable: boolean()
|
|
339
|
+
isNegotiable: boolean()
|
|
340
|
+
.nullable()
|
|
341
|
+
.optional()
|
|
342
|
+
.default(true)
|
|
343
|
+
.label("Is Negotiable"),
|
|
339
344
|
})
|
|
340
345
|
.nullable()
|
|
341
346
|
.optional()
|