@thejob/schema 1.0.62 → 1.0.64

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 +35 -40
  2. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  3. package/dist/cjs/resume/resume.schema.d.ts +14 -16
  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 +7 -8
  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 +11 -9
  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 +14 -17
  11. package/dist/cjs/user/user.schema.d.ts +7 -8
  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 +35 -40
  15. package/dist/esm/interfaces.index.d.ts.map +1 -1
  16. package/dist/esm/resume/resume.schema.d.ts +14 -16
  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 +7 -8
  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 +11 -9
  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 +16 -16
  24. package/dist/esm/user/user.schema.d.ts +7 -8
  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,15 @@
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;
4
+ lastUsed?: string | undefined;
5
+ skill: {
6
6
  name: string;
7
- id: string;
8
- } | {
9
- value: "others" | (string | undefined)[];
10
- otherValue: string | string[];
11
- } | undefined>;
7
+ logo: {
8
+ dark?: string | null | undefined;
9
+ light: string;
10
+ } | null;
11
+ };
12
12
  proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
13
- lastUsed: string;
14
13
  }[];
15
14
  }, import("yup").AnyObject, {
16
15
  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,19 @@
1
1
  import { InferType } from "../../yup-extended";
2
2
  export declare const UserSkillSchema: import("yup").ObjectSchema<{
3
- skill: NonNullable<{
4
- logo?: string | undefined;
3
+ skill: {
5
4
  name: string;
6
- id: string;
7
- } | {
8
- value: "others" | (string | undefined)[];
9
- otherValue: string | string[];
10
- } | undefined>;
5
+ logo: {
6
+ dark?: string | null | undefined;
7
+ light: string;
8
+ } | null;
9
+ };
11
10
  proficiencyLevel: NonNullable<import("../../common").ProficiencyLevel | undefined>;
12
- lastUsed: string;
11
+ lastUsed: string | undefined;
13
12
  }, import("yup").AnyObject, {
14
- skill: undefined;
13
+ skill: {
14
+ name: undefined;
15
+ logo: null;
16
+ };
15
17
  proficiencyLevel: undefined;
16
18
  lastUsed: string;
17
19
  }, "">;
@@ -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;;;;;;;;;;;;;;;;;MAqBX,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,29 +1,26 @@
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
+ skill: (0, yup_extended_1.object)({
8
+ name: (0, yup_extended_1.string)().trim().required().label("Skill Name"),
9
+ logo: (0, yup_extended_1.object)()
10
+ .shape({
11
+ dark: (0, yup_extended_1.string)().optional().nullable().label("Dark Logo"),
12
+ light: (0, yup_extended_1.string)().required().label("Light Logo"),
13
+ })
14
+ .optional()
15
+ .nullable()
16
+ .default(null)
17
+ .label("Logo"),
18
+ }),
16
19
  proficiencyLevel: (0, yup_extended_1.string)()
17
20
  .oneOf(common_1.SupportedProficiencyLevels)
18
- .trim()
19
- .max(50)
20
21
  .required()
21
22
  .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"),
23
+ lastUsed: (0, yup_extended_1.dateString)().format("YYYY-MM").optional().label("Last Used"),
27
24
  })
28
25
  .noUnknown()
29
26
  .strict()
@@ -76,16 +76,15 @@ export declare const UserSchema: import("yup").ObjectSchema<{
76
76
  };
77
77
  }[];
78
78
  skills: {
79
- skill: NonNullable<{
80
- logo?: string | undefined;
79
+ lastUsed?: string | undefined;
80
+ skill: {
81
81
  name: string;
82
- id: string;
83
- } | {
84
- value: "others" | (string | undefined)[];
85
- otherValue: string | string[];
86
- } | undefined>;
82
+ logo: {
83
+ dark?: string | null | undefined;
84
+ light: string;
85
+ } | null;
86
+ };
87
87
  proficiencyLevel: NonNullable<import("../common").ProficiencyLevel | undefined>;
88
- lastUsed: string;
89
88
  }[];
90
89
  projects: {
91
90
  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,15 @@ 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;
1531
+ lastUsed?: string | undefined;
1532
+ skill: {
1534
1533
  name: string;
1535
- } | {
1536
- value: "others" | (string | undefined)[];
1537
- otherValue: string | string[];
1538
- } | undefined>;
1534
+ logo: {
1535
+ dark?: string | null | undefined;
1536
+ light: string;
1537
+ } | null;
1538
+ };
1539
1539
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
1540
- lastUsed: string;
1541
1540
  }[] | {
1542
1541
  url?: string | undefined;
1543
1542
  name: string;
@@ -1645,16 +1644,15 @@ export interface INewResumePromptSchema {
1645
1644
  }[];
1646
1645
  status: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").UserStatus | undefined>;
1647
1646
  skills: {
1648
- skill: NonNullable<{
1649
- logo?: string | undefined;
1650
- id: string;
1647
+ lastUsed?: string | undefined;
1648
+ skill: {
1651
1649
  name: string;
1652
- } | {
1653
- value: "others" | (string | undefined)[];
1654
- otherValue: string | string[];
1655
- } | undefined>;
1650
+ logo: {
1651
+ dark?: string | null | undefined;
1652
+ light: string;
1653
+ } | null;
1654
+ };
1656
1655
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
1657
- lastUsed: string;
1658
1656
  }[];
1659
1657
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ExperienceLevel | undefined>;
1660
1658
  location: {
@@ -1911,16 +1909,15 @@ export interface IUpdateProjectsSchema {
1911
1909
  }
1912
1910
  export interface IUpdateUserSkillsSchema {
1913
1911
  skills: {
1914
- skill: NonNullable<{
1915
- logo?: string | undefined;
1916
- id: string;
1912
+ lastUsed?: string | undefined;
1913
+ skill: {
1917
1914
  name: string;
1918
- } | {
1919
- value: "others" | (string | undefined)[];
1920
- otherValue: string | string[];
1921
- } | undefined>;
1915
+ logo: {
1916
+ dark?: string | null | undefined;
1917
+ light: string;
1918
+ } | null;
1919
+ };
1922
1920
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
1923
- lastUsed: string;
1924
1921
  }[];
1925
1922
  }
1926
1923
  export interface IUpdateSocialAccountsSchema {
@@ -2052,16 +2049,15 @@ export interface IUserSchema {
2052
2049
  }[];
2053
2050
  status: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").UserStatus | undefined>;
2054
2051
  skills: {
2055
- skill: NonNullable<{
2056
- logo?: string | undefined;
2057
- id: string;
2052
+ lastUsed?: string | undefined;
2053
+ skill: {
2058
2054
  name: string;
2059
- } | {
2060
- value: "others" | (string | undefined)[];
2061
- otherValue: string | string[];
2062
- } | undefined>;
2055
+ logo: {
2056
+ dark?: string | null | undefined;
2057
+ light: string;
2058
+ } | null;
2059
+ };
2063
2060
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
2064
- lastUsed: string;
2065
2061
  }[];
2066
2062
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ExperienceLevel | undefined>;
2067
2063
  location: {
@@ -2424,16 +2420,15 @@ export interface IUserLanguageSchema {
2424
2420
  } | undefined>;
2425
2421
  }
2426
2422
  export interface IUserSkillSchema {
2427
- skill: NonNullable<{
2428
- logo?: string | undefined;
2429
- id: string;
2423
+ lastUsed?: string | undefined;
2424
+ skill: {
2430
2425
  name: string;
2431
- } | {
2432
- value: "others" | (string | undefined)[];
2433
- otherValue: string | string[];
2434
- } | undefined>;
2426
+ logo: {
2427
+ dark?: string | null | undefined;
2428
+ light: string;
2429
+ } | null;
2430
+ };
2435
2431
  proficiencyLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").ProficiencyLevel | undefined>;
2436
- lastUsed: string;
2437
2432
  }
2438
2433
  export interface IWorkExperienceSchema {
2439
2434
  description?: string | undefined;