@mac777/project-pinecone-schema 1.0.2 → 1.0.3
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 -8
- package/dist/events/events.constants.js +1 -6
- package/dist/events/events.schema.d.ts +55 -55
- package/dist/events/events.type.d.ts +0 -8
- package/dist/events/utils/ticket.schema.d.ts +3 -3
- package/dist/events/utils/ticket.schema.js +1 -1
- package/package.json +1 -1
- package/src/events/events.constants.ts +0 -12
- package/src/events/events.type.ts +0 -8
- package/src/events/utils/ticket.schema.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventType, DraftEventData, AgeRestriction, VenueType
|
|
1
|
+
import { EventType, DraftEventData, AgeRestriction, VenueType } from "./events.type";
|
|
2
2
|
export declare const MAX_TAGLINE_LENGTH = 150;
|
|
3
3
|
export declare const MAX_CATEGORIES = 3;
|
|
4
4
|
export declare const MAX_DESCRIPTION_LENGTH = 2000;
|
|
@@ -53,13 +53,6 @@ export declare const VENUE_TYPES: Array<{
|
|
|
53
53
|
label: string;
|
|
54
54
|
icon: string;
|
|
55
55
|
}>;
|
|
56
|
-
export declare const TICKET_PRESETS: Array<{
|
|
57
|
-
id: string;
|
|
58
|
-
label: string;
|
|
59
|
-
tier: DisplayTicket['tier'];
|
|
60
|
-
styleKey: DisplayTicket['id'];
|
|
61
|
-
desc: string;
|
|
62
|
-
}>;
|
|
63
56
|
export declare const STEPS: {
|
|
64
57
|
id: number;
|
|
65
58
|
label: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.INITIAL_DATA = exports.PREDEFINED_BENEFITS = exports.STEPS = exports.
|
|
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;
|
|
4
4
|
exports.MAX_TAGLINE_LENGTH = 150;
|
|
5
5
|
exports.MAX_CATEGORIES = 3;
|
|
6
6
|
exports.MAX_DESCRIPTION_LENGTH = 2000;
|
|
@@ -55,11 +55,6 @@ exports.VENUE_TYPES = [
|
|
|
55
55
|
{ value: 'outdoor', label: 'Outdoor', icon: 'Mountain' },
|
|
56
56
|
{ value: 'hybrid', label: 'Hybrid', icon: 'Building2' }
|
|
57
57
|
];
|
|
58
|
-
exports.TICKET_PRESETS = [
|
|
59
|
-
{ id: 'regular', label: 'Regular', tier: 'regular', styleKey: "regular", desc: 'General admission ticket' },
|
|
60
|
-
{ id: 'vip', label: 'VIP', tier: 'vip', styleKey: "vip", desc: 'Premium perks & seating' },
|
|
61
|
-
{ id: 'early_bird', label: 'Early Bird', tier: 'early_bird', styleKey: "early_bird", desc: 'Discounted ticket for early purchase' },
|
|
62
|
-
];
|
|
63
58
|
exports.STEPS = [
|
|
64
59
|
{ id: 1, label: 'Basics', description: 'Event Basics' },
|
|
65
60
|
{ id: 2, label: 'Details', description: 'Event Details' },
|
|
@@ -801,7 +801,7 @@ export declare const stepVerifySchema: z.ZodObject<{
|
|
|
801
801
|
}, z.ZodTypeAny, "passthrough">>;
|
|
802
802
|
export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
803
803
|
tickets: z.ZodArray<z.ZodObject<{
|
|
804
|
-
|
|
804
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
805
805
|
name: z.ZodString;
|
|
806
806
|
description: z.ZodOptional<z.ZodString>;
|
|
807
807
|
price: z.ZodObject<{
|
|
@@ -851,7 +851,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
851
851
|
quantity: number;
|
|
852
852
|
tier: "early_bird" | "regular" | "vip";
|
|
853
853
|
status?: "active" | "inactive" | undefined;
|
|
854
|
-
|
|
854
|
+
_id?: string | undefined;
|
|
855
855
|
description?: string | undefined;
|
|
856
856
|
salesWindow?: {
|
|
857
857
|
startDate?: string | undefined;
|
|
@@ -874,7 +874,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
874
874
|
};
|
|
875
875
|
quantity: number;
|
|
876
876
|
status?: "active" | "inactive" | undefined;
|
|
877
|
-
|
|
877
|
+
_id?: string | undefined;
|
|
878
878
|
description?: string | undefined;
|
|
879
879
|
salesWindow?: {
|
|
880
880
|
startDate?: string | undefined;
|
|
@@ -893,7 +893,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
893
893
|
}>, "many">;
|
|
894
894
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
895
895
|
tickets: z.ZodArray<z.ZodObject<{
|
|
896
|
-
|
|
896
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
897
897
|
name: z.ZodString;
|
|
898
898
|
description: z.ZodOptional<z.ZodString>;
|
|
899
899
|
price: z.ZodObject<{
|
|
@@ -943,7 +943,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
943
943
|
quantity: number;
|
|
944
944
|
tier: "early_bird" | "regular" | "vip";
|
|
945
945
|
status?: "active" | "inactive" | undefined;
|
|
946
|
-
|
|
946
|
+
_id?: string | undefined;
|
|
947
947
|
description?: string | undefined;
|
|
948
948
|
salesWindow?: {
|
|
949
949
|
startDate?: string | undefined;
|
|
@@ -966,7 +966,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
966
966
|
};
|
|
967
967
|
quantity: number;
|
|
968
968
|
status?: "active" | "inactive" | undefined;
|
|
969
|
-
|
|
969
|
+
_id?: string | undefined;
|
|
970
970
|
description?: string | undefined;
|
|
971
971
|
salesWindow?: {
|
|
972
972
|
startDate?: string | undefined;
|
|
@@ -985,7 +985,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
985
985
|
}>, "many">;
|
|
986
986
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
987
987
|
tickets: z.ZodArray<z.ZodObject<{
|
|
988
|
-
|
|
988
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
989
989
|
name: z.ZodString;
|
|
990
990
|
description: z.ZodOptional<z.ZodString>;
|
|
991
991
|
price: z.ZodObject<{
|
|
@@ -1035,7 +1035,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1035
1035
|
quantity: number;
|
|
1036
1036
|
tier: "early_bird" | "regular" | "vip";
|
|
1037
1037
|
status?: "active" | "inactive" | undefined;
|
|
1038
|
-
|
|
1038
|
+
_id?: string | undefined;
|
|
1039
1039
|
description?: string | undefined;
|
|
1040
1040
|
salesWindow?: {
|
|
1041
1041
|
startDate?: string | undefined;
|
|
@@ -1058,7 +1058,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1058
1058
|
};
|
|
1059
1059
|
quantity: number;
|
|
1060
1060
|
status?: "active" | "inactive" | undefined;
|
|
1061
|
-
|
|
1061
|
+
_id?: string | undefined;
|
|
1062
1062
|
description?: string | undefined;
|
|
1063
1063
|
salesWindow?: {
|
|
1064
1064
|
startDate?: string | undefined;
|
|
@@ -1077,7 +1077,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1077
1077
|
}>, "many">;
|
|
1078
1078
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
1079
1079
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1080
|
-
|
|
1080
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1081
1081
|
name: z.ZodString;
|
|
1082
1082
|
description: z.ZodOptional<z.ZodString>;
|
|
1083
1083
|
price: z.ZodObject<{
|
|
@@ -1127,7 +1127,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1127
1127
|
quantity: number;
|
|
1128
1128
|
tier: "early_bird" | "regular" | "vip";
|
|
1129
1129
|
status?: "active" | "inactive" | undefined;
|
|
1130
|
-
|
|
1130
|
+
_id?: string | undefined;
|
|
1131
1131
|
description?: string | undefined;
|
|
1132
1132
|
salesWindow?: {
|
|
1133
1133
|
startDate?: string | undefined;
|
|
@@ -1150,7 +1150,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1150
1150
|
};
|
|
1151
1151
|
quantity: number;
|
|
1152
1152
|
status?: "active" | "inactive" | undefined;
|
|
1153
|
-
|
|
1153
|
+
_id?: string | undefined;
|
|
1154
1154
|
description?: string | undefined;
|
|
1155
1155
|
salesWindow?: {
|
|
1156
1156
|
startDate?: string | undefined;
|
|
@@ -1169,7 +1169,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1169
1169
|
}>, "many">;
|
|
1170
1170
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1171
1171
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1172
|
-
|
|
1172
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1173
1173
|
name: z.ZodString;
|
|
1174
1174
|
description: z.ZodOptional<z.ZodString>;
|
|
1175
1175
|
price: z.ZodObject<{
|
|
@@ -1219,7 +1219,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1219
1219
|
quantity: number;
|
|
1220
1220
|
tier: "early_bird" | "regular" | "vip";
|
|
1221
1221
|
status?: "active" | "inactive" | undefined;
|
|
1222
|
-
|
|
1222
|
+
_id?: string | undefined;
|
|
1223
1223
|
description?: string | undefined;
|
|
1224
1224
|
salesWindow?: {
|
|
1225
1225
|
startDate?: string | undefined;
|
|
@@ -1242,7 +1242,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1242
1242
|
};
|
|
1243
1243
|
quantity: number;
|
|
1244
1244
|
status?: "active" | "inactive" | undefined;
|
|
1245
|
-
|
|
1245
|
+
_id?: string | undefined;
|
|
1246
1246
|
description?: string | undefined;
|
|
1247
1247
|
salesWindow?: {
|
|
1248
1248
|
startDate?: string | undefined;
|
|
@@ -1261,7 +1261,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1261
1261
|
}>, "many">;
|
|
1262
1262
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
1263
1263
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1264
|
-
|
|
1264
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1265
1265
|
name: z.ZodString;
|
|
1266
1266
|
description: z.ZodOptional<z.ZodString>;
|
|
1267
1267
|
price: z.ZodObject<{
|
|
@@ -1311,7 +1311,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1311
1311
|
quantity: number;
|
|
1312
1312
|
tier: "early_bird" | "regular" | "vip";
|
|
1313
1313
|
status?: "active" | "inactive" | undefined;
|
|
1314
|
-
|
|
1314
|
+
_id?: string | undefined;
|
|
1315
1315
|
description?: string | undefined;
|
|
1316
1316
|
salesWindow?: {
|
|
1317
1317
|
startDate?: string | undefined;
|
|
@@ -1334,7 +1334,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1334
1334
|
};
|
|
1335
1335
|
quantity: number;
|
|
1336
1336
|
status?: "active" | "inactive" | undefined;
|
|
1337
|
-
|
|
1337
|
+
_id?: string | undefined;
|
|
1338
1338
|
description?: string | undefined;
|
|
1339
1339
|
salesWindow?: {
|
|
1340
1340
|
startDate?: string | undefined;
|
|
@@ -1353,7 +1353,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1353
1353
|
}>, "many">;
|
|
1354
1354
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1355
1355
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1356
|
-
|
|
1356
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1357
1357
|
name: z.ZodString;
|
|
1358
1358
|
description: z.ZodOptional<z.ZodString>;
|
|
1359
1359
|
price: z.ZodObject<{
|
|
@@ -1403,7 +1403,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1403
1403
|
quantity: number;
|
|
1404
1404
|
tier: "early_bird" | "regular" | "vip";
|
|
1405
1405
|
status?: "active" | "inactive" | undefined;
|
|
1406
|
-
|
|
1406
|
+
_id?: string | undefined;
|
|
1407
1407
|
description?: string | undefined;
|
|
1408
1408
|
salesWindow?: {
|
|
1409
1409
|
startDate?: string | undefined;
|
|
@@ -1426,7 +1426,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1426
1426
|
};
|
|
1427
1427
|
quantity: number;
|
|
1428
1428
|
status?: "active" | "inactive" | undefined;
|
|
1429
|
-
|
|
1429
|
+
_id?: string | undefined;
|
|
1430
1430
|
description?: string | undefined;
|
|
1431
1431
|
salesWindow?: {
|
|
1432
1432
|
startDate?: string | undefined;
|
|
@@ -1616,7 +1616,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1616
1616
|
}>;
|
|
1617
1617
|
description: z.ZodString;
|
|
1618
1618
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1619
|
-
|
|
1619
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1620
1620
|
name: z.ZodString;
|
|
1621
1621
|
description: z.ZodOptional<z.ZodString>;
|
|
1622
1622
|
price: z.ZodObject<{
|
|
@@ -1666,7 +1666,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1666
1666
|
quantity: number;
|
|
1667
1667
|
tier: "early_bird" | "regular" | "vip";
|
|
1668
1668
|
status?: "active" | "inactive" | undefined;
|
|
1669
|
-
|
|
1669
|
+
_id?: string | undefined;
|
|
1670
1670
|
description?: string | undefined;
|
|
1671
1671
|
salesWindow?: {
|
|
1672
1672
|
startDate?: string | undefined;
|
|
@@ -1689,7 +1689,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1689
1689
|
};
|
|
1690
1690
|
quantity: number;
|
|
1691
1691
|
status?: "active" | "inactive" | undefined;
|
|
1692
|
-
|
|
1692
|
+
_id?: string | undefined;
|
|
1693
1693
|
description?: string | undefined;
|
|
1694
1694
|
salesWindow?: {
|
|
1695
1695
|
startDate?: string | undefined;
|
|
@@ -1729,7 +1729,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1729
1729
|
quantity: number;
|
|
1730
1730
|
tier: "early_bird" | "regular" | "vip";
|
|
1731
1731
|
status?: "active" | "inactive" | undefined;
|
|
1732
|
-
|
|
1732
|
+
_id?: string | undefined;
|
|
1733
1733
|
description?: string | undefined;
|
|
1734
1734
|
salesWindow?: {
|
|
1735
1735
|
startDate?: string | undefined;
|
|
@@ -1769,7 +1769,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1769
1769
|
};
|
|
1770
1770
|
quantity: number;
|
|
1771
1771
|
status?: "active" | "inactive" | undefined;
|
|
1772
|
-
|
|
1772
|
+
_id?: string | undefined;
|
|
1773
1773
|
description?: string | undefined;
|
|
1774
1774
|
salesWindow?: {
|
|
1775
1775
|
startDate?: string | undefined;
|
|
@@ -1811,7 +1811,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1811
1811
|
quantity: number;
|
|
1812
1812
|
tier: "early_bird" | "regular" | "vip";
|
|
1813
1813
|
status?: "active" | "inactive" | undefined;
|
|
1814
|
-
|
|
1814
|
+
_id?: string | undefined;
|
|
1815
1815
|
description?: string | undefined;
|
|
1816
1816
|
salesWindow?: {
|
|
1817
1817
|
startDate?: string | undefined;
|
|
@@ -1851,7 +1851,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1851
1851
|
};
|
|
1852
1852
|
quantity: number;
|
|
1853
1853
|
status?: "active" | "inactive" | undefined;
|
|
1854
|
-
|
|
1854
|
+
_id?: string | undefined;
|
|
1855
1855
|
description?: string | undefined;
|
|
1856
1856
|
salesWindow?: {
|
|
1857
1857
|
startDate?: string | undefined;
|
|
@@ -2085,7 +2085,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2085
2085
|
}>;
|
|
2086
2086
|
} & {
|
|
2087
2087
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2088
|
-
|
|
2088
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
2089
2089
|
name: z.ZodString;
|
|
2090
2090
|
description: z.ZodOptional<z.ZodString>;
|
|
2091
2091
|
price: z.ZodObject<{
|
|
@@ -2135,7 +2135,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2135
2135
|
quantity: number;
|
|
2136
2136
|
tier: "early_bird" | "regular" | "vip";
|
|
2137
2137
|
status?: "active" | "inactive" | undefined;
|
|
2138
|
-
|
|
2138
|
+
_id?: string | undefined;
|
|
2139
2139
|
description?: string | undefined;
|
|
2140
2140
|
salesWindow?: {
|
|
2141
2141
|
startDate?: string | undefined;
|
|
@@ -2158,7 +2158,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2158
2158
|
};
|
|
2159
2159
|
quantity: number;
|
|
2160
2160
|
status?: "active" | "inactive" | undefined;
|
|
2161
|
-
|
|
2161
|
+
_id?: string | undefined;
|
|
2162
2162
|
description?: string | undefined;
|
|
2163
2163
|
salesWindow?: {
|
|
2164
2164
|
startDate?: string | undefined;
|
|
@@ -2396,7 +2396,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2396
2396
|
}>;
|
|
2397
2397
|
} & {
|
|
2398
2398
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2399
|
-
|
|
2399
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
2400
2400
|
name: z.ZodString;
|
|
2401
2401
|
description: z.ZodOptional<z.ZodString>;
|
|
2402
2402
|
price: z.ZodObject<{
|
|
@@ -2446,7 +2446,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2446
2446
|
quantity: number;
|
|
2447
2447
|
tier: "early_bird" | "regular" | "vip";
|
|
2448
2448
|
status?: "active" | "inactive" | undefined;
|
|
2449
|
-
|
|
2449
|
+
_id?: string | undefined;
|
|
2450
2450
|
description?: string | undefined;
|
|
2451
2451
|
salesWindow?: {
|
|
2452
2452
|
startDate?: string | undefined;
|
|
@@ -2469,7 +2469,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2469
2469
|
};
|
|
2470
2470
|
quantity: number;
|
|
2471
2471
|
status?: "active" | "inactive" | undefined;
|
|
2472
|
-
|
|
2472
|
+
_id?: string | undefined;
|
|
2473
2473
|
description?: string | undefined;
|
|
2474
2474
|
salesWindow?: {
|
|
2475
2475
|
startDate?: string | undefined;
|
|
@@ -2707,7 +2707,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2707
2707
|
}>;
|
|
2708
2708
|
} & {
|
|
2709
2709
|
tickets: z.ZodArray<z.ZodObject<{
|
|
2710
|
-
|
|
2710
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
2711
2711
|
name: z.ZodString;
|
|
2712
2712
|
description: z.ZodOptional<z.ZodString>;
|
|
2713
2713
|
price: z.ZodObject<{
|
|
@@ -2757,7 +2757,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2757
2757
|
quantity: number;
|
|
2758
2758
|
tier: "early_bird" | "regular" | "vip";
|
|
2759
2759
|
status?: "active" | "inactive" | undefined;
|
|
2760
|
-
|
|
2760
|
+
_id?: string | undefined;
|
|
2761
2761
|
description?: string | undefined;
|
|
2762
2762
|
salesWindow?: {
|
|
2763
2763
|
startDate?: string | undefined;
|
|
@@ -2780,7 +2780,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2780
2780
|
};
|
|
2781
2781
|
quantity: number;
|
|
2782
2782
|
status?: "active" | "inactive" | undefined;
|
|
2783
|
-
|
|
2783
|
+
_id?: string | undefined;
|
|
2784
2784
|
description?: string | undefined;
|
|
2785
2785
|
salesWindow?: {
|
|
2786
2786
|
startDate?: string | undefined;
|
|
@@ -3019,7 +3019,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3019
3019
|
}>;
|
|
3020
3020
|
} & {
|
|
3021
3021
|
tickets: z.ZodArray<z.ZodObject<{
|
|
3022
|
-
|
|
3022
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
3023
3023
|
name: z.ZodString;
|
|
3024
3024
|
description: z.ZodOptional<z.ZodString>;
|
|
3025
3025
|
price: z.ZodObject<{
|
|
@@ -3069,7 +3069,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3069
3069
|
quantity: number;
|
|
3070
3070
|
tier: "early_bird" | "regular" | "vip";
|
|
3071
3071
|
status?: "active" | "inactive" | undefined;
|
|
3072
|
-
|
|
3072
|
+
_id?: string | undefined;
|
|
3073
3073
|
description?: string | undefined;
|
|
3074
3074
|
salesWindow?: {
|
|
3075
3075
|
startDate?: string | undefined;
|
|
@@ -3092,7 +3092,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3092
3092
|
};
|
|
3093
3093
|
quantity: number;
|
|
3094
3094
|
status?: "active" | "inactive" | undefined;
|
|
3095
|
-
|
|
3095
|
+
_id?: string | undefined;
|
|
3096
3096
|
description?: string | undefined;
|
|
3097
3097
|
salesWindow?: {
|
|
3098
3098
|
startDate?: string | undefined;
|
|
@@ -3330,7 +3330,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3330
3330
|
}>;
|
|
3331
3331
|
} & {
|
|
3332
3332
|
tickets: z.ZodArray<z.ZodObject<{
|
|
3333
|
-
|
|
3333
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
3334
3334
|
name: z.ZodString;
|
|
3335
3335
|
description: z.ZodOptional<z.ZodString>;
|
|
3336
3336
|
price: z.ZodObject<{
|
|
@@ -3380,7 +3380,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3380
3380
|
quantity: number;
|
|
3381
3381
|
tier: "early_bird" | "regular" | "vip";
|
|
3382
3382
|
status?: "active" | "inactive" | undefined;
|
|
3383
|
-
|
|
3383
|
+
_id?: string | undefined;
|
|
3384
3384
|
description?: string | undefined;
|
|
3385
3385
|
salesWindow?: {
|
|
3386
3386
|
startDate?: string | undefined;
|
|
@@ -3403,7 +3403,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3403
3403
|
};
|
|
3404
3404
|
quantity: number;
|
|
3405
3405
|
status?: "active" | "inactive" | undefined;
|
|
3406
|
-
|
|
3406
|
+
_id?: string | undefined;
|
|
3407
3407
|
description?: string | undefined;
|
|
3408
3408
|
salesWindow?: {
|
|
3409
3409
|
startDate?: string | undefined;
|
|
@@ -3641,7 +3641,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3641
3641
|
}>;
|
|
3642
3642
|
} & {
|
|
3643
3643
|
tickets: z.ZodArray<z.ZodObject<{
|
|
3644
|
-
|
|
3644
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
3645
3645
|
name: z.ZodString;
|
|
3646
3646
|
description: z.ZodOptional<z.ZodString>;
|
|
3647
3647
|
price: z.ZodObject<{
|
|
@@ -3691,7 +3691,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3691
3691
|
quantity: number;
|
|
3692
3692
|
tier: "early_bird" | "regular" | "vip";
|
|
3693
3693
|
status?: "active" | "inactive" | undefined;
|
|
3694
|
-
|
|
3694
|
+
_id?: string | undefined;
|
|
3695
3695
|
description?: string | undefined;
|
|
3696
3696
|
salesWindow?: {
|
|
3697
3697
|
startDate?: string | undefined;
|
|
@@ -3714,7 +3714,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3714
3714
|
};
|
|
3715
3715
|
quantity: number;
|
|
3716
3716
|
status?: "active" | "inactive" | undefined;
|
|
3717
|
-
|
|
3717
|
+
_id?: string | undefined;
|
|
3718
3718
|
description?: string | undefined;
|
|
3719
3719
|
salesWindow?: {
|
|
3720
3720
|
startDate?: string | undefined;
|
|
@@ -3948,7 +3948,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
3948
3948
|
}[];
|
|
3949
3949
|
}>>;
|
|
3950
3950
|
tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3951
|
-
|
|
3951
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
3952
3952
|
name: z.ZodString;
|
|
3953
3953
|
description: z.ZodOptional<z.ZodString>;
|
|
3954
3954
|
price: z.ZodObject<{
|
|
@@ -3998,7 +3998,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
3998
3998
|
quantity: number;
|
|
3999
3999
|
tier: "early_bird" | "regular" | "vip";
|
|
4000
4000
|
status?: "active" | "inactive" | undefined;
|
|
4001
|
-
|
|
4001
|
+
_id?: string | undefined;
|
|
4002
4002
|
description?: string | undefined;
|
|
4003
4003
|
salesWindow?: {
|
|
4004
4004
|
startDate?: string | undefined;
|
|
@@ -4021,7 +4021,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4021
4021
|
};
|
|
4022
4022
|
quantity: number;
|
|
4023
4023
|
status?: "active" | "inactive" | undefined;
|
|
4024
|
-
|
|
4024
|
+
_id?: string | undefined;
|
|
4025
4025
|
description?: string | undefined;
|
|
4026
4026
|
salesWindow?: {
|
|
4027
4027
|
startDate?: string | undefined;
|
|
@@ -4254,7 +4254,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4254
4254
|
}[];
|
|
4255
4255
|
}>>;
|
|
4256
4256
|
tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4257
|
-
|
|
4257
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
4258
4258
|
name: z.ZodString;
|
|
4259
4259
|
description: z.ZodOptional<z.ZodString>;
|
|
4260
4260
|
price: z.ZodObject<{
|
|
@@ -4304,7 +4304,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4304
4304
|
quantity: number;
|
|
4305
4305
|
tier: "early_bird" | "regular" | "vip";
|
|
4306
4306
|
status?: "active" | "inactive" | undefined;
|
|
4307
|
-
|
|
4307
|
+
_id?: string | undefined;
|
|
4308
4308
|
description?: string | undefined;
|
|
4309
4309
|
salesWindow?: {
|
|
4310
4310
|
startDate?: string | undefined;
|
|
@@ -4327,7 +4327,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4327
4327
|
};
|
|
4328
4328
|
quantity: number;
|
|
4329
4329
|
status?: "active" | "inactive" | undefined;
|
|
4330
|
-
|
|
4330
|
+
_id?: string | undefined;
|
|
4331
4331
|
description?: string | undefined;
|
|
4332
4332
|
salesWindow?: {
|
|
4333
4333
|
startDate?: string | undefined;
|
|
@@ -4560,7 +4560,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4560
4560
|
}[];
|
|
4561
4561
|
}>>;
|
|
4562
4562
|
tickets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4563
|
-
|
|
4563
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
4564
4564
|
name: z.ZodString;
|
|
4565
4565
|
description: z.ZodOptional<z.ZodString>;
|
|
4566
4566
|
price: z.ZodObject<{
|
|
@@ -4610,7 +4610,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4610
4610
|
quantity: number;
|
|
4611
4611
|
tier: "early_bird" | "regular" | "vip";
|
|
4612
4612
|
status?: "active" | "inactive" | undefined;
|
|
4613
|
-
|
|
4613
|
+
_id?: string | undefined;
|
|
4614
4614
|
description?: string | undefined;
|
|
4615
4615
|
salesWindow?: {
|
|
4616
4616
|
startDate?: string | undefined;
|
|
@@ -4633,7 +4633,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4633
4633
|
};
|
|
4634
4634
|
quantity: number;
|
|
4635
4635
|
status?: "active" | "inactive" | undefined;
|
|
4636
|
-
|
|
4636
|
+
_id?: string | undefined;
|
|
4637
4637
|
description?: string | undefined;
|
|
4638
4638
|
salesWindow?: {
|
|
4639
4639
|
startDate?: string | undefined;
|
|
@@ -32,14 +32,6 @@ export type StepTicketsData = z.infer<typeof stepTicketsSchema>;
|
|
|
32
32
|
export type StepReviewData = z.infer<typeof stepReviewSchema>;
|
|
33
33
|
export type SubmitEventData = z.infer<typeof submitEventSchema>;
|
|
34
34
|
export type DraftEventData = z.infer<typeof draftEventSchema>;
|
|
35
|
-
export interface Event {
|
|
36
|
-
id: string;
|
|
37
|
-
title: string;
|
|
38
|
-
location: string;
|
|
39
|
-
category: string;
|
|
40
|
-
date: string;
|
|
41
|
-
image?: string;
|
|
42
|
-
}
|
|
43
35
|
export type GetEventData = z.infer<typeof getEventSchema>;
|
|
44
36
|
export type ProtectedEventData = z.infer<typeof protectedEventSchema>;
|
|
45
37
|
export type ClientGetEventData = z.infer<typeof clientGetEventSchema>;
|
|
@@ -30,7 +30,7 @@ export declare const limitsSchema: z.ZodObject<{
|
|
|
30
30
|
maxPerOrder?: number | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const displayTicketSchema: z.ZodObject<{
|
|
33
|
-
|
|
33
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
34
34
|
name: z.ZodString;
|
|
35
35
|
description: z.ZodOptional<z.ZodString>;
|
|
36
36
|
price: z.ZodObject<{
|
|
@@ -80,7 +80,7 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
80
80
|
quantity: number;
|
|
81
81
|
tier: "early_bird" | "regular" | "vip";
|
|
82
82
|
status?: "active" | "inactive" | undefined;
|
|
83
|
-
|
|
83
|
+
_id?: string | undefined;
|
|
84
84
|
description?: string | undefined;
|
|
85
85
|
salesWindow?: {
|
|
86
86
|
startDate?: string | undefined;
|
|
@@ -103,7 +103,7 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
103
103
|
};
|
|
104
104
|
quantity: number;
|
|
105
105
|
status?: "active" | "inactive" | undefined;
|
|
106
|
-
|
|
106
|
+
_id?: string | undefined;
|
|
107
107
|
description?: string | undefined;
|
|
108
108
|
salesWindow?: {
|
|
109
109
|
startDate?: string | undefined;
|
|
@@ -15,7 +15,7 @@ exports.limitsSchema = zod_1.z.object({
|
|
|
15
15
|
maxPerOrder: zod_1.z.number({ required_error: 'Max per order must be a number' }).int('Max per order must be an integer').min(1, 'Max per order must be at least 1').default(10),
|
|
16
16
|
});
|
|
17
17
|
exports.displayTicketSchema = zod_1.z.object({
|
|
18
|
-
|
|
18
|
+
_id: zod_1.z.string().optional(),
|
|
19
19
|
name: zod_1.z.string({ required_error: 'Ticket name is required' }),
|
|
20
20
|
description: zod_1.z.string().optional(),
|
|
21
21
|
price: exports.priceSchema,
|
package/package.json
CHANGED
|
@@ -79,18 +79,6 @@ export const VENUE_TYPES: Array<{
|
|
|
79
79
|
{ value: 'hybrid', label: 'Hybrid', icon: 'Building2' }
|
|
80
80
|
] as const;
|
|
81
81
|
|
|
82
|
-
export const TICKET_PRESETS: Array<{
|
|
83
|
-
id: string;
|
|
84
|
-
label: string;
|
|
85
|
-
tier: DisplayTicket['tier'];
|
|
86
|
-
styleKey: DisplayTicket['id'];
|
|
87
|
-
desc: string;
|
|
88
|
-
}> = [
|
|
89
|
-
{ id: 'regular', label: 'Regular', tier: 'regular', styleKey: "regular", desc: 'General admission ticket' },
|
|
90
|
-
{ id: 'vip', label: 'VIP', tier: 'vip', styleKey: "vip", desc: 'Premium perks & seating' },
|
|
91
|
-
{ id: 'early_bird', label: 'Early Bird', tier: 'early_bird', styleKey: "early_bird", desc: 'Discounted ticket for early purchase' },
|
|
92
|
-
] as const;
|
|
93
|
-
|
|
94
82
|
export const STEPS = [
|
|
95
83
|
{ id: 1, label: 'Basics', description: 'Event Basics' },
|
|
96
84
|
{ id: 2, label: 'Details', description: 'Event Details' },
|
|
@@ -44,14 +44,6 @@ export type StepReviewData = z.infer<typeof stepReviewSchema>;
|
|
|
44
44
|
// Composite types
|
|
45
45
|
export type SubmitEventData = z.infer<typeof submitEventSchema>;
|
|
46
46
|
export type DraftEventData = z.infer<typeof draftEventSchema>;
|
|
47
|
-
export interface Event {
|
|
48
|
-
id: string;
|
|
49
|
-
title: string;
|
|
50
|
-
location: string;
|
|
51
|
-
category: string;
|
|
52
|
-
date: string;
|
|
53
|
-
image?: string;
|
|
54
|
-
}
|
|
55
47
|
export type GetEventData = z.infer<typeof getEventSchema>;
|
|
56
48
|
export type ProtectedEventData = z.infer<typeof protectedEventSchema>;
|
|
57
49
|
export type ClientGetEventData = z.infer<typeof clientGetEventSchema>;
|
|
@@ -16,7 +16,7 @@ export const limitsSchema = z.object({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export const displayTicketSchema = z.object({
|
|
19
|
-
|
|
19
|
+
_id: z.string().optional(),
|
|
20
20
|
name: z.string({ required_error: 'Ticket name is required' }),
|
|
21
21
|
description: z.string().optional(),
|
|
22
22
|
price: priceSchema,
|