@thejob/schema 1.0.64 → 1.0.65

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.
@@ -1 +1 @@
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
+ {"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;;;;;;;;;;;;;;;;;MAsBX,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -6,16 +6,17 @@ const yup_extended_1 = require("../../yup-extended");
6
6
  exports.UserSkillSchema = (0, yup_extended_1.object)({
7
7
  skill: (0, yup_extended_1.object)({
8
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"),
9
+ logo: (0, yup_extended_1.object)({
12
10
  light: (0, yup_extended_1.string)().required().label("Light Logo"),
11
+ dark: (0, yup_extended_1.string)().optional().nullable().label("Dark Logo"),
13
12
  })
14
13
  .optional()
15
14
  .nullable()
16
15
  .default(null)
17
16
  .label("Logo"),
18
- }),
17
+ })
18
+ .required()
19
+ .label("Skill"),
19
20
  proficiencyLevel: (0, yup_extended_1.string)()
20
21
  .oneOf(common_1.SupportedProficiencyLevels)
21
22
  .required()
@@ -1 +1 @@
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
+ {"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;;;;;;;;;;;;;;;;;MAsBX,CAAC;AAElB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -3,16 +3,17 @@ import { dateString, object, string } from "../../yup-extended";
3
3
  export const UserSkillSchema = object({
4
4
  skill: object({
5
5
  name: string().trim().required().label("Skill Name"),
6
- logo: object()
7
- .shape({
8
- dark: string().optional().nullable().label("Dark Logo"),
6
+ logo: object({
9
7
  light: string().required().label("Light Logo"),
8
+ dark: string().optional().nullable().label("Dark Logo"),
10
9
  })
11
10
  .optional()
12
11
  .nullable()
13
12
  .default(null)
14
13
  .label("Logo"),
15
- }),
14
+ })
15
+ .required()
16
+ .label("Skill"),
16
17
  proficiencyLevel: string()
17
18
  .oneOf(SupportedProficiencyLevels)
18
19
  .required()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",