@thejob/schema 1.0.62 → 1.0.63

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 (27) hide show
  1. package/dist/cjs/interfaces.index.d.ts +30 -45
  2. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  3. package/dist/cjs/resume/resume.schema.d.ts +12 -18
  4. package/dist/cjs/resume/resume.schema.d.ts.map +1 -1
  5. package/dist/cjs/user/education/education.schema.js +28 -29
  6. package/dist/cjs/user/update-skill.schema.d.ts +6 -9
  7. package/dist/cjs/user/update-skill.schema.d.ts.map +1 -1
  8. package/dist/cjs/user/user-skill/user-skill.schema.d.ts +8 -10
  9. package/dist/cjs/user/user-skill/user-skill.schema.d.ts.map +1 -1
  10. package/dist/cjs/user/user-skill/user-skill.schema.js +12 -17
  11. package/dist/cjs/user/user.schema.d.ts +6 -9
  12. package/dist/cjs/user/user.schema.d.ts.map +1 -1
  13. package/dist/cjs/user/work-experience/work-experience.schema.js +1 -1
  14. package/dist/esm/interfaces.index.d.ts +30 -45
  15. package/dist/esm/interfaces.index.d.ts.map +1 -1
  16. package/dist/esm/resume/resume.schema.d.ts +12 -18
  17. package/dist/esm/resume/resume.schema.d.ts.map +1 -1
  18. package/dist/esm/user/education/education.schema.js +28 -29
  19. package/dist/esm/user/update-skill.schema.d.ts +6 -9
  20. package/dist/esm/user/update-skill.schema.d.ts.map +1 -1
  21. package/dist/esm/user/user-skill/user-skill.schema.d.ts +8 -10
  22. package/dist/esm/user/user-skill/user-skill.schema.d.ts.map +1 -1
  23. package/dist/esm/user/user-skill/user-skill.schema.js +14 -16
  24. package/dist/esm/user/user.schema.d.ts +6 -9
  25. package/dist/esm/user/user.schema.d.ts.map +1 -1
  26. package/dist/esm/user/work-experience/work-experience.schema.js +1 -1
  27. package/package.json +1 -1
@@ -1,16 +1,13 @@
1
1
  import { InferType } from "../yup-extended";
2
2
  export declare const UpdateUserSkillsSchema: import("yup").ObjectSchema<{
3
3
  skills: {
4
- skill: NonNullable<{
5
- logo?: string | undefined;
6
- name: string;
7
- id: string;
8
- } | {
9
- value: "others" | (string | undefined)[];
10
- otherValue: string | string[];
11
- } | undefined>;
4
+ lastUsed?: string | undefined;
5
+ name: string;
6
+ logo: {
7
+ dark?: string | null | undefined;
8
+ light: string;
9
+ } | null;
12
10
  proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
13
- lastUsed: string;
14
11
  }[];
15
12
  }, import("yup").AnyObject, {
16
13
  skills: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"update-skill.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-skill.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;MASH,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"update-skill.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-skill.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;MASH,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,17 +1,15 @@
1
1
  import { InferType } from "../../yup-extended";
2
2
  export declare const UserSkillSchema: import("yup").ObjectSchema<{
3
- skill: NonNullable<{
4
- logo?: string | undefined;
5
- name: string;
6
- id: string;
7
- } | {
8
- value: "others" | (string | undefined)[];
9
- otherValue: string | string[];
10
- } | undefined>;
3
+ name: string;
4
+ logo: {
5
+ dark?: string | null | undefined;
6
+ light: string;
7
+ } | null;
11
8
  proficiencyLevel: NonNullable<import("../../common").ProficiencyLevel | undefined>;
12
- lastUsed: string;
9
+ lastUsed: string | undefined;
13
10
  }, import("yup").AnyObject, {
14
- skill: undefined;
11
+ name: undefined;
12
+ logo: null;
15
13
  proficiencyLevel: undefined;
16
14
  lastUsed: string;
17
15
  }, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"user-skill.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/user-skill/user-skill.schema.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,SAAS,EAIV,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;MAoBX,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"user-skill.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/user-skill/user-skill.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAE3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;MAmBX,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,29 +1,24 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.UserSkillSchema = void 0;
7
- const dayjs_1 = __importDefault(require("dayjs"));
8
4
  const common_1 = require("../../common");
9
5
  const yup_extended_1 = require("../../yup-extended");
10
- exports.UserSkillSchema = (0, yup_extended_1.object)()
11
- .shape({
12
- skill: (0, yup_extended_1.mixed)()
13
- .oneOfSchema([common_1.NameIdLogoSchema, common_1.OtherValueSchema])
14
- .required()
15
- .label("Skill"),
6
+ exports.UserSkillSchema = (0, yup_extended_1.object)({
7
+ name: (0, yup_extended_1.string)().trim().required().label("Skill Name"),
8
+ logo: (0, yup_extended_1.object)()
9
+ .shape({
10
+ dark: (0, yup_extended_1.string)().optional().nullable().label("Dark Logo"),
11
+ light: (0, yup_extended_1.string)().required().label("Light Logo"),
12
+ })
13
+ .optional()
14
+ .nullable()
15
+ .default(null)
16
+ .label("Logo"),
16
17
  proficiencyLevel: (0, yup_extended_1.string)()
17
18
  .oneOf(common_1.SupportedProficiencyLevels)
18
- .trim()
19
- .max(50)
20
19
  .required()
21
20
  .label("Proficiency Level"),
22
- lastUsed: (0, yup_extended_1.dateString)()
23
- .format("YYYY-MM")
24
- .optional()
25
- .default((0, dayjs_1.default)().format("YYYY-MM"))
26
- .label("Last Used"),
21
+ lastUsed: (0, yup_extended_1.dateString)().format("YYYY-MM").optional().label("Last Used"),
27
22
  })
28
23
  .noUnknown()
29
24
  .strict()
@@ -76,16 +76,13 @@ export declare const UserSchema: import("yup").ObjectSchema<{
76
76
  };
77
77
  }[];
78
78
  skills: {
79
- skill: NonNullable<{
80
- logo?: string | undefined;
81
- name: string;
82
- id: string;
83
- } | {
84
- value: "others" | (string | undefined)[];
85
- otherValue: string | string[];
86
- } | undefined>;
79
+ lastUsed?: string | undefined;
80
+ name: string;
81
+ logo: {
82
+ dark?: string | null | undefined;
83
+ light: string;
84
+ } | null;
87
85
  proficiencyLevel: NonNullable<import("../common").ProficiencyLevel | undefined>;
88
- lastUsed: string;
89
86
  }[];
90
87
  projects: {
91
88
  url?: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyFA,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"}
@@ -25,7 +25,7 @@ exports.WorkExperienceSchema = (0, yup_extended_1.object)()
25
25
  })
26
26
  .required()
27
27
  .label("Duration"),
28
- description: (0, yup_extended_1.string)().trim().max(10000).optional().label("Description"),
28
+ description: (0, yup_extended_1.string)().trim().max(3000).optional().label("Description"),
29
29
  location: (location_1.LocationSchema.required().label("Location")),
30
30
  isRemote: (0, yup_extended_1.boolean)().oneOf([true, false]).default(false).label("Is Remote"),
31
31
  })
@@ -1528,16 +1528,13 @@ export interface IResumeSchemaV2 {
1528
1528
  isDistanceLearning: boolean;
1529
1529
  studyType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").StudyType | undefined>;
1530
1530
  }[] | {
1531
- skill: NonNullable<{
1532
- logo?: string | undefined;
1533
- id: string;
1534
- name: string;
1535
- } | {
1536
- value: "others" | (string | undefined)[];
1537
- otherValue: string | string[];
1538
- } | undefined>;
1531
+ lastUsed?: string | undefined;
1532
+ name: string;
1533
+ logo: {
1534
+ dark?: string | null | undefined;
1535
+ light: string;
1536
+ } | null;
1539
1537
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
1540
- lastUsed: string;
1541
1538
  }[] | {
1542
1539
  url?: string | undefined;
1543
1540
  name: string;
@@ -1645,16 +1642,13 @@ export interface INewResumePromptSchema {
1645
1642
  }[];
1646
1643
  status: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").UserStatus | undefined>;
1647
1644
  skills: {
1648
- skill: NonNullable<{
1649
- logo?: string | undefined;
1650
- id: string;
1651
- name: string;
1652
- } | {
1653
- value: "others" | (string | undefined)[];
1654
- otherValue: string | string[];
1655
- } | undefined>;
1645
+ lastUsed?: string | undefined;
1646
+ name: string;
1647
+ logo: {
1648
+ dark?: string | null | undefined;
1649
+ light: string;
1650
+ } | null;
1656
1651
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
1657
- lastUsed: string;
1658
1652
  }[];
1659
1653
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ExperienceLevel | undefined>;
1660
1654
  location: {
@@ -1911,16 +1905,13 @@ export interface IUpdateProjectsSchema {
1911
1905
  }
1912
1906
  export interface IUpdateUserSkillsSchema {
1913
1907
  skills: {
1914
- skill: NonNullable<{
1915
- logo?: string | undefined;
1916
- id: string;
1917
- name: string;
1918
- } | {
1919
- value: "others" | (string | undefined)[];
1920
- otherValue: string | string[];
1921
- } | undefined>;
1908
+ lastUsed?: string | undefined;
1909
+ name: string;
1910
+ logo: {
1911
+ dark?: string | null | undefined;
1912
+ light: string;
1913
+ } | null;
1922
1914
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
1923
- lastUsed: string;
1924
1915
  }[];
1925
1916
  }
1926
1917
  export interface IUpdateSocialAccountsSchema {
@@ -2052,16 +2043,13 @@ export interface IUserSchema {
2052
2043
  }[];
2053
2044
  status: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").UserStatus | undefined>;
2054
2045
  skills: {
2055
- skill: NonNullable<{
2056
- logo?: string | undefined;
2057
- id: string;
2058
- name: string;
2059
- } | {
2060
- value: "others" | (string | undefined)[];
2061
- otherValue: string | string[];
2062
- } | undefined>;
2046
+ lastUsed?: string | undefined;
2047
+ name: string;
2048
+ logo: {
2049
+ dark?: string | null | undefined;
2050
+ light: string;
2051
+ } | null;
2063
2052
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
2064
- lastUsed: string;
2065
2053
  }[];
2066
2054
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ExperienceLevel | undefined>;
2067
2055
  location: {
@@ -2424,16 +2412,13 @@ export interface IUserLanguageSchema {
2424
2412
  } | undefined>;
2425
2413
  }
2426
2414
  export interface IUserSkillSchema {
2427
- skill: NonNullable<{
2428
- logo?: string | undefined;
2429
- id: string;
2430
- name: string;
2431
- } | {
2432
- value: "others" | (string | undefined)[];
2433
- otherValue: string | string[];
2434
- } | undefined>;
2415
+ lastUsed?: string | undefined;
2416
+ name: string;
2417
+ logo: {
2418
+ dark?: string | null | undefined;
2419
+ light: string;
2420
+ } | null;
2435
2421
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
2436
- lastUsed: string;
2437
2422
  }
2438
2423
  export interface IWorkExperienceSchema {
2439
2424
  description?: string | undefined;