@thejob/schema 1.0.47 → 1.0.49
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 +11 -11
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +6 -6
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +10 -5
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +2 -2
- package/dist/esm/interfaces.index.d.ts +11 -11
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +6 -6
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +10 -5
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +2 -2
- package/package.json +1 -1
|
@@ -84,7 +84,7 @@ export declare const JobSchema: ObjectSchema<{
|
|
|
84
84
|
} | undefined;
|
|
85
85
|
employmentType: string;
|
|
86
86
|
workMode: string;
|
|
87
|
-
skills: (string | undefined)[] | undefined;
|
|
87
|
+
skills: (string | undefined)[] | null | undefined;
|
|
88
88
|
bookmarks: {
|
|
89
89
|
createdAt: string;
|
|
90
90
|
userId: string;
|
|
@@ -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"}
|
|
@@ -93,7 +93,7 @@ exports.JobSchema = (0, yup_extended_1.object)({
|
|
|
93
93
|
* TODO: Make this field as array of string.
|
|
94
94
|
* TODO: Add knockout skills that if not present in the application should immediately disqualify the application.
|
|
95
95
|
*/
|
|
96
|
-
skills: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().trim()).
|
|
96
|
+
skills: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().trim()).nullable().optional().label("Skills"),
|
|
97
97
|
/*
|
|
98
98
|
* This field will store the information about users who have bookmarked the job post.
|
|
99
99
|
* It is optional and can be used to track the users who are interested in the job
|
|
@@ -332,13 +332,18 @@ exports.JobSchema = (0, yup_extended_1.object)({
|
|
|
332
332
|
*/
|
|
333
333
|
salaryRange: (0, yup_extended_1.object)({
|
|
334
334
|
currency: (0, yup_extended_1.string)().required().label("Currency").default("USD"), // Default to USD if not provided
|
|
335
|
-
min: (0, yup_extended_1.number)().optional().min(0).label("Minimum Salary"),
|
|
336
|
-
max: (0, yup_extended_1.number)().optional().min(0).label("Maximum Salary"),
|
|
335
|
+
min: (0, yup_extended_1.number)().nullable().optional().min(0).label("Minimum Salary"),
|
|
336
|
+
max: (0, yup_extended_1.number)().nullable().optional().min(0).label("Maximum Salary"),
|
|
337
337
|
compensationType: (0, yup_extended_1.string)()
|
|
338
338
|
.oneOf(common_1.SupportedCompensationTypes)
|
|
339
|
-
.
|
|
339
|
+
.nullable()
|
|
340
|
+
.optional()
|
|
340
341
|
.label("Compensation Type"),
|
|
341
|
-
isNegotiable: (0, yup_extended_1.boolean)()
|
|
342
|
+
isNegotiable: (0, yup_extended_1.boolean)()
|
|
343
|
+
.nullable()
|
|
344
|
+
.optional()
|
|
345
|
+
.default(true)
|
|
346
|
+
.label("Is Negotiable"),
|
|
342
347
|
})
|
|
343
348
|
.nullable()
|
|
344
349
|
.optional()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InferType } from "../yup-extended";
|
|
2
2
|
export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
3
|
-
skills: (string | undefined)[] | undefined;
|
|
3
|
+
skills: (string | undefined)[] | null | undefined;
|
|
4
4
|
educationLevel: (import("..").EducationLevel | undefined)[];
|
|
5
5
|
description: string;
|
|
6
6
|
headline: string;
|
|
@@ -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:
|
|
143
|
+
isNegotiable: true;
|
|
144
144
|
};
|
|
145
145
|
reports: "";
|
|
146
146
|
termsAccepted: undefined;
|
|
@@ -147,7 +147,7 @@ export interface IAiPromptJobApplicationSummary {
|
|
|
147
147
|
value: "others" | (string | undefined)[];
|
|
148
148
|
otherValue: string | string[];
|
|
149
149
|
} | undefined;
|
|
150
|
-
skills?: (string | undefined)[] | undefined;
|
|
150
|
+
skills?: (string | undefined)[] | null | undefined;
|
|
151
151
|
bookmarks?: {
|
|
152
152
|
createdAt: string;
|
|
153
153
|
userId: string;
|
|
@@ -258,11 +258,11 @@ export interface IAiPromptJobApplicationSummary {
|
|
|
258
258
|
ratePerHour?: number | undefined;
|
|
259
259
|
isPromoted?: boolean | undefined;
|
|
260
260
|
salaryRange?: {
|
|
261
|
-
min?: number | undefined;
|
|
262
|
-
max?: number | undefined;
|
|
261
|
+
min?: number | null | undefined;
|
|
262
|
+
max?: number | null | undefined;
|
|
263
|
+
compensationType?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").CompensationType | null | undefined;
|
|
263
264
|
currency: string;
|
|
264
|
-
|
|
265
|
-
isNegotiable: boolean;
|
|
265
|
+
isNegotiable: boolean | null;
|
|
266
266
|
} | null | undefined;
|
|
267
267
|
reports?: {
|
|
268
268
|
createdAt: string;
|
|
@@ -823,7 +823,7 @@ export interface IJobSchema {
|
|
|
823
823
|
value: "others" | (string | undefined)[];
|
|
824
824
|
otherValue: string | string[];
|
|
825
825
|
} | undefined;
|
|
826
|
-
skills?: (string | undefined)[] | undefined;
|
|
826
|
+
skills?: (string | undefined)[] | null | undefined;
|
|
827
827
|
bookmarks?: {
|
|
828
828
|
createdAt: string;
|
|
829
829
|
userId: string;
|
|
@@ -934,11 +934,11 @@ export interface IJobSchema {
|
|
|
934
934
|
ratePerHour?: number | undefined;
|
|
935
935
|
isPromoted?: boolean | undefined;
|
|
936
936
|
salaryRange?: {
|
|
937
|
-
min?: number | undefined;
|
|
938
|
-
max?: number | undefined;
|
|
937
|
+
min?: number | null | undefined;
|
|
938
|
+
max?: number | null | undefined;
|
|
939
|
+
compensationType?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").CompensationType | null | undefined;
|
|
939
940
|
currency: string;
|
|
940
|
-
|
|
941
|
-
isNegotiable: boolean;
|
|
941
|
+
isNegotiable: boolean | null;
|
|
942
942
|
} | null | undefined;
|
|
943
943
|
reports?: {
|
|
944
944
|
createdAt: string;
|
|
@@ -1392,7 +1392,7 @@ export interface IJobRoleTemplateSchema {
|
|
|
1392
1392
|
value: "others" | (string | undefined)[];
|
|
1393
1393
|
otherValue: string | string[];
|
|
1394
1394
|
} | undefined;
|
|
1395
|
-
skills?: (string | undefined)[] | undefined;
|
|
1395
|
+
skills?: (string | undefined)[] | null | undefined;
|
|
1396
1396
|
tags?: any[] | undefined;
|
|
1397
1397
|
questionnaire?: ({
|
|
1398
1398
|
label?: string | undefined;
|