@meaple-com/types 1.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/dist/index.d.mts +489 -0
- package/dist/index.d.ts +489 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +31 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
type AddressProps = {
|
|
2
|
+
name?: string | null;
|
|
3
|
+
street?: string | null;
|
|
4
|
+
number?: string | null;
|
|
5
|
+
neighborhood?: string | null;
|
|
6
|
+
city?: string | null;
|
|
7
|
+
state?: string | null;
|
|
8
|
+
country?: string | null;
|
|
9
|
+
zipCode?: string | null;
|
|
10
|
+
longitude?: number | null;
|
|
11
|
+
latitude?: number | null;
|
|
12
|
+
formatted?: string | null;
|
|
13
|
+
googlePlaceId?: string | null;
|
|
14
|
+
timezone?: string | null;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type CategoryProps = {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string | null;
|
|
21
|
+
iconUrl: string | null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type FileProps = {
|
|
25
|
+
id?: string | null;
|
|
26
|
+
url: string;
|
|
27
|
+
base64?: string | null;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type SocialProps = {
|
|
31
|
+
type: 'FACEBOOK' | 'INSTAGRAM' | 'GITHUB' | 'TWITTER' | 'LINKEDIN';
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
type ChannelProps = {
|
|
36
|
+
id: string;
|
|
37
|
+
slug: string;
|
|
38
|
+
name: string;
|
|
39
|
+
description: string | null;
|
|
40
|
+
avatar: FileProps | null;
|
|
41
|
+
socials?: SocialProps[];
|
|
42
|
+
eventsCount?: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
type EventContact = {
|
|
46
|
+
email?: string;
|
|
47
|
+
phoneNumber?: string;
|
|
48
|
+
instagramUsername?: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
type ExternalAnalyticsProps = {
|
|
52
|
+
key: string;
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
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
|
+
};
|
|
65
|
+
|
|
66
|
+
type EventTagProps = {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
description: string | null;
|
|
70
|
+
emoji: string | null;
|
|
71
|
+
parentId: string | null;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
type EventProps = {
|
|
75
|
+
id: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
channelId?: string;
|
|
78
|
+
name: string;
|
|
79
|
+
description: string | null;
|
|
80
|
+
status: EventStatus;
|
|
81
|
+
createdAt?: string;
|
|
82
|
+
startsAt: string;
|
|
83
|
+
endsAt: string | null;
|
|
84
|
+
presaleStartsAt: string | null;
|
|
85
|
+
timezone: string;
|
|
86
|
+
canceledAt: string | null;
|
|
87
|
+
legalAgeRequired?: number | null;
|
|
88
|
+
isSeatAssigned?: boolean;
|
|
89
|
+
image: FileProps | null;
|
|
90
|
+
address: AddressProps | null;
|
|
91
|
+
channel: Pick<
|
|
92
|
+
ChannelProps,
|
|
93
|
+
'id' | 'name' | 'slug' | 'avatar' | 'eventsCount'
|
|
94
|
+
>;
|
|
95
|
+
categories: CategoryProps[];
|
|
96
|
+
tags?: EventTagProps[];
|
|
97
|
+
contact?: EventContact | null;
|
|
98
|
+
externalAnalytics?: ExternalAnalyticsProps[] | null;
|
|
99
|
+
children?: EventChildProps[];
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
type GetChannelEventProps = {
|
|
103
|
+
event: EventProps;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
type GetChannelEventsProps = {
|
|
107
|
+
events: EventProps[];
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
type CouponProps = {
|
|
111
|
+
id: string;
|
|
112
|
+
type: 'FIXED' | 'PERCENTAGE';
|
|
113
|
+
code: string;
|
|
114
|
+
value: number;
|
|
115
|
+
expiresAt: string;
|
|
116
|
+
amount: number | null;
|
|
117
|
+
availableAmount: number | null;
|
|
118
|
+
ticketIds: string[];
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
type CheckCouponProps = {
|
|
122
|
+
eventId: string;
|
|
123
|
+
couponCode: string;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
type CouponsListProps = {
|
|
127
|
+
coupons: CouponProps[];
|
|
128
|
+
cursor?: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
type CreateEventReminderProps = {
|
|
132
|
+
email: string;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
type GaugeProps = {
|
|
136
|
+
totalAmount: number;
|
|
137
|
+
usedAmount: number;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
type ChartCategoryProps = {
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
type TicketVisibility = 'PUBLIC' | 'PRIVATE' | 'DRAFT';
|
|
146
|
+
|
|
147
|
+
type TicketType = 'TICKET' | 'PRODUCT';
|
|
148
|
+
|
|
149
|
+
type TicketProps = {
|
|
150
|
+
id: string;
|
|
151
|
+
type: TicketType;
|
|
152
|
+
groupId?: string;
|
|
153
|
+
group?: Pick<GroupProps, 'id' | 'name'>;
|
|
154
|
+
chartCategory?: ChartCategoryProps;
|
|
155
|
+
name: string;
|
|
156
|
+
description?: string;
|
|
157
|
+
amount: number;
|
|
158
|
+
visibility: TicketVisibility;
|
|
159
|
+
privateToken?: string;
|
|
160
|
+
image: (FileProps & { id: string }) | null;
|
|
161
|
+
amount: number;
|
|
162
|
+
availableAmount: number;
|
|
163
|
+
price: number;
|
|
164
|
+
transferable: boolean;
|
|
165
|
+
nominable: boolean;
|
|
166
|
+
isInvite: boolean;
|
|
167
|
+
startsAt?: string;
|
|
168
|
+
endsAt?: string;
|
|
169
|
+
minBuy?: number;
|
|
170
|
+
maxBuy?: number;
|
|
171
|
+
beginsAt?: string;
|
|
172
|
+
predecessor?: Pick<TicketProps, 'id' | 'name' | 'group'>;
|
|
173
|
+
expireBehavior?: 'VISIBLE' | 'HIDDEN';
|
|
174
|
+
orderAt: number;
|
|
175
|
+
};
|
|
176
|
+
|
|
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;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
type EventProductProps = {
|
|
191
|
+
id: string;
|
|
192
|
+
maxBuyAmount?: number;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
type FindEventProductsProps = {
|
|
196
|
+
event: EventProductProps;
|
|
197
|
+
products: TicketProps[];
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
type FindEventTicketsProps = {
|
|
201
|
+
event: EventProductProps;
|
|
202
|
+
tickets: TicketProps[];
|
|
203
|
+
groups: GroupProps[];
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
type FindEventsProps = {
|
|
207
|
+
events: EventProps[];
|
|
208
|
+
cursor?: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
type FindEventsParams = {
|
|
212
|
+
orderBy?: 'START_DATE' | 'END_DATE' | 'MAX_PRICE' | 'MIN_PRICE';
|
|
213
|
+
channelSlugs?: string[];
|
|
214
|
+
limit?: number;
|
|
215
|
+
cursor?: string;
|
|
216
|
+
q?: string;
|
|
217
|
+
enabled?: boolean;
|
|
218
|
+
priority?: number;
|
|
219
|
+
categoryIds?: string[];
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
type BuyerProps = {
|
|
223
|
+
name: string;
|
|
224
|
+
email: string;
|
|
225
|
+
document?: string | null;
|
|
226
|
+
documentType?: string | null;
|
|
227
|
+
phoneNumber?: string | null;
|
|
228
|
+
birthdate?: string | null;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type OrderStatus =
|
|
232
|
+
| 'PENDING'
|
|
233
|
+
| 'PAID'
|
|
234
|
+
| 'CANCELED'
|
|
235
|
+
| 'REFUNDED'
|
|
236
|
+
| 'PROCESSING';
|
|
237
|
+
|
|
238
|
+
type OrderVenue = 'ONLINE' | 'PHYSICAL';
|
|
239
|
+
|
|
240
|
+
type PaymentProps = {
|
|
241
|
+
installments: number;
|
|
242
|
+
type: 'PIX' | 'CREDIT_CARD';
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
type OrderProps = {
|
|
246
|
+
id: string;
|
|
247
|
+
status: OrderStatus;
|
|
248
|
+
rawPrice: number;
|
|
249
|
+
totalPrice: number;
|
|
250
|
+
totalFee: number;
|
|
251
|
+
totalDiscount: number;
|
|
252
|
+
totalRefund?: number;
|
|
253
|
+
totalCreditCardFee?: number;
|
|
254
|
+
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
|
+
>;
|
|
268
|
+
payment?: PaymentProps;
|
|
269
|
+
buyer?: BuyerProps;
|
|
270
|
+
coupon?: { usedAmount: number; coupon: Pick<CouponProps, 'id' | 'code'> };
|
|
271
|
+
expiresAt: string;
|
|
272
|
+
createdAt?: string;
|
|
273
|
+
venue?: OrderVenue;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
type CreatedOrderProps = {
|
|
277
|
+
order: Pick<
|
|
278
|
+
OrderProps,
|
|
279
|
+
'id' | 'expiresAt' | 'totalDiscount' | 'totalFee' | 'totalPrice'
|
|
280
|
+
>;
|
|
281
|
+
clientSecret?: string;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
type CreateOrderTicketProps = {
|
|
285
|
+
id: string;
|
|
286
|
+
amount: number;
|
|
287
|
+
seatIds?: string[];
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
type CreateOrderProps = {
|
|
291
|
+
eventId: string;
|
|
292
|
+
tickets: CreateOrderTicketProps[];
|
|
293
|
+
couponId?: string;
|
|
294
|
+
utmSource?: string;
|
|
295
|
+
utmCampaign?: string;
|
|
296
|
+
middlewareData?: Record<string, unknown>;
|
|
297
|
+
buyer?: BuyerProps;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
type NominationProps = {
|
|
301
|
+
name: string;
|
|
302
|
+
document: string | null;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
type EventWithChannelProps = {
|
|
306
|
+
channel: Pick<ChannelProps, 'slug' | 'name'>;
|
|
307
|
+
} & Pick<
|
|
308
|
+
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;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
type OrderItemTicketProps = Pick<
|
|
329
|
+
TicketProps,
|
|
330
|
+
'id' | 'type' | 'name' | 'image' | 'price' | 'nominable' | 'beginsAt'
|
|
331
|
+
> & {
|
|
332
|
+
group: Pick<GroupProps, 'id' | 'name'> | null;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
type OrderItemProps = {
|
|
336
|
+
id: string;
|
|
337
|
+
amount: number;
|
|
338
|
+
seatIds: string[];
|
|
339
|
+
nominations: NominationProps[];
|
|
340
|
+
ticket: OrderItemTicketProps;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
type OrderWithCreditCardProps = {
|
|
344
|
+
paymentMethod: 'CREDIT_CARD';
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
type OrderWithPixProps = {
|
|
348
|
+
paymentMethod: 'PIX';
|
|
349
|
+
pix: { qrCodeUrl: string; qrCode: string };
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
type OrderWithBankSlipProps = {
|
|
353
|
+
paymentMethod: 'BANK_SLIP';
|
|
354
|
+
bankSlip: { externalUrl: string; barcode: string };
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
type FreeOrderProps = {
|
|
358
|
+
paymentMethod: 'FREE_OF_CHARGE';
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type PaymentIntentStatus =
|
|
362
|
+
| 'CANCELED'
|
|
363
|
+
| 'SUCCEEDED'
|
|
364
|
+
| 'PROCESSING'
|
|
365
|
+
| 'FAILED'
|
|
366
|
+
| 'REFUNDED'
|
|
367
|
+
| 'PENDING';
|
|
368
|
+
|
|
369
|
+
type FailureReasonProps =
|
|
370
|
+
| 'CC_REJECTED_BAD_FILLED_CARD_NUMBER'
|
|
371
|
+
| 'CC_REJECTED_BAD_FILLED_DATE'
|
|
372
|
+
| 'CC_REJECTED_BAD_FILLED_SECURITY_CODE'
|
|
373
|
+
| 'CC_REJECTED_BLACKLIST'
|
|
374
|
+
| 'CC_REJECTED_CARD_DISABLED'
|
|
375
|
+
| 'CC_REJECTED_DUPLICATED_PAYMENT'
|
|
376
|
+
| 'CC_REJECTED_HIGH_RISK'
|
|
377
|
+
| 'CC_REJECTED_INSUFFICIENT_AMOUNT'
|
|
378
|
+
| 'CC_REJECTED_MAX_ATTEMPTS'
|
|
379
|
+
| 'CC_REJECTED_3DS_CHALLENGE';
|
|
380
|
+
|
|
381
|
+
type ThreeDSProps = {
|
|
382
|
+
url: string;
|
|
383
|
+
token: string;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
type PaymentIntentProps = {
|
|
387
|
+
id: string;
|
|
388
|
+
status: PaymentIntentStatus;
|
|
389
|
+
failureReason?: FailureReasonProps;
|
|
390
|
+
threeDS?: ThreeDSProps;
|
|
391
|
+
} & (
|
|
392
|
+
| OrderWithCreditCardProps
|
|
393
|
+
| OrderWithPixProps
|
|
394
|
+
| FreeOrderProps
|
|
395
|
+
| OrderWithBankSlipProps
|
|
396
|
+
);
|
|
397
|
+
|
|
398
|
+
type GetOrderProps = {
|
|
399
|
+
order: OrderProps & {
|
|
400
|
+
items: OrderItemProps[];
|
|
401
|
+
userTickets: UserTicketProps[];
|
|
402
|
+
};
|
|
403
|
+
paidTickets: UserTicketProps[];
|
|
404
|
+
paymentIntent?: PaymentIntentProps;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
type TicketFileOutput = 'PNG' | 'PDF';
|
|
408
|
+
|
|
409
|
+
type CreateTicketFileProps = {
|
|
410
|
+
eventId: string;
|
|
411
|
+
output?: TicketFileOutput;
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
type TransferTicketRecipientProps = {
|
|
415
|
+
email: string;
|
|
416
|
+
name: string;
|
|
417
|
+
document: string;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
type TransferTicketProps = {
|
|
421
|
+
to: TransferTicketRecipientProps;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
type UpdateUserTicketProps = {
|
|
425
|
+
nomination?: NominationProps;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
type GetUserEventsProps = {
|
|
429
|
+
events: EventProps[];
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
type UserOrderItemProps = {
|
|
433
|
+
id: string;
|
|
434
|
+
amount: number;
|
|
435
|
+
ticket: Pick<TicketProps, 'id' | 'name' | 'group'>;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
type UserOrderProps = Pick<
|
|
439
|
+
OrderProps,
|
|
440
|
+
'id' | 'status' | 'rawPrice' | 'totalPrice' | 'createdAt' | 'totalFee'
|
|
441
|
+
> & { items: UserOrderItemProps[] };
|
|
442
|
+
|
|
443
|
+
type GetUserOrdersProps = {
|
|
444
|
+
orders: UserOrderProps[];
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
type UserProps = {
|
|
448
|
+
id: string;
|
|
449
|
+
name: string;
|
|
450
|
+
email: string;
|
|
451
|
+
phoneNumber?: string | null;
|
|
452
|
+
document?: string | null;
|
|
453
|
+
birthdate?: string | null;
|
|
454
|
+
avatarId?: string | null;
|
|
455
|
+
createdAt?: string;
|
|
456
|
+
updatedAt?: string;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
type CreateUserProps = {
|
|
460
|
+
name: string;
|
|
461
|
+
email: string;
|
|
462
|
+
password: string;
|
|
463
|
+
phoneNumber?: string;
|
|
464
|
+
document?: string;
|
|
465
|
+
birthdate?: string;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
type UpdateUserProps = {
|
|
469
|
+
name?: string;
|
|
470
|
+
phoneNumber?: string;
|
|
471
|
+
document?: string;
|
|
472
|
+
birthdate?: string;
|
|
473
|
+
avatarId?: string;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
type UpdateUserEmailProps = {
|
|
477
|
+
email: string;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
type UpdateUserPasswordProps = {
|
|
481
|
+
currentPassword: string;
|
|
482
|
+
newPassword: string;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
type FindUserEventTicketsProps = {
|
|
486
|
+
userTickets: UserTicketProps[];
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
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, GetUserEventsProps, GetUserOrdersProps, GroupProps, NominationProps, OrderItemProps, OrderItemTicketProps, OrderProps, PaymentIntentProps, TicketFileOutput, TicketProps, TransferTicketProps, TransferTicketRecipientProps, UpdateUserEmailProps, UpdateUserPasswordProps, UpdateUserProps, UpdateUserTicketProps, UserOrderItemProps, UserOrderProps, UserProps, UserTicketProps };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
type AddressProps = {
|
|
2
|
+
name?: string | null;
|
|
3
|
+
street?: string | null;
|
|
4
|
+
number?: string | null;
|
|
5
|
+
neighborhood?: string | null;
|
|
6
|
+
city?: string | null;
|
|
7
|
+
state?: string | null;
|
|
8
|
+
country?: string | null;
|
|
9
|
+
zipCode?: string | null;
|
|
10
|
+
longitude?: number | null;
|
|
11
|
+
latitude?: number | null;
|
|
12
|
+
formatted?: string | null;
|
|
13
|
+
googlePlaceId?: string | null;
|
|
14
|
+
timezone?: string | null;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type CategoryProps = {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string | null;
|
|
21
|
+
iconUrl: string | null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type FileProps = {
|
|
25
|
+
id?: string | null;
|
|
26
|
+
url: string;
|
|
27
|
+
base64?: string | null;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type SocialProps = {
|
|
31
|
+
type: 'FACEBOOK' | 'INSTAGRAM' | 'GITHUB' | 'TWITTER' | 'LINKEDIN';
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
type ChannelProps = {
|
|
36
|
+
id: string;
|
|
37
|
+
slug: string;
|
|
38
|
+
name: string;
|
|
39
|
+
description: string | null;
|
|
40
|
+
avatar: FileProps | null;
|
|
41
|
+
socials?: SocialProps[];
|
|
42
|
+
eventsCount?: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
type EventContact = {
|
|
46
|
+
email?: string;
|
|
47
|
+
phoneNumber?: string;
|
|
48
|
+
instagramUsername?: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
type ExternalAnalyticsProps = {
|
|
52
|
+
key: string;
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
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
|
+
};
|
|
65
|
+
|
|
66
|
+
type EventTagProps = {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
description: string | null;
|
|
70
|
+
emoji: string | null;
|
|
71
|
+
parentId: string | null;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
type EventProps = {
|
|
75
|
+
id: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
channelId?: string;
|
|
78
|
+
name: string;
|
|
79
|
+
description: string | null;
|
|
80
|
+
status: EventStatus;
|
|
81
|
+
createdAt?: string;
|
|
82
|
+
startsAt: string;
|
|
83
|
+
endsAt: string | null;
|
|
84
|
+
presaleStartsAt: string | null;
|
|
85
|
+
timezone: string;
|
|
86
|
+
canceledAt: string | null;
|
|
87
|
+
legalAgeRequired?: number | null;
|
|
88
|
+
isSeatAssigned?: boolean;
|
|
89
|
+
image: FileProps | null;
|
|
90
|
+
address: AddressProps | null;
|
|
91
|
+
channel: Pick<
|
|
92
|
+
ChannelProps,
|
|
93
|
+
'id' | 'name' | 'slug' | 'avatar' | 'eventsCount'
|
|
94
|
+
>;
|
|
95
|
+
categories: CategoryProps[];
|
|
96
|
+
tags?: EventTagProps[];
|
|
97
|
+
contact?: EventContact | null;
|
|
98
|
+
externalAnalytics?: ExternalAnalyticsProps[] | null;
|
|
99
|
+
children?: EventChildProps[];
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
type GetChannelEventProps = {
|
|
103
|
+
event: EventProps;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
type GetChannelEventsProps = {
|
|
107
|
+
events: EventProps[];
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
type CouponProps = {
|
|
111
|
+
id: string;
|
|
112
|
+
type: 'FIXED' | 'PERCENTAGE';
|
|
113
|
+
code: string;
|
|
114
|
+
value: number;
|
|
115
|
+
expiresAt: string;
|
|
116
|
+
amount: number | null;
|
|
117
|
+
availableAmount: number | null;
|
|
118
|
+
ticketIds: string[];
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
type CheckCouponProps = {
|
|
122
|
+
eventId: string;
|
|
123
|
+
couponCode: string;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
type CouponsListProps = {
|
|
127
|
+
coupons: CouponProps[];
|
|
128
|
+
cursor?: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
type CreateEventReminderProps = {
|
|
132
|
+
email: string;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
type GaugeProps = {
|
|
136
|
+
totalAmount: number;
|
|
137
|
+
usedAmount: number;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
type ChartCategoryProps = {
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
type TicketVisibility = 'PUBLIC' | 'PRIVATE' | 'DRAFT';
|
|
146
|
+
|
|
147
|
+
type TicketType = 'TICKET' | 'PRODUCT';
|
|
148
|
+
|
|
149
|
+
type TicketProps = {
|
|
150
|
+
id: string;
|
|
151
|
+
type: TicketType;
|
|
152
|
+
groupId?: string;
|
|
153
|
+
group?: Pick<GroupProps, 'id' | 'name'>;
|
|
154
|
+
chartCategory?: ChartCategoryProps;
|
|
155
|
+
name: string;
|
|
156
|
+
description?: string;
|
|
157
|
+
amount: number;
|
|
158
|
+
visibility: TicketVisibility;
|
|
159
|
+
privateToken?: string;
|
|
160
|
+
image: (FileProps & { id: string }) | null;
|
|
161
|
+
amount: number;
|
|
162
|
+
availableAmount: number;
|
|
163
|
+
price: number;
|
|
164
|
+
transferable: boolean;
|
|
165
|
+
nominable: boolean;
|
|
166
|
+
isInvite: boolean;
|
|
167
|
+
startsAt?: string;
|
|
168
|
+
endsAt?: string;
|
|
169
|
+
minBuy?: number;
|
|
170
|
+
maxBuy?: number;
|
|
171
|
+
beginsAt?: string;
|
|
172
|
+
predecessor?: Pick<TicketProps, 'id' | 'name' | 'group'>;
|
|
173
|
+
expireBehavior?: 'VISIBLE' | 'HIDDEN';
|
|
174
|
+
orderAt: number;
|
|
175
|
+
};
|
|
176
|
+
|
|
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;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
type EventProductProps = {
|
|
191
|
+
id: string;
|
|
192
|
+
maxBuyAmount?: number;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
type FindEventProductsProps = {
|
|
196
|
+
event: EventProductProps;
|
|
197
|
+
products: TicketProps[];
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
type FindEventTicketsProps = {
|
|
201
|
+
event: EventProductProps;
|
|
202
|
+
tickets: TicketProps[];
|
|
203
|
+
groups: GroupProps[];
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
type FindEventsProps = {
|
|
207
|
+
events: EventProps[];
|
|
208
|
+
cursor?: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
type FindEventsParams = {
|
|
212
|
+
orderBy?: 'START_DATE' | 'END_DATE' | 'MAX_PRICE' | 'MIN_PRICE';
|
|
213
|
+
channelSlugs?: string[];
|
|
214
|
+
limit?: number;
|
|
215
|
+
cursor?: string;
|
|
216
|
+
q?: string;
|
|
217
|
+
enabled?: boolean;
|
|
218
|
+
priority?: number;
|
|
219
|
+
categoryIds?: string[];
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
type BuyerProps = {
|
|
223
|
+
name: string;
|
|
224
|
+
email: string;
|
|
225
|
+
document?: string | null;
|
|
226
|
+
documentType?: string | null;
|
|
227
|
+
phoneNumber?: string | null;
|
|
228
|
+
birthdate?: string | null;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type OrderStatus =
|
|
232
|
+
| 'PENDING'
|
|
233
|
+
| 'PAID'
|
|
234
|
+
| 'CANCELED'
|
|
235
|
+
| 'REFUNDED'
|
|
236
|
+
| 'PROCESSING';
|
|
237
|
+
|
|
238
|
+
type OrderVenue = 'ONLINE' | 'PHYSICAL';
|
|
239
|
+
|
|
240
|
+
type PaymentProps = {
|
|
241
|
+
installments: number;
|
|
242
|
+
type: 'PIX' | 'CREDIT_CARD';
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
type OrderProps = {
|
|
246
|
+
id: string;
|
|
247
|
+
status: OrderStatus;
|
|
248
|
+
rawPrice: number;
|
|
249
|
+
totalPrice: number;
|
|
250
|
+
totalFee: number;
|
|
251
|
+
totalDiscount: number;
|
|
252
|
+
totalRefund?: number;
|
|
253
|
+
totalCreditCardFee?: number;
|
|
254
|
+
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
|
+
>;
|
|
268
|
+
payment?: PaymentProps;
|
|
269
|
+
buyer?: BuyerProps;
|
|
270
|
+
coupon?: { usedAmount: number; coupon: Pick<CouponProps, 'id' | 'code'> };
|
|
271
|
+
expiresAt: string;
|
|
272
|
+
createdAt?: string;
|
|
273
|
+
venue?: OrderVenue;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
type CreatedOrderProps = {
|
|
277
|
+
order: Pick<
|
|
278
|
+
OrderProps,
|
|
279
|
+
'id' | 'expiresAt' | 'totalDiscount' | 'totalFee' | 'totalPrice'
|
|
280
|
+
>;
|
|
281
|
+
clientSecret?: string;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
type CreateOrderTicketProps = {
|
|
285
|
+
id: string;
|
|
286
|
+
amount: number;
|
|
287
|
+
seatIds?: string[];
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
type CreateOrderProps = {
|
|
291
|
+
eventId: string;
|
|
292
|
+
tickets: CreateOrderTicketProps[];
|
|
293
|
+
couponId?: string;
|
|
294
|
+
utmSource?: string;
|
|
295
|
+
utmCampaign?: string;
|
|
296
|
+
middlewareData?: Record<string, unknown>;
|
|
297
|
+
buyer?: BuyerProps;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
type NominationProps = {
|
|
301
|
+
name: string;
|
|
302
|
+
document: string | null;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
type EventWithChannelProps = {
|
|
306
|
+
channel: Pick<ChannelProps, 'slug' | 'name'>;
|
|
307
|
+
} & Pick<
|
|
308
|
+
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;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
type OrderItemTicketProps = Pick<
|
|
329
|
+
TicketProps,
|
|
330
|
+
'id' | 'type' | 'name' | 'image' | 'price' | 'nominable' | 'beginsAt'
|
|
331
|
+
> & {
|
|
332
|
+
group: Pick<GroupProps, 'id' | 'name'> | null;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
type OrderItemProps = {
|
|
336
|
+
id: string;
|
|
337
|
+
amount: number;
|
|
338
|
+
seatIds: string[];
|
|
339
|
+
nominations: NominationProps[];
|
|
340
|
+
ticket: OrderItemTicketProps;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
type OrderWithCreditCardProps = {
|
|
344
|
+
paymentMethod: 'CREDIT_CARD';
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
type OrderWithPixProps = {
|
|
348
|
+
paymentMethod: 'PIX';
|
|
349
|
+
pix: { qrCodeUrl: string; qrCode: string };
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
type OrderWithBankSlipProps = {
|
|
353
|
+
paymentMethod: 'BANK_SLIP';
|
|
354
|
+
bankSlip: { externalUrl: string; barcode: string };
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
type FreeOrderProps = {
|
|
358
|
+
paymentMethod: 'FREE_OF_CHARGE';
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type PaymentIntentStatus =
|
|
362
|
+
| 'CANCELED'
|
|
363
|
+
| 'SUCCEEDED'
|
|
364
|
+
| 'PROCESSING'
|
|
365
|
+
| 'FAILED'
|
|
366
|
+
| 'REFUNDED'
|
|
367
|
+
| 'PENDING';
|
|
368
|
+
|
|
369
|
+
type FailureReasonProps =
|
|
370
|
+
| 'CC_REJECTED_BAD_FILLED_CARD_NUMBER'
|
|
371
|
+
| 'CC_REJECTED_BAD_FILLED_DATE'
|
|
372
|
+
| 'CC_REJECTED_BAD_FILLED_SECURITY_CODE'
|
|
373
|
+
| 'CC_REJECTED_BLACKLIST'
|
|
374
|
+
| 'CC_REJECTED_CARD_DISABLED'
|
|
375
|
+
| 'CC_REJECTED_DUPLICATED_PAYMENT'
|
|
376
|
+
| 'CC_REJECTED_HIGH_RISK'
|
|
377
|
+
| 'CC_REJECTED_INSUFFICIENT_AMOUNT'
|
|
378
|
+
| 'CC_REJECTED_MAX_ATTEMPTS'
|
|
379
|
+
| 'CC_REJECTED_3DS_CHALLENGE';
|
|
380
|
+
|
|
381
|
+
type ThreeDSProps = {
|
|
382
|
+
url: string;
|
|
383
|
+
token: string;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
type PaymentIntentProps = {
|
|
387
|
+
id: string;
|
|
388
|
+
status: PaymentIntentStatus;
|
|
389
|
+
failureReason?: FailureReasonProps;
|
|
390
|
+
threeDS?: ThreeDSProps;
|
|
391
|
+
} & (
|
|
392
|
+
| OrderWithCreditCardProps
|
|
393
|
+
| OrderWithPixProps
|
|
394
|
+
| FreeOrderProps
|
|
395
|
+
| OrderWithBankSlipProps
|
|
396
|
+
);
|
|
397
|
+
|
|
398
|
+
type GetOrderProps = {
|
|
399
|
+
order: OrderProps & {
|
|
400
|
+
items: OrderItemProps[];
|
|
401
|
+
userTickets: UserTicketProps[];
|
|
402
|
+
};
|
|
403
|
+
paidTickets: UserTicketProps[];
|
|
404
|
+
paymentIntent?: PaymentIntentProps;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
type TicketFileOutput = 'PNG' | 'PDF';
|
|
408
|
+
|
|
409
|
+
type CreateTicketFileProps = {
|
|
410
|
+
eventId: string;
|
|
411
|
+
output?: TicketFileOutput;
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
type TransferTicketRecipientProps = {
|
|
415
|
+
email: string;
|
|
416
|
+
name: string;
|
|
417
|
+
document: string;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
type TransferTicketProps = {
|
|
421
|
+
to: TransferTicketRecipientProps;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
type UpdateUserTicketProps = {
|
|
425
|
+
nomination?: NominationProps;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
type GetUserEventsProps = {
|
|
429
|
+
events: EventProps[];
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
type UserOrderItemProps = {
|
|
433
|
+
id: string;
|
|
434
|
+
amount: number;
|
|
435
|
+
ticket: Pick<TicketProps, 'id' | 'name' | 'group'>;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
type UserOrderProps = Pick<
|
|
439
|
+
OrderProps,
|
|
440
|
+
'id' | 'status' | 'rawPrice' | 'totalPrice' | 'createdAt' | 'totalFee'
|
|
441
|
+
> & { items: UserOrderItemProps[] };
|
|
442
|
+
|
|
443
|
+
type GetUserOrdersProps = {
|
|
444
|
+
orders: UserOrderProps[];
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
type UserProps = {
|
|
448
|
+
id: string;
|
|
449
|
+
name: string;
|
|
450
|
+
email: string;
|
|
451
|
+
phoneNumber?: string | null;
|
|
452
|
+
document?: string | null;
|
|
453
|
+
birthdate?: string | null;
|
|
454
|
+
avatarId?: string | null;
|
|
455
|
+
createdAt?: string;
|
|
456
|
+
updatedAt?: string;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
type CreateUserProps = {
|
|
460
|
+
name: string;
|
|
461
|
+
email: string;
|
|
462
|
+
password: string;
|
|
463
|
+
phoneNumber?: string;
|
|
464
|
+
document?: string;
|
|
465
|
+
birthdate?: string;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
type UpdateUserProps = {
|
|
469
|
+
name?: string;
|
|
470
|
+
phoneNumber?: string;
|
|
471
|
+
document?: string;
|
|
472
|
+
birthdate?: string;
|
|
473
|
+
avatarId?: string;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
type UpdateUserEmailProps = {
|
|
477
|
+
email: string;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
type UpdateUserPasswordProps = {
|
|
481
|
+
currentPassword: string;
|
|
482
|
+
newPassword: string;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
type FindUserEventTicketsProps = {
|
|
486
|
+
userTickets: UserTicketProps[];
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
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, GetUserEventsProps, GetUserOrdersProps, GroupProps, NominationProps, OrderItemProps, OrderItemTicketProps, OrderProps, PaymentIntentProps, TicketFileOutput, TicketProps, TransferTicketProps, TransferTicketRecipientProps, UpdateUserEmailProps, UpdateUserPasswordProps, UpdateUserProps, UpdateUserTicketProps, UserOrderItemProps, UserOrderProps, UserProps, UserTicketProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var index_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(index_exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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/ticket';\nexport * from './dto/user';\nexport * from './dto/user-ticket';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@meaple-com/types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "TypeScript types for Meaple SDK",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsup",
|
|
14
|
+
"build:packages": "tsup",
|
|
15
|
+
"dev": "tsup --watch",
|
|
16
|
+
"lint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
17
|
+
"lint:fix": "eslint --fix \"src/**/*.{ts,tsx}\"",
|
|
18
|
+
"clean": "rimraf dist"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"tsup": "^8.0.0",
|
|
22
|
+
"typescript": "^5.0.0",
|
|
23
|
+
"eslint": "^8.56.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
25
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
26
|
+
"rimraf": "^5.0.5"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
]
|
|
31
|
+
}
|