@vedhae/cms-schema 4.2.5 → 4.2.7

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.
@@ -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
+ });
@@ -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>;
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export const HomeDividerSchema = z.object({
3
+ active: z.boolean(),
4
+ line1: z.string(),
5
+ line2: z.string(),
6
+ line3: z.string(),
7
+ });
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
- // Core
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vedhae/cms-schema",
3
- "version": "4.2.5",
3
+ "version": "4.2.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",