@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.
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/SchemaLoader.d.ts +4 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/SchemaLoader.js +44 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/SchemaLoader.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/XmlBuilder.d.ts +31 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/XmlBuilder.js +119 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/XmlBuilder.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/index.d.ts +7 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/index.js +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/adapters/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/BaseNFe.d.ts +35 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/BaseNFe.js +95 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/BaseNFe.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/GerarConsulta.d.ts +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/GerarConsulta.js +61 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/GerarConsulta.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/SaveFiles.d.ts +12 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/SaveFiles.js +59 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/SaveFiles.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/index.d.ts +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/index.js +9 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/base/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/CTeServicosUrl.json +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/NFeServicosUrl.json +1383 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/cStatError.json +678 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/config/soapMethod.json +46 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/AxiosHttpClient.d.ts +6 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/AxiosHttpClient.js +12 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/AxiosHttpClient.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/Environment.d.ts +21 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/Environment.js +81 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/Environment.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/HttpClientBuilder.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/HttpClientBuilder.js +29 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/HttpClientBuilder.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/LoadCertificate.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/LoadCertificate.js +176 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/LoadCertificate.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/ValidateEnvironment.d.ts +9 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/ValidateEnvironment.js +77 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/ValidateEnvironment.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/index.d.ts +10 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/index.js +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/environment/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/ErrorContext.d.ts +39 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/ErrorContext.js +98 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/ErrorContext.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/JsonArrayTransporter.d.ts +21 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/JsonArrayTransporter.js +84 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/JsonArrayTransporter.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/index.d.ts +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/index.js +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/logger.d.ts +22 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/logger.js +139 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/exceptions/logger.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/index.d.ts +10 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/index.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.d.ts +4 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js +44 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/SchemaLoader.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/XmlBuilder.d.ts +31 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/XmlBuilder.js +119 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/XmlBuilder.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.d.ts +7 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/adapters/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFe.d.ts +35 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFe.js +95 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/BaseNFe.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.d.ts +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js +61 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/GerarConsulta.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.d.ts +12 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js +59 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/SaveFiles.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.d.ts +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js +9 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/base/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/CTeServicosUrl.json +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/NFeServicosUrl.json +1383 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/cStatError.json +678 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/config/soapMethod.json +46 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.d.ts +6 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js +12 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/AxiosHttpClient.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/Environment.d.ts +21 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/Environment.js +81 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/Environment.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js +29 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/HttpClientBuilder.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js +176 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/LoadCertificate.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.d.ts +9 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js +77 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/ValidateEnvironment.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.d.ts +10 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/environment/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.d.ts +39 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js +98 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/ErrorContext.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.d.ts +21 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js +84 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/JsonArrayTransporter.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.d.ts +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.d.ts +22 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js +139 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/exceptions/logger.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.d.ts +10 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js +16 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/NFEImposto.d.ts +4 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/NFEImposto.js +212 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/NFEImposto.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.d.ts +91 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js +516 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/Utility.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/ValidaCPFCNPJ.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/ValidaCPFCNPJ.js +125 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/ValidaCPFCNPJ.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/XmlParser.d.ts +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/XmlParser.js +174 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/XmlParser.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getCodIBGE.d.ts +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getCodIBGE.js +50 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getCodIBGE.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getDesTipoPag.d.ts +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getDesTipoPag.js +42 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/getDesTipoPag.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js +12 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/src/utils/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/tsconfig.tsbuildinfo +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/NFEImposto.d.ts +4 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/NFEImposto.js +212 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/NFEImposto.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/Utility.d.ts +91 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/Utility.js +516 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/Utility.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/ValidaCPFCNPJ.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/ValidaCPFCNPJ.js +125 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/ValidaCPFCNPJ.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/XmlParser.d.ts +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/XmlParser.js +174 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/XmlParser.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getCodIBGE.d.ts +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getCodIBGE.js +50 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getCodIBGE.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getDesTipoPag.d.ts +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getDesTipoPag.js +42 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/getDesTipoPag.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/index.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/index.js +12 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/dist/utils/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/shared/tsconfig.tsbuildinfo +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/cte/CTEDistribuicaoDFe.d.ts +47 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/cte/CTEDistribuicaoDFe.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/cte/CTEDistribuicaoDFe.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/EmailConfig.d.ts +65 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/EmailConfig.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/EmailConfig.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEAutorizacao.d.ts +5866 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEAutorizacao.js +30 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEAutorizacao.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEDistribuicaoDFe.d.ts +70 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEDistribuicaoDFe.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEDistribuicaoDFe.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEInutilizacao.d.ts +10 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEInutilizacao.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFEInutilizacao.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFERecepcaoEvento.d.ts +575 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFERecepcaoEvento.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFERecepcaoEvento.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFeWizard.d.ts +174 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFeWizard.js +2 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/NFeWizard.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/index.d.ts +8 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/index.js +25 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/nfe/index.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/LoadCertificate.d.ts +11 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/LoadCertificate.js +2 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/LoadCertificate.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/NFEDanfeGenerator.d.ts +32 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/NFEDanfeGenerator.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/NFEDanfeGenerator.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/Utils.d.ts +29 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/Utils.js +18 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/Utils.js.map +1 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/index.d.ts +49 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/index.js +20 -0
- package/.rollup.cache/home/marco/Documents/projetos/NFeWizard/nfewizard-io/packages/types/src/shared/index.js.map +1 -0
- package/LICENSE.txt +221 -0
- package/README.md +23 -0
- package/dist/index.cjs +3672 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +3631 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/adapters/SchemaLoader.d.ts +4 -0
- package/dist/src/adapters/XmlBuilder.d.ts +31 -0
- package/dist/src/adapters/index.d.ts +7 -0
- package/dist/src/base/BaseNFe.d.ts +35 -0
- package/dist/src/base/GerarConsulta.d.ts +18 -0
- package/dist/src/base/SaveFiles.d.ts +12 -0
- package/dist/src/base/index.d.ts +8 -0
- package/dist/src/environment/AxiosHttpClient.d.ts +6 -0
- package/dist/src/environment/Environment.d.ts +21 -0
- package/dist/src/environment/HttpClientBuilder.d.ts +11 -0
- package/dist/src/environment/LoadCertificate.d.ts +11 -0
- package/dist/src/environment/ValidateEnvironment.d.ts +9 -0
- package/dist/src/environment/index.d.ts +10 -0
- package/dist/src/exceptions/ErrorContext.d.ts +39 -0
- package/dist/src/exceptions/JsonArrayTransporter.d.ts +21 -0
- package/dist/src/exceptions/index.d.ts +8 -0
- package/dist/src/exceptions/logger.d.ts +22 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/utils/NFEImposto.d.ts +4 -0
- package/dist/src/utils/Utility.d.ts +91 -0
- package/dist/src/utils/ValidaCPFCNPJ.d.ts +11 -0
- package/dist/src/utils/XmlParser.d.ts +18 -0
- package/dist/src/utils/getCodIBGE.d.ts +1 -0
- package/dist/src/utils/getDesTipoPag.d.ts +1 -0
- package/dist/src/utils/index.d.ts +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +68 -0
- package/resources/certs/AC CertiSign.crt +22 -0
- package/resources/certs/AC-A-DIGIFORTE-RFB.crt +39 -0
- package/resources/certs/AC-ACD-v5.crt +40 -0
- package/resources/certs/AC-CERTISIGN-ICP-BRASIL-CODE.crt +45 -0
- package/resources/certs/AC-CERTISIGN-ICP-BRASIL-SSL-G2.crt +47 -0
- package/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G3.crt +49 -0
- package/resources/certs/AC-Certisign-ICP-Brasil-SSL-EV-G4.crt +49 -0
- package/resources/certs/AC-DIGITAL-MAIS.crt +36 -0
- package/resources/certs/AC-INFOCO-DIGITAL-v5.crt +40 -0
- package/resources/certs/AC-PRIME-v5.crt +40 -0
- package/resources/certs/AC-PRODESP-RFB-v1.crt +41 -0
- package/resources/certs/AC-PRODESP-SP-SSL.crt +47 -0
- package/resources/certs/AC-PRODESP-SP.crt +36 -0
- package/resources/certs/AC-QUALITYCERT-v5.crt +40 -0
- package/resources/certs/AC-REDEBRASIL-v5.crt +40 -0
- package/resources/certs/AC-REDEBRASILv5.crt +40 -0
- package/resources/certs/AC-SERASA-SSL-EV-V2.crt +45 -0
- package/resources/certs/AC-SERASA-SSL-EV-V3.crt +45 -0
- package/resources/certs/AC-SERASA-SSL-EV-V4.crt +45 -0
- package/resources/certs/AC-SERPRO-SSLv1-v10.crt +40 -0
- package/resources/certs/AC-SOLUTI-CS-EV.crt +43 -0
- package/resources/certs/AC-SOLUTI-SSL-EV-G2.crt +43 -0
- package/resources/certs/AC-SOLUTI-SSL-EV-G3.crt +44 -0
- package/resources/certs/AC-SOLUTI-SSL-EV-G4.crt +44 -0
- package/resources/certs/AC-SOLUTI-SSL-EV.crt +41 -0
- package/resources/certs/AC-SOLUTI-v5-G2.crt +36 -0
- package/resources/certs/AC-SyngularID.crt +36 -0
- package/resources/certs/AC-VALID-CODE-SIGNING.crt +43 -0
- package/resources/certs/AC-VALID-SSL-EV.crt +44 -0
- package/resources/certs/ACIMESP1n.crt +26 -0
- package/resources/certs/ACIMPRENSAOFICIALRFBSSL.crt +41 -0
- package/resources/certs/ACImprensaOficial_18072011.crt +0 -0
- package/resources/certs/ACSyngularIDMultipla0.crt +42 -0
- package/resources/certs/AC_A_R_A_CERTIFICACAO_DIGITAL_v5.crt +41 -0
- package/resources/certs/AC_BR_RFB_G2.crt +27 -0
- package/resources/certs/AC_BR_RFB_G3.crt +39 -0
- package/resources/certs/AC_BR_RFB_G4.crt +39 -0
- package/resources/certs/AC_BoaVista.crt +36 -0
- package/resources/certs/AC_BoaVista_Certificadora.crt +44 -0
- package/resources/certs/AC_Boa_Vista_RFB.crt +39 -0
- package/resources/certs/AC_CACB_CD.crt +40 -0
- package/resources/certs/AC_CACB_RFB.crt +41 -0
- package/resources/certs/AC_CACB_RFB_G2.crt +41 -0
- package/resources/certs/AC_CAIXA_PF_1v2.crt +37 -0
- package/resources/certs/AC_CAIXA_PJ-SSL_v2.crt +38 -0
- package/resources/certs/AC_CAIXA_PJ_1v2.crt +37 -0
- package/resources/certs/AC_CAIXA_v2.crt +36 -0
- package/resources/certs/AC_CCN_COMPANHIA_CERTIFICADORA_NACIONAL_v5.crt +41 -0
- package/resources/certs/AC_CERTBANK_v5.crt +41 -0
- package/resources/certs/AC_CERTDATA_BRASIL.crt +41 -0
- package/resources/certs/AC_CERTIFICA_ANAPOLIS_v5_G2.crt +41 -0
- package/resources/certs/AC_CERTIFICA_MINAS_v5.crt +40 -0
- package/resources/certs/AC_CERTIPE_CD.crt +40 -0
- package/resources/certs/AC_CERTISIGN-JUS_CODESIGNING_G6.crt +39 -0
- package/resources/certs/AC_CERTISIGN-JUS_G5.crt +38 -0
- package/resources/certs/AC_CERTISIGN-JUS_SSL_G6.crt +38 -0
- package/resources/certs/AC_CERTMAIS_CD.crt +40 -0
- package/resources/certs/AC_CNDL_RFB.crt +39 -0
- package/resources/certs/AC_CNDL_RFB_v2.crt +39 -0
- package/resources/certs/AC_CNDL_RFB_v3.crt +39 -0
- package/resources/certs/AC_CONSULTI_BRASIL_RFB.crt +39 -0
- package/resources/certs/AC_CONSULTI_RFB.crt +39 -0
- package/resources/certs/AC_Caixa.crt +23 -0
- package/resources/certs/AC_Caixa_JUS_v1.crt +29 -0
- package/resources/certs/AC_Caixa_JUS_v2.crt +39 -0
- package/resources/certs/AC_Caixa_PF-1_v1.crt +30 -0
- package/resources/certs/AC_Caixa_PF_v1.crt +32 -0
- package/resources/certs/AC_Caixa_PF_v2.crt +41 -0
- package/resources/certs/AC_Caixa_PJ-1_v1.crt +30 -0
- package/resources/certs/AC_Caixa_PJ_v1.crt +32 -0
- package/resources/certs/AC_Caixa_PJ_v2.crt +45 -0
- package/resources/certs/AC_Caixa_SPB.crt +39 -0
- package/resources/certs/AC_Caixa_v1.crt +25 -0
- package/resources/certs/AC_CertiSign_JUS.crt +0 -0
- package/resources/certs/AC_CertiSign_V3.crt +25 -0
- package/resources/certs/AC_Certifica_Anapolis_v5.crt +43 -0
- package/resources/certs/AC_Certisign_G3.crt +25 -0
- package/resources/certs/AC_Certisign_G6.crt +36 -0
- package/resources/certs/AC_Certisign_G7.crt +36 -0
- package/resources/certs/AC_Certisign_G8.crt +36 -0
- package/resources/certs/AC_Certisign_JUS_G2.crt +38 -0
- package/resources/certs/AC_Certisign_JUS_G3.crt +39 -0
- package/resources/certs/AC_Certisign_JUS_G6.crt +38 -0
- package/resources/certs/AC_Certisign_Multipla_CodeSigning.crt +41 -0
- package/resources/certs/AC_Certisign_Multipla_G3.crt +38 -0
- package/resources/certs/AC_Certisign_Multipla_G5.crt +49 -0
- package/resources/certs/AC_Certisign_Multipla_G6.crt +49 -0
- package/resources/certs/AC_Certisign_Multipla_G7.crt +50 -0
- package/resources/certs/AC_Certisign_Multipla_SSL.crt +41 -0
- package/resources/certs/AC_Certisign_OM-BR.crt +21 -0
- package/resources/certs/AC_Certisign_RFB_G3.crt +29 -0
- package/resources/certs/AC_Certisign_RFB_G4.crt +41 -0
- package/resources/certs/AC_Certisign_RFB_G5.crt +41 -0
- package/resources/certs/AC_Certisign_SPB_G3.crt +27 -0
- package/resources/certs/AC_Certisign_SPB_G5.crt +38 -0
- package/resources/certs/AC_Certisign_SPB_G6.crt +39 -0
- package/resources/certs/AC_Certisign_Tempo_G1.crt +39 -0
- package/resources/certs/AC_Certisign_Tempo_G2.crt +41 -0
- package/resources/certs/AC_DIGISEC_v5.crt +40 -0
- package/resources/certs/AC_DIGITALSIGN_ACP_G2.crt +36 -0
- package/resources/certs/AC_DIGITALSIGN_G2.crt +50 -0
- package/resources/certs/AC_DIGITALSIGN_RFB_G2.crt +42 -0
- package/resources/certs/AC_DIGITALSIGN_RFB_G3.crt +41 -0
- package/resources/certs/AC_DIGITALSIGN_SSL.crt +41 -0
- package/resources/certs/AC_DIGITAL_MULTIPLA_G1.crt +40 -0
- package/resources/certs/AC_DIGITAL_v5.crt +40 -0
- package/resources/certs/AC_DOCCLOUD.crt +36 -0
- package/resources/certs/AC_DOCCLOUD_RFB.crt +39 -0
- package/resources/certs/AC_DOCCLOUD_RFB_v2.crt +39 -0
- package/resources/certs/AC_Defesa_v5.crt +49 -0
- package/resources/certs/AC_Digital.crt +46 -0
- package/resources/certs/AC_Digitalsign.crt +50 -0
- package/resources/certs/AC_Digitalsign_ACP.crt +36 -0
- package/resources/certs/AC_Digitalsign_RFB.crt +41 -0
- package/resources/certs/AC_EGBA_MULTIPLA.crt +45 -0
- package/resources/certs/AC_EGBA_Multipla_G2.crt +47 -0
- package/resources/certs/AC_EGBA_RFB.crt +41 -0
- package/resources/certs/AC_FCDL_SC_v5.crt +40 -0
- package/resources/certs/AC_FCDL_SC_v5_G2.crt +41 -0
- package/resources/certs/AC_FENACOR_RFB.crt +42 -0
- package/resources/certs/AC_Fenacon_Certisign_RFB_G2.crt +27 -0
- package/resources/certs/AC_Fenacon_Certisign_RFB_G3.crt +39 -0
- package/resources/certs/AC_IMESP_RFB_G2.crt +29 -0
- package/resources/certs/AC_IMESP_RFB_G3_retirar_repositorio.crt +41 -0
- package/resources/certs/AC_INTERCERT_v5.crt +40 -0
- package/resources/certs/AC_Imprensa_Oficial.crt +36 -0
- package/resources/certs/AC_Imprensa_Oficial_G2.crt +38 -0
- package/resources/certs/AC_Imprensa_Oficial_G3.crt +57 -0
- package/resources/certs/AC_Imprensa_Oficial_G4.crt +51 -0
- package/resources/certs/AC_Imprensa_Oficial_SP.crt +0 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_G2.crt +24 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_G3.crt +36 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_G4.crt +36 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G3.crt +41 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G4.crt +41 -0
- package/resources/certs/AC_Imprensa_Oficial_SP_RFB_G5.crt +41 -0
- package/resources/certs/AC_Imprensa_Oficial_SSL.crt +42 -0
- package/resources/certs/AC_Instituto_Fenacom_RFB.crt +30 -0
- package/resources/certs/AC_Instituto_Fenacon.crt +38 -0
- package/resources/certs/AC_Instituto_Fenacon_G2.crt +49 -0
- package/resources/certs/AC_Instituto_Fenacon_G3.crt +50 -0
- package/resources/certs/AC_Instituto_Fenacon_G4.crt +51 -0
- package/resources/certs/AC_Instituto_Fenacon_RFB_G2.crt +41 -0
- package/resources/certs/AC_Instituto_Fenacon_RFB_G3.crt +41 -0
- package/resources/certs/AC_JUS_v6.crt +37 -0
- package/resources/certs/AC_LINK_CD.crt +40 -0
- package/resources/certs/AC_LINK_RFB.crt +39 -0
- package/resources/certs/AC_LINK_RFB_v2.crt +39 -0
- package/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5.crt +41 -0
- package/resources/certs/AC_MAXIMUS_TECNOLOGIA_E_EVENTOS_v5_G2.crt +41 -0
- package/resources/certs/AC_META_CERTIFICADO_DIGITAL_CD.crt +40 -0
- package/resources/certs/AC_Notarial_RFB_G2.crt +27 -0
- package/resources/certs/AC_Notarial_RFB_G3.crt +39 -0
- package/resources/certs/AC_Notarial_RFB_G4.crt +39 -0
- package/resources/certs/AC_OAB_G3.crt +39 -0
- package/resources/certs/AC_ONLINEBRASIL_v5.crt +41 -0
- package/resources/certs/AC_ONLINE_RFB_v5.crt +40 -0
- package/resources/certs/AC_Oab.crt +27 -0
- package/resources/certs/AC_Oab_G2.crt +38 -0
- package/resources/certs/AC_Online_Brasil.crt +43 -0
- package/resources/certs/AC_Online_RFB.crt +39 -0
- package/resources/certs/AC_PETROBRAS_G4.crt +44 -0
- package/resources/certs/AC_PLANO_DIGITAL_CD.crt +40 -0
- package/resources/certs/AC_PREMIUM_CERTIFICADORA_DIGITAL_CD.crt +40 -0
- package/resources/certs/AC_PRODEMGE_G4.crt +44 -0
- package/resources/certs/AC_PRODESP_v1.crt +49 -0
- package/resources/certs/AC_Petrobras_G2.crt +30 -0
- package/resources/certs/AC_Petrobras_G3.crt +41 -0
- package/resources/certs/AC_Prodemge_G2.crt +32 -0
- package/resources/certs/AC_Prodemge_G3.crt +43 -0
- package/resources/certs/AC_Prodemge_RFB.crt +41 -0
- package/resources/certs/AC_Prodemge_RFB_G2.crt +29 -0
- package/resources/certs/AC_Prodemge_RFB_G3.crt +41 -0
- package/resources/certs/AC_Prodemge_RFB_G4.crt +41 -0
- package/resources/certs/AC_Prodest_RFB.crt +27 -0
- package/resources/certs/AC_Prodest_RFB_v2.crt +39 -0
- package/resources/certs/AC_REDE_BRASIL_v5_G2.crt +41 -0
- package/resources/certs/AC_REDE_IDEIA_CD.crt +40 -0
- package/resources/certs/AC_REDE_IDEIA_RFB.crt +39 -0
- package/resources/certs/AC_SAFEIDBRASIL.crt +41 -0
- package/resources/certs/AC_SAFETECH_CD.crt +40 -0
- package/resources/certs/AC_SAFEWEB_CD.crt +40 -0
- package/resources/certs/AC_SAFEWEB_RFB_v5.crt +39 -0
- package/resources/certs/AC_SAFEWEB_TIMESTAMPING.crt +40 -0
- package/resources/certs/AC_SEGURA_ID_v5.crt +41 -0
- package/resources/certs/AC_SEMPRE_CD.crt +40 -0
- package/resources/certs/AC_SEMPRE_RFB_v2.crt +39 -0
- package/resources/certs/AC_SENHA_DIGITAL_BRASIL.crt +41 -0
- package/resources/certs/AC_SERPRO_JUS_v5.crt +37 -0
- package/resources/certs/AC_SIC_BRASIL.crt +41 -0
- package/resources/certs/AC_SIC_RFB.crt +40 -0
- package/resources/certs/AC_SIG_BRASIL.crt +41 -0
- package/resources/certs/AC_SINCOR_G4.crt +46 -0
- package/resources/certs/AC_SINCOR_RIO_RFB_G2.crt +41 -0
- package/resources/certs/AC_SOLUTI-JUS_CODESIGNING_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI-JUS_SSL_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI-JUS_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI_Multipla_CODESIGNING.crt +43 -0
- package/resources/certs/AC_SOLUTI_Multipla_SSL.crt +43 -0
- package/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING.crt +42 -0
- package/resources/certs/AC_SOLUTI_Multipla_TIMESTAMPING_v5.crt +39 -0
- package/resources/certs/AC_SOLUTI_Multipla_v5.crt +40 -0
- package/resources/certs/AC_SOLUTI_Multipla_v5_G2.crt +41 -0
- package/resources/certs/AC_SOLUTI_RFB_V5.crt +41 -0
- package/resources/certs/AC_Safeweb_RFB.crt +39 -0
- package/resources/certs/AC_Safeweb_v12.crt +36 -0
- package/resources/certs/AC_Safeweb_v5.crt +36 -0
- package/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v3.crt +37 -0
- package/resources/certs/AC_Secretaria_da_Receita_Federal_do_Brasil_v4.crt +37 -0
- package/resources/certs/AC_Serasa_ACP.crt +0 -0
- package/resources/certs/AC_Serasa_Autoridade_Certificadora_Principal.crt +0 -0
- package/resources/certs/AC_Serasa_JUS.crt +0 -0
- package/resources/certs/AC_Serasa_JUS_v1.crt +37 -0
- package/resources/certs/AC_Serasa_JUS_v2.crt +42 -0
- package/resources/certs/AC_Serasa_JUS_v5.crt +38 -0
- package/resources/certs/AC_Serasa_RFB.crt +31 -0
- package/resources/certs/AC_Serasa_RFB_v2.crt +42 -0
- package/resources/certs/AC_Serasa_RFB_v5.crt +42 -0
- package/resources/certs/AC_Serpro_JUS_v3.crt +29 -0
- package/resources/certs/AC_Serpro_JUS_v4.crt +39 -0
- package/resources/certs/AC_Serpro_JUS_v5_erro_retirado_repositorio.crt +37 -0
- package/resources/certs/AC_Serpro_RFB.crt +28 -0
- package/resources/certs/AC_Serpro_RFB_v3.crt +40 -0
- package/resources/certs/AC_Serpro_RFB_v4.crt +40 -0
- package/resources/certs/AC_Sincor_G2.crt +34 -0
- package/resources/certs/AC_Sincor_G3.crt +44 -0
- package/resources/certs/AC_Sincor_RFB_G2.crt +29 -0
- package/resources/certs/AC_Sincor_RFB_G4.crt +41 -0
- package/resources/certs/AC_Sincor_RFB_G5.crt +41 -0
- package/resources/certs/AC_Sincor_Rio_RFB_G1.crt +41 -0
- package/resources/certs/AC_Solucao_Digital_Multipla.crt +42 -0
- package/resources/certs/AC_Soluti.crt +36 -0
- package/resources/certs/AC_Soluti_JUS_v1.crt +46 -0
- package/resources/certs/AC_Soluti_Multipla_v1.crt +46 -0
- package/resources/certs/AC_Soluti_OM-BR.crt +21 -0
- package/resources/certs/AC_Soluti_RFB.crt +41 -0
- package/resources/certs/AC_Soluti_v5.crt +36 -0
- package/resources/certs/AC_SyngularID_Multipla.crt +42 -0
- package/resources/certs/AC_VALID-JUS_CODESIGNING_v5.crt +39 -0
- package/resources/certs/AC_VALID-JUS_SSL_v5.crt +38 -0
- package/resources/certs/AC_VALID-JUS_v5.crt +38 -0
- package/resources/certs/AC_VALID_BRASIL_CODESIGNING.crt +42 -0
- package/resources/certs/AC_VALID_BRASIL_SSL.crt +41 -0
- package/resources/certs/AC_VALID_BRASIL_v5.crt +41 -0
- package/resources/certs/AC_VALID_PLUS_CODESIGNING.crt +42 -0
- package/resources/certs/AC_VALID_PLUS_SSL.crt +41 -0
- package/resources/certs/AC_VALID_PLUS_TIMESTAMPING.crt +42 -0
- package/resources/certs/AC_VALID_PLUS_v5.crt +49 -0
- package/resources/certs/AC_VALID_RFB_v5.crt +39 -0
- package/resources/certs/AC_VALID_SPB_v5.crt +38 -0
- package/resources/certs/AC_VALID_V12.crt +36 -0
- package/resources/certs/AC_VALID_v5.crt +36 -0
- package/resources/certs/AC_Valid_Brasil.crt +43 -0
- package/resources/certs/AC_Valid_JUS_v4.crt +41 -0
- package/resources/certs/AC_Valid_PLUS.crt +55 -0
- package/resources/certs/AC_Valid_RFB.crt +39 -0
- package/resources/certs/AC_Valid_SPB.crt +40 -0
- package/resources/certs/AC_Validar_Multipla.crt +42 -0
- package/resources/certs/AUTORIDADE_CERTIFICADORA_PROCERTI.crt +39 -0
- package/resources/certs/Autoridade Certificadora da Presidencia da Republica v1.crt +0 -0
- package/resources/certs/Autoridade Certificadora da Presidencia da Republica v2.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_ALTERNATIVE.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_BRASIL_CERTEC.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_DIGITAL_CERTY.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_IDFEDERAL.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_INFOCOMEX.crt +39 -0
- package/resources/certs/Autoridade_Certificadora_INVIA.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_NACIONAL.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_PRIMECERT.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_SDI.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_SEFAZCE.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_SERPRORFBv5.crt +40 -0
- package/resources/certs/Autoridade_Certificadora_Serpro_v2.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_Serpro_v3.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_Serpro_v4.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil.crt +29 -0
- package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v2.crt +37 -0
- package/resources/certs/Autoridade_Certificadora_da_Casa_da_Moeda_do_Brasil_v3.crt +41 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica_v3.crt +26 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica_v4.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_da_Justica_v5.crt +36 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_2005.crt +0 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v1.crt +0 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v2.crt +25 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v3.crt +37 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v4.crt +40 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v5.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_da_Presidencia_da_Republica_v6.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal.crt +23 -0
- package/resources/certs/Autoridade_Certificadora_da_Secretaria_da_Receita_Federal_v1.crt +23 -0
- package/resources/certs/Autoridade_Certificadora_do_Proderj.crt +26 -0
- package/resources/certs/Autoridade_Certificadora_do_Proderj_v2.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_do_SERPRO_RFB_SSL.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro.crt +0 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_SSL.crt +38 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v1.crt +32 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v2.crt +30 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v3.crt +48 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v4.crt +48 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_Final_v5.crt +40 -0
- package/resources/certs/Autoridade_Certificadora_do_Serpro_v1.crt +0 -0
- package/resources/certs/Autoridade__Certificadora_do_Serpro_v1.crt +0 -0
- package/resources/certs/Certificado_AC_Raiz.crt +28 -0
- package/resources/certs/DigiCert_Global_Root_G2.crt +22 -0
- package/resources/certs/GeoTrust_TLS_RSA_CA_G1.crt +27 -0
- package/resources/certs/GlobalSign.crt +21 -0
- package/resources/certs/ICP-Brasil.crt +27 -0
- package/resources/certs/ICP-Brasilv10.crt +38 -0
- package/resources/certs/ICP-Brasilv11.crt +38 -0
- package/resources/certs/ICP-Brasilv12.crt +38 -0
- package/resources/certs/ICP-Brasilv2.crt +38 -0
- package/resources/certs/ICP-Brasilv5.crt +38 -0
- package/resources/certs/ICP-Brasilv6.crt +19 -0
- package/resources/certs/ICP-Brasilv7.crt +20 -0
- package/resources/certs/ISRG Root X1.crt +31 -0
- package/resources/certs/Instituto_Nacional_de_Metrologia_Qualidade_e_Tecnologia_INMETRO.crt +18 -0
- package/resources/certs/Secretaria_da_Receita_Federal_do_Brasil.crt +24 -0
- package/resources/certs/Sectigo Public Server Authentication Root R46.crt +32 -0
- package/resources/certs/Serasa_AC_v5.crt +41 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal.crt +27 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v1.crt +26 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v2.crt +37 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_Principal_v5.crt +37 -0
- package/resources/certs/Serasa_Autoridade_Certificadora_v2.crt +43 -0
- package/resources/certs/Serasa_CD_SSL_v5.crt +47 -0
- package/resources/certs/Serasa_CD_v5.crt +56 -0
- package/resources/certs/Serasa_Certificadora_Digital_v2.crt +62 -0
- package/resources/certs/USERTrust_RSA_Certification_Authority.crt +34 -0
- package/resources/certs/ac_certfacil_v5.crt +40 -0
- package/resources/certs/ac_certifica_anapolis_v5.crt +40 -0
- package/resources/certs/ac_mult_v5.crt +40 -0
- package/resources/certs/ac_soluti_spb_v5.crt +37 -0
- package/resources/certs/fazenda.mg.gov.br.crt +38 -0
- package/resources/schemas/110150_v1.00.xsd +88 -0
- package/resources/schemas/Averb_v1.00.xsd +11 -0
- package/resources/schemas/CCe_v1.00.xsd +11 -0
- package/resources/schemas/DFeTiposBasicos_v1.00.xsd +1097 -0
- package/resources/schemas/EPEC_v1.00.xsd +9 -0
- package/resources/schemas/EPP1.xml +13 -0
- package/resources/schemas/ERP1.xml +19 -0
- package/resources/schemas/EventoCancEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/EventoEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/SuframaInternaliza_v1.00.xsd +9 -0
- package/resources/schemas/SuframaVistoria_v1.00.xsd +9 -0
- package/resources/schemas/confRecebto_v1.00.xsd +9 -0
- package/resources/schemas/consCad_v2.00.xsd +9 -0
- package/resources/schemas/consGTIN_v1.00.xsd +10 -0
- package/resources/schemas/consReciNFe_v4.00.xsd +9 -0
- package/resources/schemas/consSitNFe_v2.01.xsd +10 -0
- package/resources/schemas/consSitNFe_v4.00.xsd +9 -0
- package/resources/schemas/consStatServ_v4.00.xsd +9 -0
- package/resources/schemas/cte/distDFeInt_v1.00.xsd +71 -0
- package/resources/schemas/cte/retDistDFeInt_v1.00.xsd +89 -0
- package/resources/schemas/cte/tiposDistDFe_v1.00.xsd +243 -0
- package/resources/schemas/cte/xmldsig-core-schema_v1.01.xsd +98 -0
- package/resources/schemas/distDFeInt_v1.01.xsd +94 -0
- package/resources/schemas/e110001_v1.00.xsd +73 -0
- package/resources/schemas/e110110_v1.00.xsd +58 -0
- package/resources/schemas/e110111_v1.00.xsd +42 -0
- package/resources/schemas/e110112_v1.00.xsd +69 -0
- package/resources/schemas/e110130_v1.00.xsd +102 -0
- package/resources/schemas/e110131_v1.00.xsd +51 -0
- package/resources/schemas/e110140_v1.00.xsd +124 -0
- package/resources/schemas/e111500_v1.00.xsd +69 -0
- package/resources/schemas/e111501_v1.00.xsd +69 -0
- package/resources/schemas/e111502_v1.00.xsd +50 -0
- package/resources/schemas/e111503_v1.00.xsd +50 -0
- package/resources/schemas/e112110_v1.00.xsd +69 -0
- package/resources/schemas/e112120_v1.00 .xsd +107 -0
- package/resources/schemas/e112130_v1.00.xsd +119 -0
- package/resources/schemas/e112140_v1.00.xsd +107 -0
- package/resources/schemas/e210200_v1.00.xsd +32 -0
- package/resources/schemas/e210210_v1.00.xsd +32 -0
- package/resources/schemas/e210220_v1.00.xsd +45 -0
- package/resources/schemas/e210240_v1.00.xsd +44 -0
- package/resources/schemas/e211110_v1.00.xsd +134 -0
- package/resources/schemas/e211120_v1.00.xsd +124 -0
- package/resources/schemas/e211124_v1.00.xsd +107 -0
- package/resources/schemas/e211128_v1.00.xsd +69 -0
- package/resources/schemas/e211130_v1.00.xsd +107 -0
- package/resources/schemas/e211140_v1.00.xsd +107 -0
- package/resources/schemas/e211150_v1.00.xsd +85 -0
- package/resources/schemas/e212110_v1.00.xsd +70 -0
- package/resources/schemas/e212120_v1.00.xsd +69 -0
- package/resources/schemas/e411500_v1.00.xsd +134 -0
- package/resources/schemas/e411501_v1.00.xsd +134 -0
- package/resources/schemas/e411502_v1.00.xsd +95 -0
- package/resources/schemas/e411503_v1.00.xsd +95 -0
- package/resources/schemas/e412120_v1.00.xsd +88 -0
- package/resources/schemas/e412130_v1.00.xsd +88 -0
- package/resources/schemas/e790700_v1.00.xsd +148 -0
- package/resources/schemas/e990900_v1.00.xsd +87 -0
- package/resources/schemas/e990910_v1.00.xsd +81 -0
- package/resources/schemas/envAverb_v1.00.xsd +9 -0
- package/resources/schemas/envCCe_v1.00.xsd +10 -0
- package/resources/schemas/envConfRecebto_v1.00.xsd +9 -0
- package/resources/schemas/envEPEC_v1.00.xsd +9 -0
- package/resources/schemas/envEventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/envEventoCancEntregaNFe_v1.00.xsd +10 -0
- package/resources/schemas/envEventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/envEventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/envEventoEntregaNFe_v1.00.xsd +10 -0
- package/resources/schemas/envEvento_v1.00.xsd +9 -0
- package/resources/schemas/envRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/envSuframaInternaliza_v1.00.xsd +10 -0
- package/resources/schemas/envSuframaVistoria_v1.00.xsd +10 -0
- package/resources/schemas/enviNFe_v4.00.xsd +9 -0
- package/resources/schemas/eventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/eventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/eventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/eventoEPEC_v0.01.xsd +267 -0
- package/resources/schemas/eventoRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/inutNFe_v4.00.xsd +9 -0
- package/resources/schemas/leiauteAverb_v1.00.xsd +468 -0
- package/resources/schemas/leiauteCCe_v1.00.xsd +418 -0
- package/resources/schemas/leiauteCcgConsGTIN_v1.00.xsd +94 -0
- package/resources/schemas/leiauteConfRecebto_v1.00.xsd +406 -0
- package/resources/schemas/leiauteConsSitNFe_v2.01.xsd +548 -0
- package/resources/schemas/leiauteConsSitNFe_v4.00.xsd +502 -0
- package/resources/schemas/leiauteConsStatServ_v4.00.xsd +98 -0
- package/resources/schemas/leiauteConsultaCadastro_v2.00.xsd +404 -0
- package/resources/schemas/leiauteEPEC_v1.00.xsd +459 -0
- package/resources/schemas/leiauteEPEC_v1.00.xsd.bak +465 -0
- package/resources/schemas/leiauteEventoAtorInteressado_v1.00.xsd +384 -0
- package/resources/schemas/leiauteEventoCancEntregaNFe_v1.00.xsd +307 -0
- package/resources/schemas/leiauteEventoCancNFe_v1.00.xsd +394 -0
- package/resources/schemas/leiauteEventoCancSubst_v1.00.xsd +366 -0
- package/resources/schemas/leiauteEventoEntregaNFe_v1.00.xsd +321 -0
- package/resources/schemas/leiauteEvento_v1.00.xsd +373 -0
- package/resources/schemas/leiauteInutNFe_v4.00.xsd +193 -0
- package/resources/schemas/leiauteNFe_v4.00.xsd +7558 -0
- package/resources/schemas/leiauteRemIndus_v1.00.xsd +382 -0
- package/resources/schemas/leiauteSuframaInternaliza_v1.00.xsd +642 -0
- package/resources/schemas/leiauteSuframaVistoria_v1.00.xsd +648 -0
- package/resources/schemas/nfe_v4.00.xsd +10 -0
- package/resources/schemas/procAverbNFe_v1.00.xsd +10 -0
- package/resources/schemas/procCCeNFe_v1.00.xsd +10 -0
- package/resources/schemas/procConfRecebtoNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEPEC_v1.00.xsd +9 -0
- package/resources/schemas/procEventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/procEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/procEventoEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/procEventoNFe_v1.00.xsd +9 -0
- package/resources/schemas/procInutNFe_v4.00.xsd +9 -0
- package/resources/schemas/procNFe_v4.00.xsd +9 -0
- package/resources/schemas/procRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/resEvento_v1.01.xsd +1 -0
- package/resources/schemas/resNFe_v1.01.xsd +5 -0
- package/resources/schemas/retConsCad_v2.00.xsd +9 -0
- package/resources/schemas/retConsGTIN_v1.00.xsd +9 -0
- package/resources/schemas/retConsReciNFe_v4.00.xsd +9 -0
- package/resources/schemas/retConsSitNFe_v2.01.xsd +10 -0
- package/resources/schemas/retConsSitNFe_v4.00.xsd +9 -0
- package/resources/schemas/retConsStatServ_v4.00.xsd +9 -0
- package/resources/schemas/retDistDFeInt_v1.01.xsd +5 -0
- package/resources/schemas/retEnvAverb_v1.00.xsd +9 -0
- package/resources/schemas/retEnvCCe_v1.00.xsd +10 -0
- package/resources/schemas/retEnvConfRecebto_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEPEC_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEventoAtorInteressado_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEventoCancNFe_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEventoCancSubst_v1.00.xsd +9 -0
- package/resources/schemas/retEnvEvento_v1.00.xsd +9 -0
- package/resources/schemas/retEnvRemIndus_v1.00.xsd +9 -0
- package/resources/schemas/retEnvSuframaInternaliza_v1.00.xsd +9 -0
- package/resources/schemas/retEnvSuframaVistoria_v1.00.xsd +9 -0
- package/resources/schemas/retEnviNFe_v4.00.xsd +9 -0
- package/resources/schemas/retEventoCancEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/retEventoEPEC_v0.01.xsd +207 -0
- package/resources/schemas/retEventoEntregaNFe_v1.00.xsd +9 -0
- package/resources/schemas/retInutNFe_v4.00.xsd +9 -0
- package/resources/schemas/tiposBasico_v1.03.xsd +834 -0
- package/resources/schemas/tiposBasico_v3.10.xsd +833 -0
- package/resources/schemas/tiposBasico_v4.00.xsd +598 -0
- package/resources/schemas/tiposBasicosCcgConsGTIN_v1.00.xsd +84 -0
- package/resources/schemas/tiposDistDFe_v1.01.xsd +1 -0
- package/resources/schemas/xmldsig-core-schema_v1.01.xsd +98 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import path from 'path';
|
|
18
|
+
import { fileURLToPath } from 'url';
|
|
19
|
+
const baseDir = path.dirname(fileURLToPath(import.meta.url));
|
|
20
|
+
// From dist/ to package root, then to resources/schemas
|
|
21
|
+
const dir = path.join(baseDir, '../resources/schemas');
|
|
22
|
+
export const getSchema = (metodo) => {
|
|
23
|
+
const pathSchemas = path.resolve(baseDir, dir);
|
|
24
|
+
const schema = {
|
|
25
|
+
NFEStatusServico: `${pathSchemas}/consStatServ_v4.00.xsd`,
|
|
26
|
+
NFEConsultaProtocolo: `${pathSchemas}/consSitNFe_v4.00.xsd`,
|
|
27
|
+
RecepcaoEvento: `${pathSchemas}/envEvento_v1.00.xsd`,
|
|
28
|
+
NFeDistribuicaoDFe: `${pathSchemas}/distDFeInt_v1.01.xsd`,
|
|
29
|
+
NFEAutorizacao: `${pathSchemas}/enviNFe_v4.00.xsd`,
|
|
30
|
+
NFEInutilizacao: `${pathSchemas}/inutNFe_v4.00.xsd`,
|
|
31
|
+
NFERetAutorizacao: `${pathSchemas}/consReciNFe_v4.00.xsd`,
|
|
32
|
+
CTeDistribuicaoDFe: `${pathSchemas}/cte/distDFeInt_v1.00.xsd`,
|
|
33
|
+
};
|
|
34
|
+
try {
|
|
35
|
+
return {
|
|
36
|
+
basePath: pathSchemas,
|
|
37
|
+
schemaPath: schema[metodo]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
throw new Error(error.message);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=SchemaLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaLoader.js","sourceRoot":"","sources":["../../src/adapters/SchemaLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAC5D,wDAAwD;AACxD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;AAUvD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE;IAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAE/C,MAAM,MAAM,GAAgB;QAC1B,gBAAgB,EAAE,GAAG,WAAW,yBAAyB;QACzD,oBAAoB,EAAE,GAAG,WAAW,uBAAuB;QAC3D,cAAc,EAAE,GAAG,WAAW,sBAAsB;QACpD,kBAAkB,EAAE,GAAG,WAAW,uBAAuB;QACzD,cAAc,EAAE,GAAG,WAAW,oBAAoB;QAClD,eAAe,EAAE,GAAG,WAAW,oBAAoB;QACnD,iBAAiB,EAAE,GAAG,WAAW,wBAAwB;QACzD,kBAAkB,EAAE,GAAG,WAAW,2BAA2B;KAC9D,CAAA;IAED,IAAI,CAAC;QACH,OAAO;YACL,QAAQ,EAAE,WAAW;YACrB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC;SAC3B,CAAA;IACH,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Environment } from '../environment/Environment.js';
|
|
2
|
+
export interface NamespacesProps {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BodyContentProps {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface SoapEnvelopeObjProps {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
declare class XmlBuilder {
|
|
12
|
+
environment: Environment;
|
|
13
|
+
constructor(environment: Environment);
|
|
14
|
+
/**
|
|
15
|
+
* Método para assinar o XML
|
|
16
|
+
*/
|
|
17
|
+
assinarXML(xml: string, tagAssinar: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Método que converte Objeto em XML
|
|
20
|
+
*/
|
|
21
|
+
serializeXml<T>(obj: T, rootTag: string, metodo?: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Método genérico para geração do XML
|
|
24
|
+
*/
|
|
25
|
+
gerarXml<T>(xmlObject: T, rootTag: string, metodo?: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Método utilizado para cirar um envelop SOAP - Formato de mensagem para serviço SOAP (como o da SEFAZ)
|
|
28
|
+
*/
|
|
29
|
+
buildSoapEnvelope(xml: string, soapMethod: string, soapVersion?: string, rootTagObj?: any, dadosMsgTag?: string): string;
|
|
30
|
+
}
|
|
31
|
+
export { XmlBuilder };
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import xml2js from 'xml2js';
|
|
18
|
+
import { SignedXml } from 'xml-crypto';
|
|
19
|
+
import { logger } from '../exceptions/logger.js';
|
|
20
|
+
class XmlBuilder {
|
|
21
|
+
constructor(environment) {
|
|
22
|
+
this.environment = environment;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Método para assinar o XML
|
|
26
|
+
*/
|
|
27
|
+
assinarXML(xml, tagAssinar) {
|
|
28
|
+
const transforms = [
|
|
29
|
+
'http://www.w3.org/2000/09/xmldsig#enveloped-signature',
|
|
30
|
+
'http://www.w3.org/TR/2001/REC-xml-c14n-20010315'
|
|
31
|
+
];
|
|
32
|
+
const signedXmlObj = new SignedXml({
|
|
33
|
+
publicCert: this.environment.getCert(),
|
|
34
|
+
privateKey: this.environment.getCertKey(),
|
|
35
|
+
canonicalizationAlgorithm: "http://www.w3.org/TR/2001/REC-xml-c14n-20010315",
|
|
36
|
+
implicitTransforms: ['http://www.w3.org/TR/2001/REC-xml-c14n-20010315']
|
|
37
|
+
});
|
|
38
|
+
signedXmlObj.addReference({ xpath: `//*[local-name(.)='${tagAssinar}']`, digestAlgorithm: 'http://www.w3.org/2000/09/xmldsig#sha1', transforms });
|
|
39
|
+
signedXmlObj.signatureAlgorithm = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1';
|
|
40
|
+
// Assinar o XML
|
|
41
|
+
signedXmlObj.computeSignature(xml);
|
|
42
|
+
// Obter o XML assinado
|
|
43
|
+
return signedXmlObj.getSignedXml();
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Método que converte Objeto em XML
|
|
47
|
+
*/
|
|
48
|
+
serializeXml(obj, rootTag, metodo) {
|
|
49
|
+
logger.info('Gerando XML', {
|
|
50
|
+
context: 'XmlBuilder',
|
|
51
|
+
metodo,
|
|
52
|
+
rootTag,
|
|
53
|
+
});
|
|
54
|
+
let builder = new xml2js.Builder({
|
|
55
|
+
rootName: rootTag,
|
|
56
|
+
headless: true,
|
|
57
|
+
renderOpts: {
|
|
58
|
+
pretty: false
|
|
59
|
+
},
|
|
60
|
+
// cdata: true
|
|
61
|
+
});
|
|
62
|
+
return builder.buildObject(obj);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Método genérico para geração do XML
|
|
66
|
+
*/
|
|
67
|
+
gerarXml(xmlObject, rootTag, metodo) {
|
|
68
|
+
return this.serializeXml(xmlObject, rootTag, metodo);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Método utilizado para cirar um envelop SOAP - Formato de mensagem para serviço SOAP (como o da SEFAZ)
|
|
72
|
+
*/
|
|
73
|
+
buildSoapEnvelope(xml, soapMethod, soapVersion = "soap12", rootTagObj = null, dadosMsgTag = "nfeDadosMsg") {
|
|
74
|
+
const soapNamespaces = {
|
|
75
|
+
'soap12': 'http://www.w3.org/2003/05/soap-envelope', // SOAP 1.2
|
|
76
|
+
'soap': 'http://schemas.xmlsoap.org/soap/envelope/' // SOAP 1.1
|
|
77
|
+
};
|
|
78
|
+
const soapNamespace = soapNamespaces[soapVersion] || soapNamespaces['soap12'];
|
|
79
|
+
// Estrutura básica do envelope SOAP
|
|
80
|
+
let soapEnvelopeObj = {
|
|
81
|
+
'$': {
|
|
82
|
+
[`xmlns:${soapVersion}`]: soapNamespace,
|
|
83
|
+
'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
|
|
84
|
+
'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema'
|
|
85
|
+
},
|
|
86
|
+
[`${soapVersion}:Body`]: {}
|
|
87
|
+
};
|
|
88
|
+
// Condicionando a inclusão de 'rootTagObj'
|
|
89
|
+
if (rootTagObj && rootTagObj.tag) {
|
|
90
|
+
let bodyContent = {
|
|
91
|
+
[dadosMsgTag]: {
|
|
92
|
+
'$': {
|
|
93
|
+
'xmlns': soapMethod
|
|
94
|
+
},
|
|
95
|
+
_: '[XML]'
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
if (rootTagObj.namespace) {
|
|
99
|
+
bodyContent['$'] = { 'xmlns': rootTagObj.namespace };
|
|
100
|
+
}
|
|
101
|
+
soapEnvelopeObj[`${soapVersion}:Body`][rootTagObj.tag] = bodyContent;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
soapEnvelopeObj[`${soapVersion}:Body`] = {
|
|
105
|
+
[dadosMsgTag]: {
|
|
106
|
+
'$': {
|
|
107
|
+
'xmlns': soapMethod
|
|
108
|
+
},
|
|
109
|
+
_: '[XML]'
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
// Serializar o objeto do envelope SOAP para XML
|
|
114
|
+
let soapEnvXml = this.serializeXml(soapEnvelopeObj, `${soapVersion}:Envelope`);
|
|
115
|
+
return soapEnvXml.replace('[XML]', xml);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export { XmlBuilder };
|
|
119
|
+
//# sourceMappingURL=XmlBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XmlBuilder.js","sourceRoot":"","sources":["../../src/adapters/XmlBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAYjD,MAAM,UAAU;IAEZ,YAAY,WAAwB;QAChC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,GAAW,EAAE,UAAkB;QACtC,MAAM,UAAU,GAAG;YACf,uDAAuD;YACvD,iDAAiD;SACpD,CAAC;QAEF,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC;YAC/B,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;YACtC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE;YACzC,yBAAyB,EAAE,iDAAiD;YAC5E,kBAAkB,EAAE,CAAC,iDAAiD,CAAC;SAC1E,CAAC,CAAC;QAEH,YAAY,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,sBAAsB,UAAU,IAAI,EAAE,eAAe,EAAE,wCAAwC,EAAE,UAAU,EAAE,CAAC,CAAC;QAClJ,YAAY,CAAC,kBAAkB,GAAG,4CAA4C,CAAC;QAC/E,gBAAgB;QAChB,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAEnC,uBAAuB;QACvB,OAAO,YAAY,CAAC,YAAY,EAAE,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,YAAY,CAAI,GAAM,EAAE,OAAe,EAAE,MAAe;QACpD,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,OAAO,EAAE,YAAY;YACrB,MAAM;YACN,OAAO;SACV,CAAC,CAAC;QACH,IAAI,OAAO,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC;YAC7B,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACR,MAAM,EAAE,KAAK;aAChB;YACD,cAAc;SACjB,CAAC,CAAC;QACH,OAAO,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAI,SAAY,EAAE,OAAe,EAAE,MAAe;QACtD,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,GAAW,EAAE,UAAkB,EAAE,cAAsB,QAAQ,EAAE,aAAkB,IAAI,EAAE,cAAsB,aAAa;QAC1I,MAAM,cAAc,GAAoB;YACpC,QAAQ,EAAE,yCAAyC,EAAE,WAAW;YAChE,MAAM,EAAE,2CAA2C,CAAC,WAAW;SAClE,CAAC;QACF,MAAM,aAAa,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC;QAE9E,oCAAoC;QACpC,IAAI,eAAe,GAAyB;YACxC,GAAG,EAAE;gBACD,CAAC,SAAS,WAAW,EAAE,CAAC,EAAE,aAAa;gBACvC,WAAW,EAAE,2CAA2C;gBACxD,WAAW,EAAE,kCAAkC;aAClD;YACD,CAAC,GAAG,WAAW,OAAO,CAAC,EAAE,EAAE;SAC9B,CAAC;QAEF,2CAA2C;QAC3C,IAAI,UAAU,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC;YAC/B,IAAI,WAAW,GAAqB;gBAChC,CAAC,WAAW,CAAC,EAAE;oBACX,GAAG,EAAE;wBACD,OAAO,EAAE,UAAU;qBACtB;oBACD,CAAC,EAAE,OAAO;iBACb;aACJ,CAAC;YAEF,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;gBACvB,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,SAAS,EAAE,CAAC;YACzD,CAAC;YAED,eAAe,CAAC,GAAG,WAAW,OAAO,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;QACzE,CAAC;aAAM,CAAC;YACJ,eAAe,CAAC,GAAG,WAAW,OAAO,CAAC,GAAG;gBACrC,CAAC,WAAW,CAAC,EAAE;oBACX,GAAG,EAAE;wBACD,OAAO,EAAE,UAAU;qBACtB;oBACD,CAAC,EAAE,OAAO;iBACb;aACJ,CAAC;QACN,CAAC;QAED,gDAAgD;QAChD,IAAI,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,GAAG,WAAW,WAAW,CAAC,CAAC;QAC/E,OAAO,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;CAEJ;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Environment } from '../environment/Environment.js';
|
|
2
|
+
import { XmlBuilder } from '../adapters/XmlBuilder.js';
|
|
3
|
+
import { Utility } from '../utils/Utility.js';
|
|
4
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
5
|
+
import { SaveFilesImpl, GerarConsultaImpl } from '@nfewizard/types/shared';
|
|
6
|
+
import { Agent } from 'http';
|
|
7
|
+
declare abstract class BaseNFE {
|
|
8
|
+
environment: Environment;
|
|
9
|
+
utility: Utility;
|
|
10
|
+
metodo: string;
|
|
11
|
+
xmlBuilder: XmlBuilder;
|
|
12
|
+
chaveNfe: string;
|
|
13
|
+
axios: AxiosInstance;
|
|
14
|
+
saveFiles: SaveFilesImpl;
|
|
15
|
+
gerarConsulta: GerarConsultaImpl;
|
|
16
|
+
modelo?: string;
|
|
17
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, metodo: string, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
18
|
+
/**
|
|
19
|
+
* Método de geração do XML - Deve ser implementado pelas subclasses
|
|
20
|
+
*/
|
|
21
|
+
protected gerarXml(data?: any): string;
|
|
22
|
+
protected setContentType(): "text/xml; charset=utf-8" | "application/soap+xml";
|
|
23
|
+
protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise<AxiosResponse<any, any>>;
|
|
24
|
+
/**
|
|
25
|
+
* Método para obter o modelo
|
|
26
|
+
*/
|
|
27
|
+
protected getModelo(data?: any): string;
|
|
28
|
+
/**
|
|
29
|
+
* Executa a requisição ao webservice SEFAZ
|
|
30
|
+
* @param {any} [data] - Dados opcionais usados para gerar o XML em algumas subclasses.
|
|
31
|
+
* @returns {Promise<any>} A resposta do webservice em JSON.
|
|
32
|
+
*/
|
|
33
|
+
Exec(data?: any): Promise<any>;
|
|
34
|
+
}
|
|
35
|
+
export { BaseNFE };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { XmlParser } from '../utils/XmlParser.js';
|
|
2
|
+
import { logger } from '../exceptions/logger.js';
|
|
3
|
+
class BaseNFE {
|
|
4
|
+
constructor(environment, utility, xmlBuilder, metodo, axios, saveFiles, gerarConsulta) {
|
|
5
|
+
this.environment = environment;
|
|
6
|
+
this.utility = utility;
|
|
7
|
+
this.xmlBuilder = xmlBuilder;
|
|
8
|
+
this.metodo = metodo;
|
|
9
|
+
this.axios = axios;
|
|
10
|
+
this.saveFiles = saveFiles;
|
|
11
|
+
this.gerarConsulta = gerarConsulta;
|
|
12
|
+
this.chaveNfe = "";
|
|
13
|
+
this.modelo = 'NFe';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Método de geração do XML - Deve ser implementado pelas subclasses
|
|
17
|
+
*/
|
|
18
|
+
gerarXml(data) {
|
|
19
|
+
throw new Error("O método 'gerarXml' não foi implementado na subclasse.");
|
|
20
|
+
}
|
|
21
|
+
setContentType() {
|
|
22
|
+
const UF = this.environment.config.dfe.UF;
|
|
23
|
+
const ufsAppSoad = ['MG', 'GO', 'MT', 'MS', 'AM', 'DF'];
|
|
24
|
+
if (ufsAppSoad.includes(UF)) {
|
|
25
|
+
return 'application/soap+xml';
|
|
26
|
+
}
|
|
27
|
+
return 'text/xml; charset=utf-8';
|
|
28
|
+
}
|
|
29
|
+
async callWebService(xmlConsulta, webServiceUrl, ContentType, action, agent) {
|
|
30
|
+
const startTime = Date.now();
|
|
31
|
+
const headers = {
|
|
32
|
+
'Content-Type': ContentType,
|
|
33
|
+
};
|
|
34
|
+
logger.http('Iniciando comunicação com o webservice', {
|
|
35
|
+
context: `BaseNFE`,
|
|
36
|
+
method: this.metodo,
|
|
37
|
+
url: webServiceUrl,
|
|
38
|
+
action,
|
|
39
|
+
headers,
|
|
40
|
+
});
|
|
41
|
+
const response = await this.axios.post(webServiceUrl, xmlConsulta, {
|
|
42
|
+
headers,
|
|
43
|
+
httpsAgent: agent
|
|
44
|
+
});
|
|
45
|
+
const duration = Date.now() - startTime;
|
|
46
|
+
logger.http('Comunicação concluída com sucesso', {
|
|
47
|
+
context: `BaseNFE`,
|
|
48
|
+
method: this.metodo,
|
|
49
|
+
duration: `${duration}ms`,
|
|
50
|
+
responseSize: response.data ? JSON.stringify(response.data).length : 0
|
|
51
|
+
});
|
|
52
|
+
return response;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Método para obter o modelo
|
|
56
|
+
*/
|
|
57
|
+
getModelo(data) {
|
|
58
|
+
return this.modelo || 'NFe';
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Executa a requisição ao webservice SEFAZ
|
|
62
|
+
* @param {any} [data] - Dados opcionais usados para gerar o XML em algumas subclasses.
|
|
63
|
+
* @returns {Promise<any>} A resposta do webservice em JSON.
|
|
64
|
+
*/
|
|
65
|
+
async Exec(data) {
|
|
66
|
+
let xmlConsulta = '';
|
|
67
|
+
let xmlConsultaSoap = '';
|
|
68
|
+
let webServiceUrlTmp = '';
|
|
69
|
+
let responseInJson = undefined;
|
|
70
|
+
let xmlRetorno = {};
|
|
71
|
+
const ContentType = this.setContentType();
|
|
72
|
+
try {
|
|
73
|
+
// Gerando XML específico
|
|
74
|
+
xmlConsulta = this.gerarXml(data);
|
|
75
|
+
const modelo = this.getModelo(data);
|
|
76
|
+
const { xmlFormated, agent, webServiceUrl, action } = await this.gerarConsulta.gerarConsulta(xmlConsulta, this.metodo, undefined, undefined, modelo);
|
|
77
|
+
xmlConsultaSoap = xmlFormated;
|
|
78
|
+
webServiceUrlTmp = webServiceUrl;
|
|
79
|
+
const xmlRetorno = await this.callWebService(xmlFormated, webServiceUrl, ContentType, action, agent);
|
|
80
|
+
// Instanciando classe de utilitários com lib xml-js e convertendo XML para XmlParser
|
|
81
|
+
const json = new XmlParser();
|
|
82
|
+
responseInJson = json.convertXmlToJson(xmlRetorno.data, this.metodo);
|
|
83
|
+
// Gera erro em caso de Rejeição
|
|
84
|
+
if (responseInJson.xMotivo.includes('Rejeição')) {
|
|
85
|
+
throw new Error(responseInJson.xMotivo);
|
|
86
|
+
}
|
|
87
|
+
return responseInJson;
|
|
88
|
+
}
|
|
89
|
+
finally {
|
|
90
|
+
this.saveFiles.salvaArquivos(xmlConsulta, responseInJson, xmlRetorno, this.metodo, xmlConsultaSoap);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export { BaseNFE };
|
|
95
|
+
//# sourceMappingURL=BaseNFe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseNFe.js","sourceRoot":"","sources":["../../src/base/BaseNFe.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { XmlBuilder } from '../adapters/XmlBuilder.js';
|
|
2
|
+
import { Utility } from '../utils/Utility.js';
|
|
3
|
+
import { GerarConsultaImpl } from '@nfewizard/types/shared';
|
|
4
|
+
import { Environment } from '../environment/Environment.js';
|
|
5
|
+
declare class GerarConsulta implements GerarConsultaImpl {
|
|
6
|
+
utility: Utility;
|
|
7
|
+
environment: Environment;
|
|
8
|
+
xmlBuilder: XmlBuilder;
|
|
9
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder);
|
|
10
|
+
createSoapEnvelop(xmlConsulta: string, metodo: string, method: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): string;
|
|
11
|
+
gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): Promise<{
|
|
12
|
+
xmlFormated: string;
|
|
13
|
+
agent: import("https").Agent;
|
|
14
|
+
webServiceUrl: string;
|
|
15
|
+
action: any;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export { GerarConsulta };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { logger } from '../exceptions/logger.js';
|
|
2
|
+
class GerarConsulta {
|
|
3
|
+
constructor(environment, utility, xmlBuilder) {
|
|
4
|
+
this.environment = environment;
|
|
5
|
+
this.utility = utility;
|
|
6
|
+
this.xmlBuilder = xmlBuilder;
|
|
7
|
+
}
|
|
8
|
+
createSoapEnvelop(xmlConsulta, metodo, method, rootTag = false, tag = "", dadosMsgTag = "nfeDadosMsg") {
|
|
9
|
+
logger.info(`Adicionando SOAP ao XML`, {
|
|
10
|
+
context: 'GerarConsulta',
|
|
11
|
+
});
|
|
12
|
+
// Criando envelop SOAP (estrutura para e envio do XML)
|
|
13
|
+
let rootTagObj = null;
|
|
14
|
+
if (rootTag) {
|
|
15
|
+
rootTagObj = {
|
|
16
|
+
tag,
|
|
17
|
+
namespace: method,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
return this.xmlBuilder.buildSoapEnvelope(xmlConsulta, method, 'soap12', rootTagObj, dadosMsgTag);
|
|
21
|
+
}
|
|
22
|
+
async gerarConsulta(xmlConsulta, metodo, ambienteNacional = false, versao = "", mod = "NFe", rootTag = false, tag = "", dadosMsgTag = "nfeDadosMsg") {
|
|
23
|
+
try {
|
|
24
|
+
const config = this.environment.getConfig();
|
|
25
|
+
// Valida Schema
|
|
26
|
+
if (config.lib?.useForSchemaValidation !== 'validateSchemaJsBased') {
|
|
27
|
+
logger.info(`Validando XML com xsd-schema-validator`, {
|
|
28
|
+
context: 'GerarConsulta',
|
|
29
|
+
obs: 'Validação necessita do JAVA instaldo no ambiente',
|
|
30
|
+
});
|
|
31
|
+
await this.utility.validateSchemaJavaBased(xmlConsulta, metodo);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
logger.info(`Validando XML com xsd-assembler`, {
|
|
35
|
+
context: 'GerarConsulta',
|
|
36
|
+
obs: 'Validação com nodejs',
|
|
37
|
+
});
|
|
38
|
+
await this.utility.validateSchemaJsBased(xmlConsulta, metodo);
|
|
39
|
+
}
|
|
40
|
+
// Capturando a url do método para o namespace xmlns
|
|
41
|
+
const { method, action } = this.utility.getSoapInfo(config.dfe.UF, metodo);
|
|
42
|
+
const xmlFormated = this.createSoapEnvelop(xmlConsulta, metodo, method, rootTag, tag, dadosMsgTag);
|
|
43
|
+
// Retorna o Http.Agent contendo os certificados das Autoridades Certificadoras
|
|
44
|
+
const agent = this.environment.getHttpAgent();
|
|
45
|
+
// Retorna a url do webservice NFEStatusServico
|
|
46
|
+
const webServiceUrl = this.utility.getWebServiceUrl(metodo, ambienteNacional, versao, mod);
|
|
47
|
+
return {
|
|
48
|
+
xmlFormated,
|
|
49
|
+
agent,
|
|
50
|
+
webServiceUrl,
|
|
51
|
+
action
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
logger.error(`Erro ao gerar dados de consulta para o webservice`, error, { context: 'GerarConsulta', method: 'gerarConsulta', service: metodo });
|
|
56
|
+
throw new Error(error.message);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export { GerarConsulta };
|
|
61
|
+
//# sourceMappingURL=GerarConsulta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GerarConsulta.js","sourceRoot":"","sources":["../../src/base/GerarConsulta.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Utility } from '../utils/Utility.js';
|
|
2
|
+
import { SaveFilesImpl } from '@nfewizard/types/shared';
|
|
3
|
+
import { Environment } from '../environment/Environment.js';
|
|
4
|
+
import { GenericObject } from '@nfewizard/types/shared';
|
|
5
|
+
import { AxiosResponse } from 'axios';
|
|
6
|
+
declare class SaveFiles implements SaveFilesImpl {
|
|
7
|
+
utility: Utility;
|
|
8
|
+
environment: Environment;
|
|
9
|
+
constructor(environment: Environment, utility: Utility);
|
|
10
|
+
salvaArquivos(xmlConsulta: string, responseInJson: GenericObject | undefined, xmlRetorno: AxiosResponse<any, any>, metodo: string, xmlFormated?: string, options?: Record<string, any>): void;
|
|
11
|
+
}
|
|
12
|
+
export { SaveFiles };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { format } from 'date-fns';
|
|
2
|
+
/*
|
|
3
|
+
* This file is part of NFeWizard-io.
|
|
4
|
+
*
|
|
5
|
+
* NFeWizard-io is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
*
|
|
10
|
+
* NFeWizard-io is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU General Public License
|
|
16
|
+
* along with NFeWizard-io. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
class SaveFiles {
|
|
19
|
+
constructor(environment, utility) {
|
|
20
|
+
this.environment = environment;
|
|
21
|
+
this.utility = utility;
|
|
22
|
+
}
|
|
23
|
+
salvaArquivos(xmlConsulta, responseInJson, xmlRetorno, metodo, xmlFormated, options) {
|
|
24
|
+
// Recupera configuração do ambiente para verificar se os arquivos gerados serão gravados em disco
|
|
25
|
+
const config = this.environment.getConfig();
|
|
26
|
+
let dateAndTimeInFileName = config.dfe.incluirTimestampNoNomeDosArquivos;
|
|
27
|
+
const { armazenarXMLConsultaComTagSoap } = this.environment.config.dfe;
|
|
28
|
+
const xmlConsultaASalvar = armazenarXMLConsultaComTagSoap ? xmlFormated : xmlConsulta;
|
|
29
|
+
const createFileName = (prefix) => {
|
|
30
|
+
const dtaTime = dateAndTimeInFileName ? `-${format(new Date(), 'dd-MM-yyyy-HHmm')}` : '';
|
|
31
|
+
const baseFileName = `${metodo}`;
|
|
32
|
+
const prefixPart = prefix ? `-${prefix}` : '';
|
|
33
|
+
const nfePart = responseInJson && responseInJson.chNFe ? `-${responseInJson.chNFe}` : '';
|
|
34
|
+
const dateTimePart = dtaTime;
|
|
35
|
+
return `${baseFileName}${prefixPart}${nfePart}${dateTimePart}`;
|
|
36
|
+
};
|
|
37
|
+
const salvarArquivo = (data, prefix, path, fileType) => {
|
|
38
|
+
const fileName = createFileName(prefix);
|
|
39
|
+
const method = fileType === 'xml' ? 'salvaXML' : 'salvaJSON';
|
|
40
|
+
this.utility[method]({
|
|
41
|
+
data: data || '',
|
|
42
|
+
fileName,
|
|
43
|
+
metodo: metodo,
|
|
44
|
+
path,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
if (config.dfe.armazenarXMLConsulta) {
|
|
48
|
+
salvarArquivo(xmlConsultaASalvar, 'consulta', config.dfe.pathXMLConsulta, 'xml');
|
|
49
|
+
}
|
|
50
|
+
if (config.dfe.armazenarXMLRetorno) {
|
|
51
|
+
salvarArquivo(xmlRetorno.data, 'retorno', config.dfe.pathXMLRetorno, 'xml');
|
|
52
|
+
}
|
|
53
|
+
if (config.dfe.armazenarRetornoEmJSON) {
|
|
54
|
+
salvarArquivo(responseInJson, undefined, config.dfe.pathRetornoEmJSON, 'json');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export { SaveFiles };
|
|
59
|
+
//# sourceMappingURL=SaveFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveFiles.js","sourceRoot":"","sources":["../../src/base/SaveFiles.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,SAAS;IAGX,YAAY,WAAwB,EAAE,OAAgB;QAClD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEM,aAAa,CAAC,WAAmB,EAAE,cAAyC,EAAE,UAAmC,EAAE,MAAc,EAAE,WAAoB,EAAE,OAA6B;QACzL,kGAAkG;QAClG,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;QAC5C,IAAI,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC;QACzE,MAAM,EAAE,8BAA8B,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAA;QACtE,MAAM,kBAAkB,GAAG,8BAA8B,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;QAEtF,MAAM,cAAc,GAAG,CAAC,MAA0B,EAAE,EAAE;YAClD,MAAM,OAAO,GAAG,qBAAqB,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,IAAI,EAAE,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAEzF,MAAM,YAAY,GAAG,GAAG,MAAM,EAAE,CAAC;YACjC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9C,MAAM,OAAO,GAAG,cAAc,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzF,MAAM,YAAY,GAAG,OAAO,CAAC;YAE7B,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,EAAE,CAAC;QACnE,CAAC,CAAA;QAED,MAAM,aAAa,GAAG,CAAC,IAAS,EAAE,MAA0B,EAAE,IAAwB,EAAE,QAAwB,EAAE,EAAE;YAChH,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;YACxC,MAAM,MAAM,GAAG,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;YAE7D,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBACjB,IAAI,EAAE,IAAI,IAAI,EAAE;gBAChB,QAAQ;gBACR,MAAM,EAAE,MAAM;gBACd,IAAI;aACP,CAAC,CAAC;QACP,CAAC,CAAC;QAEF,IAAI,MAAM,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC;YAClC,aAAa,CAAC,kBAAkB,EAAE,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QACrF,CAAC;QACD,IAAI,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC;YACjC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAChF,CAAC;QACD,IAAI,MAAM,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC;YACpC,aAAa,CAAC,cAAc,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QACnF,CAAC;IACL,CAAC;CACJ;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NFeWizard - Base Classes
|
|
3
|
+
* @module @nfewizard/shared/base
|
|
4
|
+
* @license GPL-3.0-or-later
|
|
5
|
+
*/
|
|
6
|
+
export { BaseNFE } from './BaseNFe.js';
|
|
7
|
+
export { GerarConsulta } from './GerarConsulta.js';
|
|
8
|
+
export { SaveFiles } from './SaveFiles.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|