@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
|
@@ -0,0 +1,627 @@
|
|
|
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.WebhookApi = exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const url_1 = require("url");
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("../../common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("../../base");
|
|
35
|
+
/**
|
|
36
|
+
* WebhookApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const WebhookApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
43
|
+
* @summary List webhooks
|
|
44
|
+
* @param {number} [companyId] Company id
|
|
45
|
+
* @param {number} [page] Page number.
|
|
46
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
47
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
48
|
+
* @param {string} [description]
|
|
49
|
+
* @param {boolean} [enabled]
|
|
50
|
+
* @param {string} [events]
|
|
51
|
+
* @param {string} [url]
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
webhookGet: (companyId_1, page_1, pageSize_1, sort_1, description_1, enabled_1, events_1, url_2, ...args_1) => __awaiter(this, [companyId_1, page_1, pageSize_1, sort_1, description_1, enabled_1, events_1, url_2, ...args_1], void 0, function* (companyId, page, pageSize, sort, description, enabled, events, url, options = {}) {
|
|
56
|
+
const localVarPath = `/webhook`;
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
}
|
|
63
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
64
|
+
const localVarHeaderParameter = {};
|
|
65
|
+
const localVarQueryParameter = {};
|
|
66
|
+
// authentication Basic required
|
|
67
|
+
// http basic authentication required
|
|
68
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
69
|
+
if (companyId !== undefined) {
|
|
70
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
71
|
+
}
|
|
72
|
+
if (page !== undefined) {
|
|
73
|
+
localVarQueryParameter['page'] = page;
|
|
74
|
+
}
|
|
75
|
+
if (pageSize !== undefined) {
|
|
76
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
77
|
+
}
|
|
78
|
+
if (sort !== undefined) {
|
|
79
|
+
localVarQueryParameter['sort'] = sort;
|
|
80
|
+
}
|
|
81
|
+
if (description !== undefined) {
|
|
82
|
+
localVarQueryParameter['description'] = description;
|
|
83
|
+
}
|
|
84
|
+
if (enabled !== undefined) {
|
|
85
|
+
localVarQueryParameter['enabled'] = enabled;
|
|
86
|
+
}
|
|
87
|
+
if (events !== undefined) {
|
|
88
|
+
localVarQueryParameter['events'] = events;
|
|
89
|
+
}
|
|
90
|
+
if (url !== undefined) {
|
|
91
|
+
localVarQueryParameter['url'] = url;
|
|
92
|
+
}
|
|
93
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
94
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
96
|
+
return {
|
|
97
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
}),
|
|
101
|
+
/**
|
|
102
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
103
|
+
* @summary Delete a webhook by id
|
|
104
|
+
* @param {number} id Item id
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
webhookIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
109
|
+
// verify required parameter 'id' is not null or undefined
|
|
110
|
+
(0, common_1.assertParamExists)('webhookIdDelete', 'id', id);
|
|
111
|
+
const localVarPath = `/webhook/{id}`
|
|
112
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
let baseOptions;
|
|
116
|
+
if (configuration) {
|
|
117
|
+
baseOptions = configuration.baseOptions;
|
|
118
|
+
}
|
|
119
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
120
|
+
const localVarHeaderParameter = {};
|
|
121
|
+
const localVarQueryParameter = {};
|
|
122
|
+
// authentication Basic required
|
|
123
|
+
// http basic authentication required
|
|
124
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
125
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
128
|
+
return {
|
|
129
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
}),
|
|
133
|
+
/**
|
|
134
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
135
|
+
* @summary Get a webhook by id
|
|
136
|
+
* @param {number} id Item id
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
webhookIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
141
|
+
// verify required parameter 'id' is not null or undefined
|
|
142
|
+
(0, common_1.assertParamExists)('webhookIdGet', 'id', id);
|
|
143
|
+
const localVarPath = `/webhook/{id}`
|
|
144
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
if (configuration) {
|
|
149
|
+
baseOptions = configuration.baseOptions;
|
|
150
|
+
}
|
|
151
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
152
|
+
const localVarHeaderParameter = {};
|
|
153
|
+
const localVarQueryParameter = {};
|
|
154
|
+
// authentication Basic required
|
|
155
|
+
// http basic authentication required
|
|
156
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
157
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
160
|
+
return {
|
|
161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
}),
|
|
165
|
+
/**
|
|
166
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
167
|
+
* @summary Add a webhook
|
|
168
|
+
* @param {WebHook} webHook
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
webhookPost: (webHook_1, ...args_1) => __awaiter(this, [webHook_1, ...args_1], void 0, function* (webHook, options = {}) {
|
|
173
|
+
// verify required parameter 'webHook' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('webhookPost', 'webHook', webHook);
|
|
175
|
+
const localVarPath = `/webhook`;
|
|
176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
177
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
178
|
+
let baseOptions;
|
|
179
|
+
if (configuration) {
|
|
180
|
+
baseOptions = configuration.baseOptions;
|
|
181
|
+
}
|
|
182
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
183
|
+
const localVarHeaderParameter = {};
|
|
184
|
+
const localVarQueryParameter = {};
|
|
185
|
+
// authentication Basic required
|
|
186
|
+
// http basic authentication required
|
|
187
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
188
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
189
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webHook, localVarRequestOptions, configuration);
|
|
193
|
+
return {
|
|
194
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions,
|
|
196
|
+
};
|
|
197
|
+
}),
|
|
198
|
+
/**
|
|
199
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
200
|
+
* @summary Update a webhook
|
|
201
|
+
* @param {WebHook} webHook
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
webhookPut: (webHook_1, ...args_1) => __awaiter(this, [webHook_1, ...args_1], void 0, function* (webHook, options = {}) {
|
|
206
|
+
// verify required parameter 'webHook' is not null or undefined
|
|
207
|
+
(0, common_1.assertParamExists)('webhookPut', 'webHook', webHook);
|
|
208
|
+
const localVarPath = `/webhook`;
|
|
209
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
211
|
+
let baseOptions;
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
}
|
|
215
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
216
|
+
const localVarHeaderParameter = {};
|
|
217
|
+
const localVarQueryParameter = {};
|
|
218
|
+
// authentication Basic required
|
|
219
|
+
// http basic authentication required
|
|
220
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
221
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
222
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
223
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
224
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
225
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webHook, localVarRequestOptions, configuration);
|
|
226
|
+
return {
|
|
227
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
228
|
+
options: localVarRequestOptions,
|
|
229
|
+
};
|
|
230
|
+
}),
|
|
231
|
+
/**
|
|
232
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
233
|
+
* @summary List webhook history items
|
|
234
|
+
* @param {number} [page] Page number.
|
|
235
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
236
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
237
|
+
* @param {number} [webhookId] WebHook id
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
webhookhistoryGet: (page_1, pageSize_1, sort_1, webhookId_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, sort_1, webhookId_1, ...args_1], void 0, function* (page, pageSize, sort, webhookId, options = {}) {
|
|
242
|
+
const localVarPath = `/webhookhistory`;
|
|
243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
245
|
+
let baseOptions;
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
}
|
|
249
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
250
|
+
const localVarHeaderParameter = {};
|
|
251
|
+
const localVarQueryParameter = {};
|
|
252
|
+
// authentication Basic required
|
|
253
|
+
// http basic authentication required
|
|
254
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
255
|
+
if (page !== undefined) {
|
|
256
|
+
localVarQueryParameter['page'] = page;
|
|
257
|
+
}
|
|
258
|
+
if (pageSize !== undefined) {
|
|
259
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
260
|
+
}
|
|
261
|
+
if (sort !== undefined) {
|
|
262
|
+
localVarQueryParameter['sort'] = sort;
|
|
263
|
+
}
|
|
264
|
+
if (webhookId !== undefined) {
|
|
265
|
+
localVarQueryParameter['webhook_id'] = webhookId;
|
|
266
|
+
}
|
|
267
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
+
return {
|
|
271
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
272
|
+
options: localVarRequestOptions,
|
|
273
|
+
};
|
|
274
|
+
}),
|
|
275
|
+
/**
|
|
276
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
277
|
+
* @summary Get a webhook history item by id
|
|
278
|
+
* @param {number} id Item id
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
webhookhistoryIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
283
|
+
// verify required parameter 'id' is not null or undefined
|
|
284
|
+
(0, common_1.assertParamExists)('webhookhistoryIdGet', 'id', id);
|
|
285
|
+
const localVarPath = `/webhookhistory/{id}`
|
|
286
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
288
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
289
|
+
let baseOptions;
|
|
290
|
+
if (configuration) {
|
|
291
|
+
baseOptions = configuration.baseOptions;
|
|
292
|
+
}
|
|
293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
294
|
+
const localVarHeaderParameter = {};
|
|
295
|
+
const localVarQueryParameter = {};
|
|
296
|
+
// authentication Basic required
|
|
297
|
+
// http basic authentication required
|
|
298
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
299
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
300
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
302
|
+
return {
|
|
303
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
}),
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
exports.WebhookApiAxiosParamCreator = WebhookApiAxiosParamCreator;
|
|
310
|
+
/**
|
|
311
|
+
* WebhookApi - functional programming interface
|
|
312
|
+
* @export
|
|
313
|
+
*/
|
|
314
|
+
const WebhookApiFp = function (configuration) {
|
|
315
|
+
const localVarAxiosParamCreator = (0, exports.WebhookApiAxiosParamCreator)(configuration);
|
|
316
|
+
return {
|
|
317
|
+
/**
|
|
318
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
319
|
+
* @summary List webhooks
|
|
320
|
+
* @param {number} [companyId] Company id
|
|
321
|
+
* @param {number} [page] Page number.
|
|
322
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
323
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
324
|
+
* @param {string} [description]
|
|
325
|
+
* @param {boolean} [enabled]
|
|
326
|
+
* @param {string} [events]
|
|
327
|
+
* @param {string} [url]
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
var _a, _b, _c;
|
|
334
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options);
|
|
335
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
336
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
337
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
338
|
+
});
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
342
|
+
* @summary Delete a webhook by id
|
|
343
|
+
* @param {number} id Item id
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
webhookIdDelete(id, options) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
var _a, _b, _c;
|
|
350
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookIdDelete(id, options);
|
|
351
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
352
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
353
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
354
|
+
});
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
358
|
+
* @summary Get a webhook by id
|
|
359
|
+
* @param {number} id Item id
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
webhookIdGet(id, options) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
var _a, _b, _c;
|
|
366
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookIdGet(id, options);
|
|
367
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
368
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
369
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
370
|
+
});
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
374
|
+
* @summary Add a webhook
|
|
375
|
+
* @param {WebHook} webHook
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
webhookPost(webHook, options) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
var _a, _b, _c;
|
|
382
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookPost(webHook, options);
|
|
383
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
384
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
385
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
386
|
+
});
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
390
|
+
* @summary Update a webhook
|
|
391
|
+
* @param {WebHook} webHook
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
webhookPut(webHook, options) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
var _a, _b, _c;
|
|
398
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookPut(webHook, options);
|
|
399
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
400
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
401
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
402
|
+
});
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
406
|
+
* @summary List webhook history items
|
|
407
|
+
* @param {number} [page] Page number.
|
|
408
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
409
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
410
|
+
* @param {number} [webhookId] WebHook id
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
webhookhistoryGet(page, pageSize, sort, webhookId, options) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
var _a, _b, _c;
|
|
417
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookhistoryGet(page, pageSize, sort, webhookId, options);
|
|
418
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
419
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookhistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
420
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
421
|
+
});
|
|
422
|
+
},
|
|
423
|
+
/**
|
|
424
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
425
|
+
* @summary Get a webhook history item by id
|
|
426
|
+
* @param {number} id Item id
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
webhookhistoryIdGet(id, options) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
var _a, _b, _c;
|
|
433
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookhistoryIdGet(id, options);
|
|
434
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
435
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebhookApi.webhookhistoryIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
436
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
437
|
+
});
|
|
438
|
+
},
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
exports.WebhookApiFp = WebhookApiFp;
|
|
442
|
+
/**
|
|
443
|
+
* WebhookApi - factory interface
|
|
444
|
+
* @export
|
|
445
|
+
*/
|
|
446
|
+
const WebhookApiFactory = function (configuration, basePath, axios) {
|
|
447
|
+
const localVarFp = (0, exports.WebhookApiFp)(configuration);
|
|
448
|
+
return {
|
|
449
|
+
/**
|
|
450
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
451
|
+
* @summary List webhooks
|
|
452
|
+
* @param {number} [companyId] Company id
|
|
453
|
+
* @param {number} [page] Page number.
|
|
454
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
455
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
456
|
+
* @param {string} [description]
|
|
457
|
+
* @param {boolean} [enabled]
|
|
458
|
+
* @param {string} [events]
|
|
459
|
+
* @param {string} [url]
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options) {
|
|
464
|
+
return localVarFp.webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options).then((request) => request(axios, basePath));
|
|
465
|
+
},
|
|
466
|
+
/**
|
|
467
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
468
|
+
* @summary Delete a webhook by id
|
|
469
|
+
* @param {number} id Item id
|
|
470
|
+
* @param {*} [options] Override http request option.
|
|
471
|
+
* @throws {RequiredError}
|
|
472
|
+
*/
|
|
473
|
+
webhookIdDelete(id, options) {
|
|
474
|
+
return localVarFp.webhookIdDelete(id, options).then((request) => request(axios, basePath));
|
|
475
|
+
},
|
|
476
|
+
/**
|
|
477
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
478
|
+
* @summary Get a webhook by id
|
|
479
|
+
* @param {number} id Item id
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
webhookIdGet(id, options) {
|
|
484
|
+
return localVarFp.webhookIdGet(id, options).then((request) => request(axios, basePath));
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
488
|
+
* @summary Add a webhook
|
|
489
|
+
* @param {WebHook} webHook
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
webhookPost(webHook, options) {
|
|
494
|
+
return localVarFp.webhookPost(webHook, options).then((request) => request(axios, basePath));
|
|
495
|
+
},
|
|
496
|
+
/**
|
|
497
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
498
|
+
* @summary Update a webhook
|
|
499
|
+
* @param {WebHook} webHook
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
webhookPut(webHook, options) {
|
|
504
|
+
return localVarFp.webhookPut(webHook, options).then((request) => request(axios, basePath));
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
508
|
+
* @summary List webhook history items
|
|
509
|
+
* @param {number} [page] Page number.
|
|
510
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
511
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
512
|
+
* @param {number} [webhookId] WebHook id
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
webhookhistoryGet(page, pageSize, sort, webhookId, options) {
|
|
517
|
+
return localVarFp.webhookhistoryGet(page, pageSize, sort, webhookId, options).then((request) => request(axios, basePath));
|
|
518
|
+
},
|
|
519
|
+
/**
|
|
520
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
521
|
+
* @summary Get a webhook history item by id
|
|
522
|
+
* @param {number} id Item id
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
webhookhistoryIdGet(id, options) {
|
|
527
|
+
return localVarFp.webhookhistoryIdGet(id, options).then((request) => request(axios, basePath));
|
|
528
|
+
},
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
exports.WebhookApiFactory = WebhookApiFactory;
|
|
532
|
+
/**
|
|
533
|
+
* WebhookApi - object-oriented interface
|
|
534
|
+
* @export
|
|
535
|
+
* @class WebhookApi
|
|
536
|
+
* @extends {BaseAPI}
|
|
537
|
+
*/
|
|
538
|
+
class WebhookApi extends base_1.BaseAPI {
|
|
539
|
+
/**
|
|
540
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
541
|
+
* @summary List webhooks
|
|
542
|
+
* @param {number} [companyId] Company id
|
|
543
|
+
* @param {number} [page] Page number.
|
|
544
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
545
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
546
|
+
* @param {string} [description]
|
|
547
|
+
* @param {boolean} [enabled]
|
|
548
|
+
* @param {string} [events]
|
|
549
|
+
* @param {string} [url]
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
* @memberof WebhookApi
|
|
553
|
+
*/
|
|
554
|
+
webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options) {
|
|
555
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookGet(companyId, page, pageSize, sort, description, enabled, events, url, options).then((request) => request(this.axios, this.basePath));
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
559
|
+
* @summary Delete a webhook by id
|
|
560
|
+
* @param {number} id Item id
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
* @memberof WebhookApi
|
|
564
|
+
*/
|
|
565
|
+
webhookIdDelete(id, options) {
|
|
566
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
570
|
+
* @summary Get a webhook by id
|
|
571
|
+
* @param {number} id Item id
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
* @memberof WebhookApi
|
|
575
|
+
*/
|
|
576
|
+
webhookIdGet(id, options) {
|
|
577
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
581
|
+
* @summary Add a webhook
|
|
582
|
+
* @param {WebHook} webHook
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
* @memberof WebhookApi
|
|
586
|
+
*/
|
|
587
|
+
webhookPost(webHook, options) {
|
|
588
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookPost(webHook, options).then((request) => request(this.axios, this.basePath));
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Webhooks are used to notify external services about write events that occur in the API. You can subscribe to specific events and receive a notification when they occur.
|
|
592
|
+
* @summary Update a webhook
|
|
593
|
+
* @param {WebHook} webHook
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
* @memberof WebhookApi
|
|
597
|
+
*/
|
|
598
|
+
webhookPut(webHook, options) {
|
|
599
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookPut(webHook, options).then((request) => request(this.axios, this.basePath));
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
603
|
+
* @summary List webhook history items
|
|
604
|
+
* @param {number} [page] Page number.
|
|
605
|
+
* @param {number} [pageSize] Items per page. Cannot be greater than 200.
|
|
606
|
+
* @param {string} [sort] Sort by field. Prefix with \'-\' for descending order.
|
|
607
|
+
* @param {number} [webhookId] WebHook id
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
* @memberof WebhookApi
|
|
611
|
+
*/
|
|
612
|
+
webhookhistoryGet(page, pageSize, sort, webhookId, options) {
|
|
613
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookhistoryGet(page, pageSize, sort, webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Webhook history items are stored in the database and can be accessed via the API. They are preserved for 15 in both the live and sandbox environments.
|
|
617
|
+
* @summary Get a webhook history item by id
|
|
618
|
+
* @param {number} id Item id
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
* @memberof WebhookApi
|
|
622
|
+
*/
|
|
623
|
+
webhookhistoryIdGet(id, options) {
|
|
624
|
+
return (0, exports.WebhookApiFp)(this.configuration).webhookhistoryIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
exports.WebhookApi = WebhookApi;
|