@mac777/project-pinecone-schema 1.0.12 → 1.0.13
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.
|
@@ -1586,7 +1586,7 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1586
1586
|
tagline: z.ZodOptional<z.ZodString>;
|
|
1587
1587
|
highlights: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1588
1588
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1589
|
-
media: z.ZodObject<{
|
|
1589
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1590
1590
|
coverImage: z.ZodObject<{
|
|
1591
1591
|
alt: z.ZodString;
|
|
1592
1592
|
thumbnailUrl: z.ZodString;
|
|
@@ -1635,7 +1635,7 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1635
1635
|
order: number;
|
|
1636
1636
|
caption: string;
|
|
1637
1637
|
}[] | undefined;
|
|
1638
|
-
}
|
|
1638
|
+
}>>;
|
|
1639
1639
|
additionalDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1640
1640
|
type: z.ZodOptional<z.ZodEnum<["venue_booking", "permit", "insurance", "license", "portfolio", "other"]>>;
|
|
1641
1641
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -1663,7 +1663,11 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1663
1663
|
benefits?: string[] | undefined;
|
|
1664
1664
|
}>, "many">>;
|
|
1665
1665
|
}, "strip", z.ZodTypeAny, {
|
|
1666
|
-
|
|
1666
|
+
eventId: string;
|
|
1667
|
+
hostId: string;
|
|
1668
|
+
description?: string | undefined;
|
|
1669
|
+
tagline?: string | undefined;
|
|
1670
|
+
media?: {
|
|
1667
1671
|
coverImage: {
|
|
1668
1672
|
alt: string;
|
|
1669
1673
|
thumbnailUrl: string;
|
|
@@ -1674,11 +1678,7 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1674
1678
|
order: number;
|
|
1675
1679
|
caption: string;
|
|
1676
1680
|
}[] | undefined;
|
|
1677
|
-
};
|
|
1678
|
-
eventId: string;
|
|
1679
|
-
hostId: string;
|
|
1680
|
-
description?: string | undefined;
|
|
1681
|
-
tagline?: string | undefined;
|
|
1681
|
+
} | undefined;
|
|
1682
1682
|
highlights?: string[] | undefined;
|
|
1683
1683
|
tickets?: {
|
|
1684
1684
|
_id: string;
|
|
@@ -1692,7 +1692,11 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1692
1692
|
url?: string | undefined;
|
|
1693
1693
|
}[] | undefined;
|
|
1694
1694
|
}, {
|
|
1695
|
-
|
|
1695
|
+
eventId: string;
|
|
1696
|
+
hostId: string;
|
|
1697
|
+
description?: string | undefined;
|
|
1698
|
+
tagline?: string | undefined;
|
|
1699
|
+
media?: {
|
|
1696
1700
|
coverImage: {
|
|
1697
1701
|
alt: string;
|
|
1698
1702
|
thumbnailUrl: string;
|
|
@@ -1703,11 +1707,7 @@ export declare const pendingApprovalEditSchema: z.ZodObject<{
|
|
|
1703
1707
|
order: number;
|
|
1704
1708
|
caption: string;
|
|
1705
1709
|
}[] | undefined;
|
|
1706
|
-
};
|
|
1707
|
-
eventId: string;
|
|
1708
|
-
hostId: string;
|
|
1709
|
-
description?: string | undefined;
|
|
1710
|
-
tagline?: string | undefined;
|
|
1710
|
+
} | undefined;
|
|
1711
1711
|
highlights?: string[] | undefined;
|
|
1712
1712
|
tickets?: {
|
|
1713
1713
|
_id: string;
|
|
@@ -1728,7 +1728,7 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1728
1728
|
tagline: z.ZodOptional<z.ZodString>;
|
|
1729
1729
|
highlights: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1730
1730
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1731
|
-
media: z.ZodObject<{
|
|
1731
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1732
1732
|
coverImage: z.ZodObject<{
|
|
1733
1733
|
alt: z.ZodString;
|
|
1734
1734
|
thumbnailUrl: z.ZodString;
|
|
@@ -1777,8 +1777,8 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1777
1777
|
order: number;
|
|
1778
1778
|
caption: string;
|
|
1779
1779
|
}[] | undefined;
|
|
1780
|
-
}
|
|
1781
|
-
tickets: z.ZodArray<z.ZodObject<{
|
|
1780
|
+
}>>;
|
|
1781
|
+
tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1782
1782
|
_id: z.ZodOptional<z.ZodString>;
|
|
1783
1783
|
name: z.ZodString;
|
|
1784
1784
|
price: z.ZodNumber;
|
|
@@ -1823,7 +1823,7 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1823
1823
|
isVisible?: boolean | undefined;
|
|
1824
1824
|
isActive?: boolean | undefined;
|
|
1825
1825
|
benefits?: string[] | undefined;
|
|
1826
|
-
}>, "many"
|
|
1826
|
+
}>, "many">>;
|
|
1827
1827
|
schedule: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
1828
1828
|
startDate: z.ZodDate;
|
|
1829
1829
|
endDate: z.ZodDate;
|
|
@@ -1841,7 +1841,11 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1841
1841
|
endDate: Date;
|
|
1842
1842
|
} | undefined>;
|
|
1843
1843
|
}, "strip", z.ZodTypeAny, {
|
|
1844
|
-
|
|
1844
|
+
eventId: string;
|
|
1845
|
+
hostId: string;
|
|
1846
|
+
description?: string | undefined;
|
|
1847
|
+
tagline?: string | undefined;
|
|
1848
|
+
media?: {
|
|
1845
1849
|
coverImage: {
|
|
1846
1850
|
alt: string;
|
|
1847
1851
|
thumbnailUrl: string;
|
|
@@ -1852,8 +1856,13 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1852
1856
|
order: number;
|
|
1853
1857
|
caption: string;
|
|
1854
1858
|
}[] | undefined;
|
|
1855
|
-
};
|
|
1856
|
-
|
|
1859
|
+
} | undefined;
|
|
1860
|
+
highlights?: string[] | undefined;
|
|
1861
|
+
schedule?: {
|
|
1862
|
+
startDate: Date;
|
|
1863
|
+
endDate: Date;
|
|
1864
|
+
} | undefined;
|
|
1865
|
+
tickets?: {
|
|
1857
1866
|
name: string;
|
|
1858
1867
|
price: number;
|
|
1859
1868
|
quantity: number;
|
|
@@ -1866,19 +1875,14 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1866
1875
|
maxPerOrder: number;
|
|
1867
1876
|
} | undefined;
|
|
1868
1877
|
benefits?: string[] | undefined;
|
|
1869
|
-
}[];
|
|
1878
|
+
}[] | undefined;
|
|
1879
|
+
languages?: string[] | undefined;
|
|
1880
|
+
}, {
|
|
1870
1881
|
eventId: string;
|
|
1871
1882
|
hostId: string;
|
|
1872
1883
|
description?: string | undefined;
|
|
1873
1884
|
tagline?: string | undefined;
|
|
1874
|
-
|
|
1875
|
-
schedule?: {
|
|
1876
|
-
startDate: Date;
|
|
1877
|
-
endDate: Date;
|
|
1878
|
-
} | undefined;
|
|
1879
|
-
languages?: string[] | undefined;
|
|
1880
|
-
}, {
|
|
1881
|
-
media: {
|
|
1885
|
+
media?: {
|
|
1882
1886
|
coverImage: {
|
|
1883
1887
|
alt: string;
|
|
1884
1888
|
thumbnailUrl: string;
|
|
@@ -1889,8 +1893,13 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1889
1893
|
order: number;
|
|
1890
1894
|
caption: string;
|
|
1891
1895
|
}[] | undefined;
|
|
1892
|
-
};
|
|
1893
|
-
|
|
1896
|
+
} | undefined;
|
|
1897
|
+
highlights?: string[] | undefined;
|
|
1898
|
+
schedule?: {
|
|
1899
|
+
startDate: Date;
|
|
1900
|
+
endDate: Date;
|
|
1901
|
+
} | undefined;
|
|
1902
|
+
tickets?: {
|
|
1894
1903
|
name: string;
|
|
1895
1904
|
price: number;
|
|
1896
1905
|
quantity: number;
|
|
@@ -1903,16 +1912,7 @@ export declare const approvedEventEditSchema: z.ZodObject<{
|
|
|
1903
1912
|
isVisible?: boolean | undefined;
|
|
1904
1913
|
isActive?: boolean | undefined;
|
|
1905
1914
|
benefits?: string[] | undefined;
|
|
1906
|
-
}[];
|
|
1907
|
-
eventId: string;
|
|
1908
|
-
hostId: string;
|
|
1909
|
-
description?: string | undefined;
|
|
1910
|
-
tagline?: string | undefined;
|
|
1911
|
-
highlights?: string[] | undefined;
|
|
1912
|
-
schedule?: {
|
|
1913
|
-
startDate: Date;
|
|
1914
|
-
endDate: Date;
|
|
1915
|
-
} | undefined;
|
|
1915
|
+
}[] | undefined;
|
|
1916
1916
|
languages?: string[] | undefined;
|
|
1917
1917
|
}>;
|
|
1918
1918
|
export declare const publishedEventEditSchema: z.ZodObject<{
|
|
@@ -1971,7 +1971,7 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
1971
1971
|
caption: string;
|
|
1972
1972
|
}[] | undefined;
|
|
1973
1973
|
}>>;
|
|
1974
|
-
tickets: z.ZodArray<z.ZodObject<{
|
|
1974
|
+
tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1975
1975
|
_id: z.ZodString;
|
|
1976
1976
|
price: z.ZodOptional<z.ZodNumber>;
|
|
1977
1977
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2013,21 +2013,8 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
2013
2013
|
isVisible?: boolean | undefined;
|
|
2014
2014
|
isActive?: boolean | undefined;
|
|
2015
2015
|
benefits?: string[] | undefined;
|
|
2016
|
-
}>, "many"
|
|
2016
|
+
}>, "many">>;
|
|
2017
2017
|
}, "strip", z.ZodTypeAny, {
|
|
2018
|
-
tickets: {
|
|
2019
|
-
_id: string;
|
|
2020
|
-
wristbandColor: string;
|
|
2021
|
-
isVisible: boolean;
|
|
2022
|
-
isActive: boolean;
|
|
2023
|
-
price?: number | undefined;
|
|
2024
|
-
quantity?: number | undefined;
|
|
2025
|
-
limits?: {
|
|
2026
|
-
minPerOrder?: number | undefined;
|
|
2027
|
-
maxPerOrder?: number | undefined;
|
|
2028
|
-
} | undefined;
|
|
2029
|
-
benefits?: string[] | undefined;
|
|
2030
|
-
}[];
|
|
2031
2018
|
eventId: string;
|
|
2032
2019
|
hostId: string;
|
|
2033
2020
|
description?: string | undefined;
|
|
@@ -2044,21 +2031,21 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
2044
2031
|
}[] | undefined;
|
|
2045
2032
|
} | undefined;
|
|
2046
2033
|
highlights?: string[] | undefined;
|
|
2047
|
-
|
|
2048
|
-
}, {
|
|
2049
|
-
tickets: {
|
|
2034
|
+
tickets?: {
|
|
2050
2035
|
_id: string;
|
|
2036
|
+
wristbandColor: string;
|
|
2037
|
+
isVisible: boolean;
|
|
2038
|
+
isActive: boolean;
|
|
2051
2039
|
price?: number | undefined;
|
|
2052
2040
|
quantity?: number | undefined;
|
|
2053
2041
|
limits?: {
|
|
2054
2042
|
minPerOrder?: number | undefined;
|
|
2055
2043
|
maxPerOrder?: number | undefined;
|
|
2056
2044
|
} | undefined;
|
|
2057
|
-
wristbandColor?: string | undefined;
|
|
2058
|
-
isVisible?: boolean | undefined;
|
|
2059
|
-
isActive?: boolean | undefined;
|
|
2060
2045
|
benefits?: string[] | undefined;
|
|
2061
|
-
}[];
|
|
2046
|
+
}[] | undefined;
|
|
2047
|
+
languages?: string[] | undefined;
|
|
2048
|
+
}, {
|
|
2062
2049
|
eventId: string;
|
|
2063
2050
|
hostId: string;
|
|
2064
2051
|
description?: string | undefined;
|
|
@@ -2075,6 +2062,19 @@ export declare const publishedEventEditSchema: z.ZodObject<{
|
|
|
2075
2062
|
}[] | undefined;
|
|
2076
2063
|
} | undefined;
|
|
2077
2064
|
highlights?: string[] | undefined;
|
|
2065
|
+
tickets?: {
|
|
2066
|
+
_id: string;
|
|
2067
|
+
price?: number | undefined;
|
|
2068
|
+
quantity?: number | undefined;
|
|
2069
|
+
limits?: {
|
|
2070
|
+
minPerOrder?: number | undefined;
|
|
2071
|
+
maxPerOrder?: number | undefined;
|
|
2072
|
+
} | undefined;
|
|
2073
|
+
wristbandColor?: string | undefined;
|
|
2074
|
+
isVisible?: boolean | undefined;
|
|
2075
|
+
isActive?: boolean | undefined;
|
|
2076
|
+
benefits?: string[] | undefined;
|
|
2077
|
+
}[] | undefined;
|
|
2078
2078
|
languages?: string[] | undefined;
|
|
2079
2079
|
}>;
|
|
2080
2080
|
export declare const liveEventEditSchema: z.ZodObject<{
|
|
@@ -99,7 +99,7 @@ exports.pendingApprovalEditSchema = zod_1.z.object({
|
|
|
99
99
|
tagline: zod_1.z.string().max(150, 'Tagline must be at most 150 characters').optional(),
|
|
100
100
|
highlights: zod_1.z.array(zod_1.z.string().max(200, 'Each highlight cannot exceed 200 characters'), { required_error: 'Highlights must be an array of strings' }).max(10, 'Cannot have more than 10 highlights').optional(),
|
|
101
101
|
languages: zod_1.z.array(zod_1.z.string()).optional(),
|
|
102
|
-
media: media_schema_1.mediaSchema,
|
|
102
|
+
media: media_schema_1.mediaSchema.optional(),
|
|
103
103
|
// Can add docs, not remove
|
|
104
104
|
additionalDocuments: zod_1.z.array(document_schema_1.documentSchema).optional(),
|
|
105
105
|
// Can clarify benefits, not change structure
|
|
@@ -117,7 +117,7 @@ exports.approvedEventEditSchema = zod_1.z.object({
|
|
|
117
117
|
tagline: zod_1.z.string().max(150, 'Tagline must be at most 150 characters').optional(),
|
|
118
118
|
highlights: zod_1.z.array(zod_1.z.string().max(200)).max(10).optional(),
|
|
119
119
|
languages: zod_1.z.array(zod_1.z.string()).optional(),
|
|
120
|
-
media: media_schema_1.mediaSchema,
|
|
120
|
+
media: media_schema_1.mediaSchema.optional(),
|
|
121
121
|
// Tickets (full control, no sales yet)
|
|
122
122
|
tickets: zod_1.z.array(zod_1.z.object({
|
|
123
123
|
_id: zod_1.z.string().optional(), // Undefined = new tier
|
|
@@ -132,7 +132,7 @@ exports.approvedEventEditSchema = zod_1.z.object({
|
|
|
132
132
|
minPerOrder: zod_1.z.number({ required_error: 'Min per order is required' }).min(1, 'Min per order must be at least 1'),
|
|
133
133
|
maxPerOrder: zod_1.z.number({ required_error: 'Max per order is required' }).min(1, 'Max per order must be at least 1')
|
|
134
134
|
}).optional()
|
|
135
|
-
})).
|
|
135
|
+
})).optional(),
|
|
136
136
|
// Minor date adjustments (±2 hours)
|
|
137
137
|
schedule: zod_1.z.object({
|
|
138
138
|
startDate: zod_1.z.date(),
|
|
@@ -175,7 +175,7 @@ exports.publishedEventEditSchema = zod_1.z.object({
|
|
|
175
175
|
minPerOrder: zod_1.z.number().min(1, 'Min per order must be at least 1').optional(),
|
|
176
176
|
maxPerOrder: zod_1.z.number().min(1, 'Max per order must be at least 1').optional()
|
|
177
177
|
}).optional()
|
|
178
|
-
}))
|
|
178
|
+
})).optional(),
|
|
179
179
|
});
|
|
180
180
|
// Live
|
|
181
181
|
exports.liveEventEditSchema = zod_1.z.object({
|
package/package.json
CHANGED
|
@@ -108,7 +108,7 @@ export const pendingApprovalEditSchema = z.object({
|
|
|
108
108
|
tagline: z.string().max(150, 'Tagline must be at most 150 characters').optional(),
|
|
109
109
|
highlights: z.array(z.string().max(200, 'Each highlight cannot exceed 200 characters'), { required_error: 'Highlights must be an array of strings' }).max(10, 'Cannot have more than 10 highlights').optional(),
|
|
110
110
|
languages: z.array(z.string()).optional(),
|
|
111
|
-
media: mediaSchema,
|
|
111
|
+
media: mediaSchema.optional(),
|
|
112
112
|
|
|
113
113
|
// Can add docs, not remove
|
|
114
114
|
additionalDocuments: z.array(documentSchema).optional(),
|
|
@@ -130,7 +130,7 @@ export const approvedEventEditSchema = z.object({
|
|
|
130
130
|
tagline: z.string().max(150, 'Tagline must be at most 150 characters').optional(),
|
|
131
131
|
highlights: z.array(z.string().max(200)).max(10).optional(),
|
|
132
132
|
languages: z.array(z.string()).optional(),
|
|
133
|
-
media: mediaSchema,
|
|
133
|
+
media: mediaSchema.optional(),
|
|
134
134
|
|
|
135
135
|
// Tickets (full control, no sales yet)
|
|
136
136
|
tickets: z.array(z.object({
|
|
@@ -146,7 +146,7 @@ export const approvedEventEditSchema = z.object({
|
|
|
146
146
|
minPerOrder: z.number({ required_error: 'Min per order is required' }).min(1, 'Min per order must be at least 1'),
|
|
147
147
|
maxPerOrder: z.number({ required_error: 'Max per order is required' }).min(1, 'Max per order must be at least 1')
|
|
148
148
|
}).optional()
|
|
149
|
-
})).
|
|
149
|
+
})).optional(),
|
|
150
150
|
|
|
151
151
|
// Minor date adjustments (±2 hours)
|
|
152
152
|
schedule: z.object({
|
|
@@ -198,7 +198,7 @@ export const publishedEventEditSchema = z.object({
|
|
|
198
198
|
minPerOrder: z.number().min(1, 'Min per order must be at least 1').optional(),
|
|
199
199
|
maxPerOrder: z.number().min(1, 'Max per order must be at least 1').optional()
|
|
200
200
|
}).optional()
|
|
201
|
-
}))
|
|
201
|
+
})).optional(),
|
|
202
202
|
});
|
|
203
203
|
|
|
204
204
|
// Live
|