@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,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"NFEStatusServico": {
|
|
3
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
|
|
4
|
+
"action": ""
|
|
5
|
+
},
|
|
6
|
+
"NFeDistribuicaoDFe": {
|
|
7
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",
|
|
8
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse"
|
|
9
|
+
},
|
|
10
|
+
"NFEAutorizacao": {
|
|
11
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",
|
|
12
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote"
|
|
13
|
+
},
|
|
14
|
+
"NFERetAutorizacao": {
|
|
15
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
|
|
16
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
17
|
+
},
|
|
18
|
+
"NFERetornoAutorizacao": {
|
|
19
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",
|
|
20
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"
|
|
21
|
+
},
|
|
22
|
+
"consultarStatusServico": {
|
|
23
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",
|
|
24
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF"
|
|
25
|
+
},
|
|
26
|
+
"NFEInutilizacao": {
|
|
27
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",
|
|
28
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF"
|
|
29
|
+
},
|
|
30
|
+
"NFEConsultaProtocolo": {
|
|
31
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",
|
|
32
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF"
|
|
33
|
+
},
|
|
34
|
+
"consultarCadastro": {
|
|
35
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/",
|
|
36
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"
|
|
37
|
+
},
|
|
38
|
+
"RecepcaoEvento": {
|
|
39
|
+
"method": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",
|
|
40
|
+
"action": "http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF"
|
|
41
|
+
},
|
|
42
|
+
"CTeDistribuicaoDFe": {
|
|
43
|
+
"method": "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe",
|
|
44
|
+
"action": "http://www.portalfiscal.inf.br/cte/wsdl/CTeDistribuicaoDFe/cteDistDFeInteresse"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
class AxiosHttpClient {
|
|
3
|
+
create(config) {
|
|
4
|
+
return axios.create({
|
|
5
|
+
headers: config.headers,
|
|
6
|
+
httpsAgent: config.agent,
|
|
7
|
+
timeout: config.timeout,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export { AxiosHttpClient };
|
|
12
|
+
//# sourceMappingURL=AxiosHttpClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosHttpClient.js","sourceRoot":"","sources":["../../src/environment/AxiosHttpClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,MAAM,eAAe;IACjB,MAAM,CAAC,MAAwB;QAC3B,OAAO,KAAK,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,UAAU,EAAE,MAAM,CAAC,KAAK;YACxB,OAAO,EAAE,MAAM,CAAC,OAAO;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import https from 'https';
|
|
2
|
+
import { NFeWizardProps } from '@nfewizard/types/shared';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
declare class Environment {
|
|
5
|
+
config: NFeWizardProps;
|
|
6
|
+
certificate: string;
|
|
7
|
+
cert_key: string;
|
|
8
|
+
agent: https.Agent;
|
|
9
|
+
isLoaded: boolean;
|
|
10
|
+
constructor(config: NFeWizardProps);
|
|
11
|
+
getIsLoaded(): boolean;
|
|
12
|
+
getConfig(): NFeWizardProps;
|
|
13
|
+
getCertKey(): string;
|
|
14
|
+
getCert(): string;
|
|
15
|
+
getHttpAgent(): https.Agent;
|
|
16
|
+
private LoggerInit;
|
|
17
|
+
loadEnvironment(): Promise<{
|
|
18
|
+
axios: AxiosInstance;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export { Environment };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { AxiosHttpClient } from './AxiosHttpClient.js';
|
|
2
|
+
import { HttpClientBuilder } from './HttpClientBuilder.js';
|
|
3
|
+
import { ValidateEnvironment } from './ValidateEnvironment.js';
|
|
4
|
+
import { LoadCertificate } from './LoadCertificate.js';
|
|
5
|
+
import { logger } from '../exceptions/logger.js';
|
|
6
|
+
class Environment {
|
|
7
|
+
constructor(config) {
|
|
8
|
+
this.config = config;
|
|
9
|
+
this.certificate = '';
|
|
10
|
+
this.cert_key = '';
|
|
11
|
+
this.agent = {};
|
|
12
|
+
this.isLoaded = false;
|
|
13
|
+
}
|
|
14
|
+
getIsLoaded() {
|
|
15
|
+
return this.isLoaded;
|
|
16
|
+
}
|
|
17
|
+
getConfig() {
|
|
18
|
+
return this.config;
|
|
19
|
+
}
|
|
20
|
+
getCertKey() {
|
|
21
|
+
return this.cert_key;
|
|
22
|
+
}
|
|
23
|
+
getCert() {
|
|
24
|
+
return this.certificate;
|
|
25
|
+
}
|
|
26
|
+
getHttpAgent() {
|
|
27
|
+
return this.agent;
|
|
28
|
+
}
|
|
29
|
+
LoggerInit(config) {
|
|
30
|
+
try {
|
|
31
|
+
if (config.lib?.log) {
|
|
32
|
+
logger.initialize({
|
|
33
|
+
exibirLogNoConsole: config.lib.log.exibirLogNoConsole ?? false,
|
|
34
|
+
armazenarLogs: config.lib.log.armazenarLogs ?? false,
|
|
35
|
+
pathLogs: config.lib.log.pathLogs
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
logger.info('Inicializando ambiente NFeWizard', {
|
|
39
|
+
context: 'Environment',
|
|
40
|
+
// config,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
logger.error('Erro ao inicializar ambiente NFeWizard', error, { context: 'Environment' });
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async loadEnvironment() {
|
|
49
|
+
/**
|
|
50
|
+
* Inicializa Logger
|
|
51
|
+
* */
|
|
52
|
+
this.LoggerInit(this.config);
|
|
53
|
+
/**
|
|
54
|
+
* Verifica configurações obrigatórias
|
|
55
|
+
* */
|
|
56
|
+
const validateEnvironment = new ValidateEnvironment();
|
|
57
|
+
validateEnvironment.checkRequiredSettings(this.config);
|
|
58
|
+
/**
|
|
59
|
+
* Carrega Certificados
|
|
60
|
+
* */
|
|
61
|
+
const loadCertificate = new LoadCertificate(this.config);
|
|
62
|
+
const { agent, certificate, cert_key } = await loadCertificate.loadCertificate();
|
|
63
|
+
this.agent = agent;
|
|
64
|
+
this.certificate = certificate;
|
|
65
|
+
this.cert_key = cert_key;
|
|
66
|
+
/**
|
|
67
|
+
* Configura HttpClient
|
|
68
|
+
* */
|
|
69
|
+
const httpClient = new AxiosHttpClient();
|
|
70
|
+
const configAgent = new HttpClientBuilder(this.config, this.agent, httpClient);
|
|
71
|
+
const axios = configAgent.createHttpClient();
|
|
72
|
+
/**
|
|
73
|
+
* Armazena informação de ambiente carregado
|
|
74
|
+
* */
|
|
75
|
+
this.isLoaded = true;
|
|
76
|
+
logger.info('Ambiente NFe Wizard inicializado com sucesso', { context: 'Environment' });
|
|
77
|
+
return { axios };
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export { Environment };
|
|
81
|
+
//# sourceMappingURL=Environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Environment.js","sourceRoot":"","sources":["../../src/environment/Environment.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,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shared';
|
|
2
|
+
import https from 'https';
|
|
3
|
+
import { HttpClient } from '@nfewizard/types/shared';
|
|
4
|
+
declare class HttpClientBuilder<T> {
|
|
5
|
+
private config;
|
|
6
|
+
private agent;
|
|
7
|
+
private httpClient;
|
|
8
|
+
constructor(config: NFeWizardProps, agent: https.Agent, httpClient: HttpClient<T>);
|
|
9
|
+
createHttpClient(): T;
|
|
10
|
+
}
|
|
11
|
+
export { HttpClientBuilder };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { logger } from '../exceptions/logger.js';
|
|
2
|
+
class HttpClientBuilder {
|
|
3
|
+
constructor(config, agent, httpClient) {
|
|
4
|
+
this.config = config;
|
|
5
|
+
this.agent = agent;
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
createHttpClient() {
|
|
9
|
+
logger.info('Criando client HTTP', {
|
|
10
|
+
context: 'createHttpClient',
|
|
11
|
+
});
|
|
12
|
+
try {
|
|
13
|
+
const axiosConfig = {
|
|
14
|
+
headers: {
|
|
15
|
+
'Content-Type': 'text/xml; charset=utf-8',
|
|
16
|
+
},
|
|
17
|
+
httpsAgent: this.agent,
|
|
18
|
+
timeout: this.config.lib?.connection?.timeout || 60000, // Timeout padrão de 60 segundos se não for configurado
|
|
19
|
+
};
|
|
20
|
+
return this.httpClient.create(axiosConfig);
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
logger.error('Erro ao criar client HTTP', error, { context: 'createHttpClient' });
|
|
24
|
+
throw new Error(error.message);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export { HttpClientBuilder };
|
|
29
|
+
//# sourceMappingURL=HttpClientBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpClientBuilder.js","sourceRoot":"","sources":["../../src/environment/HttpClientBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,iBAAiB;IAKnB,YAAY,MAAsB,EAAE,KAAkB,EAAE,UAAyB;QAC7E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IACD,gBAAgB;QACZ,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC/B,OAAO,EAAE,kBAAkB;SAC9B,CAAC,CAAC;QACH,IAAI,CAAC;YACD,MAAM,WAAW,GAAG;gBAChB,OAAO,EAAE;oBACL,cAAc,EAAE,yBAAyB;iBAC5C;gBACD,UAAU,EAAE,IAAI,CAAC,KAAK;gBACtB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,IAAI,KAAK,EAAE,uDAAuD;aAClH,CAAC;YAEF,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAClF,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;IACL,CAAC;CACJ;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CertificateLoadReturn, NFeWizardProps } from '@nfewizard/types/shared';
|
|
2
|
+
declare class LoadCertificate {
|
|
3
|
+
private config;
|
|
4
|
+
private certificate;
|
|
5
|
+
private cert_key;
|
|
6
|
+
constructor(config: NFeWizardProps);
|
|
7
|
+
private loadCertificateWithPEM;
|
|
8
|
+
private loadCertificateWithNodeForge;
|
|
9
|
+
loadCertificate(): Promise<CertificateLoadReturn>;
|
|
10
|
+
}
|
|
11
|
+
export { LoadCertificate };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import pem from 'pem';
|
|
3
|
+
import https from 'https';
|
|
4
|
+
import forge from 'node-forge';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import { logger } from '../exceptions/logger.js';
|
|
8
|
+
const baseDir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
// From dist/ to package root, then to resources/certs
|
|
10
|
+
const dir = path.join(baseDir, '../resources/certs');
|
|
11
|
+
class LoadCertificate {
|
|
12
|
+
constructor(config) {
|
|
13
|
+
this.config = config;
|
|
14
|
+
this.certificate = '';
|
|
15
|
+
this.cert_key = '';
|
|
16
|
+
}
|
|
17
|
+
loadCertificateWithPEM() {
|
|
18
|
+
return new Promise((resolve, reject) => {
|
|
19
|
+
try {
|
|
20
|
+
const pfxPath = this.config.dfe.pathCertificado;
|
|
21
|
+
const pfxPassword = this.config.dfe.senhaCertificado;
|
|
22
|
+
const pfxFile = fs.readFileSync(pfxPath);
|
|
23
|
+
const certsDir = path.resolve(baseDir, dir);
|
|
24
|
+
// Read CA certificates if directory exists and has files
|
|
25
|
+
let caCerts = [];
|
|
26
|
+
if (fs.existsSync(certsDir)) {
|
|
27
|
+
const files = fs.readdirSync(certsDir).filter(f => !f.startsWith('.'));
|
|
28
|
+
caCerts = files.map(filename => {
|
|
29
|
+
const tmp = `${certsDir}/${filename}`;
|
|
30
|
+
return fs.readFileSync(tmp);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
pem.readPkcs12(pfxFile, { p12Password: pfxPassword }, async (error, result) => {
|
|
34
|
+
if (error) {
|
|
35
|
+
if (error.message.toLowerCase().includes('mac verify error')) {
|
|
36
|
+
return reject(new Error("Erro ao ler o certificado: Senha incorreta."));
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return reject(new Error(`Erro ao ler o certificado: ${error.message}`));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const key = result.key;
|
|
43
|
+
this.cert_key = key;
|
|
44
|
+
const cert = result.cert;
|
|
45
|
+
this.certificate = cert;
|
|
46
|
+
const certForge = forge.pki.certificateFromPem(cert);
|
|
47
|
+
const now = new Date();
|
|
48
|
+
if (now < certForge.validity.notBefore || now > certForge.validity.notAfter) {
|
|
49
|
+
return reject(new Error("Erro ao carregar o certificado: O certificado fornecido expirou ou ainda não é válido."));
|
|
50
|
+
}
|
|
51
|
+
// Configure HTTPS agent based on environment
|
|
52
|
+
const agentOptions = {
|
|
53
|
+
key: key,
|
|
54
|
+
cert: cert,
|
|
55
|
+
};
|
|
56
|
+
// Add CA certs if available, otherwise allow self-signed for homologação
|
|
57
|
+
if (caCerts.length > 0) {
|
|
58
|
+
agentOptions.ca = caCerts;
|
|
59
|
+
}
|
|
60
|
+
else if (this.config.dfe.ambiente === 2) {
|
|
61
|
+
// Homologação: accept self-signed certificates
|
|
62
|
+
agentOptions.rejectUnauthorized = false;
|
|
63
|
+
}
|
|
64
|
+
const agent = new https.Agent(agentOptions);
|
|
65
|
+
resolve({
|
|
66
|
+
success: true,
|
|
67
|
+
agent,
|
|
68
|
+
message: 'Certificado Carregado com Sucesso.'
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
logger.error('Erro ao validar certificado', error, {
|
|
74
|
+
context: 'LoadCertificate',
|
|
75
|
+
method: 'loadCertificateWithPEM',
|
|
76
|
+
});
|
|
77
|
+
reject(new Error(error.message));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
loadCertificateWithNodeForge() {
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
try {
|
|
84
|
+
const pfxPath = this.config.dfe.pathCertificado;
|
|
85
|
+
const pfxPassword = this.config.dfe.senhaCertificado;
|
|
86
|
+
// Lê o arquivo PFX
|
|
87
|
+
const pfxFile = fs.readFileSync(pfxPath);
|
|
88
|
+
// Decodifica o arquivo PFX (PKCS#12)
|
|
89
|
+
const p12Asn1 = forge.asn1.fromDer(pfxFile.toString('binary'));
|
|
90
|
+
const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, pfxPassword);
|
|
91
|
+
// Extrai a chave privada e o certificado
|
|
92
|
+
const keyBags = p12.getBags({ bagType: forge.pki.oids.pkcs8ShroudedKeyBag });
|
|
93
|
+
const certBags = p12.getBags({ bagType: forge.pki.oids.certBag });
|
|
94
|
+
// Verificar se o 'keyBags' contém a chave esperada
|
|
95
|
+
const key = keyBags[forge.pki.oids.pkcs8ShroudedKeyBag]?.[0]?.key;
|
|
96
|
+
if (!key) {
|
|
97
|
+
return reject(new Error("Erro ao carregar chave privada do certificado."));
|
|
98
|
+
}
|
|
99
|
+
const keyPem = forge.pki.privateKeyToPem(key);
|
|
100
|
+
this.cert_key = keyPem;
|
|
101
|
+
// Verificar se o 'certBags' contém o certificado esperado
|
|
102
|
+
const cert = certBags[forge.pki.oids.certBag]?.[0]?.cert;
|
|
103
|
+
if (!cert) {
|
|
104
|
+
return reject(new Error("Erro ao validar certificado."));
|
|
105
|
+
}
|
|
106
|
+
const certPem = forge.pki.certificateToPem(cert);
|
|
107
|
+
this.certificate = certPem;
|
|
108
|
+
// Converte o certificado para o formato Forge
|
|
109
|
+
const certForge = forge.pki.certificateFromPem(forge.pki.certificateToPem(cert));
|
|
110
|
+
// Valida a data de validade
|
|
111
|
+
const now = new Date();
|
|
112
|
+
if (now < certForge.validity.notBefore || now > certForge.validity.notAfter) {
|
|
113
|
+
return reject(new Error("Erro ao carregar o certificado: O certificado fornecido expirou ou ainda não é válido."));
|
|
114
|
+
}
|
|
115
|
+
// Carrega os certificados da CA
|
|
116
|
+
const certsDir = path.resolve(baseDir, dir);
|
|
117
|
+
// Read CA certificates if directory exists and has files
|
|
118
|
+
let caCerts = [];
|
|
119
|
+
if (fs.existsSync(certsDir)) {
|
|
120
|
+
const files = fs.readdirSync(certsDir).filter(f => !f.startsWith('.'));
|
|
121
|
+
caCerts = files.map(filename => {
|
|
122
|
+
const tmp = `${certsDir}/${filename}`;
|
|
123
|
+
return fs.readFileSync(tmp);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
// Configura o agente HTTPS
|
|
127
|
+
const agentOptions = {
|
|
128
|
+
key: keyPem,
|
|
129
|
+
cert: certPem,
|
|
130
|
+
};
|
|
131
|
+
// Add CA certs if available, otherwise allow self-signed for homologação
|
|
132
|
+
if (caCerts.length > 0) {
|
|
133
|
+
agentOptions.ca = caCerts;
|
|
134
|
+
}
|
|
135
|
+
else if (this.config.dfe.ambiente === 2) {
|
|
136
|
+
// Homologação: accept self-signed certificates
|
|
137
|
+
agentOptions.rejectUnauthorized = false;
|
|
138
|
+
}
|
|
139
|
+
const agent = new https.Agent(agentOptions);
|
|
140
|
+
resolve({
|
|
141
|
+
success: true,
|
|
142
|
+
agent,
|
|
143
|
+
message: 'Certificado Carregado com Sucesso.'
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
logger.error('Erro ao validar certificado', error, {
|
|
148
|
+
context: 'LoadCertificate',
|
|
149
|
+
method: 'loadCertificateWithNodeForge',
|
|
150
|
+
});
|
|
151
|
+
reject(new Error(error.message));
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
async loadCertificate() {
|
|
156
|
+
logger.info('Validando certificado', {
|
|
157
|
+
context: 'LoadCertificate',
|
|
158
|
+
});
|
|
159
|
+
if (this.config.lib?.useOpenSSL || this.config.lib?.useOpenSSL === undefined) {
|
|
160
|
+
const { agent } = await this.loadCertificateWithPEM();
|
|
161
|
+
return {
|
|
162
|
+
certificate: this.certificate,
|
|
163
|
+
cert_key: this.cert_key,
|
|
164
|
+
agent
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
const { agent } = await this.loadCertificateWithNodeForge();
|
|
168
|
+
return {
|
|
169
|
+
certificate: this.certificate,
|
|
170
|
+
cert_key: this.cert_key,
|
|
171
|
+
agent
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export { LoadCertificate };
|
|
176
|
+
//# sourceMappingURL=LoadCertificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadCertificate.js","sourceRoot":"","sources":["../../src/environment/LoadCertificate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7D,sDAAsD;AACtD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;AAErD,MAAM,eAAe;IAIjB,YAAY,MAAsB;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;IAEO,sBAAsB;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,IAAI,CAAC;gBAED,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC;gBAChD,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAErD,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;gBACzC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AC3E,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAEtD,OAAO;gBACH,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,KAAK;aACR,CAAC;QACN,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,4BAA4B,EAAE,CAAC;QAE5D,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK;SACR,CAAC;IACN,CAAC;CACJ;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { logger } from '../exceptions/logger.js';
|
|
2
|
+
class ValidateEnvironment {
|
|
3
|
+
checkRequiredSettings(config) {
|
|
4
|
+
logger.info('Verificando parâmetros de inicialização', {
|
|
5
|
+
context: 'ValidateEnvironment',
|
|
6
|
+
config: {
|
|
7
|
+
pathCertificado: config.dfe.pathCertificado,
|
|
8
|
+
senhaCertificado: config.dfe.senhaCertificado,
|
|
9
|
+
ambiente: config.nfe.ambiente
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
try {
|
|
13
|
+
const requiredConfigFields = {
|
|
14
|
+
dfe: ['pathCertificado', 'senhaCertificado'],
|
|
15
|
+
nfe: ['ambiente']
|
|
16
|
+
};
|
|
17
|
+
let missingConfigurations = {
|
|
18
|
+
dfe: [],
|
|
19
|
+
nfe: []
|
|
20
|
+
};
|
|
21
|
+
let errors = [];
|
|
22
|
+
let tableData = [];
|
|
23
|
+
Object.keys(requiredConfigFields).forEach((categoryKey) => {
|
|
24
|
+
const category = config[categoryKey];
|
|
25
|
+
// Verifica se a chave principal existe
|
|
26
|
+
if (!category) {
|
|
27
|
+
errors.push(`Chave principal faltando: '${categoryKey}'.`);
|
|
28
|
+
tableData.push({ Categoria: categoryKey, Faltando: `Chave principal faltando` });
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const fields = requiredConfigFields[categoryKey];
|
|
32
|
+
if (fields) {
|
|
33
|
+
fields.forEach((fieldKey) => {
|
|
34
|
+
// Garante que missingConfigurations[categoryKey] é um array
|
|
35
|
+
if (!missingConfigurations[categoryKey]) {
|
|
36
|
+
missingConfigurations[categoryKey] = [];
|
|
37
|
+
}
|
|
38
|
+
// Verifica se o campo está presente
|
|
39
|
+
if (category[fieldKey] === undefined) {
|
|
40
|
+
// Garante que a propriedade está definida
|
|
41
|
+
if (!missingConfigurations[categoryKey]) {
|
|
42
|
+
missingConfigurations[categoryKey] = [];
|
|
43
|
+
}
|
|
44
|
+
missingConfigurations[categoryKey].push(fieldKey);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
// Garante que missingConfigurations[categoryKey] é um array
|
|
48
|
+
const missingConfig = missingConfigurations[categoryKey];
|
|
49
|
+
if (missingConfig && missingConfig.length > 0) {
|
|
50
|
+
errors.push(`Configurações faltando em '${categoryKey}': [${missingConfig.join(', ')}].`);
|
|
51
|
+
tableData.push({ Categoria: categoryKey, Faltando: missingConfig.join(', ') });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (errors.length > 0) {
|
|
57
|
+
console.log("Configurações necessárias faltando:");
|
|
58
|
+
console.table(tableData);
|
|
59
|
+
throw new Error(`Erro ao validar configurações: ${errors.join(' ')}`);
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
missingConfigurations,
|
|
63
|
+
message: 'Todas as configurações necessárias estão presentes.',
|
|
64
|
+
success: true,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
logger.error('Erro ao inicializar ambiente', error, {
|
|
69
|
+
context: 'ValidateEnvironment',
|
|
70
|
+
method: 'checkRequiredSettings',
|
|
71
|
+
});
|
|
72
|
+
throw new Error(`Erro ao inicializar ambiente: ${error.message}`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export { ValidateEnvironment };
|
|
77
|
+
//# sourceMappingURL=ValidateEnvironment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidateEnvironment.js","sourceRoot":"","sources":["../../src/environment/ValidateEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGjD,MAAM,mBAAmB;IACrB,qBAAqB,CAAC,MAAsB;QACxC,MAAM,CAAC,IAAI,CAAC,yCAAyC,EAAE;YACnD,OAAO,EAAE,qBAAqB;YAC9B,MAAM,EAAE;gBACJ,eAAe,EAAE,MAAM,CAAC,GAAG,CAAC,eAAe;gBAC3C,gBAAgB,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB;gBAC7C,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ;aAChC;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC;YACD,MAAM,oBAAoB,GAA8C;gBACpE,GAAG,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;gBAC5C,GAAG,EAAE,CAAC,UAAU,CAAC;aACpB,CAAC;YAEF,IAAI,qBAAqB,GAAQ;gBAC7B,GAAG,EAAE,EAAE;gBACP,GAAG,EAAE,EAAE;aACV,CAAC;YAEF,IAAI,MAAM,GAAa,EAAE,CAAC;YAC1B,IAAI,SAAS,GAAU,EAAE,CAAC;YAEzB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAA8B,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;gBACpF,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAkC,CAAC,CAAC;gBAE5D,uCAAuC;gBACvC,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACZ,MAAM,CAAC,IAAI,CAAC,8BAA8B,WAAW,IAAI,CAAC,CAAC;oBAC3D,SAAS,CAAC,IAAI,CAAC,EAAE,SAA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CAAC,CAAC;gBACnD,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gBACzB,MAAM,IAAI,KAAK,CAAC,kCAAkC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC1E,CAAC;YAED,OAAO;gBACH,qBAAqB;gBACrB,OAAO,EAAE,qDAAqD;gBAC9D,OAAO,EAAE,IAAI;aAChB,CAAC;QACN,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,EAAE;gBAChD,OAAO,EAAE,qBAAqB;gBAC9B,MAAM,EAAE,uBAAuB;aAClC,CAAC,CAAC;YACH,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACtE,CAAC;IACL,CAAC;CACJ;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NFeWizard - Environment
|
|
3
|
+
* @module @nfewizard/shared/environment
|
|
4
|
+
* @license GPL-3.0-or-later
|
|
5
|
+
*/
|
|
6
|
+
export { AxiosHttpClient } from './AxiosHttpClient.js';
|
|
7
|
+
export { Environment } from './Environment.js';
|
|
8
|
+
export { HttpClientBuilder } from './HttpClientBuilder.js';
|
|
9
|
+
export { LoadCertificate } from './LoadCertificate.js';
|
|
10
|
+
export { ValidateEnvironment } from './ValidateEnvironment.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NFeWizard - Environment
|
|
3
|
+
* @module @nfewizard/shared/environment
|
|
4
|
+
* @license GPL-3.0-or-later
|
|
5
|
+
*/
|
|
6
|
+
export { AxiosHttpClient } from './AxiosHttpClient.js';
|
|
7
|
+
export { Environment } from './Environment.js';
|
|
8
|
+
export { HttpClientBuilder } from './HttpClientBuilder.js';
|
|
9
|
+
export { LoadCertificate } from './LoadCertificate.js';
|
|
10
|
+
export { ValidateEnvironment } from './ValidateEnvironment.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/environment/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface ErrorContext {
|
|
2
|
+
context: string;
|
|
3
|
+
method?: string;
|
|
4
|
+
webServiceUrl?: string;
|
|
5
|
+
xmlConsultaSize?: number;
|
|
6
|
+
responseStatus?: number;
|
|
7
|
+
responseData?: string;
|
|
8
|
+
httpStatus?: number;
|
|
9
|
+
httpStatusText?: string;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export declare class NFeError extends Error {
|
|
14
|
+
readonly context: ErrorContext;
|
|
15
|
+
readonly originalError: Error;
|
|
16
|
+
readonly timestamp: Date;
|
|
17
|
+
constructor(message: string, originalError: Error, context: ErrorContext);
|
|
18
|
+
/**
|
|
19
|
+
* Método estático para criar erro a partir de exception do axios
|
|
20
|
+
*/
|
|
21
|
+
static fromAxiosError(error: any, context: ErrorContext): NFeError;
|
|
22
|
+
/**
|
|
23
|
+
* Método estático para criar erro de conversão XML
|
|
24
|
+
*/
|
|
25
|
+
static fromXmlError(error: Error, xmlData: string, method: string): NFeError;
|
|
26
|
+
/**
|
|
27
|
+
* Método estático para criar erro de rejeição SEFAZ
|
|
28
|
+
*/
|
|
29
|
+
static fromSefazRejection(motivo: string, responseData: any, method: string): NFeError;
|
|
30
|
+
/**
|
|
31
|
+
* Log do erro com todas as informações contextuais
|
|
32
|
+
*/
|
|
33
|
+
logError(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Determina se deve ser logado como warning (ex: rejeições SEFAZ esperadas)
|
|
36
|
+
*/
|
|
37
|
+
private shouldLogAsWarning;
|
|
38
|
+
private static detectXmlType;
|
|
39
|
+
}
|