@thejob/schema 1.0.46 → 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.
@@ -90,14 +90,7 @@ export const JobSchema = object({
90
90
  * TODO: Make this field as array of string.
91
91
  * TODO: Add knockout skills that if not present in the application should immediately disqualify the application.
92
92
  */
93
- skills: array()
94
- .of(mixed().oneOfSchema([
95
- NameIdLogoSchema,
96
- OtherValueSchema,
97
- ]))
98
- .optional()
99
- .max(20)
100
- .label("Skills"),
93
+ skills: array().of(string().trim()).optional().max(20).label("Skills"),
101
94
  /*
102
95
  * This field will store the information about users who have bookmarked the job post.
103
96
  * It is optional and can be used to track the users who are interested in the job
@@ -336,13 +329,18 @@ export const JobSchema = object({
336
329
  */
337
330
  salaryRange: object({
338
331
  currency: string().required().label("Currency").default("USD"), // Default to USD if not provided
339
- min: number().optional().min(0).label("Minimum Salary"),
340
- 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"),
341
334
  compensationType: string()
342
335
  .oneOf(SupportedCompensationTypes)
343
- .required()
336
+ .nullable()
337
+ .optional()
344
338
  .label("Compensation Type"),
345
- isNegotiable: boolean().optional().default(false).label("Is Negotiable"),
339
+ isNegotiable: boolean()
340
+ .nullable()
341
+ .optional()
342
+ .default(true)
343
+ .label("Is Negotiable"),
346
344
  })
347
345
  .nullable()
348
346
  .optional()
@@ -1,13 +1,6 @@
1
1
  import { InferType } from "../yup-extended";
2
2
  export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
3
- skills: ({
4
- logo?: string | undefined;
5
- name: string;
6
- id: string;
7
- } | {
8
- value: "others" | (string | undefined)[];
9
- otherValue: string | string[];
10
- } | undefined)[] | undefined;
3
+ skills: (string | undefined)[] | undefined;
11
4
  educationLevel: (import("..").EducationLevel | undefined)[];
12
5
  description: string;
13
6
  headline: string;
@@ -147,7 +140,7 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
147
140
  min: undefined;
148
141
  max: undefined;
149
142
  compensationType: undefined;
150
- isNegotiable: false;
143
+ isNegotiable: true;
151
144
  };
152
145
  reports: "";
153
146
  termsAccepted: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.46",
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",