@thejob/schema 1.0.39 → 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.
@@ -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';
@@ -766,6 +766,32 @@ export interface ICourseSchema {
766
766
  name: string;
767
767
  type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/course/course.constant").CourseType | undefined>;
768
768
  }
769
+ export interface IBackgroundSchema {
770
+ height?: string | number | undefined;
771
+ width?: string | number | undefined;
772
+ top?: number | undefined;
773
+ right?: number | undefined;
774
+ bottom?: number | undefined;
775
+ left?: number | undefined;
776
+ image: string;
777
+ }
778
+ export interface IDesignAndFontSchema {
779
+ pageMargin: number;
780
+ sectionSpacing: number;
781
+ baseColor: string;
782
+ fontStyle: string;
783
+ fontSize: number;
784
+ lineHeight: number;
785
+ background: {
786
+ height?: string | number | undefined;
787
+ width?: string | number | undefined;
788
+ top?: number | undefined;
789
+ right?: number | undefined;
790
+ bottom?: number | undefined;
791
+ left?: number | undefined;
792
+ image: string;
793
+ }[];
794
+ }
769
795
  export interface IDesignationSchema {
770
796
  name: string;
771
797
  }
@@ -1705,6 +1731,23 @@ export interface IResumeSchemaV2 {
1705
1731
  createdBy: string;
1706
1732
  createdAt: number;
1707
1733
  userId: string;
1734
+ styles: {
1735
+ pageMargin: number;
1736
+ sectionSpacing: number;
1737
+ baseColor: string;
1738
+ fontStyle: string;
1739
+ fontSize: number;
1740
+ lineHeight: number;
1741
+ background: {
1742
+ height?: string | number | undefined;
1743
+ width?: string | number | undefined;
1744
+ top?: number | undefined;
1745
+ right?: number | undefined;
1746
+ bottom?: number | undefined;
1747
+ left?: number | undefined;
1748
+ image: string;
1749
+ }[];
1750
+ };
1708
1751
  sections: {
1709
1752
  id: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/resume/resume.constant").ResumeSectionType | undefined>;
1710
1753
  data: {