intifact 1.1.1 → 1.1.2

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 CHANGED
@@ -41,20 +41,42 @@ console.log("Estado:", finalDoc.data.sunat.estado);
41
41
 
42
42
  ### Emisión
43
43
  - `sendInvoice(body)` — factura (01) o boleta (03)
44
+ - `computeInvoice(body)` — calcular importes (Modelo B) sin emitir
44
45
  - `sendNote(body)` — nota crédito (07) o débito (08)
45
- - `sendDespatch(body)` — guía remisión (09 - GRE REST)
46
- - `sendSummary(body)` — resumen diario boletas
46
+ - `computeNote(body)` — calcular importes de nota sin emitir
47
+ - `sendDespatch(body)` — guía remisión remitente (09)
48
+ - `sendDespatchMulti(body)` — varias guías en un request
49
+ - `sendDespatchTransportista(body)` — guía remisión transportista (31)
50
+ - `sendSummary(body)` — resumen diario
47
51
  - `sendVoided(body)` — comunicación de baja
48
52
 
53
+ ### Anulaciones
54
+ - `cancelInvoice(body)` — anular factura
55
+ - `cancelBoleta(body)` — anular boleta
56
+
49
57
  ### Consultas
50
58
  - `listDocuments(query?)` — listado paginado con filtros
51
59
  - `getDocument(id)` — detalle completo
60
+ - `getNextCorrelativo(query)` — siguiente correlativo de una serie
52
61
  - `getTicketStatus(ticket, ruc)` — estado de ticket asíncrono
53
62
 
54
- ### Archivos
55
- - `getInvoiceXml(id)` → ArrayBuffer
56
- - `getInvoiceCdr(id)` → ArrayBuffer (constancia SUNAT)
57
- - `getInvoicePdf(id)` → ArrayBuffer
63
+ ### Archivos (ArrayBuffer)
64
+ - `getInvoiceXml(id)` / `getInvoiceCdr(id)` / `getInvoicePdf(id)`
65
+ - `getNoteXml(id)` / `getNotePdf(id)`
66
+ - `getDespatchXml(id)` / `getDespatchPdf(id, format?)` — `format`: a4 | ticket80 | ticket58
67
+
68
+ ### Webhooks
69
+ - `createWebhook(body)` / `listWebhooks()` / `getWebhook(id)`
70
+ - `updateWebhook(id, body)` / `deleteWebhook(id)`
71
+ - `listWebhookDeliveries(id)` / `redeliverWebhook(id, deliveryId)`
72
+ - `testWebhook(id)` / `rotateWebhookSecret(id)`
73
+
74
+ ### Catálogos SUNAT
75
+ - `getCatalogs()` / `getCatalog(key)`
76
+
77
+ ### Consulta pública (sin auth — clientes finales)
78
+ - `consultarComprobante(ruc, tipoDoc, serie, numero)`
79
+ - `consultarComprobantePdf(...)` / `consultarComprobanteXml(...)` → ArrayBuffer
58
80
 
59
81
  ### Cola
60
82
  - `retryDocument(id)` — re-encolar documento fallido
@@ -62,11 +84,11 @@ console.log("Estado:", finalDoc.data.sunat.estado);
62
84
  - `waitForDocument(id, opts?)` — polling hasta estado final
63
85
 
64
86
  ### Empresas (solo lectura)
65
- - `listCompanies()`
66
- - `getCompany(id)`
87
+ - `listCompanies()` / `getCompany(id)` / `getCompanyLogo(id)`
67
88
 
68
- > Crear empresas, subir certificado/logo son operaciones administrativas
69
- > (requieren `MASTER_API_KEY`) y no se exponen en el SDK — las gestiona el backend.
89
+ > Crear empresas, subir certificado/logo, gestionar API keys, tenants, audit y
90
+ > planes son operaciones administrativas (requieren `MASTER_API_KEY`) y no se
91
+ > exponen en el SDK — las gestiona el backend (ERP).
70
92
 
71
93
  ## Regenerar tipos
72
94