@treeunfe/nfse 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/cte/src/adapters/CTe.d.ts +9 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/adapters/CTe.js +40 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/adapters/CTe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/index.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/index.js +23 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js +10 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/index.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/index.js +20 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js +8 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +18 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js +115 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +21 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js +131 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js.map +1 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/index.d.ts +3 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/index.js +20 -0
- package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/cte/src/services/index.js.map +1 -0
- 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/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/nfse/dist/src/adapters/NFSe.d.ts +80 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/adapters/NFSe.js +333 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/adapters/NFSe.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/adapters/index.d.ts +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/adapters/index.js +18 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/adapters/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/index.d.ts +4 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/index.js +25 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeAutorizacao/NFSeAutorizacao.d.ts +14 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeAutorizacao/NFSeAutorizacao.js +10 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeAutorizacao/NFSeAutorizacao.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeConsulta/NFSeConsulta.d.ts +9 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeConsulta/NFSeConsulta.js +13 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeConsulta/NFSeConsulta.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeDanfe/NFSeDanfe.d.ts +11 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeDanfe/NFSeDanfe.js +10 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeDanfe/NFSeDanfe.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeDistribuicao/NFSeDistribuicao.d.ts +9 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeDistribuicao/NFSeDistribuicao.js +13 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeDistribuicao/NFSeDistribuicao.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeEventos/NFSeEventos.d.ts +9 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeEventos/NFSeEventos.js +13 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeEventos/NFSeEventos.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.d.ts +14 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.js +28 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/index.d.ts +6 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/index.js +23 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeAutorizacao/NFSeAutorizacaoService.d.ts +34 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeAutorizacao/NFSeAutorizacaoService.js +260 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeAutorizacao/NFSeAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeConsulta/NFSeConsultaService.d.ts +15 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeConsulta/NFSeConsultaService.js +54 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeConsulta/NFSeConsultaService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeDanfe/NFSeDanfeService.d.ts +16 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeDanfe/NFSeDanfeService.js +85 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeDanfe/NFSeDanfeService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeDistribuicao/NFSeDistribuicaoService.d.ts +15 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeDistribuicao/NFSeDistribuicaoService.js +250 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeDistribuicao/NFSeDistribuicaoService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeEventos/NFSeEventosService.d.ts +35 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeEventos/NFSeEventosService.js +373 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeEventos/NFSeEventosService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.d.ts +19 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.js +120 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/index.d.ts +6 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/index.js +23 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/src/services/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfse/dist/tsconfig.tsbuildinfo +1 -0
- package/.turbo/turbo-build.log +15 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +33 -0
- package/LICENSE.txt +221 -0
- package/dist/index.cjs +1563 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +1544 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/adapters/NFSe.d.ts +80 -0
- package/dist/src/adapters/index.d.ts +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/operations/NFSeAutorizacao/NFSeAutorizacao.d.ts +14 -0
- package/dist/src/operations/NFSeConsulta/NFSeConsulta.d.ts +9 -0
- package/dist/src/operations/NFSeDanfe/NFSeDanfe.d.ts +11 -0
- package/dist/src/operations/NFSeDistribuicao/NFSeDistribuicao.d.ts +9 -0
- package/dist/src/operations/NFSeEventos/NFSeEventos.d.ts +9 -0
- package/dist/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.d.ts +14 -0
- package/dist/src/operations/index.d.ts +6 -0
- package/dist/src/services/NFSeAutorizacao/NFSeAutorizacaoService.d.ts +34 -0
- package/dist/src/services/NFSeConsulta/NFSeConsultaService.d.ts +15 -0
- package/dist/src/services/NFSeDanfe/NFSeDanfeService.d.ts +16 -0
- package/dist/src/services/NFSeDistribuicao/NFSeDistribuicaoService.d.ts +15 -0
- package/dist/src/services/NFSeEventos/NFSeEventosService.d.ts +35 -0
- package/dist/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.d.ts +19 -0
- package/dist/src/services/index.d.ts +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +57 -0
- package/rollup.config.js +82 -0
- package/src/adapters/NFSe.ts +375 -0
- package/src/adapters/index.ts +18 -0
- package/src/index.ts +28 -0
- package/src/operations/NFSeAutorizacao/NFSeAutorizacao.ts +32 -0
- package/src/operations/NFSeConsulta/NFSeConsulta.ts +36 -0
- package/src/operations/NFSeDanfe/NFSeDanfe.ts +32 -0
- package/src/operations/NFSeDistribuicao/NFSeDistribuicao.ts +36 -0
- package/src/operations/NFSeEventos/NFSeEventos.ts +36 -0
- package/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.ts +64 -0
- package/src/operations/index.ts +23 -0
- package/src/services/NFSeAutorizacao/NFSeAutorizacaoService.ts +308 -0
- package/src/services/NFSeConsulta/NFSeConsultaService.ts +65 -0
- package/src/services/NFSeDanfe/NFSeDanfeService.ts +104 -0
- package/src/services/NFSeDistribuicao/NFSeDistribuicaoService.ts +275 -0
- package/src/services/NFSeEventos/NFSeEventosService.ts +411 -0
- package/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.ts +157 -0
- package/src/services/index.ts +23 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEAutorizacaoService.js","sourceRoot":"","sources":["NFEAutorizacaoService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,OAAO,EAAwB,aAAa,EAAc,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjJ,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,qBAAqB,MAAM,iEAAiE,CAAC;AACpG,OAAO,4BAA4B,MAAM,0DAA0D,CAAC;AAEpG,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,6CAA6C;AAE9D,MAAM,qBAAsB,SAAQ,OAAO;IAGvC,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;QAC3F,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IAES,QAAQ,CAAC,IAAS;QACxB,OAAO,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAES,aAAa,CAAC,WAAmB,EAAE,cAA6B,EAAE,UAAmC,EAAE,OAA6B;QAE1I,kGAAkG;QAClG,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;QAC5C,IAAI,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC;QAEzE,MAAM,cAAc,GAAG,CAAC,MAA0B,EAAE,iBAA2B,EAAE,EA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8 @@
|
|
|
1
|
+
import { XmlBuilder, BaseNFe, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, NFEconsultaProtocoloServiceImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
declare class NFEconsultaProtocoloService extends BaseNFe implements NFEconsultaProtocoloServiceImpl {
|
|
5
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
6
|
+
protected gerarXml(chave: string): string;
|
|
7
|
+
}
|
|
8
|
+
export default NFEconsultaProtocoloService;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of Treeunfe DFe.
|
|
3
|
+
*
|
|
4
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
5
|
+
* it under the terms of the GNU General Public License as published by
|
|
6
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
* (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU General Public License
|
|
15
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
*/
|
|
17
|
+
import { BaseNFe, logger } from '@treeunfe/shared';
|
|
18
|
+
class NFEconsultaProtocoloService extends BaseNFe {
|
|
19
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
20
|
+
super(environment, utility, xmlBuilder, 'NFEConsultaProtocolo', axios, saveFiles, gerarConsulta);
|
|
21
|
+
}
|
|
22
|
+
gerarXml(chave) {
|
|
23
|
+
logger.info('Montando estrutuda do XML em JSON', {
|
|
24
|
+
context: 'NFEconsultaProtocoloService',
|
|
25
|
+
});
|
|
26
|
+
const { nfe: { ambiente, versaoDF } } = this.environment.getConfig();
|
|
27
|
+
const xmlObject = {
|
|
28
|
+
$: {
|
|
29
|
+
versao: versaoDF,
|
|
30
|
+
xmlns: 'http://www.portalfiscal.inf.br/nfe'
|
|
31
|
+
},
|
|
32
|
+
tpAmb: ambiente,
|
|
33
|
+
xServ: 'CONSULTAR',
|
|
34
|
+
chNFe: chave,
|
|
35
|
+
};
|
|
36
|
+
return this.xmlBuilder.gerarXml(xmlObject, 'consSitNFe', this.metodo);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default NFEconsultaProtocoloService;
|
|
40
|
+
//# sourceMappingURL=NFEconsultaProtocoloService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEconsultaProtocoloService.js","sourceRoot":"","sources":["NFEconsultaProtocoloService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAc,OAAO,EAAwB,MAAM,EAAwF,MAAM,kBAAkB,CAAC;AAI3K,MAAM,2BAA4B,SAAQ,OAAO;IAC7C,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IACrG,CAAC;IAES,QAAQ,CAAC,KAAa;QAC5B,MAAM,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC7C,OAAO,EAAE,6BAA6B;SACzC,CAAC,CAAC;QACH,MAAM,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;QAErE,MAAM,SAAS,GAAG;YACd,CAAC,EAAE;gBACC,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE,oCAAoC;aAC9C;YACD,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,KAAK;SACf,CAAA;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1E,CAAC;CACJ;AAED,eAAe,2BAA2B,CAAC"}
|
|
@@ -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 NFEDistribuicaoDFeService from './NFEDistribuicaoDFeService.js';
|
|
5
|
+
declare class NFEDistribuicaoDFePorChaveService extends NFEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default NFEDistribuicaoDFePorChaveService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NFEDistribuicaoDFeService from './NFEDistribuicaoDFeService.js';
|
|
2
|
+
class NFEDistribuicaoDFePorChaveService extends NFEDistribuicaoDFeService {
|
|
3
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
4
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export default NFEDistribuicaoDFePorChaveService;
|
|
8
|
+
//# sourceMappingURL=NFEDistribuicaoDFePorChave.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEDistribuicaoDFePorChave.js","sourceRoot":"","sources":["NFEDistribuicaoDFePorChave.ts"],"names":[],"mappings":"AAmBA,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AAEvE,MAAM,iCAAkC,SAAQ,yBAAyB;IACrE,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7E,CAAC;CACJ;AAED,eAAe,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlBuilder, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
4
|
+
import NFEDistribuicaoDFeService from './NFEDistribuicaoDFeService.js';
|
|
5
|
+
declare class NFEDistribuicaoDFePorNSUService extends NFEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default NFEDistribuicaoDFePorNSUService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NFEDistribuicaoDFeService from './NFEDistribuicaoDFeService.js';
|
|
2
|
+
class NFEDistribuicaoDFePorNSUService extends NFEDistribuicaoDFeService {
|
|
3
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
4
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export default NFEDistribuicaoDFePorNSUService;
|
|
8
|
+
//# sourceMappingURL=NFEDistribuicaoDFePorNSU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEDistribuicaoDFePorNSU.js","sourceRoot":"","sources":["NFEDistribuicaoDFePorNSU.ts"],"names":[],"mappings":"AAoBA,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AAEvE,MAAM,+BAAgC,SAAQ,yBAAyB;IACnE,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7E,CAAC;CACJ;AAED,eAAe,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { XmlBuilder, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
4
|
+
import NFEDistribuicaoDFeService from './NFEDistribuicaoDFeService.js';
|
|
5
|
+
declare class NFEDistribuicaoDFePorUltNSUService extends NFEDistribuicaoDFeService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default NFEDistribuicaoDFePorUltNSUService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NFEDistribuicaoDFeService from './NFEDistribuicaoDFeService.js';
|
|
2
|
+
class NFEDistribuicaoDFePorUltNSUService extends NFEDistribuicaoDFeService {
|
|
3
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
4
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export default NFEDistribuicaoDFePorUltNSUService;
|
|
8
|
+
//# sourceMappingURL=NFEDistribuicaoDFePorUltNSU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEDistribuicaoDFePorUltNSU.js","sourceRoot":"","sources":["NFEDistribuicaoDFePorUltNSU.ts"],"names":[],"mappings":"AAoBA,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AAEvE,MAAM,kCAAmC,SAAQ,yBAAyB;IACtE,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7E,CAAC;CACJ;AAED,eAAe,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { XmlBuilder, BaseNFe, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { ConsultaNFe, GenericObject } from '@treeunfe/types';
|
|
4
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
5
|
+
import { Agent } from 'http';
|
|
6
|
+
declare class NFEDistribuicaoDFeService extends BaseNFe {
|
|
7
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
8
|
+
protected gerarXml(data: ConsultaNFe): string;
|
|
9
|
+
gerarXmlNFeDistribuicaoDFe(data: ConsultaNFe): string;
|
|
10
|
+
protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise<AxiosResponse<any, any>>;
|
|
11
|
+
Exec(data: ConsultaNFe): Promise<{
|
|
12
|
+
data: GenericObject;
|
|
13
|
+
xMotivo: any;
|
|
14
|
+
filesList: string[];
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
export default NFEDistribuicaoDFeService;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of Treeunfe DFe.
|
|
3
|
+
*
|
|
4
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
5
|
+
* it under the terms of the GNU General Public License as published by
|
|
6
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
* (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU General Public License
|
|
15
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
*/
|
|
17
|
+
import { BaseNFe, logger } from '@treeunfe/shared';
|
|
18
|
+
import DistribuicaoHandler from './util/DistribuicaoHandler.js';
|
|
19
|
+
class NFEDistribuicaoDFeService extends BaseNFe {
|
|
20
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
21
|
+
super(environment, utility, xmlBuilder, 'NFeDistribuicaoDFe', axios, saveFiles, gerarConsulta);
|
|
22
|
+
}
|
|
23
|
+
gerarXml(data) {
|
|
24
|
+
return this.gerarXmlNFeDistribuicaoDFe(data);
|
|
25
|
+
}
|
|
26
|
+
gerarXmlNFeDistribuicaoDFe(data) {
|
|
27
|
+
logger.info('Montando estrutuda do XML em JSON', {
|
|
28
|
+
context: 'NFEDistribuicaoDFeService',
|
|
29
|
+
});
|
|
30
|
+
const { nfe: { ambiente } } = this.environment.getConfig();
|
|
31
|
+
// XML
|
|
32
|
+
const xmlObject = {
|
|
33
|
+
$: {
|
|
34
|
+
versao: "1.01",
|
|
35
|
+
xmlns: 'http://www.portalfiscal.inf.br/nfe'
|
|
36
|
+
},
|
|
37
|
+
tpAmb: ambiente,
|
|
38
|
+
...data,
|
|
39
|
+
};
|
|
40
|
+
return this.xmlBuilder.gerarXml(xmlObject, 'distDFeInt', this.metodo);
|
|
41
|
+
}
|
|
42
|
+
async callWebService(xmlConsulta, webServiceUrl, ContentType, action, agent) {
|
|
43
|
+
const startTime = Date.now();
|
|
44
|
+
const headers = {
|
|
45
|
+
'Content-Type': ContentType,
|
|
46
|
+
};
|
|
47
|
+
logger.http('Iniciando comunicação com o webservice', {
|
|
48
|
+
context: `NFEDistribuicaoDFeService`,
|
|
49
|
+
method: this.metodo,
|
|
50
|
+
url: webServiceUrl,
|
|
51
|
+
action,
|
|
52
|
+
headers,
|
|
53
|
+
});
|
|
54
|
+
const response = await this.axios.post(webServiceUrl, xmlConsulta, {
|
|
55
|
+
headers,
|
|
56
|
+
httpsAgent: agent
|
|
57
|
+
});
|
|
58
|
+
const duration = Date.now() - startTime;
|
|
59
|
+
logger.http('Comunicação concluída com sucesso', {
|
|
60
|
+
context: `NFEDistribuicaoDFeService`,
|
|
61
|
+
method: this.metodo,
|
|
62
|
+
duration: `${duration}ms`,
|
|
63
|
+
responseSize: response.data ? JSON.stringify(response.data).length : 0
|
|
64
|
+
});
|
|
65
|
+
return response;
|
|
66
|
+
}
|
|
67
|
+
async Exec(data) {
|
|
68
|
+
let xmlConsulta = '';
|
|
69
|
+
let xmlConsultaSoap = '';
|
|
70
|
+
let webServiceUrlTmp = '';
|
|
71
|
+
let responseInJson = undefined;
|
|
72
|
+
let xmlRetorno = {};
|
|
73
|
+
const ContentType = this.setContentType();
|
|
74
|
+
try {
|
|
75
|
+
// Gerando XML para consulta de Status do Serviço
|
|
76
|
+
xmlConsulta = this.gerarXmlNFeDistribuicaoDFe(data);
|
|
77
|
+
const { xmlFormated, agent, webServiceUrl, action } = await this.gerarConsulta.gerarConsulta(xmlConsulta, this.metodo, true, '1.01', 'NFe', true, 'nfeDistDFeInteresse');
|
|
78
|
+
xmlConsultaSoap = xmlFormated;
|
|
79
|
+
webServiceUrlTmp = webServiceUrl;
|
|
80
|
+
const xmlRetorno = await this.callWebService(xmlFormated, webServiceUrl, ContentType, action, agent);
|
|
81
|
+
// Verifica se houve rejeição
|
|
82
|
+
responseInJson = this.utility.verificaRejeicao(xmlRetorno.data, this.metodo);
|
|
83
|
+
if (responseInJson.retDistDFeInt.cStat === '137') {
|
|
84
|
+
return {
|
|
85
|
+
data: {},
|
|
86
|
+
xMotivo: responseInJson.retDistDFeInt.xMotivo,
|
|
87
|
+
filesList: [],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Descompacta XML
|
|
92
|
+
* Converte XML para Json
|
|
93
|
+
* Salva XML
|
|
94
|
+
* Gera erro em caso de rejeição
|
|
95
|
+
*/
|
|
96
|
+
const handlerDistribuicao = new DistribuicaoHandler(this.environment, this.utility, this.metodo);
|
|
97
|
+
const filesList = handlerDistribuicao.deCompressDFeXML(xmlRetorno.data, this.metodo, xmlConsulta);
|
|
98
|
+
const xMotivo = this.utility.findInObj(responseInJson, 'xMotivo');
|
|
99
|
+
return {
|
|
100
|
+
data: responseInJson,
|
|
101
|
+
xMotivo,
|
|
102
|
+
filesList,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
// Salva XML de Consulta
|
|
107
|
+
this.utility.salvaConsulta(xmlConsulta, xmlConsultaSoap, this.metodo);
|
|
108
|
+
// Salva XML de Retorno
|
|
109
|
+
this.utility.salvaRetorno(xmlRetorno.data, responseInJson, this.metodo);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export default NFEDistribuicaoDFeService;
|
|
114
|
+
//# sourceMappingURL=NFEDistribuicaoDFeService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEDistribuicaoDFeService.js","sourceRoot":"","sources":["NFEDistribuicaoDFeService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAc,OAAO,EAAwB,MAAM,EAAwF,MAAM,kBAAkB,CAAC;AAM3K,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAEhE,MAAM,yBAA0B,SA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
|
+
declare class DistribuicaoHandler {
|
|
4
|
+
environment: Environment;
|
|
5
|
+
utility: Utility;
|
|
6
|
+
metodo: string;
|
|
7
|
+
constructor(environment: Environment, utility: Utility, metodo: string);
|
|
8
|
+
/**
|
|
9
|
+
* Métodos para tratativas do DistribuicaoDFe
|
|
10
|
+
*/
|
|
11
|
+
protected salvaArquivos(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chNFe: string): void;
|
|
12
|
+
deCompressDFeXML(loteDistDFeInt: AxiosResponse<any, any>, metodo: string, xmlConsulta: string): string[];
|
|
13
|
+
decodeDocZip(docZip: any): string;
|
|
14
|
+
removeSignatureTag(xmlString: string): string;
|
|
15
|
+
parseXml(xmlString: string): undefined;
|
|
16
|
+
getChNFe(parsedResult: GenericObject): any;
|
|
17
|
+
getTipo(parsedResult: GenericObject): "res" | "event" | "proc";
|
|
18
|
+
handleResponse(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chNFe: string): void;
|
|
19
|
+
}
|
|
20
|
+
export default DistribuicaoHandler;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { XmlParser } from '@treeunfe/shared';
|
|
2
|
+
import pako from 'pako';
|
|
3
|
+
import xml2js from 'xml2js';
|
|
4
|
+
class DistribuicaoHandler {
|
|
5
|
+
constructor(environment, utility, metodo) {
|
|
6
|
+
this.utility = utility;
|
|
7
|
+
this.environment = environment;
|
|
8
|
+
this.metodo = metodo;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Métodos para tratativas do DistribuicaoDFe
|
|
12
|
+
*/
|
|
13
|
+
salvaArquivos(XMLDistribuicaoInJson, XMLDistribuicao, chNFe) {
|
|
14
|
+
const { pathXMLDistribuicao, baixarXMLDistribuicao, armazenarRetornoEmJSON } = this.environment.config.dfe;
|
|
15
|
+
if (baixarXMLDistribuicao) {
|
|
16
|
+
this.utility.salvaXML({
|
|
17
|
+
data: XMLDistribuicao,
|
|
18
|
+
fileName: chNFe,
|
|
19
|
+
metodo: this.metodo,
|
|
20
|
+
path: pathXMLDistribuicao,
|
|
21
|
+
});
|
|
22
|
+
if (armazenarRetornoEmJSON) {
|
|
23
|
+
this.utility.salvaJSON({
|
|
24
|
+
data: XMLDistribuicaoInJson,
|
|
25
|
+
fileName: chNFe,
|
|
26
|
+
metodo: this.metodo,
|
|
27
|
+
path: pathXMLDistribuicao,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
deCompressDFeXML(loteDistDFeInt, metodo, xmlConsulta) {
|
|
33
|
+
logger.info('Descomprimindo XML', {
|
|
34
|
+
context: 'DistribuicaoHandler',
|
|
35
|
+
});
|
|
36
|
+
const json = new XmlParser();
|
|
37
|
+
const files = [];
|
|
38
|
+
xml2js.parseString(loteDistDFeInt, (err, result) => {
|
|
39
|
+
if (err) {
|
|
40
|
+
throw new Error(`Erro ao descomprimir o XML: ${err}`);
|
|
41
|
+
}
|
|
42
|
+
const docZips = this.utility.findInObj(result, 'docZip');
|
|
43
|
+
docZips.forEach((docZip) => {
|
|
44
|
+
const xmlString = this.decodeDocZip(docZip);
|
|
45
|
+
const cleanedXml = this.removeSignatureTag(xmlString);
|
|
46
|
+
const parsedResult = this.parseXml(cleanedXml);
|
|
47
|
+
if (!parsedResult)
|
|
48
|
+
return;
|
|
49
|
+
let chNFe = this.getChNFe(parsedResult);
|
|
50
|
+
let tipo = this.getTipo(parsedResult);
|
|
51
|
+
const nsu = docZip['$'].NSU;
|
|
52
|
+
if (parsedResult['procEventoNFe']) {
|
|
53
|
+
const tpEvento = this.utility.findInObj(parsedResult, 'tpEvento');
|
|
54
|
+
chNFe = `${chNFe}-event-${tpEvento}`;
|
|
55
|
+
tipo = 'event';
|
|
56
|
+
}
|
|
57
|
+
const xmlDistribuicaoInJson = json.convertXmlToJson(cleanedXml, `${metodo}_${tipo}`, nsu);
|
|
58
|
+
this.handleResponse(xmlDistribuicaoInJson, cleanedXml, chNFe);
|
|
59
|
+
files.push(chNFe);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
return files;
|
|
63
|
+
}
|
|
64
|
+
decodeDocZip(docZip) {
|
|
65
|
+
logger.info('Decodificando DocZip', {
|
|
66
|
+
context: 'DistribuicaoHandler',
|
|
67
|
+
});
|
|
68
|
+
const base64String = docZip['_'];
|
|
69
|
+
let binaryString = atob(base64String);
|
|
70
|
+
let bytes = new Uint8Array(binaryString.length);
|
|
71
|
+
for (let i = 0; i < binaryString.length; i++) {
|
|
72
|
+
bytes[i] = binaryString.charCodeAt(i);
|
|
73
|
+
}
|
|
74
|
+
let decompressedData = pako.inflate(bytes);
|
|
75
|
+
return new TextDecoder("utf-8").decode(decompressedData);
|
|
76
|
+
}
|
|
77
|
+
removeSignatureTag(xmlString) {
|
|
78
|
+
return xmlString.replace(/<Signature.*?<\/Signature>/gs, '');
|
|
79
|
+
}
|
|
80
|
+
parseXml(xmlString) {
|
|
81
|
+
let parsedResult;
|
|
82
|
+
xml2js.parseString(xmlString, (err, result) => {
|
|
83
|
+
if (err) {
|
|
84
|
+
console.error('Erro ao parsear o XML decomprimido:', err);
|
|
85
|
+
parsedResult = null;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
parsedResult = result;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
return parsedResult;
|
|
92
|
+
}
|
|
93
|
+
getChNFe(parsedResult) {
|
|
94
|
+
return this.utility.findInObj(parsedResult, 'chNFe');
|
|
95
|
+
}
|
|
96
|
+
getTipo(parsedResult) {
|
|
97
|
+
if (this.utility.findInObj(parsedResult, 'resNFe')) {
|
|
98
|
+
return 'res';
|
|
99
|
+
}
|
|
100
|
+
else if (parsedResult['procEventoNFe']) {
|
|
101
|
+
return 'event';
|
|
102
|
+
}
|
|
103
|
+
return 'proc';
|
|
104
|
+
}
|
|
105
|
+
handleResponse(XMLDistribuicaoInJson, XMLDistribuicao, chNFe) {
|
|
106
|
+
this.salvaArquivos(XMLDistribuicaoInJson, XMLDistribuicao, chNFe);
|
|
107
|
+
// Gera erro em caso de Rejeição
|
|
108
|
+
const xMotivo = this.utility.findInObj(XMLDistribuicaoInJson, 'xMotivo');
|
|
109
|
+
if (xMotivo && (xMotivo.includes('Rejeição') || xMotivo.includes('Rejeicao'))) {
|
|
110
|
+
throw new Error(XMLDistribuicaoInJson.xMotivo);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export default DistribuicaoHandler;
|
|
115
|
+
//# sourceMappingURL=DistribuicaoHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DistribuicaoHandler.js","sourceRoot":"","sources":["DistribuicaoHandler.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,mBAAmB;IAIrB,YAAY,WAAwB,EAAE,OAAgB,EAAE,MAAc;QAClE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED;;OAEG;IAEO,aAAa,CAAC,qBAAoC,EAAE,eAAuB,EAAE,KAAa;QAChG,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAA;QAE1G,IAAI,qBAAqB,EAAE,CAAC;YACxB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;gBAClB,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,KAAK;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,IAAI,EAAE,mBAAmB;aAC5B,CAAC,CAAC;YAEH,IAAI,sBAAsB,EAAE,CAAC;gBACzB,IAAI,CAAC,OAAO,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AAC,OAAO,CAAC,CAAA;QAClD,CAAC;IACL,CAAC;CAEJ;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { XmlBuilder, BaseNFe, Environment, Utility } from '@treeunfe/shared';
|
|
2
|
+
import { GerarConsultaImpl, NFEInutilizacaoServiceImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
|
|
3
|
+
import { InutilizacaoData } from '@treeunfe/types';
|
|
4
|
+
import { AxiosInstance } from 'axios';
|
|
5
|
+
declare class NFEInutilizacaoService extends BaseNFe implements NFEInutilizacaoServiceImpl {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
protected gerarXml(chave: InutilizacaoData): string;
|
|
8
|
+
/**
|
|
9
|
+
* Método para criação do ID de Inutilização
|
|
10
|
+
*/
|
|
11
|
+
private criarId;
|
|
12
|
+
/**
|
|
13
|
+
* Sobrescreve o método pai para determinar o modelo baseado nos dados de inutilização
|
|
14
|
+
*/
|
|
15
|
+
protected getModelo(data?: InutilizacaoData): string;
|
|
16
|
+
/**
|
|
17
|
+
* Método utilitário para criação do XML a partir de um Objeto
|
|
18
|
+
*/
|
|
19
|
+
gerarXmlNFeInutilizacao(data: InutilizacaoData): string;
|
|
20
|
+
}
|
|
21
|
+
export default NFEInutilizacaoService;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of Treeunfe DFe.
|
|
3
|
+
*
|
|
4
|
+
* Treeunfe DFe is free software: you can redistribute it and/or modify
|
|
5
|
+
* it under the terms of the GNU General Public License as published by
|
|
6
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
* (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* Treeunfe DFe is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU General Public License
|
|
15
|
+
* along with Treeunfe DFe. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
+
*/
|
|
17
|
+
import { BaseNFe, logger } from '@treeunfe/shared';
|
|
18
|
+
class NFEInutilizacaoService extends BaseNFe {
|
|
19
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
20
|
+
super(environment, utility, xmlBuilder, 'NFEInutilizacao', axios, saveFiles, gerarConsulta);
|
|
21
|
+
}
|
|
22
|
+
gerarXml(chave) {
|
|
23
|
+
return this.gerarXmlNFeInutilizacao(chave);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Método para criação do ID de Inutilização
|
|
27
|
+
*/
|
|
28
|
+
criarId(codigoUF, ano, cnpj, modelo, serie, numeroInicial, numeroFinal) {
|
|
29
|
+
const id = `ID${codigoUF}${ano}${cnpj}${modelo}${serie}${numeroInicial}${numeroFinal}`;
|
|
30
|
+
return id;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Sobrescreve o método pai para determinar o modelo baseado nos dados de inutilização
|
|
34
|
+
*/
|
|
35
|
+
getModelo(data) {
|
|
36
|
+
if (data?.mod) {
|
|
37
|
+
return data.mod === '55' ? 'NFe' : 'NFCe';
|
|
38
|
+
}
|
|
39
|
+
return super.getModelo(data); // usa o comportamento padrão
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Método utilitário para criação do XML a partir de um Objeto
|
|
43
|
+
*/
|
|
44
|
+
gerarXmlNFeInutilizacao(data) {
|
|
45
|
+
logger.info('Montando estrutuda do XML em JSON', {
|
|
46
|
+
context: 'NFEInutilizacaoService',
|
|
47
|
+
});
|
|
48
|
+
const { nfe: { ambiente } } = this.environment.getConfig();
|
|
49
|
+
const { cUF, ano, CNPJ, mod, serie, nNFIni, nNFFin, xJust } = data;
|
|
50
|
+
const anoFormatado = ano.toString().slice(-2);
|
|
51
|
+
const serieFormatada = serie.padStart(3, '0');
|
|
52
|
+
const numNFIniFormatado = nNFIni.padStart(9, '0');
|
|
53
|
+
const numNFFinFormatado = nNFFin.padStart(9, '0');
|
|
54
|
+
const id = this.criarId(cUF, anoFormatado, CNPJ, mod, serieFormatada, numNFIniFormatado, numNFFinFormatado);
|
|
55
|
+
const xServ = 'INUTILIZAR';
|
|
56
|
+
if ([55, 65].indexOf(Number(mod)) === -1) {
|
|
57
|
+
throw new Error(`Modelo do documento para inutilização deve ser 55 ou 65. Modelo informado: ${mod}`);
|
|
58
|
+
}
|
|
59
|
+
const xmlObject = {
|
|
60
|
+
$: {
|
|
61
|
+
versao: "4.00",
|
|
62
|
+
xmlns: 'http://www.portalfiscal.inf.br/nfe'
|
|
63
|
+
},
|
|
64
|
+
infInut: {
|
|
65
|
+
$: {
|
|
66
|
+
Id: `${id}`,
|
|
67
|
+
},
|
|
68
|
+
tpAmb: ambiente,
|
|
69
|
+
xServ,
|
|
70
|
+
cUF,
|
|
71
|
+
ano,
|
|
72
|
+
CNPJ,
|
|
73
|
+
mod,
|
|
74
|
+
serie,
|
|
75
|
+
nNFIni,
|
|
76
|
+
nNFFin,
|
|
77
|
+
xJust,
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
// Gerar XML
|
|
81
|
+
const xml = this.xmlBuilder.gerarXml(xmlObject, 'inutNFe', this.metodo);
|
|
82
|
+
// Assinar XML
|
|
83
|
+
return this.xmlBuilder.assinarXML(xml, 'infInut');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export default NFEInutilizacaoService;
|
|
87
|
+
//# sourceMappingURL=NFEInutilizacaoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEInutilizacaoService.js","sourceRoot":"","sources":["NFEInutilizacaoService.ts"],"names":[],"mappings":"AAAA;;;;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AM,CAAC,CAAA;QAEvE,cAAc;QACd,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACtD,CAAC;CAEJ;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -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 NFERecepcaoEventoService from './NFERecepcaoEventoService';
|
|
5
|
+
declare class NFECancelamentoService extends NFERecepcaoEventoService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default NFECancelamentoService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NFERecepcaoEventoService from './NFERecepcaoEventoService';
|
|
2
|
+
class NFECancelamentoService extends NFERecepcaoEventoService {
|
|
3
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
4
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export default NFECancelamentoService;
|
|
8
|
+
//# sourceMappingURL=NFECancelamentoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFECancelamentoService.js","sourceRoot":"","sources":["NFECancelamentoService.ts"],"names":[],"mappings":"AAmBA,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAElE,MAAM,sBAAuB,SAAQ,wBAAwB;IACzD,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7E,CAAC;CACJ;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -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 NFERecepcaoEventoService from './NFERecepcaoEventoService.js';
|
|
5
|
+
declare class NFECartaDeCorrecaoService extends NFERecepcaoEventoService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default NFECartaDeCorrecaoService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NFERecepcaoEventoService from './NFERecepcaoEventoService.js';
|
|
2
|
+
class NFECartaDeCorrecaoService extends NFERecepcaoEventoService {
|
|
3
|
+
constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
|
|
4
|
+
super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export default NFECartaDeCorrecaoService;
|
|
8
|
+
//# sourceMappingURL=NFECartaDeCorrecaoService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFECartaDeCorrecaoService.js","sourceRoot":"","sources":["NFECartaDeCorrecaoService.ts"],"names":[],"mappings":"AAmBA,OAAO,wBAAwB,MAAM,+BAA+B,CAAC;AAErE,MAAM,yBAA0B,SAAQ,wBAAwB;IAC5D,YAAY,WAAwB,EAAE,OAAgB,EAAE,UAAsB,EAAE,KAAoB,EAAE,SAAwB,EAAE,aAAgC;QAC5J,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7E,CAAC;CAEJ;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -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 NFERecepcaoEventoService from './NFERecepcaoEventoService';
|
|
5
|
+
declare class NFECienciaDaOperacaoService extends NFERecepcaoEventoService {
|
|
6
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
7
|
+
}
|
|
8
|
+
export default NFECienciaDaOperacaoService;
|