@mac777/project-pinecone-schema 1.0.10 → 1.0.12
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/events/events.constants.d.ts +1 -0
- package/dist/events/events.constants.js +2 -1
- package/dist/events/events.schema.d.ts +162 -162
- package/dist/events/utils/media.schema.d.ts +16 -16
- package/dist/events/utils/media.schema.js +8 -8
- package/package.json +1 -1
- package/src/events/events.constants.ts +1 -0
- package/src/events/utils/media.schema.ts +8 -8
|
@@ -3,6 +3,7 @@ export declare const MAX_TAGLINE_LENGTH = 150;
|
|
|
3
3
|
export declare const MAX_CATEGORIES = 3;
|
|
4
4
|
export declare const MAX_DESCRIPTION_LENGTH = 2000;
|
|
5
5
|
export declare const MAX_DOCUMENTS = 5;
|
|
6
|
+
export declare const MAX_GALLERY_IMAGES = 10;
|
|
6
7
|
export declare const SUPPORTED_IMAGE_TYPES: string[];
|
|
7
8
|
export declare const MAX_FILE_SIZE_MB = 10;
|
|
8
9
|
export declare const MAX_FILE_SIZE_BYTES: number;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.INITIAL_DATA = exports.PREDEFINED_BENEFITS = exports.STEPS = exports.VENUE_TYPES = exports.TIME_PRESETS = exports.AMPM = exports.MINUTES = exports.HOURS = exports.IMAGE_PLACEHOLDER_TEXT = exports.AGE_RESTRICTIONS = exports.SUPPORTED_LANGUAGES = exports.EVENT_TYPES = exports.CATEGORIES_BY_TYPE = exports.ALLOWED_FILE_EXTENSIONS = exports.ALLOWED_FILE_TYPES = exports.MAX_FILE_SIZE_BYTES = exports.MAX_FILE_SIZE_MB = exports.SUPPORTED_IMAGE_TYPES = exports.MAX_DOCUMENTS = exports.MAX_DESCRIPTION_LENGTH = exports.MAX_CATEGORIES = exports.MAX_TAGLINE_LENGTH = void 0;
|
|
3
|
+
exports.INITIAL_DATA = exports.PREDEFINED_BENEFITS = exports.STEPS = exports.VENUE_TYPES = exports.TIME_PRESETS = exports.AMPM = exports.MINUTES = exports.HOURS = exports.IMAGE_PLACEHOLDER_TEXT = exports.AGE_RESTRICTIONS = exports.SUPPORTED_LANGUAGES = exports.EVENT_TYPES = exports.CATEGORIES_BY_TYPE = exports.ALLOWED_FILE_EXTENSIONS = exports.ALLOWED_FILE_TYPES = exports.MAX_FILE_SIZE_BYTES = exports.MAX_FILE_SIZE_MB = exports.SUPPORTED_IMAGE_TYPES = exports.MAX_GALLERY_IMAGES = exports.MAX_DOCUMENTS = exports.MAX_DESCRIPTION_LENGTH = exports.MAX_CATEGORIES = exports.MAX_TAGLINE_LENGTH = void 0;
|
|
4
4
|
exports.MAX_TAGLINE_LENGTH = 150;
|
|
5
5
|
exports.MAX_CATEGORIES = 3;
|
|
6
6
|
exports.MAX_DESCRIPTION_LENGTH = 2000;
|
|
7
7
|
exports.MAX_DOCUMENTS = 5;
|
|
8
|
+
exports.MAX_GALLERY_IMAGES = 10;
|
|
8
9
|
exports.SUPPORTED_IMAGE_TYPES = ['image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp'];
|
|
9
10
|
exports.MAX_FILE_SIZE_MB = 10;
|
|
10
11
|
exports.MAX_FILE_SIZE_BYTES = exports.MAX_FILE_SIZE_MB * 1024 * 1024;
|
|
@@ -31,17 +31,17 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
31
31
|
url: string;
|
|
32
32
|
}>;
|
|
33
33
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
-
alt: z.ZodString;
|
|
35
|
-
thumbnailUrl: z.ZodString;
|
|
36
34
|
url: z.ZodString;
|
|
35
|
+
order: z.ZodNumber;
|
|
36
|
+
caption: z.ZodString;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
alt: string;
|
|
39
|
-
thumbnailUrl: string;
|
|
40
38
|
url: string;
|
|
39
|
+
order: number;
|
|
40
|
+
caption: string;
|
|
41
41
|
}, {
|
|
42
|
-
alt: string;
|
|
43
|
-
thumbnailUrl: string;
|
|
44
42
|
url: string;
|
|
43
|
+
order: number;
|
|
44
|
+
caption: string;
|
|
45
45
|
}>, "many">>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
coverImage: {
|
|
@@ -50,9 +50,9 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
50
50
|
url: string;
|
|
51
51
|
};
|
|
52
52
|
gallery?: {
|
|
53
|
-
alt: string;
|
|
54
|
-
thumbnailUrl: string;
|
|
55
53
|
url: string;
|
|
54
|
+
order: number;
|
|
55
|
+
caption: string;
|
|
56
56
|
}[] | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
coverImage: {
|
|
@@ -61,9 +61,9 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
61
61
|
url: string;
|
|
62
62
|
};
|
|
63
63
|
gallery?: {
|
|
64
|
-
alt: string;
|
|
65
|
-
thumbnailUrl: string;
|
|
66
64
|
url: string;
|
|
65
|
+
order: number;
|
|
66
|
+
caption: string;
|
|
67
67
|
}[] | undefined;
|
|
68
68
|
}>;
|
|
69
69
|
description: z.ZodString;
|
|
@@ -87,17 +87,17 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
87
87
|
url: string;
|
|
88
88
|
}>;
|
|
89
89
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
|
-
alt: z.ZodString;
|
|
91
|
-
thumbnailUrl: z.ZodString;
|
|
92
90
|
url: z.ZodString;
|
|
91
|
+
order: z.ZodNumber;
|
|
92
|
+
caption: z.ZodString;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
alt: string;
|
|
95
|
-
thumbnailUrl: string;
|
|
96
94
|
url: string;
|
|
95
|
+
order: number;
|
|
96
|
+
caption: string;
|
|
97
97
|
}, {
|
|
98
|
-
alt: string;
|
|
99
|
-
thumbnailUrl: string;
|
|
100
98
|
url: string;
|
|
99
|
+
order: number;
|
|
100
|
+
caption: string;
|
|
101
101
|
}>, "many">>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
coverImage: {
|
|
@@ -106,9 +106,9 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
106
106
|
url: string;
|
|
107
107
|
};
|
|
108
108
|
gallery?: {
|
|
109
|
-
alt: string;
|
|
110
|
-
thumbnailUrl: string;
|
|
111
109
|
url: string;
|
|
110
|
+
order: number;
|
|
111
|
+
caption: string;
|
|
112
112
|
}[] | undefined;
|
|
113
113
|
}, {
|
|
114
114
|
coverImage: {
|
|
@@ -117,9 +117,9 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
117
117
|
url: string;
|
|
118
118
|
};
|
|
119
119
|
gallery?: {
|
|
120
|
-
alt: string;
|
|
121
|
-
thumbnailUrl: string;
|
|
122
120
|
url: string;
|
|
121
|
+
order: number;
|
|
122
|
+
caption: string;
|
|
123
123
|
}[] | undefined;
|
|
124
124
|
}>;
|
|
125
125
|
description: z.ZodString;
|
|
@@ -143,17 +143,17 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
143
143
|
url: string;
|
|
144
144
|
}>;
|
|
145
145
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
-
alt: z.ZodString;
|
|
147
|
-
thumbnailUrl: z.ZodString;
|
|
148
146
|
url: z.ZodString;
|
|
147
|
+
order: z.ZodNumber;
|
|
148
|
+
caption: z.ZodString;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
alt: string;
|
|
151
|
-
thumbnailUrl: string;
|
|
152
150
|
url: string;
|
|
151
|
+
order: number;
|
|
152
|
+
caption: string;
|
|
153
153
|
}, {
|
|
154
|
-
alt: string;
|
|
155
|
-
thumbnailUrl: string;
|
|
156
154
|
url: string;
|
|
155
|
+
order: number;
|
|
156
|
+
caption: string;
|
|
157
157
|
}>, "many">>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
coverImage: {
|
|
@@ -162,9 +162,9 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
162
162
|
url: string;
|
|
163
163
|
};
|
|
164
164
|
gallery?: {
|
|
165
|
-
alt: string;
|
|
166
|
-
thumbnailUrl: string;
|
|
167
165
|
url: string;
|
|
166
|
+
order: number;
|
|
167
|
+
caption: string;
|
|
168
168
|
}[] | undefined;
|
|
169
169
|
}, {
|
|
170
170
|
coverImage: {
|
|
@@ -173,9 +173,9 @@ export declare const stepDetailsSchema: z.ZodObject<{
|
|
|
173
173
|
url: string;
|
|
174
174
|
};
|
|
175
175
|
gallery?: {
|
|
176
|
-
alt: string;
|
|
177
|
-
thumbnailUrl: string;
|
|
178
176
|
url: string;
|
|
177
|
+
order: number;
|
|
178
|
+
caption: string;
|
|
179
179
|
}[] | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
description: z.ZodString;
|
|
@@ -1601,17 +1601,17 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1601
1601
|
url: string;
|
|
1602
1602
|
}>;
|
|
1603
1603
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1604
|
-
alt: z.ZodString;
|
|
1605
|
-
thumbnailUrl: z.ZodString;
|
|
1606
1604
|
url: z.ZodString;
|
|
1605
|
+
order: z.ZodNumber;
|
|
1606
|
+
caption: z.ZodString;
|
|
1607
1607
|
}, "strip", z.ZodTypeAny, {
|
|
1608
|
-
alt: string;
|
|
1609
|
-
thumbnailUrl: string;
|
|
1610
1608
|
url: string;
|
|
1609
|
+
order: number;
|
|
1610
|
+
caption: string;
|
|
1611
1611
|
}, {
|
|
1612
|
-
alt: string;
|
|
1613
|
-
thumbnailUrl: string;
|
|
1614
1612
|
url: string;
|
|
1613
|
+
order: number;
|
|
1614
|
+
caption: string;
|
|
1615
1615
|
}>, "many">>;
|
|
1616
1616
|
}, "strip", z.ZodTypeAny, {
|
|
1617
1617
|
coverImage: {
|
|
@@ -1620,9 +1620,9 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1620
1620
|
url: string;
|
|
1621
1621
|
};
|
|
1622
1622
|
gallery?: {
|
|
1623
|
-
alt: string;
|
|
1624
|
-
thumbnailUrl: string;
|
|
1625
1623
|
url: string;
|
|
1624
|
+
order: number;
|
|
1625
|
+
caption: string;
|
|
1626
1626
|
}[] | undefined;
|
|
1627
1627
|
}, {
|
|
1628
1628
|
coverImage: {
|
|
@@ -1631,9 +1631,9 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1631
1631
|
url: string;
|
|
1632
1632
|
};
|
|
1633
1633
|
gallery?: {
|
|
1634
|
-
alt: string;
|
|
1635
|
-
thumbnailUrl: string;
|
|
1636
1634
|
url: string;
|
|
1635
|
+
order: number;
|
|
1636
|
+
caption: string;
|
|
1637
1637
|
}[] | undefined;
|
|
1638
1638
|
}>;
|
|
1639
1639
|
additionalDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1670,9 +1670,9 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1670
1670
|
url: string;
|
|
1671
1671
|
};
|
|
1672
1672
|
gallery?: {
|
|
1673
|
-
alt: string;
|
|
1674
|
-
thumbnailUrl: string;
|
|
1675
1673
|
url: string;
|
|
1674
|
+
order: number;
|
|
1675
|
+
caption: string;
|
|
1676
1676
|
}[] | undefined;
|
|
1677
1677
|
};
|
|
1678
1678
|
eventId: string;
|
|
@@ -1699,9 +1699,9 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1699
1699
|
url: string;
|
|
1700
1700
|
};
|
|
1701
1701
|
gallery?: {
|
|
1702
|
-
alt: string;
|
|
1703
|
-
thumbnailUrl: string;
|
|
1704
1702
|
url: string;
|
|
1703
|
+
order: number;
|
|
1704
|
+
caption: string;
|
|
1705
1705
|
}[] | undefined;
|
|
1706
1706
|
};
|
|
1707
1707
|
eventId: string;
|
|
@@ -1743,17 +1743,17 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1743
1743
|
url: string;
|
|
1744
1744
|
}>;
|
|
1745
1745
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1746
|
-
alt: z.ZodString;
|
|
1747
|
-
thumbnailUrl: z.ZodString;
|
|
1748
1746
|
url: z.ZodString;
|
|
1747
|
+
order: z.ZodNumber;
|
|
1748
|
+
caption: z.ZodString;
|
|
1749
1749
|
}, "strip", z.ZodTypeAny, {
|
|
1750
|
-
alt: string;
|
|
1751
|
-
thumbnailUrl: string;
|
|
1752
1750
|
url: string;
|
|
1751
|
+
order: number;
|
|
1752
|
+
caption: string;
|
|
1753
1753
|
}, {
|
|
1754
|
-
alt: string;
|
|
1755
|
-
thumbnailUrl: string;
|
|
1756
1754
|
url: string;
|
|
1755
|
+
order: number;
|
|
1756
|
+
caption: string;
|
|
1757
1757
|
}>, "many">>;
|
|
1758
1758
|
}, "strip", z.ZodTypeAny, {
|
|
1759
1759
|
coverImage: {
|
|
@@ -1762,9 +1762,9 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1762
1762
|
url: string;
|
|
1763
1763
|
};
|
|
1764
1764
|
gallery?: {
|
|
1765
|
-
alt: string;
|
|
1766
|
-
thumbnailUrl: string;
|
|
1767
1765
|
url: string;
|
|
1766
|
+
order: number;
|
|
1767
|
+
caption: string;
|
|
1768
1768
|
}[] | undefined;
|
|
1769
1769
|
}, {
|
|
1770
1770
|
coverImage: {
|
|
@@ -1773,9 +1773,9 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1773
1773
|
url: string;
|
|
1774
1774
|
};
|
|
1775
1775
|
gallery?: {
|
|
1776
|
-
alt: string;
|
|
1777
|
-
thumbnailUrl: string;
|
|
1778
1776
|
url: string;
|
|
1777
|
+
order: number;
|
|
1778
|
+
caption: string;
|
|
1779
1779
|
}[] | undefined;
|
|
1780
1780
|
}>;
|
|
1781
1781
|
tickets: z.ZodArray<z.ZodObject<{
|
|
@@ -1848,9 +1848,9 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1848
1848
|
url: string;
|
|
1849
1849
|
};
|
|
1850
1850
|
gallery?: {
|
|
1851
|
-
alt: string;
|
|
1852
|
-
thumbnailUrl: string;
|
|
1853
1851
|
url: string;
|
|
1852
|
+
order: number;
|
|
1853
|
+
caption: string;
|
|
1854
1854
|
}[] | undefined;
|
|
1855
1855
|
};
|
|
1856
1856
|
tickets: {
|
|
@@ -1885,9 +1885,9 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1885
1885
|
url: string;
|
|
1886
1886
|
};
|
|
1887
1887
|
gallery?: {
|
|
1888
|
-
alt: string;
|
|
1889
|
-
thumbnailUrl: string;
|
|
1890
1888
|
url: string;
|
|
1889
|
+
order: number;
|
|
1890
|
+
caption: string;
|
|
1891
1891
|
}[] | undefined;
|
|
1892
1892
|
};
|
|
1893
1893
|
tickets: {
|
|
@@ -1936,17 +1936,17 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
1936
1936
|
url: string;
|
|
1937
1937
|
}>;
|
|
1938
1938
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1939
|
-
alt: z.ZodString;
|
|
1940
|
-
thumbnailUrl: z.ZodString;
|
|
1941
1939
|
url: z.ZodString;
|
|
1940
|
+
order: z.ZodNumber;
|
|
1941
|
+
caption: z.ZodString;
|
|
1942
1942
|
}, "strip", z.ZodTypeAny, {
|
|
1943
|
-
alt: string;
|
|
1944
|
-
thumbnailUrl: string;
|
|
1945
1943
|
url: string;
|
|
1944
|
+
order: number;
|
|
1945
|
+
caption: string;
|
|
1946
1946
|
}, {
|
|
1947
|
-
alt: string;
|
|
1948
|
-
thumbnailUrl: string;
|
|
1949
1947
|
url: string;
|
|
1948
|
+
order: number;
|
|
1949
|
+
caption: string;
|
|
1950
1950
|
}>, "many">>;
|
|
1951
1951
|
}, "strip", z.ZodTypeAny, {
|
|
1952
1952
|
coverImage: {
|
|
@@ -1955,9 +1955,9 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
1955
1955
|
url: string;
|
|
1956
1956
|
};
|
|
1957
1957
|
gallery?: {
|
|
1958
|
-
alt: string;
|
|
1959
|
-
thumbnailUrl: string;
|
|
1960
1958
|
url: string;
|
|
1959
|
+
order: number;
|
|
1960
|
+
caption: string;
|
|
1961
1961
|
}[] | undefined;
|
|
1962
1962
|
}, {
|
|
1963
1963
|
coverImage: {
|
|
@@ -1966,9 +1966,9 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
1966
1966
|
url: string;
|
|
1967
1967
|
};
|
|
1968
1968
|
gallery?: {
|
|
1969
|
-
alt: string;
|
|
1970
|
-
thumbnailUrl: string;
|
|
1971
1969
|
url: string;
|
|
1970
|
+
order: number;
|
|
1971
|
+
caption: string;
|
|
1972
1972
|
}[] | undefined;
|
|
1973
1973
|
}>>;
|
|
1974
1974
|
tickets: z.ZodArray<z.ZodObject<{
|
|
@@ -2038,9 +2038,9 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
2038
2038
|
url: string;
|
|
2039
2039
|
};
|
|
2040
2040
|
gallery?: {
|
|
2041
|
-
alt: string;
|
|
2042
|
-
thumbnailUrl: string;
|
|
2043
2041
|
url: string;
|
|
2042
|
+
order: number;
|
|
2043
|
+
caption: string;
|
|
2044
2044
|
}[] | undefined;
|
|
2045
2045
|
} | undefined;
|
|
2046
2046
|
highlights?: string[] | undefined;
|
|
@@ -2069,9 +2069,9 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
2069
2069
|
url: string;
|
|
2070
2070
|
};
|
|
2071
2071
|
gallery?: {
|
|
2072
|
-
alt: string;
|
|
2073
|
-
thumbnailUrl: string;
|
|
2074
2072
|
url: string;
|
|
2073
|
+
order: number;
|
|
2074
|
+
caption: string;
|
|
2075
2075
|
}[] | undefined;
|
|
2076
2076
|
} | undefined;
|
|
2077
2077
|
highlights?: string[] | undefined;
|
|
@@ -2150,17 +2150,17 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2150
2150
|
url: string;
|
|
2151
2151
|
}>;
|
|
2152
2152
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2153
|
-
alt: z.ZodString;
|
|
2154
|
-
thumbnailUrl: z.ZodString;
|
|
2155
2153
|
url: z.ZodString;
|
|
2154
|
+
order: z.ZodNumber;
|
|
2155
|
+
caption: z.ZodString;
|
|
2156
2156
|
}, "strip", z.ZodTypeAny, {
|
|
2157
|
-
alt: string;
|
|
2158
|
-
thumbnailUrl: string;
|
|
2159
2157
|
url: string;
|
|
2158
|
+
order: number;
|
|
2159
|
+
caption: string;
|
|
2160
2160
|
}, {
|
|
2161
|
-
alt: string;
|
|
2162
|
-
thumbnailUrl: string;
|
|
2163
2161
|
url: string;
|
|
2162
|
+
order: number;
|
|
2163
|
+
caption: string;
|
|
2164
2164
|
}>, "many">>;
|
|
2165
2165
|
}, "strip", z.ZodTypeAny, {
|
|
2166
2166
|
coverImage: {
|
|
@@ -2169,9 +2169,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2169
2169
|
url: string;
|
|
2170
2170
|
};
|
|
2171
2171
|
gallery?: {
|
|
2172
|
-
alt: string;
|
|
2173
|
-
thumbnailUrl: string;
|
|
2174
2172
|
url: string;
|
|
2173
|
+
order: number;
|
|
2174
|
+
caption: string;
|
|
2175
2175
|
}[] | undefined;
|
|
2176
2176
|
}, {
|
|
2177
2177
|
coverImage: {
|
|
@@ -2180,9 +2180,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2180
2180
|
url: string;
|
|
2181
2181
|
};
|
|
2182
2182
|
gallery?: {
|
|
2183
|
-
alt: string;
|
|
2184
|
-
thumbnailUrl: string;
|
|
2185
2183
|
url: string;
|
|
2184
|
+
order: number;
|
|
2185
|
+
caption: string;
|
|
2186
2186
|
}[] | undefined;
|
|
2187
2187
|
}>;
|
|
2188
2188
|
description: z.ZodString;
|
|
@@ -2476,17 +2476,17 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2476
2476
|
url: string;
|
|
2477
2477
|
}>;
|
|
2478
2478
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2479
|
-
alt: z.ZodString;
|
|
2480
|
-
thumbnailUrl: z.ZodString;
|
|
2481
2479
|
url: z.ZodString;
|
|
2480
|
+
order: z.ZodNumber;
|
|
2481
|
+
caption: z.ZodString;
|
|
2482
2482
|
}, "strip", z.ZodTypeAny, {
|
|
2483
|
-
alt: string;
|
|
2484
|
-
thumbnailUrl: string;
|
|
2485
2483
|
url: string;
|
|
2484
|
+
order: number;
|
|
2485
|
+
caption: string;
|
|
2486
2486
|
}, {
|
|
2487
|
-
alt: string;
|
|
2488
|
-
thumbnailUrl: string;
|
|
2489
2487
|
url: string;
|
|
2488
|
+
order: number;
|
|
2489
|
+
caption: string;
|
|
2490
2490
|
}>, "many">>;
|
|
2491
2491
|
}, "strip", z.ZodTypeAny, {
|
|
2492
2492
|
coverImage: {
|
|
@@ -2495,9 +2495,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2495
2495
|
url: string;
|
|
2496
2496
|
};
|
|
2497
2497
|
gallery?: {
|
|
2498
|
-
alt: string;
|
|
2499
|
-
thumbnailUrl: string;
|
|
2500
2498
|
url: string;
|
|
2499
|
+
order: number;
|
|
2500
|
+
caption: string;
|
|
2501
2501
|
}[] | undefined;
|
|
2502
2502
|
}, {
|
|
2503
2503
|
coverImage: {
|
|
@@ -2506,9 +2506,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2506
2506
|
url: string;
|
|
2507
2507
|
};
|
|
2508
2508
|
gallery?: {
|
|
2509
|
-
alt: string;
|
|
2510
|
-
thumbnailUrl: string;
|
|
2511
2509
|
url: string;
|
|
2510
|
+
order: number;
|
|
2511
|
+
caption: string;
|
|
2512
2512
|
}[] | undefined;
|
|
2513
2513
|
}>;
|
|
2514
2514
|
description: z.ZodString;
|
|
@@ -2802,17 +2802,17 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2802
2802
|
url: string;
|
|
2803
2803
|
}>;
|
|
2804
2804
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2805
|
-
alt: z.ZodString;
|
|
2806
|
-
thumbnailUrl: z.ZodString;
|
|
2807
2805
|
url: z.ZodString;
|
|
2806
|
+
order: z.ZodNumber;
|
|
2807
|
+
caption: z.ZodString;
|
|
2808
2808
|
}, "strip", z.ZodTypeAny, {
|
|
2809
|
-
alt: string;
|
|
2810
|
-
thumbnailUrl: string;
|
|
2811
2809
|
url: string;
|
|
2810
|
+
order: number;
|
|
2811
|
+
caption: string;
|
|
2812
2812
|
}, {
|
|
2813
|
-
alt: string;
|
|
2814
|
-
thumbnailUrl: string;
|
|
2815
2813
|
url: string;
|
|
2814
|
+
order: number;
|
|
2815
|
+
caption: string;
|
|
2816
2816
|
}>, "many">>;
|
|
2817
2817
|
}, "strip", z.ZodTypeAny, {
|
|
2818
2818
|
coverImage: {
|
|
@@ -2821,9 +2821,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2821
2821
|
url: string;
|
|
2822
2822
|
};
|
|
2823
2823
|
gallery?: {
|
|
2824
|
-
alt: string;
|
|
2825
|
-
thumbnailUrl: string;
|
|
2826
2824
|
url: string;
|
|
2825
|
+
order: number;
|
|
2826
|
+
caption: string;
|
|
2827
2827
|
}[] | undefined;
|
|
2828
2828
|
}, {
|
|
2829
2829
|
coverImage: {
|
|
@@ -2832,9 +2832,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2832
2832
|
url: string;
|
|
2833
2833
|
};
|
|
2834
2834
|
gallery?: {
|
|
2835
|
-
alt: string;
|
|
2836
|
-
thumbnailUrl: string;
|
|
2837
2835
|
url: string;
|
|
2836
|
+
order: number;
|
|
2837
|
+
caption: string;
|
|
2838
2838
|
}[] | undefined;
|
|
2839
2839
|
}>;
|
|
2840
2840
|
description: z.ZodString;
|
|
@@ -3129,17 +3129,17 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3129
3129
|
url: string;
|
|
3130
3130
|
}>;
|
|
3131
3131
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3132
|
-
alt: z.ZodString;
|
|
3133
|
-
thumbnailUrl: z.ZodString;
|
|
3134
3132
|
url: z.ZodString;
|
|
3133
|
+
order: z.ZodNumber;
|
|
3134
|
+
caption: z.ZodString;
|
|
3135
3135
|
}, "strip", z.ZodTypeAny, {
|
|
3136
|
-
alt: string;
|
|
3137
|
-
thumbnailUrl: string;
|
|
3138
3136
|
url: string;
|
|
3137
|
+
order: number;
|
|
3138
|
+
caption: string;
|
|
3139
3139
|
}, {
|
|
3140
|
-
alt: string;
|
|
3141
|
-
thumbnailUrl: string;
|
|
3142
3140
|
url: string;
|
|
3141
|
+
order: number;
|
|
3142
|
+
caption: string;
|
|
3143
3143
|
}>, "many">>;
|
|
3144
3144
|
}, "strip", z.ZodTypeAny, {
|
|
3145
3145
|
coverImage: {
|
|
@@ -3148,9 +3148,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3148
3148
|
url: string;
|
|
3149
3149
|
};
|
|
3150
3150
|
gallery?: {
|
|
3151
|
-
alt: string;
|
|
3152
|
-
thumbnailUrl: string;
|
|
3153
3151
|
url: string;
|
|
3152
|
+
order: number;
|
|
3153
|
+
caption: string;
|
|
3154
3154
|
}[] | undefined;
|
|
3155
3155
|
}, {
|
|
3156
3156
|
coverImage: {
|
|
@@ -3159,9 +3159,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3159
3159
|
url: string;
|
|
3160
3160
|
};
|
|
3161
3161
|
gallery?: {
|
|
3162
|
-
alt: string;
|
|
3163
|
-
thumbnailUrl: string;
|
|
3164
3162
|
url: string;
|
|
3163
|
+
order: number;
|
|
3164
|
+
caption: string;
|
|
3165
3165
|
}[] | undefined;
|
|
3166
3166
|
}>;
|
|
3167
3167
|
description: z.ZodString;
|
|
@@ -3455,17 +3455,17 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3455
3455
|
url: string;
|
|
3456
3456
|
}>;
|
|
3457
3457
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3458
|
-
alt: z.ZodString;
|
|
3459
|
-
thumbnailUrl: z.ZodString;
|
|
3460
3458
|
url: z.ZodString;
|
|
3459
|
+
order: z.ZodNumber;
|
|
3460
|
+
caption: z.ZodString;
|
|
3461
3461
|
}, "strip", z.ZodTypeAny, {
|
|
3462
|
-
alt: string;
|
|
3463
|
-
thumbnailUrl: string;
|
|
3464
3462
|
url: string;
|
|
3463
|
+
order: number;
|
|
3464
|
+
caption: string;
|
|
3465
3465
|
}, {
|
|
3466
|
-
alt: string;
|
|
3467
|
-
thumbnailUrl: string;
|
|
3468
3466
|
url: string;
|
|
3467
|
+
order: number;
|
|
3468
|
+
caption: string;
|
|
3469
3469
|
}>, "many">>;
|
|
3470
3470
|
}, "strip", z.ZodTypeAny, {
|
|
3471
3471
|
coverImage: {
|
|
@@ -3474,9 +3474,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3474
3474
|
url: string;
|
|
3475
3475
|
};
|
|
3476
3476
|
gallery?: {
|
|
3477
|
-
alt: string;
|
|
3478
|
-
thumbnailUrl: string;
|
|
3479
3477
|
url: string;
|
|
3478
|
+
order: number;
|
|
3479
|
+
caption: string;
|
|
3480
3480
|
}[] | undefined;
|
|
3481
3481
|
}, {
|
|
3482
3482
|
coverImage: {
|
|
@@ -3485,9 +3485,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3485
3485
|
url: string;
|
|
3486
3486
|
};
|
|
3487
3487
|
gallery?: {
|
|
3488
|
-
alt: string;
|
|
3489
|
-
thumbnailUrl: string;
|
|
3490
3488
|
url: string;
|
|
3489
|
+
order: number;
|
|
3490
|
+
caption: string;
|
|
3491
3491
|
}[] | undefined;
|
|
3492
3492
|
}>;
|
|
3493
3493
|
description: z.ZodString;
|
|
@@ -3781,17 +3781,17 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3781
3781
|
url: string;
|
|
3782
3782
|
}>;
|
|
3783
3783
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3784
|
-
alt: z.ZodString;
|
|
3785
|
-
thumbnailUrl: z.ZodString;
|
|
3786
3784
|
url: z.ZodString;
|
|
3785
|
+
order: z.ZodNumber;
|
|
3786
|
+
caption: z.ZodString;
|
|
3787
3787
|
}, "strip", z.ZodTypeAny, {
|
|
3788
|
-
alt: string;
|
|
3789
|
-
thumbnailUrl: string;
|
|
3790
3788
|
url: string;
|
|
3789
|
+
order: number;
|
|
3790
|
+
caption: string;
|
|
3791
3791
|
}, {
|
|
3792
|
-
alt: string;
|
|
3793
|
-
thumbnailUrl: string;
|
|
3794
3792
|
url: string;
|
|
3793
|
+
order: number;
|
|
3794
|
+
caption: string;
|
|
3795
3795
|
}>, "many">>;
|
|
3796
3796
|
}, "strip", z.ZodTypeAny, {
|
|
3797
3797
|
coverImage: {
|
|
@@ -3800,9 +3800,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3800
3800
|
url: string;
|
|
3801
3801
|
};
|
|
3802
3802
|
gallery?: {
|
|
3803
|
-
alt: string;
|
|
3804
|
-
thumbnailUrl: string;
|
|
3805
3803
|
url: string;
|
|
3804
|
+
order: number;
|
|
3805
|
+
caption: string;
|
|
3806
3806
|
}[] | undefined;
|
|
3807
3807
|
}, {
|
|
3808
3808
|
coverImage: {
|
|
@@ -3811,9 +3811,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3811
3811
|
url: string;
|
|
3812
3812
|
};
|
|
3813
3813
|
gallery?: {
|
|
3814
|
-
alt: string;
|
|
3815
|
-
thumbnailUrl: string;
|
|
3816
3814
|
url: string;
|
|
3815
|
+
order: number;
|
|
3816
|
+
caption: string;
|
|
3817
3817
|
}[] | undefined;
|
|
3818
3818
|
}>;
|
|
3819
3819
|
description: z.ZodString;
|
|
@@ -4106,17 +4106,17 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4106
4106
|
url: string;
|
|
4107
4107
|
}>;
|
|
4108
4108
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4109
|
-
alt: z.ZodString;
|
|
4110
|
-
thumbnailUrl: z.ZodString;
|
|
4111
4109
|
url: z.ZodString;
|
|
4110
|
+
order: z.ZodNumber;
|
|
4111
|
+
caption: z.ZodString;
|
|
4112
4112
|
}, "strip", z.ZodTypeAny, {
|
|
4113
|
-
alt: string;
|
|
4114
|
-
thumbnailUrl: string;
|
|
4115
4113
|
url: string;
|
|
4114
|
+
order: number;
|
|
4115
|
+
caption: string;
|
|
4116
4116
|
}, {
|
|
4117
|
-
alt: string;
|
|
4118
|
-
thumbnailUrl: string;
|
|
4119
4117
|
url: string;
|
|
4118
|
+
order: number;
|
|
4119
|
+
caption: string;
|
|
4120
4120
|
}>, "many">>;
|
|
4121
4121
|
}, "strip", z.ZodTypeAny, {
|
|
4122
4122
|
coverImage: {
|
|
@@ -4125,9 +4125,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4125
4125
|
url: string;
|
|
4126
4126
|
};
|
|
4127
4127
|
gallery?: {
|
|
4128
|
-
alt: string;
|
|
4129
|
-
thumbnailUrl: string;
|
|
4130
4128
|
url: string;
|
|
4129
|
+
order: number;
|
|
4130
|
+
caption: string;
|
|
4131
4131
|
}[] | undefined;
|
|
4132
4132
|
}, {
|
|
4133
4133
|
coverImage: {
|
|
@@ -4136,9 +4136,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4136
4136
|
url: string;
|
|
4137
4137
|
};
|
|
4138
4138
|
gallery?: {
|
|
4139
|
-
alt: string;
|
|
4140
|
-
thumbnailUrl: string;
|
|
4141
4139
|
url: string;
|
|
4140
|
+
order: number;
|
|
4141
|
+
caption: string;
|
|
4142
4142
|
}[] | undefined;
|
|
4143
4143
|
}>>;
|
|
4144
4144
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4427,17 +4427,17 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4427
4427
|
url: string;
|
|
4428
4428
|
}>;
|
|
4429
4429
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4430
|
-
alt: z.ZodString;
|
|
4431
|
-
thumbnailUrl: z.ZodString;
|
|
4432
4430
|
url: z.ZodString;
|
|
4431
|
+
order: z.ZodNumber;
|
|
4432
|
+
caption: z.ZodString;
|
|
4433
4433
|
}, "strip", z.ZodTypeAny, {
|
|
4434
|
-
alt: string;
|
|
4435
|
-
thumbnailUrl: string;
|
|
4436
4434
|
url: string;
|
|
4435
|
+
order: number;
|
|
4436
|
+
caption: string;
|
|
4437
4437
|
}, {
|
|
4438
|
-
alt: string;
|
|
4439
|
-
thumbnailUrl: string;
|
|
4440
4438
|
url: string;
|
|
4439
|
+
order: number;
|
|
4440
|
+
caption: string;
|
|
4441
4441
|
}>, "many">>;
|
|
4442
4442
|
}, "strip", z.ZodTypeAny, {
|
|
4443
4443
|
coverImage: {
|
|
@@ -4446,9 +4446,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4446
4446
|
url: string;
|
|
4447
4447
|
};
|
|
4448
4448
|
gallery?: {
|
|
4449
|
-
alt: string;
|
|
4450
|
-
thumbnailUrl: string;
|
|
4451
4449
|
url: string;
|
|
4450
|
+
order: number;
|
|
4451
|
+
caption: string;
|
|
4452
4452
|
}[] | undefined;
|
|
4453
4453
|
}, {
|
|
4454
4454
|
coverImage: {
|
|
@@ -4457,9 +4457,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4457
4457
|
url: string;
|
|
4458
4458
|
};
|
|
4459
4459
|
gallery?: {
|
|
4460
|
-
alt: string;
|
|
4461
|
-
thumbnailUrl: string;
|
|
4462
4460
|
url: string;
|
|
4461
|
+
order: number;
|
|
4462
|
+
caption: string;
|
|
4463
4463
|
}[] | undefined;
|
|
4464
4464
|
}>>;
|
|
4465
4465
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4748,17 +4748,17 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4748
4748
|
url: string;
|
|
4749
4749
|
}>;
|
|
4750
4750
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4751
|
-
alt: z.ZodString;
|
|
4752
|
-
thumbnailUrl: z.ZodString;
|
|
4753
4751
|
url: z.ZodString;
|
|
4752
|
+
order: z.ZodNumber;
|
|
4753
|
+
caption: z.ZodString;
|
|
4754
4754
|
}, "strip", z.ZodTypeAny, {
|
|
4755
|
-
alt: string;
|
|
4756
|
-
thumbnailUrl: string;
|
|
4757
4755
|
url: string;
|
|
4756
|
+
order: number;
|
|
4757
|
+
caption: string;
|
|
4758
4758
|
}, {
|
|
4759
|
-
alt: string;
|
|
4760
|
-
thumbnailUrl: string;
|
|
4761
4759
|
url: string;
|
|
4760
|
+
order: number;
|
|
4761
|
+
caption: string;
|
|
4762
4762
|
}>, "many">>;
|
|
4763
4763
|
}, "strip", z.ZodTypeAny, {
|
|
4764
4764
|
coverImage: {
|
|
@@ -4767,9 +4767,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4767
4767
|
url: string;
|
|
4768
4768
|
};
|
|
4769
4769
|
gallery?: {
|
|
4770
|
-
alt: string;
|
|
4771
|
-
thumbnailUrl: string;
|
|
4772
4770
|
url: string;
|
|
4771
|
+
order: number;
|
|
4772
|
+
caption: string;
|
|
4773
4773
|
}[] | undefined;
|
|
4774
4774
|
}, {
|
|
4775
4775
|
coverImage: {
|
|
@@ -4778,9 +4778,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4778
4778
|
url: string;
|
|
4779
4779
|
};
|
|
4780
4780
|
gallery?: {
|
|
4781
|
-
alt: string;
|
|
4782
|
-
thumbnailUrl: string;
|
|
4783
4781
|
url: string;
|
|
4782
|
+
order: number;
|
|
4783
|
+
caption: string;
|
|
4784
4784
|
}[] | undefined;
|
|
4785
4785
|
}>>;
|
|
4786
4786
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -13,17 +13,17 @@ export declare const coverImageSchema: z.ZodObject<{
|
|
|
13
13
|
url: string;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const gallerySchema: z.ZodArray<z.ZodObject<{
|
|
16
|
-
alt: z.ZodString;
|
|
17
|
-
thumbnailUrl: z.ZodString;
|
|
18
16
|
url: z.ZodString;
|
|
17
|
+
order: z.ZodNumber;
|
|
18
|
+
caption: z.ZodString;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
alt: string;
|
|
21
|
-
thumbnailUrl: string;
|
|
22
20
|
url: string;
|
|
21
|
+
order: number;
|
|
22
|
+
caption: string;
|
|
23
23
|
}, {
|
|
24
|
-
alt: string;
|
|
25
|
-
thumbnailUrl: string;
|
|
26
24
|
url: string;
|
|
25
|
+
order: number;
|
|
26
|
+
caption: string;
|
|
27
27
|
}>, "many">;
|
|
28
28
|
export declare const mediaSchema: z.ZodObject<{
|
|
29
29
|
coverImage: z.ZodObject<{
|
|
@@ -40,17 +40,17 @@ export declare const mediaSchema: z.ZodObject<{
|
|
|
40
40
|
url: string;
|
|
41
41
|
}>;
|
|
42
42
|
gallery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
-
alt: z.ZodString;
|
|
44
|
-
thumbnailUrl: z.ZodString;
|
|
45
43
|
url: z.ZodString;
|
|
44
|
+
order: z.ZodNumber;
|
|
45
|
+
caption: z.ZodString;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
alt: string;
|
|
48
|
-
thumbnailUrl: string;
|
|
49
47
|
url: string;
|
|
48
|
+
order: number;
|
|
49
|
+
caption: string;
|
|
50
50
|
}, {
|
|
51
|
-
alt: string;
|
|
52
|
-
thumbnailUrl: string;
|
|
53
51
|
url: string;
|
|
52
|
+
order: number;
|
|
53
|
+
caption: string;
|
|
54
54
|
}>, "many">>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
coverImage: {
|
|
@@ -59,9 +59,9 @@ export declare const mediaSchema: z.ZodObject<{
|
|
|
59
59
|
url: string;
|
|
60
60
|
};
|
|
61
61
|
gallery?: {
|
|
62
|
-
alt: string;
|
|
63
|
-
thumbnailUrl: string;
|
|
64
62
|
url: string;
|
|
63
|
+
order: number;
|
|
64
|
+
caption: string;
|
|
65
65
|
}[] | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
coverImage: {
|
|
@@ -70,8 +70,8 @@ export declare const mediaSchema: z.ZodObject<{
|
|
|
70
70
|
url: string;
|
|
71
71
|
};
|
|
72
72
|
gallery?: {
|
|
73
|
-
alt: string;
|
|
74
|
-
thumbnailUrl: string;
|
|
75
73
|
url: string;
|
|
74
|
+
order: number;
|
|
75
|
+
caption: string;
|
|
76
76
|
}[] | undefined;
|
|
77
77
|
}>;
|
|
@@ -17,17 +17,17 @@ exports.coverImageSchema = zod_1.z.object({
|
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
exports.gallerySchema = zod_1.z.array(zod_1.z.object({
|
|
20
|
-
alt: zod_1.z.string({
|
|
21
|
-
required_error: 'Alt text is required',
|
|
22
|
-
invalid_type_error: 'Alt text must be a string'
|
|
23
|
-
}),
|
|
24
|
-
thumbnailUrl: zod_1.z.string({
|
|
25
|
-
required_error: 'Thumbnail URL is required',
|
|
26
|
-
invalid_type_error: 'Thumbnail URL must be a string'
|
|
27
|
-
}),
|
|
28
20
|
url: zod_1.z.string({
|
|
29
21
|
required_error: 'URL is required',
|
|
30
22
|
invalid_type_error: 'URL must be a string'
|
|
23
|
+
}),
|
|
24
|
+
order: zod_1.z.number({
|
|
25
|
+
required_error: 'Order is required',
|
|
26
|
+
invalid_type_error: 'Order must be a number'
|
|
27
|
+
}),
|
|
28
|
+
caption: zod_1.z.string({
|
|
29
|
+
required_error: 'Caption is required',
|
|
30
|
+
invalid_type_error: 'Caption must be a string'
|
|
31
31
|
})
|
|
32
32
|
}));
|
|
33
33
|
exports.mediaSchema = zod_1.z.object({
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ export const MAX_TAGLINE_LENGTH = 150;
|
|
|
4
4
|
export const MAX_CATEGORIES = 3;
|
|
5
5
|
export const MAX_DESCRIPTION_LENGTH = 2000;
|
|
6
6
|
export const MAX_DOCUMENTS = 5;
|
|
7
|
+
export const MAX_GALLERY_IMAGES = 10;
|
|
7
8
|
export const SUPPORTED_IMAGE_TYPES = ['image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/webp'];
|
|
8
9
|
export const MAX_FILE_SIZE_MB = 10;
|
|
9
10
|
export const MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024;
|
|
@@ -16,17 +16,17 @@ export const coverImageSchema = z.object({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export const gallerySchema = z.array(z.object({
|
|
19
|
-
alt: z.string({
|
|
20
|
-
required_error: 'Alt text is required',
|
|
21
|
-
invalid_type_error: 'Alt text must be a string'
|
|
22
|
-
}),
|
|
23
|
-
thumbnailUrl: z.string({
|
|
24
|
-
required_error: 'Thumbnail URL is required',
|
|
25
|
-
invalid_type_error: 'Thumbnail URL must be a string'
|
|
26
|
-
}),
|
|
27
19
|
url: z.string({
|
|
28
20
|
required_error: 'URL is required',
|
|
29
21
|
invalid_type_error: 'URL must be a string'
|
|
22
|
+
}),
|
|
23
|
+
order: z.number({
|
|
24
|
+
required_error: 'Order is required',
|
|
25
|
+
invalid_type_error: 'Order must be a number'
|
|
26
|
+
}),
|
|
27
|
+
caption: z.string({
|
|
28
|
+
required_error: 'Caption is required',
|
|
29
|
+
invalid_type_error: 'Caption must be a string'
|
|
30
30
|
})
|
|
31
31
|
}));
|
|
32
32
|
|