@meaple-com/types 1.0.5 → 3.0.0
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 +58 -0
- package/dist/index.d.mts +72 -62
- package/dist/index.d.ts +72 -62
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @meaple-com/types
|
|
2
|
+
|
|
3
|
+
TypeScript types and DTOs for the [Meaple](https://meaple.com) ticketing platform SDK.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @meaple-com/types
|
|
9
|
+
# or
|
|
10
|
+
pnpm add @meaple-com/types
|
|
11
|
+
# or
|
|
12
|
+
bun add @meaple-com/types
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Use these types in your app or in other Meaple packages for type-safe APIs:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import type {
|
|
21
|
+
EventProps,
|
|
22
|
+
FindEventsParams,
|
|
23
|
+
TicketProps,
|
|
24
|
+
OrderProps,
|
|
25
|
+
CreateOrderParams,
|
|
26
|
+
CouponProps,
|
|
27
|
+
UserProps,
|
|
28
|
+
CategoryProps,
|
|
29
|
+
} from '@meaple-com/types';
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Exported namespaces
|
|
33
|
+
|
|
34
|
+
- **Address** – `AddressProps`
|
|
35
|
+
- **Category** – `CategoryProps`, `ChartCategoryProps`
|
|
36
|
+
- **Channel** – `ChannelProps`, `GetChannelEventsProps`, `GetChannelEventProps`
|
|
37
|
+
- **Coupon** – `CouponProps`, `CheckCouponProps`
|
|
38
|
+
- **Event** – `EventProps`, `FindEventsParams`, `FindEventsResponseProps`, `GetEventTicketsResponseProps`, `GetEventProductsResponseProps`, `EventContact`, `ExternalAnalyticsProps`, `CreateEventReminderProps`
|
|
39
|
+
- **File** – `FileProps`, `CreateTicketFileProps`
|
|
40
|
+
- **Gauge** – `GaugeProps`
|
|
41
|
+
- **Order** – `OrderProps`, `OrderItemProps`, `CreateOrderParams`, `CreatedOrderResponseProps`, `GetOrderResponseProps`, `BuyerProps`, `PaymentIntentProps`, `NominationProps`, `PlatformFeeProps`
|
|
42
|
+
- **Payment** – `PlatformFeeProps`
|
|
43
|
+
- **Tag** – `TagProps`
|
|
44
|
+
- **Ticket** – `TicketProps`, `GroupProps`, `UpdateUserTicketProps`, `TransferTicketProps`, `TicketCustomFieldProps`
|
|
45
|
+
- **User** – `UserProps`, `GetUserEventsProps`, `GetUserOrdersProps`
|
|
46
|
+
- **User ticket** – `UserTicketProps`
|
|
47
|
+
|
|
48
|
+
## Peer usage
|
|
49
|
+
|
|
50
|
+
This package has no runtime code; it only provides type definitions. It is used by:
|
|
51
|
+
|
|
52
|
+
- `@meaple-com/core` – API client types
|
|
53
|
+
- `@meaple-com/react-query` – hook request/response types
|
|
54
|
+
- `@meaple-com/react-headless-components` – component prop types
|
|
55
|
+
|
|
56
|
+
## Documentation
|
|
57
|
+
|
|
58
|
+
[https://docs.meaple.com.br/](https://docs.meaple.com.br/)
|
package/dist/index.d.mts
CHANGED
|
@@ -71,6 +71,14 @@ type ExternalAnalyticsProps = {
|
|
|
71
71
|
|
|
72
72
|
type EventType = 'DRAFT' | 'PUBLISHED' | 'PRIVATE';
|
|
73
73
|
|
|
74
|
+
type EventAgePolicyType =
|
|
75
|
+
| 'EIGHTEEN_AND_OVER'
|
|
76
|
+
| 'SIXTEEN_WITH_GUARDIAN'
|
|
77
|
+
| 'SIXTEEN_WITH_AUTHORIZATION'
|
|
78
|
+
| 'FOURTEEN_WITH_GUARDIAN'
|
|
79
|
+
| 'FOURTEEN_WITH_AUTHORIZATION'
|
|
80
|
+
| 'ALL_AGES';
|
|
81
|
+
|
|
74
82
|
type EventReviewStats = {
|
|
75
83
|
averageRating: number | null;
|
|
76
84
|
totalReviews: number;
|
|
@@ -93,7 +101,8 @@ type EventProps = {
|
|
|
93
101
|
canceledAt: string | null;
|
|
94
102
|
address?: AddressProps | null;
|
|
95
103
|
image: FileProps | null;
|
|
96
|
-
|
|
104
|
+
agePolicyType: EventAgePolicyType | null;
|
|
105
|
+
minorsAuthFile: FileProps | null;
|
|
97
106
|
contact?: EventContact;
|
|
98
107
|
categories: CategoryProps[];
|
|
99
108
|
tags?: TagProps[];
|
|
@@ -140,6 +149,47 @@ type CreateEventReminderProps = {
|
|
|
140
149
|
phoneNumber: string;
|
|
141
150
|
};
|
|
142
151
|
|
|
152
|
+
type FindEventTagProps = Pick<
|
|
153
|
+
TagProps,
|
|
154
|
+
'id' | 'name' | 'description' | 'emoji' | 'parentId'
|
|
155
|
+
>;
|
|
156
|
+
|
|
157
|
+
type FindEventProps = Pick<
|
|
158
|
+
EventProps,
|
|
159
|
+
| 'id'
|
|
160
|
+
| 'name'
|
|
161
|
+
| 'slug'
|
|
162
|
+
| 'description'
|
|
163
|
+
| 'canceledAt'
|
|
164
|
+
| 'endsAt'
|
|
165
|
+
| 'startsAt'
|
|
166
|
+
| 'presaleStartsAt'
|
|
167
|
+
| 'timezone'
|
|
168
|
+
| 'status'
|
|
169
|
+
| 'categories'
|
|
170
|
+
| 'address'
|
|
171
|
+
| 'channel'
|
|
172
|
+
> & {
|
|
173
|
+
image: FileProps | null;
|
|
174
|
+
tags: FindEventTagProps[];
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
type FindEventsResponseProps = {
|
|
178
|
+
events: FindEventProps[];
|
|
179
|
+
cursor?: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
type FindEventsParams = {
|
|
183
|
+
orderBy?: 'START_DATE' | 'END_DATE' | 'MAX_PRICE' | 'MIN_PRICE';
|
|
184
|
+
channelSlugs?: string[];
|
|
185
|
+
limit?: number;
|
|
186
|
+
cursor?: string;
|
|
187
|
+
q?: string;
|
|
188
|
+
enabled?: boolean;
|
|
189
|
+
priority?: number;
|
|
190
|
+
categoryIds?: string[];
|
|
191
|
+
};
|
|
192
|
+
|
|
143
193
|
type GaugeProps = {
|
|
144
194
|
totalAmount: number;
|
|
145
195
|
usedAmount: number;
|
|
@@ -214,7 +264,7 @@ type TicketProps = {
|
|
|
214
264
|
customFields?: TicketCustomField[];
|
|
215
265
|
};
|
|
216
266
|
|
|
217
|
-
type
|
|
267
|
+
type GetEventProductEventProps = Pick<
|
|
218
268
|
EventProps,
|
|
219
269
|
'id' | 'endsAt' | 'presaleStartsAt'
|
|
220
270
|
> & {
|
|
@@ -222,7 +272,7 @@ type FindEventProductEventProps = Pick<
|
|
|
222
272
|
maxBuyAmount: number | null;
|
|
223
273
|
};
|
|
224
274
|
|
|
225
|
-
type
|
|
275
|
+
type GetEventProductProps = Pick<
|
|
226
276
|
TicketProps,
|
|
227
277
|
| 'id'
|
|
228
278
|
| 'name'
|
|
@@ -237,60 +287,19 @@ type FindEventProductItemProps = Pick<
|
|
|
237
287
|
| 'maxBuy'
|
|
238
288
|
>;
|
|
239
289
|
|
|
240
|
-
type
|
|
241
|
-
event:
|
|
242
|
-
products:
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
type FindEventTagItemProps = Pick<
|
|
246
|
-
TagProps,
|
|
247
|
-
'id' | 'name' | 'description' | 'emoji' | 'parentId'
|
|
248
|
-
>;
|
|
249
|
-
|
|
250
|
-
type FindEventItemProps = Pick<
|
|
251
|
-
EventProps,
|
|
252
|
-
| 'id'
|
|
253
|
-
| 'name'
|
|
254
|
-
| 'slug'
|
|
255
|
-
| 'description'
|
|
256
|
-
| 'canceledAt'
|
|
257
|
-
| 'endsAt'
|
|
258
|
-
| 'startsAt'
|
|
259
|
-
| 'presaleStartsAt'
|
|
260
|
-
| 'timezone'
|
|
261
|
-
| 'status'
|
|
262
|
-
| 'categories'
|
|
263
|
-
| 'address'
|
|
264
|
-
| 'channel'
|
|
265
|
-
> & {
|
|
266
|
-
image: FileProps | null;
|
|
267
|
-
tags: FindEventTagItemProps[];
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
type FindEventsProps = {
|
|
271
|
-
events: FindEventItemProps[];
|
|
272
|
-
cursor?: string;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
type FindEventsParams = {
|
|
276
|
-
orderBy?: 'START_DATE' | 'END_DATE' | 'MAX_PRICE' | 'MIN_PRICE';
|
|
277
|
-
channelSlugs?: string[];
|
|
278
|
-
limit?: number;
|
|
279
|
-
cursor?: string;
|
|
280
|
-
q?: string;
|
|
281
|
-
enabled?: boolean;
|
|
282
|
-
priority?: number;
|
|
283
|
-
categoryIds?: string[];
|
|
290
|
+
type GetEventProductsResponseProps = {
|
|
291
|
+
event: GetEventProductEventProps;
|
|
292
|
+
products: GetEventProductProps[];
|
|
284
293
|
};
|
|
285
294
|
|
|
286
|
-
type
|
|
295
|
+
type GetEventTicketsEventProps = Pick<
|
|
287
296
|
EventProps,
|
|
288
297
|
'id' | 'startsAt' | 'endsAt' | 'presaleStartsAt'
|
|
289
298
|
> & {
|
|
290
299
|
maxBuyAmount: number | null;
|
|
291
300
|
};
|
|
292
301
|
|
|
293
|
-
type
|
|
302
|
+
type GetEventTicketProps = Pick<
|
|
294
303
|
TicketProps,
|
|
295
304
|
| 'id'
|
|
296
305
|
| 'type'
|
|
@@ -310,17 +319,17 @@ type FindEventTicketItemProps = Pick<
|
|
|
310
319
|
| 'maxBuy'
|
|
311
320
|
>;
|
|
312
321
|
|
|
313
|
-
type
|
|
322
|
+
type GetEventTicketGroupProps = Pick<
|
|
314
323
|
GroupProps,
|
|
315
324
|
'id' | 'name' | 'description' | 'defaultOpen' | 'orderAt' | 'maxBuyAmount'
|
|
316
325
|
> & {
|
|
317
|
-
tickets:
|
|
326
|
+
tickets: GetEventTicketProps[];
|
|
318
327
|
};
|
|
319
328
|
|
|
320
|
-
type
|
|
321
|
-
event:
|
|
322
|
-
tickets:
|
|
323
|
-
groups:
|
|
329
|
+
type GetEventTicketsResponseProps = {
|
|
330
|
+
event: GetEventTicketsEventProps;
|
|
331
|
+
tickets: GetEventTicketProps[];
|
|
332
|
+
groups: GetEventTicketGroupProps[];
|
|
324
333
|
};
|
|
325
334
|
|
|
326
335
|
type BuyerProps = {
|
|
@@ -378,7 +387,8 @@ type OrderEventProps = Pick<
|
|
|
378
387
|
| 'id'
|
|
379
388
|
| 'name'
|
|
380
389
|
| 'slug'
|
|
381
|
-
| '
|
|
390
|
+
| 'agePolicyType'
|
|
391
|
+
| 'minorsAuthFile'
|
|
382
392
|
| 'hasTicketInsurance'
|
|
383
393
|
| 'startsAt'
|
|
384
394
|
| 'opensAt'
|
|
@@ -432,7 +442,7 @@ type CreatedOrderItemProps = Pick<OrderItemProps, 'id' | 'amount'> & {
|
|
|
432
442
|
ticket: CreatedOrderItemTicketProps;
|
|
433
443
|
};
|
|
434
444
|
|
|
435
|
-
type
|
|
445
|
+
type CreatedOrderProps = Pick<
|
|
436
446
|
OrderProps,
|
|
437
447
|
'id' | 'rawPrice' | 'totalPrice' | 'totalFee' | 'totalDiscount'
|
|
438
448
|
> & {
|
|
@@ -444,9 +454,9 @@ type CreatedOrderOrderProps = Pick<
|
|
|
444
454
|
info: Record<string, unknown>;
|
|
445
455
|
};
|
|
446
456
|
|
|
447
|
-
type
|
|
457
|
+
type CreatedOrderResponseProps = {
|
|
448
458
|
type: 'success';
|
|
449
|
-
order:
|
|
459
|
+
order: CreatedOrderProps;
|
|
450
460
|
clientSecret: string;
|
|
451
461
|
};
|
|
452
462
|
|
|
@@ -456,7 +466,7 @@ type CreateOrderTicketProps = {
|
|
|
456
466
|
seatIds?: string[];
|
|
457
467
|
};
|
|
458
468
|
|
|
459
|
-
type
|
|
469
|
+
type CreateOrderParams = {
|
|
460
470
|
eventId: string;
|
|
461
471
|
tickets: CreateOrderTicketProps[];
|
|
462
472
|
couponId?: string;
|
|
@@ -557,7 +567,7 @@ type PaymentIntentProps = {
|
|
|
557
567
|
| OrderWithBankSlipProps
|
|
558
568
|
);
|
|
559
569
|
|
|
560
|
-
type
|
|
570
|
+
type GetOrderResponseProps = {
|
|
561
571
|
order: OrderProps & {
|
|
562
572
|
items: OrderItemProps[];
|
|
563
573
|
userTickets: UserTicketProps[];
|
|
@@ -681,4 +691,4 @@ type GetMeUserProps = Pick<
|
|
|
681
691
|
| 'avatar'
|
|
682
692
|
>;
|
|
683
693
|
|
|
684
|
-
export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CreateEventReminderProps,
|
|
694
|
+
export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CreateEventReminderProps, CreateOrderParams, CreateOrderTicketProps, CreateTicketFileProps, CreatedOrderEventProps, CreatedOrderGroupProps, CreatedOrderItemProps, CreatedOrderItemTicketProps, CreatedOrderProps, CreatedOrderResponseProps, EventAgePolicyType, EventContact, EventProps, EventReviewStats, ExternalAnalyticsProps, FileProps, FindEventProps, FindEventTagProps, FindEventsParams, FindEventsResponseProps, GaugeProps, GetChannelEventProps, GetChannelEventsProps, GetEventProductEventProps, GetEventProductProps, GetEventProductsResponseProps, GetEventTicketGroupProps, GetEventTicketProps, GetEventTicketsEventProps, GetEventTicketsResponseProps, GetMeUserProps, GetOrderResponseProps, GetUserEventsProps, GetUserOrdersProps, GroupProps, NominationProps, OrderEventProps, OrderItemProps, OrderItemTicketProps, OrderProps, PaymentIntentProps, PlatformFeeProps, TagProps, TicketCustomField, TicketCustomFieldType, TicketFileOutput, TicketProps, TransferTicketProps, TransferTicketRecipientProps, UpdateUserTicketProps, UserOrderItemProps, UserOrderProps, UserProps, UserTicketEventProps, UserTicketItemTicketProps, UserTicketProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,14 @@ type ExternalAnalyticsProps = {
|
|
|
71
71
|
|
|
72
72
|
type EventType = 'DRAFT' | 'PUBLISHED' | 'PRIVATE';
|
|
73
73
|
|
|
74
|
+
type EventAgePolicyType =
|
|
75
|
+
| 'EIGHTEEN_AND_OVER'
|
|
76
|
+
| 'SIXTEEN_WITH_GUARDIAN'
|
|
77
|
+
| 'SIXTEEN_WITH_AUTHORIZATION'
|
|
78
|
+
| 'FOURTEEN_WITH_GUARDIAN'
|
|
79
|
+
| 'FOURTEEN_WITH_AUTHORIZATION'
|
|
80
|
+
| 'ALL_AGES';
|
|
81
|
+
|
|
74
82
|
type EventReviewStats = {
|
|
75
83
|
averageRating: number | null;
|
|
76
84
|
totalReviews: number;
|
|
@@ -93,7 +101,8 @@ type EventProps = {
|
|
|
93
101
|
canceledAt: string | null;
|
|
94
102
|
address?: AddressProps | null;
|
|
95
103
|
image: FileProps | null;
|
|
96
|
-
|
|
104
|
+
agePolicyType: EventAgePolicyType | null;
|
|
105
|
+
minorsAuthFile: FileProps | null;
|
|
97
106
|
contact?: EventContact;
|
|
98
107
|
categories: CategoryProps[];
|
|
99
108
|
tags?: TagProps[];
|
|
@@ -140,6 +149,47 @@ type CreateEventReminderProps = {
|
|
|
140
149
|
phoneNumber: string;
|
|
141
150
|
};
|
|
142
151
|
|
|
152
|
+
type FindEventTagProps = Pick<
|
|
153
|
+
TagProps,
|
|
154
|
+
'id' | 'name' | 'description' | 'emoji' | 'parentId'
|
|
155
|
+
>;
|
|
156
|
+
|
|
157
|
+
type FindEventProps = Pick<
|
|
158
|
+
EventProps,
|
|
159
|
+
| 'id'
|
|
160
|
+
| 'name'
|
|
161
|
+
| 'slug'
|
|
162
|
+
| 'description'
|
|
163
|
+
| 'canceledAt'
|
|
164
|
+
| 'endsAt'
|
|
165
|
+
| 'startsAt'
|
|
166
|
+
| 'presaleStartsAt'
|
|
167
|
+
| 'timezone'
|
|
168
|
+
| 'status'
|
|
169
|
+
| 'categories'
|
|
170
|
+
| 'address'
|
|
171
|
+
| 'channel'
|
|
172
|
+
> & {
|
|
173
|
+
image: FileProps | null;
|
|
174
|
+
tags: FindEventTagProps[];
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
type FindEventsResponseProps = {
|
|
178
|
+
events: FindEventProps[];
|
|
179
|
+
cursor?: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
type FindEventsParams = {
|
|
183
|
+
orderBy?: 'START_DATE' | 'END_DATE' | 'MAX_PRICE' | 'MIN_PRICE';
|
|
184
|
+
channelSlugs?: string[];
|
|
185
|
+
limit?: number;
|
|
186
|
+
cursor?: string;
|
|
187
|
+
q?: string;
|
|
188
|
+
enabled?: boolean;
|
|
189
|
+
priority?: number;
|
|
190
|
+
categoryIds?: string[];
|
|
191
|
+
};
|
|
192
|
+
|
|
143
193
|
type GaugeProps = {
|
|
144
194
|
totalAmount: number;
|
|
145
195
|
usedAmount: number;
|
|
@@ -214,7 +264,7 @@ type TicketProps = {
|
|
|
214
264
|
customFields?: TicketCustomField[];
|
|
215
265
|
};
|
|
216
266
|
|
|
217
|
-
type
|
|
267
|
+
type GetEventProductEventProps = Pick<
|
|
218
268
|
EventProps,
|
|
219
269
|
'id' | 'endsAt' | 'presaleStartsAt'
|
|
220
270
|
> & {
|
|
@@ -222,7 +272,7 @@ type FindEventProductEventProps = Pick<
|
|
|
222
272
|
maxBuyAmount: number | null;
|
|
223
273
|
};
|
|
224
274
|
|
|
225
|
-
type
|
|
275
|
+
type GetEventProductProps = Pick<
|
|
226
276
|
TicketProps,
|
|
227
277
|
| 'id'
|
|
228
278
|
| 'name'
|
|
@@ -237,60 +287,19 @@ type FindEventProductItemProps = Pick<
|
|
|
237
287
|
| 'maxBuy'
|
|
238
288
|
>;
|
|
239
289
|
|
|
240
|
-
type
|
|
241
|
-
event:
|
|
242
|
-
products:
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
type FindEventTagItemProps = Pick<
|
|
246
|
-
TagProps,
|
|
247
|
-
'id' | 'name' | 'description' | 'emoji' | 'parentId'
|
|
248
|
-
>;
|
|
249
|
-
|
|
250
|
-
type FindEventItemProps = Pick<
|
|
251
|
-
EventProps,
|
|
252
|
-
| 'id'
|
|
253
|
-
| 'name'
|
|
254
|
-
| 'slug'
|
|
255
|
-
| 'description'
|
|
256
|
-
| 'canceledAt'
|
|
257
|
-
| 'endsAt'
|
|
258
|
-
| 'startsAt'
|
|
259
|
-
| 'presaleStartsAt'
|
|
260
|
-
| 'timezone'
|
|
261
|
-
| 'status'
|
|
262
|
-
| 'categories'
|
|
263
|
-
| 'address'
|
|
264
|
-
| 'channel'
|
|
265
|
-
> & {
|
|
266
|
-
image: FileProps | null;
|
|
267
|
-
tags: FindEventTagItemProps[];
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
type FindEventsProps = {
|
|
271
|
-
events: FindEventItemProps[];
|
|
272
|
-
cursor?: string;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
type FindEventsParams = {
|
|
276
|
-
orderBy?: 'START_DATE' | 'END_DATE' | 'MAX_PRICE' | 'MIN_PRICE';
|
|
277
|
-
channelSlugs?: string[];
|
|
278
|
-
limit?: number;
|
|
279
|
-
cursor?: string;
|
|
280
|
-
q?: string;
|
|
281
|
-
enabled?: boolean;
|
|
282
|
-
priority?: number;
|
|
283
|
-
categoryIds?: string[];
|
|
290
|
+
type GetEventProductsResponseProps = {
|
|
291
|
+
event: GetEventProductEventProps;
|
|
292
|
+
products: GetEventProductProps[];
|
|
284
293
|
};
|
|
285
294
|
|
|
286
|
-
type
|
|
295
|
+
type GetEventTicketsEventProps = Pick<
|
|
287
296
|
EventProps,
|
|
288
297
|
'id' | 'startsAt' | 'endsAt' | 'presaleStartsAt'
|
|
289
298
|
> & {
|
|
290
299
|
maxBuyAmount: number | null;
|
|
291
300
|
};
|
|
292
301
|
|
|
293
|
-
type
|
|
302
|
+
type GetEventTicketProps = Pick<
|
|
294
303
|
TicketProps,
|
|
295
304
|
| 'id'
|
|
296
305
|
| 'type'
|
|
@@ -310,17 +319,17 @@ type FindEventTicketItemProps = Pick<
|
|
|
310
319
|
| 'maxBuy'
|
|
311
320
|
>;
|
|
312
321
|
|
|
313
|
-
type
|
|
322
|
+
type GetEventTicketGroupProps = Pick<
|
|
314
323
|
GroupProps,
|
|
315
324
|
'id' | 'name' | 'description' | 'defaultOpen' | 'orderAt' | 'maxBuyAmount'
|
|
316
325
|
> & {
|
|
317
|
-
tickets:
|
|
326
|
+
tickets: GetEventTicketProps[];
|
|
318
327
|
};
|
|
319
328
|
|
|
320
|
-
type
|
|
321
|
-
event:
|
|
322
|
-
tickets:
|
|
323
|
-
groups:
|
|
329
|
+
type GetEventTicketsResponseProps = {
|
|
330
|
+
event: GetEventTicketsEventProps;
|
|
331
|
+
tickets: GetEventTicketProps[];
|
|
332
|
+
groups: GetEventTicketGroupProps[];
|
|
324
333
|
};
|
|
325
334
|
|
|
326
335
|
type BuyerProps = {
|
|
@@ -378,7 +387,8 @@ type OrderEventProps = Pick<
|
|
|
378
387
|
| 'id'
|
|
379
388
|
| 'name'
|
|
380
389
|
| 'slug'
|
|
381
|
-
| '
|
|
390
|
+
| 'agePolicyType'
|
|
391
|
+
| 'minorsAuthFile'
|
|
382
392
|
| 'hasTicketInsurance'
|
|
383
393
|
| 'startsAt'
|
|
384
394
|
| 'opensAt'
|
|
@@ -432,7 +442,7 @@ type CreatedOrderItemProps = Pick<OrderItemProps, 'id' | 'amount'> & {
|
|
|
432
442
|
ticket: CreatedOrderItemTicketProps;
|
|
433
443
|
};
|
|
434
444
|
|
|
435
|
-
type
|
|
445
|
+
type CreatedOrderProps = Pick<
|
|
436
446
|
OrderProps,
|
|
437
447
|
'id' | 'rawPrice' | 'totalPrice' | 'totalFee' | 'totalDiscount'
|
|
438
448
|
> & {
|
|
@@ -444,9 +454,9 @@ type CreatedOrderOrderProps = Pick<
|
|
|
444
454
|
info: Record<string, unknown>;
|
|
445
455
|
};
|
|
446
456
|
|
|
447
|
-
type
|
|
457
|
+
type CreatedOrderResponseProps = {
|
|
448
458
|
type: 'success';
|
|
449
|
-
order:
|
|
459
|
+
order: CreatedOrderProps;
|
|
450
460
|
clientSecret: string;
|
|
451
461
|
};
|
|
452
462
|
|
|
@@ -456,7 +466,7 @@ type CreateOrderTicketProps = {
|
|
|
456
466
|
seatIds?: string[];
|
|
457
467
|
};
|
|
458
468
|
|
|
459
|
-
type
|
|
469
|
+
type CreateOrderParams = {
|
|
460
470
|
eventId: string;
|
|
461
471
|
tickets: CreateOrderTicketProps[];
|
|
462
472
|
couponId?: string;
|
|
@@ -557,7 +567,7 @@ type PaymentIntentProps = {
|
|
|
557
567
|
| OrderWithBankSlipProps
|
|
558
568
|
);
|
|
559
569
|
|
|
560
|
-
type
|
|
570
|
+
type GetOrderResponseProps = {
|
|
561
571
|
order: OrderProps & {
|
|
562
572
|
items: OrderItemProps[];
|
|
563
573
|
userTickets: UserTicketProps[];
|
|
@@ -681,4 +691,4 @@ type GetMeUserProps = Pick<
|
|
|
681
691
|
| 'avatar'
|
|
682
692
|
>;
|
|
683
693
|
|
|
684
|
-
export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CreateEventReminderProps,
|
|
694
|
+
export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CreateEventReminderProps, CreateOrderParams, CreateOrderTicketProps, CreateTicketFileProps, CreatedOrderEventProps, CreatedOrderGroupProps, CreatedOrderItemProps, CreatedOrderItemTicketProps, CreatedOrderProps, CreatedOrderResponseProps, EventAgePolicyType, EventContact, EventProps, EventReviewStats, ExternalAnalyticsProps, FileProps, FindEventProps, FindEventTagProps, FindEventsParams, FindEventsResponseProps, GaugeProps, GetChannelEventProps, GetChannelEventsProps, GetEventProductEventProps, GetEventProductProps, GetEventProductsResponseProps, GetEventTicketGroupProps, GetEventTicketProps, GetEventTicketsEventProps, GetEventTicketsResponseProps, GetMeUserProps, GetOrderResponseProps, GetUserEventsProps, GetUserOrdersProps, GroupProps, NominationProps, OrderEventProps, OrderItemProps, OrderItemTicketProps, OrderProps, PaymentIntentProps, PlatformFeeProps, TagProps, TicketCustomField, TicketCustomFieldType, TicketFileOutput, TicketProps, TransferTicketProps, TransferTicketRecipientProps, UpdateUserTicketProps, UserOrderItemProps, UserOrderProps, UserProps, UserTicketEventProps, UserTicketItemTicketProps, UserTicketProps };
|