@treeunfe/nfce 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/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/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/nfce/dist/src/adapters/NFCe.d.ts +22 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/adapters/NFCe.js +85 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/adapters/NFCe.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/adapters/index.d.ts +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/adapters/index.js +18 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/adapters/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/index.d.ts +4 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/index.js +25 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/NFCEAutorizacao/NFCEAutorizacao.d.ts +7 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/NFCEAutorizacao/NFCEAutorizacao.js +10 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/NFCEAutorizacao/NFCEAutorizacao.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.d.ts +17 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.js +10 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/index.d.ts +2 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/index.js +19 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/operations/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCEAutorizacao/NFCEAutorizacaoService.d.ts +32 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCEAutorizacao/NFCEAutorizacaoService.js +424 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCEAutorizacao/NFCEAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCEAutorizacao/util/NFCEQRCode.d.ts +3 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCEAutorizacao/util/NFCEQRCode.js +38 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCEAutorizacao/util/NFCEQRCode.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.d.ts +52 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.js +141 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/index.d.ts +2 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/index.js +19 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/src/services/index.js.map +1 -0
- package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/nfce/dist/tsconfig.tsbuildinfo +1 -0
- package/.turbo/turbo-build.log +15 -0
- package/CHANGELOG.md +36 -0
- package/LICENSE.txt +221 -0
- package/dist/index.cjs +713 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +701 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/adapters/NFCe.d.ts +22 -0
- package/dist/src/adapters/index.d.ts +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/operations/NFCEAutorizacao/NFCEAutorizacao.d.ts +7 -0
- package/dist/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.d.ts +17 -0
- package/dist/src/operations/index.d.ts +2 -0
- package/dist/src/services/NFCEAutorizacao/NFCEAutorizacaoService.d.ts +32 -0
- package/dist/src/services/NFCEAutorizacao/util/NFCEQRCode.d.ts +3 -0
- package/dist/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.d.ts +52 -0
- package/dist/src/services/index.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +61 -0
- package/rollup.config.js +187 -0
- package/src/adapters/NFCe.ts +104 -0
- package/src/adapters/index.ts +18 -0
- package/src/index.ts +28 -0
- package/src/operations/NFCEAutorizacao/NFCEAutorizacao.ts +32 -0
- package/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.ts +42 -0
- package/src/operations/index.ts +19 -0
- package/src/services/NFCEAutorizacao/NFCEAutorizacaoService.ts +532 -0
- package/src/services/NFCEAutorizacao/util/NFCEQRCode.ts +68 -0
- package/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.ts +189 -0
- package/src/services/index.ts +19 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
import { XmlBuilder, Utility, GerarConsulta, SaveFiles, Environment, logger } from '@treeunfe/shared';
|
|
2
|
+
import { NFCEGerarDanfe, NFEGerarDanfe } from '@treeunfe/danfe';
|
|
3
|
+
import { NFCEAutorizacao } from '@treeunfe/nfce';
|
|
4
|
+
import NFEStatusServicoService from '../NFEStatusServico/NFEStatusServicoService';
|
|
5
|
+
import NFEConsultaProtocolo from '../../operations/NFEConsultaProtocolo/NFEconsultaProtocolo';
|
|
6
|
+
import NFEDistribuicaoDFe from '../../operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe';
|
|
7
|
+
import NFEDistribuicaoDFePorChave from '../../operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave';
|
|
8
|
+
import NFEDistribuicaoDFePorNSU from '../../operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU';
|
|
9
|
+
import NFEDistribuicaoDFePorUltNSU from '../../operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU';
|
|
10
|
+
import NFECancelamento from '../../operations/NFERecepcaoEvento/NFECancelamento';
|
|
11
|
+
import NFECienciaDaOperacao from '../../operations/NFERecepcaoEvento/NFECienciaDaOperacao';
|
|
12
|
+
import NFEConfirmacaoDaOperacao from '../../operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao';
|
|
13
|
+
import NFEEpec from '../../operations/NFERecepcaoEvento/NFEEpec';
|
|
14
|
+
import NFEOperacaoNaoRealizada from '../../operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada';
|
|
15
|
+
// CTe imports
|
|
16
|
+
import { CTEDistribuicaoDFe, CTEDistribuicaoDFePorNSU, CTEDistribuicaoDFePorUltNSU, CTEDistribuicaoDFeService, CTEDistribuicaoDFePorNSUService, CTEDistribuicaoDFePorUltNSUService } from '@treeunfe/cte';
|
|
17
|
+
import { NFCEAutorizacaoService } from '@treeunfe/nfce';
|
|
18
|
+
import NFEAutorizacao from '../../operations/NFEAutorizacao/NFEAutorizacao';
|
|
19
|
+
import NFEInutilizacao from '../../operations/NFEInutilizacao/NFEInutilizacao';
|
|
20
|
+
import NFECartaDeCorrecao from '../../operations/NFERecepcaoEvento/NFECartaDeCorrecao';
|
|
21
|
+
import NFEDesconhecimentoDaOperacao from '../../operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao';
|
|
22
|
+
import NFERecepcaoEvento from '../../operations/NFERecepcaoEvento/NFERecepcaoEvento';
|
|
23
|
+
import NFEStatusServico from '../../operations/NFEStatusServico/NFEStatusServico';
|
|
24
|
+
import NFEAutorizacaoService from '../NFEAutorizacao/NFEAutorizacaoService';
|
|
25
|
+
import NFEconsultaProtocoloService from '../NFEConsultaProtocolo/NFEconsultaProtocoloService';
|
|
26
|
+
import NFEDistribuicaoDFePorChaveService from '../NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave';
|
|
27
|
+
import NFEDistribuicaoDFePorNSUService from '../NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU';
|
|
28
|
+
import NFEDistribuicaoDFePorUltNSUService from '../NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU';
|
|
29
|
+
import NFEDistribuicaoDFeService from '../NFEDistribuicaoDFe/NFEDistribuicaoDFeService';
|
|
30
|
+
import NFEInutilizacaoService from '../NFEInutilizacao/NFEInutilizacaoService';
|
|
31
|
+
import NFECancelamentoService from '../NFERecepcaoEvento/NFECancelamentoService';
|
|
32
|
+
import NFECartaDeCorrecaoService from '../NFERecepcaoEvento/NFECartaDeCorrecaoService';
|
|
33
|
+
import NFECienciaDaOperacaoService from '../NFERecepcaoEvento/NFECienciaDaOperacaoService';
|
|
34
|
+
import NFEDesconhecimentoDaOperacaoService from '../NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService';
|
|
35
|
+
import NFEEpecService from '../NFERecepcaoEvento/NFEEpecService';
|
|
36
|
+
import NFEOperacaoNaoRealizadaService from '../NFERecepcaoEvento/NFEOperacaoNaoRealizadaService';
|
|
37
|
+
import NFERecepcaoEventoService from '../NFERecepcaoEvento/NFERecepcaoEventoService';
|
|
38
|
+
class TreeunfeDFeService {
|
|
39
|
+
constructor() {
|
|
40
|
+
this.config = {};
|
|
41
|
+
this.environment = {};
|
|
42
|
+
this.utility = {};
|
|
43
|
+
this.xmlBuilder = {};
|
|
44
|
+
this.axios = {};
|
|
45
|
+
this.saveFiles = {};
|
|
46
|
+
this.gerarConsulta = {};
|
|
47
|
+
if (new.target) {
|
|
48
|
+
return new Proxy(this, {
|
|
49
|
+
get(target, prop, receiver) {
|
|
50
|
+
const origMethod = target[prop];
|
|
51
|
+
if (typeof origMethod === 'function') {
|
|
52
|
+
return async function (...args) {
|
|
53
|
+
// Métodos que não precisam de validação prévia (carregam o ambiente)
|
|
54
|
+
if (prop === 'NFE_LoadEnvironment' || prop === 'NFSE_LoadEnvironment') {
|
|
55
|
+
return origMethod.apply(target, args);
|
|
56
|
+
}
|
|
57
|
+
// Lógica de validação antes de cada método
|
|
58
|
+
await target.validateEnvironment(prop);
|
|
59
|
+
// Chama o método original
|
|
60
|
+
return origMethod.apply(target, args);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return Reflect.get(target, prop, receiver);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async NFE_LoadEnvironment({ config }) {
|
|
69
|
+
try {
|
|
70
|
+
// Valida se a configuração NFe foi fornecida
|
|
71
|
+
if (!config.nfe) {
|
|
72
|
+
throw new Error('Configuração NFe não encontrada. Por favor, forneça a seção "nfe" na configuração.');
|
|
73
|
+
}
|
|
74
|
+
this.config = config;
|
|
75
|
+
// Carrega Ambiente
|
|
76
|
+
this.environment = new Environment(this.config);
|
|
77
|
+
const { axios } = await this.environment.loadEnvironment();
|
|
78
|
+
this.axios = axios;
|
|
79
|
+
// Inicia método de Utilitários
|
|
80
|
+
this.utility = new Utility(this.environment);
|
|
81
|
+
this.saveFiles = new SaveFiles(this.environment, this.utility);
|
|
82
|
+
// Inicia método de geração de XML
|
|
83
|
+
this.xmlBuilder = new XmlBuilder(this.environment);
|
|
84
|
+
this.gerarConsulta = new GerarConsulta(this.environment, this.utility, this.xmlBuilder);
|
|
85
|
+
// console.log('===================================');
|
|
86
|
+
// console.log('Biblioteca Inicializada com Sucesso');
|
|
87
|
+
// console.log('===================================');
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
logger.error(``, error, { context: 'NFE_LoadEnvironment', });
|
|
91
|
+
throw new Error(`Erro ao inicializar a lib: ${error}`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Status Serviço
|
|
96
|
+
*/
|
|
97
|
+
async NFE_ConsultaStatusServico() {
|
|
98
|
+
try {
|
|
99
|
+
const nfeStatusServicoService = new NFEStatusServicoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
100
|
+
const nfeStatusServico = new NFEStatusServico(nfeStatusServicoService);
|
|
101
|
+
const response = await nfeStatusServico.Exec();
|
|
102
|
+
console.log('Retorno NFE_ConsultaStatusServico');
|
|
103
|
+
console.log(` ${response.xMotivo}`);
|
|
104
|
+
console.log('===================================');
|
|
105
|
+
return response;
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
logger.error(``, error, { context: 'NFE_ConsultaStatusServico', });
|
|
109
|
+
throw new Error(`NFE_ConsultaStatusServico: ${error.message}`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Consulta Protocolo
|
|
114
|
+
*/
|
|
115
|
+
async NFE_ConsultaProtocolo(chave) {
|
|
116
|
+
try {
|
|
117
|
+
const nfeConsultaProtocoloService = new NFEconsultaProtocoloService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
118
|
+
const nfeConsultaProtocolo = new NFEConsultaProtocolo(nfeConsultaProtocoloService);
|
|
119
|
+
const response = await nfeConsultaProtocolo.Exec(chave);
|
|
120
|
+
console.log('Retorno NFE_ConsultaProtocolo');
|
|
121
|
+
console.log(` ${response.xMotivo}`);
|
|
122
|
+
console.log('===================================');
|
|
123
|
+
return response;
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
logger.error(``, error, { context: 'NFE_ConsultaProtocolo', });
|
|
127
|
+
throw new Error(`NFE_ConsultaProtocolo: ${error.message}`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Recepção de Eventos
|
|
132
|
+
*/
|
|
133
|
+
async NFE_RecepcaoEvento(evento) {
|
|
134
|
+
try {
|
|
135
|
+
const nfeRecepcaoEventoService = new NFERecepcaoEventoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
136
|
+
const nfeRecepcaoEvento = new NFERecepcaoEvento(nfeRecepcaoEventoService);
|
|
137
|
+
const response = await nfeRecepcaoEvento.Exec(evento);
|
|
138
|
+
console.log('Retorno NFE_RecepcaoEvento');
|
|
139
|
+
console.table(response.xMotivos);
|
|
140
|
+
console.log('===================================');
|
|
141
|
+
return response.response;
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
logger.error(``, error, { context: 'NFE_RecepcaoEvento', });
|
|
145
|
+
throw new Error(`NFE_RecepcaoEvento: ${error.message}`);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async NFE_EventoPrevioDeEmissaoEmContingencia(evento) {
|
|
149
|
+
try {
|
|
150
|
+
const nfeEpecService = new NFEEpecService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
151
|
+
const nfeEpec = new NFEEpec(nfeEpecService);
|
|
152
|
+
const response = await nfeEpec.Exec(evento);
|
|
153
|
+
console.log('Retorno NFEEpec');
|
|
154
|
+
console.table(response.xMotivos);
|
|
155
|
+
console.log('===================================');
|
|
156
|
+
return response.response;
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
logger.error(``, error, { context: 'NFE_EventoPrevioDeEmissaoEmContingencia', });
|
|
160
|
+
throw new Error(`NFEEpec: ${error.message}`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
async NFE_Cancelamento(evento) {
|
|
164
|
+
try {
|
|
165
|
+
const nfeCancelamentoService = new NFECancelamentoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
166
|
+
const nfeCancelamento = new NFECancelamento(nfeCancelamentoService);
|
|
167
|
+
const response = await nfeCancelamento.Exec(evento);
|
|
168
|
+
console.log('Retorno NFE_Cancelamento');
|
|
169
|
+
console.table(response.xMotivos);
|
|
170
|
+
console.log('===================================');
|
|
171
|
+
return response.response;
|
|
172
|
+
}
|
|
173
|
+
catch (error) {
|
|
174
|
+
logger.error(``, error, { context: 'NFE_Cancelamento', });
|
|
175
|
+
throw new Error(`NFE_Cancelamento: ${error.message}`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
async NFE_CienciaDaOperacao(evento) {
|
|
179
|
+
try {
|
|
180
|
+
const nfeCienciaDaOperacaoService = new NFECienciaDaOperacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
181
|
+
const nfeCienciaDaOperacao = new NFECienciaDaOperacao(nfeCienciaDaOperacaoService);
|
|
182
|
+
const response = await nfeCienciaDaOperacao.Exec(evento);
|
|
183
|
+
console.log('Retorno NFE_CienciaDaOperacao');
|
|
184
|
+
console.table(response.xMotivos);
|
|
185
|
+
console.log('===================================');
|
|
186
|
+
return response.response;
|
|
187
|
+
}
|
|
188
|
+
catch (error) {
|
|
189
|
+
logger.error(``, error, { context: 'NFE_CienciaDaOperacao', });
|
|
190
|
+
throw new Error(`NFE_CienciaDaOperacao: ${error.message}`);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
async NFE_ConfirmacaoDaOperacao(evento) {
|
|
194
|
+
try {
|
|
195
|
+
const nfeConfirmacaoDaOperacaoService = new NFECienciaDaOperacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
196
|
+
const nfeConfirmacaoDaOperacao = new NFEConfirmacaoDaOperacao(nfeConfirmacaoDaOperacaoService);
|
|
197
|
+
const response = await nfeConfirmacaoDaOperacao.Exec(evento);
|
|
198
|
+
console.log('Retorno NFE_ConfirmacaoDaOperacao');
|
|
199
|
+
console.table(response.xMotivos);
|
|
200
|
+
console.log('===================================');
|
|
201
|
+
return response.response;
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
logger.error(``, error, { context: 'NFE_ConfirmacaoDaOperacao', });
|
|
205
|
+
throw new Error(`NFE_ConfirmacaoDaOperacao: ${error.message}`);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async NFE_OperacaoNaoRealizada(evento) {
|
|
209
|
+
try {
|
|
210
|
+
const nfeOperacaoNaoRealizadaService = new NFEOperacaoNaoRealizadaService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
211
|
+
const nfeOperacaoNaoRealizada = new NFEOperacaoNaoRealizada(nfeOperacaoNaoRealizadaService);
|
|
212
|
+
const response = await nfeOperacaoNaoRealizada.Exec(evento);
|
|
213
|
+
console.log('Retorno NFE_OperacaoNaoRealizada');
|
|
214
|
+
console.table(response.xMotivos);
|
|
215
|
+
console.log('===================================');
|
|
216
|
+
return response.response;
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
logger.error(``, error, { context: 'NFE_OperacaoNaoRealizada', });
|
|
220
|
+
throw new Error(`NFE_OperacaoNaoRealizada: ${error.message}`);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
async NFE_CartaDeCorrecao(evento) {
|
|
224
|
+
try {
|
|
225
|
+
const nfeCartaDeCorrecaoService = new NFECartaDeCorrecaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
226
|
+
const nfeCartaDeCorrecao = new NFECartaDeCorrecao(nfeCartaDeCorrecaoService);
|
|
227
|
+
const response = await nfeCartaDeCorrecao.Exec(evento);
|
|
228
|
+
console.log('Retorno NFE_CartaDeCorrecao');
|
|
229
|
+
console.table(response.xMotivos);
|
|
230
|
+
console.log('===================================');
|
|
231
|
+
return response.response;
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
logger.error(``, error, { context: 'NFE_CartaDeCorrecao', });
|
|
235
|
+
throw new Error(`NFE_CartaDeCorrecao: ${error.message}`);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
async NFE_DesconhecimentoDaOperacao(evento) {
|
|
239
|
+
try {
|
|
240
|
+
const nfeDesconhecimentoDaOperacaoService = new NFEDesconhecimentoDaOperacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
241
|
+
const nfeDesconhecimentoDaOperacao = new NFEDesconhecimentoDaOperacao(nfeDesconhecimentoDaOperacaoService);
|
|
242
|
+
const response = await nfeDesconhecimentoDaOperacao.Exec(evento);
|
|
243
|
+
console.log('Retorno NFE_DesconhecimentoDaOperacao');
|
|
244
|
+
console.table(response.xMotivos);
|
|
245
|
+
console.log('===================================');
|
|
246
|
+
return response.response;
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
logger.error(``, error, { context: 'NFE_DesconhecimentoDaOperacao', });
|
|
250
|
+
throw new Error(`NFE_DesconhecimentoDaOperacao: ${error.message}`);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Distribuição DFe
|
|
255
|
+
*/
|
|
256
|
+
async NFE_DistribuicaoDFe(data) {
|
|
257
|
+
try {
|
|
258
|
+
const distribuicaoDFeService = new NFEDistribuicaoDFeService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
259
|
+
const distribuicaoDFe = new NFEDistribuicaoDFe(distribuicaoDFeService);
|
|
260
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
261
|
+
console.log('Retorno NFE_DistribuicaoDFe');
|
|
262
|
+
console.log(` ${response.xMotivo}`);
|
|
263
|
+
console.log('===================================');
|
|
264
|
+
return response.data;
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
logger.error(``, error, { context: 'NFE_DistribuicaoDFe', });
|
|
268
|
+
throw new Error(`NFE_DistribuicaoDFe: ${error.message}`);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
async NFE_DistribuicaoDFePorUltNSU(data) {
|
|
272
|
+
try {
|
|
273
|
+
const distribuicaoDFeService = new NFEDistribuicaoDFePorUltNSUService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
274
|
+
const distribuicaoDFe = new NFEDistribuicaoDFePorUltNSU(distribuicaoDFeService);
|
|
275
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
276
|
+
console.log('Retorno NFE_DistribuicaoDFePorUltNSU');
|
|
277
|
+
console.log(` ${response.xMotivo}`);
|
|
278
|
+
console.log('===================================');
|
|
279
|
+
return response.data;
|
|
280
|
+
}
|
|
281
|
+
catch (error) {
|
|
282
|
+
logger.error(``, error, { context: 'NFE_DistribuicaoDFePorUltNSU', });
|
|
283
|
+
throw new Error(`NFE_DistribuicaoDFePorUltNSU: ${error.message}`);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
async NFE_DistribuicaoDFePorNSU(data) {
|
|
287
|
+
try {
|
|
288
|
+
const distribuicaoDFeService = new NFEDistribuicaoDFePorNSUService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
289
|
+
const distribuicaoDFe = new NFEDistribuicaoDFePorNSU(distribuicaoDFeService);
|
|
290
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
291
|
+
console.log('Retorno NFE_DistribuicaoDFePorNSU');
|
|
292
|
+
console.log(` ${response.xMotivo}`);
|
|
293
|
+
console.log('===================================');
|
|
294
|
+
return response.data;
|
|
295
|
+
}
|
|
296
|
+
catch (error) {
|
|
297
|
+
logger.error(``, error, { context: 'NFE_DistribuicaoDFePorNSU', });
|
|
298
|
+
throw new Error(`NFE_DistribuicaoDFePorNSU: ${error.message}`);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
async NFE_DistribuicaoDFePorChave(data) {
|
|
302
|
+
try {
|
|
303
|
+
const distribuicaoDFeService = new NFEDistribuicaoDFePorChaveService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
304
|
+
const distribuicaoDFe = new NFEDistribuicaoDFePorChave(distribuicaoDFeService);
|
|
305
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
306
|
+
console.log('Retorno NFE_DistribuicaoDFePorChave');
|
|
307
|
+
console.log(` ${response.xMotivo}`);
|
|
308
|
+
console.log('===================================');
|
|
309
|
+
return response.data;
|
|
310
|
+
}
|
|
311
|
+
catch (error) {
|
|
312
|
+
logger.error(``, error, { context: 'NFE_DistribuicaoDFePorChave', });
|
|
313
|
+
throw new Error(`NFE_DistribuicaoDFePorChave: ${error.message}`);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Distribuição DFe CTe
|
|
318
|
+
*/
|
|
319
|
+
async CTE_DistribuicaoDFe(data) {
|
|
320
|
+
try {
|
|
321
|
+
const distribuicaoDFeService = new CTEDistribuicaoDFeService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
322
|
+
const distribuicaoDFe = new CTEDistribuicaoDFe(distribuicaoDFeService);
|
|
323
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
324
|
+
console.log('Retorno CTE_DistribuicaoDFe');
|
|
325
|
+
console.log(` ${response.xMotivo}`);
|
|
326
|
+
console.log('===================================');
|
|
327
|
+
return response.data;
|
|
328
|
+
}
|
|
329
|
+
catch (error) {
|
|
330
|
+
logger.error(``, error, { context: 'CTE_DistribuicaoDFe', });
|
|
331
|
+
throw new Error(`CTE_DistribuicaoDFe: ${error.message}`);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
async CTE_DistribuicaoDFePorUltNSU(data) {
|
|
335
|
+
try {
|
|
336
|
+
const distribuicaoDFeService = new CTEDistribuicaoDFePorUltNSUService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
337
|
+
const distribuicaoDFe = new CTEDistribuicaoDFePorUltNSU(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
338
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
339
|
+
console.log('Retorno CTE_DistribuicaoDFePorUltNSU');
|
|
340
|
+
console.log(` ${response.xMotivo}`);
|
|
341
|
+
console.log('===================================');
|
|
342
|
+
return response.data;
|
|
343
|
+
}
|
|
344
|
+
catch (error) {
|
|
345
|
+
logger.error(``, error, { context: 'CTE_DistribuicaoDFePorUltNSU', });
|
|
346
|
+
throw new Error(`CTE_DistribuicaoDFePorUltNSU: ${error.message}`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
async CTE_DistribuicaoDFePorNSU(data) {
|
|
350
|
+
try {
|
|
351
|
+
const distribuicaoDFeService = new CTEDistribuicaoDFePorNSUService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
352
|
+
const distribuicaoDFe = new CTEDistribuicaoDFePorNSU(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
353
|
+
const response = await distribuicaoDFe.Exec(data);
|
|
354
|
+
console.log('Retorno CTE_DistribuicaoDFePorNSU');
|
|
355
|
+
console.log(` ${response.xMotivo}`);
|
|
356
|
+
console.log('===================================');
|
|
357
|
+
return response.data;
|
|
358
|
+
}
|
|
359
|
+
catch (error) {
|
|
360
|
+
logger.error(``, error, { context: 'CTE_DistribuicaoDFePorNSU', });
|
|
361
|
+
throw new Error(`CTE_DistribuicaoDFePorNSU: ${error.message}`);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Autorização
|
|
366
|
+
*/
|
|
367
|
+
async NFE_Autorizacao(data) {
|
|
368
|
+
try {
|
|
369
|
+
const autorizacaoService = new NFEAutorizacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
370
|
+
const autorizacao = new NFEAutorizacao(autorizacaoService);
|
|
371
|
+
const response = await autorizacao.Exec(data);
|
|
372
|
+
console.log('Retorno NFE_Autorizacao');
|
|
373
|
+
console.table(response.xMotivo);
|
|
374
|
+
console.log('===================================');
|
|
375
|
+
return response.xmls;
|
|
376
|
+
}
|
|
377
|
+
catch (error) {
|
|
378
|
+
logger.error(``, error, { context: 'NFE_Autorizacao', });
|
|
379
|
+
throw new Error(`NFE_Autorizacao: ${error.message}`);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
async NFCE_Autorizacao(data) {
|
|
383
|
+
try {
|
|
384
|
+
const autorizacaoService = new NFCEAutorizacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
385
|
+
const autorizacao = new NFCEAutorizacao(autorizacaoService);
|
|
386
|
+
const response = await autorizacao.Exec(data);
|
|
387
|
+
console.log('Retorno NFCE_Autorizacao');
|
|
388
|
+
console.table(response.xMotivo);
|
|
389
|
+
console.log('===================================');
|
|
390
|
+
return response.xmls;
|
|
391
|
+
}
|
|
392
|
+
catch (error) {
|
|
393
|
+
logger.error(``, error, { context: 'NFCE_Autorizacao', });
|
|
394
|
+
throw new Error(`NFCE_Autorizacao: ${error.message}`);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Inutilização
|
|
399
|
+
*/
|
|
400
|
+
async NFE_Inutilizacao(data) {
|
|
401
|
+
try {
|
|
402
|
+
const inutilizacaoService = new NFEInutilizacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
403
|
+
const inutilizacao = new NFEInutilizacao(inutilizacaoService);
|
|
404
|
+
const response = await inutilizacao.Exec(data);
|
|
405
|
+
console.log('Retorno NFE_Inutilizacao');
|
|
406
|
+
console.log(` ${response.xMotivo}`);
|
|
407
|
+
console.log('===================================');
|
|
408
|
+
return response;
|
|
409
|
+
}
|
|
410
|
+
catch (error) {
|
|
411
|
+
logger.error(``, error, { context: 'NFE_Inutilizacao', });
|
|
412
|
+
throw new Error(`NFE_Inutilizacao: ${error.message}`);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* DANFE
|
|
417
|
+
*/
|
|
418
|
+
async NFE_GerarDanfe(data) {
|
|
419
|
+
try {
|
|
420
|
+
const { dfe: { exibirMarcaDaguaDanfe } } = this.environment.getConfig();
|
|
421
|
+
const distribuicaoDFe = new NFEGerarDanfe(data);
|
|
422
|
+
const response = await distribuicaoDFe.generatePDF(exibirMarcaDaguaDanfe);
|
|
423
|
+
console.log('Retorno NFE_GerarDanfe');
|
|
424
|
+
console.log(response.message);
|
|
425
|
+
console.log('===================================');
|
|
426
|
+
return response;
|
|
427
|
+
}
|
|
428
|
+
catch (error) {
|
|
429
|
+
logger.error(``, error, { context: 'NFE_GerarDanfe', });
|
|
430
|
+
throw new Error(`NFE_GerarDanfe: ${error.message}`);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
async NFCE_GerarDanfe(data) {
|
|
434
|
+
try {
|
|
435
|
+
const { dfe: { exibirMarcaDaguaDanfe } } = this.environment.getConfig();
|
|
436
|
+
const distribuicaoDFe = new NFCEGerarDanfe(data);
|
|
437
|
+
const response = await distribuicaoDFe.generatePDF(exibirMarcaDaguaDanfe);
|
|
438
|
+
console.log('Retorno NFCE_GerarDanfe');
|
|
439
|
+
console.log(response.message);
|
|
440
|
+
console.log('===================================');
|
|
441
|
+
return response;
|
|
442
|
+
}
|
|
443
|
+
catch (error) {
|
|
444
|
+
logger.error(``, error, { context: 'NFCE_GerarDanfe', });
|
|
445
|
+
throw new Error(`NFCE_GerarDanfe: ${error.message}`);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* NFSe - Load Environment
|
|
450
|
+
*/
|
|
451
|
+
async NFSE_LoadEnvironment({ config }) {
|
|
452
|
+
try {
|
|
453
|
+
// Valida se a configuração NFSe foi fornecida
|
|
454
|
+
if (!config.nfse) {
|
|
455
|
+
throw new Error('Configuração NFSe não encontrada. Por favor, forneça a seção "nfse" na configuração.');
|
|
456
|
+
}
|
|
457
|
+
this.config = config;
|
|
458
|
+
// Carrega Ambiente (usa a mesma estrutura, mas valida configuração NFSe)
|
|
459
|
+
this.environment = new Environment(this.config);
|
|
460
|
+
const { axios } = await this.environment.loadEnvironment();
|
|
461
|
+
this.axios = axios;
|
|
462
|
+
// Inicia método de Utilitários
|
|
463
|
+
this.utility = new Utility(this.environment);
|
|
464
|
+
this.saveFiles = new SaveFiles(this.environment, this.utility);
|
|
465
|
+
// Inicia método de geração de XML
|
|
466
|
+
this.xmlBuilder = new XmlBuilder(this.environment);
|
|
467
|
+
this.gerarConsulta = new GerarConsulta(this.environment, this.utility, this.xmlBuilder);
|
|
468
|
+
}
|
|
469
|
+
catch (error) {
|
|
470
|
+
logger.error(``, error, { context: 'NFSE_LoadEnvironment', });
|
|
471
|
+
throw new Error(`Erro ao inicializar a lib NFSe: ${error}`);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* NFSe - Autorização
|
|
476
|
+
*/
|
|
477
|
+
async NFSE_Autorizacao(data) {
|
|
478
|
+
try {
|
|
479
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
480
|
+
const NFSeAutorizacaoService = nfseModule.NFSeAutorizacaoService;
|
|
481
|
+
const NFSeAutorizacao = nfseModule.NFSeAutorizacao;
|
|
482
|
+
const autorizacaoService = new NFSeAutorizacaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
483
|
+
const autorizacao = new NFSeAutorizacao(autorizacaoService);
|
|
484
|
+
const response = await autorizacao.Exec(data);
|
|
485
|
+
console.log('Retorno NFSE_Autorizacao');
|
|
486
|
+
console.log(` Chave de Acesso: ${response.response.chaveAcesso || 'N/A'}`);
|
|
487
|
+
console.log('===================================');
|
|
488
|
+
return response;
|
|
489
|
+
}
|
|
490
|
+
catch (error) {
|
|
491
|
+
logger.error(``, error, { context: 'NFSE_Autorizacao', });
|
|
492
|
+
throw new Error(`NFSE_Autorizacao: ${error.message}`);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* NFSe - Consulta por Chave de Acesso
|
|
497
|
+
*/
|
|
498
|
+
async NFSE_Consulta(data) {
|
|
499
|
+
try {
|
|
500
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
501
|
+
const NFSeConsultaService = nfseModule.NFSeConsultaService;
|
|
502
|
+
const NFSeConsulta = nfseModule.NFSeConsulta;
|
|
503
|
+
const consultaService = new NFSeConsultaService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
504
|
+
const consulta = new NFSeConsulta(consultaService);
|
|
505
|
+
const response = await consulta.Exec(data);
|
|
506
|
+
console.log('Retorno NFSE_Consulta');
|
|
507
|
+
console.log(` Chave de Acesso: ${response.chaveAcesso || 'N/A'}`);
|
|
508
|
+
console.log('===================================');
|
|
509
|
+
return response;
|
|
510
|
+
}
|
|
511
|
+
catch (error) {
|
|
512
|
+
logger.error(``, error, { context: 'NFSE_Consulta', });
|
|
513
|
+
throw new Error(`NFSE_Consulta: ${error.message}`);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* NFSe - Consulta DPS por ID
|
|
518
|
+
*/
|
|
519
|
+
async NFSE_ConsultaDPS(data) {
|
|
520
|
+
try {
|
|
521
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
522
|
+
const NFSeConsultaService = nfseModule.NFSeConsultaService;
|
|
523
|
+
const NFSeConsulta = nfseModule.NFSeConsulta;
|
|
524
|
+
const consultaService = new NFSeConsultaService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
525
|
+
const consulta = new NFSeConsulta(consultaService);
|
|
526
|
+
const response = await consulta.ConsultaDPS(data);
|
|
527
|
+
console.log('Retorno NFSE_ConsultaDPS');
|
|
528
|
+
console.log(` Chave de Acesso: ${response.chaveAcesso || 'N/A'}`);
|
|
529
|
+
console.log('===================================');
|
|
530
|
+
return response;
|
|
531
|
+
}
|
|
532
|
+
catch (error) {
|
|
533
|
+
logger.error(``, error, { context: 'NFSE_ConsultaDPS', });
|
|
534
|
+
throw new Error(`NFSE_ConsultaDPS: ${error.message}`);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* NFSe - Registrar Evento
|
|
539
|
+
*/
|
|
540
|
+
async NFSE_RegistrarEvento(data) {
|
|
541
|
+
try {
|
|
542
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
543
|
+
const NFSeEventosService = nfseModule.NFSeEventosService;
|
|
544
|
+
const NFSeEventos = nfseModule.NFSeEventos;
|
|
545
|
+
const eventosService = new NFSeEventosService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
546
|
+
const eventos = new NFSeEventos(eventosService);
|
|
547
|
+
const response = await eventos.RegistrarEvento(data);
|
|
548
|
+
console.log('Retorno NFSE_RegistrarEvento');
|
|
549
|
+
console.log(` Processado com sucesso`);
|
|
550
|
+
console.log('===================================');
|
|
551
|
+
return response;
|
|
552
|
+
}
|
|
553
|
+
catch (error) {
|
|
554
|
+
logger.error(``, error, { context: 'NFSE_RegistrarEvento', });
|
|
555
|
+
throw new Error(`NFSE_RegistrarEvento: ${error.message}`);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* NFSe - Consultar Evento
|
|
560
|
+
*/
|
|
561
|
+
async NFSE_ConsultarEvento(data) {
|
|
562
|
+
try {
|
|
563
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
564
|
+
const NFSeEventosService = nfseModule.NFSeEventosService;
|
|
565
|
+
const NFSeEventos = nfseModule.NFSeEventos;
|
|
566
|
+
const eventosService = new NFSeEventosService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
567
|
+
const eventos = new NFSeEventos(eventosService);
|
|
568
|
+
const response = await eventos.ConsultarEvento(data);
|
|
569
|
+
console.log('Retorno NFSE_ConsultarEvento');
|
|
570
|
+
console.log(` Processado com sucesso`);
|
|
571
|
+
console.log('===================================');
|
|
572
|
+
return response;
|
|
573
|
+
}
|
|
574
|
+
catch (error) {
|
|
575
|
+
logger.error(``, error, { context: 'NFSE_ConsultarEvento', });
|
|
576
|
+
throw new Error(`NFSE_ConsultarEvento: ${error.message}`);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* NFSe - Distribuição por NSU
|
|
581
|
+
*/
|
|
582
|
+
async NFSE_DistribuicaoPorNSU(data) {
|
|
583
|
+
try {
|
|
584
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
585
|
+
const NFSeDistribuicaoService = nfseModule.NFSeDistribuicaoService;
|
|
586
|
+
const NFSeDistribuicao = nfseModule.NFSeDistribuicao;
|
|
587
|
+
const distribuicaoService = new NFSeDistribuicaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
588
|
+
const distribuicao = new NFSeDistribuicao(distribuicaoService);
|
|
589
|
+
const response = await distribuicao.DistribuicaoPorNSU(data);
|
|
590
|
+
console.log('Retorno NFSE_DistribuicaoPorNSU');
|
|
591
|
+
console.log(` Status: ${response.StatusProcessamento || 'N/A'}`);
|
|
592
|
+
console.log('===================================');
|
|
593
|
+
return response;
|
|
594
|
+
}
|
|
595
|
+
catch (error) {
|
|
596
|
+
logger.error(``, error, { context: 'NFSE_DistribuicaoPorNSU', });
|
|
597
|
+
throw new Error(`NFSE_DistribuicaoPorNSU: ${error.message}`);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* NFSe - Eventos por Chave de Acesso
|
|
602
|
+
*/
|
|
603
|
+
async NFSE_EventosPorChave(data) {
|
|
604
|
+
try {
|
|
605
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
606
|
+
const NFSeDistribuicaoService = nfseModule.NFSeDistribuicaoService;
|
|
607
|
+
const NFSeDistribuicao = nfseModule.NFSeDistribuicao;
|
|
608
|
+
const distribuicaoService = new NFSeDistribuicaoService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
609
|
+
const distribuicao = new NFSeDistribuicao(distribuicaoService);
|
|
610
|
+
const response = await distribuicao.EventosPorChave(data);
|
|
611
|
+
console.log('Retorno NFSE_EventosPorChave');
|
|
612
|
+
console.log(` Status: ${response.StatusProcessamento || 'N/A'}`);
|
|
613
|
+
console.log('===================================');
|
|
614
|
+
return response;
|
|
615
|
+
}
|
|
616
|
+
catch (error) {
|
|
617
|
+
logger.error(``, error, { context: 'NFSE_EventosPorChave', });
|
|
618
|
+
throw new Error(`NFSE_EventosPorChave: ${error.message}`);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* NFSe - Consulta Alíquota
|
|
623
|
+
*/
|
|
624
|
+
async NFSE_ConsultarAliquota(data) {
|
|
625
|
+
try {
|
|
626
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
627
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
628
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
629
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
630
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
631
|
+
const response = await parametros.ConsultarAliquota(data);
|
|
632
|
+
console.log('Retorno NFSE_ConsultarAliquota');
|
|
633
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
634
|
+
console.log('===================================');
|
|
635
|
+
return response;
|
|
636
|
+
}
|
|
637
|
+
catch (error) {
|
|
638
|
+
logger.error(``, error, { context: 'NFSE_ConsultarAliquota', });
|
|
639
|
+
throw new Error(`NFSE_ConsultarAliquota: ${error.message}`);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* NFSe - Consulta Histórico de Alíquotas
|
|
644
|
+
*/
|
|
645
|
+
async NFSE_ConsultarHistoricoAliquotas(data) {
|
|
646
|
+
try {
|
|
647
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
648
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
649
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
650
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
651
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
652
|
+
const response = await parametros.ConsultarHistoricoAliquotas(data);
|
|
653
|
+
console.log('Retorno NFSE_ConsultarHistoricoAliquotas');
|
|
654
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
655
|
+
console.log('===================================');
|
|
656
|
+
return response;
|
|
657
|
+
}
|
|
658
|
+
catch (error) {
|
|
659
|
+
logger.error(``, error, { context: 'NFSE_ConsultarHistoricoAliquotas', });
|
|
660
|
+
throw new Error(`NFSE_ConsultarHistoricoAliquotas: ${error.message}`);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* NFSe - Consulta Benefício Municipal
|
|
665
|
+
*/
|
|
666
|
+
async NFSE_ConsultarBeneficio(data) {
|
|
667
|
+
try {
|
|
668
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
669
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
670
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
671
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
672
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
673
|
+
const response = await parametros.ConsultarBeneficio(data);
|
|
674
|
+
console.log('Retorno NFSE_ConsultarBeneficio');
|
|
675
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
676
|
+
console.log('===================================');
|
|
677
|
+
return response;
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
logger.error(``, error, { context: 'NFSE_ConsultarBeneficio', });
|
|
681
|
+
throw new Error(`NFSE_ConsultarBeneficio: ${error.message}`);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* NFSe - Consulta Convênio Municipal
|
|
686
|
+
*/
|
|
687
|
+
async NFSE_ConsultarConvenio(data) {
|
|
688
|
+
try {
|
|
689
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
690
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
691
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
692
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
693
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
694
|
+
const response = await parametros.ConsultarConvenio(data);
|
|
695
|
+
console.log('Retorno NFSE_ConsultarConvenio');
|
|
696
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
697
|
+
console.log('===================================');
|
|
698
|
+
return response;
|
|
699
|
+
}
|
|
700
|
+
catch (error) {
|
|
701
|
+
logger.error(``, error, { context: 'NFSE_ConsultarConvenio', });
|
|
702
|
+
throw new Error(`NFSE_ConsultarConvenio: ${error.message}`);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* NFSe - Consulta Regimes Especiais
|
|
707
|
+
*/
|
|
708
|
+
async NFSE_ConsultarRegimesEspeciais(data) {
|
|
709
|
+
try {
|
|
710
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
711
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
712
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
713
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
714
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
715
|
+
const response = await parametros.ConsultarRegimesEspeciais(data);
|
|
716
|
+
console.log('Retorno NFSE_ConsultarRegimesEspeciais');
|
|
717
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
718
|
+
console.log('===================================');
|
|
719
|
+
return response;
|
|
720
|
+
}
|
|
721
|
+
catch (error) {
|
|
722
|
+
logger.error(``, error, { context: 'NFSE_ConsultarRegimesEspeciais', });
|
|
723
|
+
throw new Error(`NFSE_ConsultarRegimesEspeciais: ${error.message}`);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* NFSe - Alterar Benefício Municipal
|
|
728
|
+
*/
|
|
729
|
+
async NFSE_AlterarBeneficioMunicipal(data) {
|
|
730
|
+
try {
|
|
731
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
732
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
733
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
734
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
735
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
736
|
+
const response = await parametros.AlterarBeneficioMunicipal(data);
|
|
737
|
+
console.log('Retorno NFSE_AlterarBeneficioMunicipal');
|
|
738
|
+
console.log(` Sucesso: ${response.sucesso}`);
|
|
739
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
740
|
+
console.log('===================================');
|
|
741
|
+
return response;
|
|
742
|
+
}
|
|
743
|
+
catch (error) {
|
|
744
|
+
logger.error(``, error, { context: 'NFSE_AlterarBeneficioMunicipal', });
|
|
745
|
+
throw new Error(`NFSE_AlterarBeneficioMunicipal: ${error.message}`);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* NFSe - Alterar Retenções
|
|
750
|
+
*/
|
|
751
|
+
async NFSE_AlterarRetencoes(data) {
|
|
752
|
+
try {
|
|
753
|
+
const nfseModule = await import('@treeunfe/nfse');
|
|
754
|
+
const NFSeParametrosMunicipaisService = nfseModule.NFSeParametrosMunicipaisService;
|
|
755
|
+
const NFSeParametrosMunicipais = nfseModule.NFSeParametrosMunicipais;
|
|
756
|
+
const parametrosService = new NFSeParametrosMunicipaisService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
|
|
757
|
+
const parametros = new NFSeParametrosMunicipais(parametrosService);
|
|
758
|
+
const response = await parametros.AlterarRetencoes(data);
|
|
759
|
+
console.log('Retorno NFSE_AlterarRetencoes');
|
|
760
|
+
console.log(` Sucesso: ${response.sucesso}`);
|
|
761
|
+
console.log(` Mensagem: ${response.mensagem || 'N/A'}`);
|
|
762
|
+
console.log('===================================');
|
|
763
|
+
return response;
|
|
764
|
+
}
|
|
765
|
+
catch (error) {
|
|
766
|
+
logger.error(``, error, { context: 'NFSE_AlterarRetencoes', });
|
|
767
|
+
throw new Error(`NFSE_AlterarRetencoes: ${error.message}`);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Validação de ambiente
|
|
772
|
+
*/
|
|
773
|
+
async validateEnvironment(prop) {
|
|
774
|
+
if (!this.environment.isLoaded) {
|
|
775
|
+
// Determina qual método de carregamento usar baseado no método chamado
|
|
776
|
+
const loadMethod = prop.startsWith('NFSE_') ? 'NFSE_LoadEnvironment' : 'NFE_LoadEnvironment';
|
|
777
|
+
throw new Error(`Ambiente não carregado. Por favor, carregue o ambiente utilizando o método "${loadMethod}({ sua_configuracao })" antes de chamar o método ${prop}.`);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
export default TreeunfeDFeService;
|
|
782
|
+
//# sourceMappingURL=TreeunfeDFeService.js.map
|