@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,212 @@
|
|
|
1
|
+
function filterFieldsByType(source, requiredFields) {
|
|
2
|
+
const result = {};
|
|
3
|
+
for (const key of requiredFields) {
|
|
4
|
+
if (key in source) {
|
|
5
|
+
if (source[key] !== '')
|
|
6
|
+
result[key] = source[key];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
const COFINSMap = {
|
|
12
|
+
'01': 'COFINSAliq',
|
|
13
|
+
'02': 'COFINSAliq',
|
|
14
|
+
'03': 'COFINSQtde',
|
|
15
|
+
'04': 'COFINSNT',
|
|
16
|
+
'05': 'COFINSNT',
|
|
17
|
+
'06': 'COFINSNT',
|
|
18
|
+
'07': 'COFINSNT',
|
|
19
|
+
'08': 'COFINSNT',
|
|
20
|
+
'09': 'COFINSNT',
|
|
21
|
+
'49': 'COFINSOutr',
|
|
22
|
+
'50': 'COFINSOutr',
|
|
23
|
+
'51': 'COFINSOutr',
|
|
24
|
+
'52': 'COFINSOutr',
|
|
25
|
+
'53': 'COFINSOutr',
|
|
26
|
+
'54': 'COFINSOutr',
|
|
27
|
+
'55': 'COFINSOutr',
|
|
28
|
+
'56': 'COFINSOutr',
|
|
29
|
+
'60': 'COFINSOutr',
|
|
30
|
+
'61': 'COFINSOutr',
|
|
31
|
+
'62': 'COFINSOutr',
|
|
32
|
+
'63': 'COFINSOutr',
|
|
33
|
+
'64': 'COFINSOutr',
|
|
34
|
+
'65': 'COFINSOutr',
|
|
35
|
+
'66': 'COFINSOutr',
|
|
36
|
+
'67': 'COFINSOutr',
|
|
37
|
+
'70': 'COFINSOutr',
|
|
38
|
+
'71': 'COFINSOutr',
|
|
39
|
+
'72': 'COFINSOutr',
|
|
40
|
+
'73': 'COFINSOutr',
|
|
41
|
+
'74': 'COFINSOutr',
|
|
42
|
+
'75': 'COFINSOutr',
|
|
43
|
+
'98': 'COFINSOutr',
|
|
44
|
+
'99': 'COFINSOutr',
|
|
45
|
+
};
|
|
46
|
+
const PISMap = {
|
|
47
|
+
'01': 'PISAliq',
|
|
48
|
+
'02': 'PISAliq',
|
|
49
|
+
'03': 'PISQtde',
|
|
50
|
+
'04': 'PISNT',
|
|
51
|
+
'05': 'PISNT',
|
|
52
|
+
'06': 'PISNT',
|
|
53
|
+
'07': 'PISNT',
|
|
54
|
+
'08': 'PISNT',
|
|
55
|
+
'09': 'PISNT',
|
|
56
|
+
'49': 'PISOutr',
|
|
57
|
+
'50': 'PISOutr',
|
|
58
|
+
'51': 'PISOutr',
|
|
59
|
+
'52': 'PISOutr',
|
|
60
|
+
'53': 'PISOutr',
|
|
61
|
+
'54': 'PISOutr',
|
|
62
|
+
'55': 'PISOutr',
|
|
63
|
+
'56': 'PISOutr',
|
|
64
|
+
'60': 'PISOutr',
|
|
65
|
+
'61': 'PISOutr',
|
|
66
|
+
'62': 'PISOutr',
|
|
67
|
+
'63': 'PISOutr',
|
|
68
|
+
'64': 'PISOutr',
|
|
69
|
+
'65': 'PISOutr',
|
|
70
|
+
'66': 'PISOutr',
|
|
71
|
+
'67': 'PISOutr',
|
|
72
|
+
'70': 'PISOutr',
|
|
73
|
+
'71': 'PISOutr',
|
|
74
|
+
'72': 'PISOutr',
|
|
75
|
+
'73': 'PISOutr',
|
|
76
|
+
'74': 'PISOutr',
|
|
77
|
+
'75': 'PISOutr',
|
|
78
|
+
'98': 'PISOutr',
|
|
79
|
+
'99': 'PISOutr',
|
|
80
|
+
};
|
|
81
|
+
const ICMSMap = {
|
|
82
|
+
'00': 'ICMS00',
|
|
83
|
+
'02': 'ICMS02',
|
|
84
|
+
'10': 'ICMS10',
|
|
85
|
+
'20': 'ICMS20',
|
|
86
|
+
'30': 'ICMS30',
|
|
87
|
+
'40': 'ICMS40',
|
|
88
|
+
'41': 'ICMS40',
|
|
89
|
+
'50': 'ICMS40',
|
|
90
|
+
'51': 'ICMS51',
|
|
91
|
+
'60': 'ICMS60',
|
|
92
|
+
'61': 'ICMS61',
|
|
93
|
+
'70': 'ICMS70',
|
|
94
|
+
'90': 'ICMS90',
|
|
95
|
+
'101': 'ICMSSN101',
|
|
96
|
+
'102': 'ICMSSN102',
|
|
97
|
+
'103': 'ICMSSN102',
|
|
98
|
+
'201': 'ICMSSN201',
|
|
99
|
+
'202': 'ICMSSN202',
|
|
100
|
+
'203': 'ICMSSN202',
|
|
101
|
+
'500': 'ICMSSN500',
|
|
102
|
+
'900': 'ICMSSN900',
|
|
103
|
+
};
|
|
104
|
+
export const mountCOFINS = (cofins) => {
|
|
105
|
+
const { CST } = cofins;
|
|
106
|
+
const cst_cofins = CST;
|
|
107
|
+
let cofinsKey = COFINSMap[CST];
|
|
108
|
+
if (!cofinsKey) {
|
|
109
|
+
console.warn(`Código de situação tributária do COFINS ${cst_cofins} não é reconhecido. Alterado para padrão 'COFINSAliq'.`);
|
|
110
|
+
cofinsKey = 'COFINSAliq';
|
|
111
|
+
}
|
|
112
|
+
// const cofins = {
|
|
113
|
+
// CST: cst_cofins,
|
|
114
|
+
// vBC: 0, // No ERP - nf_item.val_base_cofins
|
|
115
|
+
// pCOFINS: 0, // No ERP - nf_item.per_cofins
|
|
116
|
+
// vCOFINS: 0, // No ERP - nf_item.val_cofins
|
|
117
|
+
// qBCProd: 0, // No ERP -- Fixo Vazio
|
|
118
|
+
// vAliqProd: 0, // No ERP -- Fixo Vazio
|
|
119
|
+
// }
|
|
120
|
+
const requiredFields = {
|
|
121
|
+
COFINSAliq: ['CST', 'vBC', 'pCOFINS', 'vCOFINS'],
|
|
122
|
+
COFINSQtde: ['CST', 'qBCProd', 'vAliqProd', 'vCOFINS'],
|
|
123
|
+
COFINSNT: ['CST'],
|
|
124
|
+
COFINSOutr: ['CST', 'vBC', 'pCOFINS', 'qBCProd', 'vAliqProd', 'vCOFINS'],
|
|
125
|
+
};
|
|
126
|
+
if (cofinsKey in requiredFields) {
|
|
127
|
+
const required = requiredFields[cofinsKey];
|
|
128
|
+
const cofinsProperties = filterFieldsByType(cofins, required);
|
|
129
|
+
const cofinsObject = { [cofinsKey]: cofinsProperties };
|
|
130
|
+
return cofinsObject;
|
|
131
|
+
}
|
|
132
|
+
console.warn(`Chave COFINS '${cofinsKey}' não reconhecida.`);
|
|
133
|
+
return {};
|
|
134
|
+
};
|
|
135
|
+
export const mountPIS = (pis) => {
|
|
136
|
+
const { CST } = pis;
|
|
137
|
+
const cst_pis = CST;
|
|
138
|
+
let pisKey = PISMap[cst_pis];
|
|
139
|
+
if (!pisKey) {
|
|
140
|
+
console.warn(`Código de situação tributária do PIS ${cst_pis} não é reconhecido. Alterado para padrão 'PISAliq'.`);
|
|
141
|
+
pisKey = 'PISAliq';
|
|
142
|
+
}
|
|
143
|
+
const requiredFields = {
|
|
144
|
+
PISAliq: ['CST', 'vBC', 'pPIS', 'vPIS'],
|
|
145
|
+
PISQtde: ['CST', 'qBCProd', 'vAliqProd', 'vPIS'],
|
|
146
|
+
PISNT: ['CST'],
|
|
147
|
+
PISOutr: ['CST', 'vBC', 'pPIS', 'qBCProd', 'vAliqProd', 'vPIS'],
|
|
148
|
+
};
|
|
149
|
+
if (pisKey in requiredFields) {
|
|
150
|
+
const required = requiredFields[pisKey];
|
|
151
|
+
const pisProperties = filterFieldsByType(pis, required);
|
|
152
|
+
const pisObject = { [pisKey]: pisProperties };
|
|
153
|
+
return pisObject;
|
|
154
|
+
}
|
|
155
|
+
console.warn(`Chave PIS '${pisKey}' não reconhecida.`);
|
|
156
|
+
return {};
|
|
157
|
+
};
|
|
158
|
+
export const mountICMS = (icms) => {
|
|
159
|
+
const { CST, CSOSN } = icms;
|
|
160
|
+
let cod_sit = CST;
|
|
161
|
+
let tipo_sit_trib = 'CST';
|
|
162
|
+
if (CST?.trim()?.length > 0) {
|
|
163
|
+
cod_sit = CST.length > 2 ? CST.substring(1, 3) : CST;
|
|
164
|
+
}
|
|
165
|
+
else if (CSOSN) {
|
|
166
|
+
tipo_sit_trib = 'CSOSN';
|
|
167
|
+
CSOSN?.trim()?.length > 3 ? cod_sit = CSOSN.substring(1, 4) : cod_sit = String(CSOSN);
|
|
168
|
+
}
|
|
169
|
+
// console.warn(`MountICMS utilizando [${tipo_sit_trib}]`);
|
|
170
|
+
let icmsKey = ICMSMap[cod_sit];
|
|
171
|
+
if (!icmsKey) {
|
|
172
|
+
console.warn(`Código de situação tributária ${cod_sit} não é reconhecido. Alterado para padrão 'ICMS00'.`);
|
|
173
|
+
icmsKey = 'ICMS00';
|
|
174
|
+
}
|
|
175
|
+
const requiredFields = {
|
|
176
|
+
ICMS00: ['orig', 'CST', 'modBC', 'vBC', 'pICMS', 'vICMS', 'pFCP', 'vFCP'],
|
|
177
|
+
ICMS02: ['orig', 'CST', 'qBCMono', 'adRemICMS', 'vICMSMono'],
|
|
178
|
+
ICMS10: ['orig', 'CST', 'modBC', 'vBC', 'pICMS', 'vICMS', 'vBCFCP', 'pFCP', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vICMSSTDeson', 'motDesICMSST'],
|
|
179
|
+
ICMS15: ['orig', 'CST', 'qBCMono', 'adRemICMS', 'vICMSMono', 'qBCMonoReten', 'adRemICMSReten', 'vICMSMonoReten', 'pRedAdRem', 'motRedAdRem'],
|
|
180
|
+
ICMS20: ['orig', 'CST', 'modBC', 'pRedBC', 'vBC', 'pICMS', 'vICMS', 'vBCFCP', 'pFCP', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
181
|
+
ICMS30: ['orig', 'CST', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vBCFCPST', 'pFCPST', 'vFCPST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
182
|
+
ICMS40: ['orig', 'CST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
183
|
+
ICMS41: ['orig', 'CST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
184
|
+
ICMS50: ['orig', 'CST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
185
|
+
ICMS51: ['orig', 'CST', 'modBC', 'pRedBC', 'vBC', 'pICMS', 'vICMS', 'vICMSOp', 'pDif', 'vICMSDif'],
|
|
186
|
+
ICMS53: ['orig', 'CST', 'qBCMono', 'adRemICMS', 'vICMSMonoOp', 'pDif', 'vICMSMonoDif', 'vICMSMono', 'qBCMonoDif', 'adRemICMSDif'],
|
|
187
|
+
ICMS60: ['orig', 'CST', 'vBCSTRet', 'pST', 'vICMSSubstituto', 'vICMSSTRet', 'vBCFCPSTRet', 'pFCPSTRet', 'vFCPSTRet', 'pRedBCEfet', 'vBCEfet', 'pICMSEfet', 'vICMSEfet'],
|
|
188
|
+
ICMS61: ['orig', 'CST', 'qBCMonoRet', 'adRemICMSRet', 'vICMSMonoRet'],
|
|
189
|
+
ICMS70: ['orig', 'CST', 'modBC', 'pRedBC', 'vBC', 'pICMS', 'vICMS', 'vBCST', 'pICMSST', 'vICMSST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson', 'modBCST', 'pMVAST', 'pRedBCST'],
|
|
190
|
+
ICMS90: ['orig', 'CST', 'modBC', 'vBC', 'pRedBC', 'pICMS', 'vICMS', 'vBCFCP', 'pFCP', 'vFCP', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vBCFCPST', 'pFCPST', 'vFCPST', 'vICMSDeson', 'motDesICMS', 'indDeduzDeson'],
|
|
191
|
+
ICMSPart: ['orig', 'CST', 'modBC', 'vBC', 'pRedBC', 'pICMS', 'vICMS', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'pBCOp', 'UFST', 'vBCFCPST', 'pFCPST', 'vFCPST'],
|
|
192
|
+
ICMSST: ['orig', 'CST', 'vBCSTRet', 'pST', 'vICMSSubstituto', 'vICMSSTRet', 'vBCFCPSTRet', 'pFCPSTRet', 'vFCPSTRet', 'vBCSTDest', 'vICMSSTDest'],
|
|
193
|
+
ICMSSN101: ['orig', 'CSOSN', 'pCredSN', 'vCredICMSSN'],
|
|
194
|
+
ICMSSN102: ['orig', 'CSOSN'],
|
|
195
|
+
ICMSSN201: ['orig', 'CSOSN', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'pFCPST', 'vFCPST'],
|
|
196
|
+
ICMSSN202: ['orig', 'CSOSN', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vFCPST', 'vBCFCPST', 'pFCPST'],
|
|
197
|
+
ICMSSN500: ['orig', 'CSOSN', 'vBCSTRet', 'pST', 'vICMSSubstituto', 'vICMSSTRet', 'vBCFCPSTRet', 'pFCPSTRet', 'vFCPSTRet', 'pRedBCEfet', 'vBCEfet', 'pICMSEfet', 'vICMSEfet'],
|
|
198
|
+
ICMSSN900: ['orig', 'CSOSN', 'modBC', 'vBC', 'pRedBC', 'pICMS', 'vICMS', 'modBCST', 'pMVAST', 'pRedBCST', 'vBCST', 'pICMSST', 'vICMSST', 'vBCFCPST', 'pFCPST', 'vFCPST', 'pCredSN', 'vCredICMSSN'],
|
|
199
|
+
};
|
|
200
|
+
if (icmsKey in requiredFields) {
|
|
201
|
+
// Obtém os campos obrigatórios para o tipo ICMS
|
|
202
|
+
const required = requiredFields[icmsKey];
|
|
203
|
+
// Filtra as propriedades do item de acordo com os campos obrigatórios do tipo ICMS
|
|
204
|
+
const icmsProperties = filterFieldsByType(icms, required);
|
|
205
|
+
// Monta o objeto ICMS usando a chave dinâmica e as propriedades filtradas
|
|
206
|
+
const icmsObject = { [icmsKey]: icmsProperties };
|
|
207
|
+
return icmsObject;
|
|
208
|
+
}
|
|
209
|
+
console.warn(`Chave ICMS '${icmsKey}' não reconhecida.`);
|
|
210
|
+
return {};
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=NFEImposto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NFEImposto.js","sourceRoot":"","sources":["../../src/utils/NFEImposto.ts"],"names":[],"mappings":"AAkBA,SAAS,kBAAkB,CAAmB,MAAW,EAAE,cAA2B;IAClF,MAAM,MAAM,GAAe,EAAE,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,MAAM,EAAE,CAAC;YAChB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE;gBAClB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,SAAS,GAAoC;IAC/C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,YAAY;IAClB,IAAI,EA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gDAAgD;QAChD,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAsC,CAAC,CAAC;QAExE,mFAAmF;QACnF,MAAM,cAAc,GAAG,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC1D,0EAA0E;QAC1E,MAAM,UAAU,GAAS,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,EAAU,CAAC;QAE/D,OAAO,UAAU,CAAC;IACtB,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,eAAe,OAAO,oBAAoB,CAAC,CAAC;IACzD,OAAO,EAAU,CAAC;AAEtB,CAAC,CAAA"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description :
|
|
3
|
+
* @author :
|
|
4
|
+
* @group :
|
|
5
|
+
* @created : 21/03/2025 - 21:50:20
|
|
6
|
+
*
|
|
7
|
+
* MODIFICATION LOG
|
|
8
|
+
* - Version : 1.0.0
|
|
9
|
+
* - Date : 21/03/2025
|
|
10
|
+
* - Author :
|
|
11
|
+
* - Modification :
|
|
12
|
+
**/
|
|
13
|
+
import { Environment } from '../environment/Environment.js';
|
|
14
|
+
import { GenericObject, SaveXMLProps, SaveJSONProps } from '@nfewizard/types/shared';
|
|
15
|
+
import { NFeWizardProps, ProtNFe } from '@nfewizard/types/nfe';
|
|
16
|
+
import { XmlParser } from './XmlParser.js';
|
|
17
|
+
declare class Utility {
|
|
18
|
+
environment: Environment;
|
|
19
|
+
xmlParser: XmlParser;
|
|
20
|
+
constructor(environment: Environment);
|
|
21
|
+
/**
|
|
22
|
+
* Método utilitário para criar diretórios
|
|
23
|
+
*/
|
|
24
|
+
createDir(path: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Método utilitário para escrever arquivo
|
|
27
|
+
*/
|
|
28
|
+
createFile(path: string, fileName: string, file: any, extension: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Função recursiva para encontrar a chave em qualquer nivel do objeto
|
|
31
|
+
*/
|
|
32
|
+
findInObj: (obj: GenericObject, chave: string) => any;
|
|
33
|
+
/**
|
|
34
|
+
* Função recursiva para encontrar todas as ocorrências de uma chave em qualquer nivel do objeto
|
|
35
|
+
*/
|
|
36
|
+
findAllInObj: (obj: GenericObject, chave: string) => any[];
|
|
37
|
+
/**
|
|
38
|
+
* Método responsável por gravar o XML como json
|
|
39
|
+
*/
|
|
40
|
+
salvaJSON(props: SaveJSONProps): void;
|
|
41
|
+
/**
|
|
42
|
+
* Método responsável por gravar os XML recebidos em disco
|
|
43
|
+
*/
|
|
44
|
+
salvaXMLFromJson(config: NFeWizardProps, xmlInJson: any, fileName?: string, metodo?: string): void;
|
|
45
|
+
salvaXML(props: SaveXMLProps): void;
|
|
46
|
+
/**
|
|
47
|
+
* Recupera url para action e metoodo do SOAP
|
|
48
|
+
*/
|
|
49
|
+
getSoapInfo1(uf: string, metodo: string): {
|
|
50
|
+
method: string;
|
|
51
|
+
action: string;
|
|
52
|
+
};
|
|
53
|
+
getSoapInfo(uf: string, method: string): {
|
|
54
|
+
method: any;
|
|
55
|
+
action: any;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Marco, adicionei este metodo para concatenar todas url incluido as na Usar, mas no fim nao precisei usar por enquanto
|
|
59
|
+
* @param chave
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
getLatestURLConsultaFix(chave: string): Record<string, string>;
|
|
63
|
+
getLatestURLConsulta(data: Record<string, string>, metodo: string): string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Define o ambiente (UF e Produção ou Homologação) para geração das chaves de recuperação da URL do webservice
|
|
66
|
+
*/
|
|
67
|
+
setAmbiente(metodo: string, ambienteNacional: boolean | undefined, versao: string, mod: string): {
|
|
68
|
+
chaveMae: string;
|
|
69
|
+
chaveFilha: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Retorna a url correta do webservice
|
|
73
|
+
*/
|
|
74
|
+
getWebServiceUrl(metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string): string;
|
|
75
|
+
getUrlNFCe(metodo: string, ambienteNacional?: boolean, versao?: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* Função para validar XML com Schema
|
|
78
|
+
*/
|
|
79
|
+
formatErrorMessage(message: string): string;
|
|
80
|
+
validateSchemaJsBased(xml: any, metodo: string): Promise<unknown>;
|
|
81
|
+
validateSchemaJavaBased(xml: any, metodo: string): Promise<unknown>;
|
|
82
|
+
verificaRejeicao(data: string, metodo: string, name?: string): GenericObject;
|
|
83
|
+
getProtNFe(xmlRetorno: string): {
|
|
84
|
+
protNFe: ProtNFe[] | undefined;
|
|
85
|
+
nRec: string;
|
|
86
|
+
};
|
|
87
|
+
private getRequestLogFileName;
|
|
88
|
+
salvaConsulta(xmlConsulta: string, xmlFormated: string, metodo: string, name?: string): void;
|
|
89
|
+
salvaRetorno(xmlRetorno: string, responseInJson: GenericObject | undefined, metodo: string, name?: string): void;
|
|
90
|
+
}
|
|
91
|
+
export { Utility };
|