@invoicetronic/ts-sdk 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/.github/workflows/release.yml +58 -0
- package/LICENSE +21 -0
- package/README.md +55 -0
- package/api.ts +24 -0
- package/base.ts +86 -0
- package/common.ts +151 -0
- package/configuration.ts +116 -0
- package/dist/api.d.ts +18 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +162 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +18 -0
- package/dist/esm/api.js +20 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +66 -0
- package/dist/esm/common.js +150 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/src/api/company-api.d.ts +268 -0
- package/dist/esm/src/api/company-api.js +426 -0
- package/dist/esm/src/api/log-api.d.ts +197 -0
- package/dist/esm/src/api/log-api.js +302 -0
- package/dist/esm/src/api/receive-api.d.ts +259 -0
- package/dist/esm/src/api/receive-api.js +403 -0
- package/dist/esm/src/api/send-api.d.ts +676 -0
- package/dist/esm/src/api/send-api.js +1063 -0
- package/dist/esm/src/api/status-api.d.ts +85 -0
- package/dist/esm/src/api/status-api.js +127 -0
- package/dist/esm/src/api/update-api.d.ts +207 -0
- package/dist/esm/src/api/update-api.js +309 -0
- package/dist/esm/src/api/webhook-api.d.ts +393 -0
- package/dist/esm/src/api/webhook-api.js +620 -0
- package/dist/esm/src/models/allegati.d.ts +48 -0
- package/dist/esm/src/models/allegati.js +14 -0
- package/dist/esm/src/models/altri-dati-gestionali.d.ts +42 -0
- package/dist/esm/src/models/altri-dati-gestionali.js +14 -0
- package/dist/esm/src/models/anagrafica.d.ts +48 -0
- package/dist/esm/src/models/anagrafica.js +14 -0
- package/dist/esm/src/models/cedente-prestatore.d.ts +59 -0
- package/dist/esm/src/models/cedente-prestatore.js +14 -0
- package/dist/esm/src/models/cessionario-committente.d.ts +46 -0
- package/dist/esm/src/models/cessionario-committente.js +14 -0
- package/dist/esm/src/models/codice-articolo.d.ts +30 -0
- package/dist/esm/src/models/codice-articolo.js +14 -0
- package/dist/esm/src/models/company.d.ts +60 -0
- package/dist/esm/src/models/company.js +14 -0
- package/dist/esm/src/models/contatti-trasmittente.d.ts +30 -0
- package/dist/esm/src/models/contatti-trasmittente.js +14 -0
- package/dist/esm/src/models/contatti.d.ts +36 -0
- package/dist/esm/src/models/contatti.js +14 -0
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +68 -0
- package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.js +14 -0
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +38 -0
- package/dist/esm/src/models/dati-anagrafici-cessionario-committente.js +14 -0
- package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +44 -0
- package/dist/esm/src/models/dati-anagrafici-vettore.js +14 -0
- package/dist/esm/src/models/dati-anagrafici.d.ts +38 -0
- package/dist/esm/src/models/dati-anagrafici.js +14 -0
- package/dist/esm/src/models/dati-beni-servizi.d.ts +32 -0
- package/dist/esm/src/models/dati-beni-servizi.js +14 -0
- package/dist/esm/src/models/dati-bollo.d.ts +30 -0
- package/dist/esm/src/models/dati-bollo.js +14 -0
- package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +66 -0
- package/dist/esm/src/models/dati-cassa-previdenziale.js +14 -0
- package/dist/esm/src/models/dati-contratto.d.ts +60 -0
- package/dist/esm/src/models/dati-contratto.js +14 -0
- package/dist/esm/src/models/dati-convenzione.d.ts +60 -0
- package/dist/esm/src/models/dati-convenzione.js +14 -0
- package/dist/esm/src/models/dati-ddt.d.ts +36 -0
- package/dist/esm/src/models/dati-ddt.js +14 -0
- package/dist/esm/src/models/dati-fatture-collegate.d.ts +60 -0
- package/dist/esm/src/models/dati-fatture-collegate.js +14 -0
- package/dist/esm/src/models/dati-generali-documento.d.ts +94 -0
- package/dist/esm/src/models/dati-generali-documento.js +14 -0
- package/dist/esm/src/models/dati-generali.d.ts +88 -0
- package/dist/esm/src/models/dati-generali.js +14 -0
- package/dist/esm/src/models/dati-ordine-acquisto.d.ts +60 -0
- package/dist/esm/src/models/dati-ordine-acquisto.js +14 -0
- package/dist/esm/src/models/dati-pagamento.d.ts +31 -0
- package/dist/esm/src/models/dati-pagamento.js +14 -0
- package/dist/esm/src/models/dati-ricezione.d.ts +60 -0
- package/dist/esm/src/models/dati-ricezione.js +14 -0
- package/dist/esm/src/models/dati-riepilogo.d.ts +66 -0
- package/dist/esm/src/models/dati-riepilogo.js +14 -0
- package/dist/esm/src/models/dati-ritenuta.d.ts +42 -0
- package/dist/esm/src/models/dati-ritenuta.js +14 -0
- package/dist/esm/src/models/dati-sal.d.ts +24 -0
- package/dist/esm/src/models/dati-sal.js +14 -0
- package/dist/esm/src/models/dati-trasmissione.d.ts +56 -0
- package/dist/esm/src/models/dati-trasmissione.js +14 -0
- package/dist/esm/src/models/dati-trasporto.d.ts +98 -0
- package/dist/esm/src/models/dati-trasporto.js +14 -0
- package/dist/esm/src/models/dati-veicoli.d.ts +30 -0
- package/dist/esm/src/models/dati-veicoli.js +14 -0
- package/dist/esm/src/models/dettaglio-linee.d.ts +117 -0
- package/dist/esm/src/models/dettaglio-linee.js +14 -0
- package/dist/esm/src/models/dettaglio-pagamento.d.ts +144 -0
- package/dist/esm/src/models/dettaglio-pagamento.js +14 -0
- package/dist/esm/src/models/document-data.d.ts +30 -0
- package/dist/esm/src/models/document-data.js +14 -0
- package/dist/esm/src/models/event.d.ts +108 -0
- package/dist/esm/src/models/event.js +14 -0
- package/dist/esm/src/models/fattura-elettronica-body.d.ts +53 -0
- package/dist/esm/src/models/fattura-elettronica-body.js +14 -0
- package/dist/esm/src/models/fattura-elettronica-header.d.ts +59 -0
- package/dist/esm/src/models/fattura-elettronica-header.js +14 -0
- package/dist/esm/src/models/fattura-ordinaria.d.ts +38 -0
- package/dist/esm/src/models/fattura-ordinaria.js +14 -0
- package/dist/esm/src/models/fattura-principale.d.ts +30 -0
- package/dist/esm/src/models/fattura-principale.js +14 -0
- package/dist/esm/src/models/id-fiscale-iva.d.ts +30 -0
- package/dist/esm/src/models/id-fiscale-iva.js +14 -0
- package/dist/esm/src/models/id-trasmittente.d.ts +30 -0
- package/dist/esm/src/models/id-trasmittente.js +14 -0
- package/dist/esm/src/models/index.d.ts +60 -0
- package/dist/esm/src/models/index.js +60 -0
- package/dist/esm/src/models/indirizzo-resa.d.ts +54 -0
- package/dist/esm/src/models/indirizzo-resa.js +14 -0
- package/dist/esm/src/models/iscrizione-rea.d.ts +48 -0
- package/dist/esm/src/models/iscrizione-rea.js +14 -0
- package/dist/esm/src/models/model-error.d.ts +36 -0
- package/dist/esm/src/models/model-error.js +14 -0
- package/dist/esm/src/models/problem-details.d.ts +49 -0
- package/dist/esm/src/models/problem-details.js +14 -0
- package/dist/esm/src/models/problem-http-result.d.ts +37 -0
- package/dist/esm/src/models/problem-http-result.js +14 -0
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +43 -0
- package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.js +14 -0
- package/dist/esm/src/models/rappresentante-fiscale.d.ts +25 -0
- package/dist/esm/src/models/rappresentante-fiscale.js +14 -0
- package/dist/esm/src/models/receive.d.ts +126 -0
- package/dist/esm/src/models/receive.js +17 -0
- package/dist/esm/src/models/sconto-maggiorazione.d.ts +36 -0
- package/dist/esm/src/models/sconto-maggiorazione.js +14 -0
- package/dist/esm/src/models/sede-cedente-prestatore.d.ts +54 -0
- package/dist/esm/src/models/sede-cedente-prestatore.js +14 -0
- package/dist/esm/src/models/sede-cessionario-committente.d.ts +54 -0
- package/dist/esm/src/models/sede-cessionario-committente.js +14 -0
- package/dist/esm/src/models/send-reduced.d.ts +51 -0
- package/dist/esm/src/models/send-reduced.js +14 -0
- package/dist/esm/src/models/send.d.ts +129 -0
- package/dist/esm/src/models/send.js +17 -0
- package/dist/esm/src/models/stabile-organizzazione.d.ts +54 -0
- package/dist/esm/src/models/stabile-organizzazione.js +14 -0
- package/dist/esm/src/models/status.d.ts +30 -0
- package/dist/esm/src/models/status.js +14 -0
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +25 -0
- package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.js +14 -0
- package/dist/esm/src/models/update.d.ts +109 -0
- package/dist/esm/src/models/update.js +24 -0
- package/dist/esm/src/models/web-hook-history.d.ts +72 -0
- package/dist/esm/src/models/web-hook-history.js +14 -0
- package/dist/esm/src/models/web-hook.d.ts +78 -0
- package/dist/esm/src/models/web-hook.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/src/api/company-api.d.ts +268 -0
- package/dist/src/api/company-api.js +433 -0
- package/dist/src/api/log-api.d.ts +197 -0
- package/dist/src/api/log-api.js +309 -0
- package/dist/src/api/receive-api.d.ts +259 -0
- package/dist/src/api/receive-api.js +410 -0
- package/dist/src/api/send-api.d.ts +676 -0
- package/dist/src/api/send-api.js +1070 -0
- package/dist/src/api/status-api.d.ts +85 -0
- package/dist/src/api/status-api.js +134 -0
- package/dist/src/api/update-api.d.ts +207 -0
- package/dist/src/api/update-api.js +316 -0
- package/dist/src/api/webhook-api.d.ts +393 -0
- package/dist/src/api/webhook-api.js +627 -0
- package/dist/src/models/allegati.d.ts +48 -0
- package/dist/src/models/allegati.js +15 -0
- package/dist/src/models/altri-dati-gestionali.d.ts +42 -0
- package/dist/src/models/altri-dati-gestionali.js +15 -0
- package/dist/src/models/anagrafica.d.ts +48 -0
- package/dist/src/models/anagrafica.js +15 -0
- package/dist/src/models/cedente-prestatore.d.ts +59 -0
- package/dist/src/models/cedente-prestatore.js +15 -0
- package/dist/src/models/cessionario-committente.d.ts +46 -0
- package/dist/src/models/cessionario-committente.js +15 -0
- package/dist/src/models/codice-articolo.d.ts +30 -0
- package/dist/src/models/codice-articolo.js +15 -0
- package/dist/src/models/company.d.ts +60 -0
- package/dist/src/models/company.js +15 -0
- package/dist/src/models/contatti-trasmittente.d.ts +30 -0
- package/dist/src/models/contatti-trasmittente.js +15 -0
- package/dist/src/models/contatti.d.ts +36 -0
- package/dist/src/models/contatti.js +15 -0
- package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +68 -0
- package/dist/src/models/dati-anagrafici-cedente-prestatore.js +15 -0
- package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +38 -0
- package/dist/src/models/dati-anagrafici-cessionario-committente.js +15 -0
- package/dist/src/models/dati-anagrafici-vettore.d.ts +44 -0
- package/dist/src/models/dati-anagrafici-vettore.js +15 -0
- package/dist/src/models/dati-anagrafici.d.ts +38 -0
- package/dist/src/models/dati-anagrafici.js +15 -0
- package/dist/src/models/dati-beni-servizi.d.ts +32 -0
- package/dist/src/models/dati-beni-servizi.js +15 -0
- package/dist/src/models/dati-bollo.d.ts +30 -0
- package/dist/src/models/dati-bollo.js +15 -0
- package/dist/src/models/dati-cassa-previdenziale.d.ts +66 -0
- package/dist/src/models/dati-cassa-previdenziale.js +15 -0
- package/dist/src/models/dati-contratto.d.ts +60 -0
- package/dist/src/models/dati-contratto.js +15 -0
- package/dist/src/models/dati-convenzione.d.ts +60 -0
- package/dist/src/models/dati-convenzione.js +15 -0
- package/dist/src/models/dati-ddt.d.ts +36 -0
- package/dist/src/models/dati-ddt.js +15 -0
- package/dist/src/models/dati-fatture-collegate.d.ts +60 -0
- package/dist/src/models/dati-fatture-collegate.js +15 -0
- package/dist/src/models/dati-generali-documento.d.ts +94 -0
- package/dist/src/models/dati-generali-documento.js +15 -0
- package/dist/src/models/dati-generali.d.ts +88 -0
- package/dist/src/models/dati-generali.js +15 -0
- package/dist/src/models/dati-ordine-acquisto.d.ts +60 -0
- package/dist/src/models/dati-ordine-acquisto.js +15 -0
- package/dist/src/models/dati-pagamento.d.ts +31 -0
- package/dist/src/models/dati-pagamento.js +15 -0
- package/dist/src/models/dati-ricezione.d.ts +60 -0
- package/dist/src/models/dati-ricezione.js +15 -0
- package/dist/src/models/dati-riepilogo.d.ts +66 -0
- package/dist/src/models/dati-riepilogo.js +15 -0
- package/dist/src/models/dati-ritenuta.d.ts +42 -0
- package/dist/src/models/dati-ritenuta.js +15 -0
- package/dist/src/models/dati-sal.d.ts +24 -0
- package/dist/src/models/dati-sal.js +15 -0
- package/dist/src/models/dati-trasmissione.d.ts +56 -0
- package/dist/src/models/dati-trasmissione.js +15 -0
- package/dist/src/models/dati-trasporto.d.ts +98 -0
- package/dist/src/models/dati-trasporto.js +15 -0
- package/dist/src/models/dati-veicoli.d.ts +30 -0
- package/dist/src/models/dati-veicoli.js +15 -0
- package/dist/src/models/dettaglio-linee.d.ts +117 -0
- package/dist/src/models/dettaglio-linee.js +15 -0
- package/dist/src/models/dettaglio-pagamento.d.ts +144 -0
- package/dist/src/models/dettaglio-pagamento.js +15 -0
- package/dist/src/models/document-data.d.ts +30 -0
- package/dist/src/models/document-data.js +15 -0
- package/dist/src/models/event.d.ts +108 -0
- package/dist/src/models/event.js +15 -0
- package/dist/src/models/fattura-elettronica-body.d.ts +53 -0
- package/dist/src/models/fattura-elettronica-body.js +15 -0
- package/dist/src/models/fattura-elettronica-header.d.ts +59 -0
- package/dist/src/models/fattura-elettronica-header.js +15 -0
- package/dist/src/models/fattura-ordinaria.d.ts +38 -0
- package/dist/src/models/fattura-ordinaria.js +15 -0
- package/dist/src/models/fattura-principale.d.ts +30 -0
- package/dist/src/models/fattura-principale.js +15 -0
- package/dist/src/models/id-fiscale-iva.d.ts +30 -0
- package/dist/src/models/id-fiscale-iva.js +15 -0
- package/dist/src/models/id-trasmittente.d.ts +30 -0
- package/dist/src/models/id-trasmittente.js +15 -0
- package/dist/src/models/index.d.ts +60 -0
- package/dist/src/models/index.js +76 -0
- package/dist/src/models/indirizzo-resa.d.ts +54 -0
- package/dist/src/models/indirizzo-resa.js +15 -0
- package/dist/src/models/iscrizione-rea.d.ts +48 -0
- package/dist/src/models/iscrizione-rea.js +15 -0
- package/dist/src/models/model-error.d.ts +36 -0
- package/dist/src/models/model-error.js +15 -0
- package/dist/src/models/problem-details.d.ts +49 -0
- package/dist/src/models/problem-details.js +15 -0
- package/dist/src/models/problem-http-result.d.ts +37 -0
- package/dist/src/models/problem-http-result.js +15 -0
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +43 -0
- package/dist/src/models/rappresentante-fiscale-cessionario-committente.js +15 -0
- package/dist/src/models/rappresentante-fiscale.d.ts +25 -0
- package/dist/src/models/rappresentante-fiscale.js +15 -0
- package/dist/src/models/receive.d.ts +126 -0
- package/dist/src/models/receive.js +20 -0
- package/dist/src/models/sconto-maggiorazione.d.ts +36 -0
- package/dist/src/models/sconto-maggiorazione.js +15 -0
- package/dist/src/models/sede-cedente-prestatore.d.ts +54 -0
- package/dist/src/models/sede-cedente-prestatore.js +15 -0
- package/dist/src/models/sede-cessionario-committente.d.ts +54 -0
- package/dist/src/models/sede-cessionario-committente.js +15 -0
- package/dist/src/models/send-reduced.d.ts +51 -0
- package/dist/src/models/send-reduced.js +15 -0
- package/dist/src/models/send.d.ts +129 -0
- package/dist/src/models/send.js +20 -0
- package/dist/src/models/stabile-organizzazione.d.ts +54 -0
- package/dist/src/models/stabile-organizzazione.js +15 -0
- package/dist/src/models/status.d.ts +30 -0
- package/dist/src/models/status.js +15 -0
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +25 -0
- package/dist/src/models/terzo-intermediario-osoggetto-emittente.js +15 -0
- package/dist/src/models/update.d.ts +109 -0
- package/dist/src/models/update.js +27 -0
- package/dist/src/models/web-hook-history.d.ts +72 -0
- package/dist/src/models/web-hook-history.js +15 -0
- package/dist/src/models/web-hook.d.ts +78 -0
- package/dist/src/models/web-hook.js +15 -0
- package/docs/Allegati.md +28 -0
- package/docs/AltriDatiGestionali.md +26 -0
- package/docs/Anagrafica.md +28 -0
- package/docs/CedentePrestatore.md +30 -0
- package/docs/CessionarioCommittente.md +26 -0
- package/docs/CodiceArticolo.md +22 -0
- package/docs/Company.md +33 -0
- package/docs/CompanyApi.md +285 -0
- package/docs/Contatti.md +24 -0
- package/docs/ContattiTrasmittente.md +22 -0
- package/docs/DatiAnagrafici.md +24 -0
- package/docs/DatiAnagraficiCedentePrestatore.md +34 -0
- package/docs/DatiAnagraficiCessionarioCommittente.md +24 -0
- package/docs/DatiAnagraficiVettore.md +26 -0
- package/docs/DatiBeniServizi.md +22 -0
- package/docs/DatiBollo.md +22 -0
- package/docs/DatiCassaPrevidenziale.md +34 -0
- package/docs/DatiContratto.md +32 -0
- package/docs/DatiConvenzione.md +32 -0
- package/docs/DatiDDT.md +24 -0
- package/docs/DatiFattureCollegate.md +32 -0
- package/docs/DatiGenerali.md +38 -0
- package/docs/DatiGeneraliDocumento.md +42 -0
- package/docs/DatiOrdineAcquisto.md +32 -0
- package/docs/DatiPagamento.md +22 -0
- package/docs/DatiRicezione.md +32 -0
- package/docs/DatiRiepilogo.md +34 -0
- package/docs/DatiRitenuta.md +26 -0
- package/docs/DatiSAL.md +20 -0
- package/docs/DatiTrasmissione.md +30 -0
- package/docs/DatiTrasporto.md +44 -0
- package/docs/DatiVeicoli.md +22 -0
- package/docs/DettaglioLinee.md +50 -0
- package/docs/DettaglioPagamento.md +60 -0
- package/docs/DocumentData.md +22 -0
- package/docs/Error.md +25 -0
- package/docs/Event.md +48 -0
- package/docs/FatturaElettronicaBody.md +28 -0
- package/docs/FatturaElettronicaHeader.md +30 -0
- package/docs/FatturaOrdinaria.md +24 -0
- package/docs/FatturaPrincipale.md +22 -0
- package/docs/IdFiscaleIVA.md +22 -0
- package/docs/IdTrasmittente.md +22 -0
- package/docs/IndirizzoResa.md +30 -0
- package/docs/IscrizioneREA.md +28 -0
- package/docs/LogApi.md +153 -0
- package/docs/ProblemDetails.md +28 -0
- package/docs/ProblemHttpResult.md +24 -0
- package/docs/RappresentanteFiscale.md +20 -0
- package/docs/RappresentanteFiscaleCessionarioCommittente.md +26 -0
- package/docs/Receive.md +52 -0
- package/docs/ReceiveApi.md +220 -0
- package/docs/ScontoMaggiorazione.md +24 -0
- package/docs/SedeCedentePrestatore.md +30 -0
- package/docs/SedeCessionarioCommittente.md +30 -0
- package/docs/Send.md +52 -0
- package/docs/SendApi.md +681 -0
- package/docs/SendReduced.md +29 -0
- package/docs/StabileOrganizzazione.md +30 -0
- package/docs/Status.md +22 -0
- package/docs/StatusApi.md +52 -0
- package/docs/TerzoIntermediarioOSoggettoEmittente.md +20 -0
- package/docs/Update.md +44 -0
- package/docs/UpdateApi.md +150 -0
- package/docs/WebHook.md +38 -0
- package/docs/WebHookHistory.md +37 -0
- package/docs/WebhookApi.md +416 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/src/api/company-api.ts +515 -0
- package/src/api/log-api.ts +367 -0
- package/src/api/receive-api.ts +490 -0
- package/src/api/send-api.ts +1296 -0
- package/src/api/status-api.ts +148 -0
- package/src/api/update-api.ts +373 -0
- package/src/api/webhook-api.ts +756 -0
- package/src/models/allegati.ts +54 -0
- package/src/models/altri-dati-gestionali.ts +48 -0
- package/src/models/anagrafica.ts +54 -0
- package/src/models/cedente-prestatore.ts +75 -0
- package/src/models/cessionario-committente.ts +60 -0
- package/src/models/codice-articolo.ts +36 -0
- package/src/models/company.ts +66 -0
- package/src/models/contatti-trasmittente.ts +36 -0
- package/src/models/contatti.ts +42 -0
- package/src/models/dati-anagrafici-cedente-prestatore.ts +78 -0
- package/src/models/dati-anagrafici-cessionario-committente.ts +48 -0
- package/src/models/dati-anagrafici-vettore.ts +54 -0
- package/src/models/dati-anagrafici.ts +48 -0
- package/src/models/dati-beni-servizi.ts +42 -0
- package/src/models/dati-bollo.ts +36 -0
- package/src/models/dati-cassa-previdenziale.ts +72 -0
- package/src/models/dati-contratto.ts +66 -0
- package/src/models/dati-convenzione.ts +66 -0
- package/src/models/dati-ddt.ts +42 -0
- package/src/models/dati-fatture-collegate.ts +66 -0
- package/src/models/dati-generali-documento.ts +108 -0
- package/src/models/dati-generali.ts +114 -0
- package/src/models/dati-ordine-acquisto.ts +66 -0
- package/src/models/dati-pagamento.ts +39 -0
- package/src/models/dati-ricezione.ts +66 -0
- package/src/models/dati-riepilogo.ts +72 -0
- package/src/models/dati-ritenuta.ts +48 -0
- package/src/models/dati-sal.ts +30 -0
- package/src/models/dati-trasmissione.ts +66 -0
- package/src/models/dati-trasporto.ts +108 -0
- package/src/models/dati-veicoli.ts +36 -0
- package/src/models/dettaglio-linee.ts +129 -0
- package/src/models/dettaglio-pagamento.ts +150 -0
- package/src/models/document-data.ts +36 -0
- package/src/models/event.ts +114 -0
- package/src/models/fattura-elettronica-body.ts +69 -0
- package/src/models/fattura-elettronica-header.ts +75 -0
- package/src/models/fattura-ordinaria.ts +48 -0
- package/src/models/fattura-principale.ts +36 -0
- package/src/models/id-fiscale-iva.ts +36 -0
- package/src/models/id-trasmittente.ts +36 -0
- package/src/models/index.ts +60 -0
- package/src/models/indirizzo-resa.ts +60 -0
- package/src/models/iscrizione-rea.ts +54 -0
- package/src/models/model-error.ts +42 -0
- package/src/models/problem-details.ts +56 -0
- package/src/models/problem-http-result.ts +45 -0
- package/src/models/rappresentante-fiscale-cessionario-committente.ts +51 -0
- package/src/models/rappresentante-fiscale.ts +33 -0
- package/src/models/receive.ts +137 -0
- package/src/models/sconto-maggiorazione.ts +42 -0
- package/src/models/sede-cedente-prestatore.ts +60 -0
- package/src/models/sede-cessionario-committente.ts +60 -0
- package/src/models/send-reduced.ts +57 -0
- package/src/models/send.ts +140 -0
- package/src/models/stabile-organizzazione.ts +60 -0
- package/src/models/status.ts +36 -0
- package/src/models/terzo-intermediario-osoggetto-emittente.ts +33 -0
- package/src/models/update.ts +120 -0
- package/src/models/web-hook-history.ts +78 -0
- package/src/models/web-hook.ts +84 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/base.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Invoicetronic API
|
|
6
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: info@invoicetronic.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
exports.COLLECTION_FORMATS = {
|
|
24
|
+
csv: ",",
|
|
25
|
+
ssv: " ",
|
|
26
|
+
tsv: "\t",
|
|
27
|
+
pipes: "|",
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @class BaseAPI
|
|
33
|
+
*/
|
|
34
|
+
class BaseAPI {
|
|
35
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
36
|
+
var _a;
|
|
37
|
+
this.basePath = basePath;
|
|
38
|
+
this.axios = axios;
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.BaseAPI = BaseAPI;
|
|
46
|
+
;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @class RequiredError
|
|
51
|
+
* @extends {Error}
|
|
52
|
+
*/
|
|
53
|
+
class RequiredError extends Error {
|
|
54
|
+
constructor(field, msg) {
|
|
55
|
+
super(msg);
|
|
56
|
+
this.field = field;
|
|
57
|
+
this.name = "RequiredError";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.RequiredError = RequiredError;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
exports.operationServerMap = {};
|
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
import { URL } from 'url';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const toPathString: (url: URL) => string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Invoicetronic API
|
|
6
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: info@invoicetronic.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
26
|
+
const base_1 = require("./base");
|
|
27
|
+
const url_1 = require("url");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
39
|
+
if (paramValue === null || paramValue === undefined) {
|
|
40
|
+
throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.assertParamExists = assertParamExists;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
if (configuration && configuration.apiKey) {
|
|
51
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
52
|
+
? yield configuration.apiKey(keyParamName)
|
|
53
|
+
: yield configuration.apiKey;
|
|
54
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
const setBasicAuthToObject = function (object, configuration) {
|
|
64
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
65
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
const setBearerAuthToObject = function (object, configuration) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (configuration && configuration.accessToken) {
|
|
76
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
77
|
+
? yield configuration.accessToken()
|
|
78
|
+
: yield configuration.accessToken;
|
|
79
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
if (configuration && configuration.accessToken) {
|
|
91
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
92
|
+
? yield configuration.accessToken(name, scopes)
|
|
93
|
+
: yield configuration.accessToken;
|
|
94
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
exports.setOAuthToObject = setOAuthToObject;
|
|
99
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
100
|
+
if (parameter == null)
|
|
101
|
+
return;
|
|
102
|
+
if (typeof parameter === "object") {
|
|
103
|
+
if (Array.isArray(parameter)) {
|
|
104
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
if (urlSearchParams.has(key)) {
|
|
112
|
+
urlSearchParams.append(key, parameter);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
urlSearchParams.set(key, parameter);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
const setSearchParams = function (url, ...objects) {
|
|
124
|
+
const searchParams = new url_1.URLSearchParams(url.search);
|
|
125
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
126
|
+
url.search = searchParams.toString();
|
|
127
|
+
};
|
|
128
|
+
exports.setSearchParams = setSearchParams;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @export
|
|
132
|
+
*/
|
|
133
|
+
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
134
|
+
const nonString = typeof value !== 'string';
|
|
135
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
136
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
137
|
+
: nonString;
|
|
138
|
+
return needsSerialization
|
|
139
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
140
|
+
: (value || "");
|
|
141
|
+
};
|
|
142
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
const toPathString = function (url) {
|
|
148
|
+
return url.pathname + url.search + url.hash;
|
|
149
|
+
};
|
|
150
|
+
exports.toPathString = toPathString;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @export
|
|
154
|
+
*/
|
|
155
|
+
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
156
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
157
|
+
var _a;
|
|
158
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
159
|
+
return axios.request(axiosRequestArgs);
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
exports.createRequestFunction = createRequestFunction;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
19
|
+
baseOptions?: any;
|
|
20
|
+
formDataCtor?: new () => any;
|
|
21
|
+
}
|
|
22
|
+
export declare class Configuration {
|
|
23
|
+
/**
|
|
24
|
+
* parameter for apiKey security
|
|
25
|
+
* @param name security name
|
|
26
|
+
* @memberof Configuration
|
|
27
|
+
*/
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
/**
|
|
30
|
+
* parameter for basic security
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Configuration
|
|
34
|
+
*/
|
|
35
|
+
username?: string;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for basic security
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Configuration
|
|
41
|
+
*/
|
|
42
|
+
password?: string;
|
|
43
|
+
/**
|
|
44
|
+
* parameter for oauth2 security
|
|
45
|
+
* @param name security name
|
|
46
|
+
* @param scopes oauth2 scope
|
|
47
|
+
* @memberof Configuration
|
|
48
|
+
*/
|
|
49
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
|
+
/**
|
|
51
|
+
* override base path
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Configuration
|
|
55
|
+
*/
|
|
56
|
+
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
64
|
+
/**
|
|
65
|
+
* base options for axios calls
|
|
66
|
+
*
|
|
67
|
+
* @type {any}
|
|
68
|
+
* @memberof Configuration
|
|
69
|
+
*/
|
|
70
|
+
baseOptions?: any;
|
|
71
|
+
/**
|
|
72
|
+
* The FormData constructor that will be used to create multipart form data
|
|
73
|
+
* requests. You can inject this here so that execution environments that
|
|
74
|
+
* do not support the FormData class can still run the generated client.
|
|
75
|
+
*
|
|
76
|
+
* @type {new () => FormData}
|
|
77
|
+
*/
|
|
78
|
+
formDataCtor?: new () => any;
|
|
79
|
+
constructor(param?: ConfigurationParameters);
|
|
80
|
+
/**
|
|
81
|
+
* Check if the given MIME is a JSON MIME.
|
|
82
|
+
* JSON MIME examples:
|
|
83
|
+
* application/json
|
|
84
|
+
* application/json; charset=UTF8
|
|
85
|
+
* APPLICATION/JSON
|
|
86
|
+
* application/vnd.company+json
|
|
87
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
88
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
89
|
+
*/
|
|
90
|
+
isJsonMime(mime: string): boolean;
|
|
91
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Invoicetronic API
|
|
6
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: info@invoicetronic.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Configuration = void 0;
|
|
17
|
+
class Configuration {
|
|
18
|
+
constructor(param = {}) {
|
|
19
|
+
var _a;
|
|
20
|
+
this.apiKey = param.apiKey;
|
|
21
|
+
this.username = param.username;
|
|
22
|
+
this.password = param.password;
|
|
23
|
+
this.accessToken = param.accessToken;
|
|
24
|
+
this.basePath = param.basePath;
|
|
25
|
+
this.serverIndex = param.serverIndex;
|
|
26
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.0.0/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
27
|
+
this.formDataCtor = param.formDataCtor;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if the given MIME is a JSON MIME.
|
|
31
|
+
* JSON MIME examples:
|
|
32
|
+
* application/json
|
|
33
|
+
* application/json; charset=UTF8
|
|
34
|
+
* APPLICATION/JSON
|
|
35
|
+
* application/vnd.company+json
|
|
36
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
37
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
38
|
+
*/
|
|
39
|
+
isJsonMime(mime) {
|
|
40
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
41
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Configuration = Configuration;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from './src/api/company-api';
|
|
13
|
+
export * from './src/api/log-api';
|
|
14
|
+
export * from './src/api/receive-api';
|
|
15
|
+
export * from './src/api/send-api';
|
|
16
|
+
export * from './src/api/status-api';
|
|
17
|
+
export * from './src/api/update-api';
|
|
18
|
+
export * from './src/api/webhook-api';
|
package/dist/esm/api.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Invoicetronic API
|
|
5
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: info@invoicetronic.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export * from './src/api/company-api';
|
|
15
|
+
export * from './src/api/log-api';
|
|
16
|
+
export * from './src/api/receive-api';
|
|
17
|
+
export * from './src/api/send-api';
|
|
18
|
+
export * from './src/api/status-api';
|
|
19
|
+
export * from './src/api/update-api';
|
|
20
|
+
export * from './src/api/webhook-api';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
package/dist/esm/base.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Invoicetronic API
|
|
5
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: info@invoicetronic.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import globalAxios from 'axios';
|
|
15
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const COLLECTION_FORMATS = {
|
|
21
|
+
csv: ",",
|
|
22
|
+
ssv: " ",
|
|
23
|
+
tsv: "\t",
|
|
24
|
+
pipes: "|",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @class BaseAPI
|
|
30
|
+
*/
|
|
31
|
+
export class BaseAPI {
|
|
32
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
+
var _a;
|
|
34
|
+
this.basePath = basePath;
|
|
35
|
+
this.axios = axios;
|
|
36
|
+
if (configuration) {
|
|
37
|
+
this.configuration = configuration;
|
|
38
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
* @class RequiredError
|
|
47
|
+
* @extends {Error}
|
|
48
|
+
*/
|
|
49
|
+
export class RequiredError extends Error {
|
|
50
|
+
constructor(field, msg) {
|
|
51
|
+
super(msg);
|
|
52
|
+
this.field = field;
|
|
53
|
+
this.name = "RequiredError";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const operationServerMap = {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invoicetronic API
|
|
3
|
+
* The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: info@invoicetronic.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
import { URL } from 'url';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const toPathString: (url: URL) => string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|