@vedhae/cms-schema 4.2.9 → 4.2.11
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/dist/about.schema.d.ts +10 -0
- package/dist/about.schema.js +2 -4
- package/dist/cardSection.schema.d.ts +22 -10
- package/dist/hero.schema.d.ts +9 -4
- package/dist/image.schema.d.ts +5 -2
- package/dist/image.schema.js +1 -0
- package/dist/product.schema.d.ts +13 -6
- package/dist/productHero.schema.d.ts +9 -4
- package/package.json +1 -1
package/dist/about.schema.d.ts
CHANGED
|
@@ -18,23 +18,33 @@ export type AboutContent = z.infer<typeof AboutContentSchema>;
|
|
|
18
18
|
export declare const AboutImagesSchema: z.ZodObject<{
|
|
19
19
|
images: z.ZodArray<z.ZodObject<{
|
|
20
20
|
url: z.ZodString;
|
|
21
|
+
path: z.ZodString;
|
|
21
22
|
alt: z.ZodString;
|
|
23
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
22
24
|
}, "strip", z.ZodTypeAny, {
|
|
23
25
|
url: string;
|
|
26
|
+
path: string;
|
|
24
27
|
alt: string;
|
|
28
|
+
desc?: string | undefined;
|
|
25
29
|
}, {
|
|
26
30
|
url: string;
|
|
31
|
+
path: string;
|
|
27
32
|
alt: string;
|
|
33
|
+
desc?: string | undefined;
|
|
28
34
|
}>, "many">;
|
|
29
35
|
}, "strip", z.ZodTypeAny, {
|
|
30
36
|
images: {
|
|
31
37
|
url: string;
|
|
38
|
+
path: string;
|
|
32
39
|
alt: string;
|
|
40
|
+
desc?: string | undefined;
|
|
33
41
|
}[];
|
|
34
42
|
}, {
|
|
35
43
|
images: {
|
|
36
44
|
url: string;
|
|
45
|
+
path: string;
|
|
37
46
|
alt: string;
|
|
47
|
+
desc?: string | undefined;
|
|
38
48
|
}[];
|
|
39
49
|
}>;
|
|
40
50
|
export type AboutImages = z.infer<typeof AboutImagesSchema>;
|
package/dist/about.schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { ImageAssetSchema } from "./image.schema.js";
|
|
2
3
|
/* =========================
|
|
3
4
|
ABOUT PAGE
|
|
4
5
|
========================= */
|
|
@@ -9,8 +10,5 @@ export const AboutContentSchema = z.object({
|
|
|
9
10
|
paragraphs: z.array(z.string()),
|
|
10
11
|
});
|
|
11
12
|
export const AboutImagesSchema = z.object({
|
|
12
|
-
images: z.array(
|
|
13
|
-
url: z.string().url(),
|
|
14
|
-
alt: z.string(),
|
|
15
|
-
})),
|
|
13
|
+
images: z.array(ImageAssetSchema),
|
|
16
14
|
});
|
|
@@ -7,32 +7,37 @@ export declare const CardItemSchema: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodString;
|
|
8
8
|
path: z.ZodString;
|
|
9
9
|
alt: z.ZodString;
|
|
10
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
path: string;
|
|
12
12
|
url: string;
|
|
13
|
+
path: string;
|
|
13
14
|
alt: string;
|
|
15
|
+
desc?: string | undefined;
|
|
14
16
|
}, {
|
|
15
|
-
path: string;
|
|
16
17
|
url: string;
|
|
18
|
+
path: string;
|
|
17
19
|
alt: string;
|
|
20
|
+
desc?: string | undefined;
|
|
18
21
|
}>;
|
|
19
22
|
}, "strip", z.ZodTypeAny, {
|
|
20
23
|
name: string;
|
|
21
24
|
link: string;
|
|
22
25
|
order: number;
|
|
23
26
|
image: {
|
|
24
|
-
path: string;
|
|
25
27
|
url: string;
|
|
28
|
+
path: string;
|
|
26
29
|
alt: string;
|
|
30
|
+
desc?: string | undefined;
|
|
27
31
|
};
|
|
28
32
|
}, {
|
|
29
33
|
name: string;
|
|
30
34
|
link: string;
|
|
31
35
|
order: number;
|
|
32
36
|
image: {
|
|
33
|
-
path: string;
|
|
34
37
|
url: string;
|
|
38
|
+
path: string;
|
|
35
39
|
alt: string;
|
|
40
|
+
desc?: string | undefined;
|
|
36
41
|
};
|
|
37
42
|
}>;
|
|
38
43
|
export declare const CardSectionSchema: z.ZodObject<{
|
|
@@ -49,32 +54,37 @@ export declare const CardSectionSchema: z.ZodObject<{
|
|
|
49
54
|
url: z.ZodString;
|
|
50
55
|
path: z.ZodString;
|
|
51
56
|
alt: z.ZodString;
|
|
57
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
52
58
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
path: string;
|
|
54
59
|
url: string;
|
|
60
|
+
path: string;
|
|
55
61
|
alt: string;
|
|
62
|
+
desc?: string | undefined;
|
|
56
63
|
}, {
|
|
57
|
-
path: string;
|
|
58
64
|
url: string;
|
|
65
|
+
path: string;
|
|
59
66
|
alt: string;
|
|
67
|
+
desc?: string | undefined;
|
|
60
68
|
}>;
|
|
61
69
|
}, "strip", z.ZodTypeAny, {
|
|
62
70
|
name: string;
|
|
63
71
|
link: string;
|
|
64
72
|
order: number;
|
|
65
73
|
image: {
|
|
66
|
-
path: string;
|
|
67
74
|
url: string;
|
|
75
|
+
path: string;
|
|
68
76
|
alt: string;
|
|
77
|
+
desc?: string | undefined;
|
|
69
78
|
};
|
|
70
79
|
}, {
|
|
71
80
|
name: string;
|
|
72
81
|
link: string;
|
|
73
82
|
order: number;
|
|
74
83
|
image: {
|
|
75
|
-
path: string;
|
|
76
84
|
url: string;
|
|
85
|
+
path: string;
|
|
77
86
|
alt: string;
|
|
87
|
+
desc?: string | undefined;
|
|
78
88
|
};
|
|
79
89
|
}>, "many">;
|
|
80
90
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -88,9 +98,10 @@ export declare const CardSectionSchema: z.ZodObject<{
|
|
|
88
98
|
link: string;
|
|
89
99
|
order: number;
|
|
90
100
|
image: {
|
|
91
|
-
path: string;
|
|
92
101
|
url: string;
|
|
102
|
+
path: string;
|
|
93
103
|
alt: string;
|
|
104
|
+
desc?: string | undefined;
|
|
94
105
|
};
|
|
95
106
|
}[];
|
|
96
107
|
}, {
|
|
@@ -104,9 +115,10 @@ export declare const CardSectionSchema: z.ZodObject<{
|
|
|
104
115
|
link: string;
|
|
105
116
|
order: number;
|
|
106
117
|
image: {
|
|
107
|
-
path: string;
|
|
108
118
|
url: string;
|
|
119
|
+
path: string;
|
|
109
120
|
alt: string;
|
|
121
|
+
desc?: string | undefined;
|
|
110
122
|
};
|
|
111
123
|
}[];
|
|
112
124
|
}>;
|
package/dist/hero.schema.d.ts
CHANGED
|
@@ -12,14 +12,17 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
12
12
|
url: z.ZodString;
|
|
13
13
|
path: z.ZodString;
|
|
14
14
|
alt: z.ZodString;
|
|
15
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
path: string;
|
|
17
17
|
url: string;
|
|
18
|
+
path: string;
|
|
18
19
|
alt: string;
|
|
20
|
+
desc?: string | undefined;
|
|
19
21
|
}, {
|
|
20
|
-
path: string;
|
|
21
22
|
url: string;
|
|
23
|
+
path: string;
|
|
22
24
|
alt: string;
|
|
25
|
+
desc?: string | undefined;
|
|
23
26
|
}>, "many">>;
|
|
24
27
|
}, "strip", z.ZodTypeAny, {
|
|
25
28
|
title: string;
|
|
@@ -30,9 +33,10 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
30
33
|
ctaText: string;
|
|
31
34
|
ctaLink: string;
|
|
32
35
|
imageLinks: {
|
|
33
|
-
path: string;
|
|
34
36
|
url: string;
|
|
37
|
+
path: string;
|
|
35
38
|
alt: string;
|
|
39
|
+
desc?: string | undefined;
|
|
36
40
|
}[];
|
|
37
41
|
description?: string | undefined;
|
|
38
42
|
}, {
|
|
@@ -45,9 +49,10 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
45
49
|
ctaLink: string;
|
|
46
50
|
description?: string | undefined;
|
|
47
51
|
imageLinks?: {
|
|
48
|
-
path: string;
|
|
49
52
|
url: string;
|
|
53
|
+
path: string;
|
|
50
54
|
alt: string;
|
|
55
|
+
desc?: string | undefined;
|
|
51
56
|
}[] | undefined;
|
|
52
57
|
}>;
|
|
53
58
|
export type HeroSection = z.infer<typeof HeroSectionSchema>;
|
package/dist/image.schema.d.ts
CHANGED
|
@@ -3,13 +3,16 @@ export declare const ImageAssetSchema: z.ZodObject<{
|
|
|
3
3
|
url: z.ZodString;
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
alt: z.ZodString;
|
|
6
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
path: string;
|
|
8
8
|
url: string;
|
|
9
|
+
path: string;
|
|
9
10
|
alt: string;
|
|
11
|
+
desc?: string | undefined;
|
|
10
12
|
}, {
|
|
11
|
-
path: string;
|
|
12
13
|
url: string;
|
|
14
|
+
path: string;
|
|
13
15
|
alt: string;
|
|
16
|
+
desc?: string | undefined;
|
|
14
17
|
}>;
|
|
15
18
|
export type ImageAsset = z.infer<typeof ImageAssetSchema>;
|
package/dist/image.schema.js
CHANGED
package/dist/product.schema.d.ts
CHANGED
|
@@ -20,14 +20,17 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20
20
|
url: z.ZodString;
|
|
21
21
|
path: z.ZodString;
|
|
22
22
|
alt: z.ZodString;
|
|
23
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
23
24
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
path: string;
|
|
25
25
|
url: string;
|
|
26
|
+
path: string;
|
|
26
27
|
alt: string;
|
|
28
|
+
desc?: string | undefined;
|
|
27
29
|
}, {
|
|
28
|
-
path: string;
|
|
29
30
|
url: string;
|
|
31
|
+
path: string;
|
|
30
32
|
alt: string;
|
|
33
|
+
desc?: string | undefined;
|
|
31
34
|
}>, "many">;
|
|
32
35
|
aboutTitle: z.ZodString;
|
|
33
36
|
aboutDescription: z.ZodString;
|
|
@@ -44,9 +47,10 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
44
47
|
order: number;
|
|
45
48
|
active: boolean;
|
|
46
49
|
imageLinks: {
|
|
47
|
-
path: string;
|
|
48
50
|
url: string;
|
|
51
|
+
path: string;
|
|
49
52
|
alt: string;
|
|
53
|
+
desc?: string | undefined;
|
|
50
54
|
}[];
|
|
51
55
|
id: string;
|
|
52
56
|
titleDescription: string;
|
|
@@ -73,9 +77,10 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
73
77
|
order: number;
|
|
74
78
|
active: boolean;
|
|
75
79
|
imageLinks: {
|
|
76
|
-
path: string;
|
|
77
80
|
url: string;
|
|
81
|
+
path: string;
|
|
78
82
|
alt: string;
|
|
83
|
+
desc?: string | undefined;
|
|
79
84
|
}[];
|
|
80
85
|
id: string;
|
|
81
86
|
titleDescription: string;
|
|
@@ -102,9 +107,10 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
102
107
|
order: number;
|
|
103
108
|
active: boolean;
|
|
104
109
|
imageLinks: {
|
|
105
|
-
path: string;
|
|
106
110
|
url: string;
|
|
111
|
+
path: string;
|
|
107
112
|
alt: string;
|
|
113
|
+
desc?: string | undefined;
|
|
108
114
|
}[];
|
|
109
115
|
id: string;
|
|
110
116
|
titleDescription: string;
|
|
@@ -131,9 +137,10 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
|
|
|
131
137
|
order: number;
|
|
132
138
|
active: boolean;
|
|
133
139
|
imageLinks: {
|
|
134
|
-
path: string;
|
|
135
140
|
url: string;
|
|
141
|
+
path: string;
|
|
136
142
|
alt: string;
|
|
143
|
+
desc?: string | undefined;
|
|
137
144
|
}[];
|
|
138
145
|
id: string;
|
|
139
146
|
titleDescription: string;
|
|
@@ -16,22 +16,26 @@ export declare const ProductHeroSchema: z.ZodObject<{
|
|
|
16
16
|
url: z.ZodString;
|
|
17
17
|
path: z.ZodString;
|
|
18
18
|
alt: z.ZodString;
|
|
19
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
path: string;
|
|
21
21
|
url: string;
|
|
22
|
+
path: string;
|
|
22
23
|
alt: string;
|
|
24
|
+
desc?: string | undefined;
|
|
23
25
|
}, {
|
|
24
|
-
path: string;
|
|
25
26
|
url: string;
|
|
27
|
+
path: string;
|
|
26
28
|
alt: string;
|
|
29
|
+
desc?: string | undefined;
|
|
27
30
|
}>, "many">>;
|
|
28
31
|
}, "strip", z.ZodTypeAny, {
|
|
29
32
|
page: "products";
|
|
30
33
|
active: boolean;
|
|
31
34
|
imageLinks: {
|
|
32
|
-
path: string;
|
|
33
35
|
url: string;
|
|
36
|
+
path: string;
|
|
34
37
|
alt: string;
|
|
38
|
+
desc?: string | undefined;
|
|
35
39
|
}[];
|
|
36
40
|
content: {
|
|
37
41
|
title?: string | undefined;
|
|
@@ -45,9 +49,10 @@ export declare const ProductHeroSchema: z.ZodObject<{
|
|
|
45
49
|
subtitle?: string | undefined;
|
|
46
50
|
};
|
|
47
51
|
imageLinks?: {
|
|
48
|
-
path: string;
|
|
49
52
|
url: string;
|
|
53
|
+
path: string;
|
|
50
54
|
alt: string;
|
|
55
|
+
desc?: string | undefined;
|
|
51
56
|
}[] | undefined;
|
|
52
57
|
}>;
|
|
53
58
|
export type ProductHero = z.infer<typeof ProductHeroSchema>;
|