@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
@@ -27,16 +27,16 @@ export declare const DbDefaultSchema: import("yup").ObjectSchema<{
27
27
  id: string;
28
28
  shortId: string;
29
29
  createdBy: string;
30
- createdAt: string;
30
+ createdAt: number;
31
31
  updatedBy: string | undefined;
32
- updatedAt: string | undefined;
32
+ updatedAt: number | undefined;
33
33
  }, import("yup").AnyObject, {
34
34
  id: undefined;
35
35
  shortId: undefined;
36
36
  createdBy: undefined;
37
- createdAt: string;
37
+ createdAt: undefined;
38
38
  updatedBy: undefined;
39
- updatedAt: string;
39
+ updatedAt: undefined;
40
40
  }, "">;
41
41
  export type TDBDefaultSchema = InferType<typeof DbDefaultSchema>;
42
42
  export declare const CompletenessScoreSchema: (minScore?: number) => import("yup").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../../src/common/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAQV,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;;;;;MAOlB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,gBAAgB;;;;;;MAwBlB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;MAIlC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;MAkBjB,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,eAAO,MAAM,uBAAuB,GAAI,WAAU,MAAW;;;;;;;;MAKzD,CAAC;AAEL,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAC9C,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;MAGnC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,OAAO,wBAAwB,CAChC,CAAC"}
1
+ {"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../../src/common/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAQV,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;;;;;MAOlB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,gBAAgB;;;;;;MAwBlB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;MAIlC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;MAYjB,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,eAAO,MAAM,uBAAuB,GAAI,WAAU,MAAW;;;;;;;;MAKzD,CAAC;AAEL,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAC9C,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;MAGnC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,OAAO,wBAAwB,CAChC,CAAC"}
@@ -42,15 +42,9 @@ exports.DbDefaultSchema = (0, yup_extended_1.object)()
42
42
  id: (0, yup_extended_1.string)().objectId().required().label("Id"),
43
43
  shortId: (0, yup_extended_1.string)().required().max(12).label("Short ID"),
44
44
  createdBy: (0, yup_extended_1.string)().required().label("Created By"),
45
- createdAt: (0, yup_extended_1.dateString)()
46
- .required()
47
- .typeError(`Create date must be a valid date`)
48
- .label("Created At"),
45
+ createdAt: (0, yup_extended_1.number)().required().label("Created At"),
49
46
  updatedBy: (0, yup_extended_1.string)().label("Updated By"),
50
- updatedAt: (0, yup_extended_1.dateString)()
51
- .optional()
52
- .typeError(`Update date must be a valid date`)
53
- .label("Updated At"),
47
+ updatedAt: (0, yup_extended_1.number)().optional().label("Updated At"),
54
48
  })
55
49
  .label("Db Default Schema")
56
50
  .noUnknown()
@@ -15,11 +15,11 @@ export interface ITermsAndConditionSchema {
15
15
  }
16
16
  export interface IDBDefaultSchema {
17
17
  updatedBy?: string | undefined;
18
- updatedAt?: string | undefined;
18
+ updatedAt?: number | undefined;
19
19
  id: string;
20
20
  shortId: string;
21
21
  createdBy: string;
22
- createdAt: string;
22
+ createdAt: number;
23
23
  }
24
24
  export interface ICompletenessScoreSchema {
25
25
  score: number;
@@ -127,7 +127,7 @@ export interface IGroupSchema {
127
127
  }
128
128
  export interface IJobSchema {
129
129
  updatedBy?: string | undefined;
130
- updatedAt?: string | undefined;
130
+ updatedAt?: number | undefined;
131
131
  seoTags?: {
132
132
  meta: {
133
133
  description?: string | undefined;
@@ -206,7 +206,7 @@ export interface IJobSchema {
206
206
  termsAccepted: NonNullable<boolean | undefined>;
207
207
  shortId: string;
208
208
  createdBy: string;
209
- createdAt: string;
209
+ createdAt: number;
210
210
  description: string;
211
211
  slug: string;
212
212
  headline: string;
@@ -229,7 +229,7 @@ export interface IJobSchema {
229
229
  otherValue: string | string[];
230
230
  } | Pick<{
231
231
  updatedBy?: string | undefined;
232
- updatedAt?: string | undefined;
232
+ updatedAt?: number | undefined;
233
233
  headline?: string | undefined;
234
234
  employeeCount?: string | undefined;
235
235
  yearFounded?: string | undefined;
@@ -275,7 +275,7 @@ export interface IJobSchema {
275
275
  } | null;
276
276
  shortId: string;
277
277
  createdBy: string;
278
- createdAt: string;
278
+ createdAt: number;
279
279
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
280
280
  slug: string;
281
281
  about: string;
@@ -344,7 +344,7 @@ export interface IobRoleTemplate {
344
344
  }
345
345
  export interface IJobApplicationSchema {
346
346
  updatedBy?: string | undefined;
347
- updatedAt?: string | undefined;
347
+ updatedAt?: number | undefined;
348
348
  score?: number | undefined;
349
349
  questionnaire?: {
350
350
  description?: string | undefined;
@@ -383,7 +383,7 @@ export interface IJobApplicationSchema {
383
383
  id: string;
384
384
  shortId: string;
385
385
  createdBy: string;
386
- createdAt: string;
386
+ createdAt: number;
387
387
  userId: string;
388
388
  email: string;
389
389
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ExperienceLevel | undefined>;
@@ -429,7 +429,7 @@ export interface IJobApplicationSchema {
429
429
  otherValue: string | string[];
430
430
  } | Pick<{
431
431
  updatedBy?: string | undefined;
432
- updatedAt?: string | undefined;
432
+ updatedAt?: number | undefined;
433
433
  headline?: string | undefined;
434
434
  employeeCount?: string | undefined;
435
435
  yearFounded?: string | undefined;
@@ -475,7 +475,7 @@ export interface IJobApplicationSchema {
475
475
  } | null;
476
476
  shortId: string;
477
477
  createdBy: string;
478
- createdAt: string;
478
+ createdAt: number;
479
479
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
480
480
  slug: string;
481
481
  about: string;
@@ -539,7 +539,7 @@ export interface IJobApplicationSchema {
539
539
  otherValue: string | string[];
540
540
  } | Pick<{
541
541
  updatedBy?: string | undefined;
542
- updatedAt?: string | undefined;
542
+ updatedAt?: number | undefined;
543
543
  headline?: string | undefined;
544
544
  employeeCount?: string | undefined;
545
545
  yearFounded?: string | undefined;
@@ -585,7 +585,7 @@ export interface IJobApplicationSchema {
585
585
  } | null;
586
586
  shortId: string;
587
587
  createdBy: string;
588
- createdAt: string;
588
+ createdAt: number;
589
589
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
590
590
  slug: string;
591
591
  about: string;
@@ -678,7 +678,7 @@ export interface ILocationSchema {
678
678
  }
679
679
  export interface IPageSchema {
680
680
  updatedBy?: string | undefined;
681
- updatedAt?: string | undefined;
681
+ updatedAt?: number | undefined;
682
682
  headline?: string | undefined;
683
683
  employeeCount?: string | undefined;
684
684
  yearFounded?: string | undefined;
@@ -724,7 +724,7 @@ export interface IPageSchema {
724
724
  } | null;
725
725
  shortId: string;
726
726
  createdBy: string;
727
- createdAt: string;
727
+ createdAt: number;
728
728
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
729
729
  slug: string;
730
730
  about: string;
@@ -1067,11 +1067,11 @@ export interface IResumeSectionSchema {
1067
1067
  }
1068
1068
  export interface IResumeSchema {
1069
1069
  updatedBy?: string | undefined;
1070
- updatedAt?: string | undefined;
1070
+ updatedAt?: number | undefined;
1071
1071
  id: string;
1072
1072
  shortId: string;
1073
1073
  createdBy: string;
1074
- createdAt: string;
1074
+ createdAt: number;
1075
1075
  userId: string;
1076
1076
  slug: string;
1077
1077
  title: string;
@@ -1140,7 +1140,7 @@ export interface INewResumePromptSchema {
1140
1140
  otherValue: string | string[];
1141
1141
  } | Pick<{
1142
1142
  updatedBy?: string | undefined;
1143
- updatedAt?: string | undefined;
1143
+ updatedAt?: number | undefined;
1144
1144
  headline?: string | undefined;
1145
1145
  employeeCount?: string | undefined;
1146
1146
  yearFounded?: string | undefined;
@@ -1186,7 +1186,7 @@ export interface INewResumePromptSchema {
1186
1186
  } | null;
1187
1187
  shortId: string;
1188
1188
  createdBy: string;
1189
- createdAt: string;
1189
+ createdAt: number;
1190
1190
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
1191
1191
  slug: string;
1192
1192
  about: string;
@@ -1250,7 +1250,7 @@ export interface INewResumePromptSchema {
1250
1250
  otherValue: string | string[];
1251
1251
  } | Pick<{
1252
1252
  updatedBy?: string | undefined;
1253
- updatedAt?: string | undefined;
1253
+ updatedAt?: number | undefined;
1254
1254
  headline?: string | undefined;
1255
1255
  employeeCount?: string | undefined;
1256
1256
  yearFounded?: string | undefined;
@@ -1296,7 +1296,7 @@ export interface INewResumePromptSchema {
1296
1296
  } | null;
1297
1297
  shortId: string;
1298
1298
  createdBy: string;
1299
- createdAt: string;
1299
+ createdAt: number;
1300
1300
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
1301
1301
  slug: string;
1302
1302
  about: string;
@@ -1377,13 +1377,13 @@ export interface INewResumePromptSchema {
1377
1377
  export interface ISkillSchema {
1378
1378
  logo?: string | undefined;
1379
1379
  updatedBy?: string | undefined;
1380
- updatedAt?: string | undefined;
1380
+ updatedAt?: number | undefined;
1381
1381
  tags?: (string | undefined)[] | undefined;
1382
1382
  name: string;
1383
1383
  id: string;
1384
1384
  shortId: string;
1385
1385
  createdBy: string;
1386
- createdAt: string;
1386
+ createdAt: number;
1387
1387
  }
1388
1388
  export interface ISocialAccountSchema {
1389
1389
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").SocialAccount | undefined>;
@@ -1450,7 +1450,7 @@ export interface IUpdateEducationsSchema {
1450
1450
  otherValue: string | string[];
1451
1451
  } | Pick<{
1452
1452
  updatedBy?: string | undefined;
1453
- updatedAt?: string | undefined;
1453
+ updatedAt?: number | undefined;
1454
1454
  headline?: string | undefined;
1455
1455
  employeeCount?: string | undefined;
1456
1456
  yearFounded?: string | undefined;
@@ -1496,7 +1496,7 @@ export interface IUpdateEducationsSchema {
1496
1496
  } | null;
1497
1497
  shortId: string;
1498
1498
  createdBy: string;
1499
- createdAt: string;
1499
+ createdAt: number;
1500
1500
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
1501
1501
  slug: string;
1502
1502
  about: string;
@@ -1599,7 +1599,7 @@ export interface IUpdateWorkExperiencesSchema {
1599
1599
  otherValue: string | string[];
1600
1600
  } | Pick<{
1601
1601
  updatedBy?: string | undefined;
1602
- updatedAt?: string | undefined;
1602
+ updatedAt?: number | undefined;
1603
1603
  headline?: string | undefined;
1604
1604
  employeeCount?: string | undefined;
1605
1605
  yearFounded?: string | undefined;
@@ -1645,7 +1645,7 @@ export interface IUpdateWorkExperiencesSchema {
1645
1645
  } | null;
1646
1646
  shortId: string;
1647
1647
  createdBy: string;
1648
- createdAt: string;
1648
+ createdAt: number;
1649
1649
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
1650
1650
  slug: string;
1651
1651
  about: string;
@@ -1801,7 +1801,7 @@ export interface IUserSchema {
1801
1801
  otherValue: string | string[];
1802
1802
  } | Pick<{
1803
1803
  updatedBy?: string | undefined;
1804
- updatedAt?: string | undefined;
1804
+ updatedAt?: number | undefined;
1805
1805
  headline?: string | undefined;
1806
1806
  employeeCount?: string | undefined;
1807
1807
  yearFounded?: string | undefined;
@@ -1847,7 +1847,7 @@ export interface IUserSchema {
1847
1847
  } | null;
1848
1848
  shortId: string;
1849
1849
  createdBy: string;
1850
- createdAt: string;
1850
+ createdAt: number;
1851
1851
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
1852
1852
  slug: string;
1853
1853
  about: string;
@@ -1911,7 +1911,7 @@ export interface IUserSchema {
1911
1911
  otherValue: string | string[];
1912
1912
  } | Pick<{
1913
1913
  updatedBy?: string | undefined;
1914
- updatedAt?: string | undefined;
1914
+ updatedAt?: number | undefined;
1915
1915
  headline?: string | undefined;
1916
1916
  employeeCount?: string | undefined;
1917
1917
  yearFounded?: string | undefined;
@@ -1957,7 +1957,7 @@ export interface IUserSchema {
1957
1957
  } | null;
1958
1958
  shortId: string;
1959
1959
  createdBy: string;
1960
- createdAt: string;
1960
+ createdAt: number;
1961
1961
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
1962
1962
  slug: string;
1963
1963
  about: string;
@@ -2069,7 +2069,7 @@ export interface IserProfileOverview {
2069
2069
  otherValue: string | string[];
2070
2070
  } | Pick<{
2071
2071
  updatedBy?: string | undefined;
2072
- updatedAt?: string | undefined;
2072
+ updatedAt?: number | undefined;
2073
2073
  headline?: string | undefined;
2074
2074
  employeeCount?: string | undefined;
2075
2075
  yearFounded?: string | undefined;
@@ -2115,7 +2115,7 @@ export interface IserProfileOverview {
2115
2115
  } | null;
2116
2116
  shortId: string;
2117
2117
  createdBy: string;
2118
- createdAt: string;
2118
+ createdAt: number;
2119
2119
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
2120
2120
  slug: string;
2121
2121
  about: string;
@@ -2179,7 +2179,7 @@ export interface IserProfileOverview {
2179
2179
  otherValue: string | string[];
2180
2180
  } | Pick<{
2181
2181
  updatedBy?: string | undefined;
2182
- updatedAt?: string | undefined;
2182
+ updatedAt?: number | undefined;
2183
2183
  headline?: string | undefined;
2184
2184
  employeeCount?: string | undefined;
2185
2185
  yearFounded?: string | undefined;
@@ -2225,7 +2225,7 @@ export interface IserProfileOverview {
2225
2225
  } | null;
2226
2226
  shortId: string;
2227
2227
  createdBy: string;
2228
- createdAt: string;
2228
+ createdAt: number;
2229
2229
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
2230
2230
  slug: string;
2231
2231
  about: string;
@@ -2303,7 +2303,7 @@ export interface IEducationSchema {
2303
2303
  otherValue: string | string[];
2304
2304
  } | Pick<{
2305
2305
  updatedBy?: string | undefined;
2306
- updatedAt?: string | undefined;
2306
+ updatedAt?: number | undefined;
2307
2307
  headline?: string | undefined;
2308
2308
  employeeCount?: string | undefined;
2309
2309
  yearFounded?: string | undefined;
@@ -2349,7 +2349,7 @@ export interface IEducationSchema {
2349
2349
  } | null;
2350
2350
  shortId: string;
2351
2351
  createdBy: string;
2352
- createdAt: string;
2352
+ createdAt: number;
2353
2353
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
2354
2354
  slug: string;
2355
2355
  about: string;
@@ -2476,7 +2476,7 @@ export interface IWorkExperienceSchema {
2476
2476
  otherValue: string | string[];
2477
2477
  } | Pick<{
2478
2478
  updatedBy?: string | undefined;
2479
- updatedAt?: string | undefined;
2479
+ updatedAt?: number | undefined;
2480
2480
  headline?: string | undefined;
2481
2481
  employeeCount?: string | undefined;
2482
2482
  yearFounded?: string | undefined;
@@ -2522,7 +2522,7 @@ export interface IWorkExperienceSchema {
2522
2522
  } | null;
2523
2523
  shortId: string;
2524
2524
  createdBy: string;
2525
- createdAt: string;
2525
+ createdAt: number;
2526
2526
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/page/page.constant").PageType | undefined>;
2527
2527
  slug: string;
2528
2528
  about: string;
@@ -12,7 +12,7 @@ export declare const JobSchema: 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 JobSchema: 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;
@@ -180,9 +180,9 @@ export declare const JobSchema: ObjectSchema<{
180
180
  id: string;
181
181
  shortId: string;
182
182
  createdBy: string;
183
- createdAt: string;
183
+ createdAt: number;
184
184
  updatedBy: string | undefined;
185
- updatedAt: string | undefined;
185
+ updatedAt: number | undefined;
186
186
  }, import("yup").AnyObject, {
187
187
  headline: undefined;
188
188
  slug: undefined;
@@ -224,21 +224,15 @@ export declare const JobSchema: ObjectSchema<{
224
224
  ratePerHour: undefined;
225
225
  externalApplicantCount: undefined;
226
226
  isPromoted: undefined;
227
- salaryRange: {
228
- currency: "USD";
229
- min: undefined;
230
- max: undefined;
231
- compensationType: undefined;
232
- isNegotiable: false;
233
- };
227
+ salaryRange: undefined;
234
228
  reports: "";
235
229
  termsAccepted: undefined;
236
230
  id: undefined;
237
231
  shortId: undefined;
238
232
  createdBy: undefined;
239
- createdAt: string;
233
+ createdAt: undefined;
240
234
  updatedBy: undefined;
241
- updatedAt: string;
235
+ updatedAt: undefined;
242
236
  }, "">;
243
237
  export type TJobSchema = InferType<typeof JobSchema>;
244
238
  //# sourceMappingURL=job.schema.d.ts.map
@@ -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;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwXP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
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;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwXP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -318,6 +318,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
318
318
  .default(false)
319
319
  .label("Is Negotiable"),
320
320
  })
321
+ .default(undefined)
321
322
  .optional()
322
323
  .label("Salary Range"),
323
324
  /*
@@ -335,7 +336,6 @@ exports.JobSchema = (0, yup_extended_1.object)()
335
336
  termsAccepted: (0, yup_extended_1.boolean)()
336
337
  .oneOf([true], "Accept terms before proceeding")
337
338
  .required("Accept terms before proceeding")
338
- .required()
339
339
  .label("Terms accepted"),
340
340
  })
341
341
  .concat(common_1.DbDefaultSchema)
@@ -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,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./institute.schema"), exports);
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstituteSchema = void 0;
4
+ const yup_extended_1 = require("../../yup-extended");
5
+ exports.InstituteSchema = (0, yup_extended_1.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"}
@@ -5,6 +5,7 @@ const common_1 = require("../common");
5
5
  const social_account_1 = require("../social-account");
6
6
  const yup_extended_1 = require("../yup-extended");
7
7
  const company_1 = require("./company");
8
+ const institute_1 = require("./institute");
8
9
  const page_location_1 = require("./page-location");
9
10
  const page_constant_1 = require("./page.constant");
10
11
  exports.PageSchema = (0, yup_extended_1.object)()
@@ -71,6 +72,7 @@ exports.PageSchema = (0, yup_extended_1.object)()
71
72
  isOwner: (0, yup_extended_1.boolean)().optional().label("Is Owner"),
72
73
  })
73
74
  .concat(company_1.CompanySchema)
75
+ .concat(institute_1.InstituteSchema)
74
76
  .concat(common_1.DbDefaultSchema)
75
77
  .noUnknown(true)
76
78
  .strict(true)