@nfewizard/shared 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (711) hide show
  1. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/SchemaLoader.d.ts +4 -0
  2. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/SchemaLoader.js +44 -0
  3. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/SchemaLoader.js.map +1 -0
  4. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/XmlBuilder.d.ts +31 -0
  5. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/XmlBuilder.js +119 -0
  6. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/XmlBuilder.js.map +1 -0
  7. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/index.d.ts +7 -0
  8. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/index.js +8 -0
  9. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/index.js.map +1 -0
  10. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/BaseNFe.d.ts +35 -0
  11. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/BaseNFe.js +95 -0
  12. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/BaseNFe.js.map +1 -0
  13. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/GerarConsulta.d.ts +18 -0
  14. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/GerarConsulta.js +61 -0
  15. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/GerarConsulta.js.map +1 -0
  16. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/SaveFiles.d.ts +12 -0
  17. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/SaveFiles.js +59 -0
  18. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/SaveFiles.js.map +1 -0
  19. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/index.d.ts +8 -0
  20. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/index.js +9 -0
  21. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/index.js.map +1 -0
  22. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/CTeServicosUrl.json +8 -0
  23. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/NFeServicosUrl.json +1383 -0
  24. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/cStatError.json +678 -0
  25. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/soapMethod.json +46 -0
  26. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/AxiosHttpClient.d.ts +6 -0
  27. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/AxiosHttpClient.js +12 -0
  28. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/AxiosHttpClient.js.map +1 -0
  29. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/Environment.d.ts +21 -0
  30. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/Environment.js +81 -0
  31. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/Environment.js.map +1 -0
  32. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/HttpClientBuilder.d.ts +11 -0
  33. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/HttpClientBuilder.js +29 -0
  34. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/HttpClientBuilder.js.map +1 -0
  35. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/LoadCertificate.d.ts +11 -0
  36. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/LoadCertificate.js +176 -0
  37. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/LoadCertificate.js.map +1 -0
  38. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/ValidateEnvironment.d.ts +9 -0
  39. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/ValidateEnvironment.js +77 -0
  40. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/ValidateEnvironment.js.map +1 -0
  41. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/index.d.ts +10 -0
  42. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/index.js +11 -0
  43. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/index.js.map +1 -0
  44. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/ErrorContext.d.ts +39 -0
  45. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/ErrorContext.js +98 -0
  46. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/ErrorContext.js.map +1 -0
  47. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/JsonArrayTransporter.d.ts +21 -0
  48. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/JsonArrayTransporter.js +84 -0
  49. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/JsonArrayTransporter.js.map +1 -0
  50. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/index.d.ts +8 -0
  51. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/index.js +8 -0
  52. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/index.js.map +1 -0
  53. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/logger.d.ts +22 -0
  54. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/logger.js +139 -0
  55. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/logger.js.map +1 -0
  56. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/index.d.ts +10 -0
  57. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/index.js +16 -0
  58. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/index.js.map +1 -0
  59. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.d.ts +4 -0
  60. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js +44 -0
  61. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js.map +1 -0
  62. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/XmlBuilder.d.ts +31 -0
  63. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/XmlBuilder.js +119 -0
  64. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/XmlBuilder.js.map +1 -0
  65. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.d.ts +7 -0
  66. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js +8 -0
  67. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js.map +1 -0
  68. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFe.d.ts +35 -0
  69. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFe.js +95 -0
  70. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFe.js.map +1 -0
  71. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.d.ts +18 -0
  72. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js +61 -0
  73. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js.map +1 -0
  74. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.d.ts +12 -0
  75. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js +59 -0
  76. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js.map +1 -0
  77. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.d.ts +8 -0
  78. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js +9 -0
  79. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js.map +1 -0
  80. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/CTeServicosUrl.json +8 -0
  81. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/NFeServicosUrl.json +1383 -0
  82. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/cStatError.json +678 -0
  83. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/soapMethod.json +46 -0
  84. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.d.ts +6 -0
  85. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js +12 -0
  86. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js.map +1 -0
  87. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/Environment.d.ts +21 -0
  88. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/Environment.js +81 -0
  89. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/Environment.js.map +1 -0
  90. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.d.ts +11 -0
  91. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js +29 -0
  92. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js.map +1 -0
  93. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.d.ts +11 -0
  94. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js +176 -0
  95. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js.map +1 -0
  96. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.d.ts +9 -0
  97. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js +77 -0
  98. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js.map +1 -0
  99. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.d.ts +10 -0
  100. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js +11 -0
  101. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js.map +1 -0
  102. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.d.ts +39 -0
  103. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js +98 -0
  104. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js.map +1 -0
  105. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.d.ts +21 -0
  106. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js +84 -0
  107. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js.map +1 -0
  108. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.d.ts +8 -0
  109. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js +8 -0
  110. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js.map +1 -0
  111. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.d.ts +22 -0
  112. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js +139 -0
  113. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js.map +1 -0
  114. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.d.ts +10 -0
  115. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js +16 -0
  116. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js.map +1 -0
  117. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/NFEImposto.d.ts +4 -0
  118. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/NFEImposto.js +212 -0
  119. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/NFEImposto.js.map +1 -0
  120. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.d.ts +91 -0
  121. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js +516 -0
  122. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js.map +1 -0
  123. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/ValidaCPFCNPJ.d.ts +11 -0
  124. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/ValidaCPFCNPJ.js +125 -0
  125. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/ValidaCPFCNPJ.js.map +1 -0
  126. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/XmlParser.d.ts +18 -0
  127. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/XmlParser.js +174 -0
  128. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/XmlParser.js.map +1 -0
  129. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getCodIBGE.d.ts +1 -0
  130. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getCodIBGE.js +50 -0
  131. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getCodIBGE.js.map +1 -0
  132. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getDesTipoPag.d.ts +1 -0
  133. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getDesTipoPag.js +42 -0
  134. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getDesTipoPag.js.map +1 -0
  135. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.d.ts +11 -0
  136. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js +12 -0
  137. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js.map +1 -0
  138. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/tsconfig.tsbuildinfo +1 -0
  139. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/NFEImposto.d.ts +4 -0
  140. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/NFEImposto.js +212 -0
  141. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/NFEImposto.js.map +1 -0
  142. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/Utility.d.ts +91 -0
  143. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/Utility.js +516 -0
  144. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/Utility.js.map +1 -0
  145. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/ValidaCPFCNPJ.d.ts +11 -0
  146. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/ValidaCPFCNPJ.js +125 -0
  147. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/ValidaCPFCNPJ.js.map +1 -0
  148. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/XmlParser.d.ts +18 -0
  149. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/XmlParser.js +174 -0
  150. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/XmlParser.js.map +1 -0
  151. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getCodIBGE.d.ts +1 -0
  152. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getCodIBGE.js +50 -0
  153. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getCodIBGE.js.map +1 -0
  154. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getDesTipoPag.d.ts +1 -0
  155. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getDesTipoPag.js +42 -0
  156. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getDesTipoPag.js.map +1 -0
  157. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/index.d.ts +11 -0
  158. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/index.js +12 -0
  159. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/index.js.map +1 -0
  160. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/tsconfig.tsbuildinfo +1 -0
  161. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/cte/CTEDistribuicaoDFe.d.ts +47 -0
  162. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/cte/CTEDistribuicaoDFe.js +18 -0
  163. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/cte/CTEDistribuicaoDFe.js.map +1 -0
  164. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/EmailConfig.d.ts +65 -0
  165. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/EmailConfig.js +18 -0
  166. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/EmailConfig.js.map +1 -0
  167. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEAutorizacao.d.ts +5866 -0
  168. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEAutorizacao.js +30 -0
  169. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEAutorizacao.js.map +1 -0
  170. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEDistribuicaoDFe.d.ts +70 -0
  171. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEDistribuicaoDFe.js +18 -0
  172. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEDistribuicaoDFe.js.map +1 -0
  173. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEInutilizacao.d.ts +10 -0
  174. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEInutilizacao.js +18 -0
  175. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEInutilizacao.js.map +1 -0
  176. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFERecepcaoEvento.d.ts +575 -0
  177. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFERecepcaoEvento.js +18 -0
  178. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFERecepcaoEvento.js.map +1 -0
  179. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFeWizard.d.ts +174 -0
  180. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFeWizard.js +2 -0
  181. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFeWizard.js.map +1 -0
  182. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/index.d.ts +8 -0
  183. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/index.js +25 -0
  184. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/index.js.map +1 -0
  185. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/LoadCertificate.d.ts +11 -0
  186. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/LoadCertificate.js +2 -0
  187. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/LoadCertificate.js.map +1 -0
  188. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/NFEDanfeGenerator.d.ts +32 -0
  189. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/NFEDanfeGenerator.js +18 -0
  190. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/NFEDanfeGenerator.js.map +1 -0
  191. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/Utils.d.ts +29 -0
  192. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/Utils.js +18 -0
  193. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/Utils.js.map +1 -0
  194. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/index.d.ts +49 -0
  195. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/index.js +20 -0
  196. package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/index.js.map +1 -0
  197. package/LICENSE.txt +221 -0
  198. package/README.md +23 -0
  199. package/dist/index.cjs +3672 -0
  200. package/dist/index.cjs.map +1 -0
  201. package/dist/index.mjs +3631 -0
  202. package/dist/index.mjs.map +1 -0
  203. package/dist/src/adapters/SchemaLoader.d.ts +4 -0
  204. package/dist/src/adapters/XmlBuilder.d.ts +31 -0
  205. package/dist/src/adapters/index.d.ts +7 -0
  206. package/dist/src/base/BaseNFe.d.ts +35 -0
  207. package/dist/src/base/GerarConsulta.d.ts +18 -0
  208. package/dist/src/base/SaveFiles.d.ts +12 -0
  209. package/dist/src/base/index.d.ts +8 -0
  210. package/dist/src/environment/AxiosHttpClient.d.ts +6 -0
  211. package/dist/src/environment/Environment.d.ts +21 -0
  212. package/dist/src/environment/HttpClientBuilder.d.ts +11 -0
  213. package/dist/src/environment/LoadCertificate.d.ts +11 -0
  214. package/dist/src/environment/ValidateEnvironment.d.ts +9 -0
  215. package/dist/src/environment/index.d.ts +10 -0
  216. package/dist/src/exceptions/ErrorContext.d.ts +39 -0
  217. package/dist/src/exceptions/JsonArrayTransporter.d.ts +21 -0
  218. package/dist/src/exceptions/index.d.ts +8 -0
  219. package/dist/src/exceptions/logger.d.ts +22 -0
  220. package/dist/src/index.d.ts +10 -0
  221. package/dist/src/utils/NFEImposto.d.ts +4 -0
  222. package/dist/src/utils/Utility.d.ts +91 -0
  223. package/dist/src/utils/ValidaCPFCNPJ.d.ts +11 -0
  224. package/dist/src/utils/XmlParser.d.ts +18 -0
  225. package/dist/src/utils/getCodIBGE.d.ts +1 -0
  226. package/dist/src/utils/getDesTipoPag.d.ts +1 -0
  227. package/dist/src/utils/index.d.ts +11 -0
  228. package/dist/tsconfig.tsbuildinfo +1 -0
  229. package/package.json +68 -0
  230. package/resources/certs/AC CertiSign.crt +22 -0
  231. package/resources/certs/AC-A-DIGIFORTE-RFB.crt +39 -0
  232. package/resources/certs/AC-ACD-v5.crt +40 -0
  233. package/resources/certs/AC-CERTISIGN-ICP-BRASIL-CODE.crt +45 -0
  234. package/resources/certs/AC-CERTISIGN-ICP-BRASIL-SSL-G2.crt +47 -0
  235. package/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G3.crt +49 -0
  236. package/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G4.crt +49 -0
  237. package/resources/certs/AC-DIGITAL-MAIS.crt +36 -0
  238. package/resources/certs/AC-INFOCO-DIGITAL-v5.crt +40 -0
  239. package/resources/certs/AC-PRIME-v5.crt +40 -0
  240. package/resources/certs/AC-PRODESP-RFB-v1.crt +41 -0
  241. package/resources/certs/AC-PRODESP-SP-SSL.crt +47 -0
  242. package/resources/certs/AC-PRODESP-SP.crt +36 -0
  243. package/resources/certs/AC-QUALITYCERT-v5.crt +40 -0
  244. package/resources/certs/AC-REDEBRASIL-v5.crt +40 -0
  245. package/resources/certs/AC-REDEBRASILv5.crt +40 -0
  246. package/resources/certs/AC-SERASA-SSL-EV-V2.crt +45 -0
  247. package/resources/certs/AC-SERASA-SSL-EV-V3.crt +45 -0
  248. package/resources/certs/AC-SERASA-SSL-EV-V4.crt +45 -0
  249. package/resources/certs/AC-SERPRO-SSLv1-v10.crt +40 -0
  250. package/resources/certs/AC-SOLUTI-CS-EV.crt +43 -0
  251. package/resources/certs/AC-SOLUTI-SSL-EV-G2.crt +43 -0
  252. package/resources/certs/AC-SOLUTI-SSL-EV-G3.crt +44 -0
  253. package/resources/certs/AC-SOLUTI-SSL-EV-G4.crt +44 -0
  254. package/resources/certs/AC-SOLUTI-SSL-EV.crt +41 -0
  255. package/resources/certs/AC-SOLUTI-v5-G2.crt +36 -0
  256. package/resources/certs/AC-SyngularID.crt +36 -0
  257. package/resources/certs/AC-VALID-CODE-SIGNING.crt +43 -0
  258. package/resources/certs/AC-VALID-SSL-EV.crt +44 -0
  259. package/resources/certs/ACIMESP1n.crt +26 -0
  260. package/resources/certs/ACIMPRENSAOFICIALRFBSSL.crt +41 -0
  261. package/resources/certs/ACImprensaOficial_18072011.crt +0 -0
  262. package/resources/certs/ACSyngularIDMultipla0.crt +42 -0
  263. package/resources/certs/AC_A_R_A_CERTIFICACAO_DIGITAL_v5.crt +41 -0
  264. package/resources/certs/AC_BR_RFB_G2.crt +27 -0
  265. package/resources/certs/AC_BR_RFB_G3.crt +39 -0
  266. package/resources/certs/AC_BR_RFB_G4.crt +39 -0
  267. package/resources/certs/AC_BoaVista.crt +36 -0
  268. package/resources/certs/AC_BoaVista_Certificadora.crt +44 -0
  269. package/resources/certs/AC_Boa_Vista_RFB.crt +39 -0
  270. package/resources/certs/AC_CACB_CD.crt +40 -0
  271. package/resources/certs/AC_CACB_RFB.crt +41 -0
  272. package/resources/certs/AC_CACB_RFB_G2.crt +41 -0
  273. package/resources/certs/AC_CAIXA_PF_1v2.crt +37 -0
  274. package/resources/certs/AC_CAIXA_PJ-SSL_v2.crt +38 -0
  275. package/resources/certs/AC_CAIXA_PJ_1v2.crt +37 -0
  276. package/resources/certs/AC_CAIXA_v2.crt +36 -0
  277. package/resources/certs/AC_CCN_COMPANHIA_CERTIFICADORA_NACIONAL_v5.crt +41 -0
  278. package/resources/certs/AC_CERTBANK_v5.crt +41 -0
  279. package/resources/certs/AC_CERTDATA_BRASIL.crt +41 -0
  280. package/resources/certs/AC_CERTIFICA_ANAPOLIS_v5_G2.crt +41 -0
  281. package/resources/certs/AC_CERTIFICA_MINAS_v5.crt +40 -0
  282. package/resources/certs/AC_CERTIPE_CD.crt +40 -0
  283. package/resources/certs/AC_CERTISIGN-JUS_CODESIGNING_G6.crt +39 -0
  284. package/resources/certs/AC_CERTISIGN-JUS_G5.crt +38 -0
  285. package/resources/certs/AC_CERTISIGN-JUS_SSL_G6.crt +38 -0
  286. package/resources/certs/AC_CERTMAIS_CD.crt +40 -0
  287. package/resources/certs/AC_CNDL_RFB.crt +39 -0
  288. package/resources/certs/AC_CNDL_RFB_v2.crt +39 -0
  289. package/resources/certs/AC_CNDL_RFB_v3.crt +39 -0
  290. package/resources/certs/AC_CONSULTI_BRASIL_RFB.crt +39 -0
  291. package/resources/certs/AC_CONSULTI_RFB.crt +39 -0
  292. package/resources/certs/AC_Caixa.crt +23 -0
  293. package/resources/certs/AC_Caixa_JUS_v1.crt +29 -0
  294. package/resources/certs/AC_Caixa_JUS_v2.crt +39 -0
  295. package/resources/certs/AC_Caixa_PF-1_v1.crt +30 -0
  296. package/resources/certs/AC_Caixa_PF_v1.crt +32 -0
  297. package/resources/certs/AC_Caixa_PF_v2.crt +41 -0
  298. package/resources/certs/AC_Caixa_PJ-1_v1.crt +30 -0
  299. package/resources/certs/AC_Caixa_PJ_v1.crt +32 -0
  300. package/resources/certs/AC_Caixa_PJ_v2.crt +45 -0
  301. package/resources/certs/AC_Caixa_SPB.crt +39 -0
  302. package/resources/certs/AC_Caixa_v1.crt +25 -0
  303. package/resources/certs/AC_CertiSign_JUS.crt +0 -0
  304. package/resources/certs/AC_CertiSign_V3.crt +25 -0
  305. package/resources/certs/AC_Certifica_Anapolis_v5.crt +43 -0
  306. package/resources/certs/AC_Certisign_G3.crt +25 -0
  307. package/resources/certs/AC_Certisign_G6.crt +36 -0
  308. package/resources/certs/AC_Certisign_G7.crt +36 -0
  309. package/resources/certs/AC_Certisign_G8.crt +36 -0
  310. package/resources/certs/AC_Certisign_JUS_G2.crt +38 -0
  311. package/resources/certs/AC_Certisign_JUS_G3.crt +39 -0
  312. package/resources/certs/AC_Certisign_JUS_G6.crt +38 -0
  313. package/resources/certs/AC_Certisign_Multipla_CodeSigning.crt +41 -0
  314. package/resources/certs/AC_Certisign_Multipla_G3.crt +38 -0
  315. package/resources/certs/AC_Certisign_Multipla_G5.crt +49 -0
  316. package/resources/certs/AC_Certisign_Multipla_G6.crt +49 -0
  317. package/resources/certs/AC_Certisign_Multipla_G7.crt +50 -0
  318. package/resources/certs/AC_Certisign_Multipla_SSL.crt +41 -0
  319. package/resources/certs/AC_Certisign_OM-BR.crt +21 -0
  320. package/resources/certs/AC_Certisign_RFB_G3.crt +29 -0
  321. package/resources/certs/AC_Certisign_RFB_G4.crt +41 -0
  322. package/resources/certs/AC_Certisign_RFB_G5.crt +41 -0
  323. package/resources/certs/AC_Certisign_SPB_G3.crt +27 -0
  324. package/resources/certs/AC_Certisign_SPB_G5.crt +38 -0
  325. package/resources/certs/AC_Certisign_SPB_G6.crt +39 -0
  326. package/resources/certs/AC_Certisign_Tempo_G1.crt +39 -0
  327. package/resources/certs/AC_Certisign_Tempo_G2.crt +41 -0
  328. package/resources/certs/AC_DIGISEC_v5.crt +40 -0
  329. package/resources/certs/AC_DIGITALSIGN_ACP_G2.crt +36 -0
  330. package/resources/certs/AC_DIGITALSIGN_G2.crt +50 -0
  331. package/resources/certs/AC_DIGITALSIGN_RFB_G2.crt +42 -0
  332. package/resources/certs/AC_DIGITALSIGN_RFB_G3.crt +41 -0
  333. package/resources/certs/AC_DIGITALSIGN_SSL.crt +41 -0
  334. package/resources/certs/AC_DIGITAL_MULTIPLA_G1.crt +40 -0
  335. package/resources/certs/AC_DIGITAL_v5.crt +40 -0
  336. package/resources/certs/AC_DOCCLOUD.crt +36 -0
  337. package/resources/certs/AC_DOCCLOUD_RFB.crt +39 -0
  338. package/resources/certs/AC_DOCCLOUD_RFB_v2.crt +39 -0
  339. package/resources/certs/AC_Defesa_v5.crt +49 -0
  340. package/resources/certs/AC_Digital.crt +46 -0
  341. package/resources/certs/AC_Digitalsign.crt +50 -0
  342. package/resources/certs/AC_Digitalsign_ACP.crt +36 -0
  343. package/resources/certs/AC_Digitalsign_RFB.crt +41 -0
  344. package/resources/certs/AC_EGBA_MULTIPLA.crt +45 -0
  345. package/resources/certs/AC_EGBA_Multipla_G2.crt +47 -0
  346. package/resources/certs/AC_EGBA_RFB.crt +41 -0
  347. package/resources/certs/AC_FCDL_SC_v5.crt +40 -0
  348. package/resources/certs/AC_FCDL_SC_v5_G2.crt +41 -0
  349. package/resources/certs/AC_FENACOR_RFB.crt +42 -0
  350. package/resources/certs/AC_Fenacon_Certisign_RFB_G2.crt +27 -0
  351. package/resources/certs/AC_Fenacon_Certisign_RFB_G3.crt +39 -0
  352. package/resources/certs/AC_IMESP_RFB_G2.crt +29 -0
  353. package/resources/certs/AC_IMESP_RFB_G3_retirar_repositorio.crt +41 -0
  354. package/resources/certs/AC_INTERCERT_v5.crt +40 -0
  355. package/resources/certs/AC_Imprensa_Oficial.crt +36 -0
  356. package/resources/certs/AC_Imprensa_Oficial_G2.crt +38 -0
  357. package/resources/certs/AC_Imprensa_Oficial_G3.crt +57 -0
  358. package/resources/certs/AC_Imprensa_Oficial_G4.crt +51 -0
  359. package/resources/certs/AC_Imprensa_Oficial_SP.crt +0 -0
  360. package/resources/certs/AC_Imprensa_Oficial_SP_G2.crt +24 -0
  361. package/resources/certs/AC_Imprensa_Oficial_SP_G3.crt +36 -0
  362. package/resources/certs/AC_Imprensa_Oficial_SP_G4.crt +36 -0
  363. package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G3.crt +41 -0
  364. package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G4.crt +41 -0
  365. package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G5.crt +41 -0
  366. package/resources/certs/AC_Imprensa_Oficial_SSL.crt +42 -0
  367. package/resources/certs/AC_Instituto_Fenacom_RFB.crt +30 -0
  368. package/resources/certs/AC_Instituto_Fenacon.crt +38 -0
  369. package/resources/certs/AC_Instituto_Fenacon_G2.crt +49 -0
  370. package/resources/certs/AC_Instituto_Fenacon_G3.crt +50 -0
  371. package/resources/certs/AC_Instituto_Fenacon_G4.crt +51 -0
  372. package/resources/certs/AC_Instituto_Fenacon_RFB_G2.crt +41 -0
  373. package/resources/certs/AC_Instituto_Fenacon_RFB_G3.crt +41 -0
  374. package/resources/certs/AC_JUS_v6.crt +37 -0
  375. package/resources/certs/AC_LINK_CD.crt +40 -0
  376. package/resources/certs/AC_LINK_RFB.crt +39 -0
  377. package/resources/certs/AC_LINK_RFB_v2.crt +39 -0
  378. package/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5.crt +41 -0
  379. package/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5_G2.crt +41 -0
  380. package/resources/certs/AC_META_CERTIFICADO_DIGITAL_CD.crt +40 -0
  381. package/resources/certs/AC_Notarial_RFB_G2.crt +27 -0
  382. package/resources/certs/AC_Notarial_RFB_G3.crt +39 -0
  383. package/resources/certs/AC_Notarial_RFB_G4.crt +39 -0
  384. package/resources/certs/AC_OAB_G3.crt +39 -0
  385. package/resources/certs/AC_ONLINEBRASIL_v5.crt +41 -0
  386. package/resources/certs/AC_ONLINE_RFB_v5.crt +40 -0
  387. package/resources/certs/AC_Oab.crt +27 -0
  388. package/resources/certs/AC_Oab_G2.crt +38 -0
  389. package/resources/certs/AC_Online_Brasil.crt +43 -0
  390. package/resources/certs/AC_Online_RFB.crt +39 -0
  391. package/resources/certs/AC_PETROBRAS_G4.crt +44 -0
  392. package/resources/certs/AC_PLANO_DIGITAL_CD.crt +40 -0
  393. package/resources/certs/AC_PREMIUM_CERTIFICADORA_DIGITAL_CD.crt +40 -0
  394. package/resources/certs/AC_PRODEMGE_G4.crt +44 -0
  395. package/resources/certs/AC_PRODESP_v1.crt +49 -0
  396. package/resources/certs/AC_Petrobras_G2.crt +30 -0
  397. package/resources/certs/AC_Petrobras_G3.crt +41 -0
  398. package/resources/certs/AC_Prodemge_G2.crt +32 -0
  399. package/resources/certs/AC_Prodemge_G3.crt +43 -0
  400. package/resources/certs/AC_Prodemge_RFB.crt +41 -0
  401. package/resources/certs/AC_Prodemge_RFB_G2.crt +29 -0
  402. package/resources/certs/AC_Prodemge_RFB_G3.crt +41 -0
  403. package/resources/certs/AC_Prodemge_RFB_G4.crt +41 -0
  404. package/resources/certs/AC_Prodest_RFB.crt +27 -0
  405. package/resources/certs/AC_Prodest_RFB_v2.crt +39 -0
  406. package/resources/certs/AC_REDE_BRASIL_v5_G2.crt +41 -0
  407. package/resources/certs/AC_REDE_IDEIA_CD.crt +40 -0
  408. package/resources/certs/AC_REDE_IDEIA_RFB.crt +39 -0
  409. package/resources/certs/AC_SAFEIDBRASIL.crt +41 -0
  410. package/resources/certs/AC_SAFETECH_CD.crt +40 -0
  411. package/resources/certs/AC_SAFEWEB_CD.crt +40 -0
  412. package/resources/certs/AC_SAFEWEB_RFB_v5.crt +39 -0
  413. package/resources/certs/AC_SAFEWEB_TIMESTAMPING.crt +40 -0
  414. package/resources/certs/AC_SEGURA_ID_v5.crt +41 -0
  415. package/resources/certs/AC_SEMPRE_CD.crt +40 -0
  416. package/resources/certs/AC_SEMPRE_RFB_v2.crt +39 -0
  417. package/resources/certs/AC_SENHA_DIGITAL_BRASIL.crt +41 -0
  418. package/resources/certs/AC_SERPRO_JUS_v5.crt +37 -0
  419. package/resources/certs/AC_SIC_BRASIL.crt +41 -0
  420. package/resources/certs/AC_SIC_RFB.crt +40 -0
  421. package/resources/certs/AC_SIG_BRASIL.crt +41 -0
  422. package/resources/certs/AC_SINCOR_G4.crt +46 -0
  423. package/resources/certs/AC_SINCOR_RIO_RFB_G2.crt +41 -0
  424. package/resources/certs/AC_SOLUTI-JUS_CODESIGNING_v5.crt +40 -0
  425. package/resources/certs/AC_SOLUTI-JUS_SSL_v5.crt +40 -0
  426. package/resources/certs/AC_SOLUTI-JUS_v5.crt +40 -0
  427. package/resources/certs/AC_SOLUTI_Multipla_CODESIGNING.crt +43 -0
  428. package/resources/certs/AC_SOLUTI_Multipla_SSL.crt +43 -0
  429. package/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING.crt +42 -0
  430. package/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING_v5.crt +39 -0
  431. package/resources/certs/AC_SOLUTI_Multipla_v5.crt +40 -0
  432. package/resources/certs/AC_SOLUTI_Multipla_v5_G2.crt +41 -0
  433. package/resources/certs/AC_SOLUTI_RFB_V5.crt +41 -0
  434. package/resources/certs/AC_Safeweb_RFB.crt +39 -0
  435. package/resources/certs/AC_Safeweb_v12.crt +36 -0
  436. package/resources/certs/AC_Safeweb_v5.crt +36 -0
  437. package/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v3.crt +37 -0
  438. package/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v4.crt +37 -0
  439. package/resources/certs/AC_Serasa_ACP.crt +0 -0
  440. package/resources/certs/AC_Serasa_Autoridade_Certificadora_Principal.crt +0 -0
  441. package/resources/certs/AC_Serasa_JUS.crt +0 -0
  442. package/resources/certs/AC_Serasa_JUS_v1.crt +37 -0
  443. package/resources/certs/AC_Serasa_JUS_v2.crt +42 -0
  444. package/resources/certs/AC_Serasa_JUS_v5.crt +38 -0
  445. package/resources/certs/AC_Serasa_RFB.crt +31 -0
  446. package/resources/certs/AC_Serasa_RFB_v2.crt +42 -0
  447. package/resources/certs/AC_Serasa_RFB_v5.crt +42 -0
  448. package/resources/certs/AC_Serpro_JUS_v3.crt +29 -0
  449. package/resources/certs/AC_Serpro_JUS_v4.crt +39 -0
  450. package/resources/certs/AC_Serpro_JUS_v5_erro_retirado_repositorio.crt +37 -0
  451. package/resources/certs/AC_Serpro_RFB.crt +28 -0
  452. package/resources/certs/AC_Serpro_RFB_v3.crt +40 -0
  453. package/resources/certs/AC_Serpro_RFB_v4.crt +40 -0
  454. package/resources/certs/AC_Sincor_G2.crt +34 -0
  455. package/resources/certs/AC_Sincor_G3.crt +44 -0
  456. package/resources/certs/AC_Sincor_RFB_G2.crt +29 -0
  457. package/resources/certs/AC_Sincor_RFB_G4.crt +41 -0
  458. package/resources/certs/AC_Sincor_RFB_G5.crt +41 -0
  459. package/resources/certs/AC_Sincor_Rio_RFB_G1.crt +41 -0
  460. package/resources/certs/AC_Solucao_Digital_Multipla.crt +42 -0
  461. package/resources/certs/AC_Soluti.crt +36 -0
  462. package/resources/certs/AC_Soluti_JUS_v1.crt +46 -0
  463. package/resources/certs/AC_Soluti_Multipla_v1.crt +46 -0
  464. package/resources/certs/AC_Soluti_OM-BR.crt +21 -0
  465. package/resources/certs/AC_Soluti_RFB.crt +41 -0
  466. package/resources/certs/AC_Soluti_v5.crt +36 -0
  467. package/resources/certs/AC_SyngularID_Multipla.crt +42 -0
  468. package/resources/certs/AC_VALID-JUS_CODESIGNING_v5.crt +39 -0
  469. package/resources/certs/AC_VALID-JUS_SSL_v5.crt +38 -0
  470. package/resources/certs/AC_VALID-JUS_v5.crt +38 -0
  471. package/resources/certs/AC_VALID_BRASIL_CODESIGNING.crt +42 -0
  472. package/resources/certs/AC_VALID_BRASIL_SSL.crt +41 -0
  473. package/resources/certs/AC_VALID_BRASIL_v5.crt +41 -0
  474. package/resources/certs/AC_VALID_PLUS_CODESIGNING.crt +42 -0
  475. package/resources/certs/AC_VALID_PLUS_SSL.crt +41 -0
  476. package/resources/certs/AC_VALID_PLUS_TIMESTAMPING.crt +42 -0
  477. package/resources/certs/AC_VALID_PLUS_v5.crt +49 -0
  478. package/resources/certs/AC_VALID_RFB_v5.crt +39 -0
  479. package/resources/certs/AC_VALID_SPB_v5.crt +38 -0
  480. package/resources/certs/AC_VALID_V12.crt +36 -0
  481. package/resources/certs/AC_VALID_v5.crt +36 -0
  482. package/resources/certs/AC_Valid_Brasil.crt +43 -0
  483. package/resources/certs/AC_Valid_JUS_v4.crt +41 -0
  484. package/resources/certs/AC_Valid_PLUS.crt +55 -0
  485. package/resources/certs/AC_Valid_RFB.crt +39 -0
  486. package/resources/certs/AC_Valid_SPB.crt +40 -0
  487. package/resources/certs/AC_Validar_Multipla.crt +42 -0
  488. package/resources/certs/AUTORIDADE_CERTIFICADORA_PROCERTI.crt +39 -0
  489. package/resources/certs/Autoridade Certificadora da Presidencia da Republica v1.crt +0 -0
  490. package/resources/certs/Autoridade Certificadora da Presidencia da Republica v2.crt +25 -0
  491. package/resources/certs/Autoridade_Certificadora_ALTERNATIVE.crt +41 -0
  492. package/resources/certs/Autoridade_Certificadora_BRASIL_CERTEC.crt +41 -0
  493. package/resources/certs/Autoridade_Certificadora_DIGITAL_CERTY.crt +41 -0
  494. package/resources/certs/Autoridade_Certificadora_IDFEDERAL.crt +41 -0
  495. package/resources/certs/Autoridade_Certificadora_INFOCOMEX.crt +39 -0
  496. package/resources/certs/Autoridade_Certificadora_INVIA.crt +41 -0
  497. package/resources/certs/Autoridade_Certificadora_NACIONAL.crt +41 -0
  498. package/resources/certs/Autoridade_Certificadora_PRIMECERT.crt +41 -0
  499. package/resources/certs/Autoridade_Certificadora_SDI.crt +41 -0
  500. package/resources/certs/Autoridade_Certificadora_SEFAZCE.crt +38 -0
  501. package/resources/certs/Autoridade_Certificadora_SERPRORFBv5.crt +40 -0
  502. package/resources/certs/Autoridade_Certificadora_Serpro_v2.crt +25 -0
  503. package/resources/certs/Autoridade_Certificadora_Serpro_v3.crt +36 -0
  504. package/resources/certs/Autoridade_Certificadora_Serpro_v4.crt +36 -0
  505. package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil.crt +29 -0
  506. package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v2.crt +37 -0
  507. package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v3.crt +41 -0
  508. package/resources/certs/Autoridade_Certificadora_da_Justica.crt +25 -0
  509. package/resources/certs/Autoridade_Certificadora_da_Justica_v3.crt +26 -0
  510. package/resources/certs/Autoridade_Certificadora_da_Justica_v4.crt +36 -0
  511. package/resources/certs/Autoridade_Certificadora_da_Justica_v5.crt +36 -0
  512. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica.crt +25 -0
  513. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_2005.crt +0 -0
  514. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v1.crt +0 -0
  515. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v2.crt +25 -0
  516. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v3.crt +37 -0
  517. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v4.crt +40 -0
  518. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v5.crt +38 -0
  519. package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v6.crt +38 -0
  520. package/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal.crt +23 -0
  521. package/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal_v1.crt +23 -0
  522. package/resources/certs/Autoridade_Certificadora_do_Proderj.crt +26 -0
  523. package/resources/certs/Autoridade_Certificadora_do_Proderj_v2.crt +38 -0
  524. package/resources/certs/Autoridade_Certificadora_do_SERPRO_RFB_SSL.crt +38 -0
  525. package/resources/certs/Autoridade_Certificadora_do_Serpro.crt +0 -0
  526. package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_SSL.crt +38 -0
  527. package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v1.crt +32 -0
  528. package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v2.crt +30 -0
  529. package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v3.crt +48 -0
  530. package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v4.crt +48 -0
  531. package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v5.crt +40 -0
  532. package/resources/certs/Autoridade_Certificadora_do_Serpro_v1.crt +0 -0
  533. package/resources/certs/Autoridade__Certificadora_do_Serpro_v1.crt +0 -0
  534. package/resources/certs/Certificado_AC_Raiz.crt +28 -0
  535. package/resources/certs/DigiCert_Global_Root_G2.crt +22 -0
  536. package/resources/certs/GeoTrust_TLS_RSA_CA_G1.crt +27 -0
  537. package/resources/certs/GlobalSign.crt +21 -0
  538. package/resources/certs/ICP-Brasil.crt +27 -0
  539. package/resources/certs/ICP-Brasilv10.crt +38 -0
  540. package/resources/certs/ICP-Brasilv11.crt +38 -0
  541. package/resources/certs/ICP-Brasilv12.crt +38 -0
  542. package/resources/certs/ICP-Brasilv2.crt +38 -0
  543. package/resources/certs/ICP-Brasilv5.crt +38 -0
  544. package/resources/certs/ICP-Brasilv6.crt +19 -0
  545. package/resources/certs/ICP-Brasilv7.crt +20 -0
  546. package/resources/certs/ISRG Root X1.crt +31 -0
  547. package/resources/certs/Instituto_Nacional_de_Metrologia_Qualidade_e_Tecnologia_INMETRO.crt +18 -0
  548. package/resources/certs/Secretaria_da_Receita_Federal_do_Brasil.crt +24 -0
  549. package/resources/certs/Sectigo Public Server Authentication Root R46.crt +32 -0
  550. package/resources/certs/Serasa_AC_v5.crt +41 -0
  551. package/resources/certs/Serasa_Autoridade_Certificadora_Principal.crt +27 -0
  552. package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v1.crt +26 -0
  553. package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v2.crt +37 -0
  554. package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v5.crt +37 -0
  555. package/resources/certs/Serasa_Autoridade_Certificadora_v2.crt +43 -0
  556. package/resources/certs/Serasa_CD_SSL_v5.crt +47 -0
  557. package/resources/certs/Serasa_CD_v5.crt +56 -0
  558. package/resources/certs/Serasa_Certificadora_Digital_v2.crt +62 -0
  559. package/resources/certs/USERTrust_RSA_Certification_Authority.crt +34 -0
  560. package/resources/certs/ac_certfacil_v5.crt +40 -0
  561. package/resources/certs/ac_certifica_anapolis_v5.crt +40 -0
  562. package/resources/certs/ac_mult_v5.crt +40 -0
  563. package/resources/certs/ac_soluti_spb_v5.crt +37 -0
  564. package/resources/certs/fazenda.mg.gov.br.crt +38 -0
  565. package/resources/schemas/110150_v1.00.xsd +88 -0
  566. package/resources/schemas/Averb_v1.00.xsd +11 -0
  567. package/resources/schemas/CCe_v1.00.xsd +11 -0
  568. package/resources/schemas/DFeTiposBasicos_v1.00.xsd +1097 -0
  569. package/resources/schemas/EPEC_v1.00.xsd +9 -0
  570. package/resources/schemas/EPP1.xml +13 -0
  571. package/resources/schemas/ERP1.xml +19 -0
  572. package/resources/schemas/EventoCancEntregaNFe_v1.00.xsd +9 -0
  573. package/resources/schemas/EventoEntregaNFe_v1.00.xsd +9 -0
  574. package/resources/schemas/SuframaInternaliza_v1.00.xsd +9 -0
  575. package/resources/schemas/SuframaVistoria_v1.00.xsd +9 -0
  576. package/resources/schemas/confRecebto_v1.00.xsd +9 -0
  577. package/resources/schemas/consCad_v2.00.xsd +9 -0
  578. package/resources/schemas/consGTIN_v1.00.xsd +10 -0
  579. package/resources/schemas/consReciNFe_v4.00.xsd +9 -0
  580. package/resources/schemas/consSitNFe_v2.01.xsd +10 -0
  581. package/resources/schemas/consSitNFe_v4.00.xsd +9 -0
  582. package/resources/schemas/consStatServ_v4.00.xsd +9 -0
  583. package/resources/schemas/cte/distDFeInt_v1.00.xsd +71 -0
  584. package/resources/schemas/cte/retDistDFeInt_v1.00.xsd +89 -0
  585. package/resources/schemas/cte/tiposDistDFe_v1.00.xsd +243 -0
  586. package/resources/schemas/cte/xmldsig-core-schema_v1.01.xsd +98 -0
  587. package/resources/schemas/distDFeInt_v1.01.xsd +94 -0
  588. package/resources/schemas/e110001_v1.00.xsd +73 -0
  589. package/resources/schemas/e110110_v1.00.xsd +58 -0
  590. package/resources/schemas/e110111_v1.00.xsd +42 -0
  591. package/resources/schemas/e110112_v1.00.xsd +69 -0
  592. package/resources/schemas/e110130_v1.00.xsd +102 -0
  593. package/resources/schemas/e110131_v1.00.xsd +51 -0
  594. package/resources/schemas/e110140_v1.00.xsd +124 -0
  595. package/resources/schemas/e111500_v1.00.xsd +69 -0
  596. package/resources/schemas/e111501_v1.00.xsd +69 -0
  597. package/resources/schemas/e111502_v1.00.xsd +50 -0
  598. package/resources/schemas/e111503_v1.00.xsd +50 -0
  599. package/resources/schemas/e112110_v1.00.xsd +69 -0
  600. package/resources/schemas/e112120_v1.00 .xsd +107 -0
  601. package/resources/schemas/e112130_v1.00.xsd +119 -0
  602. package/resources/schemas/e112140_v1.00.xsd +107 -0
  603. package/resources/schemas/e210200_v1.00.xsd +32 -0
  604. package/resources/schemas/e210210_v1.00.xsd +32 -0
  605. package/resources/schemas/e210220_v1.00.xsd +45 -0
  606. package/resources/schemas/e210240_v1.00.xsd +44 -0
  607. package/resources/schemas/e211110_v1.00.xsd +134 -0
  608. package/resources/schemas/e211120_v1.00.xsd +124 -0
  609. package/resources/schemas/e211124_v1.00.xsd +107 -0
  610. package/resources/schemas/e211128_v1.00.xsd +69 -0
  611. package/resources/schemas/e211130_v1.00.xsd +107 -0
  612. package/resources/schemas/e211140_v1.00.xsd +107 -0
  613. package/resources/schemas/e211150_v1.00.xsd +85 -0
  614. package/resources/schemas/e212110_v1.00.xsd +70 -0
  615. package/resources/schemas/e212120_v1.00.xsd +69 -0
  616. package/resources/schemas/e411500_v1.00.xsd +134 -0
  617. package/resources/schemas/e411501_v1.00.xsd +134 -0
  618. package/resources/schemas/e411502_v1.00.xsd +95 -0
  619. package/resources/schemas/e411503_v1.00.xsd +95 -0
  620. package/resources/schemas/e412120_v1.00.xsd +88 -0
  621. package/resources/schemas/e412130_v1.00.xsd +88 -0
  622. package/resources/schemas/e790700_v1.00.xsd +148 -0
  623. package/resources/schemas/e990900_v1.00.xsd +87 -0
  624. package/resources/schemas/e990910_v1.00.xsd +81 -0
  625. package/resources/schemas/envAverb_v1.00.xsd +9 -0
  626. package/resources/schemas/envCCe_v1.00.xsd +10 -0
  627. package/resources/schemas/envConfRecebto_v1.00.xsd +9 -0
  628. package/resources/schemas/envEPEC_v1.00.xsd +9 -0
  629. package/resources/schemas/envEventoAtorInteressado_v1.00.xsd +9 -0
  630. package/resources/schemas/envEventoCancEntregaNFe_v1.00.xsd +10 -0
  631. package/resources/schemas/envEventoCancNFe_v1.00.xsd +9 -0
  632. package/resources/schemas/envEventoCancSubst_v1.00.xsd +9 -0
  633. package/resources/schemas/envEventoEntregaNFe_v1.00.xsd +10 -0
  634. package/resources/schemas/envEvento_v1.00.xsd +9 -0
  635. package/resources/schemas/envRemIndus_v1.00.xsd +9 -0
  636. package/resources/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
  637. package/resources/schemas/envSuframaVistoria_v1.00.xsd +10 -0
  638. package/resources/schemas/enviNFe_v4.00.xsd +9 -0
  639. package/resources/schemas/eventoAtorInteressado_v1.00.xsd +9 -0
  640. package/resources/schemas/eventoCancNFe_v1.00.xsd +9 -0
  641. package/resources/schemas/eventoCancSubst_v1.00.xsd +9 -0
  642. package/resources/schemas/eventoEPEC_v0.01.xsd +267 -0
  643. package/resources/schemas/eventoRemIndus_v1.00.xsd +9 -0
  644. package/resources/schemas/inutNFe_v4.00.xsd +9 -0
  645. package/resources/schemas/leiauteAverb_v1.00.xsd +468 -0
  646. package/resources/schemas/leiauteCCe_v1.00.xsd +418 -0
  647. package/resources/schemas/leiauteCcgConsGTIN_v1.00.xsd +94 -0
  648. package/resources/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
  649. package/resources/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
  650. package/resources/schemas/leiauteConsSitNFe_v4.00.xsd +502 -0
  651. package/resources/schemas/leiauteConsStatServ_v4.00.xsd +98 -0
  652. package/resources/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
  653. package/resources/schemas/leiauteEPEC_v1.00.xsd +459 -0
  654. package/resources/schemas/leiauteEPEC_v1.00.xsd.bak +465 -0
  655. package/resources/schemas/leiauteEventoAtorInteressado_v1.00.xsd +384 -0
  656. package/resources/schemas/leiauteEventoCancEntregaNFe_v1.00.xsd +307 -0
  657. package/resources/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
  658. package/resources/schemas/leiauteEventoCancSubst_v1.00.xsd +366 -0
  659. package/resources/schemas/leiauteEventoEntregaNFe_v1.00.xsd +321 -0
  660. package/resources/schemas/leiauteEvento_v1.00.xsd +373 -0
  661. package/resources/schemas/leiauteInutNFe_v4.00.xsd +193 -0
  662. package/resources/schemas/leiauteNFe_v4.00.xsd +7558 -0
  663. package/resources/schemas/leiauteRemIndus_v1.00.xsd +382 -0
  664. package/resources/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
  665. package/resources/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
  666. package/resources/schemas/nfe_v4.00.xsd +10 -0
  667. package/resources/schemas/procAverbNFe_v1.00.xsd +10 -0
  668. package/resources/schemas/procCCeNFe_v1.00.xsd +10 -0
  669. package/resources/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
  670. package/resources/schemas/procEPEC_v1.00.xsd +9 -0
  671. package/resources/schemas/procEventoAtorInteressado_v1.00.xsd +9 -0
  672. package/resources/schemas/procEventoCancEntregaNFe_v1.00.xsd +9 -0
  673. package/resources/schemas/procEventoCancNFe_v1.00.xsd +9 -0
  674. package/resources/schemas/procEventoCancSubst_v1.00.xsd +9 -0
  675. package/resources/schemas/procEventoEntregaNFe_v1.00.xsd +9 -0
  676. package/resources/schemas/procEventoNFe_v1.00.xsd +9 -0
  677. package/resources/schemas/procInutNFe_v4.00.xsd +9 -0
  678. package/resources/schemas/procNFe_v4.00.xsd +9 -0
  679. package/resources/schemas/procRemIndus_v1.00.xsd +9 -0
  680. package/resources/schemas/resEvento_v1.01.xsd +1 -0
  681. package/resources/schemas/resNFe_v1.01.xsd +5 -0
  682. package/resources/schemas/retConsCad_v2.00.xsd +9 -0
  683. package/resources/schemas/retConsGTIN_v1.00.xsd +9 -0
  684. package/resources/schemas/retConsReciNFe_v4.00.xsd +9 -0
  685. package/resources/schemas/retConsSitNFe_v2.01.xsd +10 -0
  686. package/resources/schemas/retConsSitNFe_v4.00.xsd +9 -0
  687. package/resources/schemas/retConsStatServ_v4.00.xsd +9 -0
  688. package/resources/schemas/retDistDFeInt_v1.01.xsd +5 -0
  689. package/resources/schemas/retEnvAverb_v1.00.xsd +9 -0
  690. package/resources/schemas/retEnvCCe_v1.00.xsd +10 -0
  691. package/resources/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
  692. package/resources/schemas/retEnvEPEC_v1.00.xsd +9 -0
  693. package/resources/schemas/retEnvEventoAtorInteressado_v1.00.xsd +9 -0
  694. package/resources/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
  695. package/resources/schemas/retEnvEventoCancSubst_v1.00.xsd +9 -0
  696. package/resources/schemas/retEnvEvento_v1.00.xsd +9 -0
  697. package/resources/schemas/retEnvRemIndus_v1.00.xsd +9 -0
  698. package/resources/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
  699. package/resources/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
  700. package/resources/schemas/retEnviNFe_v4.00.xsd +9 -0
  701. package/resources/schemas/retEventoCancEntregaNFe_v1.00.xsd +9 -0
  702. package/resources/schemas/retEventoEPEC_v0.01.xsd +207 -0
  703. package/resources/schemas/retEventoEntregaNFe_v1.00.xsd +9 -0
  704. package/resources/schemas/retInutNFe_v4.00.xsd +9 -0
  705. package/resources/schemas/tiposBasico_v1.03.xsd +834 -0
  706. package/resources/schemas/tiposBasico_v3.10.xsd +833 -0
  707. package/resources/schemas/tiposBasico_v4.00.xsd +598 -0
  708. package/resources/schemas/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
  709. package/resources/schemas/tiposDistDFe_v1.01.xsd +1 -0
  710. package/resources/schemas/xmldsig-core-schema_v1.01.xsd +98 -0
  711. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,46 @@
1
+ {
2
+ "NFEStatusServico": {
3
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
4
+ "action": ""
5
+ },
6
+ "NFeDistribuicaoDFe": {
7
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",
8
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse"
9
+ },
10
+ "NFEAutorizacao": {
11
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",
12
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote"
13
+ },
14
+ "NFERetAutorizacao": {
15
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
16
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
17
+ },
18
+ "NFERetornoAutorizacao": {
19
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
20
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
21
+ },
22
+ "consultarStatusServico": {
23
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
24
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF"
25
+ },
26
+ "NFEInutilizacao": {
27
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",
28
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF"
29
+ },
30
+ "NFEConsultaProtocolo": {
31
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",
32
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF"
33
+ },
34
+ "consultarCadastro": {
35
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/",
36
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"
37
+ },
38
+ "RecepcaoEvento": {
39
+ "method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",
40
+ "action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF"
41
+ },
42
+ "CTeDistribuicaoDFe": {
43
+ "method": "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe",
44
+ "action": "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe/cteDistDFeInteresse"
45
+ }
46
+ }
@@ -0,0 +1,6 @@
1
+ import { HttpClient, HttpClientConfig } from '@nfewizard/types/shared';
2
+ import { AxiosInstance } from 'axios';
3
+ declare class AxiosHttpClient implements HttpClient<AxiosInstance> {
4
+ create(config: HttpClientConfig): AxiosInstance;
5
+ }
6
+ export { AxiosHttpClient };
@@ -0,0 +1,12 @@
1
+ import axios from 'axios';
2
+ class AxiosHttpClient {
3
+ create(config) {
4
+ return axios.create({
5
+ headers: config.headers,
6
+ httpsAgent: config.agent,
7
+ timeout: config.timeout,
8
+ });
9
+ }
10
+ }
11
+ export { AxiosHttpClient };
12
+ //# sourceMappingURL=AxiosHttpClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AxiosHttpClient.js","sourceRoot":"","sources":["../../../src/environment/AxiosHttpClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,MAAM,eAAe;IACjB,MAAM,CAAC,MAAwB;QAC3B,OAAO,KAAK,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,UAAU,EAAE,MAAM,CAAC,KAAK;YACxB,OAAO,EAAE,MAAM,CAAC,OAAO;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import https from 'https';
2
+ import { NFeWizardProps } from '@nfewizard/types/shared';
3
+ import { AxiosInstance } from 'axios';
4
+ declare class Environment {
5
+ config: NFeWizardProps;
6
+ certificate: string;
7
+ cert_key: string;
8
+ agent: https.Agent;
9
+ isLoaded: boolean;
10
+ constructor(config: NFeWizardProps);
11
+ getIsLoaded(): boolean;
12
+ getConfig(): NFeWizardProps;
13
+ getCertKey(): string;
14
+ getCert(): string;
15
+ getHttpAgent(): https.Agent;
16
+ private LoggerInit;
17
+ loadEnvironment(): Promise<{
18
+ axios: AxiosInstance;
19
+ }>;
20
+ }
21
+ export { Environment };
@@ -0,0 +1,81 @@
1
+ import { AxiosHttpClient } from './AxiosHttpClient.js';
2
+ import { HttpClientBuilder } from './HttpClientBuilder.js';
3
+ import { ValidateEnvironment } from './ValidateEnvironment.js';
4
+ import { LoadCertificate } from './LoadCertificate.js';
5
+ import { logger } from '../exceptions/logger.js';
6
+ class Environment {
7
+ constructor(config) {
8
+ this.config = config;
9
+ this.certificate = '';
10
+ this.cert_key = '';
11
+ this.agent = {};
12
+ this.isLoaded = false;
13
+ }
14
+ getIsLoaded() {
15
+ return this.isLoaded;
16
+ }
17
+ getConfig() {
18
+ return this.config;
19
+ }
20
+ getCertKey() {
21
+ return this.cert_key;
22
+ }
23
+ getCert() {
24
+ return this.certificate;
25
+ }
26
+ getHttpAgent() {
27
+ return this.agent;
28
+ }
29
+ LoggerInit(config) {
30
+ try {
31
+ if (config.lib?.log) {
32
+ logger.initialize({
33
+ exibirLogNoConsole: config.lib.log.exibirLogNoConsole ?? false,
34
+ armazenarLogs: config.lib.log.armazenarLogs ?? false,
35
+ pathLogs: config.lib.log.pathLogs
36
+ });
37
+ }
38
+ logger.info('Inicializando ambiente NFeWizard', {
39
+ context: 'Environment',
40
+ // config,
41
+ });
42
+ }
43
+ catch (error) {
44
+ logger.error('Erro ao inicializar ambiente NFeWizard', error, { context: 'Environment' });
45
+ throw error;
46
+ }
47
+ }
48
+ async loadEnvironment() {
49
+ /**
50
+ * Inicializa Logger
51
+ * */
52
+ this.LoggerInit(this.config);
53
+ /**
54
+ * Verifica configurações obrigatórias
55
+ * */
56
+ const validateEnvironment = new ValidateEnvironment();
57
+ validateEnvironment.checkRequiredSettings(this.config);
58
+ /**
59
+ * Carrega Certificados
60
+ * */
61
+ const loadCertificate = new LoadCertificate(this.config);
62
+ const { agent, certificate, cert_key } = await loadCertificate.loadCertificate();
63
+ this.agent = agent;
64
+ this.certificate = certificate;
65
+ this.cert_key = cert_key;
66
+ /**
67
+ * Configura HttpClient
68
+ * */
69
+ const httpClient = new AxiosHttpClient();
70
+ const configAgent = new HttpClientBuilder(this.config, this.agent, httpClient);
71
+ const axios = configAgent.createHttpClient();
72
+ /**
73
+ * Armazena informação de ambiente carregado
74
+ * */
75
+ this.isLoaded = true;
76
+ logger.info('Ambiente NFe Wizard inicializado com sucesso', { context: 'Environment' });
77
+ return { axios };
78
+ }
79
+ }
80
+ export { Environment };
81
+ //# sourceMappingURL=Environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Environment.js","sourceRoot":"","sources":["../../../src/environment/Environment.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,WAAW;IAMb,YAAY,MAAsB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,EAAiB,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,WAAW;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CA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AAG,MAAM,eAAe,CAAC,eAAe,EAAE,CAAC;QAEjF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAGzB;;aAEK;QACL,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;QACzC,MAAM,WAAW,GAAG,IAAI,iBAAiB,CAAgB,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAC9F,MAAM,KAAK,GAAG,WAAW,CAAC,gBAAgB,EAAE,CAAC;QAE7C;;aAEK;QACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAErB,MAAM,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;QAExF,OAAO,EAAE,KAAK,EAAE,CAAA;IACpB,CAAC;CAEJ;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { NFeWizardProps } from '@nfewizard/types/shared';
2
+ import https from 'https';
3
+ import { HttpClient } from '@nfewizard/types/shared';
4
+ declare class HttpClientBuilder<T> {
5
+ private config;
6
+ private agent;
7
+ private httpClient;
8
+ constructor(config: NFeWizardProps, agent: https.Agent, httpClient: HttpClient<T>);
9
+ createHttpClient(): T;
10
+ }
11
+ export { HttpClientBuilder };
@@ -0,0 +1,29 @@
1
+ import { logger } from '../exceptions/logger.js';
2
+ class HttpClientBuilder {
3
+ constructor(config, agent, httpClient) {
4
+ this.config = config;
5
+ this.agent = agent;
6
+ this.httpClient = httpClient;
7
+ }
8
+ createHttpClient() {
9
+ logger.info('Criando client HTTP', {
10
+ context: 'createHttpClient',
11
+ });
12
+ try {
13
+ const axiosConfig = {
14
+ headers: {
15
+ 'Content-Type': 'text/xml; charset=utf-8',
16
+ },
17
+ httpsAgent: this.agent,
18
+ timeout: this.config.lib?.connection?.timeout || 60000, // Timeout padrão de 60 segundos se não for configurado
19
+ };
20
+ return this.httpClient.create(axiosConfig);
21
+ }
22
+ catch (error) {
23
+ logger.error('Erro ao criar client HTTP', error, { context: 'createHttpClient' });
24
+ throw new Error(error.message);
25
+ }
26
+ }
27
+ }
28
+ export { HttpClientBuilder };
29
+ //# sourceMappingURL=HttpClientBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpClientBuilder.js","sourceRoot":"","sources":["../../../src/environment/HttpClientBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,iBAAiB;IAKnB,YAAY,MAAsB,EAAE,KAAkB,EAAE,UAAyB;QAC7E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IACD,gBAAgB;QACZ,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC/B,OAAO,EAAE,kBAAkB;SAC9B,CAAC,CAAC;QACH,IAAI,CAAC;YACD,MAAM,WAAW,GAAG;gBAChB,OAAO,EAAE;oBACL,cAAc,EAAE,yBAAyB;iBAC5C;gBACD,UAAU,EAAE,IAAI,CAAC,KAAK;gBACtB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,IAAI,KAAK,EAAE,uDAAuD;aAClH,CAAC;YAEF,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAClF,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;IACL,CAAC;CACJ;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { CertificateLoadReturn, NFeWizardProps } from '@nfewizard/types/shared';
2
+ declare class LoadCertificate {
3
+ private config;
4
+ private certificate;
5
+ private cert_key;
6
+ constructor(config: NFeWizardProps);
7
+ private loadCertificateWithPEM;
8
+ private loadCertificateWithNodeForge;
9
+ loadCertificate(): Promise<CertificateLoadReturn>;
10
+ }
11
+ export { LoadCertificate };
@@ -0,0 +1,176 @@
1
+ import fs from 'fs';
2
+ import pem from 'pem';
3
+ import https from 'https';
4
+ import forge from 'node-forge';
5
+ import { fileURLToPath } from 'url';
6
+ import path from 'path';
7
+ import { logger } from '../exceptions/logger.js';
8
+ const baseDir = path.dirname(fileURLToPath(import.meta.url));
9
+ // From dist/ to package root, then to resources/certs
10
+ const dir = path.join(baseDir, '../resources/certs');
11
+ class LoadCertificate {
12
+ constructor(config) {
13
+ this.config = config;
14
+ this.certificate = '';
15
+ this.cert_key = '';
16
+ }
17
+ loadCertificateWithPEM() {
18
+ return new Promise((resolve, reject) => {
19
+ try {
20
+ const pfxPath = this.config.dfe.pathCertificado;
21
+ const pfxPassword = this.config.dfe.senhaCertificado;
22
+ const pfxFile = fs.readFileSync(pfxPath);
23
+ const certsDir = path.resolve(baseDir, dir);
24
+ // Read CA certificates if directory exists and has files
25
+ let caCerts = [];
26
+ if (fs.existsSync(certsDir)) {
27
+ const files = fs.readdirSync(certsDir).filter(f => !f.startsWith('.'));
28
+ caCerts = files.map(filename => {
29
+ const tmp = `${certsDir}/${filename}`;
30
+ return fs.readFileSync(tmp);
31
+ });
32
+ }
33
+ pem.readPkcs12(pfxFile, { p12Password: pfxPassword }, async (error, result) => {
34
+ if (error) {
35
+ if (error.message.toLowerCase().includes('mac verify error')) {
36
+ return reject(new Error("Erro ao ler o certificado: Senha incorreta."));
37
+ }
38
+ else {
39
+ return reject(new Error(`Erro ao ler o certificado: ${error.message}`));
40
+ }
41
+ }
42
+ const key = result.key;
43
+ this.cert_key = key;
44
+ const cert = result.cert;
45
+ this.certificate = cert;
46
+ const certForge = forge.pki.certificateFromPem(cert);
47
+ const now = new Date();
48
+ if (now < certForge.validity.notBefore || now > certForge.validity.notAfter) {
49
+ return reject(new Error("Erro ao carregar o certificado: O certificado fornecido expirou ou ainda não é válido."));
50
+ }
51
+ // Configure HTTPS agent based on environment
52
+ const agentOptions = {
53
+ key: key,
54
+ cert: cert,
55
+ };
56
+ // Add CA certs if available, otherwise allow self-signed for homologação
57
+ if (caCerts.length > 0) {
58
+ agentOptions.ca = caCerts;
59
+ }
60
+ else if (this.config.dfe.ambiente === 2) {
61
+ // Homologação: accept self-signed certificates
62
+ agentOptions.rejectUnauthorized = false;
63
+ }
64
+ const agent = new https.Agent(agentOptions);
65
+ resolve({
66
+ success: true,
67
+ agent,
68
+ message: 'Certificado Carregado com Sucesso.'
69
+ });
70
+ });
71
+ }
72
+ catch (error) {
73
+ logger.error('Erro ao validar certificado', error, {
74
+ context: 'LoadCertificate',
75
+ method: 'loadCertificateWithPEM',
76
+ });
77
+ reject(new Error(error.message));
78
+ }
79
+ });
80
+ }
81
+ loadCertificateWithNodeForge() {
82
+ return new Promise((resolve, reject) => {
83
+ try {
84
+ const pfxPath = this.config.dfe.pathCertificado;
85
+ const pfxPassword = this.config.dfe.senhaCertificado;
86
+ // Lê o arquivo PFX
87
+ const pfxFile = fs.readFileSync(pfxPath);
88
+ // Decodifica o arquivo PFX (PKCS#12)
89
+ const p12Asn1 = forge.asn1.fromDer(pfxFile.toString('binary'));
90
+ const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, pfxPassword);
91
+ // Extrai a chave privada e o certificado
92
+ const keyBags = p12.getBags({ bagType: forge.pki.oids.pkcs8ShroudedKeyBag });
93
+ const certBags = p12.getBags({ bagType: forge.pki.oids.certBag });
94
+ // Verificar se o 'keyBags' contém a chave esperada
95
+ const key = keyBags[forge.pki.oids.pkcs8ShroudedKeyBag]?.[0]?.key;
96
+ if (!key) {
97
+ return reject(new Error("Erro ao carregar chave privada do certificado."));
98
+ }
99
+ const keyPem = forge.pki.privateKeyToPem(key);
100
+ this.cert_key = keyPem;
101
+ // Verificar se o 'certBags' contém o certificado esperado
102
+ const cert = certBags[forge.pki.oids.certBag]?.[0]?.cert;
103
+ if (!cert) {
104
+ return reject(new Error("Erro ao validar certificado."));
105
+ }
106
+ const certPem = forge.pki.certificateToPem(cert);
107
+ this.certificate = certPem;
108
+ // Converte o certificado para o formato Forge
109
+ const certForge = forge.pki.certificateFromPem(forge.pki.certificateToPem(cert));
110
+ // Valida a data de validade
111
+ const now = new Date();
112
+ if (now < certForge.validity.notBefore || now > certForge.validity.notAfter) {
113
+ return reject(new Error("Erro ao carregar o certificado: O certificado fornecido expirou ou ainda não é válido."));
114
+ }
115
+ // Carrega os certificados da CA
116
+ const certsDir = path.resolve(baseDir, dir);
117
+ // Read CA certificates if directory exists and has files
118
+ let caCerts = [];
119
+ if (fs.existsSync(certsDir)) {
120
+ const files = fs.readdirSync(certsDir).filter(f => !f.startsWith('.'));
121
+ caCerts = files.map(filename => {
122
+ const tmp = `${certsDir}/${filename}`;
123
+ return fs.readFileSync(tmp);
124
+ });
125
+ }
126
+ // Configura o agente HTTPS
127
+ const agentOptions = {
128
+ key: keyPem,
129
+ cert: certPem,
130
+ };
131
+ // Add CA certs if available, otherwise allow self-signed for homologação
132
+ if (caCerts.length > 0) {
133
+ agentOptions.ca = caCerts;
134
+ }
135
+ else if (this.config.dfe.ambiente === 2) {
136
+ // Homologação: accept self-signed certificates
137
+ agentOptions.rejectUnauthorized = false;
138
+ }
139
+ const agent = new https.Agent(agentOptions);
140
+ resolve({
141
+ success: true,
142
+ agent,
143
+ message: 'Certificado Carregado com Sucesso.'
144
+ });
145
+ }
146
+ catch (error) {
147
+ logger.error('Erro ao validar certificado', error, {
148
+ context: 'LoadCertificate',
149
+ method: 'loadCertificateWithNodeForge',
150
+ });
151
+ reject(new Error(error.message));
152
+ }
153
+ });
154
+ }
155
+ async loadCertificate() {
156
+ logger.info('Validando certificado', {
157
+ context: 'LoadCertificate',
158
+ });
159
+ if (this.config.lib?.useOpenSSL || this.config.lib?.useOpenSSL === undefined) {
160
+ const { agent } = await this.loadCertificateWithPEM();
161
+ return {
162
+ certificate: this.certificate,
163
+ cert_key: this.cert_key,
164
+ agent
165
+ };
166
+ }
167
+ const { agent } = await this.loadCertificateWithNodeForge();
168
+ return {
169
+ certificate: this.certificate,
170
+ cert_key: this.cert_key,
171
+ agent
172
+ };
173
+ }
174
+ }
175
+ export { LoadCertificate };
176
+ //# sourceMappingURL=LoadCertificate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadCertificate.js","sourceRoot":"","sources":["../../../src/environment/LoadCertificate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7D,sDAAsD;AACtD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;AAErD,MAAM,eAAe;IAIjB,YAAY,MAAsB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;IAEO,sBAAsB;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EA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AC;IAED,KAAK,CAAC,eAAe;QACjB,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE;YACjC,OAAO,EAAE,iBAAiB;SAC7B,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YAC3E,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAEtD,OAAO;gBACH,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,KAAK;aACR,CAAC;QACN,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,4BAA4B,EAAE,CAAC;QAE5D,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK;SACR,CAAC;IACN,CAAC;CACJ;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { NFeWizardProps } from '@nfewizard/types/shared';
2
+ declare class ValidateEnvironment {
3
+ checkRequiredSettings(config: NFeWizardProps): {
4
+ missingConfigurations: any;
5
+ message: string;
6
+ success: boolean;
7
+ };
8
+ }
9
+ export { ValidateEnvironment };
@@ -0,0 +1,77 @@
1
+ import { logger } from '../exceptions/logger.js';
2
+ class ValidateEnvironment {
3
+ checkRequiredSettings(config) {
4
+ logger.info('Verificando parâmetros de inicialização', {
5
+ context: 'ValidateEnvironment',
6
+ config: {
7
+ pathCertificado: config.dfe.pathCertificado,
8
+ senhaCertificado: config.dfe.senhaCertificado,
9
+ ambiente: config.nfe.ambiente
10
+ }
11
+ });
12
+ try {
13
+ const requiredConfigFields = {
14
+ dfe: ['pathCertificado', 'senhaCertificado'],
15
+ nfe: ['ambiente']
16
+ };
17
+ let missingConfigurations = {
18
+ dfe: [],
19
+ nfe: []
20
+ };
21
+ let errors = [];
22
+ let tableData = [];
23
+ Object.keys(requiredConfigFields).forEach((categoryKey) => {
24
+ const category = config[categoryKey];
25
+ // Verifica se a chave principal existe
26
+ if (!category) {
27
+ errors.push(`Chave principal faltando: '${categoryKey}'.`);
28
+ tableData.push({ Categoria: categoryKey, Faltando: `Chave principal faltando` });
29
+ }
30
+ else {
31
+ const fields = requiredConfigFields[categoryKey];
32
+ if (fields) {
33
+ fields.forEach((fieldKey) => {
34
+ // Garante que missingConfigurations[categoryKey] é um array
35
+ if (!missingConfigurations[categoryKey]) {
36
+ missingConfigurations[categoryKey] = [];
37
+ }
38
+ // Verifica se o campo está presente
39
+ if (category[fieldKey] === undefined) {
40
+ // Garante que a propriedade está definida
41
+ if (!missingConfigurations[categoryKey]) {
42
+ missingConfigurations[categoryKey] = [];
43
+ }
44
+ missingConfigurations[categoryKey].push(fieldKey);
45
+ }
46
+ });
47
+ // Garante que missingConfigurations[categoryKey] é um array
48
+ const missingConfig = missingConfigurations[categoryKey];
49
+ if (missingConfig && missingConfig.length > 0) {
50
+ errors.push(`Configurações faltando em '${categoryKey}': [${missingConfig.join(', ')}].`);
51
+ tableData.push({ Categoria: categoryKey, Faltando: missingConfig.join(', ') });
52
+ }
53
+ }
54
+ }
55
+ });
56
+ if (errors.length > 0) {
57
+ console.log("Configurações necessárias faltando:");
58
+ console.table(tableData);
59
+ throw new Error(`Erro ao validar configurações: ${errors.join(' ')}`);
60
+ }
61
+ return {
62
+ missingConfigurations,
63
+ message: 'Todas as configurações necessárias estão presentes.',
64
+ success: true,
65
+ };
66
+ }
67
+ catch (error) {
68
+ logger.error('Erro ao inicializar ambiente', error, {
69
+ context: 'ValidateEnvironment',
70
+ method: 'checkRequiredSettings',
71
+ });
72
+ throw new Error(`Erro ao inicializar ambiente: ${error.message}`);
73
+ }
74
+ }
75
+ }
76
+ export { ValidateEnvironment };
77
+ //# sourceMappingURL=ValidateEnvironment.js.map
@@ -0,0 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C,CAAC;YAC1E,CAAC;YAED,OAAO;gBACH,qBAAqB;gBACrB,OAAO,EAAE,qDAAqD;gBAC9D,OAAO,EAAE,IAAI;aAChB,CAAC;QACN,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,EAAE;gBAChD,OAAO,EAAE,qBAAqB;gBAC9B,MAAM,EAAE,uBAAuB;aAClC,CAAC,CAAC;YACH,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACtE,CAAC;IACL,CAAC;CACJ;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * NFeWizard - Environment
3
+ * @module @nfewizard/shared/environment
4
+ * @license GPL-3.0-or-later
5
+ */
6
+ export { AxiosHttpClient } from './AxiosHttpClient.js';
7
+ export { Environment } from './Environment.js';
8
+ export { HttpClientBuilder } from './HttpClientBuilder.js';
9
+ export { LoadCertificate } from './LoadCertificate.js';
10
+ export { ValidateEnvironment } from './ValidateEnvironment.js';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * NFeWizard - Environment
3
+ * @module @nfewizard/shared/environment
4
+ * @license GPL-3.0-or-later
5
+ */
6
+ export { AxiosHttpClient } from './AxiosHttpClient.js';
7
+ export { Environment } from './Environment.js';
8
+ export { HttpClientBuilder } from './HttpClientBuilder.js';
9
+ export { LoadCertificate } from './LoadCertificate.js';
10
+ export { ValidateEnvironment } from './ValidateEnvironment.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/environment/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,39 @@
1
+ export interface ErrorContext {
2
+ context: string;
3
+ method?: string;
4
+ webServiceUrl?: string;
5
+ xmlConsultaSize?: number;
6
+ responseStatus?: number;
7
+ responseData?: string;
8
+ httpStatus?: number;
9
+ httpStatusText?: string;
10
+ timeout?: number;
11
+ [key: string]: any;
12
+ }
13
+ export declare class NFeError extends Error {
14
+ readonly context: ErrorContext;
15
+ readonly originalError: Error;
16
+ readonly timestamp: Date;
17
+ constructor(message: string, originalError: Error, context: ErrorContext);
18
+ /**
19
+ * Método estático para criar erro a partir de exception do axios
20
+ */
21
+ static fromAxiosError(error: any, context: ErrorContext): NFeError;
22
+ /**
23
+ * Método estático para criar erro de conversão XML
24
+ */
25
+ static fromXmlError(error: Error, xmlData: string, method: string): NFeError;
26
+ /**
27
+ * Método estático para criar erro de rejeição SEFAZ
28
+ */
29
+ static fromSefazRejection(motivo: string, responseData: any, method: string): NFeError;
30
+ /**
31
+ * Log do erro com todas as informações contextuais
32
+ */
33
+ logError(): void;
34
+ /**
35
+ * Determina se deve ser logado como warning (ex: rejeições SEFAZ esperadas)
36
+ */
37
+ private shouldLogAsWarning;
38
+ private static detectXmlType;
39
+ }