intifact 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -9
- package/dist/index.d.ts +129 -584
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -50
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +145 -1287
- package/dist/types.d.ts.map +1 -1
- package/package.json +47 -47
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,6 @@ export type SendVoidedInput = paths["/api/v1/voided/send"]["post"]["requestBody"
|
|
|
23
23
|
export type CancelInvoiceInput = paths["/api/v1/invoice/cancel"]["post"]["requestBody"]["content"]["application/json"];
|
|
24
24
|
/** Body de POST /api/v1/boleta/cancel (anular boleta) */
|
|
25
25
|
export type CancelBoletaInput = paths["/api/v1/boleta/cancel"]["post"]["requestBody"]["content"]["application/json"];
|
|
26
|
-
/** Body de POST /api/v1/webhooks */
|
|
27
|
-
export type CreateWebhookInput = paths["/api/v1/webhooks"]["post"]["requestBody"]["content"]["application/json"];
|
|
28
|
-
/** Body de PUT /api/v1/webhooks/{id} */
|
|
29
|
-
export type UpdateWebhookInput = paths["/api/v1/webhooks/{id}"]["put"]["requestBody"]["content"]["application/json"];
|
|
30
26
|
/** Respuesta 202 de cualquier /send (documento encolado) */
|
|
31
27
|
export type EnqueueResponse = paths["/api/v1/invoice/send"]["post"]["responses"]["202"]["content"]["application/json"];
|
|
32
28
|
/** Respuesta de GET /api/v1/queues/stats */
|
|
@@ -2289,6 +2285,128 @@ export declare class FacturacionClient {
|
|
|
2289
2285
|
}[];
|
|
2290
2286
|
};
|
|
2291
2287
|
}, `${string}/${string}`>>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Estado de un envío RC/RA: el `id` que devuelven sendSummary, sendVoided,
|
|
2290
|
+
* cancelInvoice y cancelBoleta (es del envío, no de un documento). Trae el
|
|
2291
|
+
* ticket, el código/motivo de SUNAT y el estado de cada comprobante incluido.
|
|
2292
|
+
*/
|
|
2293
|
+
getSummary(id: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
2294
|
+
parameters: {
|
|
2295
|
+
query?: never;
|
|
2296
|
+
header?: never;
|
|
2297
|
+
path: {
|
|
2298
|
+
id: string;
|
|
2299
|
+
};
|
|
2300
|
+
cookie?: never;
|
|
2301
|
+
};
|
|
2302
|
+
requestBody?: never;
|
|
2303
|
+
responses: {
|
|
2304
|
+
200: {
|
|
2305
|
+
headers: {
|
|
2306
|
+
[name: string]: unknown;
|
|
2307
|
+
};
|
|
2308
|
+
content: {
|
|
2309
|
+
"application/json": {
|
|
2310
|
+
success: boolean;
|
|
2311
|
+
data: {
|
|
2312
|
+
id: string;
|
|
2313
|
+
env: string;
|
|
2314
|
+
tipo: string;
|
|
2315
|
+
correlativo: string;
|
|
2316
|
+
fechaEmision: string;
|
|
2317
|
+
fechaReferencia: string;
|
|
2318
|
+
estado: string;
|
|
2319
|
+
ticket: string | null;
|
|
2320
|
+
codigoRespuesta: string | null;
|
|
2321
|
+
descripcionRespuesta: string | null;
|
|
2322
|
+
ultimoError: string | null;
|
|
2323
|
+
intentos: number;
|
|
2324
|
+
tieneCdr: boolean;
|
|
2325
|
+
items: {
|
|
2326
|
+
tipoDoc: string;
|
|
2327
|
+
serie: string;
|
|
2328
|
+
correlativo: string;
|
|
2329
|
+
documentId: string | null;
|
|
2330
|
+
estadoDocumento: string | null;
|
|
2331
|
+
}[];
|
|
2332
|
+
createdAt: string;
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2337
|
+
401: {
|
|
2338
|
+
headers: {
|
|
2339
|
+
[name: string]: unknown;
|
|
2340
|
+
};
|
|
2341
|
+
content: {
|
|
2342
|
+
"application/json": {
|
|
2343
|
+
success: boolean;
|
|
2344
|
+
message: string;
|
|
2345
|
+
code?: string;
|
|
2346
|
+
errors?: {
|
|
2347
|
+
path: string;
|
|
2348
|
+
message: string;
|
|
2349
|
+
}[];
|
|
2350
|
+
};
|
|
2351
|
+
};
|
|
2352
|
+
};
|
|
2353
|
+
403: {
|
|
2354
|
+
headers: {
|
|
2355
|
+
[name: string]: unknown;
|
|
2356
|
+
};
|
|
2357
|
+
content: {
|
|
2358
|
+
"application/json": {
|
|
2359
|
+
success: boolean;
|
|
2360
|
+
message: string;
|
|
2361
|
+
code?: string;
|
|
2362
|
+
errors?: {
|
|
2363
|
+
path: string;
|
|
2364
|
+
message: string;
|
|
2365
|
+
}[];
|
|
2366
|
+
};
|
|
2367
|
+
};
|
|
2368
|
+
};
|
|
2369
|
+
404: {
|
|
2370
|
+
headers: {
|
|
2371
|
+
[name: string]: unknown;
|
|
2372
|
+
};
|
|
2373
|
+
content: {
|
|
2374
|
+
"application/json": {
|
|
2375
|
+
success: boolean;
|
|
2376
|
+
message: string;
|
|
2377
|
+
code?: string;
|
|
2378
|
+
errors?: {
|
|
2379
|
+
path: string;
|
|
2380
|
+
message: string;
|
|
2381
|
+
}[];
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
429: {
|
|
2386
|
+
headers: {
|
|
2387
|
+
[name: string]: unknown;
|
|
2388
|
+
};
|
|
2389
|
+
content: {
|
|
2390
|
+
"application/json": {
|
|
2391
|
+
success: boolean;
|
|
2392
|
+
message: string;
|
|
2393
|
+
code?: string;
|
|
2394
|
+
errors?: {
|
|
2395
|
+
path: string;
|
|
2396
|
+
message: string;
|
|
2397
|
+
}[];
|
|
2398
|
+
retryAfterSeconds?: number;
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
}, {
|
|
2404
|
+
params: {
|
|
2405
|
+
path: {
|
|
2406
|
+
id: string;
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2409
|
+
}, `${string}/${string}`>>;
|
|
2292
2410
|
/** Consulta el estado de un ticket asíncrono (sendSummary). */
|
|
2293
2411
|
getTicketStatus(ticket: string, ruc: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
2294
2412
|
parameters: {
|
|
@@ -2404,8 +2522,10 @@ export declare class FacturacionClient {
|
|
|
2404
2522
|
parameters: {
|
|
2405
2523
|
query?: {
|
|
2406
2524
|
ruc?: string;
|
|
2525
|
+
tenantId?: string;
|
|
2407
2526
|
tipoDoc?: string;
|
|
2408
2527
|
serie?: string;
|
|
2528
|
+
correlativo?: string;
|
|
2409
2529
|
estado?: string;
|
|
2410
2530
|
env?: "live" | "test";
|
|
2411
2531
|
fechaDesde?: string;
|
|
@@ -2447,6 +2567,7 @@ export declare class FacturacionClient {
|
|
|
2447
2567
|
company: {
|
|
2448
2568
|
ruc: string;
|
|
2449
2569
|
razonSocial: string;
|
|
2570
|
+
tenantId?: string | null;
|
|
2450
2571
|
};
|
|
2451
2572
|
}[];
|
|
2452
2573
|
pagination: {
|
|
@@ -2512,8 +2633,10 @@ export declare class FacturacionClient {
|
|
|
2512
2633
|
params: {
|
|
2513
2634
|
query: {
|
|
2514
2635
|
ruc?: string;
|
|
2636
|
+
tenantId?: string;
|
|
2515
2637
|
tipoDoc?: string;
|
|
2516
2638
|
serie?: string;
|
|
2639
|
+
correlativo?: string;
|
|
2517
2640
|
estado?: string;
|
|
2518
2641
|
env?: "live" | "test";
|
|
2519
2642
|
fechaDesde?: string;
|
|
@@ -2938,586 +3061,8 @@ export declare class FacturacionClient {
|
|
|
2938
3061
|
}, `${string}/${string}`>>;
|
|
2939
3062
|
/** Logo de la empresa (imagen). */
|
|
2940
3063
|
getCompanyLogo(id: string): Promise<ArrayBuffer>;
|
|
2941
|
-
/**
|
|
2942
|
-
|
|
2943
|
-
parameters: {
|
|
2944
|
-
query?: never;
|
|
2945
|
-
header?: never;
|
|
2946
|
-
path?: never;
|
|
2947
|
-
cookie?: never;
|
|
2948
|
-
};
|
|
2949
|
-
requestBody: {
|
|
2950
|
-
content: {
|
|
2951
|
-
"application/json": {
|
|
2952
|
-
empresaRuc?: string;
|
|
2953
|
-
tenantId?: string;
|
|
2954
|
-
url: string;
|
|
2955
|
-
events: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
|
|
2956
|
-
description?: string;
|
|
2957
|
-
secret?: string;
|
|
2958
|
-
};
|
|
2959
|
-
};
|
|
2960
|
-
};
|
|
2961
|
-
responses: {
|
|
2962
|
-
401: {
|
|
2963
|
-
headers: {
|
|
2964
|
-
[name: string]: unknown;
|
|
2965
|
-
};
|
|
2966
|
-
content: {
|
|
2967
|
-
"application/json": {
|
|
2968
|
-
success: boolean;
|
|
2969
|
-
message: string;
|
|
2970
|
-
code?: string;
|
|
2971
|
-
errors?: {
|
|
2972
|
-
path: string;
|
|
2973
|
-
message: string;
|
|
2974
|
-
}[];
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
};
|
|
2978
|
-
403: {
|
|
2979
|
-
headers: {
|
|
2980
|
-
[name: string]: unknown;
|
|
2981
|
-
};
|
|
2982
|
-
content: {
|
|
2983
|
-
"application/json": {
|
|
2984
|
-
success: boolean;
|
|
2985
|
-
message: string;
|
|
2986
|
-
code?: string;
|
|
2987
|
-
errors?: {
|
|
2988
|
-
path: string;
|
|
2989
|
-
message: string;
|
|
2990
|
-
}[];
|
|
2991
|
-
};
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
429: {
|
|
2995
|
-
headers: {
|
|
2996
|
-
[name: string]: unknown;
|
|
2997
|
-
};
|
|
2998
|
-
content: {
|
|
2999
|
-
"application/json": {
|
|
3000
|
-
success: boolean;
|
|
3001
|
-
message: string;
|
|
3002
|
-
code?: string;
|
|
3003
|
-
errors?: {
|
|
3004
|
-
path: string;
|
|
3005
|
-
message: string;
|
|
3006
|
-
}[];
|
|
3007
|
-
retryAfterSeconds?: number;
|
|
3008
|
-
};
|
|
3009
|
-
};
|
|
3010
|
-
};
|
|
3011
|
-
};
|
|
3012
|
-
}, {
|
|
3013
|
-
body: {
|
|
3014
|
-
empresaRuc?: string;
|
|
3015
|
-
tenantId?: string;
|
|
3016
|
-
url: string;
|
|
3017
|
-
events: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
|
|
3018
|
-
description?: string;
|
|
3019
|
-
secret?: string;
|
|
3020
|
-
};
|
|
3021
|
-
}, `${string}/${string}`>>;
|
|
3022
|
-
/** Lista las suscripciones de webhooks. */
|
|
3023
|
-
listWebhooks(): Promise<import("openapi-fetch").FetchResponse<{
|
|
3024
|
-
parameters: {
|
|
3025
|
-
query?: {
|
|
3026
|
-
ruc?: string;
|
|
3027
|
-
};
|
|
3028
|
-
header?: never;
|
|
3029
|
-
path?: never;
|
|
3030
|
-
cookie?: never;
|
|
3031
|
-
};
|
|
3032
|
-
requestBody?: never;
|
|
3033
|
-
responses: {
|
|
3034
|
-
401: {
|
|
3035
|
-
headers: {
|
|
3036
|
-
[name: string]: unknown;
|
|
3037
|
-
};
|
|
3038
|
-
content: {
|
|
3039
|
-
"application/json": {
|
|
3040
|
-
success: boolean;
|
|
3041
|
-
message: string;
|
|
3042
|
-
code?: string;
|
|
3043
|
-
errors?: {
|
|
3044
|
-
path: string;
|
|
3045
|
-
message: string;
|
|
3046
|
-
}[];
|
|
3047
|
-
};
|
|
3048
|
-
};
|
|
3049
|
-
};
|
|
3050
|
-
403: {
|
|
3051
|
-
headers: {
|
|
3052
|
-
[name: string]: unknown;
|
|
3053
|
-
};
|
|
3054
|
-
content: {
|
|
3055
|
-
"application/json": {
|
|
3056
|
-
success: boolean;
|
|
3057
|
-
message: string;
|
|
3058
|
-
code?: string;
|
|
3059
|
-
errors?: {
|
|
3060
|
-
path: string;
|
|
3061
|
-
message: string;
|
|
3062
|
-
}[];
|
|
3063
|
-
};
|
|
3064
|
-
};
|
|
3065
|
-
};
|
|
3066
|
-
429: {
|
|
3067
|
-
headers: {
|
|
3068
|
-
[name: string]: unknown;
|
|
3069
|
-
};
|
|
3070
|
-
content: {
|
|
3071
|
-
"application/json": {
|
|
3072
|
-
success: boolean;
|
|
3073
|
-
message: string;
|
|
3074
|
-
code?: string;
|
|
3075
|
-
errors?: {
|
|
3076
|
-
path: string;
|
|
3077
|
-
message: string;
|
|
3078
|
-
}[];
|
|
3079
|
-
retryAfterSeconds?: number;
|
|
3080
|
-
};
|
|
3081
|
-
};
|
|
3082
|
-
};
|
|
3083
|
-
};
|
|
3084
|
-
}, {}, `${string}/${string}`>>;
|
|
3085
|
-
/** Detalle de una suscripción de webhook. */
|
|
3086
|
-
getWebhook(id: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3087
|
-
parameters: {
|
|
3088
|
-
query?: never;
|
|
3089
|
-
header?: never;
|
|
3090
|
-
path: {
|
|
3091
|
-
id: string;
|
|
3092
|
-
};
|
|
3093
|
-
cookie?: never;
|
|
3094
|
-
};
|
|
3095
|
-
requestBody?: never;
|
|
3096
|
-
responses: {
|
|
3097
|
-
401: {
|
|
3098
|
-
headers: {
|
|
3099
|
-
[name: string]: unknown;
|
|
3100
|
-
};
|
|
3101
|
-
content: {
|
|
3102
|
-
"application/json": {
|
|
3103
|
-
success: boolean;
|
|
3104
|
-
message: string;
|
|
3105
|
-
code?: string;
|
|
3106
|
-
errors?: {
|
|
3107
|
-
path: string;
|
|
3108
|
-
message: string;
|
|
3109
|
-
}[];
|
|
3110
|
-
};
|
|
3111
|
-
};
|
|
3112
|
-
};
|
|
3113
|
-
403: {
|
|
3114
|
-
headers: {
|
|
3115
|
-
[name: string]: unknown;
|
|
3116
|
-
};
|
|
3117
|
-
content: {
|
|
3118
|
-
"application/json": {
|
|
3119
|
-
success: boolean;
|
|
3120
|
-
message: string;
|
|
3121
|
-
code?: string;
|
|
3122
|
-
errors?: {
|
|
3123
|
-
path: string;
|
|
3124
|
-
message: string;
|
|
3125
|
-
}[];
|
|
3126
|
-
};
|
|
3127
|
-
};
|
|
3128
|
-
};
|
|
3129
|
-
429: {
|
|
3130
|
-
headers: {
|
|
3131
|
-
[name: string]: unknown;
|
|
3132
|
-
};
|
|
3133
|
-
content: {
|
|
3134
|
-
"application/json": {
|
|
3135
|
-
success: boolean;
|
|
3136
|
-
message: string;
|
|
3137
|
-
code?: string;
|
|
3138
|
-
errors?: {
|
|
3139
|
-
path: string;
|
|
3140
|
-
message: string;
|
|
3141
|
-
}[];
|
|
3142
|
-
retryAfterSeconds?: number;
|
|
3143
|
-
};
|
|
3144
|
-
};
|
|
3145
|
-
};
|
|
3146
|
-
};
|
|
3147
|
-
}, {
|
|
3148
|
-
params: {
|
|
3149
|
-
path: {
|
|
3150
|
-
id: string;
|
|
3151
|
-
};
|
|
3152
|
-
};
|
|
3153
|
-
}, `${string}/${string}`>>;
|
|
3154
|
-
/** Actualiza una suscripción de webhook (url, eventos, isActive). */
|
|
3155
|
-
updateWebhook(id: string, body: UpdateWebhookInput): Promise<import("openapi-fetch").FetchResponse<{
|
|
3156
|
-
parameters: {
|
|
3157
|
-
query?: never;
|
|
3158
|
-
header?: never;
|
|
3159
|
-
path: {
|
|
3160
|
-
id: string;
|
|
3161
|
-
};
|
|
3162
|
-
cookie?: never;
|
|
3163
|
-
};
|
|
3164
|
-
requestBody: {
|
|
3165
|
-
content: {
|
|
3166
|
-
"application/json": {
|
|
3167
|
-
url?: string;
|
|
3168
|
-
events?: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
|
|
3169
|
-
description?: string;
|
|
3170
|
-
isActive?: boolean;
|
|
3171
|
-
};
|
|
3172
|
-
};
|
|
3173
|
-
};
|
|
3174
|
-
responses: {
|
|
3175
|
-
401: {
|
|
3176
|
-
headers: {
|
|
3177
|
-
[name: string]: unknown;
|
|
3178
|
-
};
|
|
3179
|
-
content: {
|
|
3180
|
-
"application/json": {
|
|
3181
|
-
success: boolean;
|
|
3182
|
-
message: string;
|
|
3183
|
-
code?: string;
|
|
3184
|
-
errors?: {
|
|
3185
|
-
path: string;
|
|
3186
|
-
message: string;
|
|
3187
|
-
}[];
|
|
3188
|
-
};
|
|
3189
|
-
};
|
|
3190
|
-
};
|
|
3191
|
-
403: {
|
|
3192
|
-
headers: {
|
|
3193
|
-
[name: string]: unknown;
|
|
3194
|
-
};
|
|
3195
|
-
content: {
|
|
3196
|
-
"application/json": {
|
|
3197
|
-
success: boolean;
|
|
3198
|
-
message: string;
|
|
3199
|
-
code?: string;
|
|
3200
|
-
errors?: {
|
|
3201
|
-
path: string;
|
|
3202
|
-
message: string;
|
|
3203
|
-
}[];
|
|
3204
|
-
};
|
|
3205
|
-
};
|
|
3206
|
-
};
|
|
3207
|
-
429: {
|
|
3208
|
-
headers: {
|
|
3209
|
-
[name: string]: unknown;
|
|
3210
|
-
};
|
|
3211
|
-
content: {
|
|
3212
|
-
"application/json": {
|
|
3213
|
-
success: boolean;
|
|
3214
|
-
message: string;
|
|
3215
|
-
code?: string;
|
|
3216
|
-
errors?: {
|
|
3217
|
-
path: string;
|
|
3218
|
-
message: string;
|
|
3219
|
-
}[];
|
|
3220
|
-
retryAfterSeconds?: number;
|
|
3221
|
-
};
|
|
3222
|
-
};
|
|
3223
|
-
};
|
|
3224
|
-
};
|
|
3225
|
-
}, {
|
|
3226
|
-
params: {
|
|
3227
|
-
path: {
|
|
3228
|
-
id: string;
|
|
3229
|
-
};
|
|
3230
|
-
};
|
|
3231
|
-
body: {
|
|
3232
|
-
url?: string;
|
|
3233
|
-
events?: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
|
|
3234
|
-
description?: string;
|
|
3235
|
-
isActive?: boolean;
|
|
3236
|
-
};
|
|
3237
|
-
}, `${string}/${string}`>>;
|
|
3238
|
-
/** Elimina una suscripción de webhook. */
|
|
3239
|
-
deleteWebhook(id: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3240
|
-
parameters: {
|
|
3241
|
-
query?: never;
|
|
3242
|
-
header?: never;
|
|
3243
|
-
path: {
|
|
3244
|
-
id: string;
|
|
3245
|
-
};
|
|
3246
|
-
cookie?: never;
|
|
3247
|
-
};
|
|
3248
|
-
requestBody?: never;
|
|
3249
|
-
responses: {
|
|
3250
|
-
401: {
|
|
3251
|
-
headers: {
|
|
3252
|
-
[name: string]: unknown;
|
|
3253
|
-
};
|
|
3254
|
-
content: {
|
|
3255
|
-
"application/json": {
|
|
3256
|
-
success: boolean;
|
|
3257
|
-
message: string;
|
|
3258
|
-
code?: string;
|
|
3259
|
-
errors?: {
|
|
3260
|
-
path: string;
|
|
3261
|
-
message: string;
|
|
3262
|
-
}[];
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
};
|
|
3266
|
-
403: {
|
|
3267
|
-
headers: {
|
|
3268
|
-
[name: string]: unknown;
|
|
3269
|
-
};
|
|
3270
|
-
content: {
|
|
3271
|
-
"application/json": {
|
|
3272
|
-
success: boolean;
|
|
3273
|
-
message: string;
|
|
3274
|
-
code?: string;
|
|
3275
|
-
errors?: {
|
|
3276
|
-
path: string;
|
|
3277
|
-
message: string;
|
|
3278
|
-
}[];
|
|
3279
|
-
};
|
|
3280
|
-
};
|
|
3281
|
-
};
|
|
3282
|
-
429: {
|
|
3283
|
-
headers: {
|
|
3284
|
-
[name: string]: unknown;
|
|
3285
|
-
};
|
|
3286
|
-
content: {
|
|
3287
|
-
"application/json": {
|
|
3288
|
-
success: boolean;
|
|
3289
|
-
message: string;
|
|
3290
|
-
code?: string;
|
|
3291
|
-
errors?: {
|
|
3292
|
-
path: string;
|
|
3293
|
-
message: string;
|
|
3294
|
-
}[];
|
|
3295
|
-
retryAfterSeconds?: number;
|
|
3296
|
-
};
|
|
3297
|
-
};
|
|
3298
|
-
};
|
|
3299
|
-
};
|
|
3300
|
-
}, {
|
|
3301
|
-
params: {
|
|
3302
|
-
path: {
|
|
3303
|
-
id: string;
|
|
3304
|
-
};
|
|
3305
|
-
};
|
|
3306
|
-
}, `${string}/${string}`>>;
|
|
3307
|
-
/** Lista los intentos de entrega de un webhook. */
|
|
3308
|
-
listWebhookDeliveries(id: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3309
|
-
parameters: {
|
|
3310
|
-
query?: {
|
|
3311
|
-
limit?: number;
|
|
3312
|
-
success?: "true" | "false";
|
|
3313
|
-
};
|
|
3314
|
-
header?: never;
|
|
3315
|
-
path: {
|
|
3316
|
-
id: string;
|
|
3317
|
-
};
|
|
3318
|
-
cookie?: never;
|
|
3319
|
-
};
|
|
3320
|
-
requestBody?: never;
|
|
3321
|
-
responses: {
|
|
3322
|
-
401: {
|
|
3323
|
-
headers: {
|
|
3324
|
-
[name: string]: unknown;
|
|
3325
|
-
};
|
|
3326
|
-
content: {
|
|
3327
|
-
"application/json": {
|
|
3328
|
-
success: boolean;
|
|
3329
|
-
message: string;
|
|
3330
|
-
code?: string;
|
|
3331
|
-
errors?: {
|
|
3332
|
-
path: string;
|
|
3333
|
-
message: string;
|
|
3334
|
-
}[];
|
|
3335
|
-
};
|
|
3336
|
-
};
|
|
3337
|
-
};
|
|
3338
|
-
403: {
|
|
3339
|
-
headers: {
|
|
3340
|
-
[name: string]: unknown;
|
|
3341
|
-
};
|
|
3342
|
-
content: {
|
|
3343
|
-
"application/json": {
|
|
3344
|
-
success: boolean;
|
|
3345
|
-
message: string;
|
|
3346
|
-
code?: string;
|
|
3347
|
-
errors?: {
|
|
3348
|
-
path: string;
|
|
3349
|
-
message: string;
|
|
3350
|
-
}[];
|
|
3351
|
-
};
|
|
3352
|
-
};
|
|
3353
|
-
};
|
|
3354
|
-
429: {
|
|
3355
|
-
headers: {
|
|
3356
|
-
[name: string]: unknown;
|
|
3357
|
-
};
|
|
3358
|
-
content: {
|
|
3359
|
-
"application/json": {
|
|
3360
|
-
success: boolean;
|
|
3361
|
-
message: string;
|
|
3362
|
-
code?: string;
|
|
3363
|
-
errors?: {
|
|
3364
|
-
path: string;
|
|
3365
|
-
message: string;
|
|
3366
|
-
}[];
|
|
3367
|
-
retryAfterSeconds?: number;
|
|
3368
|
-
};
|
|
3369
|
-
};
|
|
3370
|
-
};
|
|
3371
|
-
};
|
|
3372
|
-
}, {
|
|
3373
|
-
params: {
|
|
3374
|
-
path: {
|
|
3375
|
-
id: string;
|
|
3376
|
-
};
|
|
3377
|
-
};
|
|
3378
|
-
}, `${string}/${string}`>>;
|
|
3379
|
-
/** Reintenta manualmente una entrega de webhook. */
|
|
3380
|
-
redeliverWebhook(id: string, deliveryId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3381
|
-
parameters: {
|
|
3382
|
-
query?: never;
|
|
3383
|
-
header?: never;
|
|
3384
|
-
path: {
|
|
3385
|
-
id: string;
|
|
3386
|
-
deliveryId: string;
|
|
3387
|
-
};
|
|
3388
|
-
cookie?: never;
|
|
3389
|
-
};
|
|
3390
|
-
requestBody?: never;
|
|
3391
|
-
responses: {
|
|
3392
|
-
401: {
|
|
3393
|
-
headers: {
|
|
3394
|
-
[name: string]: unknown;
|
|
3395
|
-
};
|
|
3396
|
-
content: {
|
|
3397
|
-
"application/json": {
|
|
3398
|
-
success: boolean;
|
|
3399
|
-
message: string;
|
|
3400
|
-
code?: string;
|
|
3401
|
-
errors?: {
|
|
3402
|
-
path: string;
|
|
3403
|
-
message: string;
|
|
3404
|
-
}[];
|
|
3405
|
-
};
|
|
3406
|
-
};
|
|
3407
|
-
};
|
|
3408
|
-
403: {
|
|
3409
|
-
headers: {
|
|
3410
|
-
[name: string]: unknown;
|
|
3411
|
-
};
|
|
3412
|
-
content: {
|
|
3413
|
-
"application/json": {
|
|
3414
|
-
success: boolean;
|
|
3415
|
-
message: string;
|
|
3416
|
-
code?: string;
|
|
3417
|
-
errors?: {
|
|
3418
|
-
path: string;
|
|
3419
|
-
message: string;
|
|
3420
|
-
}[];
|
|
3421
|
-
};
|
|
3422
|
-
};
|
|
3423
|
-
};
|
|
3424
|
-
429: {
|
|
3425
|
-
headers: {
|
|
3426
|
-
[name: string]: unknown;
|
|
3427
|
-
};
|
|
3428
|
-
content: {
|
|
3429
|
-
"application/json": {
|
|
3430
|
-
success: boolean;
|
|
3431
|
-
message: string;
|
|
3432
|
-
code?: string;
|
|
3433
|
-
errors?: {
|
|
3434
|
-
path: string;
|
|
3435
|
-
message: string;
|
|
3436
|
-
}[];
|
|
3437
|
-
retryAfterSeconds?: number;
|
|
3438
|
-
};
|
|
3439
|
-
};
|
|
3440
|
-
};
|
|
3441
|
-
};
|
|
3442
|
-
}, {
|
|
3443
|
-
params: {
|
|
3444
|
-
path: {
|
|
3445
|
-
id: string;
|
|
3446
|
-
deliveryId: string;
|
|
3447
|
-
};
|
|
3448
|
-
};
|
|
3449
|
-
}, `${string}/${string}`>>;
|
|
3450
|
-
/** Dispara un evento de prueba (webhook.test) para verificar conectividad. */
|
|
3451
|
-
testWebhook(id: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3452
|
-
parameters: {
|
|
3453
|
-
query?: never;
|
|
3454
|
-
header?: never;
|
|
3455
|
-
path: {
|
|
3456
|
-
id: string;
|
|
3457
|
-
};
|
|
3458
|
-
cookie?: never;
|
|
3459
|
-
};
|
|
3460
|
-
requestBody?: never;
|
|
3461
|
-
responses: {
|
|
3462
|
-
401: {
|
|
3463
|
-
headers: {
|
|
3464
|
-
[name: string]: unknown;
|
|
3465
|
-
};
|
|
3466
|
-
content: {
|
|
3467
|
-
"application/json": {
|
|
3468
|
-
success: boolean;
|
|
3469
|
-
message: string;
|
|
3470
|
-
code?: string;
|
|
3471
|
-
errors?: {
|
|
3472
|
-
path: string;
|
|
3473
|
-
message: string;
|
|
3474
|
-
}[];
|
|
3475
|
-
};
|
|
3476
|
-
};
|
|
3477
|
-
};
|
|
3478
|
-
403: {
|
|
3479
|
-
headers: {
|
|
3480
|
-
[name: string]: unknown;
|
|
3481
|
-
};
|
|
3482
|
-
content: {
|
|
3483
|
-
"application/json": {
|
|
3484
|
-
success: boolean;
|
|
3485
|
-
message: string;
|
|
3486
|
-
code?: string;
|
|
3487
|
-
errors?: {
|
|
3488
|
-
path: string;
|
|
3489
|
-
message: string;
|
|
3490
|
-
}[];
|
|
3491
|
-
};
|
|
3492
|
-
};
|
|
3493
|
-
};
|
|
3494
|
-
429: {
|
|
3495
|
-
headers: {
|
|
3496
|
-
[name: string]: unknown;
|
|
3497
|
-
};
|
|
3498
|
-
content: {
|
|
3499
|
-
"application/json": {
|
|
3500
|
-
success: boolean;
|
|
3501
|
-
message: string;
|
|
3502
|
-
code?: string;
|
|
3503
|
-
errors?: {
|
|
3504
|
-
path: string;
|
|
3505
|
-
message: string;
|
|
3506
|
-
}[];
|
|
3507
|
-
retryAfterSeconds?: number;
|
|
3508
|
-
};
|
|
3509
|
-
};
|
|
3510
|
-
};
|
|
3511
|
-
};
|
|
3512
|
-
}, {
|
|
3513
|
-
params: {
|
|
3514
|
-
path: {
|
|
3515
|
-
id: string;
|
|
3516
|
-
};
|
|
3517
|
-
};
|
|
3518
|
-
}, `${string}/${string}`>>;
|
|
3519
|
-
/** Rota el secret HMAC de un webhook. El nuevo secret se devuelve una sola vez. */
|
|
3520
|
-
rotateWebhookSecret(id: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3064
|
+
/** Lista los establecimientos de una empresa (incluye los desactivados). */
|
|
3065
|
+
listBranches(companyId: string): Promise<import("openapi-fetch").FetchResponse<{
|
|
3521
3066
|
parameters: {
|
|
3522
3067
|
query?: never;
|
|
3523
3068
|
header?: never;
|