@vedhae/cms-schema 4.2.7 → 4.2.9

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 CHANGED
@@ -9,3 +9,11 @@ Used by:
9
9
 
10
10
  This package contains **types only** and has no runtime code.
11
11
 
12
+ STEPS:
13
+ npm run build
14
+ npm version patch
15
+ git add .
16
+ git commit -m "message"
17
+ git push
18
+ npm login
19
+ npm pubish --access public
@@ -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
- image: z.ZodOptional<z.ZodObject<{
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
- image?: {
32
+ imageLinks: {
33
33
  path: string;
34
34
  url: string;
35
35
  alt: string;
36
- } | undefined;
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
- image?: {
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>;
@@ -9,5 +9,5 @@ export const HeroSectionSchema = z.object({
9
9
  description: z.string().optional(),
10
10
  ctaText: z.string().min(1),
11
11
  ctaLink: z.string().min(1),
12
- image: ImageAssetSchema.optional(),
12
+ imageLinks: z.array(ImageAssetSchema).default([]),
13
13
  });
@@ -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;
@@ -12,7 +12,7 @@ export declare const ProductHeroSchema: z.ZodObject<{
12
12
  title?: string | undefined;
13
13
  subtitle?: string | undefined;
14
14
  }>;
15
- image: z.ZodObject<{
15
+ imageLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
16
16
  url: z.ZodString;
17
17
  path: z.ZodString;
18
18
  alt: z.ZodString;
@@ -24,30 +24,30 @@ export declare const ProductHeroSchema: z.ZodObject<{
24
24
  path: string;
25
25
  url: string;
26
26
  alt: string;
27
- }>;
27
+ }>, "many">>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- image: {
29
+ page: "products";
30
+ active: boolean;
31
+ imageLinks: {
30
32
  path: string;
31
33
  url: string;
32
34
  alt: string;
33
- };
34
- page: "products";
35
- active: boolean;
35
+ }[];
36
36
  content: {
37
37
  title?: string | undefined;
38
38
  subtitle?: string | undefined;
39
39
  };
40
40
  }, {
41
- image: {
42
- path: string;
43
- url: string;
44
- alt: string;
45
- };
46
41
  page: "products";
47
42
  active: boolean;
48
43
  content: {
49
44
  title?: string | undefined;
50
45
  subtitle?: string | undefined;
51
46
  };
47
+ imageLinks?: {
48
+ path: string;
49
+ url: string;
50
+ alt: string;
51
+ }[] | undefined;
52
52
  }>;
53
53
  export type ProductHero = z.infer<typeof ProductHeroSchema>;
@@ -7,5 +7,5 @@ export const ProductHeroSchema = z.object({
7
7
  title: z.string().optional(),
8
8
  subtitle: z.string().optional(),
9
9
  }),
10
- image: ImageAssetSchema,
10
+ imageLinks: z.array(ImageAssetSchema).default([]),
11
11
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vedhae/cms-schema",
3
- "version": "4.2.7",
3
+ "version": "4.2.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",