@getmicdrop/venue-calendar 4.0.5 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +700 -700
- package/dist/{AirbnbSplitMain-BVNtTJc-.js → AirbnbSplitMain-QRE-W2ZL.js} +4 -4
- package/dist/AirbnbSplitMain-QRE-W2ZL.js.map +1 -0
- package/dist/{CarouselView.legacy-B6HtvF8d.js → CarouselView.legacy-DtUAYloL.js} +3 -3
- package/dist/CarouselView.legacy-DtUAYloL.js.map +1 -0
- package/dist/{CartView-DrOhr4Qi.js → CartView-Be1-gajf.js} +158 -149
- package/dist/CartView-Be1-gajf.js.map +1 -0
- package/dist/{Checkout-DB1Aocl-.js → Checkout-DET04TDs.js} +4 -4
- package/dist/Checkout-DET04TDs.js.map +1 -0
- package/dist/{Checkout.legacy-DpcjjHQu.js → Checkout.legacy-Dg8qlXGF.js} +4 -4
- package/dist/Checkout.legacy-Dg8qlXGF.js.map +1 -0
- package/dist/{CheckoutMain-D0_1xfR8.js → CheckoutMain-CddDRMZ6.js} +4 -4
- package/dist/CheckoutMain-CddDRMZ6.js.map +1 -0
- package/dist/{CheckoutTimer-r1HaN6b6.js → CheckoutTimer-12XARKCb.js} +2 -2
- package/dist/CheckoutTimer-12XARKCb.js.map +1 -0
- package/dist/{CollectionView-5OzqEVQg.js → CollectionView-DsNE9b9o.js} +5 -5
- package/dist/CollectionView-DsNE9b9o.js.map +1 -0
- package/dist/{CollectionView.legacy-CabEI40i.js → CollectionView.legacy-C0EfF6bO.js} +3 -3
- package/dist/CollectionView.legacy-C0EfF6bO.js.map +1 -0
- package/dist/{EventDetailsView-CiGPGPz5.js → EventDetailsView-CKpXTip_.js} +2 -2
- package/dist/EventDetailsView-CKpXTip_.js.map +1 -0
- package/dist/{FeaturedView.legacy-tTPbRxSf.js → FeaturedView.legacy-CKANudQ1.js} +2 -2
- package/dist/FeaturedView.legacy-CKANudQ1.js.map +1 -0
- package/dist/{GalleryCard-CBMPmdrM.js → GalleryCard-X_ux5Ig_.js} +2 -2
- package/dist/GalleryCard-X_ux5Ig_.js.map +1 -0
- package/dist/{GalleryView.legacy-4QPpX22O.js → GalleryView.legacy-DiJEEg4a.js} +3 -3
- package/dist/GalleryView.legacy-DiJEEg4a.js.map +1 -0
- package/dist/{GroupedListView.legacy-CPJRLePS.js → GroupedListView.legacy-BlY6IUF7.js} +2 -2
- package/dist/GroupedListView.legacy-BlY6IUF7.js.map +1 -0
- package/dist/OrderSummarySkeleton-dDKUH741.js.map +1 -1
- package/dist/{SeriesPage-IZWQ53xg.js → SeriesPage-AHd2GQvo.js} +5 -5
- package/dist/SeriesPage-AHd2GQvo.js.map +1 -0
- package/dist/{SeriesPage.legacy-4jSF2g-n.js → SeriesPage.legacy-DRoCeh7t.js} +2 -2
- package/dist/SeriesPage.legacy-DRoCeh7t.js.map +1 -0
- package/dist/{Success-DTSn26bg.js → Success-BH-b9NQ-.js} +5 -5
- package/dist/Success-BH-b9NQ-.js.map +1 -0
- package/dist/{Success.legacy--ABrtyII.js → Success.legacy-BuElevkX.js} +2 -2
- package/dist/Success.legacy-BuElevkX.js.map +1 -0
- package/dist/{VenueCalendar-DpZ70okH.js → VenueCalendar-D3g_j17B.js} +18 -15
- package/dist/{VenueCalendar-DpZ70okH.js.map → VenueCalendar-D3g_j17B.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-CgHcn-qh.js → ViewTicketsEmbed-BUIrA7s5.js} +2 -2
- package/dist/ViewTicketsEmbed-BUIrA7s5.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +4 -1
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/types.d.ts +357 -353
- package/dist/colors-BZoMuXdh.js.map +1 -1
- package/dist/{labels-ClcIxHAF.js → labels-CJIz5Cek.js} +2 -2
- package/dist/labels-CJIz5Cek.js.map +1 -0
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/seo/types.d.ts +137 -137
- package/dist/{transform-DW3JR-t5.js → transform-CXAZf_M1.js} +2 -2
- package/dist/transform-CXAZf_M1.js.map +1 -0
- package/dist/types/index.d.ts +387 -387
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +13 -13
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +13 -13
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme.js +222 -222
- package/dist/AirbnbSplitMain-BVNtTJc-.js.map +0 -1
- package/dist/CarouselView.legacy-B6HtvF8d.js.map +0 -1
- package/dist/CartView-DrOhr4Qi.js.map +0 -1
- package/dist/Checkout-DB1Aocl-.js.map +0 -1
- package/dist/Checkout.legacy-DpcjjHQu.js.map +0 -1
- package/dist/CheckoutMain-D0_1xfR8.js.map +0 -1
- package/dist/CheckoutTimer-r1HaN6b6.js.map +0 -1
- package/dist/CollectionView-5OzqEVQg.js.map +0 -1
- package/dist/CollectionView.legacy-CabEI40i.js.map +0 -1
- package/dist/EventDetailsView-CiGPGPz5.js.map +0 -1
- package/dist/FeaturedView.legacy-tTPbRxSf.js.map +0 -1
- package/dist/GalleryCard-CBMPmdrM.js.map +0 -1
- package/dist/GalleryView.legacy-4QPpX22O.js.map +0 -1
- package/dist/GroupedListView.legacy-CPJRLePS.js.map +0 -1
- package/dist/SeriesPage-IZWQ53xg.js.map +0 -1
- package/dist/SeriesPage.legacy-4jSF2g-n.js.map +0 -1
- package/dist/Success-DTSn26bg.js.map +0 -1
- package/dist/Success.legacy--ABrtyII.js.map +0 -1
- package/dist/ViewTicketsEmbed-CgHcn-qh.js.map +0 -1
- package/dist/labels-ClcIxHAF.js.map +0 -1
- package/dist/transform-DW3JR-t5.js.map +0 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -1,353 +1,357 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Types for MicDrop Public Checkout API
|
|
3
|
-
*
|
|
4
|
-
* These types define the shape of API requests and responses
|
|
5
|
-
* for the public checkout flow (no authentication required).
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// ============================================================================
|
|
9
|
-
// Payment & Orders
|
|
10
|
-
// ============================================================================
|
|
11
|
-
|
|
12
|
-
export interface PaymentIntentRequest {
|
|
13
|
-
IP?: string;
|
|
14
|
-
productQuantities: Record<string | number, number>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface PaymentIntentResponse {
|
|
18
|
-
client_secret: string;
|
|
19
|
-
amount: number;
|
|
20
|
-
amount_total: number;
|
|
21
|
-
tax_amount_exclusive?: number;
|
|
22
|
-
service_fee?: number;
|
|
23
|
-
discount?: number;
|
|
24
|
-
gift_card_amount?: number;
|
|
25
|
-
gift_card_code?: string;
|
|
26
|
-
stripe_publishable_key?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface CompleteReservationResponse {
|
|
30
|
-
success: boolean;
|
|
31
|
-
message?: string;
|
|
32
|
-
error?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface CancelReservationResponse {
|
|
36
|
-
success: boolean;
|
|
37
|
-
message?: string;
|
|
38
|
-
error?: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface CreateOrderRequest {
|
|
42
|
-
eventId: string | number;
|
|
43
|
-
promoCode?: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface CreateOrderResponse {
|
|
47
|
-
uuid: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface ValidatePaymentRequest {
|
|
51
|
-
id: string;
|
|
52
|
-
paymentIntentId: string;
|
|
53
|
-
tickets: Record<string | number, number>;
|
|
54
|
-
firstName: string;
|
|
55
|
-
lastName: string;
|
|
56
|
-
email: string;
|
|
57
|
-
paymentMethod: string;
|
|
58
|
-
mailingList?: boolean;
|
|
59
|
-
saleType?: string;
|
|
60
|
-
attendees?: AttendeeInfo[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface AttendeeInfo {
|
|
64
|
-
ticketId: string | number;
|
|
65
|
-
firstName: string;
|
|
66
|
-
lastName: string;
|
|
67
|
-
email: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface ValidatePaymentResponse {
|
|
71
|
-
success: boolean;
|
|
72
|
-
status: string;
|
|
73
|
-
orderUUID?: string;
|
|
74
|
-
error?: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// ============================================================================
|
|
78
|
-
// Session Management
|
|
79
|
-
// ============================================================================
|
|
80
|
-
|
|
81
|
-
export interface ExtendSessionRequest {
|
|
82
|
-
orderUuid: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface ExtendSessionResponse {
|
|
86
|
-
success: boolean;
|
|
87
|
-
newExpiryTime?: string;
|
|
88
|
-
remainingExtensions?: number;
|
|
89
|
-
error?: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface SessionStatus {
|
|
93
|
-
expiresAt?: string;
|
|
94
|
-
extensionCount?: number;
|
|
95
|
-
remainingExtensions?: number;
|
|
96
|
-
canExtend?: boolean;
|
|
97
|
-
reservationCount?: number;
|
|
98
|
-
error?: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
1
|
+
/**
|
|
2
|
+
* API Types for MicDrop Public Checkout API
|
|
3
|
+
*
|
|
4
|
+
* These types define the shape of API requests and responses
|
|
5
|
+
* for the public checkout flow (no authentication required).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// Payment & Orders
|
|
10
|
+
// ============================================================================
|
|
11
|
+
|
|
12
|
+
export interface PaymentIntentRequest {
|
|
13
|
+
IP?: string;
|
|
14
|
+
productQuantities: Record<string | number, number>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PaymentIntentResponse {
|
|
18
|
+
client_secret: string;
|
|
19
|
+
amount: number;
|
|
20
|
+
amount_total: number;
|
|
21
|
+
tax_amount_exclusive?: number;
|
|
22
|
+
service_fee?: number;
|
|
23
|
+
discount?: number;
|
|
24
|
+
gift_card_amount?: number;
|
|
25
|
+
gift_card_code?: string;
|
|
26
|
+
stripe_publishable_key?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CompleteReservationResponse {
|
|
30
|
+
success: boolean;
|
|
31
|
+
message?: string;
|
|
32
|
+
error?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface CancelReservationResponse {
|
|
36
|
+
success: boolean;
|
|
37
|
+
message?: string;
|
|
38
|
+
error?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface CreateOrderRequest {
|
|
42
|
+
eventId: string | number;
|
|
43
|
+
promoCode?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface CreateOrderResponse {
|
|
47
|
+
uuid: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ValidatePaymentRequest {
|
|
51
|
+
id: string;
|
|
52
|
+
paymentIntentId: string;
|
|
53
|
+
tickets: Record<string | number, number>;
|
|
54
|
+
firstName: string;
|
|
55
|
+
lastName: string;
|
|
56
|
+
email: string;
|
|
57
|
+
paymentMethod: string;
|
|
58
|
+
mailingList?: boolean;
|
|
59
|
+
saleType?: string;
|
|
60
|
+
attendees?: AttendeeInfo[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface AttendeeInfo {
|
|
64
|
+
ticketId: string | number;
|
|
65
|
+
firstName: string;
|
|
66
|
+
lastName: string;
|
|
67
|
+
email: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface ValidatePaymentResponse {
|
|
71
|
+
success: boolean;
|
|
72
|
+
status: string;
|
|
73
|
+
orderUUID?: string;
|
|
74
|
+
error?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// Session Management
|
|
79
|
+
// ============================================================================
|
|
80
|
+
|
|
81
|
+
export interface ExtendSessionRequest {
|
|
82
|
+
orderUuid: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ExtendSessionResponse {
|
|
86
|
+
success: boolean;
|
|
87
|
+
newExpiryTime?: string;
|
|
88
|
+
remainingExtensions?: number;
|
|
89
|
+
error?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface SessionStatus {
|
|
93
|
+
expiresAt?: string;
|
|
94
|
+
extensionCount?: number;
|
|
95
|
+
remainingExtensions?: number;
|
|
96
|
+
canExtend?: boolean;
|
|
97
|
+
reservationCount?: number;
|
|
98
|
+
error?: string;
|
|
99
|
+
// 404 from /orders/session/{uuid}: the cart's reservations are
|
|
100
|
+
// gone (expired or never existed). Callers polling on an interval
|
|
101
|
+
// MUST treat this as terminal and stop — see CartView.svelte.
|
|
102
|
+
notFound?: boolean;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// ============================================================================
|
|
106
|
+
// Promo Codes
|
|
107
|
+
// ============================================================================
|
|
108
|
+
|
|
109
|
+
export interface PromoValidationResponse {
|
|
110
|
+
valid: boolean;
|
|
111
|
+
revealHiddenTickets?: boolean;
|
|
112
|
+
revealTicketIds?: number[];
|
|
113
|
+
provideDiscount?: boolean;
|
|
114
|
+
discountType?: 'percentage' | 'fixed';
|
|
115
|
+
amount?: number;
|
|
116
|
+
code?: string;
|
|
117
|
+
error?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface HasPromoCodesResponse {
|
|
121
|
+
hasPromoCodes: boolean;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// ============================================================================
|
|
125
|
+
// Orders
|
|
126
|
+
// ============================================================================
|
|
127
|
+
|
|
128
|
+
export interface Order {
|
|
129
|
+
uuid: string;
|
|
130
|
+
id?: number;
|
|
131
|
+
customerEmail: string;
|
|
132
|
+
customerFirstName?: string;
|
|
133
|
+
customerLastName?: string;
|
|
134
|
+
status: string;
|
|
135
|
+
totalAmount: number;
|
|
136
|
+
subtotal?: number;
|
|
137
|
+
serviceFeesAmount: number;
|
|
138
|
+
taxAmount: number;
|
|
139
|
+
discount?: number;
|
|
140
|
+
paymentIntentId?: string;
|
|
141
|
+
paymentMethod?: string;
|
|
142
|
+
purchasedTickets: PurchasedTicket[];
|
|
143
|
+
createdAt?: string;
|
|
144
|
+
updatedAt?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface PurchasedTicket {
|
|
148
|
+
uuid: string;
|
|
149
|
+
id?: number;
|
|
150
|
+
ticketNumber?: string;
|
|
151
|
+
orderId?: string | number;
|
|
152
|
+
attendeeFirstName?: string;
|
|
153
|
+
attendeeLastName?: string;
|
|
154
|
+
attendeeEmail?: string;
|
|
155
|
+
ticketName: string;
|
|
156
|
+
ticketTypeId?: number;
|
|
157
|
+
purchasePrice: number;
|
|
158
|
+
status?: string;
|
|
159
|
+
checkedIn?: boolean;
|
|
160
|
+
checkedInAt?: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// ============================================================================
|
|
164
|
+
// Events
|
|
165
|
+
// ============================================================================
|
|
166
|
+
|
|
167
|
+
export interface Event {
|
|
168
|
+
eventID: number;
|
|
169
|
+
id?: number;
|
|
170
|
+
name: string;
|
|
171
|
+
title?: string;
|
|
172
|
+
slug?: string;
|
|
173
|
+
description?: string;
|
|
174
|
+
date: string;
|
|
175
|
+
startDateTime?: string;
|
|
176
|
+
endDateTime?: string;
|
|
177
|
+
doorsOpenTime?: string;
|
|
178
|
+
timezone?: string;
|
|
179
|
+
venueId?: number;
|
|
180
|
+
venueName?: string;
|
|
181
|
+
venueAddress?: string;
|
|
182
|
+
location?: string;
|
|
183
|
+
imageUrl?: string;
|
|
184
|
+
imageURL?: string;
|
|
185
|
+
status?: string;
|
|
186
|
+
isPublished?: boolean;
|
|
187
|
+
isCancelled?: boolean;
|
|
188
|
+
availableTickets?: AvailableTicket[];
|
|
189
|
+
ticketsAvailable?: number;
|
|
190
|
+
ticketsSold?: number;
|
|
191
|
+
minPrice?: number;
|
|
192
|
+
maxPrice?: number;
|
|
193
|
+
ctaText?: string;
|
|
194
|
+
ctaState?: 'available' | 'sold_out' | 'coming_soon' | 'ended';
|
|
195
|
+
showPerformers?: boolean;
|
|
196
|
+
eventSeriesId?: number;
|
|
197
|
+
seriesInstanceNumber?: number;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface AvailableTicket {
|
|
201
|
+
id: number;
|
|
202
|
+
name: string;
|
|
203
|
+
description?: string;
|
|
204
|
+
price: number;
|
|
205
|
+
quantity: number;
|
|
206
|
+
quantitySold?: number;
|
|
207
|
+
quantityAvailable?: number;
|
|
208
|
+
minPerOrder?: number;
|
|
209
|
+
maxPerOrder?: number;
|
|
210
|
+
saleStartDate?: string;
|
|
211
|
+
saleEndDate?: string;
|
|
212
|
+
isHidden?: boolean;
|
|
213
|
+
revealWithPromoCode?: boolean;
|
|
214
|
+
ticketType?: number; // 0 = GA, 1 = assigned
|
|
215
|
+
sectionId?: number;
|
|
216
|
+
sortOrder?: number;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface EventPerformersResponse {
|
|
220
|
+
performers: Performer[];
|
|
221
|
+
showPerformers: boolean;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface Performer {
|
|
225
|
+
id: number;
|
|
226
|
+
displayName: string;
|
|
227
|
+
avatar?: string;
|
|
228
|
+
order?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// ============================================================================
|
|
232
|
+
// Venues
|
|
233
|
+
// ============================================================================
|
|
234
|
+
|
|
235
|
+
export interface Venue {
|
|
236
|
+
id: number;
|
|
237
|
+
name: string;
|
|
238
|
+
slug?: string;
|
|
239
|
+
address?: string;
|
|
240
|
+
googleLocationNameCache?: string;
|
|
241
|
+
city?: string;
|
|
242
|
+
state?: string;
|
|
243
|
+
zipCode?: string;
|
|
244
|
+
country?: string;
|
|
245
|
+
timezone?: string;
|
|
246
|
+
logoUrl?: string;
|
|
247
|
+
serviceFeePercentage?: number;
|
|
248
|
+
serviceFeeCents?: number;
|
|
249
|
+
taxPercentage?: number;
|
|
250
|
+
organizationId?: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// ============================================================================
|
|
254
|
+
// Series
|
|
255
|
+
// ============================================================================
|
|
256
|
+
|
|
257
|
+
export interface SeriesOccurrence {
|
|
258
|
+
eventId: number;
|
|
259
|
+
date: string;
|
|
260
|
+
startDateTime: string;
|
|
261
|
+
endDateTime?: string;
|
|
262
|
+
instanceNumber: number;
|
|
263
|
+
status: string;
|
|
264
|
+
ticketsAvailable?: number;
|
|
265
|
+
ctaState?: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface SeriesOccurrencesResponse {
|
|
269
|
+
seriesId: number;
|
|
270
|
+
occurrences: SeriesOccurrence[];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// ============================================================================
|
|
274
|
+
// Series Page
|
|
275
|
+
// ============================================================================
|
|
276
|
+
|
|
277
|
+
export interface SeriesPageData {
|
|
278
|
+
id: number;
|
|
279
|
+
title: string;
|
|
280
|
+
description: string;
|
|
281
|
+
eventSummary?: string;
|
|
282
|
+
image?: string;
|
|
283
|
+
timeZone: string;
|
|
284
|
+
venue: {
|
|
285
|
+
id: number;
|
|
286
|
+
name: string;
|
|
287
|
+
location?: string;
|
|
288
|
+
googleLocationNameCache?: string;
|
|
289
|
+
faq?: Array<{ question: string; answer: string }> | string;
|
|
290
|
+
disclaimer?: string;
|
|
291
|
+
};
|
|
292
|
+
performers: Array<{
|
|
293
|
+
displayName: string;
|
|
294
|
+
firstName?: string;
|
|
295
|
+
lastName?: string;
|
|
296
|
+
profileImage?: string;
|
|
297
|
+
}>;
|
|
298
|
+
occurrences: Array<{
|
|
299
|
+
id: number;
|
|
300
|
+
slug: string;
|
|
301
|
+
startDateTime: string;
|
|
302
|
+
endDateTime: string;
|
|
303
|
+
ctaState: {
|
|
304
|
+
text: string;
|
|
305
|
+
disabled: boolean;
|
|
306
|
+
reason?: string;
|
|
307
|
+
};
|
|
308
|
+
}>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// ============================================================================
|
|
312
|
+
// Public Collection
|
|
313
|
+
// ============================================================================
|
|
314
|
+
|
|
315
|
+
export interface PublicCollectionData {
|
|
316
|
+
id: number;
|
|
317
|
+
collectionTitle: string;
|
|
318
|
+
summary?: string;
|
|
319
|
+
description?: string;
|
|
320
|
+
coverImage?: string;
|
|
321
|
+
events: Array<{
|
|
322
|
+
id: number;
|
|
323
|
+
title: string;
|
|
324
|
+
slug?: string;
|
|
325
|
+
startDateTime?: string;
|
|
326
|
+
endDateTime?: string;
|
|
327
|
+
image?: string;
|
|
328
|
+
status?: string;
|
|
329
|
+
venue?: { name: string };
|
|
330
|
+
minPrice?: number;
|
|
331
|
+
}>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// ============================================================================
|
|
335
|
+
// API Configuration
|
|
336
|
+
// ============================================================================
|
|
337
|
+
|
|
338
|
+
export interface ApiConfig {
|
|
339
|
+
baseUrl?: string;
|
|
340
|
+
timeout?: number;
|
|
341
|
+
/** Number of additional attempts after the first try (default: 2 = 3 total tries). */
|
|
342
|
+
retries?: number;
|
|
343
|
+
/** Base delay before the first retry; doubles each attempt (default: 500ms). */
|
|
344
|
+
retryDelay?: number;
|
|
345
|
+
onError?: (error: Error) => void;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// ============================================================================
|
|
349
|
+
// Generic API Response
|
|
350
|
+
// ============================================================================
|
|
351
|
+
|
|
352
|
+
export interface ApiResponse<T> {
|
|
353
|
+
success: boolean;
|
|
354
|
+
data?: T;
|
|
355
|
+
error?: string;
|
|
356
|
+
statusCode?: number;
|
|
357
|
+
}
|