@vedhae/cms-schema 4.2.6 → 4.2.8
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.
- package/README.md +8 -0
- package/dist/footer.schema.d.ts +101 -0
- package/dist/footer.schema.js +24 -0
- package/dist/hero.schema.d.ts +7 -7
- package/dist/hero.schema.js +1 -1
- package/dist/homeDivider.schema.d.ts +18 -0
- package/dist/homeDivider.schema.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/product.schema.d.ts +20 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FooterSchema: z.ZodObject<{
|
|
3
|
+
active: z.ZodBoolean;
|
|
4
|
+
logo: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
alt: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
url: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
}, {
|
|
11
|
+
url: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
}>;
|
|
14
|
+
company: z.ZodObject<{
|
|
15
|
+
copyrightName: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
copyrightName: string;
|
|
18
|
+
}, {
|
|
19
|
+
copyrightName: string;
|
|
20
|
+
}>;
|
|
21
|
+
customerService: z.ZodObject<{
|
|
22
|
+
whatsapp: z.ZodString;
|
|
23
|
+
amazon: z.ZodString;
|
|
24
|
+
email: z.ZodString;
|
|
25
|
+
phone: z.ZodString;
|
|
26
|
+
addressLine1: z.ZodString;
|
|
27
|
+
addressLine2: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
whatsapp: string;
|
|
30
|
+
amazon: string;
|
|
31
|
+
email: string;
|
|
32
|
+
phone: string;
|
|
33
|
+
addressLine1: string;
|
|
34
|
+
addressLine2: string;
|
|
35
|
+
}, {
|
|
36
|
+
whatsapp: string;
|
|
37
|
+
amazon: string;
|
|
38
|
+
email: string;
|
|
39
|
+
phone: string;
|
|
40
|
+
addressLine1: string;
|
|
41
|
+
addressLine2: string;
|
|
42
|
+
}>;
|
|
43
|
+
social: z.ZodObject<{
|
|
44
|
+
instagram: z.ZodString;
|
|
45
|
+
facebook: z.ZodString;
|
|
46
|
+
linkedin: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
instagram: string;
|
|
49
|
+
facebook: string;
|
|
50
|
+
linkedin: string;
|
|
51
|
+
}, {
|
|
52
|
+
instagram: string;
|
|
53
|
+
facebook: string;
|
|
54
|
+
linkedin: string;
|
|
55
|
+
}>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
active: boolean;
|
|
58
|
+
logo: {
|
|
59
|
+
url: string;
|
|
60
|
+
alt: string;
|
|
61
|
+
};
|
|
62
|
+
company: {
|
|
63
|
+
copyrightName: string;
|
|
64
|
+
};
|
|
65
|
+
customerService: {
|
|
66
|
+
whatsapp: string;
|
|
67
|
+
amazon: string;
|
|
68
|
+
email: string;
|
|
69
|
+
phone: string;
|
|
70
|
+
addressLine1: string;
|
|
71
|
+
addressLine2: string;
|
|
72
|
+
};
|
|
73
|
+
social: {
|
|
74
|
+
instagram: string;
|
|
75
|
+
facebook: string;
|
|
76
|
+
linkedin: string;
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
active: boolean;
|
|
80
|
+
logo: {
|
|
81
|
+
url: string;
|
|
82
|
+
alt: string;
|
|
83
|
+
};
|
|
84
|
+
company: {
|
|
85
|
+
copyrightName: string;
|
|
86
|
+
};
|
|
87
|
+
customerService: {
|
|
88
|
+
whatsapp: string;
|
|
89
|
+
amazon: string;
|
|
90
|
+
email: string;
|
|
91
|
+
phone: string;
|
|
92
|
+
addressLine1: string;
|
|
93
|
+
addressLine2: string;
|
|
94
|
+
};
|
|
95
|
+
social: {
|
|
96
|
+
instagram: string;
|
|
97
|
+
facebook: string;
|
|
98
|
+
linkedin: string;
|
|
99
|
+
};
|
|
100
|
+
}>;
|
|
101
|
+
export type FooterSection = z.infer<typeof FooterSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const FooterSchema = z.object({
|
|
3
|
+
active: z.boolean(),
|
|
4
|
+
logo: z.object({
|
|
5
|
+
url: z.string().min(1),
|
|
6
|
+
alt: z.string().min(1),
|
|
7
|
+
}),
|
|
8
|
+
company: z.object({
|
|
9
|
+
copyrightName: z.string().min(1),
|
|
10
|
+
}),
|
|
11
|
+
customerService: z.object({
|
|
12
|
+
whatsapp: z.string().min(1),
|
|
13
|
+
amazon: z.string().url(),
|
|
14
|
+
email: z.string().email(),
|
|
15
|
+
phone: z.string().min(1),
|
|
16
|
+
addressLine1: z.string().min(1),
|
|
17
|
+
addressLine2: z.string().min(1),
|
|
18
|
+
}),
|
|
19
|
+
social: z.object({
|
|
20
|
+
instagram: z.string().url(),
|
|
21
|
+
facebook: z.string().url(),
|
|
22
|
+
linkedin: z.string().url(),
|
|
23
|
+
}),
|
|
24
|
+
});
|
package/dist/hero.schema.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
8
8
|
description: z.ZodOptional<z.ZodString>;
|
|
9
9
|
ctaText: z.ZodString;
|
|
10
10
|
ctaLink: z.ZodString;
|
|
11
|
-
|
|
11
|
+
imageLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12
12
|
url: z.ZodString;
|
|
13
13
|
path: z.ZodString;
|
|
14
14
|
alt: z.ZodString;
|
|
@@ -20,7 +20,7 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
20
20
|
path: string;
|
|
21
21
|
url: string;
|
|
22
22
|
alt: string;
|
|
23
|
-
}>>;
|
|
23
|
+
}>, "many">>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
title: string;
|
|
26
26
|
page: "home";
|
|
@@ -29,11 +29,11 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
29
29
|
tagline: string;
|
|
30
30
|
ctaText: string;
|
|
31
31
|
ctaLink: string;
|
|
32
|
-
|
|
32
|
+
imageLinks: {
|
|
33
33
|
path: string;
|
|
34
34
|
url: string;
|
|
35
35
|
alt: string;
|
|
36
|
-
}
|
|
36
|
+
}[];
|
|
37
37
|
description?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
title: string;
|
|
@@ -43,11 +43,11 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
43
43
|
tagline: string;
|
|
44
44
|
ctaText: string;
|
|
45
45
|
ctaLink: string;
|
|
46
|
-
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
imageLinks?: {
|
|
47
48
|
path: string;
|
|
48
49
|
url: string;
|
|
49
50
|
alt: string;
|
|
50
|
-
} | undefined;
|
|
51
|
-
description?: string | undefined;
|
|
51
|
+
}[] | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
export type HeroSection = z.infer<typeof HeroSectionSchema>;
|
package/dist/hero.schema.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const HomeDividerSchema: z.ZodObject<{
|
|
3
|
+
active: z.ZodBoolean;
|
|
4
|
+
line1: z.ZodString;
|
|
5
|
+
line2: z.ZodString;
|
|
6
|
+
line3: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
active: boolean;
|
|
9
|
+
line1: string;
|
|
10
|
+
line2: string;
|
|
11
|
+
line3: string;
|
|
12
|
+
}, {
|
|
13
|
+
active: boolean;
|
|
14
|
+
line1: string;
|
|
15
|
+
line2: string;
|
|
16
|
+
line3: string;
|
|
17
|
+
}>;
|
|
18
|
+
export type HomeDivider = z.infer<typeof HomeDividerSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export { ImageAssetSchema } from "./image.schema.js";
|
|
2
2
|
export { HeroSectionSchema } from "./hero.schema.js";
|
|
3
3
|
export { CardSectionSchema } from "./cardSection.schema.js";
|
|
4
|
+
export { HomeDividerSchema } from "./homeDivider.schema.js";
|
|
5
|
+
export { FooterSchema } from "./footer.schema.js";
|
|
4
6
|
export { ProductSchema } from "./product.schema.js";
|
|
5
7
|
export { ProductHeroSchema } from "./productHero.schema.js";
|
|
6
8
|
export { AboutHeroSchema, AboutContentSchema, AboutImagesSchema, } from "./about.schema.js";
|
|
7
9
|
export type { ImageAsset } from "./image.schema.js";
|
|
8
10
|
export type { HeroSection } from "./hero.schema.js";
|
|
9
11
|
export type { CardSection } from "./cardSection.schema.js";
|
|
12
|
+
export type { HomeDivider } from "./homeDivider.schema.js";
|
|
13
|
+
export type { FooterSection } from "./footer.schema.js";
|
|
10
14
|
export type { Product } from "./product.schema.js";
|
|
11
15
|
export type { ProductHero } from "./productHero.schema.js";
|
|
12
16
|
export type { AboutHero, AboutContent, AboutImages, } from "./about.schema.js";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* ======================================================
|
|
2
2
|
SCHEMAS
|
|
3
3
|
====================================================== */
|
|
4
|
-
//
|
|
4
|
+
// Home
|
|
5
5
|
export { ImageAssetSchema } from "./image.schema.js";
|
|
6
6
|
export { HeroSectionSchema } from "./hero.schema.js";
|
|
7
7
|
export { CardSectionSchema } from "./cardSection.schema.js";
|
|
8
|
+
export { HomeDividerSchema } from "./homeDivider.schema.js";
|
|
9
|
+
export { FooterSchema } from "./footer.schema.js";
|
|
8
10
|
// Products
|
|
9
11
|
export { ProductSchema } from "./product.schema.js";
|
|
10
12
|
export { ProductHeroSchema } from "./productHero.schema.js";
|
package/dist/product.schema.d.ts
CHANGED
|
@@ -43,6 +43,11 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
43
43
|
title: string;
|
|
44
44
|
order: number;
|
|
45
45
|
active: boolean;
|
|
46
|
+
imageLinks: {
|
|
47
|
+
path: string;
|
|
48
|
+
url: string;
|
|
49
|
+
alt: string;
|
|
50
|
+
}[];
|
|
46
51
|
id: string;
|
|
47
52
|
titleDescription: string;
|
|
48
53
|
size: string;
|
|
@@ -52,11 +57,6 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
52
57
|
price: number;
|
|
53
58
|
stockStatus: boolean;
|
|
54
59
|
stockVolume: number;
|
|
55
|
-
imageLinks: {
|
|
56
|
-
path: string;
|
|
57
|
-
url: string;
|
|
58
|
-
alt: string;
|
|
59
|
-
}[];
|
|
60
60
|
aboutTitle: string;
|
|
61
61
|
aboutDescription: string;
|
|
62
62
|
howToUseTitle: string;
|
|
@@ -72,6 +72,11 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
72
72
|
title: string;
|
|
73
73
|
order: number;
|
|
74
74
|
active: boolean;
|
|
75
|
+
imageLinks: {
|
|
76
|
+
path: string;
|
|
77
|
+
url: string;
|
|
78
|
+
alt: string;
|
|
79
|
+
}[];
|
|
75
80
|
id: string;
|
|
76
81
|
titleDescription: string;
|
|
77
82
|
size: string;
|
|
@@ -81,11 +86,6 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
81
86
|
price: number;
|
|
82
87
|
stockStatus: boolean;
|
|
83
88
|
stockVolume: number;
|
|
84
|
-
imageLinks: {
|
|
85
|
-
path: string;
|
|
86
|
-
url: string;
|
|
87
|
-
alt: string;
|
|
88
|
-
}[];
|
|
89
89
|
aboutTitle: string;
|
|
90
90
|
aboutDescription: string;
|
|
91
91
|
howToUseTitle: string;
|
|
@@ -101,6 +101,11 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
101
101
|
title: string;
|
|
102
102
|
order: number;
|
|
103
103
|
active: boolean;
|
|
104
|
+
imageLinks: {
|
|
105
|
+
path: string;
|
|
106
|
+
url: string;
|
|
107
|
+
alt: string;
|
|
108
|
+
}[];
|
|
104
109
|
id: string;
|
|
105
110
|
titleDescription: string;
|
|
106
111
|
size: string;
|
|
@@ -110,11 +115,6 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
110
115
|
price: number;
|
|
111
116
|
stockStatus: boolean;
|
|
112
117
|
stockVolume: number;
|
|
113
|
-
imageLinks: {
|
|
114
|
-
path: string;
|
|
115
|
-
url: string;
|
|
116
|
-
alt: string;
|
|
117
|
-
}[];
|
|
118
118
|
aboutTitle: string;
|
|
119
119
|
aboutDescription: string;
|
|
120
120
|
howToUseTitle: string;
|
|
@@ -130,6 +130,11 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
130
130
|
title: string;
|
|
131
131
|
order: number;
|
|
132
132
|
active: boolean;
|
|
133
|
+
imageLinks: {
|
|
134
|
+
path: string;
|
|
135
|
+
url: string;
|
|
136
|
+
alt: string;
|
|
137
|
+
}[];
|
|
133
138
|
id: string;
|
|
134
139
|
titleDescription: string;
|
|
135
140
|
size: string;
|
|
@@ -139,11 +144,6 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
139
144
|
price: number;
|
|
140
145
|
stockStatus: boolean;
|
|
141
146
|
stockVolume: number;
|
|
142
|
-
imageLinks: {
|
|
143
|
-
path: string;
|
|
144
|
-
url: string;
|
|
145
|
-
alt: string;
|
|
146
|
-
}[];
|
|
147
147
|
aboutTitle: string;
|
|
148
148
|
aboutDescription: string;
|
|
149
149
|
howToUseTitle: string;
|