@treeunfe/cte 1.0.5
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/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFCEGerarDanfe/NFCEGerarDanfe.d.ts +58 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFCEGerarDanfe/NFCEGerarDanfe.js +494 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFCEGerarDanfe/NFCEGerarDanfe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFEGerarDanfe/NFEGerarDanfe.d.ts +39 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFEGerarDanfe/NFEGerarDanfe.js +1097 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFEGerarDanfe/NFEGerarDanfe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/index.d.ts +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/index.js +19 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/adapters/NFCe.d.ts +14 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/adapters/NFCe.js +39 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/adapters/NFCe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/index.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/index.js +23 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCEAutorizacao/NFCEAutorizacao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCEAutorizacao/NFCEAutorizacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCEAutorizacao/NFCEAutorizacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.d.ts +17 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/index.d.ts +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/index.js +19 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/NFCEAutorizacaoService.d.ts +32 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/NFCEAutorizacaoService.js +421 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/NFCEAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/util/NFCEQRCode.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/util/NFCEQRCode.js +38 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/util/NFCEQRCode.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.d.ts +52 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.js +141 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/index.d.ts +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/index.js +19 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/adapters/NFe.d.ts +44 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/adapters/NFe.js +114 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/adapters/NFe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/index.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/index.js +23 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEAutorizacao/NFEAutorizacao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEAutorizacao/NFEAutorizacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEAutorizacao/NFEAutorizacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEInutilizacao/NFEInutilizacao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEInutilizacao/NFEInutilizacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEInutilizacao/NFEInutilizacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECancelamento.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECancelamento.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECancelamento.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECartaDeCorrecao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECartaDeCorrecao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECartaDeCorrecao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECienciaDaOperacao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECienciaDaOperacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECienciaDaOperacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEEpec.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEEpec.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEEpec.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFERecepcaoEvento.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFERecepcaoEvento.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFERecepcaoEvento.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERetornoAutorizacao/NFERetornoAutorizacao.d.ts +17 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERetornoAutorizacao/NFERetornoAutorizacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERetornoAutorizacao/NFERetornoAutorizacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEStatusServico/NFEStatusServico.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEStatusServico/NFEStatusServico.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEStatusServico/NFEStatusServico.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/index.d.ts +17 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/index.js +34 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEAutorizacao/NFEAutorizacaoService.d.ts +31 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEAutorizacao/NFEAutorizacaoService.js +371 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEAutorizacao/NFEAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.js +40 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFeService.d.ts +17 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFeService.js +114 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFeService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +20 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/util/DistribuicaoHandler.js +115 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/util/DistribuicaoHandler.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEInutilizacao/NFEInutilizacaoService.d.ts +21 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEInutilizacao/NFEInutilizacaoService.js +87 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEInutilizacao/NFEInutilizacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECancelamentoService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECancelamentoService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECancelamentoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEEpecService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEEpecService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEEpecService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFERecepcaoEventoService.d.ts +39 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFERecepcaoEventoService.js +280 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFERecepcaoEventoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.d.ts +48 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.js +150 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEStatusServico/NFEStatusServicoService.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEStatusServico/NFEStatusServicoService.js +41 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEStatusServico/NFEStatusServicoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/TreeunfeDFe/TreeunfeDFeService.d.ts +139 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/TreeunfeDFe/TreeunfeDFeService.js +782 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/TreeunfeDFe/TreeunfeDFeService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/index.d.ts +18 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/index.js +35 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/adapters/NFSe.d.ts +65 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/adapters/NFSe.js +123 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/adapters/NFSe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/index.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/index.js +23 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeAutorizacao/NFSeAutorizacao.d.ts +14 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeAutorizacao/NFSeAutorizacao.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeAutorizacao/NFSeAutorizacao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeConsulta/NFSeConsulta.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeConsulta/NFSeConsulta.js +13 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeConsulta/NFSeConsulta.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeDistribuicao/NFSeDistribuicao.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeDistribuicao/NFSeDistribuicao.js +13 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeDistribuicao/NFSeDistribuicao.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeEventos/NFSeEventos.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeEventos/NFSeEventos.js +13 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeEventos/NFSeEventos.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.d.ts +14 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.js +28 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/index.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/index.js +22 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeAutorizacao/NFSeAutorizacaoService.d.ts +35 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeAutorizacao/NFSeAutorizacaoService.js +261 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeAutorizacao/NFSeAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeConsulta/NFSeConsultaService.d.ts +16 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeConsulta/NFSeConsultaService.js +38 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeConsulta/NFSeConsultaService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeDistribuicao/NFSeDistribuicaoService.d.ts +16 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeDistribuicao/NFSeDistribuicaoService.js +251 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeDistribuicao/NFSeDistribuicaoService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeEventos/NFSeEventosService.d.ts +36 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeEventos/NFSeEventosService.js +374 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeEventos/NFSeEventosService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.d.ts +20 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.js +104 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/index.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/index.js +22 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/GerarConsultaImpl.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/GerarConsultaImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/GerarConsultaImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/HttpClient.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/HttpClient.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/HttpClient.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/SaveFilesImpl.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/SaveFilesImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/SaveFilesImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeImpl.d.ts +50 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeServiceImpl.d.ts +57 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/index.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/index.js +22 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/CTEDistribuicaoDFeServiceImpl.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/CTEDistribuicaoDFeServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/CTEDistribuicaoDFeServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/index.d.ts +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/index.js +18 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/index.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/index.js +23 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCEAutorizacaoServiceImpl.d.ts +11 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCEAutorizacaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCEAutorizacaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCERetornoAutorizacaoServiceImpl.d.ts +13 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCERetornoAutorizacaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCERetornoAutorizacaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/index.d.ts +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/index.js +19 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEAutorizacaoServiceImpl.d.ts +11 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEAutorizacaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEAutorizacaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEDistribuicaoDFeServiceImpl.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEDistribuicaoDFeServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEDistribuicaoDFeServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEInutilizacaoServiceImpl.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEInutilizacaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEInutilizacaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERecepcaoEventoServiceImpl.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERecepcaoEventoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERecepcaoEventoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERetornoAutorizacaoServiceImpl.d.ts +13 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERetornoAutorizacaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERetornoAutorizacaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEStatusServicoServiceImpl.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEStatusServicoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEStatusServicoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEconsultaProtocoloServiceImpl.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEconsultaProtocoloServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEconsultaProtocoloServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/index.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/index.js +24 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeAutorizacaoServiceImpl.d.ts +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeAutorizacaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeAutorizacaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeConsultaServiceImpl.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeConsultaServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeConsultaServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeDistribuicaoServiceImpl.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeDistribuicaoServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeDistribuicaoServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeEventosServiceImpl.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeEventosServiceImpl.js +2 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeEventosServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeParametrosMunicipaisServiceImpl.d.ts +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeParametrosMunicipaisServiceImpl.js +18 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeParametrosMunicipaisServiceImpl.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/index.d.ts +5 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/index.js +22 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/CTe.d.ts +17 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/CTe.js +97 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/CTe.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/index.d.ts +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/index.js +18 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/index.d.ts +4 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/index.js +25 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js +10 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/index.d.ts +3 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/index.js +20 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js +8 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +18 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js +117 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +21 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js +131 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/index.d.ts +3 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/index.js +20 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/tsconfig.tsbuildinfo +1 -0
- package/.turbo/turbo-build.log +15 -0
- package/CHANGELOG.md +33 -0
- package/LICENSE.txt +221 -0
- package/dist/index.cjs +387 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +373 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/adapters/CTe.d.ts +17 -0
- package/dist/src/adapters/index.d.ts +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
- package/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
- package/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/dist/src/operations/index.d.ts +3 -0
- package/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
- package/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +18 -0
- package/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +21 -0
- package/dist/src/services/index.d.ts +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +57 -0
- package/rollup.config.js +86 -0
- package/src/README.md +108 -0
- package/src/adapters/CTe.ts +117 -0
- package/src/adapters/index.ts +18 -0
- package/src/exemplo-uso.ts +216 -0
- package/src/index.ts +28 -0
- package/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.ts +30 -0
- package/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts +28 -0
- package/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts +28 -0
- package/src/operations/index.ts +20 -0
- package/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts +28 -0
- package/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts +28 -0
- package/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.ts +141 -0
- package/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.ts +153 -0
- package/src/services/index.ts +20 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.ts","../../src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.ts","../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.ts","../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts","../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts","../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts","../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts","../../src/adapters/CTe.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["logger","XmlParser","BaseNFe","Environment","Utility","SaveFiles","XmlBuilder","GerarConsulta"],"mappings":";;;;;;;AAkBA,MAAM,kBAAkB,CAAA;AAEpB,IAAA,WAAA,CAAY,yBAAwD,EAAA;AAChE,QAAA,IAAI,CAAC,yBAAyB,GAAG,yBAAyB;IAC9D;IAEA,MAAM,IAAI,CAAC,IAAU,EAAA;QACjB,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1D;AACH;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AO,KAAU,EAAE;AACnB,YAAAA,aAAM,CAAC,KAAK,CAAC,CAAA,CAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;YACjE,MAAM,IAAI,KAAK,CAAC,CAAA,2BAAA,EAA8B,KAAK,CAAC,OAAO,CAAA,CAAE,CAAC;QAChE;IACF;AACD;;;;;;;;;;;;;;;;"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
export * from '@treeunfe/types';
|
|
2
|
+
import { logger, XmlParser, BaseNFe, Environment, Utility, SaveFiles, XmlBuilder, GerarConsulta } from '@treeunfe/shared';
|
|
3
|
+
import pako from 'pako';
|
|
4
|
+
import xml2js from 'xml2js';
|
|
5
|
+
|
|
6
|
+
class CTEDistribuicaoDFe {
|
|
7
|
+
constructor(cteDistribuicaoDFeService) {
|
|
8
|
+
this.cteDistribuicaoDFeService = cteDistribuicaoDFeService;
|
|
9
|
+
}
|
|
10
|
+
async Exec(data) {
|
|
11
|
+
return await this.cteDistribuicaoDFeService.Exec(data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* This file is part of Treeunfe DFe.
|
|
17
|
+
*
|
|
18
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
19
|
+
* it under the terms of the GNU General Public License as published by
|
|
20
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
21
|
+
* (at your option) any later version.
|
|
22
|
+
*
|
|
23
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
24
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
25
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
26
|
+
* GNU General Public License for more details.
|
|
27
|
+
*
|
|
28
|
+
* You should have received a copy of the GNU General Public License
|
|
29
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
30
|
+
*/
|
|
31
|
+
class DistribuicaoHandler {
|
|
32
|
+
constructor(environment, utility, metodo) {
|
|
33
|
+
this.utility = utility;
|
|
34
|
+
this.environment = environment;
|
|
35
|
+
this.metodo = metodo;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Métodos para tratativas do DistribuicaoDFe do CTe
|
|
39
|
+
*/
|
|
40
|
+
salvaArquivos(XMLDistribuicaoInJson, XMLDistribuicao, chCTe) {
|
|
41
|
+
const { pathXMLDistribuicao, baixarXMLDistribuicao, armazenarRetornoEmJSON } = this.environment.config;
|
|
42
|
+
if (baixarXMLDistribuicao) {
|
|
43
|
+
this.utility.salvaXML({
|
|
44
|
+
data: XMLDistribuicao,
|
|
45
|
+
fileName: chCTe,
|
|
46
|
+
metodo: this.metodo,
|
|
47
|
+
path: pathXMLDistribuicao,
|
|
48
|
+
});
|
|
49
|
+
if (armazenarRetornoEmJSON) {
|
|
50
|
+
this.utility.salvaJSON({
|
|
51
|
+
data: XMLDistribuicaoInJson,
|
|
52
|
+
fileName: chCTe,
|
|
53
|
+
metodo: this.metodo,
|
|
54
|
+
path: pathXMLDistribuicao,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
deCompressDFeXML(loteDistDFeInt, metodo, _xmlConsulta) {
|
|
60
|
+
logger.info('Descomprimindo XML', {
|
|
61
|
+
context: 'DistribuicaoHandler',
|
|
62
|
+
});
|
|
63
|
+
const json = new XmlParser();
|
|
64
|
+
const files = [];
|
|
65
|
+
xml2js.parseString(loteDistDFeInt, (err, result) => {
|
|
66
|
+
if (err) {
|
|
67
|
+
throw new Error(`Erro ao descomprimir o XML: ${err}`);
|
|
68
|
+
}
|
|
69
|
+
const docZips = this.utility.findInObj(result, 'docZip');
|
|
70
|
+
docZips.forEach((docZip) => {
|
|
71
|
+
const xmlString = this.decodeDocZip(docZip);
|
|
72
|
+
const cleanedXml = this.removeSignatureTag(xmlString);
|
|
73
|
+
const parsedResult = this.parseXml(cleanedXml);
|
|
74
|
+
if (!parsedResult)
|
|
75
|
+
return;
|
|
76
|
+
let chCTe = this.getChCTe(parsedResult);
|
|
77
|
+
let tipo = this.getTipo(parsedResult);
|
|
78
|
+
const nsu = docZip['$'].NSU;
|
|
79
|
+
if (parsedResult['procEventoCTe']) {
|
|
80
|
+
const tpEvento = this.utility.findInObj(parsedResult, 'tpEvento');
|
|
81
|
+
chCTe = `${chCTe}-event-${tpEvento}`;
|
|
82
|
+
tipo = 'event';
|
|
83
|
+
}
|
|
84
|
+
const xmlDistribuicaoInJson = json.convertXmlToJson(cleanedXml, `${metodo}_${tipo}`, nsu);
|
|
85
|
+
this.handleResponse(xmlDistribuicaoInJson, cleanedXml, chCTe);
|
|
86
|
+
files.push(chCTe);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
return files;
|
|
90
|
+
}
|
|
91
|
+
decodeDocZip(docZip) {
|
|
92
|
+
logger.info('Decodificando DocZip', {
|
|
93
|
+
context: 'DistribuicaoHandler',
|
|
94
|
+
});
|
|
95
|
+
const base64String = docZip['_'];
|
|
96
|
+
let binaryString = atob(base64String);
|
|
97
|
+
let bytes = new Uint8Array(binaryString.length);
|
|
98
|
+
for (let i = 0; i < binaryString.length; i++) {
|
|
99
|
+
bytes[i] = binaryString.charCodeAt(i);
|
|
100
|
+
}
|
|
101
|
+
let decompressedData = pako.inflate(bytes);
|
|
102
|
+
return new TextDecoder("utf-8").decode(decompressedData);
|
|
103
|
+
}
|
|
104
|
+
removeSignatureTag(xmlString) {
|
|
105
|
+
return xmlString.replace(/<Signature.*?<\/Signature>/gs, '');
|
|
106
|
+
}
|
|
107
|
+
parseXml(xmlString) {
|
|
108
|
+
let parsedResult;
|
|
109
|
+
xml2js.parseString(xmlString, (err, result) => {
|
|
110
|
+
if (err) {
|
|
111
|
+
console.error('Erro ao parsear o XML decomprimido:', err);
|
|
112
|
+
parsedResult = null;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
parsedResult = result;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return parsedResult;
|
|
119
|
+
}
|
|
120
|
+
getChCTe(parsedResult) {
|
|
121
|
+
return this.utility.findInObj(parsedResult, 'chCTe');
|
|
122
|
+
}
|
|
123
|
+
getTipo(parsedResult) {
|
|
124
|
+
if (this.utility.findInObj(parsedResult, 'resCTe')) {
|
|
125
|
+
return 'res';
|
|
126
|
+
}
|
|
127
|
+
else if (parsedResult['procEventoCTe']) {
|
|
128
|
+
return 'event';
|
|
129
|
+
}
|
|
130
|
+
return 'proc';
|
|
131
|
+
}
|
|
132
|
+
handleResponse(XMLDistribuicaoInJson, XMLDistribuicao, chCTe) {
|
|
133
|
+
this.salvaArquivos(XMLDistribuicaoInJson, XMLDistribuicao, chCTe);
|
|
134
|
+
// Gera erro em caso de Rejeição
|
|
135
|
+
const xMotivo = this.utility.findInObj(XMLDistribuicaoInJson, 'xMotivo');
|
|
136
|
+
if (xMotivo && (xMotivo.includes('Rejeição') || xMotivo.includes('Rejeicao'))) {
|
|
137
|
+
throw new Error(XMLDistribuicaoInJson.xMotivo);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/*
|
|
143
|
+
* This file is part of Treeunfe DFe.
|
|
144
|
+
*
|
|
145
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
146
|
+
* it under the terms of the GNU General Public License as published by
|
|
147
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
148
|
+
* (at your option) any later version.
|
|
149
|
+
*
|
|
150
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
151
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
152
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
153
|
+
* GNU General Public License for more details.
|
|
154
|
+
*
|
|
155
|
+
* You should have received a copy of the GNU General Public License
|
|
156
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
157
|
+
*/
|
|
158
|
+
class CTEDistribuicaoDFeService extends BaseNFe {
|
|
159
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
160
|
+
super(environment, utility, xmlBuilder, 'CTeDistribuicaoDFe', axios, saveFiles, gerarConsulta);
|
|
161
|
+
}
|
|
162
|
+
gerarXml(data) {
|
|
163
|
+
return this.gerarXmlCTeDistribuicaoDFe(data);
|
|
164
|
+
}
|
|
165
|
+
gerarXmlCTeDistribuicaoDFe(data) {
|
|
166
|
+
logger.info('Montando estrutura do XML em JSON', {
|
|
167
|
+
context: 'CTEDistribuicaoDFeService',
|
|
168
|
+
});
|
|
169
|
+
const { ambiente } = this.environment.getConfig();
|
|
170
|
+
// XML para CTe - versão 1.00
|
|
171
|
+
const xmlObject = {
|
|
172
|
+
$: {
|
|
173
|
+
versao: "1.00",
|
|
174
|
+
xmlns: 'http://www.portalfiscal.inf.br/cte'
|
|
175
|
+
},
|
|
176
|
+
tpAmb: ambiente,
|
|
177
|
+
...data,
|
|
178
|
+
};
|
|
179
|
+
return this.xmlBuilder.gerarXml(xmlObject, 'distDFeInt', this.metodo);
|
|
180
|
+
}
|
|
181
|
+
async callWebService(xmlConsulta, webServiceUrl, ContentType, action, agent) {
|
|
182
|
+
const startTime = Date.now();
|
|
183
|
+
const headers = {
|
|
184
|
+
'Content-Type': ContentType,
|
|
185
|
+
};
|
|
186
|
+
logger.http('Iniciando comunicação com o webservice', {
|
|
187
|
+
context: `CTEDistribuicaoDFeService`,
|
|
188
|
+
method: this.metodo,
|
|
189
|
+
url: webServiceUrl,
|
|
190
|
+
action,
|
|
191
|
+
headers,
|
|
192
|
+
});
|
|
193
|
+
const response = await this.axios.post(webServiceUrl, xmlConsulta, {
|
|
194
|
+
headers,
|
|
195
|
+
httpsAgent: agent
|
|
196
|
+
});
|
|
197
|
+
const duration = Date.now() - startTime;
|
|
198
|
+
logger.http('Comunicação concluída com sucesso', {
|
|
199
|
+
context: `CTEDistribuicaoDFeService`,
|
|
200
|
+
method: this.metodo,
|
|
201
|
+
duration: `${duration}ms`,
|
|
202
|
+
responseSize: response.data ? JSON.stringify(response.data).length : 0
|
|
203
|
+
});
|
|
204
|
+
return response;
|
|
205
|
+
}
|
|
206
|
+
async Exec(data) {
|
|
207
|
+
let xmlConsulta = '';
|
|
208
|
+
let xmlConsultaSoap = '';
|
|
209
|
+
// webServiceUrlTmp não é usado, mas mantido para compatibilidade
|
|
210
|
+
// let webServiceUrlTmp: string = '';
|
|
211
|
+
let responseInJson = undefined;
|
|
212
|
+
let xmlRetorno = {};
|
|
213
|
+
const ContentType = this.setContentType();
|
|
214
|
+
try {
|
|
215
|
+
// Gerando XML para consulta de Distribuição DFe do CTe
|
|
216
|
+
xmlConsulta = this.gerarXmlCTeDistribuicaoDFe(data);
|
|
217
|
+
console.log({ xmlConsulta });
|
|
218
|
+
const { xmlFormated, agent, webServiceUrl, action } = await this.gerarConsulta.gerarConsulta(xmlConsulta, this.metodo, true, '1.00', 'CTe', true, 'cteDistDFeInteresse', 'cteDadosMsg');
|
|
219
|
+
xmlConsultaSoap = xmlFormated;
|
|
220
|
+
// webServiceUrlTmp não é usado, mas mantido para compatibilidade
|
|
221
|
+
// webServiceUrlTmp = webServiceUrl;
|
|
222
|
+
const xmlRetorno = await this.callWebService(xmlFormated, webServiceUrl, ContentType, action, agent);
|
|
223
|
+
// Verifica se houve rejeição
|
|
224
|
+
responseInJson = this.utility.verificaRejeicao(xmlRetorno.data, this.metodo);
|
|
225
|
+
if (responseInJson.retDistDFeInt.cStat === '137') {
|
|
226
|
+
return {
|
|
227
|
+
data: {},
|
|
228
|
+
xMotivo: responseInJson.retDistDFeInt.xMotivo,
|
|
229
|
+
filesList: [],
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Descompacta XML
|
|
234
|
+
* Converte XML para Json
|
|
235
|
+
* Salva XML
|
|
236
|
+
* Gera erro em caso de rejeição
|
|
237
|
+
*/
|
|
238
|
+
const handlerDistribuicao = new DistribuicaoHandler(this.environment, this.utility, this.metodo);
|
|
239
|
+
const filesList = handlerDistribuicao.deCompressDFeXML(xmlRetorno.data, this.metodo, xmlConsulta);
|
|
240
|
+
const xMotivo = this.utility.findInObj(responseInJson, 'xMotivo');
|
|
241
|
+
return {
|
|
242
|
+
data: responseInJson,
|
|
243
|
+
xMotivo,
|
|
244
|
+
filesList,
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
finally {
|
|
248
|
+
// Salva XML de Consulta
|
|
249
|
+
this.utility.salvaConsulta(xmlConsulta, xmlConsultaSoap, this.metodo);
|
|
250
|
+
// Salva XML de Retorno
|
|
251
|
+
this.utility.salvaRetorno(xmlRetorno.data, responseInJson, this.metodo);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
class CTEDistribuicaoDFePorNSU extends CTEDistribuicaoDFeService {
|
|
257
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
258
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
class CTEDistribuicaoDFePorUltNSU extends CTEDistribuicaoDFeService {
|
|
263
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
264
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
class CTEDistribuicaoDFePorNSUService extends CTEDistribuicaoDFeService {
|
|
269
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
270
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
class CTEDistribuicaoDFePorUltNSUService extends CTEDistribuicaoDFeService {
|
|
275
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
276
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/*
|
|
281
|
+
* This file is part of Treeunfe DFe.
|
|
282
|
+
*
|
|
283
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
284
|
+
* it under the terms of the GNU General Public License as published by
|
|
285
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
286
|
+
* (at your option) any later version.
|
|
287
|
+
*
|
|
288
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
289
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
290
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
291
|
+
* GNU General Public License for more details.
|
|
292
|
+
*
|
|
293
|
+
* You should have received a copy of the GNU General Public License
|
|
294
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
295
|
+
*/
|
|
296
|
+
class CTe {
|
|
297
|
+
constructor(config) {
|
|
298
|
+
// Valida se a configuração obrigatória foi fornecida
|
|
299
|
+
if (!config.ambiente) {
|
|
300
|
+
throw new Error('Configuração CTe incompleta. Por favor, forneça "ambiente".');
|
|
301
|
+
}
|
|
302
|
+
// Cria o environment próprio - passa a config diretamente
|
|
303
|
+
const environment = new Environment(config);
|
|
304
|
+
this.environment = environment;
|
|
305
|
+
// Carrega o environment automaticamente
|
|
306
|
+
this.loadEnvironmentPromise = (async () => {
|
|
307
|
+
try {
|
|
308
|
+
const { axios: axiosInstance } = await environment.loadEnvironment();
|
|
309
|
+
this.axios = axiosInstance;
|
|
310
|
+
this.utility = new Utility(environment);
|
|
311
|
+
this.saveFiles = new SaveFiles(environment, this.utility);
|
|
312
|
+
this.xmlBuilder = new XmlBuilder(environment);
|
|
313
|
+
this.gerarConsulta = new GerarConsulta(environment, this.utility, this.xmlBuilder);
|
|
314
|
+
}
|
|
315
|
+
catch (error) {
|
|
316
|
+
logger.error(``, error, { context: 'CTE_LoadEnvironment' });
|
|
317
|
+
throw new Error(`Erro ao inicializar a lib CTe: ${error}`);
|
|
318
|
+
}
|
|
319
|
+
})();
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Distribuição DFe CTe
|
|
323
|
+
*/
|
|
324
|
+
async DistribuicaoDFe(data) {
|
|
325
|
+
await this.loadEnvironmentPromise;
|
|
326
|
+
try {
|
|
327
|
+
const service = new CTEDistribuicaoDFeService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
328
|
+
const operation = new CTEDistribuicaoDFe(service);
|
|
329
|
+
const response = await operation.Exec(data);
|
|
330
|
+
console.log('Retorno CTE_DistribuicaoDFe');
|
|
331
|
+
console.log(` ${response.xMotivo}`);
|
|
332
|
+
console.log('===================================');
|
|
333
|
+
return response.data;
|
|
334
|
+
}
|
|
335
|
+
catch (error) {
|
|
336
|
+
logger.error(``, error, { context: 'CTE_DistribuicaoDFe' });
|
|
337
|
+
throw new Error(`CTE_DistribuicaoDFe: ${error.message}`);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
async DistribuicaoDFePorUltNSU(data) {
|
|
341
|
+
await this.loadEnvironmentPromise;
|
|
342
|
+
try {
|
|
343
|
+
const service = new CTEDistribuicaoDFePorUltNSU(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
344
|
+
const response = await service.Exec(data);
|
|
345
|
+
console.log('Retorno CTE_DistribuicaoDFePorUltNSU');
|
|
346
|
+
console.log(` ${response.xMotivo}`);
|
|
347
|
+
console.log('===================================');
|
|
348
|
+
return response.data;
|
|
349
|
+
}
|
|
350
|
+
catch (error) {
|
|
351
|
+
logger.error(``, error, { context: 'CTE_DistribuicaoDFePorUltNSU' });
|
|
352
|
+
throw new Error(`CTE_DistribuicaoDFePorUltNSU: ${error.message}`);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
async DistribuicaoDFePorNSU(data) {
|
|
356
|
+
await this.loadEnvironmentPromise;
|
|
357
|
+
try {
|
|
358
|
+
const service = new CTEDistribuicaoDFePorNSU(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
359
|
+
const response = await service.Exec(data);
|
|
360
|
+
console.log('Retorno CTE_DistribuicaoDFePorNSU');
|
|
361
|
+
console.log(` ${response.xMotivo}`);
|
|
362
|
+
console.log('===================================');
|
|
363
|
+
return response.data;
|
|
364
|
+
}
|
|
365
|
+
catch (error) {
|
|
366
|
+
logger.error(``, error, { context: 'CTE_DistribuicaoDFePorNSU' });
|
|
367
|
+
throw new Error(`CTE_DistribuicaoDFePorNSU: ${error.message}`);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export { CTEDistribuicaoDFe, CTEDistribuicaoDFePorNSU, CTEDistribuicaoDFePorNSUService, CTEDistribuicaoDFePorUltNSU, CTEDistribuicaoDFePorUltNSUService, CTEDistribuicaoDFeService, CTe };
|
|
373
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.ts","../../src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.ts","../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.ts","../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts","../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts","../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts","../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts","../../src/adapters/CTe.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;AAkBA,MAAM,kBAAkB,CAAA;AAEpB,IAAA,WAAA,CAAY,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AAG,CAAC,CAAA,GAAA,EAAM,QAAQ,CAAC,OAAO,CAAA,CAAE,CAAC;AACrC,YAAA,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;YAClD,OAAO,QAAQ,CAAC,IAAI;QACtB;QAAE,OAAO,KAAU,EAAE;AACnB,YAAA,MAAM,CAAC,KAAK,CAAC,CAAA,CAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;YACjE,MAAM,IAAI,KAAK,CAAC,CAAA,2BAAA,EAA8B,KAAK,CAAC,OAAO,CAAA,CAAE,CAAC;QAChE;IACF;AACD;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConsultaCTe, CTeConfig, DFePorNSUCTe, DFePorUltimoNSUCTe } from '@treeunfe/types';
|
|
2
|
+
export default class CTe {
|
|
3
|
+
private environment;
|
|
4
|
+
private axios;
|
|
5
|
+
private utility;
|
|
6
|
+
private xmlBuilder;
|
|
7
|
+
private saveFiles;
|
|
8
|
+
private gerarConsulta;
|
|
9
|
+
private loadEnvironmentPromise;
|
|
10
|
+
constructor(config: CTeConfig);
|
|
11
|
+
/**
|
|
12
|
+
* Distribuição DFe CTe
|
|
13
|
+
*/
|
|
14
|
+
DistribuicaoDFe(data: ConsultaCTe): Promise<any>;
|
|
15
|
+
DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<import("@treeunfe/types").GenericObject>;
|
|
16
|
+
DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<import("@treeunfe/types").GenericObject>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CTe } from './CTe';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CTEDistribuicaoDFeServiceImpl } from '@treeunfe/types/interfaces';
|
|
2
|
+
declare class CTEDistribuicaoDFe implements CTEDistribuicaoDFeServiceImpl {
|
|
3
|
+
cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl;
|
|
4
|
+
constructor(cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl);
|
|
5
|
+
Exec(data?: any): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
export default CTEDistribuicaoDFe;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlBuilder, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
|
|
5
|
+
declare class CTEDistribuicaoDFePorNSU extends CTEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default CTEDistribuicaoDFePorNSU;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlBuilder, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
|
|
5
|
+
declare class CTEDistribuicaoDFePorUltNSU extends CTEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default CTEDistribuicaoDFePorUltNSU;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as CTEDistribuicaoDFe } from './CTEDistribuicaoDFe/CTEDistribuicaoDFe';
|
|
2
|
+
export { default as CTEDistribuicaoDFePorNSU } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU';
|
|
3
|
+
export { default as CTEDistribuicaoDFePorUltNSU } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlBuilder, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
|
|
5
|
+
declare class CTEDistribuicaoDFePorNSUService extends CTEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default CTEDistribuicaoDFePorNSUService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlBuilder, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
|
|
5
|
+
declare class CTEDistribuicaoDFePorUltNSUService extends CTEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default CTEDistribuicaoDFePorUltNSUService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { XmlBuilder, BaseNFe, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { GenericObject } from '@treeunfe/types/common';
|
|
4
|
+
import { ConsultaCTe } from '@treeunfe/types/cte';
|
|
5
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
6
|
+
import { Agent } from 'http';
|
|
7
|
+
declare class CTEDistribuicaoDFeService extends BaseNFe {
|
|
8
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
9
|
+
protected gerarXml(data: ConsultaCTe): string;
|
|
10
|
+
gerarXmlCTeDistribuicaoDFe(data: ConsultaCTe): string;
|
|
11
|
+
protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise<AxiosResponse<any, any>>;
|
|
12
|
+
Exec(data: ConsultaCTe): Promise<{
|
|
13
|
+
data: GenericObject;
|
|
14
|
+
xMotivo: any;
|
|
15
|
+
filesList: string[];
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export default CTEDistribuicaoDFeService;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GenericObject } from '@treeunfe/types';
|
|
3
|
+
import { AxiosResponse } from 'axios';
|
|
4
|
+
declare class DistribuicaoHandler {
|
|
5
|
+
environment: Environment;
|
|
6
|
+
utility: Utility;
|
|
7
|
+
metodo: string;
|
|
8
|
+
constructor(environment: Environment, utility: Utility, metodo: string);
|
|
9
|
+
/**
|
|
10
|
+
* Métodos para tratativas do DistribuicaoDFe do CTe
|
|
11
|
+
*/
|
|
12
|
+
protected salvaArquivos(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
|
|
13
|
+
deCompressDFeXML(loteDistDFeInt: AxiosResponse<any, any>, metodo: string, _xmlConsulta: string): string[];
|
|
14
|
+
decodeDocZip(docZip: any): string;
|
|
15
|
+
removeSignatureTag(xmlString: string): string;
|
|
16
|
+
parseXml(xmlString: string): undefined;
|
|
17
|
+
getChCTe(parsedResult: GenericObject): any;
|
|
18
|
+
getTipo(parsedResult: GenericObject): "res" | "event" | "proc";
|
|
19
|
+
handleResponse(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
|
|
20
|
+
}
|
|
21
|
+
export default DistribuicaoHandler;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as CTEDistribuicaoDFeService } from './CTEDistribuicaoDFe/CTEDistribuicaoDFeService';
|
|
2
|
+
export { default as CTEDistribuicaoDFePorNSUService } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU';
|
|
3
|
+
export { default as CTEDistribuicaoDFePorUltNSUService } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU';
|