@vedhae/cms-schema 4.0.0 → 4.1.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.
@@ -8,6 +8,7 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
8
8
  titleDescription: z.ZodString;
9
9
  size: z.ZodString;
10
10
  users: z.ZodArray<z.ZodString, "many">;
11
+ categories: z.ZodArray<z.ZodString, "many">;
11
12
  internalLink: z.ZodString;
12
13
  externalLink: z.ZodOptional<z.ZodString>;
13
14
  price: z.ZodNumber;
@@ -49,6 +50,7 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
49
50
  titleDescription: string;
50
51
  size: string;
51
52
  users: string[];
53
+ categories: string[];
52
54
  internalLink: string;
53
55
  price: number;
54
56
  stockStatus: boolean;
@@ -76,6 +78,7 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
76
78
  titleDescription: string;
77
79
  size: string;
78
80
  users: string[];
81
+ categories: string[];
79
82
  internalLink: string;
80
83
  price: number;
81
84
  stockStatus: boolean;
@@ -103,6 +106,7 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
103
106
  titleDescription: string;
104
107
  size: string;
105
108
  users: string[];
109
+ categories: string[];
106
110
  internalLink: string;
107
111
  price: number;
108
112
  stockStatus: boolean;
@@ -130,6 +134,7 @@ export declare const ProductSchema: z.ZodEffects<z.ZodObject<{
130
134
  titleDescription: string;
131
135
  size: string;
132
136
  users: string[];
137
+ categories: string[];
133
138
  internalLink: string;
134
139
  price: number;
135
140
  stockStatus: boolean;
@@ -13,9 +13,13 @@ export const ProductSchema = z
13
13
  titleDescription: z.string().min(1),
14
14
  size: z.string().min(1),
15
15
  /* =========================
16
- Audience & navigation
16
+ Audience & classification
17
17
  ========================= */
18
18
  users: z.array(z.string()).min(1),
19
+ categories: z.array(z.string()).min(1),
20
+ /* =========================
21
+ Navigation
22
+ ========================= */
19
23
  internalLink: z.string().startsWith("/"),
20
24
  externalLink: z.string().url().optional(),
21
25
  /* =========================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vedhae/cms-schema",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",