intifact 1.1.1 → 1.2.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/types.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
1
  export interface paths {
6
2
  "/health": {
7
3
  parameters: {
@@ -200,6 +196,12 @@ export interface paths {
200
196
  legendCode: string;
201
197
  legendValue: string;
202
198
  }[];
199
+ observacion?: string;
200
+ vendedor?: string;
201
+ pagos?: {
202
+ metodoPago: string;
203
+ monto: number;
204
+ }[];
203
205
  detraccion?: {
204
206
  codBienServicio: string;
205
207
  cuentaBanco: string;
@@ -208,6 +210,14 @@ export interface paths {
208
210
  /** @default 001 */
209
211
  medioPago?: string;
210
212
  };
213
+ guiaRemision?: {
214
+ /**
215
+ * @default 09
216
+ * @enum {string}
217
+ */
218
+ tipoDoc?: "31" | "09";
219
+ nroDoc: string;
220
+ }[];
211
221
  };
212
222
  };
213
223
  };
@@ -305,7 +315,6 @@ export interface paths {
305
315
  descripcion: string;
306
316
  cantidad: number;
307
317
  valorUnitario: number;
308
- /** @default NIU */
309
318
  unidad?: string;
310
319
  codProducto?: string;
311
320
  /** @default 10 */
@@ -684,7 +693,6 @@ export interface paths {
684
693
  descripcion: string;
685
694
  cantidad: number;
686
695
  valorUnitario: number;
687
- /** @default NIU */
688
696
  unidad?: string;
689
697
  codProducto?: string;
690
698
  /** @default 10 */
@@ -841,6 +849,42 @@ export interface paths {
841
849
  patch?: never;
842
850
  trace?: never;
843
851
  };
852
+ "/api/v1/note/{id}/cdr": {
853
+ parameters: {
854
+ query?: never;
855
+ header?: never;
856
+ path?: never;
857
+ cookie?: never;
858
+ };
859
+ /** Descargar CDR (constancia de SUNAT) */
860
+ get: {
861
+ parameters: {
862
+ query?: never;
863
+ header?: never;
864
+ path: {
865
+ id: string;
866
+ };
867
+ cookie?: never;
868
+ };
869
+ requestBody?: never;
870
+ responses: {
871
+ /** @description Default Response */
872
+ 200: {
873
+ headers: {
874
+ [name: string]: unknown;
875
+ };
876
+ content?: never;
877
+ };
878
+ };
879
+ };
880
+ put?: never;
881
+ post?: never;
882
+ delete?: never;
883
+ options?: never;
884
+ head?: never;
885
+ patch?: never;
886
+ trace?: never;
887
+ };
844
888
  "/api/v1/despatch/send": {
845
889
  parameters: {
846
890
  query?: never;
@@ -884,6 +928,10 @@ export interface paths {
884
928
  destinatarioTelefono?: string;
885
929
  destinatarioEmail?: string;
886
930
  entregaReferencia?: string;
931
+ /** @enum {string} */
932
+ modalidadEntrega?: "DOMICILIO" | "AGENCIA";
933
+ agenciaNombre?: string;
934
+ agenciaSede?: string;
887
935
  guiaCodTraslado: string;
888
936
  /** @enum {string} */
889
937
  guiaModTraslado: "01" | "02";
@@ -898,8 +946,10 @@ export interface paths {
898
946
  transportistaNroMtc?: string;
899
947
  guiaPartidaUbigeo: string;
900
948
  guiaPartidaDireccion: string;
949
+ guiaPartidaCiudad?: string;
901
950
  guiaLlegadaUbigeo: string;
902
951
  guiaLlegadaDireccion: string;
952
+ guiaLlegadaCiudad?: string;
903
953
  chofer?: {
904
954
  /** @enum {string} */
905
955
  tipo: "Principal" | "Secundario";
@@ -1162,6 +1212,10 @@ export interface paths {
1162
1212
  destinatarioTelefono?: string;
1163
1213
  destinatarioEmail?: string;
1164
1214
  entregaReferencia?: string;
1215
+ /** @enum {string} */
1216
+ modalidadEntrega?: "DOMICILIO" | "AGENCIA";
1217
+ agenciaNombre?: string;
1218
+ agenciaSede?: string;
1165
1219
  guiaLlegadaUbigeo: string;
1166
1220
  guiaLlegadaDireccion: string;
1167
1221
  guiaPesoTotal: number;
@@ -1279,6 +1333,10 @@ export interface paths {
1279
1333
  destinatarioTelefono?: string;
1280
1334
  destinatarioEmail?: string;
1281
1335
  entregaReferencia?: string;
1336
+ /** @enum {string} */
1337
+ modalidadEntrega?: "DOMICILIO" | "AGENCIA";
1338
+ agenciaNombre?: string;
1339
+ agenciaSede?: string;
1282
1340
  remitenteTipoDoc: string;
1283
1341
  remitenteNumDoc: string;
1284
1342
  remitenteRazonSocial: string;
@@ -1462,6 +1520,42 @@ export interface paths {
1462
1520
  patch?: never;
1463
1521
  trace?: never;
1464
1522
  };
1523
+ "/api/v1/despatch/{id}/cdr": {
1524
+ parameters: {
1525
+ query?: never;
1526
+ header?: never;
1527
+ path?: never;
1528
+ cookie?: never;
1529
+ };
1530
+ /** Descargar CDR (constancia de SUNAT) */
1531
+ get: {
1532
+ parameters: {
1533
+ query?: never;
1534
+ header?: never;
1535
+ path: {
1536
+ id: string;
1537
+ };
1538
+ cookie?: never;
1539
+ };
1540
+ requestBody?: never;
1541
+ responses: {
1542
+ /** @description Default Response */
1543
+ 200: {
1544
+ headers: {
1545
+ [name: string]: unknown;
1546
+ };
1547
+ content?: never;
1548
+ };
1549
+ };
1550
+ };
1551
+ put?: never;
1552
+ post?: never;
1553
+ delete?: never;
1554
+ options?: never;
1555
+ head?: never;
1556
+ patch?: never;
1557
+ trace?: never;
1558
+ };
1465
1559
  "/api/v1/summary/send": {
1466
1560
  parameters: {
1467
1561
  query?: never;
@@ -2030,6 +2124,199 @@ export interface paths {
2030
2124
  patch?: never;
2031
2125
  trace?: never;
2032
2126
  };
2127
+ "/api/v1/documents/{id}/recover": {
2128
+ parameters: {
2129
+ query?: never;
2130
+ header?: never;
2131
+ path?: never;
2132
+ cookie?: never;
2133
+ };
2134
+ get?: never;
2135
+ put?: never;
2136
+ /**
2137
+ * Reconciliar un documento con SUNAT (consulta de CDR, solo master)
2138
+ * @description Consulta el estado REAL en SUNAT (getStatusCdr / billConsultService) SIN reenviar y corrige la BD. Útil cuando un documento quedó desincronizado (ej. una boleta ACEPTADA figurando RECHAZADO/COLA_FALLIDA/ENCOLADO). Solo comprobantes 01/03/07/08, solo en producción. Restringido al master API key.
2139
+ */
2140
+ post: {
2141
+ parameters: {
2142
+ query?: never;
2143
+ header?: never;
2144
+ path: {
2145
+ id: string;
2146
+ };
2147
+ cookie?: never;
2148
+ };
2149
+ requestBody?: never;
2150
+ responses: {
2151
+ /** @description Default Response */
2152
+ 200: {
2153
+ headers: {
2154
+ [name: string]: unknown;
2155
+ };
2156
+ content: {
2157
+ "application/json": {
2158
+ success: boolean;
2159
+ message: string;
2160
+ estado?: string;
2161
+ codigo?: string;
2162
+ };
2163
+ };
2164
+ };
2165
+ /** @description Default Response */
2166
+ 400: {
2167
+ headers: {
2168
+ [name: string]: unknown;
2169
+ };
2170
+ content: {
2171
+ "application/json": {
2172
+ /** @enum {boolean} */
2173
+ success: false;
2174
+ message: string;
2175
+ code?: string;
2176
+ errors?: {
2177
+ path: string;
2178
+ message: string;
2179
+ }[];
2180
+ };
2181
+ };
2182
+ };
2183
+ /** @description Default Response */
2184
+ 403: {
2185
+ headers: {
2186
+ [name: string]: unknown;
2187
+ };
2188
+ content: {
2189
+ "application/json": {
2190
+ /** @enum {boolean} */
2191
+ success: false;
2192
+ message: string;
2193
+ code?: string;
2194
+ errors?: {
2195
+ path: string;
2196
+ message: string;
2197
+ }[];
2198
+ };
2199
+ };
2200
+ };
2201
+ /** @description Default Response */
2202
+ 404: {
2203
+ headers: {
2204
+ [name: string]: unknown;
2205
+ };
2206
+ content: {
2207
+ "application/json": {
2208
+ /** @enum {boolean} */
2209
+ success: false;
2210
+ message: string;
2211
+ code?: string;
2212
+ errors?: {
2213
+ path: string;
2214
+ message: string;
2215
+ }[];
2216
+ };
2217
+ };
2218
+ };
2219
+ };
2220
+ };
2221
+ delete?: never;
2222
+ options?: never;
2223
+ head?: never;
2224
+ patch?: never;
2225
+ trace?: never;
2226
+ };
2227
+ "/api/v1/cdr/consultar": {
2228
+ parameters: {
2229
+ query?: never;
2230
+ header?: never;
2231
+ path?: never;
2232
+ cookie?: never;
2233
+ };
2234
+ get?: never;
2235
+ put?: never;
2236
+ /**
2237
+ * Consultar el CDR de un comprobante en SUNAT por referencia
2238
+ * @description Recupera el CDR oficial (billConsultService / getStatusCdr) de un comprobante 01/03/07/08 por RUC+serie+número, aunque no exista en esta BD. Útil para recuperar el histórico emitido por otro PSE. Solo en producción; usa la Clave SOL de la empresa (debe existir y estar en scope de la API key).
2239
+ */
2240
+ post: {
2241
+ parameters: {
2242
+ query?: never;
2243
+ header?: never;
2244
+ path?: never;
2245
+ cookie?: never;
2246
+ };
2247
+ requestBody: {
2248
+ content: {
2249
+ "application/json": {
2250
+ ruc: string;
2251
+ /** @enum {string} */
2252
+ tipoDoc: "01" | "03" | "07" | "08";
2253
+ serie: string;
2254
+ numero: string;
2255
+ };
2256
+ };
2257
+ };
2258
+ responses: {
2259
+ /** @description Default Response */
2260
+ 200: {
2261
+ headers: {
2262
+ [name: string]: unknown;
2263
+ };
2264
+ content: {
2265
+ "application/json": {
2266
+ success: boolean;
2267
+ available: boolean;
2268
+ message: string;
2269
+ statusCode?: string;
2270
+ codigo?: string;
2271
+ descripcion?: string;
2272
+ cdrZipBase64?: string;
2273
+ };
2274
+ };
2275
+ };
2276
+ /** @description Default Response */
2277
+ 400: {
2278
+ headers: {
2279
+ [name: string]: unknown;
2280
+ };
2281
+ content: {
2282
+ "application/json": {
2283
+ /** @enum {boolean} */
2284
+ success: false;
2285
+ message: string;
2286
+ code?: string;
2287
+ errors?: {
2288
+ path: string;
2289
+ message: string;
2290
+ }[];
2291
+ };
2292
+ };
2293
+ };
2294
+ /** @description Default Response */
2295
+ 404: {
2296
+ headers: {
2297
+ [name: string]: unknown;
2298
+ };
2299
+ content: {
2300
+ "application/json": {
2301
+ /** @enum {boolean} */
2302
+ success: false;
2303
+ message: string;
2304
+ code?: string;
2305
+ errors?: {
2306
+ path: string;
2307
+ message: string;
2308
+ }[];
2309
+ };
2310
+ };
2311
+ };
2312
+ };
2313
+ };
2314
+ delete?: never;
2315
+ options?: never;
2316
+ head?: never;
2317
+ patch?: never;
2318
+ trace?: never;
2319
+ };
2033
2320
  "/api/v1/queues/stats": {
2034
2321
  parameters: {
2035
2322
  query?: never;