@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.
Files changed (35) hide show
  1. package/dist/cjs/common/common.types.d.ts +1 -1
  2. package/dist/cjs/common/common.types.d.ts.map +1 -1
  3. package/dist/cjs/interfaces.index.d.ts +9 -8
  4. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  5. package/dist/cjs/job/job.schema.d.ts +6 -4
  6. package/dist/cjs/job/job.schema.d.ts.map +1 -1
  7. package/dist/cjs/job/job.schema.js +14 -11
  8. package/dist/cjs/job-role-template/job-role-template.schema.d.ts +3 -2
  9. package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
  10. package/dist/cjs/resume/resume.schema.d.ts +1 -1
  11. package/dist/cjs/user/create-user.schema.d.ts +1 -1
  12. package/dist/cjs/user/general-detail/general-detail.schema.d.ts +1 -1
  13. package/dist/cjs/user/general-detail/general-detail.schema.js +1 -1
  14. package/dist/cjs/user/update-user.schema.d.ts +1 -1
  15. package/dist/cjs/user/user.schema.d.ts +1 -1
  16. package/dist/cjs/user/user.schema.d.ts.map +1 -1
  17. package/dist/cjs/user/user.schema.js +1 -1
  18. package/dist/esm/common/common.types.d.ts +1 -1
  19. package/dist/esm/common/common.types.d.ts.map +1 -1
  20. package/dist/esm/interfaces.index.d.ts +9 -8
  21. package/dist/esm/interfaces.index.d.ts.map +1 -1
  22. package/dist/esm/job/job.schema.d.ts +6 -4
  23. package/dist/esm/job/job.schema.d.ts.map +1 -1
  24. package/dist/esm/job/job.schema.js +14 -11
  25. package/dist/esm/job-role-template/job-role-template.schema.d.ts +3 -2
  26. package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
  27. package/dist/esm/resume/resume.schema.d.ts +1 -1
  28. package/dist/esm/user/create-user.schema.d.ts +1 -1
  29. package/dist/esm/user/general-detail/general-detail.schema.d.ts +1 -1
  30. package/dist/esm/user/general-detail/general-detail.schema.js +1 -1
  31. package/dist/esm/user/update-user.schema.d.ts +1 -1
  32. package/dist/esm/user/user.schema.d.ts +1 -1
  33. package/dist/esm/user/user.schema.d.ts.map +1 -1
  34. package/dist/esm/user/user.schema.js +1 -1
  35. 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -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;
@@ -1,8 +1,8 @@
1
1
  import { InferType, ObjectSchema } from "../yup-extended";
2
2
  export declare const CreateUserSchema: ObjectSchema<{
3
3
  name: {
4
+ last?: string | undefined;
4
5
  first: string;
5
- last: string;
6
6
  };
7
7
  email: string;
8
8
  }, import("yup").AnyObject, {
@@ -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).required().label("Last Name"),
11
+ last: string().trim().max(50).optional().label("Last Name"),
12
12
  })
13
13
  .required()
14
14
  .label("Name"),
@@ -1,8 +1,8 @@
1
1
  import { InferType } from "../yup-extended";
2
2
  export declare const UpdateUserSchema: import("yup").ObjectSchema<{
3
3
  name: {
4
+ last?: string | undefined;
4
5
  first: string;
5
- last: string;
6
6
  };
7
7
  headline: string | undefined;
8
8
  email: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiFA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
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"}
@@ -55,7 +55,7 @@ export const UserSchema = object()
55
55
  */
56
56
  interests: array()
57
57
  .of(UserInterestSchema)
58
- .required()
58
+ .optional()
59
59
  .default([])
60
60
  .label("Interests"),
61
61
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",