@thejob/schema 1.0.13 → 1.0.15

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 (53) hide show
  1. package/dist/cjs/common/common.schema.d.ts +4 -4
  2. package/dist/cjs/common/common.schema.d.ts.map +1 -1
  3. package/dist/cjs/common/common.schema.js +2 -8
  4. package/dist/cjs/interfaces.index.d.ts +38 -38
  5. package/dist/cjs/job/job.schema.d.ts +7 -13
  6. package/dist/cjs/job/job.schema.d.ts.map +1 -1
  7. package/dist/cjs/job/job.schema.js +1 -1
  8. package/dist/cjs/job-application/job-application.schema.d.ts +10 -10
  9. package/dist/cjs/job-role-template/job-role-template.schema.d.ts +3 -9
  10. package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
  11. package/dist/cjs/page/institute/index.d.ts +2 -0
  12. package/dist/cjs/page/institute/index.d.ts.map +1 -0
  13. package/dist/cjs/page/institute/index.js +17 -0
  14. package/dist/cjs/page/institute/institute.schema.d.ts +2 -0
  15. package/dist/cjs/page/institute/institute.schema.d.ts.map +1 -0
  16. package/dist/cjs/page/institute/institute.schema.js +5 -0
  17. package/dist/cjs/page/page.schema.d.ts +4 -4
  18. package/dist/cjs/page/page.schema.d.ts.map +1 -1
  19. package/dist/cjs/page/page.schema.js +2 -0
  20. package/dist/cjs/resume/resume.schema.d.ts +8 -8
  21. package/dist/cjs/skill/skill.schema.d.ts +4 -4
  22. package/dist/cjs/user/education/education.schema.d.ts +2 -2
  23. package/dist/cjs/user/update-education.schema.d.ts +2 -2
  24. package/dist/cjs/user/update-work-experience.schema.d.ts +2 -2
  25. package/dist/cjs/user/user.schema.d.ts +4 -4
  26. package/dist/cjs/user/work-experience/work-experience.schema.d.ts +2 -2
  27. package/dist/esm/common/common.schema.d.ts +4 -4
  28. package/dist/esm/common/common.schema.d.ts.map +1 -1
  29. package/dist/esm/common/common.schema.js +3 -9
  30. package/dist/esm/interfaces.index.d.ts +38 -38
  31. package/dist/esm/job/job.schema.d.ts +7 -13
  32. package/dist/esm/job/job.schema.d.ts.map +1 -1
  33. package/dist/esm/job/job.schema.js +1 -1
  34. package/dist/esm/job-application/job-application.schema.d.ts +10 -10
  35. package/dist/esm/job-role-template/job-role-template.schema.d.ts +3 -9
  36. package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
  37. package/dist/esm/page/institute/index.d.ts +2 -0
  38. package/dist/esm/page/institute/index.d.ts.map +1 -0
  39. package/dist/esm/page/institute/index.js +1 -0
  40. package/dist/esm/page/institute/institute.schema.d.ts +2 -0
  41. package/dist/esm/page/institute/institute.schema.d.ts.map +1 -0
  42. package/dist/esm/page/institute/institute.schema.js +2 -0
  43. package/dist/esm/page/page.schema.d.ts +4 -4
  44. package/dist/esm/page/page.schema.d.ts.map +1 -1
  45. package/dist/esm/page/page.schema.js +2 -0
  46. package/dist/esm/resume/resume.schema.d.ts +8 -8
  47. package/dist/esm/skill/skill.schema.d.ts +4 -4
  48. package/dist/esm/user/education/education.schema.d.ts +2 -2
  49. package/dist/esm/user/update-education.schema.d.ts +2 -2
  50. package/dist/esm/user/update-work-experience.schema.d.ts +2 -2
  51. package/dist/esm/user/user.schema.d.ts +4 -4
  52. package/dist/esm/user/work-experience/work-experience.schema.d.ts +2 -2
  53. package/package.json +1 -1
@@ -42,7 +42,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
42
42
  otherValue: string | string[];
43
43
  } | Pick<{
44
44
  updatedBy?: string | undefined;
45
- updatedAt?: string | undefined;
45
+ updatedAt?: number | undefined;
46
46
  socialAccounts?: {
47
47
  type: NonNullable<import("../common").SocialAccount | undefined>;
48
48
  url: string;
@@ -89,7 +89,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
89
89
  } | null;
90
90
  shortId: string;
91
91
  createdBy: string;
92
- createdAt: string;
92
+ createdAt: number;
93
93
  about: string;
94
94
  website: string;
95
95
  slug: string;
@@ -134,7 +134,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
134
134
  otherValue: string | string[];
135
135
  } | Pick<{
136
136
  updatedBy?: string | undefined;
137
- updatedAt?: string | undefined;
137
+ updatedAt?: number | undefined;
138
138
  socialAccounts?: {
139
139
  type: NonNullable<import("../common").SocialAccount | undefined>;
140
140
  url: string;
@@ -181,7 +181,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
181
181
  } | null;
182
182
  shortId: string;
183
183
  createdBy: string;
184
- createdAt: string;
184
+ createdAt: number;
185
185
  about: string;
186
186
  website: string;
187
187
  slug: string;
@@ -272,9 +272,9 @@ export declare const JobApplicationSchema: ObjectSchema<{
272
272
  id: string;
273
273
  shortId: string;
274
274
  createdBy: string;
275
- createdAt: string;
275
+ createdAt: number;
276
276
  updatedBy: string | undefined;
277
- updatedAt: string | undefined;
277
+ updatedAt: number | undefined;
278
278
  }, import("yup").AnyObject, {
279
279
  name: {
280
280
  first: undefined;
@@ -301,9 +301,9 @@ export declare const JobApplicationSchema: ObjectSchema<{
301
301
  id: undefined;
302
302
  shortId: undefined;
303
303
  createdBy: undefined;
304
- createdAt: string;
304
+ createdAt: undefined;
305
305
  updatedBy: undefined;
306
- updatedAt: string;
306
+ updatedAt: undefined;
307
307
  };
308
308
  status: JobApplicationStatus.Open;
309
309
  questionnaire: "";
@@ -311,9 +311,9 @@ export declare const JobApplicationSchema: ObjectSchema<{
311
311
  id: undefined;
312
312
  shortId: undefined;
313
313
  createdBy: undefined;
314
- createdAt: string;
314
+ createdAt: undefined;
315
315
  updatedBy: undefined;
316
- updatedAt: string;
316
+ updatedAt: undefined;
317
317
  }, "">;
318
318
  export type TJobApplicationSchema = InferType<typeof JobApplicationSchema>;
319
319
  //# sourceMappingURL=job-application.schema.d.ts.map
@@ -83,21 +83,15 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
83
83
  ratePerHour: undefined;
84
84
  externalApplicantCount: undefined;
85
85
  isPromoted: undefined;
86
- salaryRange: {
87
- currency: "USD";
88
- min: undefined;
89
- max: undefined;
90
- compensationType: undefined;
91
- isNegotiable: false;
92
- };
86
+ salaryRange: undefined;
93
87
  reports: "";
94
88
  termsAccepted: undefined;
95
89
  id: undefined;
96
90
  shortId: undefined;
97
91
  createdBy: undefined;
98
- createdAt: string;
92
+ createdAt: undefined;
99
93
  updatedBy: undefined;
100
- updatedAt: string;
94
+ updatedAt: undefined;
101
95
  }, "">;
102
96
  export type TJobRoleTemplateSchema = InferType<typeof JobRoleTemplateSchema>;
103
97
  //# sourceMappingURL=job-role-template.schema.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export * from "./institute.schema";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/page/institute/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./institute.schema";
@@ -0,0 +1,2 @@
1
+ export declare const InstituteSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
2
+ //# sourceMappingURL=institute.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"institute.schema.d.ts","sourceRoot":"","sources":["../../../../src/page/institute/institute.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,iEAA8C,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { object } from "../../yup-extended";
2
+ export const InstituteSchema = object().shape({}).label("InstituteSchema");
@@ -57,9 +57,9 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
57
57
  id: string;
58
58
  shortId: string;
59
59
  createdBy: string;
60
- createdAt: string;
60
+ createdAt: number;
61
61
  updatedBy: string | undefined;
62
- updatedAt: string | undefined;
62
+ updatedAt: number | undefined;
63
63
  }>, import("yup").AnyObject, {
64
64
  id: undefined;
65
65
  shortId: undefined;
@@ -81,9 +81,9 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
81
81
  equalOpportunityEmployer: undefined;
82
82
  perksAndBenefits: "";
83
83
  createdBy: undefined;
84
- createdAt: string;
84
+ createdAt: undefined;
85
85
  updatedBy: undefined;
86
- updatedAt: string;
86
+ updatedAt: undefined;
87
87
  }, "">;
88
88
  export type TPageSchema = InferType<typeof PageSchema>;
89
89
  //# sourceMappingURL=page.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -2,6 +2,7 @@ import { DbDefaultSchema, NameIdLogoSchema } from "../common";
2
2
  import { SocialAccountSchema } from "../social-account";
3
3
  import { array, boolean, date, object, string, } from "../yup-extended";
4
4
  import { CompanySchema } from "./company";
5
+ import { InstituteSchema } from "./institute";
5
6
  import { PageLocationSchema } from "./page-location";
6
7
  import { SupportedContactTypes, SupportedPageTypes } from "./page.constant";
7
8
  export const PageSchema = object()
@@ -68,6 +69,7 @@ export const PageSchema = object()
68
69
  isOwner: boolean().optional().label("Is Owner"),
69
70
  })
70
71
  .concat(CompanySchema)
72
+ .concat(InstituteSchema)
71
73
  .concat(DbDefaultSchema)
72
74
  .noUnknown(true)
73
75
  .strict(true)
@@ -245,9 +245,9 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
245
245
  id: string;
246
246
  shortId: string;
247
247
  createdBy: string;
248
- createdAt: string;
248
+ createdAt: number;
249
249
  updatedBy: string | undefined;
250
- updatedAt: string | undefined;
250
+ updatedAt: number | undefined;
251
251
  }, import("yup").AnyObject, {
252
252
  title: undefined;
253
253
  userId: undefined;
@@ -258,9 +258,9 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
258
258
  id: undefined;
259
259
  shortId: undefined;
260
260
  createdBy: undefined;
261
- createdAt: string;
261
+ createdAt: undefined;
262
262
  updatedBy: undefined;
263
- updatedAt: string;
263
+ updatedAt: undefined;
264
264
  }, "">;
265
265
  export type TResumeSchema = InferType<typeof ResumeSchema>;
266
266
  export declare const NewResumePromptSchema: (host?: string) => import("yup").ObjectSchema<{
@@ -292,7 +292,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
292
292
  otherValue: string | string[];
293
293
  } | Pick<{
294
294
  updatedBy?: string | undefined;
295
- updatedAt?: string | undefined;
295
+ updatedAt?: number | undefined;
296
296
  socialAccounts?: {
297
297
  type: NonNullable<import("../common").SocialAccount | undefined>;
298
298
  url: string;
@@ -339,7 +339,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
339
339
  } | null;
340
340
  shortId: string;
341
341
  createdBy: string;
342
- createdAt: string;
342
+ createdAt: number;
343
343
  about: string;
344
344
  website: string;
345
345
  slug: string;
@@ -384,7 +384,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
384
384
  otherValue: string | string[];
385
385
  } | Pick<{
386
386
  updatedBy?: string | undefined;
387
- updatedAt?: string | undefined;
387
+ updatedAt?: number | undefined;
388
388
  socialAccounts?: {
389
389
  type: NonNullable<import("../common").SocialAccount | undefined>;
390
390
  url: string;
@@ -431,7 +431,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
431
431
  } | null;
432
432
  shortId: string;
433
433
  createdBy: string;
434
- createdAt: string;
434
+ createdAt: number;
435
435
  about: string;
436
436
  website: string;
437
437
  slug: string;
@@ -7,9 +7,9 @@ export declare const SkillSchema: import("yup").ObjectSchema<{
7
7
  id: string;
8
8
  shortId: string;
9
9
  createdBy: string;
10
- createdAt: string;
10
+ createdAt: number;
11
11
  updatedBy: string | undefined;
12
- updatedAt: string | undefined;
12
+ updatedAt: number | undefined;
13
13
  }, import("yup").AnyObject, {
14
14
  name: undefined;
15
15
  logo: undefined;
@@ -17,9 +17,9 @@ export declare const SkillSchema: import("yup").ObjectSchema<{
17
17
  id: undefined;
18
18
  shortId: undefined;
19
19
  createdBy: undefined;
20
- createdAt: string;
20
+ createdAt: undefined;
21
21
  updatedBy: undefined;
22
- updatedAt: string;
22
+ updatedAt: undefined;
23
23
  }, "">;
24
24
  export type TSkillSchema = InferType<typeof SkillSchema>;
25
25
  //# sourceMappingURL=skill.schema.d.ts.map
@@ -5,7 +5,7 @@ export declare const EducationSchema: ObjectSchema<{
5
5
  otherValue: string | string[];
6
6
  } | Pick<{
7
7
  updatedBy?: string | undefined;
8
- updatedAt?: string | undefined;
8
+ updatedAt?: number | undefined;
9
9
  socialAccounts?: {
10
10
  type: NonNullable<import("../../common").SocialAccount | undefined>;
11
11
  url: string;
@@ -52,7 +52,7 @@ export declare const EducationSchema: ObjectSchema<{
52
52
  } | null;
53
53
  shortId: string;
54
54
  createdBy: string;
55
- createdAt: string;
55
+ createdAt: number;
56
56
  about: string;
57
57
  website: string;
58
58
  slug: string;
@@ -10,7 +10,7 @@ export declare const UpdateEducationsSchema: import("yup").ObjectSchema<{
10
10
  otherValue: string | string[];
11
11
  } | Pick<{
12
12
  updatedBy?: string | undefined;
13
- updatedAt?: string | undefined;
13
+ updatedAt?: number | undefined;
14
14
  socialAccounts?: {
15
15
  type: NonNullable<import("..").SocialAccount | undefined>;
16
16
  url: string;
@@ -57,7 +57,7 @@ export declare const UpdateEducationsSchema: import("yup").ObjectSchema<{
57
57
  } | null;
58
58
  shortId: string;
59
59
  createdBy: string;
60
- createdAt: string;
60
+ createdAt: number;
61
61
  about: string;
62
62
  website: string;
63
63
  slug: string;
@@ -7,7 +7,7 @@ export declare const UpdateWorkExperiencesSchema: import("yup").ObjectSchema<{
7
7
  otherValue: string | string[];
8
8
  } | Pick<{
9
9
  updatedBy?: string | undefined;
10
- updatedAt?: string | undefined;
10
+ updatedAt?: number | undefined;
11
11
  socialAccounts?: {
12
12
  type: NonNullable<import("..").SocialAccount | undefined>;
13
13
  url: string;
@@ -54,7 +54,7 @@ export declare const UpdateWorkExperiencesSchema: import("yup").ObjectSchema<{
54
54
  } | null;
55
55
  shortId: string;
56
56
  createdBy: string;
57
- createdAt: string;
57
+ createdAt: number;
58
58
  about: string;
59
59
  website: string;
60
60
  slug: string;
@@ -12,7 +12,7 @@ export declare const UserSchema: import("yup").ObjectSchema<{
12
12
  otherValue: string | string[];
13
13
  } | Pick<{
14
14
  updatedBy?: string | undefined;
15
- updatedAt?: string | undefined;
15
+ updatedAt?: number | undefined;
16
16
  socialAccounts?: {
17
17
  type: NonNullable<import("../common").SocialAccount | undefined>;
18
18
  url: string;
@@ -59,7 +59,7 @@ export declare const UserSchema: import("yup").ObjectSchema<{
59
59
  } | null;
60
60
  shortId: string;
61
61
  createdBy: string;
62
- createdAt: string;
62
+ createdAt: number;
63
63
  about: string;
64
64
  website: string;
65
65
  slug: string;
@@ -104,7 +104,7 @@ export declare const UserSchema: import("yup").ObjectSchema<{
104
104
  otherValue: string | string[];
105
105
  } | Pick<{
106
106
  updatedBy?: string | undefined;
107
- updatedAt?: string | undefined;
107
+ updatedAt?: number | undefined;
108
108
  socialAccounts?: {
109
109
  type: NonNullable<import("../common").SocialAccount | undefined>;
110
110
  url: string;
@@ -151,7 +151,7 @@ export declare const UserSchema: import("yup").ObjectSchema<{
151
151
  } | null;
152
152
  shortId: string;
153
153
  createdBy: string;
154
- createdAt: string;
154
+ createdAt: number;
155
155
  about: string;
156
156
  website: string;
157
157
  slug: string;
@@ -5,7 +5,7 @@ export declare const WorkExperienceSchema: ObjectSchema<{
5
5
  otherValue: string | string[];
6
6
  } | Pick<{
7
7
  updatedBy?: string | undefined;
8
- updatedAt?: string | undefined;
8
+ updatedAt?: number | undefined;
9
9
  socialAccounts?: {
10
10
  type: NonNullable<import("../../common").SocialAccount | undefined>;
11
11
  url: string;
@@ -52,7 +52,7 @@ export declare const WorkExperienceSchema: ObjectSchema<{
52
52
  } | null;
53
53
  shortId: string;
54
54
  createdBy: string;
55
- createdAt: string;
55
+ createdAt: number;
56
56
  about: string;
57
57
  website: string;
58
58
  slug: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",