@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,516 @@
1
+ /**
2
+ * @description :
3
+ * @author :
4
+ * @group :
5
+ * @created : 21/03/2025 - 21:50:20
6
+ *
7
+ * MODIFICATION LOG
8
+ * - Version : 1.0.0
9
+ * - Date : 21/03/2025
10
+ * - Author :
11
+ * - Modification :
12
+ **/
13
+ /*
14
+ * This file is part of NFeWizard-io.
15
+ *
16
+ * NFeWizard-io is free software: you can redistribute it and/or modify
17
+ * it under the terms of the GNU General Public License as published by
18
+ * the Free Software Foundation, either version 3 of the License, or
19
+ * (at your option) any later version.
20
+ *
21
+ * NFeWizard-io is distributed in the hope that it will be useful,
22
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
+ * GNU General Public License for more details.
25
+ *
26
+ * You should have received a copy of the GNU General Public License
27
+ * along with NFeWizard-io. If not, see <https://www.gnu.org/licenses/>.
28
+ */
29
+ import fs from 'fs';
30
+ import xsdValidator from 'xsd-schema-validator';
31
+ import NFeServicosUrl from '../config/NFeServicosUrl.json';
32
+ import CTeServicosUrl from '../config/CTeServicosUrl.json';
33
+ import soapMethod from '../config/soapMethod.json';
34
+ import { getSchema } from '../adapters/SchemaLoader.js';
35
+ import { XmlParser } from './XmlParser.js';
36
+ import xml2js from 'xml2js';
37
+ import libxmljs from 'libxmljs2';
38
+ import xsdAssembler from 'xsd-assembler';
39
+ import { logger } from '../exceptions/logger.js';
40
+ class Utility {
41
+ constructor(environment) {
42
+ /**
43
+ * Função recursiva para encontrar a chave em qualquer nivel do objeto
44
+ */
45
+ this.findInObj = (obj, chave) => {
46
+ if (obj.hasOwnProperty(chave)) {
47
+ return obj[chave];
48
+ }
49
+ for (let prop in obj) {
50
+ if (typeof obj[prop] === 'object') {
51
+ const result = this.findInObj(obj[prop], chave); // Passar a chave aqui
52
+ if (result) {
53
+ return result;
54
+ }
55
+ }
56
+ }
57
+ return '';
58
+ };
59
+ /**
60
+ * Função recursiva para encontrar todas as ocorrências de uma chave em qualquer nivel do objeto
61
+ */
62
+ this.findAllInObj = (obj, chave) => {
63
+ const results = [];
64
+ if (obj.hasOwnProperty(chave)) {
65
+ results.push(obj[chave]);
66
+ }
67
+ for (let prop in obj) {
68
+ if (typeof obj[prop] === 'object' && obj[prop] !== null) {
69
+ const nestedResults = this.findAllInObj(obj[prop], chave);
70
+ results.push(...nestedResults);
71
+ }
72
+ }
73
+ return results;
74
+ };
75
+ this.environment = environment;
76
+ this.xmlParser = new XmlParser();
77
+ }
78
+ /**
79
+ * Método utilitário para criar diretórios
80
+ */
81
+ createDir(path) {
82
+ if (!fs.existsSync(path)) {
83
+ fs.mkdirSync(path, { recursive: true });
84
+ }
85
+ }
86
+ /**
87
+ * Método utilitário para escrever arquivo
88
+ */
89
+ createFile(path, fileName, file, extension) {
90
+ if (extension.toLowerCase() === 'json') {
91
+ fs.writeFileSync(`${path}/${fileName}.${extension}`, JSON.stringify(file));
92
+ }
93
+ else {
94
+ fs.writeFileSync(`${path}/${fileName}.${extension}`, file);
95
+ }
96
+ }
97
+ /**
98
+ * Método responsável por gravar o XML como json
99
+ */
100
+ salvaJSON(props) {
101
+ const { fileName, metodo, path, data } = props;
102
+ let pathJson = path;
103
+ if (!pathJson || pathJson.trim() === '') {
104
+ pathJson = `../tmp/${metodo}/`;
105
+ }
106
+ logger.info('Gravando JSON', {
107
+ context: 'XmlBuilder',
108
+ file: `${pathJson}/${fileName}.json`,
109
+ });
110
+ // Utiliza a função recursiva para encontrar a chave chNFe
111
+ // const chNFe = this.findInObj(json, 'chNFe');
112
+ this.createDir(pathJson);
113
+ this.createFile(pathJson, fileName, data, 'json');
114
+ }
115
+ /**
116
+ * Método responsável por gravar os XML recebidos em disco
117
+ */
118
+ salvaXMLFromJson(config, xmlInJson, fileName = "", metodo = "") {
119
+ let pathXml = config.dfe.pathXMLRetorno;
120
+ if (!pathXml || pathXml.trim() === '') {
121
+ pathXml = `../tmp/${metodo}/`;
122
+ }
123
+ logger.info('Gravando XML do JSON', {
124
+ context: 'XmlBuilder',
125
+ file: `${pathXml}/${fileName}.json`,
126
+ });
127
+ const { xml } = xmlInJson;
128
+ // Utiliza a função recursiva para encontrar a chave chNFe
129
+ const chNFe = this.findInObj(xmlInJson, 'chNFe');
130
+ this.createDir(pathXml);
131
+ this.createFile(pathXml, fileName || chNFe, xml, 'xml');
132
+ }
133
+ salvaXML(props) {
134
+ // const stack = new Error().stack?.split('\n');
135
+ // const callerLine = stack?.[2] || ''; // linha que chamou `salvaXML`
136
+ // const callerMatch = callerLine.match(/at (\S+)/);
137
+ // const callerName = callerMatch ? callerMatch[1] : 'desconhecido';
138
+ // logger.info('Gravando XML', {
139
+ // context: 'XmlBuilder',
140
+ // chamadoPor: callerName
141
+ // });
142
+ const { fileName, metodo, path, data } = props;
143
+ let pathXml = path;
144
+ if (!pathXml || pathXml.trim() === '') {
145
+ pathXml = `../tmp/${metodo}/`;
146
+ }
147
+ logger.info('Gravando XML', {
148
+ context: 'XmlBuilder',
149
+ file: `${pathXml}/${fileName}.json`,
150
+ });
151
+ this.createDir(pathXml);
152
+ this.createFile(pathXml, fileName, data, 'xml');
153
+ }
154
+ /**
155
+ * Recupera url para action e metoodo do SOAP
156
+ */
157
+ getSoapInfo1(uf, metodo) {
158
+ const methodConfig = soapMethod;
159
+ const methodInfo = methodConfig[metodo];
160
+ if (!methodInfo) {
161
+ throw new Error("Método não encontrado no arquivo de configuração SOAP.");
162
+ }
163
+ return {
164
+ method: methodInfo.method,
165
+ action: methodInfo.action,
166
+ };
167
+ }
168
+ getSoapInfo(uf, method) {
169
+ // Detecta se é CTe ou NFe pelo nome do método
170
+ const isCTe = method.startsWith('CTe');
171
+ const servicos = isCTe ? CTeServicosUrl : NFeServicosUrl;
172
+ let chaveMethod = '';
173
+ let chaveSoap = '';
174
+ if (isCTe) {
175
+ // Para CTe, as URLs são diretas (não há variação por UF como em NFe)
176
+ const soapMethodConfig = soapMethod[method];
177
+ if (!soapMethodConfig) {
178
+ throw new Error("Método CTe não encontrado no arquivo de configuração SOAP.");
179
+ }
180
+ logger.info(`Buscando URL's do webservice CTe`, {
181
+ context: 'GerarConsulta',
182
+ chaveSoap,
183
+ chaveMethod,
184
+ CTeServicosUrl: 'src/core/config/CTeServicosUrl.json'
185
+ });
186
+ return {
187
+ method: soapMethodConfig.method,
188
+ action: soapMethodConfig.action,
189
+ };
190
+ }
191
+ // Lógica existente para NFe
192
+ switch (uf) {
193
+ case 'SP':
194
+ chaveSoap = 'SOAP_V4_SP';
195
+ break;
196
+ case 'BA':
197
+ chaveSoap = 'SOAP_V4_BA';
198
+ break;
199
+ default:
200
+ chaveSoap = 'SOAP_V4';
201
+ break;
202
+ }
203
+ switch (uf) {
204
+ case 'SP':
205
+ chaveMethod = 'WSDL_V4_SP';
206
+ break;
207
+ default:
208
+ chaveMethod = 'WSDL_V4';
209
+ break;
210
+ }
211
+ const methodServices = servicos[chaveMethod];
212
+ const methodUrl = this.getLatestURLConsulta(methodServices, method);
213
+ const soapServices = servicos[chaveSoap];
214
+ const soapUrl = this.getLatestURLConsulta(soapServices, method);
215
+ const soapInfo = {
216
+ method: methodUrl,
217
+ action: soapUrl,
218
+ };
219
+ logger.info(`Buscando URL's do webservice`, {
220
+ context: 'GerarConsulta',
221
+ chaveSoap,
222
+ chaveMethod,
223
+ NFeServicosUrl: 'src/core/config/NFeServicosUrl.json'
224
+ });
225
+ if (!methodUrl || !soapUrl) {
226
+ throw new Error("Método não encontrado no arquivo de configuração SOAP.");
227
+ }
228
+ return {
229
+ method: methodUrl,
230
+ action: soapUrl,
231
+ };
232
+ }
233
+ /**
234
+ * Marco, adicionei este metodo para concatenar todas url incluido as na Usar, mas no fim nao precisei usar por enquanto
235
+ * @param chave
236
+ * @returns
237
+ */
238
+ getLatestURLConsultaFix(chave) {
239
+ const urls = NFeServicosUrl;
240
+ const temp_urls = { ...urls[chave] };
241
+ if ('Usar' in temp_urls) {
242
+ const referencedChave = temp_urls['Usar'];
243
+ const referencedUrls = urls[referencedChave] || {};
244
+ Object.keys(referencedUrls).forEach((key) => {
245
+ if (!(key in temp_urls)) {
246
+ temp_urls[key] = referencedUrls[key];
247
+ }
248
+ });
249
+ delete temp_urls['Usar'];
250
+ }
251
+ return temp_urls;
252
+ }
253
+ getLatestURLConsulta(data, metodo) {
254
+ // Obtem todas as chaves do objeto
255
+ const keys = Object.keys(data);
256
+ // Monta o prefixo dinâmico com base no método fornecido
257
+ const prefix = `${metodo}_`;
258
+ // Filtra as chaves que começam com o prefixo dinâmico e extrai as versões
259
+ const versions = keys
260
+ .map(key => {
261
+ const match = key.match(new RegExp(`^${prefix}(\\d+\\.\\d+)$`));
262
+ return match ? parseFloat(match[1]) : null; // Extrai a versão como número
263
+ })
264
+ .filter(version => version !== null) // Remove versões que não existem
265
+ .sort((a, b) => b - a); // Ordena em ordem decrescente
266
+ // Busca a primeira URL que corresponder à versão mais alta
267
+ for (let version of versions) {
268
+ const key = `${prefix}${version.toFixed(2)}`; // Formata a chave
269
+ if (data[key]) {
270
+ return data[key]; // Retorna a URL encontrada
271
+ }
272
+ }
273
+ // Caso não encontre nenhuma versão numerada, retorna a URL sem versão
274
+ return data[metodo] || null;
275
+ }
276
+ ;
277
+ /**
278
+ * Define o ambiente (UF e Produção ou Homologação) para geração das chaves de recuperação da URL do webservice
279
+ */
280
+ setAmbiente(metodo, ambienteNacional = false, versao, mod) {
281
+ const config = this.environment.getConfig();
282
+ const ambiente = config.nfe.ambiente === 2 ? 'H' : 'P';
283
+ const versaoDF = versao !== "" ? versao : config.nfe.versaoDF;
284
+ if (ambienteNacional) {
285
+ const chaveMae = `${mod}_AN_${ambiente}`;
286
+ const chaveFilha = `${metodo}_${versaoDF}`;
287
+ return { chaveMae, chaveFilha };
288
+ }
289
+ const chaveMae = `${mod}_${config.dfe.UF}_${ambiente}`;
290
+ const chaveFilha = `${metodo}_${versaoDF}`;
291
+ return { chaveMae, chaveFilha };
292
+ }
293
+ /**
294
+ * Retorna a url correta do webservice
295
+ */
296
+ getWebServiceUrl(metodo, ambienteNacional = false, versao = "", mod = "NFe") {
297
+ // Detecta se é CTe
298
+ const isCTe = metodo.startsWith('CTe');
299
+ if (isCTe) {
300
+ const cteUrls = CTeServicosUrl;
301
+ const ambiente = this.environment.config.nfe.ambiente === 1 ? 'P' : 'H';
302
+ const chave = `CTe_AN_${ambiente}`; // AN = Ambiente Nacional
303
+ const metodoComVersao = `${metodo}_${versao}`;
304
+ const url = cteUrls[chave] && cteUrls[chave][metodoComVersao];
305
+ if (!url) {
306
+ throw new Error(`Não foi possível recuperar a url para o webservice CTe: ${metodoComVersao} no ambiente ${ambiente}`);
307
+ }
308
+ return url;
309
+ }
310
+ // Lógica existente para NFe
311
+ let { chaveMae, chaveFilha } = this.setAmbiente(metodo, ambienteNacional, versao, mod);
312
+ const urls = NFeServicosUrl;
313
+ if ('Usar' in urls[chaveMae])
314
+ chaveMae = urls[chaveMae].Usar;
315
+ const url = urls[chaveMae] && urls[chaveMae][chaveFilha];
316
+ if (!url) {
317
+ throw new Error(`Não foi possível recuperar a url para o webservice: ${chaveFilha}`);
318
+ }
319
+ return url;
320
+ }
321
+ getUrlNFCe(metodo, ambienteNacional = false, versao = "") {
322
+ let { chaveMae } = this.setAmbiente(metodo, ambienteNacional, versao, 'NFCe');
323
+ const urls = NFeServicosUrl;
324
+ // removendo este codigo funciona
325
+ // if ('Usar' in urls[chaveMae]){
326
+ // chaveMae = urls[chaveMae].Usar
327
+ // }
328
+ // const tempUrls = this.getLatestURLConsultaFix(chaveMae);
329
+ // const urlnew =tempUrls[metodo];
330
+ // const chaveFilha = this.getLatestURLConsulta(urls[chaveMae], metodo);
331
+ const url = urls[chaveMae] && this.getLatestURLConsulta(urls[chaveMae], metodo);
332
+ if (!url) {
333
+ throw new Error(`Não foi possível recuperar a url para consulta de NFCe: ${chaveMae}`);
334
+ }
335
+ return url;
336
+ }
337
+ /**
338
+ * Função para validar XML com Schema
339
+ */
340
+ formatErrorMessage(message) {
341
+ // Esta função extrai e formata a mensagem de erro
342
+ const regex = /\[error\]\s(.+?)\:\s(.+?)\s\((\d+):(\d+)\)/;
343
+ const match = message.match(regex);
344
+ if (match) {
345
+ const [_, errorCode, errorDescription, line, column] = match;
346
+ return `Erro na Validação do XML: ${errorCode} na linha ${line}, coluna ${column}. Descrição: ${errorDescription}`;
347
+ }
348
+ else {
349
+ return `Erro Não Identificado na Validação do XML: ${message}`; // Retorna a mensagem original se ela não corresponder ao formato esperado
350
+ }
351
+ }
352
+ validateSchemaJsBased(xml, metodo) {
353
+ return new Promise(async (resolve, reject) => {
354
+ try {
355
+ const { basePath, schemaPath } = getSchema(metodo);
356
+ const completeXSD = await xsdAssembler.assemble(schemaPath);
357
+ const xmlDoc = libxmljs.parseXml(xml);
358
+ const xsdDoc = libxmljs.parseXml(completeXSD, { baseUrl: `${basePath}/` });
359
+ const isValid = xmlDoc.validate(xsdDoc);
360
+ if (isValid) {
361
+ resolve({
362
+ success: true,
363
+ message: 'XML válido.',
364
+ });
365
+ }
366
+ else {
367
+ reject({
368
+ success: false,
369
+ message: this.formatErrorMessage(xmlDoc.validationErrors[0].message),
370
+ });
371
+ }
372
+ }
373
+ catch (error) {
374
+ reject({
375
+ success: false,
376
+ message: this.formatErrorMessage(error.message),
377
+ });
378
+ }
379
+ });
380
+ }
381
+ validateSchemaJavaBased(xml, metodo) {
382
+ return new Promise(async (resolve, reject) => {
383
+ try {
384
+ const { schemaPath } = getSchema(metodo);
385
+ xsdValidator.validateXML(xml, schemaPath, (err, validationResult) => {
386
+ if (err) {
387
+ reject({
388
+ success: false,
389
+ message: this.formatErrorMessage(err.message),
390
+ });
391
+ }
392
+ else if (!validationResult.valid) {
393
+ reject({
394
+ success: false,
395
+ message: this.formatErrorMessage(validationResult.messages[0]),
396
+ });
397
+ }
398
+ else {
399
+ resolve({
400
+ success: true,
401
+ message: 'XML válido.',
402
+ });
403
+ }
404
+ });
405
+ }
406
+ catch (error) {
407
+ reject({
408
+ success: false,
409
+ message: this.formatErrorMessage(error.message),
410
+ });
411
+ }
412
+ });
413
+ }
414
+ verificaRejeicao(data, metodo, name) {
415
+ logger.info(`Verificando retorno [${metodo}]`, {
416
+ context: 'Utility',
417
+ });
418
+ const responseInJson = this.xmlParser.convertXmlToJson(data, metodo);
419
+ // Salva XML de retorno
420
+ this.salvaRetorno(data, responseInJson, metodo, name);
421
+ // Busca todos os xMotivo no objeto
422
+ const allXMotivos = this.findAllInObj(responseInJson, 'xMotivo');
423
+ // Verifica se algum xMotivo contém "Rejeição" ou "Rejeicao"
424
+ for (const xMotivo of allXMotivos) {
425
+ if (xMotivo && (xMotivo.includes('Rejeição') || xMotivo.includes('Rejeicao'))) {
426
+ throw new Error(xMotivo);
427
+ }
428
+ }
429
+ // Verifica infProt (mantendo verificação original como fallback)
430
+ const infProt = this.findInObj(responseInJson, 'infProt');
431
+ if (infProt && (infProt?.xMotivo?.includes('Rejeição') || infProt?.xMotivo?.includes('Rejeicao'))) {
432
+ throw new Error(infProt?.xMotivo);
433
+ }
434
+ return responseInJson;
435
+ }
436
+ getProtNFe(xmlRetorno) {
437
+ let nRec = '';
438
+ let protNFe;
439
+ xml2js.parseString(xmlRetorno, (err, result) => {
440
+ if (err) {
441
+ console.error('Erro ao parsear o XML para captura do nRec e protNFe:', err);
442
+ }
443
+ else {
444
+ const nRecTag = this.findInObj(result, 'nRec');
445
+ nRec = nRecTag[0];
446
+ const protNFeTag = this.findInObj(result, 'protNFe');
447
+ protNFe = protNFeTag;
448
+ }
449
+ });
450
+ return {
451
+ protNFe,
452
+ nRec
453
+ };
454
+ }
455
+ getRequestLogFileName(metodo, tipo) {
456
+ switch (metodo) {
457
+ case 'NFEStatusServico':
458
+ return `NFeStatusServico-${tipo}`;
459
+ case 'NFEConsultaProtocolo':
460
+ return `NFeConsultaProtocolo-${tipo}`;
461
+ case 'NFeDistribuicaoDFe':
462
+ return `NFeDistribuicaoDFe-${tipo}`;
463
+ case 'RecepcaoEvento':
464
+ return `RecepcaoEvento-${tipo}`;
465
+ case 'NFECancelamento':
466
+ return `NFECancelamento-${tipo}`;
467
+ case 'NFEInutilizacao':
468
+ return `NFEInutilizacao-${tipo}`;
469
+ case 'NFEAutorizacao':
470
+ return `NFEAutorizacao-${tipo}`;
471
+ case 'NFCEAutorizacao':
472
+ return `NFCEAutorizacao-${tipo}`;
473
+ case 'NFERetAutorizacao':
474
+ return `NFERetAutorizacao-${tipo}`;
475
+ case 'CTeDistribuicaoDFe':
476
+ return `CTeDistribuicaoDFe-${tipo}`;
477
+ default:
478
+ throw new Error('Erro: Requisição de nome para método não implementado.');
479
+ }
480
+ }
481
+ salvaConsulta(xmlConsulta, xmlFormated, metodo, name) {
482
+ const fileName = name || this.getRequestLogFileName(metodo, 'consulta');
483
+ const { armazenarXMLConsulta, pathXMLConsulta, armazenarXMLConsultaComTagSoap } = this.environment.config.dfe;
484
+ const xmlConsultaASalvar = armazenarXMLConsultaComTagSoap ? xmlFormated : xmlConsulta;
485
+ if (armazenarXMLConsulta) {
486
+ this.salvaXML({
487
+ data: xmlConsultaASalvar,
488
+ fileName,
489
+ metodo,
490
+ path: pathXMLConsulta,
491
+ });
492
+ }
493
+ }
494
+ salvaRetorno(xmlRetorno, responseInJson, metodo, name) {
495
+ const fileName = name || this.getRequestLogFileName(metodo, 'retorno');
496
+ const { armazenarXMLRetorno, pathXMLRetorno, armazenarRetornoEmJSON } = this.environment.config.dfe;
497
+ if (armazenarXMLRetorno && xmlRetorno) {
498
+ this.salvaXML({
499
+ data: xmlRetorno,
500
+ fileName,
501
+ metodo,
502
+ path: pathXMLRetorno,
503
+ });
504
+ if (armazenarRetornoEmJSON && responseInJson) {
505
+ this.salvaJSON({
506
+ data: responseInJson,
507
+ fileName,
508
+ metodo,
509
+ path: pathXMLRetorno,
510
+ });
511
+ }
512
+ }
513
+ }
514
+ }
515
+ export { Utility };
516
+ //# sourceMappingURL=Utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utility.js","sourceRoot":"","sources":["../../../src/utils/Utility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD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
@@ -0,0 +1,11 @@
1
+ declare class ValidaCPFCNPJ {
2
+ constructor();
3
+ validarCpfCnpj(cpfCnpj: string): {
4
+ documentoValido: boolean;
5
+ tipoDoDocumento: 'CPF' | 'CNPJ' | 'Desconhecido';
6
+ };
7
+ private documentoValidoateCpf;
8
+ private documentoValidoateCnpj;
9
+ mascaraCnpjCpf(cpfcnpj: string): string;
10
+ }
11
+ export { ValidaCPFCNPJ };
@@ -0,0 +1,125 @@
1
+ /*
2
+ * This file is part of NFeWizard-io.
3
+ *
4
+ * NFeWizard-io 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
+ * NFeWizard-io 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 NFeWizard-io. If not, see <https://www.gnu.org/licenses/>.
16
+ */
17
+ class ValidaCPFCNPJ {
18
+ constructor() { }
19
+ validarCpfCnpj(cpfCnpj) {
20
+ if (!cpfCnpj || typeof cpfCnpj !== 'string') {
21
+ return { documentoValido: false, tipoDoDocumento: 'Desconhecido' };
22
+ }
23
+ // Remove apenas máscaras e espaços, mantem letras (para CNPJ-alfa)
24
+ const clean = cpfCnpj.replace(/[.\-\/\s]/g, '').toUpperCase();
25
+ const isCpf = /^\d{11}$/.test(clean);
26
+ // 12 primeiras posições alfanuméricas, 2 últimas obrigatoriamente numéricas
27
+ const isCnpj = /^[A-Z0-9]{12}[0-9]{2}$/.test(clean);
28
+ if (!isCpf && !isCnpj) {
29
+ return { documentoValido: false, tipoDoDocumento: 'Desconhecido' };
30
+ }
31
+ if (isCpf) {
32
+ if (clean === "00000000000") {
33
+ return { documentoValido: false, tipoDoDocumento: 'CPF' };
34
+ }
35
+ if (!this.documentoValidoateCpf(clean)) {
36
+ return { documentoValido: false, tipoDoDocumento: 'CPF' };
37
+ }
38
+ return { documentoValido: true, tipoDoDocumento: 'CPF' };
39
+ }
40
+ else {
41
+ // CNPJ (numérico ou alfa conforme regex)
42
+ if (!this.documentoValidoateCnpj(clean)) {
43
+ return { documentoValido: false, tipoDoDocumento: 'CNPJ' };
44
+ }
45
+ return { documentoValido: true, tipoDoDocumento: 'CNPJ' };
46
+ }
47
+ }
48
+ documentoValidoateCpf(cpf) {
49
+ let sum = 0;
50
+ let remainder;
51
+ for (let i = 1; i <= 9; i++) {
52
+ sum += parseInt(cpf.substring(i - 1, i), 10) * (11 - i);
53
+ }
54
+ remainder = (sum * 10) % 11;
55
+ if ((remainder === 10) || (remainder === 11))
56
+ remainder = 0;
57
+ if (remainder !== parseInt(cpf.substring(9, 10), 10))
58
+ return false;
59
+ sum = 0;
60
+ for (let i = 1; i <= 10; i++) {
61
+ sum += parseInt(cpf.substring(i - 1, i), 10) * (12 - i);
62
+ }
63
+ remainder = (sum * 10) % 11;
64
+ if ((remainder === 10) || (remainder === 11))
65
+ remainder = 0;
66
+ if (remainder !== parseInt(cpf.substring(10, 11), 10))
67
+ return false;
68
+ return true;
69
+ }
70
+ documentoValidoateCnpj(cnpj) {
71
+ // aceita 14 chars: 12 (alfanum) + 2 (num)
72
+ if (!/^[A-Z0-9]{12}[0-9]{2}$/.test(cnpj))
73
+ return false;
74
+ // rejeita CNPJ zerado (caso numérico)
75
+ if (cnpj === "00000000000000")
76
+ return false;
77
+ // converte cada caractere -> charCode - 48 (conforme NT)
78
+ const vals = [];
79
+ for (let i = 0; i < 14; i++) {
80
+ const ch = cnpj.charAt(i);
81
+ if (!/[0-9A-Z]/.test(ch))
82
+ return false; // redundante mas seguro
83
+ vals.push(cnpj.charCodeAt(i) - 48);
84
+ }
85
+ // pesos do CNPJ
86
+ const pesos1 = [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]; // para primeiro DV (12 posições)
87
+ const pesos2 = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]; // para segundo DV (13 posições)
88
+ // calcula DV1 a partir das 12 primeiras posições
89
+ let soma1 = 0;
90
+ for (let i = 0; i < 12; i++)
91
+ soma1 += vals[i] * pesos1[i];
92
+ const resto1 = soma1 % 11;
93
+ const dv1 = resto1 < 2 ? 0 : 11 - resto1;
94
+ // verifica com o primeiro DV informado (posição 12)
95
+ if (dv1 !== vals[12])
96
+ return false;
97
+ // calcula DV2 usando as 12 primeiras posições + dv1 calculado (não confiar no dígito informado)
98
+ const valsParaDV2 = vals.slice(0, 12).concat([dv1]);
99
+ let soma2 = 0;
100
+ for (let i = 0; i < 13; i++)
101
+ soma2 += valsParaDV2[i] * pesos2[i];
102
+ const resto2 = soma2 % 11;
103
+ const dv2 = resto2 < 2 ? 0 : 11 - resto2;
104
+ // compara com o segundo DV informado (posição 13)
105
+ if (dv2 !== vals[13])
106
+ return false;
107
+ return true;
108
+ }
109
+ mascaraCnpjCpf(cpfcnpj) {
110
+ if (!cpfcnpj || typeof cpfcnpj !== 'string')
111
+ return cpfcnpj;
112
+ let clean = cpfcnpj.replace(/[.\-\/\s]/g, '').toUpperCase();
113
+ if (clean.length === 11 && /^\d{11}$/.test(clean)) { // CPF
114
+ return clean.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, '$1.$2.$3-$4');
115
+ }
116
+ else if (clean.length === 14) { // CNPJ alfa ou numérico
117
+ return clean.replace(/(.{2})(.{3})(.{3})(.{4})(.{2})/, '$1.$2.$3/$4-$5');
118
+ }
119
+ else {
120
+ return cpfcnpj;
121
+ }
122
+ }
123
+ }
124
+ export { ValidaCPFCNPJ };
125
+ //# sourceMappingURL=ValidaCPFCNPJ.js.map