@mac777/project-pinecone-schema 1.0.2 → 1.0.4
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 +110 -110
- package/dist/events/events.type.d.ts +0 -8
- package/dist/events/utils/ticket.schema.d.ts +6 -6
- package/dist/events/utils/ticket.schema.js +2 -2
- 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 +2 -2
|
@@ -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<{
|
|
@@ -841,7 +841,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
841
841
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
842
842
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
843
843
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
844
|
-
tier: z.ZodDefault<z.
|
|
844
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
845
845
|
}, "strip", z.ZodTypeAny, {
|
|
846
846
|
name: string;
|
|
847
847
|
price: {
|
|
@@ -849,9 +849,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
849
849
|
currency: string;
|
|
850
850
|
};
|
|
851
851
|
quantity: number;
|
|
852
|
-
tier:
|
|
852
|
+
tier: string;
|
|
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;
|
|
@@ -889,11 +889,11 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
889
889
|
reserved?: number | undefined;
|
|
890
890
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
891
891
|
benefits?: string[] | undefined;
|
|
892
|
-
tier?:
|
|
892
|
+
tier?: string | undefined;
|
|
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<{
|
|
@@ -933,7 +933,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
933
933
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
934
934
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
935
935
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
936
|
-
tier: z.ZodDefault<z.
|
|
936
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
937
937
|
}, "strip", z.ZodTypeAny, {
|
|
938
938
|
name: string;
|
|
939
939
|
price: {
|
|
@@ -941,9 +941,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
941
941
|
currency: string;
|
|
942
942
|
};
|
|
943
943
|
quantity: number;
|
|
944
|
-
tier:
|
|
944
|
+
tier: string;
|
|
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;
|
|
@@ -981,11 +981,11 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
981
981
|
reserved?: number | undefined;
|
|
982
982
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
983
983
|
benefits?: string[] | undefined;
|
|
984
|
-
tier?:
|
|
984
|
+
tier?: string | undefined;
|
|
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<{
|
|
@@ -1025,7 +1025,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1025
1025
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
1026
1026
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
1027
1027
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1028
|
-
tier: z.ZodDefault<z.
|
|
1028
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
1029
1029
|
}, "strip", z.ZodTypeAny, {
|
|
1030
1030
|
name: string;
|
|
1031
1031
|
price: {
|
|
@@ -1033,9 +1033,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1033
1033
|
currency: string;
|
|
1034
1034
|
};
|
|
1035
1035
|
quantity: number;
|
|
1036
|
-
tier:
|
|
1036
|
+
tier: string;
|
|
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;
|
|
@@ -1073,11 +1073,11 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1073
1073
|
reserved?: number | undefined;
|
|
1074
1074
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1075
1075
|
benefits?: string[] | undefined;
|
|
1076
|
-
tier?:
|
|
1076
|
+
tier?: string | undefined;
|
|
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<{
|
|
@@ -1117,7 +1117,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1117
1117
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
1118
1118
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
1119
1119
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1120
|
-
tier: z.ZodDefault<z.
|
|
1120
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
1121
1121
|
}, "strip", z.ZodTypeAny, {
|
|
1122
1122
|
name: string;
|
|
1123
1123
|
price: {
|
|
@@ -1125,9 +1125,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1125
1125
|
currency: string;
|
|
1126
1126
|
};
|
|
1127
1127
|
quantity: number;
|
|
1128
|
-
tier:
|
|
1128
|
+
tier: string;
|
|
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;
|
|
@@ -1165,11 +1165,11 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1165
1165
|
reserved?: number | undefined;
|
|
1166
1166
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1167
1167
|
benefits?: string[] | undefined;
|
|
1168
|
-
tier?:
|
|
1168
|
+
tier?: string | undefined;
|
|
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<{
|
|
@@ -1209,7 +1209,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1209
1209
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
1210
1210
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
1211
1211
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1212
|
-
tier: z.ZodDefault<z.
|
|
1212
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
1213
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1214
|
name: string;
|
|
1215
1215
|
price: {
|
|
@@ -1217,9 +1217,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1217
1217
|
currency: string;
|
|
1218
1218
|
};
|
|
1219
1219
|
quantity: number;
|
|
1220
|
-
tier:
|
|
1220
|
+
tier: string;
|
|
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;
|
|
@@ -1257,11 +1257,11 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1257
1257
|
reserved?: number | undefined;
|
|
1258
1258
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1259
1259
|
benefits?: string[] | undefined;
|
|
1260
|
-
tier?:
|
|
1260
|
+
tier?: string | undefined;
|
|
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<{
|
|
@@ -1301,7 +1301,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1301
1301
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
1302
1302
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
1303
1303
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1304
|
-
tier: z.ZodDefault<z.
|
|
1304
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
1305
1305
|
}, "strip", z.ZodTypeAny, {
|
|
1306
1306
|
name: string;
|
|
1307
1307
|
price: {
|
|
@@ -1309,9 +1309,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1309
1309
|
currency: string;
|
|
1310
1310
|
};
|
|
1311
1311
|
quantity: number;
|
|
1312
|
-
tier:
|
|
1312
|
+
tier: string;
|
|
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;
|
|
@@ -1349,11 +1349,11 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1349
1349
|
reserved?: number | undefined;
|
|
1350
1350
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1351
1351
|
benefits?: string[] | undefined;
|
|
1352
|
-
tier?:
|
|
1352
|
+
tier?: string | undefined;
|
|
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<{
|
|
@@ -1393,7 +1393,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1393
1393
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
1394
1394
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
1395
1395
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1396
|
-
tier: z.ZodDefault<z.
|
|
1396
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
1397
1397
|
}, "strip", z.ZodTypeAny, {
|
|
1398
1398
|
name: string;
|
|
1399
1399
|
price: {
|
|
@@ -1401,9 +1401,9 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1401
1401
|
currency: string;
|
|
1402
1402
|
};
|
|
1403
1403
|
quantity: number;
|
|
1404
|
-
tier:
|
|
1404
|
+
tier: string;
|
|
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;
|
|
@@ -1441,7 +1441,7 @@ export declare const stepTicketsSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1441
1441
|
reserved?: number | undefined;
|
|
1442
1442
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1443
1443
|
benefits?: string[] | undefined;
|
|
1444
|
-
tier?:
|
|
1444
|
+
tier?: string | undefined;
|
|
1445
1445
|
}>, "many">;
|
|
1446
1446
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1447
1447
|
export declare const stepReviewSchema: z.ZodObject<{
|
|
@@ -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<{
|
|
@@ -1656,7 +1656,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1656
1656
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
1657
1657
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
1658
1658
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1659
|
-
tier: z.ZodDefault<z.
|
|
1659
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
1660
1660
|
}, "strip", z.ZodTypeAny, {
|
|
1661
1661
|
name: string;
|
|
1662
1662
|
price: {
|
|
@@ -1664,9 +1664,9 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1664
1664
|
currency: string;
|
|
1665
1665
|
};
|
|
1666
1666
|
quantity: number;
|
|
1667
|
-
tier:
|
|
1667
|
+
tier: string;
|
|
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;
|
|
@@ -1704,7 +1704,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1704
1704
|
reserved?: number | undefined;
|
|
1705
1705
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1706
1706
|
benefits?: string[] | undefined;
|
|
1707
|
-
tier?:
|
|
1707
|
+
tier?: string | undefined;
|
|
1708
1708
|
}>, "many">;
|
|
1709
1709
|
}, "strip", z.ZodTypeAny, {
|
|
1710
1710
|
description: string;
|
|
@@ -1727,9 +1727,9 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1727
1727
|
currency: string;
|
|
1728
1728
|
};
|
|
1729
1729
|
quantity: number;
|
|
1730
|
-
tier:
|
|
1730
|
+
tier: string;
|
|
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;
|
|
@@ -1784,7 +1784,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1784
1784
|
reserved?: number | undefined;
|
|
1785
1785
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1786
1786
|
benefits?: string[] | undefined;
|
|
1787
|
-
tier?:
|
|
1787
|
+
tier?: string | undefined;
|
|
1788
1788
|
}[];
|
|
1789
1789
|
eventId: string;
|
|
1790
1790
|
hostId: string;
|
|
@@ -1809,9 +1809,9 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1809
1809
|
currency: string;
|
|
1810
1810
|
};
|
|
1811
1811
|
quantity: number;
|
|
1812
|
-
tier:
|
|
1812
|
+
tier: string;
|
|
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;
|
|
@@ -1866,7 +1866,7 @@ export declare const approvedEventEditSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1866
1866
|
reserved?: number | undefined;
|
|
1867
1867
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
1868
1868
|
benefits?: string[] | undefined;
|
|
1869
|
-
tier?:
|
|
1869
|
+
tier?: string | undefined;
|
|
1870
1870
|
}[];
|
|
1871
1871
|
eventId: string;
|
|
1872
1872
|
hostId: string;
|
|
@@ -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<{
|
|
@@ -2125,7 +2125,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2125
2125
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
2126
2126
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
2127
2127
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2128
|
-
tier: z.ZodDefault<z.
|
|
2128
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
2129
2129
|
}, "strip", z.ZodTypeAny, {
|
|
2130
2130
|
name: string;
|
|
2131
2131
|
price: {
|
|
@@ -2133,9 +2133,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2133
2133
|
currency: string;
|
|
2134
2134
|
};
|
|
2135
2135
|
quantity: number;
|
|
2136
|
-
tier:
|
|
2136
|
+
tier: string;
|
|
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;
|
|
@@ -2173,7 +2173,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2173
2173
|
reserved?: number | undefined;
|
|
2174
2174
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
2175
2175
|
benefits?: string[] | undefined;
|
|
2176
|
-
tier?:
|
|
2176
|
+
tier?: string | undefined;
|
|
2177
2177
|
}>, "many">;
|
|
2178
2178
|
} & {
|
|
2179
2179
|
termsAccepted: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -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<{
|
|
@@ -2436,7 +2436,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2436
2436
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
2437
2437
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
2438
2438
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2439
|
-
tier: z.ZodDefault<z.
|
|
2439
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
2440
2440
|
}, "strip", z.ZodTypeAny, {
|
|
2441
2441
|
name: string;
|
|
2442
2442
|
price: {
|
|
@@ -2444,9 +2444,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2444
2444
|
currency: string;
|
|
2445
2445
|
};
|
|
2446
2446
|
quantity: number;
|
|
2447
|
-
tier:
|
|
2447
|
+
tier: string;
|
|
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;
|
|
@@ -2484,7 +2484,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2484
2484
|
reserved?: number | undefined;
|
|
2485
2485
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
2486
2486
|
benefits?: string[] | undefined;
|
|
2487
|
-
tier?:
|
|
2487
|
+
tier?: string | undefined;
|
|
2488
2488
|
}>, "many">;
|
|
2489
2489
|
} & {
|
|
2490
2490
|
termsAccepted: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -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<{
|
|
@@ -2747,7 +2747,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2747
2747
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
2748
2748
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
2749
2749
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2750
|
-
tier: z.ZodDefault<z.
|
|
2750
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
2751
2751
|
}, "strip", z.ZodTypeAny, {
|
|
2752
2752
|
name: string;
|
|
2753
2753
|
price: {
|
|
@@ -2755,9 +2755,9 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2755
2755
|
currency: string;
|
|
2756
2756
|
};
|
|
2757
2757
|
quantity: number;
|
|
2758
|
-
tier:
|
|
2758
|
+
tier: string;
|
|
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;
|
|
@@ -2795,7 +2795,7 @@ export declare const submitEventSchema: z.ZodObject<{
|
|
|
2795
2795
|
reserved?: number | undefined;
|
|
2796
2796
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
2797
2797
|
benefits?: string[] | undefined;
|
|
2798
|
-
tier?:
|
|
2798
|
+
tier?: string | undefined;
|
|
2799
2799
|
}>, "many">;
|
|
2800
2800
|
} & {
|
|
2801
2801
|
termsAccepted: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -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<{
|
|
@@ -3059,7 +3059,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3059
3059
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
3060
3060
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
3061
3061
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3062
|
-
tier: z.ZodDefault<z.
|
|
3062
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
3063
3063
|
}, "strip", z.ZodTypeAny, {
|
|
3064
3064
|
name: string;
|
|
3065
3065
|
price: {
|
|
@@ -3067,9 +3067,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3067
3067
|
currency: string;
|
|
3068
3068
|
};
|
|
3069
3069
|
quantity: number;
|
|
3070
|
-
tier:
|
|
3070
|
+
tier: string;
|
|
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;
|
|
@@ -3107,7 +3107,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3107
3107
|
reserved?: number | undefined;
|
|
3108
3108
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
3109
3109
|
benefits?: string[] | undefined;
|
|
3110
|
-
tier?:
|
|
3110
|
+
tier?: string | undefined;
|
|
3111
3111
|
}>, "many">;
|
|
3112
3112
|
} & {
|
|
3113
3113
|
termsAccepted: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -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<{
|
|
@@ -3370,7 +3370,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3370
3370
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
3371
3371
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
3372
3372
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3373
|
-
tier: z.ZodDefault<z.
|
|
3373
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
3374
3374
|
}, "strip", z.ZodTypeAny, {
|
|
3375
3375
|
name: string;
|
|
3376
3376
|
price: {
|
|
@@ -3378,9 +3378,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3378
3378
|
currency: string;
|
|
3379
3379
|
};
|
|
3380
3380
|
quantity: number;
|
|
3381
|
-
tier:
|
|
3381
|
+
tier: string;
|
|
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;
|
|
@@ -3418,7 +3418,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3418
3418
|
reserved?: number | undefined;
|
|
3419
3419
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
3420
3420
|
benefits?: string[] | undefined;
|
|
3421
|
-
tier?:
|
|
3421
|
+
tier?: string | undefined;
|
|
3422
3422
|
}>, "many">;
|
|
3423
3423
|
} & {
|
|
3424
3424
|
termsAccepted: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -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<{
|
|
@@ -3681,7 +3681,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3681
3681
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
3682
3682
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
3683
3683
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3684
|
-
tier: z.ZodDefault<z.
|
|
3684
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
3685
3685
|
}, "strip", z.ZodTypeAny, {
|
|
3686
3686
|
name: string;
|
|
3687
3687
|
price: {
|
|
@@ -3689,9 +3689,9 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3689
3689
|
currency: string;
|
|
3690
3690
|
};
|
|
3691
3691
|
quantity: number;
|
|
3692
|
-
tier:
|
|
3692
|
+
tier: string;
|
|
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;
|
|
@@ -3729,7 +3729,7 @@ export declare const clientGetEventSchema: z.ZodObject<{
|
|
|
3729
3729
|
reserved?: number | undefined;
|
|
3730
3730
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
3731
3731
|
benefits?: string[] | undefined;
|
|
3732
|
-
tier?:
|
|
3732
|
+
tier?: string | undefined;
|
|
3733
3733
|
}>, "many">;
|
|
3734
3734
|
} & {
|
|
3735
3735
|
termsAccepted: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -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<{
|
|
@@ -3988,7 +3988,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
3988
3988
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
3989
3989
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
3990
3990
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3991
|
-
tier: z.ZodDefault<z.
|
|
3991
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
3992
3992
|
}, "strip", z.ZodTypeAny, {
|
|
3993
3993
|
name: string;
|
|
3994
3994
|
price: {
|
|
@@ -3996,9 +3996,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
3996
3996
|
currency: string;
|
|
3997
3997
|
};
|
|
3998
3998
|
quantity: number;
|
|
3999
|
-
tier:
|
|
3999
|
+
tier: string;
|
|
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;
|
|
@@ -4036,7 +4036,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4036
4036
|
reserved?: number | undefined;
|
|
4037
4037
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
4038
4038
|
benefits?: string[] | undefined;
|
|
4039
|
-
tier?:
|
|
4039
|
+
tier?: string | undefined;
|
|
4040
4040
|
}>, "many">>;
|
|
4041
4041
|
termsAccepted: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, boolean>>;
|
|
4042
4042
|
legalPermissionAccepted: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, boolean>>;
|
|
@@ -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<{
|
|
@@ -4294,7 +4294,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4294
4294
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
4295
4295
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
4296
4296
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4297
|
-
tier: z.ZodDefault<z.
|
|
4297
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
4298
4298
|
}, "strip", z.ZodTypeAny, {
|
|
4299
4299
|
name: string;
|
|
4300
4300
|
price: {
|
|
@@ -4302,9 +4302,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4302
4302
|
currency: string;
|
|
4303
4303
|
};
|
|
4304
4304
|
quantity: number;
|
|
4305
|
-
tier:
|
|
4305
|
+
tier: string;
|
|
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;
|
|
@@ -4342,7 +4342,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4342
4342
|
reserved?: number | undefined;
|
|
4343
4343
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
4344
4344
|
benefits?: string[] | undefined;
|
|
4345
|
-
tier?:
|
|
4345
|
+
tier?: string | undefined;
|
|
4346
4346
|
}>, "many">>;
|
|
4347
4347
|
termsAccepted: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, boolean>>;
|
|
4348
4348
|
legalPermissionAccepted: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, boolean>>;
|
|
@@ -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<{
|
|
@@ -4600,7 +4600,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4600
4600
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
4601
4601
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
4602
4602
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4603
|
-
tier: z.ZodDefault<z.
|
|
4603
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
4604
4604
|
}, "strip", z.ZodTypeAny, {
|
|
4605
4605
|
name: string;
|
|
4606
4606
|
price: {
|
|
@@ -4608,9 +4608,9 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4608
4608
|
currency: string;
|
|
4609
4609
|
};
|
|
4610
4610
|
quantity: number;
|
|
4611
|
-
tier:
|
|
4611
|
+
tier: string;
|
|
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;
|
|
@@ -4648,7 +4648,7 @@ export declare const draftEventSchema: z.ZodObject<{
|
|
|
4648
4648
|
reserved?: number | undefined;
|
|
4649
4649
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
4650
4650
|
benefits?: string[] | undefined;
|
|
4651
|
-
tier?:
|
|
4651
|
+
tier?: string | undefined;
|
|
4652
4652
|
}>, "many">>;
|
|
4653
4653
|
termsAccepted: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, boolean>>;
|
|
4654
4654
|
legalPermissionAccepted: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, boolean>>;
|
|
@@ -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<{
|
|
@@ -70,7 +70,7 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
70
70
|
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<["public", "hidden", "invite_only"]>>>;
|
|
71
71
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
72
72
|
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
-
tier: z.ZodDefault<z.
|
|
73
|
+
tier: z.ZodDefault<z.ZodString>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
name: string;
|
|
76
76
|
price: {
|
|
@@ -78,9 +78,9 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
78
78
|
currency: string;
|
|
79
79
|
};
|
|
80
80
|
quantity: number;
|
|
81
|
-
tier:
|
|
81
|
+
tier: string;
|
|
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;
|
|
@@ -118,5 +118,5 @@ export declare const displayTicketSchema: z.ZodObject<{
|
|
|
118
118
|
reserved?: number | undefined;
|
|
119
119
|
visibility?: "public" | "hidden" | "invite_only" | undefined;
|
|
120
120
|
benefits?: string[] | undefined;
|
|
121
|
-
tier?:
|
|
121
|
+
tier?: string | undefined;
|
|
122
122
|
}>;
|
|
@@ -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,
|
|
@@ -28,5 +28,5 @@ exports.displayTicketSchema = zod_1.z.object({
|
|
|
28
28
|
visibility: zod_1.z.enum(['public', 'hidden', 'invite_only'], { required_error: 'Ticket visibility must be public, hidden, or invite_only' }).default('public').optional(),
|
|
29
29
|
status: zod_1.z.enum(['active', 'inactive'], { required_error: 'Ticket status must be active or inactive' }).default('active').optional(),
|
|
30
30
|
benefits: zod_1.z.array(zod_1.z.string(), { required_error: 'Benefits must be an array of strings' }).optional(),
|
|
31
|
-
tier: zod_1.z.
|
|
31
|
+
tier: zod_1.z.string({ required_error: 'Ticket tier is required' }).default('regular')
|
|
32
32
|
});
|
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,
|
|
@@ -29,5 +29,5 @@ export const displayTicketSchema = z.object({
|
|
|
29
29
|
visibility: z.enum(['public', 'hidden', 'invite_only'], { required_error: 'Ticket visibility must be public, hidden, or invite_only' }).default('public').optional(),
|
|
30
30
|
status: z.enum(['active', 'inactive'], { required_error: 'Ticket status must be active or inactive' }).default('active').optional(),
|
|
31
31
|
benefits: z.array(z.string(), { required_error: 'Benefits must be an array of strings' }).optional(),
|
|
32
|
-
tier: z.
|
|
32
|
+
tier: z.string({ required_error: 'Ticket tier is required' }).default('regular')
|
|
33
33
|
});
|