@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.
@@ -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
- compensationType: NonNullable<import("../common").CompensationType | undefined>;
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: false;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8YP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
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
- .required()
336
+ .nullable()
337
+ .optional()
337
338
  .label("Compensation Type"),
338
- isNegotiable: boolean().optional().default(false).label("Is Negotiable"),
339
+ isNegotiable: boolean()
340
+ .nullable()
341
+ .optional()
342
+ .default(true)
343
+ .label("Is Negotiable"),
339
344
  })
340
345
  .nullable()
341
346
  .optional()
@@ -140,7 +140,7 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
140
140
  min: undefined;
141
141
  max: undefined;
142
142
  compensationType: undefined;
143
- isNegotiable: false;
143
+ isNegotiable: true;
144
144
  };
145
145
  reports: "";
146
146
  termsAccepted: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",