@meaple-com/types 1.0.3 → 1.0.5

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/index.d.mts CHANGED
@@ -17,8 +17,8 @@ type AddressProps = {
17
17
  type CategoryProps = {
18
18
  id: string;
19
19
  name: string;
20
- description: string | null;
21
- iconUrl: string | null;
20
+ description: string;
21
+ iconUrl: string;
22
22
  };
23
23
 
24
24
  type FileProps = {
@@ -42,10 +42,26 @@ type ChannelProps = {
42
42
  eventsCount?: number;
43
43
  };
44
44
 
45
+ type TagProps = {
46
+ id: string;
47
+ name: string;
48
+ displayName: string;
49
+ description: string | null;
50
+ emoji: string | null;
51
+ parentId: string | null;
52
+ parent?: {
53
+ id: string;
54
+ name: string;
55
+ description: string | null;
56
+ emoji: string | null;
57
+ } | null;
58
+ children?: TagProps[];
59
+ };
60
+
45
61
  type EventContact = {
46
- email?: string;
47
- phoneNumber?: string;
48
- instagramUsername?: string;
62
+ email?: string | null;
63
+ phoneNumber?: string | null;
64
+ instagramUsername?: string | null;
49
65
  };
50
66
 
51
67
  type ExternalAnalyticsProps = {
@@ -53,22 +69,11 @@ type ExternalAnalyticsProps = {
53
69
  value: string;
54
70
  };
55
71
 
56
- type EventStatus = 'PUBLISHED' | 'PRIVATE' | 'HIDDEN' | 'DRAFT';
57
-
58
- type EventChildProps = {
59
- id: string;
60
- name: string;
61
- startsAt: string;
62
- timezone: string;
63
- isSeatAssigned: boolean;
64
- };
72
+ type EventType = 'DRAFT' | 'PUBLISHED' | 'PRIVATE';
65
73
 
66
- type EventTagProps = {
67
- id: string;
68
- name: string;
69
- description: string | null;
70
- emoji: string | null;
71
- parentId: string | null;
74
+ type EventReviewStats = {
75
+ averageRating: number | null;
76
+ totalReviews: number;
72
77
  };
73
78
 
74
79
  type EventProps = {
@@ -76,27 +81,33 @@ type EventProps = {
76
81
  slug: string;
77
82
  channelId?: string;
78
83
  name: string;
79
- description: string | null;
80
- status: EventStatus;
84
+ isSeatAssigned: boolean;
85
+ description: Record<string, any>[];
86
+ status: EventType;
81
87
  createdAt?: string;
82
88
  startsAt: string;
83
- endsAt: string | null;
84
- presaleStartsAt: string | null;
89
+ endsAt: string;
90
+ opensAt?: string | null;
91
+ presaleStartsAt?: string | null;
85
92
  timezone: string;
86
93
  canceledAt: string | null;
87
- legalAgeRequired?: number | null;
88
- isSeatAssigned?: boolean;
94
+ address?: AddressProps | null;
89
95
  image: FileProps | null;
90
- address: AddressProps | null;
96
+ legalAgeRequired: boolean;
97
+ contact?: EventContact;
98
+ categories: CategoryProps[];
99
+ tags?: TagProps[];
100
+ hasTicketInsurance?: boolean;
91
101
  channel: Pick<
92
102
  ChannelProps,
93
- 'id' | 'name' | 'slug' | 'avatar' | 'eventsCount'
103
+ 'id' | 'name' | 'avatar' | 'slug' | 'eventsCount'
94
104
  >;
95
- categories: CategoryProps[];
96
- tags?: EventTagProps[];
97
- contact?: EventContact | null;
98
- externalAnalytics?: ExternalAnalyticsProps[] | null;
99
- children?: EventChildProps[];
105
+ externalAnalytics: ExternalAnalyticsProps[] | null;
106
+ children: Pick<
107
+ EventProps,
108
+ 'id' | 'startsAt' | 'timezone' | 'isSeatAssigned'
109
+ >[];
110
+ reviewStats?: EventReviewStats | null;
100
111
  };
101
112
 
102
113
  type GetChannelEventProps = {
@@ -107,29 +118,26 @@ type GetChannelEventsProps = {
107
118
  events: EventProps[];
108
119
  };
109
120
 
121
+ type CheckCouponProps = {
122
+ eventId: string;
123
+ couponCode: string;
124
+ };
125
+
110
126
  type CouponProps = {
111
127
  id: string;
112
128
  type: 'FIXED' | 'PERCENTAGE';
113
129
  code: string;
114
130
  value: number;
115
- expiresAt: string;
131
+ expiresAt: string | null;
116
132
  amount: number | null;
117
133
  availableAmount: number | null;
118
134
  ticketIds: string[];
119
135
  };
120
136
 
121
- type CheckCouponProps = {
122
- eventId: string;
123
- couponCode: string;
124
- };
125
-
126
- type CouponsListProps = {
127
- coupons: CouponProps[];
128
- cursor?: string;
129
- };
130
-
131
137
  type CreateEventReminderProps = {
132
138
  email: string;
139
+ name: string;
140
+ phoneNumber: string;
133
141
  };
134
142
 
135
143
  type GaugeProps = {
@@ -142,6 +150,37 @@ type ChartCategoryProps = {
142
150
  name: string;
143
151
  };
144
152
 
153
+ type GroupProps = {
154
+ id: string;
155
+ name: string;
156
+ description?: string;
157
+ scanStartsAt?: string | null;
158
+ scanEndsAt?: string | null;
159
+ tickets: TicketProps[];
160
+ gauge: Pick<GaugeProps, 'totalAmount' | 'usedAmount'> | null;
161
+ defaultOpen: boolean;
162
+ orderAt: number;
163
+ maxBuyAmount?: number;
164
+ };
165
+
166
+ type TicketCustomFieldType =
167
+ | 'TEXT'
168
+ | 'NUMBER'
169
+ | 'BOOLEAN'
170
+ | 'DATE'
171
+ | 'SELECT'
172
+ | 'MULTI_SELECT'
173
+ | 'FILE';
174
+
175
+ type TicketCustomField = {
176
+ id: string;
177
+ name: string;
178
+ defaultValue?: string;
179
+ isRequired: boolean;
180
+ options?: string[];
181
+ type: TicketCustomFieldType;
182
+ };
183
+
145
184
  type TicketVisibility = 'PUBLIC' | 'PRIVATE' | 'DRAFT';
146
185
 
147
186
  type TicketType = 'TICKET' | 'PRODUCT';
@@ -156,7 +195,7 @@ type TicketProps = {
156
195
  description?: string;
157
196
  amount: number;
158
197
  visibility: TicketVisibility;
159
- privateToken?: string;
198
+ privateToken?: string | null;
160
199
  image: (FileProps & { id: string }) | null;
161
200
  amount: number;
162
201
  availableAmount: number;
@@ -166,45 +205,70 @@ type TicketProps = {
166
205
  isInvite: boolean;
167
206
  startsAt?: string;
168
207
  endsAt?: string;
169
- minBuy?: number;
170
- maxBuy?: number;
208
+ minBuy?: number | null;
209
+ maxBuy?: number | null;
171
210
  beginsAt?: string;
172
211
  predecessor?: Pick<TicketProps, 'id' | 'name' | 'group'>;
173
212
  expireBehavior?: 'VISIBLE' | 'HIDDEN';
174
213
  orderAt: number;
214
+ customFields?: TicketCustomField[];
175
215
  };
176
216
 
177
- type GroupProps = {
178
- id: string;
179
- name: string;
180
- description?: string;
181
- scanStartsAt?: string | null;
182
- scanEndsAt?: string | null;
183
- tickets: TicketProps[];
184
- gauge: Pick<GaugeProps, 'totalAmount' | 'usedAmount'> | null;
185
- defaultOpen: boolean;
186
- orderAt: number;
187
- maxBuyAmount?: number;
217
+ type FindEventProductEventProps = Pick<
218
+ EventProps,
219
+ 'id' | 'endsAt' | 'presaleStartsAt'
220
+ > & {
221
+ gauge: GaugeProps | null;
222
+ maxBuyAmount: number | null;
188
223
  };
189
224
 
190
- type EventProductProps = {
191
- id: string;
192
- maxBuyAmount?: number;
193
- };
225
+ type FindEventProductItemProps = Pick<
226
+ TicketProps,
227
+ | 'id'
228
+ | 'name'
229
+ | 'description'
230
+ | 'amount'
231
+ | 'availableAmount'
232
+ | 'endsAt'
233
+ | 'price'
234
+ | 'image'
235
+ | 'privateToken'
236
+ | 'minBuy'
237
+ | 'maxBuy'
238
+ >;
194
239
 
195
240
  type FindEventProductsProps = {
196
- event: EventProductProps;
197
- products: TicketProps[];
241
+ event: FindEventProductEventProps;
242
+ products: FindEventProductItemProps[];
198
243
  };
199
244
 
200
- type FindEventTicketsProps = {
201
- event: EventProductProps;
202
- tickets: TicketProps[];
203
- groups: GroupProps[];
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[];
204
268
  };
205
269
 
206
270
  type FindEventsProps = {
207
- events: EventProps[];
271
+ events: FindEventItemProps[];
208
272
  cursor?: string;
209
273
  };
210
274
 
@@ -219,6 +283,46 @@ type FindEventsParams = {
219
283
  categoryIds?: string[];
220
284
  };
221
285
 
286
+ type FindEventTicketsEventProps = Pick<
287
+ EventProps,
288
+ 'id' | 'startsAt' | 'endsAt' | 'presaleStartsAt'
289
+ > & {
290
+ maxBuyAmount: number | null;
291
+ };
292
+
293
+ type FindEventTicketItemProps = Pick<
294
+ TicketProps,
295
+ | 'id'
296
+ | 'type'
297
+ | 'groupId'
298
+ | 'name'
299
+ | 'description'
300
+ | 'amount'
301
+ | 'availableAmount'
302
+ | 'endsAt'
303
+ | 'price'
304
+ | 'orderAt'
305
+ | 'expireBehavior'
306
+ | 'image'
307
+ | 'chartCategory'
308
+ | 'privateToken'
309
+ | 'minBuy'
310
+ | 'maxBuy'
311
+ >;
312
+
313
+ type FindEventTicketGroupProps = Pick<
314
+ GroupProps,
315
+ 'id' | 'name' | 'description' | 'defaultOpen' | 'orderAt' | 'maxBuyAmount'
316
+ > & {
317
+ tickets: FindEventTicketItemProps[];
318
+ };
319
+
320
+ type FindEventTicketsProps = {
321
+ event: FindEventTicketsEventProps;
322
+ tickets: FindEventTicketItemProps[];
323
+ groups: FindEventTicketGroupProps[];
324
+ };
325
+
222
326
  type BuyerProps = {
223
327
  name: string;
224
328
  email: string;
@@ -228,6 +332,33 @@ type BuyerProps = {
228
332
  birthdate?: string | null;
229
333
  };
230
334
 
335
+ type NominationProps = {
336
+ name: string;
337
+ document: string | null;
338
+ };
339
+
340
+ type OrderItemTicketProps = Pick<
341
+ TicketProps,
342
+ | 'id'
343
+ | 'type'
344
+ | 'name'
345
+ | 'image'
346
+ | 'price'
347
+ | 'nominable'
348
+ | 'beginsAt'
349
+ | 'customFields'
350
+ > & {
351
+ group: Pick<GroupProps, 'id' | 'name'> | null;
352
+ };
353
+
354
+ type OrderItemProps = {
355
+ id: string;
356
+ amount: number;
357
+ seatIds: string[];
358
+ nominations: NominationProps[];
359
+ ticket: OrderItemTicketProps;
360
+ };
361
+
231
362
  type OrderStatus =
232
363
  | 'PENDING'
233
364
  | 'PAID'
@@ -242,6 +373,23 @@ type PaymentProps = {
242
373
  type: 'PIX' | 'CREDIT_CARD';
243
374
  };
244
375
 
376
+ type OrderEventProps = Pick<
377
+ EventProps,
378
+ | 'id'
379
+ | 'name'
380
+ | 'slug'
381
+ | 'legalAgeRequired'
382
+ | 'hasTicketInsurance'
383
+ | 'startsAt'
384
+ | 'opensAt'
385
+ | 'timezone'
386
+ | 'image'
387
+ | 'address'
388
+ | 'externalAnalytics'
389
+ > & {
390
+ channel: Pick<ChannelProps, 'id' | 'slug'>;
391
+ };
392
+
245
393
  type OrderProps = {
246
394
  id: string;
247
395
  status: OrderStatus;
@@ -251,34 +399,55 @@ type OrderProps = {
251
399
  totalDiscount: number;
252
400
  totalRefund?: number;
253
401
  totalCreditCardFee?: number;
402
+ totalInsurance?: number;
403
+ processingFee?: number;
254
404
  eventId: string;
255
- event: Pick<
256
- EventProps,
257
- | 'id'
258
- | 'name'
259
- | 'slug'
260
- | 'channel'
261
- | 'address'
262
- | 'startsAt'
263
- | 'image'
264
- | 'legalAgeRequired'
265
- | 'timezone'
266
- | 'externalAnalytics'
267
- >;
405
+ event: OrderEventProps;
268
406
  payment?: PaymentProps;
269
407
  buyer?: BuyerProps;
270
408
  coupon?: { usedAmount: number; coupon: Pick<CouponProps, 'id' | 'code'> };
271
409
  expiresAt: string;
272
410
  createdAt?: string;
273
411
  venue?: OrderVenue;
412
+ stoneTransactions?: unknown[];
413
+ };
414
+
415
+ type CreatedOrderEventProps = Pick<
416
+ EventProps,
417
+ 'id' | 'name' | 'startsAt'
418
+ >;
419
+
420
+ type CreatedOrderGroupProps = Pick<GroupProps, 'id' | 'name'> & {
421
+ gauge?: Pick<GaugeProps, 'totalAmount' | 'usedAmount' | 'id'> | null;
422
+ };
423
+
424
+ type CreatedOrderItemTicketProps = Pick<
425
+ TicketProps,
426
+ 'id' | 'name' | 'type' | 'price'
427
+ > & {
428
+ group: CreatedOrderGroupProps | null;
429
+ };
430
+
431
+ type CreatedOrderItemProps = Pick<OrderItemProps, 'id' | 'amount'> & {
432
+ ticket: CreatedOrderItemTicketProps;
433
+ };
434
+
435
+ type CreatedOrderOrderProps = Pick<
436
+ OrderProps,
437
+ 'id' | 'rawPrice' | 'totalPrice' | 'totalFee' | 'totalDiscount'
438
+ > & {
439
+ utmSource: string | null;
440
+ utmCampaign: string | null;
441
+ buyer: BuyerProps | null;
442
+ event: CreatedOrderEventProps;
443
+ items: CreatedOrderItemProps[];
444
+ info: Record<string, unknown>;
274
445
  };
275
446
 
276
447
  type CreatedOrderProps = {
277
- order: Pick<
278
- OrderProps,
279
- 'id' | 'expiresAt' | 'totalDiscount' | 'totalFee' | 'totalPrice'
280
- >;
281
- clientSecret?: string;
448
+ type: 'success';
449
+ order: CreatedOrderOrderProps;
450
+ clientSecret: string;
282
451
  };
283
452
 
284
453
  type CreateOrderTicketProps = {
@@ -297,51 +466,43 @@ type CreateOrderProps = {
297
466
  buyer?: BuyerProps;
298
467
  };
299
468
 
300
- type NominationProps = {
301
- name: string;
302
- document: string | null;
303
- };
304
-
305
- type EventWithChannelProps = {
306
- channel: Pick<ChannelProps, 'slug' | 'name'>;
307
- } & Pick<
469
+ type UserTicketEventProps = Pick<
308
470
  EventProps,
309
- 'id' | 'name' | 'slug' | 'startsAt' | 'timezone' | 'address' | 'image'
310
- >;
311
-
312
- type TicketWithEventPops = {
313
- event: EventWithChannelProps;
314
- } & TicketProps;
315
-
316
- type UserTicketProps = {
317
- id: string;
318
- slug: string;
319
- qrCodeDataUrl: string;
320
- ticket: TicketWithEventPops;
321
- nomination?: Pick<NominationProps, 'name' | 'document'>;
322
- seatId?: string;
323
- usedAt?: string | null;
324
- isInvite: boolean;
325
- ownerEmail: string;
471
+ | 'id'
472
+ | 'name'
473
+ | 'slug'
474
+ | 'startsAt'
475
+ | 'opensAt'
476
+ | 'timezone'
477
+ | 'address'
478
+ | 'image'
479
+ > & {
480
+ channel: Pick<ChannelProps, 'id' | 'name' | 'slug'>;
326
481
  };
327
482
 
328
- type OrderItemTicketProps = Pick<
483
+ type UserTicketItemTicketProps = Pick<
329
484
  TicketProps,
330
- 'id' | 'type' | 'name' | 'image' | 'price' | 'nominable' | 'beginsAt'
485
+ 'type' | 'name' | 'transferable' | 'image' | 'group'
331
486
  > & {
332
- group: Pick<GroupProps, 'id' | 'name'> | null;
487
+ beginsAt?: string | null;
488
+ event: UserTicketEventProps;
333
489
  };
334
490
 
335
- type OrderItemProps = {
491
+ type UserTicketProps = {
336
492
  id: string;
337
- amount: number;
338
- seatIds: string[];
339
- nominations: NominationProps[];
340
- ticket: OrderItemTicketProps;
493
+ slug: string;
494
+ qrCodeDataUrl: string;
495
+ ticket: UserTicketItemTicketProps;
496
+ nomination?: Pick<NominationProps, 'name' | 'document'> | null;
497
+ seatId?: string | null;
498
+ usedAt?: string | null;
499
+ isInvite?: boolean;
500
+ ownerEmail?: string;
341
501
  };
342
502
 
343
503
  type OrderWithCreditCardProps = {
344
504
  paymentMethod: 'CREDIT_CARD';
505
+ creditCard?: { firstSixDigits: string };
345
506
  };
346
507
 
347
508
  type OrderWithPixProps = {
@@ -385,6 +546,7 @@ type ThreeDSProps = {
385
546
 
386
547
  type PaymentIntentProps = {
387
548
  id: string;
549
+ externalId?: string;
388
550
  status: PaymentIntentStatus;
389
551
  failureReason?: FailureReasonProps;
390
552
  threeDS?: ThreeDSProps;
@@ -404,11 +566,6 @@ type GetOrderProps = {
404
566
  paymentIntent?: PaymentIntentProps;
405
567
  };
406
568
 
407
- type GetPlatformFeeProps = {
408
- channelId?: string;
409
- eventId?: string;
410
- };
411
-
412
569
  type BaseFeeProps = {
413
570
  fee: number;
414
571
  minFeeAmount: number;
@@ -418,7 +575,7 @@ type BaseFeeProps = {
418
575
  type ProcessingFeeProps = {
419
576
  fixedFee: number;
420
577
  percentageFee: number;
421
- lessThan: number;
578
+ lessThan?: number;
422
579
  };
423
580
 
424
581
  type PlatformFeeProps = BaseFeeProps & {
@@ -449,20 +606,50 @@ type UpdateUserTicketProps = {
449
606
  nomination?: NominationProps;
450
607
  };
451
608
 
452
- type GetUserEventsProps = {
453
- events: EventProps[];
609
+ type GetUserEventsProps = Pick<
610
+ EventProps,
611
+ | 'id'
612
+ | 'slug'
613
+ | 'name'
614
+ | 'description'
615
+ | 'status'
616
+ | 'startsAt'
617
+ | 'endsAt'
618
+ | 'opensAt'
619
+ | 'timezone'
620
+ | 'canceledAt'
621
+ | 'address'
622
+ | 'image'
623
+ > & {
624
+ channel: Pick<ChannelProps, 'id' | 'name' | 'slug' | 'avatar'>;
625
+ };
626
+
627
+ type UserOrderItemEventProps = Pick<
628
+ EventProps,
629
+ 'name' | 'startsAt' | 'endsAt'
630
+ > & {
631
+ channel: Pick<ChannelProps, 'id' | 'name' | 'avatar'>;
632
+ };
633
+
634
+ type UserOrderItemGroupProps = Pick<GroupProps, 'name' | 'id'>;
635
+
636
+ type UserOrderItemTicketProps = Pick<TicketProps, 'name' | 'id'> & {
637
+ group: UserOrderItemGroupProps | null;
638
+ event: UserOrderItemEventProps;
454
639
  };
455
640
 
456
641
  type UserOrderItemProps = {
457
642
  id: string;
458
643
  amount: number;
459
- ticket: Pick<TicketProps, 'id' | 'name' | 'group'>;
644
+ ticket: UserOrderItemTicketProps;
460
645
  };
461
646
 
462
647
  type UserOrderProps = Pick<
463
648
  OrderProps,
464
- 'id' | 'status' | 'rawPrice' | 'totalPrice' | 'createdAt' | 'totalFee'
465
- > & { items: UserOrderItemProps[] };
649
+ 'id' | 'status' | 'totalPrice' | 'createdAt' | 'totalFee' | 'totalInsurance'
650
+ > & {
651
+ items: UserOrderItemProps[];
652
+ };
466
653
 
467
654
  type GetUserOrdersProps = {
468
655
  orders: UserOrderProps[];
@@ -475,39 +662,23 @@ type UserProps = {
475
662
  phoneNumber?: string | null;
476
663
  document?: string | null;
477
664
  birthdate?: string | null;
665
+ role?: string;
666
+ avatar?: Pick<FileProps, 'url'> | null;
478
667
  avatarId?: string | null;
479
668
  createdAt?: string;
480
669
  updatedAt?: string;
481
670
  };
482
671
 
483
- type CreateUserProps = {
484
- name: string;
485
- email: string;
486
- password: string;
487
- phoneNumber?: string;
488
- document?: string;
489
- birthdate?: string;
490
- };
491
-
492
- type UpdateUserProps = {
493
- name?: string;
494
- phoneNumber?: string;
495
- document?: string;
496
- birthdate?: string;
497
- avatarId?: string;
498
- };
499
-
500
- type UpdateUserEmailProps = {
501
- email: string;
502
- };
503
-
504
- type UpdateUserPasswordProps = {
505
- currentPassword: string;
506
- newPassword: string;
507
- };
508
-
509
- type FindUserEventTicketsProps = {
510
- userTickets: UserTicketProps[];
511
- };
672
+ type GetMeUserProps = Pick<
673
+ UserProps,
674
+ | 'id'
675
+ | 'name'
676
+ | 'email'
677
+ | 'document'
678
+ | 'phoneNumber'
679
+ | 'birthdate'
680
+ | 'role'
681
+ | 'avatar'
682
+ >;
512
683
 
513
- export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CouponsListProps, CreateEventReminderProps, CreateOrderProps, CreateOrderTicketProps, CreateTicketFileProps, CreateUserProps, CreatedOrderProps, EventContact, EventProductProps, EventProps, ExternalAnalyticsProps, FileProps, FindEventProductsProps, FindEventTicketsProps, FindEventsParams, FindEventsProps, FindUserEventTicketsProps, GaugeProps, GetChannelEventProps, GetChannelEventsProps, GetOrderProps, GetPlatformFeeProps, GetUserEventsProps, GetUserOrdersProps, GroupProps, NominationProps, OrderItemProps, OrderItemTicketProps, OrderProps, PaymentIntentProps, PlatformFeeProps, TicketFileOutput, TicketProps, TransferTicketProps, TransferTicketRecipientProps, UpdateUserEmailProps, UpdateUserPasswordProps, UpdateUserProps, UpdateUserTicketProps, UserOrderItemProps, UserOrderProps, UserProps, UserTicketProps };
684
+ export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CreateEventReminderProps, CreateOrderProps, CreateOrderTicketProps, CreateTicketFileProps, CreatedOrderEventProps, CreatedOrderGroupProps, CreatedOrderItemProps, CreatedOrderItemTicketProps, CreatedOrderOrderProps, CreatedOrderProps, EventContact, EventProps, EventReviewStats, ExternalAnalyticsProps, FileProps, FindEventItemProps, FindEventProductEventProps, FindEventProductItemProps, FindEventProductsProps, FindEventTagItemProps, FindEventTicketGroupProps, FindEventTicketItemProps, FindEventTicketsEventProps, FindEventTicketsProps, FindEventsParams, FindEventsProps, GaugeProps, GetChannelEventProps, GetChannelEventsProps, GetMeUserProps, GetOrderProps, 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
@@ -17,8 +17,8 @@ type AddressProps = {
17
17
  type CategoryProps = {
18
18
  id: string;
19
19
  name: string;
20
- description: string | null;
21
- iconUrl: string | null;
20
+ description: string;
21
+ iconUrl: string;
22
22
  };
23
23
 
24
24
  type FileProps = {
@@ -42,10 +42,26 @@ type ChannelProps = {
42
42
  eventsCount?: number;
43
43
  };
44
44
 
45
+ type TagProps = {
46
+ id: string;
47
+ name: string;
48
+ displayName: string;
49
+ description: string | null;
50
+ emoji: string | null;
51
+ parentId: string | null;
52
+ parent?: {
53
+ id: string;
54
+ name: string;
55
+ description: string | null;
56
+ emoji: string | null;
57
+ } | null;
58
+ children?: TagProps[];
59
+ };
60
+
45
61
  type EventContact = {
46
- email?: string;
47
- phoneNumber?: string;
48
- instagramUsername?: string;
62
+ email?: string | null;
63
+ phoneNumber?: string | null;
64
+ instagramUsername?: string | null;
49
65
  };
50
66
 
51
67
  type ExternalAnalyticsProps = {
@@ -53,22 +69,11 @@ type ExternalAnalyticsProps = {
53
69
  value: string;
54
70
  };
55
71
 
56
- type EventStatus = 'PUBLISHED' | 'PRIVATE' | 'HIDDEN' | 'DRAFT';
57
-
58
- type EventChildProps = {
59
- id: string;
60
- name: string;
61
- startsAt: string;
62
- timezone: string;
63
- isSeatAssigned: boolean;
64
- };
72
+ type EventType = 'DRAFT' | 'PUBLISHED' | 'PRIVATE';
65
73
 
66
- type EventTagProps = {
67
- id: string;
68
- name: string;
69
- description: string | null;
70
- emoji: string | null;
71
- parentId: string | null;
74
+ type EventReviewStats = {
75
+ averageRating: number | null;
76
+ totalReviews: number;
72
77
  };
73
78
 
74
79
  type EventProps = {
@@ -76,27 +81,33 @@ type EventProps = {
76
81
  slug: string;
77
82
  channelId?: string;
78
83
  name: string;
79
- description: string | null;
80
- status: EventStatus;
84
+ isSeatAssigned: boolean;
85
+ description: Record<string, any>[];
86
+ status: EventType;
81
87
  createdAt?: string;
82
88
  startsAt: string;
83
- endsAt: string | null;
84
- presaleStartsAt: string | null;
89
+ endsAt: string;
90
+ opensAt?: string | null;
91
+ presaleStartsAt?: string | null;
85
92
  timezone: string;
86
93
  canceledAt: string | null;
87
- legalAgeRequired?: number | null;
88
- isSeatAssigned?: boolean;
94
+ address?: AddressProps | null;
89
95
  image: FileProps | null;
90
- address: AddressProps | null;
96
+ legalAgeRequired: boolean;
97
+ contact?: EventContact;
98
+ categories: CategoryProps[];
99
+ tags?: TagProps[];
100
+ hasTicketInsurance?: boolean;
91
101
  channel: Pick<
92
102
  ChannelProps,
93
- 'id' | 'name' | 'slug' | 'avatar' | 'eventsCount'
103
+ 'id' | 'name' | 'avatar' | 'slug' | 'eventsCount'
94
104
  >;
95
- categories: CategoryProps[];
96
- tags?: EventTagProps[];
97
- contact?: EventContact | null;
98
- externalAnalytics?: ExternalAnalyticsProps[] | null;
99
- children?: EventChildProps[];
105
+ externalAnalytics: ExternalAnalyticsProps[] | null;
106
+ children: Pick<
107
+ EventProps,
108
+ 'id' | 'startsAt' | 'timezone' | 'isSeatAssigned'
109
+ >[];
110
+ reviewStats?: EventReviewStats | null;
100
111
  };
101
112
 
102
113
  type GetChannelEventProps = {
@@ -107,29 +118,26 @@ type GetChannelEventsProps = {
107
118
  events: EventProps[];
108
119
  };
109
120
 
121
+ type CheckCouponProps = {
122
+ eventId: string;
123
+ couponCode: string;
124
+ };
125
+
110
126
  type CouponProps = {
111
127
  id: string;
112
128
  type: 'FIXED' | 'PERCENTAGE';
113
129
  code: string;
114
130
  value: number;
115
- expiresAt: string;
131
+ expiresAt: string | null;
116
132
  amount: number | null;
117
133
  availableAmount: number | null;
118
134
  ticketIds: string[];
119
135
  };
120
136
 
121
- type CheckCouponProps = {
122
- eventId: string;
123
- couponCode: string;
124
- };
125
-
126
- type CouponsListProps = {
127
- coupons: CouponProps[];
128
- cursor?: string;
129
- };
130
-
131
137
  type CreateEventReminderProps = {
132
138
  email: string;
139
+ name: string;
140
+ phoneNumber: string;
133
141
  };
134
142
 
135
143
  type GaugeProps = {
@@ -142,6 +150,37 @@ type ChartCategoryProps = {
142
150
  name: string;
143
151
  };
144
152
 
153
+ type GroupProps = {
154
+ id: string;
155
+ name: string;
156
+ description?: string;
157
+ scanStartsAt?: string | null;
158
+ scanEndsAt?: string | null;
159
+ tickets: TicketProps[];
160
+ gauge: Pick<GaugeProps, 'totalAmount' | 'usedAmount'> | null;
161
+ defaultOpen: boolean;
162
+ orderAt: number;
163
+ maxBuyAmount?: number;
164
+ };
165
+
166
+ type TicketCustomFieldType =
167
+ | 'TEXT'
168
+ | 'NUMBER'
169
+ | 'BOOLEAN'
170
+ | 'DATE'
171
+ | 'SELECT'
172
+ | 'MULTI_SELECT'
173
+ | 'FILE';
174
+
175
+ type TicketCustomField = {
176
+ id: string;
177
+ name: string;
178
+ defaultValue?: string;
179
+ isRequired: boolean;
180
+ options?: string[];
181
+ type: TicketCustomFieldType;
182
+ };
183
+
145
184
  type TicketVisibility = 'PUBLIC' | 'PRIVATE' | 'DRAFT';
146
185
 
147
186
  type TicketType = 'TICKET' | 'PRODUCT';
@@ -156,7 +195,7 @@ type TicketProps = {
156
195
  description?: string;
157
196
  amount: number;
158
197
  visibility: TicketVisibility;
159
- privateToken?: string;
198
+ privateToken?: string | null;
160
199
  image: (FileProps & { id: string }) | null;
161
200
  amount: number;
162
201
  availableAmount: number;
@@ -166,45 +205,70 @@ type TicketProps = {
166
205
  isInvite: boolean;
167
206
  startsAt?: string;
168
207
  endsAt?: string;
169
- minBuy?: number;
170
- maxBuy?: number;
208
+ minBuy?: number | null;
209
+ maxBuy?: number | null;
171
210
  beginsAt?: string;
172
211
  predecessor?: Pick<TicketProps, 'id' | 'name' | 'group'>;
173
212
  expireBehavior?: 'VISIBLE' | 'HIDDEN';
174
213
  orderAt: number;
214
+ customFields?: TicketCustomField[];
175
215
  };
176
216
 
177
- type GroupProps = {
178
- id: string;
179
- name: string;
180
- description?: string;
181
- scanStartsAt?: string | null;
182
- scanEndsAt?: string | null;
183
- tickets: TicketProps[];
184
- gauge: Pick<GaugeProps, 'totalAmount' | 'usedAmount'> | null;
185
- defaultOpen: boolean;
186
- orderAt: number;
187
- maxBuyAmount?: number;
217
+ type FindEventProductEventProps = Pick<
218
+ EventProps,
219
+ 'id' | 'endsAt' | 'presaleStartsAt'
220
+ > & {
221
+ gauge: GaugeProps | null;
222
+ maxBuyAmount: number | null;
188
223
  };
189
224
 
190
- type EventProductProps = {
191
- id: string;
192
- maxBuyAmount?: number;
193
- };
225
+ type FindEventProductItemProps = Pick<
226
+ TicketProps,
227
+ | 'id'
228
+ | 'name'
229
+ | 'description'
230
+ | 'amount'
231
+ | 'availableAmount'
232
+ | 'endsAt'
233
+ | 'price'
234
+ | 'image'
235
+ | 'privateToken'
236
+ | 'minBuy'
237
+ | 'maxBuy'
238
+ >;
194
239
 
195
240
  type FindEventProductsProps = {
196
- event: EventProductProps;
197
- products: TicketProps[];
241
+ event: FindEventProductEventProps;
242
+ products: FindEventProductItemProps[];
198
243
  };
199
244
 
200
- type FindEventTicketsProps = {
201
- event: EventProductProps;
202
- tickets: TicketProps[];
203
- groups: GroupProps[];
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[];
204
268
  };
205
269
 
206
270
  type FindEventsProps = {
207
- events: EventProps[];
271
+ events: FindEventItemProps[];
208
272
  cursor?: string;
209
273
  };
210
274
 
@@ -219,6 +283,46 @@ type FindEventsParams = {
219
283
  categoryIds?: string[];
220
284
  };
221
285
 
286
+ type FindEventTicketsEventProps = Pick<
287
+ EventProps,
288
+ 'id' | 'startsAt' | 'endsAt' | 'presaleStartsAt'
289
+ > & {
290
+ maxBuyAmount: number | null;
291
+ };
292
+
293
+ type FindEventTicketItemProps = Pick<
294
+ TicketProps,
295
+ | 'id'
296
+ | 'type'
297
+ | 'groupId'
298
+ | 'name'
299
+ | 'description'
300
+ | 'amount'
301
+ | 'availableAmount'
302
+ | 'endsAt'
303
+ | 'price'
304
+ | 'orderAt'
305
+ | 'expireBehavior'
306
+ | 'image'
307
+ | 'chartCategory'
308
+ | 'privateToken'
309
+ | 'minBuy'
310
+ | 'maxBuy'
311
+ >;
312
+
313
+ type FindEventTicketGroupProps = Pick<
314
+ GroupProps,
315
+ 'id' | 'name' | 'description' | 'defaultOpen' | 'orderAt' | 'maxBuyAmount'
316
+ > & {
317
+ tickets: FindEventTicketItemProps[];
318
+ };
319
+
320
+ type FindEventTicketsProps = {
321
+ event: FindEventTicketsEventProps;
322
+ tickets: FindEventTicketItemProps[];
323
+ groups: FindEventTicketGroupProps[];
324
+ };
325
+
222
326
  type BuyerProps = {
223
327
  name: string;
224
328
  email: string;
@@ -228,6 +332,33 @@ type BuyerProps = {
228
332
  birthdate?: string | null;
229
333
  };
230
334
 
335
+ type NominationProps = {
336
+ name: string;
337
+ document: string | null;
338
+ };
339
+
340
+ type OrderItemTicketProps = Pick<
341
+ TicketProps,
342
+ | 'id'
343
+ | 'type'
344
+ | 'name'
345
+ | 'image'
346
+ | 'price'
347
+ | 'nominable'
348
+ | 'beginsAt'
349
+ | 'customFields'
350
+ > & {
351
+ group: Pick<GroupProps, 'id' | 'name'> | null;
352
+ };
353
+
354
+ type OrderItemProps = {
355
+ id: string;
356
+ amount: number;
357
+ seatIds: string[];
358
+ nominations: NominationProps[];
359
+ ticket: OrderItemTicketProps;
360
+ };
361
+
231
362
  type OrderStatus =
232
363
  | 'PENDING'
233
364
  | 'PAID'
@@ -242,6 +373,23 @@ type PaymentProps = {
242
373
  type: 'PIX' | 'CREDIT_CARD';
243
374
  };
244
375
 
376
+ type OrderEventProps = Pick<
377
+ EventProps,
378
+ | 'id'
379
+ | 'name'
380
+ | 'slug'
381
+ | 'legalAgeRequired'
382
+ | 'hasTicketInsurance'
383
+ | 'startsAt'
384
+ | 'opensAt'
385
+ | 'timezone'
386
+ | 'image'
387
+ | 'address'
388
+ | 'externalAnalytics'
389
+ > & {
390
+ channel: Pick<ChannelProps, 'id' | 'slug'>;
391
+ };
392
+
245
393
  type OrderProps = {
246
394
  id: string;
247
395
  status: OrderStatus;
@@ -251,34 +399,55 @@ type OrderProps = {
251
399
  totalDiscount: number;
252
400
  totalRefund?: number;
253
401
  totalCreditCardFee?: number;
402
+ totalInsurance?: number;
403
+ processingFee?: number;
254
404
  eventId: string;
255
- event: Pick<
256
- EventProps,
257
- | 'id'
258
- | 'name'
259
- | 'slug'
260
- | 'channel'
261
- | 'address'
262
- | 'startsAt'
263
- | 'image'
264
- | 'legalAgeRequired'
265
- | 'timezone'
266
- | 'externalAnalytics'
267
- >;
405
+ event: OrderEventProps;
268
406
  payment?: PaymentProps;
269
407
  buyer?: BuyerProps;
270
408
  coupon?: { usedAmount: number; coupon: Pick<CouponProps, 'id' | 'code'> };
271
409
  expiresAt: string;
272
410
  createdAt?: string;
273
411
  venue?: OrderVenue;
412
+ stoneTransactions?: unknown[];
413
+ };
414
+
415
+ type CreatedOrderEventProps = Pick<
416
+ EventProps,
417
+ 'id' | 'name' | 'startsAt'
418
+ >;
419
+
420
+ type CreatedOrderGroupProps = Pick<GroupProps, 'id' | 'name'> & {
421
+ gauge?: Pick<GaugeProps, 'totalAmount' | 'usedAmount' | 'id'> | null;
422
+ };
423
+
424
+ type CreatedOrderItemTicketProps = Pick<
425
+ TicketProps,
426
+ 'id' | 'name' | 'type' | 'price'
427
+ > & {
428
+ group: CreatedOrderGroupProps | null;
429
+ };
430
+
431
+ type CreatedOrderItemProps = Pick<OrderItemProps, 'id' | 'amount'> & {
432
+ ticket: CreatedOrderItemTicketProps;
433
+ };
434
+
435
+ type CreatedOrderOrderProps = Pick<
436
+ OrderProps,
437
+ 'id' | 'rawPrice' | 'totalPrice' | 'totalFee' | 'totalDiscount'
438
+ > & {
439
+ utmSource: string | null;
440
+ utmCampaign: string | null;
441
+ buyer: BuyerProps | null;
442
+ event: CreatedOrderEventProps;
443
+ items: CreatedOrderItemProps[];
444
+ info: Record<string, unknown>;
274
445
  };
275
446
 
276
447
  type CreatedOrderProps = {
277
- order: Pick<
278
- OrderProps,
279
- 'id' | 'expiresAt' | 'totalDiscount' | 'totalFee' | 'totalPrice'
280
- >;
281
- clientSecret?: string;
448
+ type: 'success';
449
+ order: CreatedOrderOrderProps;
450
+ clientSecret: string;
282
451
  };
283
452
 
284
453
  type CreateOrderTicketProps = {
@@ -297,51 +466,43 @@ type CreateOrderProps = {
297
466
  buyer?: BuyerProps;
298
467
  };
299
468
 
300
- type NominationProps = {
301
- name: string;
302
- document: string | null;
303
- };
304
-
305
- type EventWithChannelProps = {
306
- channel: Pick<ChannelProps, 'slug' | 'name'>;
307
- } & Pick<
469
+ type UserTicketEventProps = Pick<
308
470
  EventProps,
309
- 'id' | 'name' | 'slug' | 'startsAt' | 'timezone' | 'address' | 'image'
310
- >;
311
-
312
- type TicketWithEventPops = {
313
- event: EventWithChannelProps;
314
- } & TicketProps;
315
-
316
- type UserTicketProps = {
317
- id: string;
318
- slug: string;
319
- qrCodeDataUrl: string;
320
- ticket: TicketWithEventPops;
321
- nomination?: Pick<NominationProps, 'name' | 'document'>;
322
- seatId?: string;
323
- usedAt?: string | null;
324
- isInvite: boolean;
325
- ownerEmail: string;
471
+ | 'id'
472
+ | 'name'
473
+ | 'slug'
474
+ | 'startsAt'
475
+ | 'opensAt'
476
+ | 'timezone'
477
+ | 'address'
478
+ | 'image'
479
+ > & {
480
+ channel: Pick<ChannelProps, 'id' | 'name' | 'slug'>;
326
481
  };
327
482
 
328
- type OrderItemTicketProps = Pick<
483
+ type UserTicketItemTicketProps = Pick<
329
484
  TicketProps,
330
- 'id' | 'type' | 'name' | 'image' | 'price' | 'nominable' | 'beginsAt'
485
+ 'type' | 'name' | 'transferable' | 'image' | 'group'
331
486
  > & {
332
- group: Pick<GroupProps, 'id' | 'name'> | null;
487
+ beginsAt?: string | null;
488
+ event: UserTicketEventProps;
333
489
  };
334
490
 
335
- type OrderItemProps = {
491
+ type UserTicketProps = {
336
492
  id: string;
337
- amount: number;
338
- seatIds: string[];
339
- nominations: NominationProps[];
340
- ticket: OrderItemTicketProps;
493
+ slug: string;
494
+ qrCodeDataUrl: string;
495
+ ticket: UserTicketItemTicketProps;
496
+ nomination?: Pick<NominationProps, 'name' | 'document'> | null;
497
+ seatId?: string | null;
498
+ usedAt?: string | null;
499
+ isInvite?: boolean;
500
+ ownerEmail?: string;
341
501
  };
342
502
 
343
503
  type OrderWithCreditCardProps = {
344
504
  paymentMethod: 'CREDIT_CARD';
505
+ creditCard?: { firstSixDigits: string };
345
506
  };
346
507
 
347
508
  type OrderWithPixProps = {
@@ -385,6 +546,7 @@ type ThreeDSProps = {
385
546
 
386
547
  type PaymentIntentProps = {
387
548
  id: string;
549
+ externalId?: string;
388
550
  status: PaymentIntentStatus;
389
551
  failureReason?: FailureReasonProps;
390
552
  threeDS?: ThreeDSProps;
@@ -404,11 +566,6 @@ type GetOrderProps = {
404
566
  paymentIntent?: PaymentIntentProps;
405
567
  };
406
568
 
407
- type GetPlatformFeeProps = {
408
- channelId?: string;
409
- eventId?: string;
410
- };
411
-
412
569
  type BaseFeeProps = {
413
570
  fee: number;
414
571
  minFeeAmount: number;
@@ -418,7 +575,7 @@ type BaseFeeProps = {
418
575
  type ProcessingFeeProps = {
419
576
  fixedFee: number;
420
577
  percentageFee: number;
421
- lessThan: number;
578
+ lessThan?: number;
422
579
  };
423
580
 
424
581
  type PlatformFeeProps = BaseFeeProps & {
@@ -449,20 +606,50 @@ type UpdateUserTicketProps = {
449
606
  nomination?: NominationProps;
450
607
  };
451
608
 
452
- type GetUserEventsProps = {
453
- events: EventProps[];
609
+ type GetUserEventsProps = Pick<
610
+ EventProps,
611
+ | 'id'
612
+ | 'slug'
613
+ | 'name'
614
+ | 'description'
615
+ | 'status'
616
+ | 'startsAt'
617
+ | 'endsAt'
618
+ | 'opensAt'
619
+ | 'timezone'
620
+ | 'canceledAt'
621
+ | 'address'
622
+ | 'image'
623
+ > & {
624
+ channel: Pick<ChannelProps, 'id' | 'name' | 'slug' | 'avatar'>;
625
+ };
626
+
627
+ type UserOrderItemEventProps = Pick<
628
+ EventProps,
629
+ 'name' | 'startsAt' | 'endsAt'
630
+ > & {
631
+ channel: Pick<ChannelProps, 'id' | 'name' | 'avatar'>;
632
+ };
633
+
634
+ type UserOrderItemGroupProps = Pick<GroupProps, 'name' | 'id'>;
635
+
636
+ type UserOrderItemTicketProps = Pick<TicketProps, 'name' | 'id'> & {
637
+ group: UserOrderItemGroupProps | null;
638
+ event: UserOrderItemEventProps;
454
639
  };
455
640
 
456
641
  type UserOrderItemProps = {
457
642
  id: string;
458
643
  amount: number;
459
- ticket: Pick<TicketProps, 'id' | 'name' | 'group'>;
644
+ ticket: UserOrderItemTicketProps;
460
645
  };
461
646
 
462
647
  type UserOrderProps = Pick<
463
648
  OrderProps,
464
- 'id' | 'status' | 'rawPrice' | 'totalPrice' | 'createdAt' | 'totalFee'
465
- > & { items: UserOrderItemProps[] };
649
+ 'id' | 'status' | 'totalPrice' | 'createdAt' | 'totalFee' | 'totalInsurance'
650
+ > & {
651
+ items: UserOrderItemProps[];
652
+ };
466
653
 
467
654
  type GetUserOrdersProps = {
468
655
  orders: UserOrderProps[];
@@ -475,39 +662,23 @@ type UserProps = {
475
662
  phoneNumber?: string | null;
476
663
  document?: string | null;
477
664
  birthdate?: string | null;
665
+ role?: string;
666
+ avatar?: Pick<FileProps, 'url'> | null;
478
667
  avatarId?: string | null;
479
668
  createdAt?: string;
480
669
  updatedAt?: string;
481
670
  };
482
671
 
483
- type CreateUserProps = {
484
- name: string;
485
- email: string;
486
- password: string;
487
- phoneNumber?: string;
488
- document?: string;
489
- birthdate?: string;
490
- };
491
-
492
- type UpdateUserProps = {
493
- name?: string;
494
- phoneNumber?: string;
495
- document?: string;
496
- birthdate?: string;
497
- avatarId?: string;
498
- };
499
-
500
- type UpdateUserEmailProps = {
501
- email: string;
502
- };
503
-
504
- type UpdateUserPasswordProps = {
505
- currentPassword: string;
506
- newPassword: string;
507
- };
508
-
509
- type FindUserEventTicketsProps = {
510
- userTickets: UserTicketProps[];
511
- };
672
+ type GetMeUserProps = Pick<
673
+ UserProps,
674
+ | 'id'
675
+ | 'name'
676
+ | 'email'
677
+ | 'document'
678
+ | 'phoneNumber'
679
+ | 'birthdate'
680
+ | 'role'
681
+ | 'avatar'
682
+ >;
512
683
 
513
- export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CouponsListProps, CreateEventReminderProps, CreateOrderProps, CreateOrderTicketProps, CreateTicketFileProps, CreateUserProps, CreatedOrderProps, EventContact, EventProductProps, EventProps, ExternalAnalyticsProps, FileProps, FindEventProductsProps, FindEventTicketsProps, FindEventsParams, FindEventsProps, FindUserEventTicketsProps, GaugeProps, GetChannelEventProps, GetChannelEventsProps, GetOrderProps, GetPlatformFeeProps, GetUserEventsProps, GetUserOrdersProps, GroupProps, NominationProps, OrderItemProps, OrderItemTicketProps, OrderProps, PaymentIntentProps, PlatformFeeProps, TicketFileOutput, TicketProps, TransferTicketProps, TransferTicketRecipientProps, UpdateUserEmailProps, UpdateUserPasswordProps, UpdateUserProps, UpdateUserTicketProps, UserOrderItemProps, UserOrderProps, UserProps, UserTicketProps };
684
+ export type { AddressProps, BuyerProps, CategoryProps, ChannelProps, ChartCategoryProps, CheckCouponProps, CouponProps, CreateEventReminderProps, CreateOrderProps, CreateOrderTicketProps, CreateTicketFileProps, CreatedOrderEventProps, CreatedOrderGroupProps, CreatedOrderItemProps, CreatedOrderItemTicketProps, CreatedOrderOrderProps, CreatedOrderProps, EventContact, EventProps, EventReviewStats, ExternalAnalyticsProps, FileProps, FindEventItemProps, FindEventProductEventProps, FindEventProductItemProps, FindEventProductsProps, FindEventTagItemProps, FindEventTicketGroupProps, FindEventTicketItemProps, FindEventTicketsEventProps, FindEventTicketsProps, FindEventsParams, FindEventsProps, GaugeProps, GetChannelEventProps, GetChannelEventsProps, GetMeUserProps, GetOrderProps, 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.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './dto/address';\nexport * from './dto/category';\nexport * from './dto/channel';\nexport * from './dto/coupon';\nexport * from './dto/event';\nexport * from './dto/file';\nexport * from './dto/gauge';\nexport * from './dto/order';\nexport * from './dto/payment';\nexport * from './dto/ticket';\nexport * from './dto/user';\nexport * from './dto/user-ticket';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './dto/address';\nexport * from './dto/category';\nexport * from './dto/channel';\nexport * from './dto/coupon';\nexport * from './dto/event';\nexport * from './dto/file';\nexport * from './dto/gauge';\nexport * from './dto/order';\nexport * from './dto/payment';\nexport * from './dto/tag';\nexport * from './dto/ticket';\nexport * from './dto/user';\nexport * from './dto/user-ticket';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meaple-com/types",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "TypeScript types for Meaple SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",