@thejob/schema 1.0.21 → 1.0.23
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/common.types.d.ts +1 -1
- package/dist/cjs/common/common.types.d.ts.map +1 -1
- package/dist/cjs/interfaces.index.d.ts +9 -8
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +6 -4
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +14 -11
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +3 -2
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/resume/resume.schema.d.ts +1 -1
- package/dist/cjs/user/create-user.schema.d.ts +1 -1
- package/dist/cjs/user/general-detail/general-detail.schema.d.ts +1 -1
- package/dist/cjs/user/general-detail/general-detail.schema.js +1 -1
- package/dist/cjs/user/update-user.schema.d.ts +1 -1
- package/dist/cjs/user/user.schema.d.ts +1 -1
- package/dist/cjs/user/user.schema.d.ts.map +1 -1
- package/dist/cjs/user/user.schema.js +1 -1
- package/dist/esm/common/common.types.d.ts +1 -1
- package/dist/esm/common/common.types.d.ts.map +1 -1
- package/dist/esm/interfaces.index.d.ts +9 -8
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +6 -4
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +14 -11
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +3 -2
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/resume/resume.schema.d.ts +1 -1
- package/dist/esm/user/create-user.schema.d.ts +1 -1
- package/dist/esm/user/general-detail/general-detail.schema.d.ts +1 -1
- package/dist/esm/user/general-detail/general-detail.schema.js +1 -1
- package/dist/esm/user/update-user.schema.d.ts +1 -1
- package/dist/esm/user/user.schema.d.ts +1 -1
- package/dist/esm/user/user.schema.d.ts.map +1 -1
- package/dist/esm/user/user.schema.js +1 -1
- package/package.json +1 -1
|
@@ -110,6 +110,11 @@ export const JobSchema = object()
|
|
|
110
110
|
.of(UserIdAndCreatedAtSchema)
|
|
111
111
|
.optional()
|
|
112
112
|
.label("Applicants"),
|
|
113
|
+
/**
|
|
114
|
+
* Number of applicants for the job (Direct Apply/Quick Apply).
|
|
115
|
+
* This is optional and can be used to track the number of applicants.
|
|
116
|
+
*/
|
|
117
|
+
applicantCount: number().optional().label("Applicant count"),
|
|
113
118
|
/*
|
|
114
119
|
* This field is optional and can be used to track the users who have applied for the job through an external website.
|
|
115
120
|
* It includes the user ID and the date when the application was made.
|
|
@@ -119,6 +124,15 @@ export const JobSchema = object()
|
|
|
119
124
|
.of(UserIdAndCreatedAtSchema)
|
|
120
125
|
.optional()
|
|
121
126
|
.label("External Applicants"),
|
|
127
|
+
/**
|
|
128
|
+
* Number of external applicants for the job.
|
|
129
|
+
*/
|
|
130
|
+
externalApplicantCount: number()
|
|
131
|
+
.optional()
|
|
132
|
+
.label("External applicant count"),
|
|
133
|
+
externalApplicationLinkClickCount: number()
|
|
134
|
+
.optional()
|
|
135
|
+
.label("External application link click count"),
|
|
122
136
|
/*
|
|
123
137
|
* This field is required and should be used to store the job description.
|
|
124
138
|
* It is useful for providing detailed information about the job responsibilities, requirements, and other relevant details.
|
|
@@ -281,22 +295,11 @@ export const JobSchema = object()
|
|
|
281
295
|
* It is useful for moderation and ensuring the quality of job posts.
|
|
282
296
|
*/
|
|
283
297
|
hasReported: boolean().optional().label("Has reported"),
|
|
284
|
-
/**
|
|
285
|
-
* Number of applicants for the job (Direct Apply/Quick Apply).
|
|
286
|
-
* This is optional and can be used to track the number of applicants.
|
|
287
|
-
*/
|
|
288
|
-
applicantCount: number().optional().label("Applicant count"),
|
|
289
298
|
/**
|
|
290
299
|
* Rate per hour for the job.
|
|
291
300
|
* This is optional and can be used for freelance or contract jobs.
|
|
292
301
|
*/
|
|
293
302
|
ratePerHour: number().optional().min(0).label("Rate per hour"),
|
|
294
|
-
/**
|
|
295
|
-
* Number of external applicants for the job.
|
|
296
|
-
*/
|
|
297
|
-
externalApplicantCount: number()
|
|
298
|
-
.optional()
|
|
299
|
-
.label("External applicant count"),
|
|
300
303
|
/**
|
|
301
304
|
* Indicates if the job is promoted.
|
|
302
305
|
* This is optional and can be used to determine if the job is featured or highlighted.
|
|
@@ -54,7 +54,10 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
54
54
|
skills: "";
|
|
55
55
|
bookmarks: "";
|
|
56
56
|
applicants: "";
|
|
57
|
+
applicantCount: undefined;
|
|
57
58
|
externalApplicants: "";
|
|
59
|
+
externalApplicantCount: undefined;
|
|
60
|
+
externalApplicationLinkClickCount: undefined;
|
|
58
61
|
description: undefined;
|
|
59
62
|
descriptionMarkdown: undefined;
|
|
60
63
|
descriptionHTML: undefined;
|
|
@@ -80,9 +83,7 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
80
83
|
isOwner: undefined;
|
|
81
84
|
hasBookmarked: undefined;
|
|
82
85
|
hasReported: undefined;
|
|
83
|
-
applicantCount: undefined;
|
|
84
86
|
ratePerHour: undefined;
|
|
85
|
-
externalApplicantCount: undefined;
|
|
86
87
|
isPromoted: undefined;
|
|
87
88
|
salaryRange: undefined;
|
|
88
89
|
reports: "";
|
|
@@ -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
|
|
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"}
|
|
@@ -272,8 +272,8 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
|
|
|
272
272
|
emailVerified?: string | null | undefined;
|
|
273
273
|
email: string;
|
|
274
274
|
name: {
|
|
275
|
+
last?: string | undefined;
|
|
275
276
|
first: string;
|
|
276
|
-
last: string;
|
|
277
277
|
};
|
|
278
278
|
additionalInfo: {
|
|
279
279
|
description: string;
|
|
@@ -2,8 +2,8 @@ import { InferType, ObjectSchema } from "../../yup-extended";
|
|
|
2
2
|
export declare const UserGeneralDetailSchema: ObjectSchema<{
|
|
3
3
|
id: string | undefined;
|
|
4
4
|
name: {
|
|
5
|
+
last?: string | undefined;
|
|
5
6
|
first: string;
|
|
6
|
-
last: string;
|
|
7
7
|
};
|
|
8
8
|
headline: string | undefined;
|
|
9
9
|
image: string | undefined;
|
|
@@ -8,7 +8,7 @@ export const UserGeneralDetailSchema = object()
|
|
|
8
8
|
name: object()
|
|
9
9
|
.shape({
|
|
10
10
|
first: string().trim().max(50).required().label("First Name"),
|
|
11
|
-
last: string().trim().max(50).
|
|
11
|
+
last: string().trim().max(50).optional().label("Last Name"),
|
|
12
12
|
})
|
|
13
13
|
.required()
|
|
14
14
|
.label("Name"),
|
|
@@ -266,8 +266,8 @@ export declare const UserSchema: import("yup").ObjectSchema<{
|
|
|
266
266
|
} & {
|
|
267
267
|
id: string | undefined;
|
|
268
268
|
name: {
|
|
269
|
+
last?: string | undefined;
|
|
269
270
|
first: string;
|
|
270
|
-
last: string;
|
|
271
271
|
};
|
|
272
272
|
headline: string | undefined;
|
|
273
273
|
image: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../../src/user/user.schema.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC;AAWnE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../../src/user/user.schema.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC;AAWnE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyFA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
|