expo-backend-types 0.40.0-EXPO-330-ExpoBackend-MercadoPago.8 → 0.40.0-EXPO-327-EB-Escanear-entrada.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/src/exports.d.ts +0 -1
- package/dist/src/exports.js +0 -1
- package/dist/src/i18n/es.d.ts +2 -23
- package/dist/src/i18n/es.js +2 -23
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/ticket/constants.js +4 -4
- package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +377 -99
- package/dist/src/ticket/dto/create-many-ticket.dto.js +10 -3
- package/dist/src/ticket/dto/scan-ticket.dto.d.ts +92 -12
- package/dist/src/ticket/dto/scan-ticket.dto.js +4 -4
- package/dist/src/ticket-group/exports.d.ts +0 -1
- package/dist/src/ticket-group/exports.js +0 -1
- package/dist/types/schema.d.ts +42 -275
- package/package.json +1 -2
- package/dist/src/mercadopago/dto/create-preference-mercadopago.dto.d.ts +0 -112
- package/dist/src/mercadopago/dto/create-preference-mercadopago.dto.js +0 -34
- package/dist/src/mercadopago/dto/webhook-mercadopago.dto.d.ts +0 -102
- package/dist/src/mercadopago/dto/webhook-mercadopago.dto.js +0 -31
- package/dist/src/mercadopago/exports.d.ts +0 -2
- package/dist/src/mercadopago/exports.js +0 -19
- package/dist/src/ticket/dto/get-pdfs-by-group-ticket.dto.d.ts +0 -124
- package/dist/src/ticket/dto/get-pdfs-by-group-ticket.dto.js +0 -22
- package/dist/src/ticket-group/dto/find-group-ticket-group.dto.d.ts +0 -55
- package/dist/src/ticket-group/dto/find-group-ticket-group.dto.js +0 -10
package/dist/types/schema.d.ts
CHANGED
@@ -991,22 +991,6 @@ export interface paths {
|
|
991
991
|
patch?: never;
|
992
992
|
trace?: never;
|
993
993
|
};
|
994
|
-
"/ticket/get-pdfs-by-ticket-group/{ticketGroupId}": {
|
995
|
-
parameters: {
|
996
|
-
query?: never;
|
997
|
-
header?: never;
|
998
|
-
path?: never;
|
999
|
-
cookie?: never;
|
1000
|
-
};
|
1001
|
-
get: operations["TicketController_getPdfsByTicketGroup"];
|
1002
|
-
put?: never;
|
1003
|
-
post?: never;
|
1004
|
-
delete?: never;
|
1005
|
-
options?: never;
|
1006
|
-
head?: never;
|
1007
|
-
patch?: never;
|
1008
|
-
trace?: never;
|
1009
|
-
};
|
1010
994
|
"/ticket/all": {
|
1011
995
|
parameters: {
|
1012
996
|
query?: never;
|
@@ -1215,22 +1199,6 @@ export interface paths {
|
|
1215
1199
|
patch?: never;
|
1216
1200
|
trace?: never;
|
1217
1201
|
};
|
1218
|
-
"/ticket-group/find-group/{id}": {
|
1219
|
-
parameters: {
|
1220
|
-
query?: never;
|
1221
|
-
header?: never;
|
1222
|
-
path?: never;
|
1223
|
-
cookie?: never;
|
1224
|
-
};
|
1225
|
-
get: operations["TicketGroupController_findGroup"];
|
1226
|
-
put?: never;
|
1227
|
-
post?: never;
|
1228
|
-
delete?: never;
|
1229
|
-
options?: never;
|
1230
|
-
head?: never;
|
1231
|
-
patch?: never;
|
1232
|
-
trace?: never;
|
1233
|
-
};
|
1234
1202
|
"/ticket-group/update/{id}": {
|
1235
1203
|
parameters: {
|
1236
1204
|
query?: never;
|
@@ -1391,38 +1359,6 @@ export interface paths {
|
|
1391
1359
|
patch?: never;
|
1392
1360
|
trace?: never;
|
1393
1361
|
};
|
1394
|
-
"/mercadopago/create-preference": {
|
1395
|
-
parameters: {
|
1396
|
-
query?: never;
|
1397
|
-
header?: never;
|
1398
|
-
path?: never;
|
1399
|
-
cookie?: never;
|
1400
|
-
};
|
1401
|
-
get?: never;
|
1402
|
-
put?: never;
|
1403
|
-
post: operations["MercadoPagoController_createPreference"];
|
1404
|
-
delete?: never;
|
1405
|
-
options?: never;
|
1406
|
-
head?: never;
|
1407
|
-
patch?: never;
|
1408
|
-
trace?: never;
|
1409
|
-
};
|
1410
|
-
"/mercadopago/webhook": {
|
1411
|
-
parameters: {
|
1412
|
-
query?: never;
|
1413
|
-
header?: never;
|
1414
|
-
path?: never;
|
1415
|
-
cookie?: never;
|
1416
|
-
};
|
1417
|
-
get?: never;
|
1418
|
-
put?: never;
|
1419
|
-
post: operations["MercadoPagoController_webhook"];
|
1420
|
-
delete?: never;
|
1421
|
-
options?: never;
|
1422
|
-
head?: never;
|
1423
|
-
patch?: never;
|
1424
|
-
trace?: never;
|
1425
|
-
};
|
1426
1362
|
}
|
1427
1363
|
export type webhooks = Record<string, never>;
|
1428
1364
|
export interface components {
|
@@ -2933,36 +2869,36 @@ export interface components {
|
|
2933
2869
|
profileId?: string;
|
2934
2870
|
}[];
|
2935
2871
|
};
|
2936
|
-
|
2937
|
-
|
2938
|
-
eventId: string;
|
2939
|
-
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
2940
|
-
fullName: string;
|
2941
|
-
mail: string;
|
2942
|
-
dni: string;
|
2943
|
-
seat: number | null;
|
2944
|
-
scanned: boolean;
|
2945
|
-
scannedAt: string | null;
|
2946
|
-
ticketGroupId: string | null;
|
2947
|
-
created_at: string;
|
2948
|
-
updated_at: string;
|
2949
|
-
event: {
|
2872
|
+
CreateManyTicketWithPdfsResponseDto: {
|
2873
|
+
tickets: {
|
2950
2874
|
id: string;
|
2951
|
-
|
2952
|
-
|
2953
|
-
|
2954
|
-
|
2955
|
-
|
2956
|
-
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2960
|
-
supraEventId: string | null;
|
2875
|
+
eventId: string;
|
2876
|
+
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
2877
|
+
fullName: string;
|
2878
|
+
mail: string;
|
2879
|
+
dni: string;
|
2880
|
+
seat: number | null;
|
2881
|
+
scanned: boolean;
|
2882
|
+
scannedAt: string | null;
|
2883
|
+
ticketGroupId: string | null;
|
2961
2884
|
created_at: string;
|
2962
2885
|
updated_at: string;
|
2963
|
-
|
2964
|
-
|
2965
|
-
|
2886
|
+
event: {
|
2887
|
+
id: string;
|
2888
|
+
name: string;
|
2889
|
+
date: string;
|
2890
|
+
startingDate: string;
|
2891
|
+
endingDate: string;
|
2892
|
+
location: string;
|
2893
|
+
folderId: string | null;
|
2894
|
+
tagAssistedId: string;
|
2895
|
+
tagConfirmedId: string;
|
2896
|
+
active: boolean;
|
2897
|
+
supraEventId: string | null;
|
2898
|
+
created_at: string;
|
2899
|
+
updated_at: string;
|
2900
|
+
};
|
2901
|
+
}[];
|
2966
2902
|
pdfs: {
|
2967
2903
|
ticketId: string;
|
2968
2904
|
pdfBase64: string;
|
@@ -3222,10 +3158,22 @@ export interface components {
|
|
3222
3158
|
updated_at: string;
|
3223
3159
|
};
|
3224
3160
|
ScanTicketDto: {
|
3225
|
-
|
3161
|
+
type: "id" | "barcode";
|
3162
|
+
value: string;
|
3226
3163
|
};
|
3227
3164
|
ScanTicketResponseDto: {
|
3228
|
-
|
3165
|
+
id: string;
|
3166
|
+
eventId: string;
|
3167
|
+
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
3168
|
+
fullName: string;
|
3169
|
+
mail: string;
|
3170
|
+
dni: string;
|
3171
|
+
seat: number | null;
|
3172
|
+
scanned: boolean;
|
3173
|
+
scannedAt: string | null;
|
3174
|
+
ticketGroupId: string | null;
|
3175
|
+
created_at: string;
|
3176
|
+
updated_at: string;
|
3229
3177
|
};
|
3230
3178
|
SendEmailResponseDto: {
|
3231
3179
|
mailId: string;
|
@@ -3275,14 +3223,6 @@ export interface components {
|
|
3275
3223
|
FindTicketsByEventDto: {
|
3276
3224
|
tickets: number;
|
3277
3225
|
};
|
3278
|
-
FindGroupTicketGroupDto: {
|
3279
|
-
id: string;
|
3280
|
-
amountTickets: number;
|
3281
|
-
status: "BOOKED" | "PAID" | "FREE";
|
3282
|
-
eventId: string;
|
3283
|
-
created_at: string;
|
3284
|
-
updated_at: string;
|
3285
|
-
};
|
3286
3226
|
UpdateTicketGroupDto: {
|
3287
3227
|
status?: "BOOKED" | "PAID" | "FREE";
|
3288
3228
|
};
|
@@ -3515,32 +3455,6 @@ export interface components {
|
|
3515
3455
|
expiresIn: number;
|
3516
3456
|
};
|
3517
3457
|
};
|
3518
|
-
CreatePreferenceDto: {
|
3519
|
-
items: {
|
3520
|
-
id: string;
|
3521
|
-
title: string;
|
3522
|
-
quantity: number;
|
3523
|
-
unit_price: number;
|
3524
|
-
}[];
|
3525
|
-
ticket_group_id: string;
|
3526
|
-
};
|
3527
|
-
CreatePreferenceResponseDto: {
|
3528
|
-
id: string;
|
3529
|
-
init_point: string;
|
3530
|
-
};
|
3531
|
-
WebhookDto: {
|
3532
|
-
data: {
|
3533
|
-
id: string;
|
3534
|
-
};
|
3535
|
-
action: string;
|
3536
|
-
api_version: string;
|
3537
|
-
date_created: string;
|
3538
|
-
id: string;
|
3539
|
-
live_mode: boolean;
|
3540
|
-
type: string;
|
3541
|
-
user_id: number;
|
3542
|
-
};
|
3543
|
-
Response: Record<string, never>;
|
3544
3458
|
};
|
3545
3459
|
responses: never;
|
3546
3460
|
parameters: never;
|
@@ -5524,44 +5438,7 @@ export interface operations {
|
|
5524
5438
|
[name: string]: unknown;
|
5525
5439
|
};
|
5526
5440
|
content: {
|
5527
|
-
"application/json": components["schemas"]["
|
5528
|
-
};
|
5529
|
-
};
|
5530
|
-
404: {
|
5531
|
-
headers: {
|
5532
|
-
[name: string]: unknown;
|
5533
|
-
};
|
5534
|
-
content: {
|
5535
|
-
"application/json": components["schemas"]["ErrorDto"];
|
5536
|
-
};
|
5537
|
-
};
|
5538
|
-
409: {
|
5539
|
-
headers: {
|
5540
|
-
[name: string]: unknown;
|
5541
|
-
};
|
5542
|
-
content: {
|
5543
|
-
"application/json": components["schemas"]["ErrorDto"];
|
5544
|
-
};
|
5545
|
-
};
|
5546
|
-
};
|
5547
|
-
};
|
5548
|
-
TicketController_getPdfsByTicketGroup: {
|
5549
|
-
parameters: {
|
5550
|
-
query?: never;
|
5551
|
-
header?: never;
|
5552
|
-
path: {
|
5553
|
-
ticketGroupId: string;
|
5554
|
-
};
|
5555
|
-
cookie?: never;
|
5556
|
-
};
|
5557
|
-
requestBody?: never;
|
5558
|
-
responses: {
|
5559
|
-
200: {
|
5560
|
-
headers: {
|
5561
|
-
[name: string]: unknown;
|
5562
|
-
};
|
5563
|
-
content: {
|
5564
|
-
"application/json": components["schemas"]["GetPdfsByTicketGroupResponseDto"];
|
5441
|
+
"application/json": components["schemas"]["CreateManyTicketWithPdfsResponseDto"];
|
5565
5442
|
};
|
5566
5443
|
};
|
5567
5444
|
404: {
|
@@ -5989,43 +5866,6 @@ export interface operations {
|
|
5989
5866
|
};
|
5990
5867
|
};
|
5991
5868
|
};
|
5992
|
-
TicketGroupController_findGroup: {
|
5993
|
-
parameters: {
|
5994
|
-
query?: never;
|
5995
|
-
header?: never;
|
5996
|
-
path: {
|
5997
|
-
id: string;
|
5998
|
-
};
|
5999
|
-
cookie?: never;
|
6000
|
-
};
|
6001
|
-
requestBody?: never;
|
6002
|
-
responses: {
|
6003
|
-
200: {
|
6004
|
-
headers: {
|
6005
|
-
[name: string]: unknown;
|
6006
|
-
};
|
6007
|
-
content: {
|
6008
|
-
"application/json": components["schemas"]["FindGroupTicketGroupDto"];
|
6009
|
-
};
|
6010
|
-
};
|
6011
|
-
404: {
|
6012
|
-
headers: {
|
6013
|
-
[name: string]: unknown;
|
6014
|
-
};
|
6015
|
-
content: {
|
6016
|
-
"application/json": components["schemas"]["ErrorDto"];
|
6017
|
-
};
|
6018
|
-
};
|
6019
|
-
409: {
|
6020
|
-
headers: {
|
6021
|
-
[name: string]: unknown;
|
6022
|
-
};
|
6023
|
-
content: {
|
6024
|
-
"application/json": components["schemas"]["ErrorDto"];
|
6025
|
-
};
|
6026
|
-
};
|
6027
|
-
};
|
6028
|
-
};
|
6029
5869
|
TicketGroupController_update: {
|
6030
5870
|
parameters: {
|
6031
5871
|
query?: never;
|
@@ -6362,77 +6202,4 @@ export interface operations {
|
|
6362
6202
|
};
|
6363
6203
|
};
|
6364
6204
|
};
|
6365
|
-
MercadoPagoController_createPreference: {
|
6366
|
-
parameters: {
|
6367
|
-
query?: never;
|
6368
|
-
header?: never;
|
6369
|
-
path?: never;
|
6370
|
-
cookie?: never;
|
6371
|
-
};
|
6372
|
-
requestBody: {
|
6373
|
-
content: {
|
6374
|
-
"application/json": components["schemas"]["CreatePreferenceDto"];
|
6375
|
-
};
|
6376
|
-
};
|
6377
|
-
responses: {
|
6378
|
-
200: {
|
6379
|
-
headers: {
|
6380
|
-
[name: string]: unknown;
|
6381
|
-
};
|
6382
|
-
content: {
|
6383
|
-
"application/json": components["schemas"]["CreatePreferenceResponseDto"];
|
6384
|
-
};
|
6385
|
-
};
|
6386
|
-
404: {
|
6387
|
-
headers: {
|
6388
|
-
[name: string]: unknown;
|
6389
|
-
};
|
6390
|
-
content: {
|
6391
|
-
"application/json": components["schemas"]["ErrorDto"];
|
6392
|
-
};
|
6393
|
-
};
|
6394
|
-
409: {
|
6395
|
-
headers: {
|
6396
|
-
[name: string]: unknown;
|
6397
|
-
};
|
6398
|
-
content: {
|
6399
|
-
"application/json": components["schemas"]["ErrorDto"];
|
6400
|
-
};
|
6401
|
-
};
|
6402
|
-
};
|
6403
|
-
};
|
6404
|
-
MercadoPagoController_webhook: {
|
6405
|
-
parameters: {
|
6406
|
-
query?: never;
|
6407
|
-
header: {
|
6408
|
-
"x-signature": string;
|
6409
|
-
"x-request-id": string;
|
6410
|
-
};
|
6411
|
-
path?: never;
|
6412
|
-
cookie?: never;
|
6413
|
-
};
|
6414
|
-
requestBody: {
|
6415
|
-
content: {
|
6416
|
-
"application/json": components["schemas"]["WebhookDto"];
|
6417
|
-
};
|
6418
|
-
};
|
6419
|
-
responses: {
|
6420
|
-
200: {
|
6421
|
-
headers: {
|
6422
|
-
[name: string]: unknown;
|
6423
|
-
};
|
6424
|
-
content: {
|
6425
|
-
"application/json": components["schemas"]["Response"];
|
6426
|
-
};
|
6427
|
-
};
|
6428
|
-
409: {
|
6429
|
-
headers: {
|
6430
|
-
[name: string]: unknown;
|
6431
|
-
};
|
6432
|
-
content: {
|
6433
|
-
"application/json": components["schemas"]["ErrorDto"];
|
6434
|
-
};
|
6435
|
-
};
|
6436
|
-
};
|
6437
|
-
};
|
6438
6205
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.40.0-EXPO-
|
3
|
+
"version": "0.40.0-EXPO-327-EB-Escanear-entrada.5",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -37,7 +37,6 @@
|
|
37
37
|
"@anatine/zod-openapi": "^2.2.6",
|
38
38
|
"i18n-js": "^4.4.3",
|
39
39
|
"libphonenumber-js": "^1.12.6",
|
40
|
-
"mercadopago": "^2.4.0",
|
41
40
|
"patch-package": "^8.0.0",
|
42
41
|
"zod": "^3.23.8"
|
43
42
|
},
|
@@ -1,112 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const createPreferenceSchema: z.ZodObject<{
|
3
|
-
items: z.ZodArray<z.ZodObject<{
|
4
|
-
id: z.ZodString;
|
5
|
-
title: z.ZodString;
|
6
|
-
quantity: z.ZodNumber;
|
7
|
-
unit_price: z.ZodNumber;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
id: string;
|
10
|
-
title: string;
|
11
|
-
quantity: number;
|
12
|
-
unit_price: number;
|
13
|
-
}, {
|
14
|
-
id: string;
|
15
|
-
title: string;
|
16
|
-
quantity: number;
|
17
|
-
unit_price: number;
|
18
|
-
}>, "many">;
|
19
|
-
ticket_group_id: z.ZodString;
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
21
|
-
items: {
|
22
|
-
id: string;
|
23
|
-
title: string;
|
24
|
-
quantity: number;
|
25
|
-
unit_price: number;
|
26
|
-
}[];
|
27
|
-
ticket_group_id: string;
|
28
|
-
}, {
|
29
|
-
items: {
|
30
|
-
id: string;
|
31
|
-
title: string;
|
32
|
-
quantity: number;
|
33
|
-
unit_price: number;
|
34
|
-
}[];
|
35
|
-
ticket_group_id: string;
|
36
|
-
}>;
|
37
|
-
declare const CreatePreferenceDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
38
|
-
items: z.ZodArray<z.ZodObject<{
|
39
|
-
id: z.ZodString;
|
40
|
-
title: z.ZodString;
|
41
|
-
quantity: z.ZodNumber;
|
42
|
-
unit_price: z.ZodNumber;
|
43
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
44
|
-
id: string;
|
45
|
-
title: string;
|
46
|
-
quantity: number;
|
47
|
-
unit_price: number;
|
48
|
-
}, {
|
49
|
-
id: string;
|
50
|
-
title: string;
|
51
|
-
quantity: number;
|
52
|
-
unit_price: number;
|
53
|
-
}>, "many">;
|
54
|
-
ticket_group_id: z.ZodString;
|
55
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
56
|
-
items: {
|
57
|
-
id: string;
|
58
|
-
title: string;
|
59
|
-
quantity: number;
|
60
|
-
unit_price: number;
|
61
|
-
}[];
|
62
|
-
ticket_group_id: string;
|
63
|
-
}, {
|
64
|
-
items: {
|
65
|
-
id: string;
|
66
|
-
title: string;
|
67
|
-
quantity: number;
|
68
|
-
unit_price: number;
|
69
|
-
}[];
|
70
|
-
ticket_group_id: string;
|
71
|
-
}>>;
|
72
|
-
export declare class CreatePreferenceDto extends CreatePreferenceDto_base {
|
73
|
-
}
|
74
|
-
export declare const typePreferenceError: z.ZodObject<{
|
75
|
-
message: z.ZodString;
|
76
|
-
error: z.ZodString;
|
77
|
-
status: z.ZodString;
|
78
|
-
cause: z.ZodString;
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
80
|
-
message: string;
|
81
|
-
status: string;
|
82
|
-
error: string;
|
83
|
-
cause: string;
|
84
|
-
}, {
|
85
|
-
message: string;
|
86
|
-
status: string;
|
87
|
-
error: string;
|
88
|
-
cause: string;
|
89
|
-
}>;
|
90
|
-
export declare const createPreferenceResponseSchema: z.ZodObject<{
|
91
|
-
id: z.ZodString;
|
92
|
-
init_point: z.ZodString;
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
94
|
-
id: string;
|
95
|
-
init_point: string;
|
96
|
-
}, {
|
97
|
-
id: string;
|
98
|
-
init_point: string;
|
99
|
-
}>;
|
100
|
-
declare const CreatePreferenceResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
101
|
-
id: z.ZodString;
|
102
|
-
init_point: z.ZodString;
|
103
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
104
|
-
id: string;
|
105
|
-
init_point: string;
|
106
|
-
}, {
|
107
|
-
id: string;
|
108
|
-
init_point: string;
|
109
|
-
}>>;
|
110
|
-
export declare class CreatePreferenceResponseDto extends CreatePreferenceResponseDto_base {
|
111
|
-
}
|
112
|
-
export {};
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.CreatePreferenceResponseDto = exports.createPreferenceResponseSchema = exports.typePreferenceError = exports.CreatePreferenceDto = exports.createPreferenceSchema = void 0;
|
7
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
-
const zod_1 = __importDefault(require("zod"));
|
9
|
-
exports.createPreferenceSchema = zod_1.default.object({
|
10
|
-
items: zod_1.default.array(zod_1.default.object({
|
11
|
-
id: zod_1.default.string(),
|
12
|
-
title: zod_1.default.string(),
|
13
|
-
quantity: zod_1.default.number(),
|
14
|
-
unit_price: zod_1.default.number(),
|
15
|
-
})),
|
16
|
-
ticket_group_id: zod_1.default.string(),
|
17
|
-
});
|
18
|
-
class CreatePreferenceDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createPreferenceSchema) {
|
19
|
-
}
|
20
|
-
exports.CreatePreferenceDto = CreatePreferenceDto;
|
21
|
-
exports.typePreferenceError = zod_1.default.object({
|
22
|
-
message: zod_1.default.string(),
|
23
|
-
error: zod_1.default.string(),
|
24
|
-
status: zod_1.default.string(),
|
25
|
-
cause: zod_1.default.string(),
|
26
|
-
});
|
27
|
-
exports.createPreferenceResponseSchema = zod_1.default.object({
|
28
|
-
id: zod_1.default.string(),
|
29
|
-
init_point: zod_1.default.string(),
|
30
|
-
}) || exports.typePreferenceError;
|
31
|
-
class CreatePreferenceResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createPreferenceResponseSchema) {
|
32
|
-
}
|
33
|
-
exports.CreatePreferenceResponseDto = CreatePreferenceResponseDto;
|
34
|
-
//# sourceMappingURL=create-preference-mercadopago.dto.js.map
|
@@ -1,102 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const webhookSchema: z.ZodObject<{
|
3
|
-
data: z.ZodObject<{
|
4
|
-
id: z.ZodString;
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
6
|
-
id: string;
|
7
|
-
}, {
|
8
|
-
id: string;
|
9
|
-
}>;
|
10
|
-
action: z.ZodString;
|
11
|
-
api_version: z.ZodString;
|
12
|
-
date_created: z.ZodString;
|
13
|
-
id: z.ZodString;
|
14
|
-
live_mode: z.ZodBoolean;
|
15
|
-
type: z.ZodString;
|
16
|
-
user_id: z.ZodNumber;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
id: string;
|
19
|
-
type: string;
|
20
|
-
data: {
|
21
|
-
id: string;
|
22
|
-
};
|
23
|
-
action: string;
|
24
|
-
api_version: string;
|
25
|
-
date_created: string;
|
26
|
-
live_mode: boolean;
|
27
|
-
user_id: number;
|
28
|
-
}, {
|
29
|
-
id: string;
|
30
|
-
type: string;
|
31
|
-
data: {
|
32
|
-
id: string;
|
33
|
-
};
|
34
|
-
action: string;
|
35
|
-
api_version: string;
|
36
|
-
date_created: string;
|
37
|
-
live_mode: boolean;
|
38
|
-
user_id: number;
|
39
|
-
}>;
|
40
|
-
declare const WebhookDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
41
|
-
data: z.ZodObject<{
|
42
|
-
id: z.ZodString;
|
43
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
44
|
-
id: string;
|
45
|
-
}, {
|
46
|
-
id: string;
|
47
|
-
}>;
|
48
|
-
action: z.ZodString;
|
49
|
-
api_version: z.ZodString;
|
50
|
-
date_created: z.ZodString;
|
51
|
-
id: z.ZodString;
|
52
|
-
live_mode: z.ZodBoolean;
|
53
|
-
type: z.ZodString;
|
54
|
-
user_id: z.ZodNumber;
|
55
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
56
|
-
id: string;
|
57
|
-
type: string;
|
58
|
-
data: {
|
59
|
-
id: string;
|
60
|
-
};
|
61
|
-
action: string;
|
62
|
-
api_version: string;
|
63
|
-
date_created: string;
|
64
|
-
live_mode: boolean;
|
65
|
-
user_id: number;
|
66
|
-
}, {
|
67
|
-
id: string;
|
68
|
-
type: string;
|
69
|
-
data: {
|
70
|
-
id: string;
|
71
|
-
};
|
72
|
-
action: string;
|
73
|
-
api_version: string;
|
74
|
-
date_created: string;
|
75
|
-
live_mode: boolean;
|
76
|
-
user_id: number;
|
77
|
-
}>>;
|
78
|
-
export declare class WebhookDto extends WebhookDto_base {
|
79
|
-
}
|
80
|
-
export declare const webhookResponseSchema: z.ZodObject<{
|
81
|
-
id: z.ZodString;
|
82
|
-
status: z.ZodString;
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
84
|
-
id: string;
|
85
|
-
status: string;
|
86
|
-
}, {
|
87
|
-
id: string;
|
88
|
-
status: string;
|
89
|
-
}>;
|
90
|
-
declare const WebhookResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
91
|
-
id: z.ZodString;
|
92
|
-
status: z.ZodString;
|
93
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
94
|
-
id: string;
|
95
|
-
status: string;
|
96
|
-
}, {
|
97
|
-
id: string;
|
98
|
-
status: string;
|
99
|
-
}>>;
|
100
|
-
export declare class WebhookResponseDto extends WebhookResponseDto_base {
|
101
|
-
}
|
102
|
-
export {};
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.WebhookResponseDto = exports.webhookResponseSchema = exports.WebhookDto = exports.webhookSchema = void 0;
|
7
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
8
|
-
const zod_1 = __importDefault(require("zod"));
|
9
|
-
exports.webhookSchema = zod_1.default.object({
|
10
|
-
data: zod_1.default.object({
|
11
|
-
id: zod_1.default.string(),
|
12
|
-
}),
|
13
|
-
action: zod_1.default.string(),
|
14
|
-
api_version: zod_1.default.string(),
|
15
|
-
date_created: zod_1.default.string(),
|
16
|
-
id: zod_1.default.string(),
|
17
|
-
live_mode: zod_1.default.boolean(),
|
18
|
-
type: zod_1.default.string(),
|
19
|
-
user_id: zod_1.default.number(),
|
20
|
-
});
|
21
|
-
class WebhookDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.webhookSchema) {
|
22
|
-
}
|
23
|
-
exports.WebhookDto = WebhookDto;
|
24
|
-
exports.webhookResponseSchema = zod_1.default.object({
|
25
|
-
id: zod_1.default.string(),
|
26
|
-
status: zod_1.default.string(),
|
27
|
-
});
|
28
|
-
class WebhookResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.webhookResponseSchema) {
|
29
|
-
}
|
30
|
-
exports.WebhookResponseDto = WebhookResponseDto;
|
31
|
-
//# sourceMappingURL=webhook-mercadopago.dto.js.map
|