@thejob/schema 1.0.38 → 1.0.40

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 (47) hide show
  1. package/dist/cjs/design-and-font/design-and-font.schema.d.ts +46 -0
  2. package/dist/cjs/design-and-font/design-and-font.schema.d.ts.map +1 -0
  3. package/dist/cjs/design-and-font/design-and-font.schema.js +28 -0
  4. package/dist/cjs/design-and-font/index.d.ts +2 -0
  5. package/dist/cjs/design-and-font/index.d.ts.map +1 -0
  6. package/dist/cjs/design-and-font/index.js +17 -0
  7. package/dist/cjs/index.d.ts +1 -0
  8. package/dist/cjs/index.d.ts.map +1 -1
  9. package/dist/cjs/index.js +1 -0
  10. package/dist/cjs/interfaces.index.d.ts +185 -3
  11. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  12. package/dist/cjs/job/job.schema.d.ts +42 -1
  13. package/dist/cjs/job/job.schema.d.ts.map +1 -1
  14. package/dist/cjs/job/utils.d.ts +3 -83
  15. package/dist/cjs/job/utils.d.ts.map +1 -1
  16. package/dist/cjs/job-application/job-application.schema.d.ts +11 -11
  17. package/dist/cjs/job-role-template/job-role-template.schema.d.ts +42 -1
  18. package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
  19. package/dist/cjs/question/question.schema.d.ts +4 -2
  20. package/dist/cjs/question/question.schema.d.ts.map +1 -1
  21. package/dist/cjs/resume/resume.schema.d.ts +26 -0
  22. package/dist/cjs/resume/resume.schema.d.ts.map +1 -1
  23. package/dist/cjs/resume/resume.schema.js +2 -0
  24. package/dist/esm/design-and-font/design-and-font.schema.d.ts +46 -0
  25. package/dist/esm/design-and-font/design-and-font.schema.d.ts.map +1 -0
  26. package/dist/esm/design-and-font/design-and-font.schema.js +25 -0
  27. package/dist/esm/design-and-font/index.d.ts +2 -0
  28. package/dist/esm/design-and-font/index.d.ts.map +1 -0
  29. package/dist/esm/design-and-font/index.js +1 -0
  30. package/dist/esm/index.d.ts +1 -0
  31. package/dist/esm/index.d.ts.map +1 -1
  32. package/dist/esm/index.js +1 -0
  33. package/dist/esm/interfaces.index.d.ts +185 -3
  34. package/dist/esm/interfaces.index.d.ts.map +1 -1
  35. package/dist/esm/job/job.schema.d.ts +42 -1
  36. package/dist/esm/job/job.schema.d.ts.map +1 -1
  37. package/dist/esm/job/utils.d.ts +3 -83
  38. package/dist/esm/job/utils.d.ts.map +1 -1
  39. package/dist/esm/job-application/job-application.schema.d.ts +11 -11
  40. package/dist/esm/job-role-template/job-role-template.schema.d.ts +42 -1
  41. package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
  42. package/dist/esm/question/question.schema.d.ts +4 -2
  43. package/dist/esm/question/question.schema.d.ts.map +1 -1
  44. package/dist/esm/resume/resume.schema.d.ts +26 -0
  45. package/dist/esm/resume/resume.schema.d.ts.map +1 -1
  46. package/dist/esm/resume/resume.schema.js +2 -0
  47. package/package.json +1 -1
@@ -1,84 +1,4 @@
1
- import { QuestionType } from "../question";
2
- export declare const getSchemaByQuestion: (type: QuestionType) => import("yup").ObjectSchema<{
3
- label: string | undefined;
4
- default: boolean;
5
- title: string;
6
- type: QuestionType.Input;
7
- isOptional: boolean | undefined;
8
- readonly: boolean | undefined;
9
- isNew: boolean | undefined;
10
- } & {
11
- type: QuestionType.Input;
12
- preferredAnswer: string | undefined;
13
- answers: string | undefined;
14
- }, import("yup").AnyObject, {
15
- label: undefined;
16
- default: false;
17
- title: undefined;
18
- type: undefined;
19
- isOptional: undefined;
20
- readonly: undefined;
21
- isNew: undefined;
22
- preferredAnswer: undefined;
23
- answers: undefined;
24
- }, ""> | import("yup").ObjectSchema<{
25
- label: string | undefined;
26
- default: boolean;
27
- title: string;
28
- type: QuestionType.Choice;
29
- isOptional: boolean | undefined;
30
- readonly: boolean | undefined;
31
- isNew: boolean | undefined;
32
- } & {
33
- type: QuestionType.Choice;
34
- optionsFrom: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
35
- options: (string | {
36
- logo?: string | undefined;
37
- name: string;
38
- id: string;
39
- } | {
40
- value: "others" | (string | undefined)[];
41
- otherValue: string | string[];
42
- } | undefined)[];
43
- answerChoiceType: NonNullable<import("../question").AnswerChoiceType | undefined>;
44
- preferredAnswer: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
45
- answers: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
46
- }, import("yup").AnyObject, {
47
- label: undefined;
48
- default: false;
49
- title: undefined;
50
- type: undefined;
51
- isOptional: undefined;
52
- readonly: undefined;
53
- isNew: undefined;
54
- optionsFrom: undefined;
55
- options: "";
56
- answerChoiceType: import("../question").AnswerChoiceType.Single;
57
- preferredAnswer: undefined;
58
- answers: undefined;
59
- }, ""> | import("yup").ObjectSchema<{
60
- label: string | undefined;
61
- default: boolean;
62
- title: string;
63
- type: QuestionType.ReadAndAcknowledge;
64
- isOptional: boolean | undefined;
65
- readonly: boolean | undefined;
66
- isNew: boolean | undefined;
67
- } & {
68
- type: QuestionType.ReadAndAcknowledge;
69
- description: string;
70
- preferredAnswer: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
71
- answers: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
72
- }, import("yup").AnyObject, {
73
- label: undefined;
74
- default: false;
75
- title: undefined;
76
- type: undefined;
77
- isOptional: undefined;
78
- readonly: undefined;
79
- isNew: undefined;
80
- description: undefined;
81
- preferredAnswer: undefined;
82
- answers: undefined;
83
- }, "">;
1
+ import { ObjectSchema } from "yup";
2
+ import { QuestionType, TQuestionSchema } from "../question";
3
+ export declare const getSchemaByQuestion: (type: QuestionType) => ObjectSchema<TQuestionSchema>;
84
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/job/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEb,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB,GAAI,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWrD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/job/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAGL,YAAY,EAEZ,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB,GAC9B,MAAM,YAAY,KACjB,YAAY,CAAC,eAAe,CAW9B,CAAC"}
@@ -245,19 +245,9 @@ export declare const JobApplicationSchema: ObjectSchema<{
245
245
  isNew?: boolean | undefined;
246
246
  isOptional?: boolean | undefined;
247
247
  readonly?: boolean | undefined;
248
- preferredAnswer?: string | undefined;
249
- answers?: string | undefined;
250
- type: import("../question").QuestionType.Input;
251
- default: boolean;
252
- title: string;
253
- } | {
254
- label?: string | undefined;
255
- isNew?: boolean | undefined;
256
- isOptional?: boolean | undefined;
257
- readonly?: boolean | undefined;
248
+ optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
258
249
  preferredAnswer?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
259
250
  answers?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
260
- optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
261
251
  type: import("../question").QuestionType.Choice;
262
252
  default: boolean;
263
253
  title: string;
@@ -270,6 +260,16 @@ export declare const JobApplicationSchema: ObjectSchema<{
270
260
  otherValue: string | string[];
271
261
  } | undefined)[];
272
262
  answerChoiceType: NonNullable<import("../question").AnswerChoiceType | undefined>;
263
+ } | {
264
+ label?: string | undefined;
265
+ isNew?: boolean | undefined;
266
+ isOptional?: boolean | undefined;
267
+ readonly?: boolean | undefined;
268
+ preferredAnswer?: string | undefined;
269
+ answers?: string | undefined;
270
+ type: import("../question").QuestionType.Input;
271
+ default: boolean;
272
+ title: string;
273
273
  } | {
274
274
  label?: string | undefined;
275
275
  isNew?: boolean | undefined;
@@ -21,6 +21,47 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
21
21
  } | undefined>;
22
22
  tags: any[] | undefined;
23
23
  questionnaire: ({
24
+ label?: string | undefined;
25
+ isNew?: boolean | undefined;
26
+ isOptional?: boolean | undefined;
27
+ readonly?: boolean | undefined;
28
+ optionsFrom?: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
29
+ preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
30
+ answers?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
31
+ type: import("..").QuestionType.Choice;
32
+ default: boolean;
33
+ title: string;
34
+ options: (string | {
35
+ logo?: string | undefined;
36
+ name: string;
37
+ id: string;
38
+ } | {
39
+ value: "others" | (string | undefined)[];
40
+ otherValue: string | string[];
41
+ } | undefined)[];
42
+ answerChoiceType: NonNullable<import("..").AnswerChoiceType | undefined>;
43
+ } | {
44
+ label?: string | undefined;
45
+ isNew?: boolean | undefined;
46
+ isOptional?: boolean | undefined;
47
+ readonly?: boolean | undefined;
48
+ preferredAnswer?: string | undefined;
49
+ answers?: string | undefined;
50
+ type: import("..").QuestionType.Input;
51
+ default: boolean;
52
+ title: string;
53
+ } | {
54
+ label?: string | undefined;
55
+ isNew?: boolean | undefined;
56
+ isOptional?: boolean | undefined;
57
+ readonly?: boolean | undefined;
58
+ type: import("..").QuestionType.ReadAndAcknowledge;
59
+ default: boolean;
60
+ description: string;
61
+ title: string;
62
+ preferredAnswer: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
63
+ answers: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
64
+ } | {
24
65
  label?: string | undefined;
25
66
  isNew?: boolean | undefined;
26
67
  isOptional?: boolean | undefined;
@@ -34,8 +75,8 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
34
75
  isNew?: boolean | undefined;
35
76
  isOptional?: boolean | undefined;
36
77
  readonly?: boolean | undefined;
37
- preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
38
78
  optionsFrom?: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
79
+ preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
39
80
  type: import("..").QuestionType.Choice;
40
81
  default: boolean;
41
82
  title: string;
@@ -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"}
@@ -1,5 +1,7 @@
1
1
  import { TNameIdLogoSchema, TOtherValueSchema } from "../common";
2
- import { InferType } from "../yup-extended";
2
+ import { TChoiceQuestionSchema } from "./choice-question.schema";
3
+ import { TInputQuestionSchema } from "./input-question.schema";
4
+ import { TReadAndAcknowledgeQuestionSchema } from "./read-and-acknowledge.schema";
3
5
  export type TMixedValue = string | boolean | number | TNameIdLogoSchema | TOtherValueSchema;
4
6
  export declare const QuestionSchema: import("yup").ObjectSchema<{
5
7
  label: string | undefined;
@@ -18,5 +20,5 @@ export declare const QuestionSchema: import("yup").ObjectSchema<{
18
20
  readonly: undefined;
19
21
  isNew: undefined;
20
22
  }, "">;
21
- export type TQuestionSchema = Omit<InferType<typeof QuestionSchema>, "options">;
23
+ export type TQuestionSchema = TInputQuestionSchema | TChoiceQuestionSchema | TReadAndAcknowledgeQuestionSchema;
22
24
  //# sourceMappingURL=question.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/question.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAW,SAAS,EAAkB,MAAM,iBAAiB,CAAC;AAGrE,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,OAAO,GACP,MAAM,GACN,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;MAQzB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,cAAc,CAAC,EAAE,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/question.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAElF,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,OAAO,GACP,MAAM,GACN,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;MAQzB,CAAC;AAEH,MAAM,MAAM,eAAe,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,iCAAiC,CAAC"}
@@ -70,6 +70,23 @@ export type TResumeSocialAccountSectionSchema = InferType<typeof ResumeSocialAcc
70
70
  export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
71
71
  userId: string;
72
72
  slug: string;
73
+ styles: {
74
+ pageMargin: number;
75
+ sectionSpacing: number;
76
+ baseColor: string;
77
+ fontStyle: string;
78
+ fontSize: number;
79
+ lineHeight: number;
80
+ background: {
81
+ height?: string | number | undefined;
82
+ width?: string | number | undefined;
83
+ top?: number | undefined;
84
+ right?: number | undefined;
85
+ bottom?: number | undefined;
86
+ left?: number | undefined;
87
+ image: string;
88
+ }[];
89
+ };
73
90
  sections: {
74
91
  id: NonNullable<ResumeSectionType | undefined>;
75
92
  data: {
@@ -366,6 +383,15 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
366
383
  }, import("yup").AnyObject, {
367
384
  userId: undefined;
368
385
  slug: undefined;
386
+ styles: {
387
+ pageMargin: 10;
388
+ sectionSpacing: 10;
389
+ baseColor: "blue";
390
+ fontStyle: "Roboto";
391
+ fontSize: 12;
392
+ lineHeight: 1.15;
393
+ background: never[];
394
+ };
369
395
  sections: never[];
370
396
  id: undefined;
371
397
  shortId: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"resume.schema.d.ts","sourceRoot":"","sources":["../../../src/resume/resume.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAuC,MAAM,SAAS,CAAC;AAC3E,OAAO,EAEL,WAAW,EAEX,SAAS,EAMV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,iBAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiEC,CAAC;AAC7B,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,cAAc,CAAC,CAAC;AAoB/D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+BA,CAAC;AAE1B,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBb,CAAC;AAEvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NewResumePromptSchema = exports.ResumeSchema = exports.ResumeSchemaV2 = exports.ResumeSocialAccountSectionSchema = void 0;
4
4
  const common_1 = require("../common");
5
+ const design_and_font_1 = require("../design-and-font");
5
6
  const user_1 = require("../user");
6
7
  const yup_extended_1 = require("../yup-extended");
7
8
  const resume_constant_1 = require("./resume.constant");
@@ -95,6 +96,7 @@ exports.ResumeSchemaV2 = (0, yup_extended_1.object)()
95
96
  .shape({
96
97
  userId: (0, yup_extended_1.string)().objectId().required().label("User ID"),
97
98
  slug: (0, yup_extended_1.string)().required().label("Slug"),
99
+ styles: design_and_font_1.DesignAndFontSchema.required().label("Design and Font"),
98
100
  sections: (0, yup_extended_1.array)()
99
101
  .of((0, yup_extended_1.lazy)((section) => {
100
102
  const { id } = section;
@@ -0,0 +1,46 @@
1
+ import { InferType } from "../yup-extended";
2
+ export declare const BackgroundSchema: import("yup").ObjectSchema<{
3
+ image: string;
4
+ height: string | number | undefined;
5
+ width: string | number | undefined;
6
+ top: number | undefined;
7
+ right: number | undefined;
8
+ bottom: number | undefined;
9
+ left: number | undefined;
10
+ }, import("yup").AnyObject, {
11
+ image: undefined;
12
+ height: undefined;
13
+ width: undefined;
14
+ top: undefined;
15
+ right: undefined;
16
+ bottom: undefined;
17
+ left: undefined;
18
+ }, "">;
19
+ export type TBackgroundSchema = InferType<typeof BackgroundSchema>;
20
+ export declare const DesignAndFontSchema: import("yup").ObjectSchema<{
21
+ pageMargin: number;
22
+ sectionSpacing: number;
23
+ baseColor: string;
24
+ fontStyle: string;
25
+ fontSize: number;
26
+ lineHeight: number;
27
+ background: {
28
+ height?: string | number | undefined;
29
+ width?: string | number | undefined;
30
+ top?: number | undefined;
31
+ right?: number | undefined;
32
+ bottom?: number | undefined;
33
+ left?: number | undefined;
34
+ image: string;
35
+ }[];
36
+ }, import("yup").AnyObject, {
37
+ pageMargin: 10;
38
+ sectionSpacing: 10;
39
+ baseColor: "blue";
40
+ fontStyle: "Roboto";
41
+ fontSize: 12;
42
+ lineHeight: 1.15;
43
+ background: never[];
44
+ }, "">;
45
+ export type TDesignAndFontSchema = InferType<typeof DesignAndFontSchema>;
46
+ //# sourceMappingURL=design-and-font.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-and-font.schema.d.ts","sourceRoot":"","sources":["../../../src/design-and-font/design-and-font.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAKV,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;MAc3B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;MAQ9B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { array, mixed, number, object, string, } from "../yup-extended";
2
+ export const BackgroundSchema = object().shape({
3
+ image: string().required().label("Image"),
4
+ height: mixed()
5
+ .oneOfSchema([string(), number()])
6
+ .optional()
7
+ .label("Height"),
8
+ width: mixed()
9
+ .oneOfSchema([string(), number()])
10
+ .optional()
11
+ .label("Width"),
12
+ top: number().optional().label("Top"),
13
+ right: number().optional().label("Right"),
14
+ bottom: number().optional().label("Bottom"),
15
+ left: number().optional().label("Left"),
16
+ });
17
+ export const DesignAndFontSchema = object().shape({
18
+ pageMargin: number().required().default(10).label("Page Margin"),
19
+ sectionSpacing: number().required().default(10).label("Section Spacing"),
20
+ baseColor: string().required().default("blue").label("Base Color"),
21
+ fontStyle: string().required().default("Roboto").label("Font Style"),
22
+ fontSize: number().required().default(12).label("Font Size"),
23
+ lineHeight: number().required().default(1.15).label("Line Height"),
24
+ background: array().of(BackgroundSchema).default([]).label("Background"),
25
+ });
@@ -0,0 +1,2 @@
1
+ export * from "./design-and-font.schema";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-and-font/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./design-and-font.schema";
@@ -21,6 +21,7 @@ export * from "./job-role-template";
21
21
  export * from "./ai";
22
22
  export * from "./group";
23
23
  export * from "./social-account";
24
+ export * from "./design-and-font";
24
25
  export * from "./yup-extended";
25
26
  export * from './interfaces.index';
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -21,5 +21,6 @@ export * from "./job-role-template";
21
21
  export * from "./ai";
22
22
  export * from "./group";
23
23
  export * from "./social-account";
24
+ export * from "./design-and-font";
24
25
  export * from "./yup-extended";
25
26
  export * from './interfaces.index';