@vedhae/cms-schema 1.1.3 → 1.2.0
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/hero.schema.d.ts +38 -2
- package/dist/hero.schema.js +1 -1
- package/dist/image.schema.d.ts +9 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +4 -5
- package/dist/shopByCategory.schema.d.ts +87 -5
- package/dist/shopByCategory.schema.js +1 -1
- package/dist/shopByPerson.schema.d.ts +87 -5
- package/dist/shopByPerson.schema.js +1 -1
- package/package.json +6 -7
package/dist/hero.schema.d.ts
CHANGED
|
@@ -12,6 +12,42 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
12
12
|
url: z.ZodString;
|
|
13
13
|
path: z.ZodString;
|
|
14
14
|
alt: z.ZodString;
|
|
15
|
-
}, z.
|
|
16
|
-
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
url: string;
|
|
17
|
+
path: string;
|
|
18
|
+
alt: string;
|
|
19
|
+
}, {
|
|
20
|
+
url: string;
|
|
21
|
+
path: string;
|
|
22
|
+
alt: string;
|
|
23
|
+
}>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
page: "home";
|
|
26
|
+
section: "hero";
|
|
27
|
+
active: boolean;
|
|
28
|
+
tagline: string;
|
|
29
|
+
title: string;
|
|
30
|
+
ctaText: string;
|
|
31
|
+
ctaLink: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
image?: {
|
|
34
|
+
url: string;
|
|
35
|
+
path: string;
|
|
36
|
+
alt: string;
|
|
37
|
+
} | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
page: "home";
|
|
40
|
+
section: "hero";
|
|
41
|
+
active: boolean;
|
|
42
|
+
tagline: string;
|
|
43
|
+
title: string;
|
|
44
|
+
ctaText: string;
|
|
45
|
+
ctaLink: string;
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
image?: {
|
|
48
|
+
url: string;
|
|
49
|
+
path: string;
|
|
50
|
+
alt: string;
|
|
51
|
+
} | undefined;
|
|
52
|
+
}>;
|
|
17
53
|
export type HeroSection = z.infer<typeof HeroSectionSchema>;
|
package/dist/hero.schema.js
CHANGED
package/dist/image.schema.d.ts
CHANGED
|
@@ -3,5 +3,13 @@ export declare const ImageAssetSchema: z.ZodObject<{
|
|
|
3
3
|
url: z.ZodString;
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
alt: z.ZodString;
|
|
6
|
-
}, z.
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
url: string;
|
|
8
|
+
path: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
}, {
|
|
11
|
+
url: string;
|
|
12
|
+
path: string;
|
|
13
|
+
alt: string;
|
|
14
|
+
}>;
|
|
7
15
|
export type ImageAsset = z.infer<typeof ImageAssetSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ImageAssetSchema } from "./image.schema";
|
|
2
|
-
export { HeroSectionSchema } from "./hero.schema";
|
|
3
|
-
export { ShopByCategorySchema } from "./shopByCategory.schema";
|
|
4
|
-
export { ShopByPersonSchema } from "./shopByPerson.schema";
|
|
5
|
-
export type { ImageAsset } from "./image.schema";
|
|
6
|
-
export type { HeroSection } from "./hero.schema";
|
|
7
|
-
export type { ShopByCategorySection } from "./shopByCategory.schema";
|
|
8
|
-
export type { ShopByPersonSection } from "./shopByPerson.schema";
|
|
1
|
+
export { ImageAssetSchema } from "./image.schema.js";
|
|
2
|
+
export { HeroSectionSchema } from "./hero.schema.js";
|
|
3
|
+
export { ShopByCategorySchema } from "./shopByCategory.schema.js";
|
|
4
|
+
export { ShopByPersonSchema } from "./shopByPerson.schema.js";
|
|
5
|
+
export type { ImageAsset } from "./image.schema.js";
|
|
6
|
+
export type { HeroSection } from "./hero.schema.js";
|
|
7
|
+
export type { ShopByCategorySection } from "./shopByCategory.schema.js";
|
|
8
|
+
export type { ShopByPersonSection } from "./shopByPerson.schema.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { ShopByPersonSchema } from "./shopByPerson.schema";
|
|
1
|
+
export { ImageAssetSchema } from "./image.schema.js";
|
|
2
|
+
export { HeroSectionSchema } from "./hero.schema.js";
|
|
3
|
+
export { ShopByCategorySchema } from "./shopByCategory.schema.js";
|
|
4
|
+
export { ShopByPersonSchema } from "./shopByPerson.schema.js";
|
|
@@ -7,8 +7,34 @@ export declare const ShopByCategoryItemSchema: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodString;
|
|
8
8
|
path: z.ZodString;
|
|
9
9
|
alt: z.ZodString;
|
|
10
|
-
}, z.
|
|
11
|
-
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
url: string;
|
|
12
|
+
path: string;
|
|
13
|
+
alt: string;
|
|
14
|
+
}, {
|
|
15
|
+
url: string;
|
|
16
|
+
path: string;
|
|
17
|
+
alt: string;
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
image: {
|
|
21
|
+
url: string;
|
|
22
|
+
path: string;
|
|
23
|
+
alt: string;
|
|
24
|
+
};
|
|
25
|
+
name: string;
|
|
26
|
+
link: string;
|
|
27
|
+
order: number;
|
|
28
|
+
}, {
|
|
29
|
+
image: {
|
|
30
|
+
url: string;
|
|
31
|
+
path: string;
|
|
32
|
+
alt: string;
|
|
33
|
+
};
|
|
34
|
+
name: string;
|
|
35
|
+
link: string;
|
|
36
|
+
order: number;
|
|
37
|
+
}>;
|
|
12
38
|
export declare const ShopByCategorySchema: z.ZodObject<{
|
|
13
39
|
page: z.ZodLiteral<"home">;
|
|
14
40
|
section: z.ZodLiteral<"shopByCategory">;
|
|
@@ -22,7 +48,63 @@ export declare const ShopByCategorySchema: z.ZodObject<{
|
|
|
22
48
|
url: z.ZodString;
|
|
23
49
|
path: z.ZodString;
|
|
24
50
|
alt: z.ZodString;
|
|
25
|
-
}, z.
|
|
26
|
-
|
|
27
|
-
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
url: string;
|
|
53
|
+
path: string;
|
|
54
|
+
alt: string;
|
|
55
|
+
}, {
|
|
56
|
+
url: string;
|
|
57
|
+
path: string;
|
|
58
|
+
alt: string;
|
|
59
|
+
}>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
image: {
|
|
62
|
+
url: string;
|
|
63
|
+
path: string;
|
|
64
|
+
alt: string;
|
|
65
|
+
};
|
|
66
|
+
name: string;
|
|
67
|
+
link: string;
|
|
68
|
+
order: number;
|
|
69
|
+
}, {
|
|
70
|
+
image: {
|
|
71
|
+
url: string;
|
|
72
|
+
path: string;
|
|
73
|
+
alt: string;
|
|
74
|
+
};
|
|
75
|
+
name: string;
|
|
76
|
+
link: string;
|
|
77
|
+
order: number;
|
|
78
|
+
}>, "many">;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
page: "home";
|
|
81
|
+
section: "shopByCategory";
|
|
82
|
+
active: boolean;
|
|
83
|
+
title: string;
|
|
84
|
+
categories: {
|
|
85
|
+
image: {
|
|
86
|
+
url: string;
|
|
87
|
+
path: string;
|
|
88
|
+
alt: string;
|
|
89
|
+
};
|
|
90
|
+
name: string;
|
|
91
|
+
link: string;
|
|
92
|
+
order: number;
|
|
93
|
+
}[];
|
|
94
|
+
}, {
|
|
95
|
+
page: "home";
|
|
96
|
+
section: "shopByCategory";
|
|
97
|
+
active: boolean;
|
|
98
|
+
title: string;
|
|
99
|
+
categories: {
|
|
100
|
+
image: {
|
|
101
|
+
url: string;
|
|
102
|
+
path: string;
|
|
103
|
+
alt: string;
|
|
104
|
+
};
|
|
105
|
+
name: string;
|
|
106
|
+
link: string;
|
|
107
|
+
order: number;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
28
110
|
export type ShopByCategorySection = z.infer<typeof ShopByCategorySchema>;
|
|
@@ -7,8 +7,34 @@ export declare const ShopByPersonItemSchema: z.ZodObject<{
|
|
|
7
7
|
url: z.ZodString;
|
|
8
8
|
path: z.ZodString;
|
|
9
9
|
alt: z.ZodString;
|
|
10
|
-
}, z.
|
|
11
|
-
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
url: string;
|
|
12
|
+
path: string;
|
|
13
|
+
alt: string;
|
|
14
|
+
}, {
|
|
15
|
+
url: string;
|
|
16
|
+
path: string;
|
|
17
|
+
alt: string;
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
image: {
|
|
21
|
+
url: string;
|
|
22
|
+
path: string;
|
|
23
|
+
alt: string;
|
|
24
|
+
};
|
|
25
|
+
link: string;
|
|
26
|
+
order: number;
|
|
27
|
+
label: string;
|
|
28
|
+
}, {
|
|
29
|
+
image: {
|
|
30
|
+
url: string;
|
|
31
|
+
path: string;
|
|
32
|
+
alt: string;
|
|
33
|
+
};
|
|
34
|
+
link: string;
|
|
35
|
+
order: number;
|
|
36
|
+
label: string;
|
|
37
|
+
}>;
|
|
12
38
|
export declare const ShopByPersonSchema: z.ZodObject<{
|
|
13
39
|
page: z.ZodLiteral<"home">;
|
|
14
40
|
section: z.ZodLiteral<"shopByPerson">;
|
|
@@ -22,7 +48,63 @@ export declare const ShopByPersonSchema: z.ZodObject<{
|
|
|
22
48
|
url: z.ZodString;
|
|
23
49
|
path: z.ZodString;
|
|
24
50
|
alt: z.ZodString;
|
|
25
|
-
}, z.
|
|
26
|
-
|
|
27
|
-
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
url: string;
|
|
53
|
+
path: string;
|
|
54
|
+
alt: string;
|
|
55
|
+
}, {
|
|
56
|
+
url: string;
|
|
57
|
+
path: string;
|
|
58
|
+
alt: string;
|
|
59
|
+
}>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
image: {
|
|
62
|
+
url: string;
|
|
63
|
+
path: string;
|
|
64
|
+
alt: string;
|
|
65
|
+
};
|
|
66
|
+
link: string;
|
|
67
|
+
order: number;
|
|
68
|
+
label: string;
|
|
69
|
+
}, {
|
|
70
|
+
image: {
|
|
71
|
+
url: string;
|
|
72
|
+
path: string;
|
|
73
|
+
alt: string;
|
|
74
|
+
};
|
|
75
|
+
link: string;
|
|
76
|
+
order: number;
|
|
77
|
+
label: string;
|
|
78
|
+
}>, "many">;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
page: "home";
|
|
81
|
+
section: "shopByPerson";
|
|
82
|
+
active: boolean;
|
|
83
|
+
title: string;
|
|
84
|
+
cards: {
|
|
85
|
+
image: {
|
|
86
|
+
url: string;
|
|
87
|
+
path: string;
|
|
88
|
+
alt: string;
|
|
89
|
+
};
|
|
90
|
+
link: string;
|
|
91
|
+
order: number;
|
|
92
|
+
label: string;
|
|
93
|
+
}[];
|
|
94
|
+
}, {
|
|
95
|
+
page: "home";
|
|
96
|
+
section: "shopByPerson";
|
|
97
|
+
active: boolean;
|
|
98
|
+
title: string;
|
|
99
|
+
cards: {
|
|
100
|
+
image: {
|
|
101
|
+
url: string;
|
|
102
|
+
path: string;
|
|
103
|
+
alt: string;
|
|
104
|
+
};
|
|
105
|
+
link: string;
|
|
106
|
+
order: number;
|
|
107
|
+
label: string;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
28
110
|
export type ShopByPersonSection = z.infer<typeof ShopByPersonSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vedhae/cms-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,17 +10,16 @@
|
|
|
10
10
|
"default": "./dist/index.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"zod": "^3.25.
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"zod": "^3.25.0",
|
|
18
|
-
"typescript": "^5.0.0"
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"zod": "^3.25.76"
|
|
19
15
|
},
|
|
20
16
|
"files": [
|
|
21
17
|
"dist"
|
|
22
18
|
],
|
|
23
19
|
"scripts": {
|
|
24
20
|
"build": "tsc"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"typescript": "^5.9.3"
|
|
25
24
|
}
|
|
26
25
|
}
|