@treeunfe/cte 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFCEGerarDanfe/NFCEGerarDanfe.d.ts +58 -0
  2. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFCEGerarDanfe/NFCEGerarDanfe.js +494 -0
  3. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFCEGerarDanfe/NFCEGerarDanfe.js.map +1 -0
  4. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFEGerarDanfe/NFEGerarDanfe.d.ts +39 -0
  5. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFEGerarDanfe/NFEGerarDanfe.js +1097 -0
  6. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/NFEGerarDanfe/NFEGerarDanfe.js.map +1 -0
  7. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/index.d.ts +2 -0
  8. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/index.js +19 -0
  9. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/danfe/src/index.js.map +1 -0
  10. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/adapters/NFCe.d.ts +14 -0
  11. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/adapters/NFCe.js +39 -0
  12. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/adapters/NFCe.js.map +1 -0
  13. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/index.d.ts +3 -0
  14. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/index.js +23 -0
  15. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/index.js.map +1 -0
  16. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCEAutorizacao/NFCEAutorizacao.d.ts +7 -0
  17. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCEAutorizacao/NFCEAutorizacao.js +10 -0
  18. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCEAutorizacao/NFCEAutorizacao.js.map +1 -0
  19. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.d.ts +17 -0
  20. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.js +10 -0
  21. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/NFCERetornoAutorizacao/NFCERetornoAutorizacao.js.map +1 -0
  22. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/index.d.ts +2 -0
  23. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/index.js +19 -0
  24. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/operations/index.js.map +1 -0
  25. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/NFCEAutorizacaoService.d.ts +32 -0
  26. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/NFCEAutorizacaoService.js +421 -0
  27. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/NFCEAutorizacaoService.js.map +1 -0
  28. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/util/NFCEQRCode.d.ts +3 -0
  29. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/util/NFCEQRCode.js +38 -0
  30. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCEAutorizacao/util/NFCEQRCode.js.map +1 -0
  31. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.d.ts +52 -0
  32. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.js +141 -0
  33. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/NFCERetornoAutorizacao/NFCERetornoAutorizacaoService.js.map +1 -0
  34. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/index.d.ts +2 -0
  35. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/index.js +19 -0
  36. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfce/src/services/index.js.map +1 -0
  37. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/adapters/NFe.d.ts +44 -0
  38. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/adapters/NFe.js +114 -0
  39. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/adapters/NFe.js.map +1 -0
  40. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/index.d.ts +3 -0
  41. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/index.js +23 -0
  42. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/index.js.map +1 -0
  43. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEAutorizacao/NFEAutorizacao.d.ts +7 -0
  44. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEAutorizacao/NFEAutorizacao.js +10 -0
  45. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEAutorizacao/NFEAutorizacao.js.map +1 -0
  46. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.d.ts +7 -0
  47. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.js +10 -0
  48. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEConsultaProtocolo/NFEconsultaProtocolo.js.map +1 -0
  49. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.d.ts +7 -0
  50. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.js +10 -0
  51. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFe.js.map +1 -0
  52. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.d.ts +7 -0
  53. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js +10 -0
  54. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js.map +1 -0
  55. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.d.ts +7 -0
  56. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js +10 -0
  57. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js.map +1 -0
  58. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.d.ts +7 -0
  59. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js +10 -0
  60. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js.map +1 -0
  61. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEInutilizacao/NFEInutilizacao.d.ts +7 -0
  62. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEInutilizacao/NFEInutilizacao.js +10 -0
  63. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEInutilizacao/NFEInutilizacao.js.map +1 -0
  64. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECancelamento.d.ts +7 -0
  65. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECancelamento.js +10 -0
  66. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECancelamento.js.map +1 -0
  67. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECartaDeCorrecao.d.ts +7 -0
  68. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECartaDeCorrecao.js +10 -0
  69. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECartaDeCorrecao.js.map +1 -0
  70. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECienciaDaOperacao.d.ts +7 -0
  71. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECienciaDaOperacao.js +10 -0
  72. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFECienciaDaOperacao.js.map +1 -0
  73. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.d.ts +7 -0
  74. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.js +10 -0
  75. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEConfirmacaoDaOperacao.js.map +1 -0
  76. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.d.ts +7 -0
  77. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.js +10 -0
  78. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEDesconhecimentoDaOperacao.js.map +1 -0
  79. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEEpec.d.ts +7 -0
  80. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEEpec.js +10 -0
  81. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEEpec.js.map +1 -0
  82. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.d.ts +7 -0
  83. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.js +10 -0
  84. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFEOperacaoNaoRealizada.js.map +1 -0
  85. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFERecepcaoEvento.d.ts +7 -0
  86. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFERecepcaoEvento.js +10 -0
  87. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERecepcaoEvento/NFERecepcaoEvento.js.map +1 -0
  88. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERetornoAutorizacao/NFERetornoAutorizacao.d.ts +17 -0
  89. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERetornoAutorizacao/NFERetornoAutorizacao.js +10 -0
  90. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFERetornoAutorizacao/NFERetornoAutorizacao.js.map +1 -0
  91. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEStatusServico/NFEStatusServico.d.ts +7 -0
  92. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEStatusServico/NFEStatusServico.js +10 -0
  93. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/NFEStatusServico/NFEStatusServico.js.map +1 -0
  94. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/index.d.ts +17 -0
  95. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/index.js +34 -0
  96. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/operations/index.js.map +1 -0
  97. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEAutorizacao/NFEAutorizacaoService.d.ts +31 -0
  98. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEAutorizacao/NFEAutorizacaoService.js +371 -0
  99. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEAutorizacao/NFEAutorizacaoService.js.map +1 -0
  100. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.d.ts +8 -0
  101. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.js +40 -0
  102. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEConsultaProtocolo/NFEconsultaProtocoloService.js.map +1 -0
  103. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.d.ts +8 -0
  104. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js +8 -0
  105. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorChave.js.map +1 -0
  106. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.d.ts +8 -0
  107. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js +8 -0
  108. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorNSU.js.map +1 -0
  109. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.d.ts +8 -0
  110. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js +8 -0
  111. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFePorUltNSU.js.map +1 -0
  112. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFeService.d.ts +17 -0
  113. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFeService.js +114 -0
  114. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/NFEDistribuicaoDFeService.js.map +1 -0
  115. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +20 -0
  116. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/util/DistribuicaoHandler.js +115 -0
  117. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEDistribuicaoDFe/util/DistribuicaoHandler.js.map +1 -0
  118. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEInutilizacao/NFEInutilizacaoService.d.ts +21 -0
  119. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEInutilizacao/NFEInutilizacaoService.js +87 -0
  120. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEInutilizacao/NFEInutilizacaoService.js.map +1 -0
  121. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECancelamentoService.d.ts +8 -0
  122. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECancelamentoService.js +8 -0
  123. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECancelamentoService.js.map +1 -0
  124. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.d.ts +8 -0
  125. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.js +8 -0
  126. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECartaDeCorrecaoService.js.map +1 -0
  127. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.d.ts +8 -0
  128. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.js +8 -0
  129. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFECienciaDaOperacaoService.js.map +1 -0
  130. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.d.ts +8 -0
  131. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.js +8 -0
  132. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEConfirmacaoDaOperacaoService.js.map +1 -0
  133. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.d.ts +8 -0
  134. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.js +8 -0
  135. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEDesconhecimentoDaOperacaoService.js.map +1 -0
  136. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEEpecService.d.ts +8 -0
  137. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEEpecService.js +8 -0
  138. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEEpecService.js.map +1 -0
  139. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.d.ts +8 -0
  140. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.js +8 -0
  141. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFEOperacaoNaoRealizadaService.js.map +1 -0
  142. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFERecepcaoEventoService.d.ts +39 -0
  143. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFERecepcaoEventoService.js +280 -0
  144. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERecepcaoEvento/NFERecepcaoEventoService.js.map +1 -0
  145. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.d.ts +48 -0
  146. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.js +150 -0
  147. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFERetornoAutorizacao/NFERetornoAutorizacaoService.js.map +1 -0
  148. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEStatusServico/NFEStatusServicoService.d.ts +8 -0
  149. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEStatusServico/NFEStatusServicoService.js +41 -0
  150. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/NFEStatusServico/NFEStatusServicoService.js.map +1 -0
  151. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/TreeunfeDFe/TreeunfeDFeService.d.ts +139 -0
  152. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/TreeunfeDFe/TreeunfeDFeService.js +782 -0
  153. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/TreeunfeDFe/TreeunfeDFeService.js.map +1 -0
  154. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/index.d.ts +18 -0
  155. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/index.js +35 -0
  156. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfe/src/services/index.js.map +1 -0
  157. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/adapters/NFSe.d.ts +65 -0
  158. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/adapters/NFSe.js +123 -0
  159. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/adapters/NFSe.js.map +1 -0
  160. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/index.d.ts +3 -0
  161. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/index.js +23 -0
  162. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/index.js.map +1 -0
  163. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeAutorizacao/NFSeAutorizacao.d.ts +14 -0
  164. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeAutorizacao/NFSeAutorizacao.js +10 -0
  165. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeAutorizacao/NFSeAutorizacao.js.map +1 -0
  166. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeConsulta/NFSeConsulta.d.ts +9 -0
  167. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeConsulta/NFSeConsulta.js +13 -0
  168. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeConsulta/NFSeConsulta.js.map +1 -0
  169. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeDistribuicao/NFSeDistribuicao.d.ts +9 -0
  170. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeDistribuicao/NFSeDistribuicao.js +13 -0
  171. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeDistribuicao/NFSeDistribuicao.js.map +1 -0
  172. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeEventos/NFSeEventos.d.ts +9 -0
  173. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeEventos/NFSeEventos.js +13 -0
  174. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeEventos/NFSeEventos.js.map +1 -0
  175. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.d.ts +14 -0
  176. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.js +28 -0
  177. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/NFSeParametrosMunicipais/NFSeParametrosMunicipais.js.map +1 -0
  178. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/index.d.ts +5 -0
  179. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/index.js +22 -0
  180. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/operations/index.js.map +1 -0
  181. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeAutorizacao/NFSeAutorizacaoService.d.ts +35 -0
  182. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeAutorizacao/NFSeAutorizacaoService.js +261 -0
  183. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeAutorizacao/NFSeAutorizacaoService.js.map +1 -0
  184. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeConsulta/NFSeConsultaService.d.ts +16 -0
  185. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeConsulta/NFSeConsultaService.js +38 -0
  186. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeConsulta/NFSeConsultaService.js.map +1 -0
  187. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeDistribuicao/NFSeDistribuicaoService.d.ts +16 -0
  188. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeDistribuicao/NFSeDistribuicaoService.js +251 -0
  189. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeDistribuicao/NFSeDistribuicaoService.js.map +1 -0
  190. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeEventos/NFSeEventosService.d.ts +36 -0
  191. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeEventos/NFSeEventosService.js +374 -0
  192. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeEventos/NFSeEventosService.js.map +1 -0
  193. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.d.ts +20 -0
  194. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.js +104 -0
  195. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/NFSeParametrosMunicipais/NFSeParametrosMunicipaisService.js.map +1 -0
  196. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/index.d.ts +5 -0
  197. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/index.js +22 -0
  198. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/nfse/src/services/index.js.map +1 -0
  199. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/GerarConsultaImpl.d.ts +9 -0
  200. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/GerarConsultaImpl.js +2 -0
  201. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/GerarConsultaImpl.js.map +1 -0
  202. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/HttpClient.d.ts +9 -0
  203. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/HttpClient.js +2 -0
  204. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/HttpClient.js.map +1 -0
  205. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/SaveFilesImpl.d.ts +5 -0
  206. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/SaveFilesImpl.js +2 -0
  207. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/SaveFilesImpl.js.map +1 -0
  208. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeImpl.d.ts +50 -0
  209. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeImpl.js +2 -0
  210. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeImpl.js.map +1 -0
  211. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeServiceImpl.d.ts +57 -0
  212. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeServiceImpl.js +2 -0
  213. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/TreeunfeDFeServiceImpl.js.map +1 -0
  214. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/index.d.ts +5 -0
  215. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/index.js +22 -0
  216. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/common/index.js.map +1 -0
  217. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/CTEDistribuicaoDFeServiceImpl.d.ts +9 -0
  218. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/CTEDistribuicaoDFeServiceImpl.js +2 -0
  219. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/CTEDistribuicaoDFeServiceImpl.js.map +1 -0
  220. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/index.d.ts +1 -0
  221. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/index.js +18 -0
  222. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/cte/index.js.map +1 -0
  223. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/index.d.ts +5 -0
  224. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/index.js +23 -0
  225. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/index.js.map +1 -0
  226. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCEAutorizacaoServiceImpl.d.ts +11 -0
  227. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCEAutorizacaoServiceImpl.js +2 -0
  228. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCEAutorizacaoServiceImpl.js.map +1 -0
  229. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCERetornoAutorizacaoServiceImpl.d.ts +13 -0
  230. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCERetornoAutorizacaoServiceImpl.js +2 -0
  231. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/NFCERetornoAutorizacaoServiceImpl.js.map +1 -0
  232. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/index.d.ts +2 -0
  233. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/index.js +19 -0
  234. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfce/index.js.map +1 -0
  235. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEAutorizacaoServiceImpl.d.ts +11 -0
  236. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEAutorizacaoServiceImpl.js +2 -0
  237. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEAutorizacaoServiceImpl.js.map +1 -0
  238. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEDistribuicaoDFeServiceImpl.d.ts +9 -0
  239. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEDistribuicaoDFeServiceImpl.js +2 -0
  240. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEDistribuicaoDFeServiceImpl.js.map +1 -0
  241. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEInutilizacaoServiceImpl.d.ts +3 -0
  242. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEInutilizacaoServiceImpl.js +2 -0
  243. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEInutilizacaoServiceImpl.js.map +1 -0
  244. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERecepcaoEventoServiceImpl.d.ts +9 -0
  245. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERecepcaoEventoServiceImpl.js +2 -0
  246. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERecepcaoEventoServiceImpl.js.map +1 -0
  247. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERetornoAutorizacaoServiceImpl.d.ts +13 -0
  248. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERetornoAutorizacaoServiceImpl.js +2 -0
  249. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFERetornoAutorizacaoServiceImpl.js.map +1 -0
  250. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEStatusServicoServiceImpl.d.ts +3 -0
  251. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEStatusServicoServiceImpl.js +2 -0
  252. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEStatusServicoServiceImpl.js.map +1 -0
  253. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEconsultaProtocoloServiceImpl.d.ts +3 -0
  254. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEconsultaProtocoloServiceImpl.js +2 -0
  255. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/NFEconsultaProtocoloServiceImpl.js.map +1 -0
  256. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/index.d.ts +7 -0
  257. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/index.js +24 -0
  258. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfe/index.js.map +1 -0
  259. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeAutorizacaoServiceImpl.d.ts +10 -0
  260. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeAutorizacaoServiceImpl.js +2 -0
  261. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeAutorizacaoServiceImpl.js.map +1 -0
  262. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeConsultaServiceImpl.d.ts +5 -0
  263. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeConsultaServiceImpl.js +2 -0
  264. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeConsultaServiceImpl.js.map +1 -0
  265. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeDistribuicaoServiceImpl.d.ts +5 -0
  266. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeDistribuicaoServiceImpl.js +2 -0
  267. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeDistribuicaoServiceImpl.js.map +1 -0
  268. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeEventosServiceImpl.d.ts +5 -0
  269. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeEventosServiceImpl.js +2 -0
  270. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeEventosServiceImpl.js.map +1 -0
  271. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeParametrosMunicipaisServiceImpl.d.ts +10 -0
  272. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeParametrosMunicipaisServiceImpl.js +18 -0
  273. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/NFSeParametrosMunicipaisServiceImpl.js.map +1 -0
  274. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/index.d.ts +5 -0
  275. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/index.js +22 -0
  276. package/.rollup.cache/home/juniortrojilio/github.com/treeunfe/treeunfe-dfe/packages/treeunfe-dfe/src/interfaces/nfse/index.js.map +1 -0
  277. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/CTe.d.ts +17 -0
  278. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/CTe.js +97 -0
  279. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/CTe.js.map +1 -0
  280. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/index.d.ts +1 -0
  281. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/index.js +18 -0
  282. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/adapters/index.js.map +1 -0
  283. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/index.d.ts +4 -0
  284. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/index.js +25 -0
  285. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/index.js.map +1 -0
  286. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
  287. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js +10 -0
  288. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js.map +1 -0
  289. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
  290. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js +8 -0
  291. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js.map +1 -0
  292. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
  293. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js +8 -0
  294. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js.map +1 -0
  295. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/index.d.ts +3 -0
  296. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/index.js +20 -0
  297. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/operations/index.js.map +1 -0
  298. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
  299. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js +8 -0
  300. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js.map +1 -0
  301. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
  302. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js +8 -0
  303. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js.map +1 -0
  304. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +18 -0
  305. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js +117 -0
  306. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js.map +1 -0
  307. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +21 -0
  308. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js +131 -0
  309. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js.map +1 -0
  310. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/index.d.ts +3 -0
  311. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/index.js +20 -0
  312. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/src/services/index.js.map +1 -0
  313. package/.rollup.cache/home/runner/work/treeunfe-dfe/treeunfe-dfe/packages/cte/dist/tsconfig.tsbuildinfo +1 -0
  314. package/.turbo/turbo-build.log +15 -0
  315. package/CHANGELOG.md +33 -0
  316. package/LICENSE.txt +221 -0
  317. package/dist/index.cjs +387 -0
  318. package/dist/index.cjs.map +1 -0
  319. package/dist/index.mjs +373 -0
  320. package/dist/index.mjs.map +1 -0
  321. package/dist/src/adapters/CTe.d.ts +17 -0
  322. package/dist/src/adapters/index.d.ts +1 -0
  323. package/dist/src/index.d.ts +4 -0
  324. package/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
  325. package/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
  326. package/dist/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
  327. package/dist/src/operations/index.d.ts +3 -0
  328. package/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +8 -0
  329. package/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +8 -0
  330. package/dist/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +18 -0
  331. package/dist/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +21 -0
  332. package/dist/src/services/index.d.ts +3 -0
  333. package/dist/tsconfig.tsbuildinfo +1 -0
  334. package/package.json +57 -0
  335. package/rollup.config.js +86 -0
  336. package/src/README.md +108 -0
  337. package/src/adapters/CTe.ts +117 -0
  338. package/src/adapters/index.ts +18 -0
  339. package/src/exemplo-uso.ts +216 -0
  340. package/src/index.ts +28 -0
  341. package/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.ts +30 -0
  342. package/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts +28 -0
  343. package/src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts +28 -0
  344. package/src/operations/index.ts +20 -0
  345. package/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts +28 -0
  346. package/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts +28 -0
  347. package/src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.ts +141 -0
  348. package/src/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.ts +153 -0
  349. package/src/services/index.ts +20 -0
  350. package/tsconfig.json +16 -0
@@ -0,0 +1,22 @@
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
+ export * from './NFSeAutorizacaoServiceImpl';
18
+ export * from './NFSeConsultaServiceImpl';
19
+ export * from './NFSeDistribuicaoServiceImpl';
20
+ export * from './NFSeEventosServiceImpl';
21
+ export * from './NFSeParametrosMunicipaisServiceImpl';
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ConsultaCTe, CTeConfig, DFePorNSUCTe, DFePorUltimoNSUCTe } from '@treeunfe/types';
2
+ export default class CTe {
3
+ private environment;
4
+ private axios;
5
+ private utility;
6
+ private xmlBuilder;
7
+ private saveFiles;
8
+ private gerarConsulta;
9
+ private loadEnvironmentPromise;
10
+ constructor(config: CTeConfig);
11
+ /**
12
+ * Distribuição DFe CTe
13
+ */
14
+ DistribuicaoDFe(data: ConsultaCTe): Promise<any>;
15
+ DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<import("@treeunfe/types").GenericObject>;
16
+ DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<import("@treeunfe/types").GenericObject>;
17
+ }
@@ -0,0 +1,97 @@
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 { Environment, GerarConsulta, logger, SaveFiles, Utility, XmlBuilder } from '@treeunfe/shared';
18
+ import { CTEDistribuicaoDFe, } from '../operations';
19
+ import CTEDistribuicaoDFePorNSU from '../operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js';
20
+ import CTEDistribuicaoDFePorUltNSU from '../operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js';
21
+ import { CTEDistribuicaoDFeService } from '../services';
22
+ export default class CTe {
23
+ constructor(config) {
24
+ // Valida se a configuração obrigatória foi fornecida
25
+ if (!config.ambiente) {
26
+ throw new Error('Configuração CTe incompleta. Por favor, forneça "ambiente".');
27
+ }
28
+ // Cria o environment próprio - passa a config diretamente
29
+ const environment = new Environment(config);
30
+ this.environment = environment;
31
+ // Carrega o environment automaticamente
32
+ this.loadEnvironmentPromise = (async () => {
33
+ try {
34
+ const { axios: axiosInstance } = await environment.loadEnvironment();
35
+ this.axios = axiosInstance;
36
+ this.utility = new Utility(environment);
37
+ this.saveFiles = new SaveFiles(environment, this.utility);
38
+ this.xmlBuilder = new XmlBuilder(environment);
39
+ this.gerarConsulta = new GerarConsulta(environment, this.utility, this.xmlBuilder);
40
+ }
41
+ catch (error) {
42
+ logger.error(``, error, { context: 'CTE_LoadEnvironment' });
43
+ throw new Error(`Erro ao inicializar a lib CTe: ${error}`);
44
+ }
45
+ })();
46
+ }
47
+ /**
48
+ * Distribuição DFe CTe
49
+ */
50
+ async DistribuicaoDFe(data) {
51
+ await this.loadEnvironmentPromise;
52
+ try {
53
+ const service = new CTEDistribuicaoDFeService(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
54
+ const operation = new CTEDistribuicaoDFe(service);
55
+ const response = await operation.Exec(data);
56
+ console.log('Retorno CTE_DistribuicaoDFe');
57
+ console.log(` ${response.xMotivo}`);
58
+ console.log('===================================');
59
+ return response.data;
60
+ }
61
+ catch (error) {
62
+ logger.error(``, error, { context: 'CTE_DistribuicaoDFe' });
63
+ throw new Error(`CTE_DistribuicaoDFe: ${error.message}`);
64
+ }
65
+ }
66
+ async DistribuicaoDFePorUltNSU(data) {
67
+ await this.loadEnvironmentPromise;
68
+ try {
69
+ const service = new CTEDistribuicaoDFePorUltNSU(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
70
+ const response = await service.Exec(data);
71
+ console.log('Retorno CTE_DistribuicaoDFePorUltNSU');
72
+ console.log(` ${response.xMotivo}`);
73
+ console.log('===================================');
74
+ return response.data;
75
+ }
76
+ catch (error) {
77
+ logger.error(``, error, { context: 'CTE_DistribuicaoDFePorUltNSU' });
78
+ throw new Error(`CTE_DistribuicaoDFePorUltNSU: ${error.message}`);
79
+ }
80
+ }
81
+ async DistribuicaoDFePorNSU(data) {
82
+ await this.loadEnvironmentPromise;
83
+ try {
84
+ const service = new CTEDistribuicaoDFePorNSU(this.environment, this.utility, this.xmlBuilder, this.axios, this.saveFiles, this.gerarConsulta);
85
+ const response = await service.Exec(data);
86
+ console.log('Retorno CTE_DistribuicaoDFePorNSU');
87
+ console.log(` ${response.xMotivo}`);
88
+ console.log('===================================');
89
+ return response.data;
90
+ }
91
+ catch (error) {
92
+ logger.error(``, error, { context: 'CTE_DistribuicaoDFePorNSU' });
93
+ throw new Error(`CTE_DistribuicaoDFePorNSU: ${error.message}`);
94
+ }
95
+ }
96
+ }
97
+ //# sourceMappingURL=CTe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTe.js","sourceRoot":"","sources":["../../../src/adapters/CTe.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
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
+ export { default as CTe } from './CTe';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapters/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from '@treeunfe/types';
2
+ export { default as CTe } from './adapters/CTe';
3
+ export * from './operations/index';
4
+ export * from './services/index';
@@ -0,0 +1,25 @@
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
+ // Re-export all types from @treeunfe/types
18
+ export * from '@treeunfe/types';
19
+ // Export handlers
20
+ export { default as CTe } from './adapters/CTe';
21
+ // Export operations
22
+ export * from './operations/index';
23
+ // Export services
24
+ export * from './services/index';
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,2CAA2C;AAC3C,cAAc,iBAAiB,CAAC;AAEhC,kBAAkB;AAClB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAEhD,oBAAoB;AACpB,cAAc,oBAAoB,CAAC;AAEnC,kBAAkB;AAClB,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CTEDistribuicaoDFeServiceImpl } from '@treeunfe/types/interfaces';
2
+ declare class CTEDistribuicaoDFe implements CTEDistribuicaoDFeServiceImpl {
3
+ cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl;
4
+ constructor(cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl);
5
+ Exec(data?: any): Promise<any>;
6
+ }
7
+ export default CTEDistribuicaoDFe;
@@ -0,0 +1,10 @@
1
+ class CTEDistribuicaoDFe {
2
+ constructor(cteDistribuicaoDFeService) {
3
+ this.cteDistribuicaoDFeService = cteDistribuicaoDFeService;
4
+ }
5
+ async Exec(data) {
6
+ return await this.cteDistribuicaoDFeService.Exec(data);
7
+ }
8
+ }
9
+ export default CTEDistribuicaoDFe;
10
+ //# sourceMappingURL=CTEDistribuicaoDFe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTEDistribuicaoDFe.js","sourceRoot":"","sources":["../../../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.ts"],"names":[],"mappings":"AAkBA,MAAM,kBAAkB;IAEpB,YAAY,yBAAwD;QAChE,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,IAAU;QACjB,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;CACJ;AAED,eAAe,kBAAkB,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 CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
5
+ declare class CTEDistribuicaoDFePorNSU extends CTEDistribuicaoDFeService {
6
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
7
+ }
8
+ export default CTEDistribuicaoDFePorNSU;
@@ -0,0 +1,8 @@
1
+ import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
2
+ class CTEDistribuicaoDFePorNSU extends CTEDistribuicaoDFeService {
3
+ constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
4
+ super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
5
+ }
6
+ }
7
+ export default CTEDistribuicaoDFePorNSU;
8
+ //# sourceMappingURL=CTEDistribuicaoDFePorNSU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTEDistribuicaoDFePorNSU.js","sourceRoot":"","sources":["../../../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts"],"names":[],"mappings":"AAmBA,OAAO,yBAAyB,MAAM,gEAAgE,CAAC;AAEvG,MAAM,wBAAyB,SAAQ,yBAAyB;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;CACJ;AAED,eAAe,wBAAwB,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 CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
5
+ declare class CTEDistribuicaoDFePorUltNSU extends CTEDistribuicaoDFeService {
6
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
7
+ }
8
+ export default CTEDistribuicaoDFePorUltNSU;
@@ -0,0 +1,8 @@
1
+ import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
2
+ class CTEDistribuicaoDFePorUltNSU extends CTEDistribuicaoDFeService {
3
+ constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
4
+ super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
5
+ }
6
+ }
7
+ export default CTEDistribuicaoDFePorUltNSU;
8
+ //# sourceMappingURL=CTEDistribuicaoDFePorUltNSU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTEDistribuicaoDFePorUltNSU.js","sourceRoot":"","sources":["../../../../src/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts"],"names":[],"mappings":"AAmBA,OAAO,yBAAyB,MAAM,gEAAgE,CAAC;AAEvG,MAAM,2BAA4B,SAAQ,yBAAyB;IAC/D,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,2BAA2B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as CTEDistribuicaoDFe } from './CTEDistribuicaoDFe/CTEDistribuicaoDFe';
2
+ export { default as CTEDistribuicaoDFePorNSU } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU';
3
+ export { default as CTEDistribuicaoDFePorUltNSU } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU';
@@ -0,0 +1,20 @@
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
+ export { default as CTEDistribuicaoDFe } from './CTEDistribuicaoDFe/CTEDistribuicaoDFe';
18
+ export { default as CTEDistribuicaoDFePorNSU } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU';
19
+ export { default as CTEDistribuicaoDFePorUltNSU } from './CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU';
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,kDAAkD,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 CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
5
+ declare class CTEDistribuicaoDFePorNSUService extends CTEDistribuicaoDFeService {
6
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
7
+ }
8
+ export default CTEDistribuicaoDFePorNSUService;
@@ -0,0 +1,8 @@
1
+ import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
2
+ class CTEDistribuicaoDFePorNSUService extends CTEDistribuicaoDFeService {
3
+ constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
4
+ super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
5
+ }
6
+ }
7
+ export default CTEDistribuicaoDFePorNSUService;
8
+ //# sourceMappingURL=CTEDistribuicaoDFePorNSU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTEDistribuicaoDFePorNSU.js","sourceRoot":"","sources":["../../../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.ts"],"names":[],"mappings":"AAmBA,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 { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
3
+ import { AxiosInstance } from 'axios';
4
+ import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
5
+ declare class CTEDistribuicaoDFePorUltNSUService extends CTEDistribuicaoDFeService {
6
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
7
+ }
8
+ export default CTEDistribuicaoDFePorUltNSUService;
@@ -0,0 +1,8 @@
1
+ import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
2
+ class CTEDistribuicaoDFePorUltNSUService extends CTEDistribuicaoDFeService {
3
+ constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
4
+ super(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta);
5
+ }
6
+ }
7
+ export default CTEDistribuicaoDFePorUltNSUService;
8
+ //# sourceMappingURL=CTEDistribuicaoDFePorUltNSU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTEDistribuicaoDFePorUltNSU.js","sourceRoot":"","sources":["../../../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.ts"],"names":[],"mappings":"AAmBA,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,18 @@
1
+ import { XmlBuilder, BaseNFe, Environment, Utility } from '@treeunfe/shared';
2
+ import { GerarConsultaImpl, SaveFilesImpl } from '@treeunfe/types/interfaces';
3
+ import { GenericObject } from '@treeunfe/types/common';
4
+ import { ConsultaCTe } from '@treeunfe/types/cte';
5
+ import { AxiosInstance, AxiosResponse } from 'axios';
6
+ import { Agent } from 'http';
7
+ declare class CTEDistribuicaoDFeService extends BaseNFe {
8
+ constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
9
+ protected gerarXml(data: ConsultaCTe): string;
10
+ gerarXmlCTeDistribuicaoDFe(data: ConsultaCTe): string;
11
+ protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise<AxiosResponse<any, any>>;
12
+ Exec(data: ConsultaCTe): Promise<{
13
+ data: GenericObject;
14
+ xMotivo: any;
15
+ filesList: string[];
16
+ }>;
17
+ }
18
+ export default CTEDistribuicaoDFeService;
@@ -0,0 +1,117 @@
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 CTEDistribuicaoDFeService extends BaseNFe {
20
+ constructor(environment, utility, xmlBuilder, axios, saveFiles, gerarConsulta) {
21
+ super(environment, utility, xmlBuilder, 'CTeDistribuicaoDFe', axios, saveFiles, gerarConsulta);
22
+ }
23
+ gerarXml(data) {
24
+ return this.gerarXmlCTeDistribuicaoDFe(data);
25
+ }
26
+ gerarXmlCTeDistribuicaoDFe(data) {
27
+ logger.info('Montando estrutura do XML em JSON', {
28
+ context: 'CTEDistribuicaoDFeService',
29
+ });
30
+ const { ambiente } = this.environment.getConfig();
31
+ // XML para CTe - versão 1.00
32
+ const xmlObject = {
33
+ $: {
34
+ versao: "1.00",
35
+ xmlns: 'http://www.portalfiscal.inf.br/cte'
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: `CTEDistribuicaoDFeService`,
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: `CTEDistribuicaoDFeService`,
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
+ // webServiceUrlTmp não é usado, mas mantido para compatibilidade
71
+ // let webServiceUrlTmp: string = '';
72
+ let responseInJson = undefined;
73
+ let xmlRetorno = {};
74
+ const ContentType = this.setContentType();
75
+ try {
76
+ // Gerando XML para consulta de Distribuição DFe do CTe
77
+ xmlConsulta = this.gerarXmlCTeDistribuicaoDFe(data);
78
+ console.log({ xmlConsulta });
79
+ const { xmlFormated, agent, webServiceUrl, action } = await this.gerarConsulta.gerarConsulta(xmlConsulta, this.metodo, true, '1.00', 'CTe', true, 'cteDistDFeInteresse', 'cteDadosMsg');
80
+ xmlConsultaSoap = xmlFormated;
81
+ // webServiceUrlTmp não é usado, mas mantido para compatibilidade
82
+ // webServiceUrlTmp = webServiceUrl;
83
+ const xmlRetorno = await this.callWebService(xmlFormated, webServiceUrl, ContentType, action, agent);
84
+ // Verifica se houve rejeição
85
+ responseInJson = this.utility.verificaRejeicao(xmlRetorno.data, this.metodo);
86
+ if (responseInJson.retDistDFeInt.cStat === '137') {
87
+ return {
88
+ data: {},
89
+ xMotivo: responseInJson.retDistDFeInt.xMotivo,
90
+ filesList: [],
91
+ };
92
+ }
93
+ /**
94
+ * Descompacta XML
95
+ * Converte XML para Json
96
+ * Salva XML
97
+ * Gera erro em caso de rejeição
98
+ */
99
+ const handlerDistribuicao = new DistribuicaoHandler(this.environment, this.utility, this.metodo);
100
+ const filesList = handlerDistribuicao.deCompressDFeXML(xmlRetorno.data, this.metodo, xmlConsulta);
101
+ const xMotivo = this.utility.findInObj(responseInJson, 'xMotivo');
102
+ return {
103
+ data: responseInJson,
104
+ xMotivo,
105
+ filesList,
106
+ };
107
+ }
108
+ finally {
109
+ // Salva XML de Consulta
110
+ this.utility.salvaConsulta(xmlConsulta, xmlConsultaSoap, this.metodo);
111
+ // Salva XML de Retorno
112
+ this.utility.salvaRetorno(xmlRetorno.data, responseInJson, this.metodo);
113
+ }
114
+ }
115
+ }
116
+ export default CTEDistribuicaoDFeService;
117
+ //# sourceMappingURL=CTEDistribuicaoDFeService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CTEDistribuicaoDFeService.js","sourceRoot":"","sources":["../../../../src/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ import { Environment, Utility } from '@treeunfe/shared';
2
+ import { GenericObject } from '@treeunfe/types';
3
+ import { AxiosResponse } from 'axios';
4
+ declare class DistribuicaoHandler {
5
+ environment: Environment;
6
+ utility: Utility;
7
+ metodo: string;
8
+ constructor(environment: Environment, utility: Utility, metodo: string);
9
+ /**
10
+ * Métodos para tratativas do DistribuicaoDFe do CTe
11
+ */
12
+ protected salvaArquivos(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
13
+ deCompressDFeXML(loteDistDFeInt: AxiosResponse<any, any>, metodo: string, _xmlConsulta: string): string[];
14
+ decodeDocZip(docZip: any): string;
15
+ removeSignatureTag(xmlString: string): string;
16
+ parseXml(xmlString: string): undefined;
17
+ getChCTe(parsedResult: GenericObject): any;
18
+ getTipo(parsedResult: GenericObject): "res" | "event" | "proc";
19
+ handleResponse(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
20
+ }
21
+ export default DistribuicaoHandler;