node-sped-nfe 1.2.50 → 1.2.52
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/README.md
CHANGED
|
@@ -71,16 +71,17 @@ Toda a documentação completa com guias, exemplos, status SEFAZ e muito mais es
|
|
|
71
71
|
| Manifestação de Destinatário - Desconhecimento da Operação (210220) | ✅ |
|
|
72
72
|
| Manifestação de Destinatário - Operação Não Realizada (210240) | ✅ |
|
|
73
73
|
|
|
74
|
-
##
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
</
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
## 📄 XML para DANFE (PDF)
|
|
75
|
+
Esta biblioteca permite a conversão de arquivos XML em documentos PDF, com suporte para execução tanto no backend quanto no frontend.
|
|
76
|
+
<div align="center">
|
|
77
|
+
<a href="https://www.npmjs.com/package/node-sped-pdf">
|
|
78
|
+
🧾 <strong>node-sped-pdf</strong>
|
|
79
|
+
</a>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## ❤️ Apoie o Projeto
|
|
85
|
+
Se esta biblioteca te ajuda no dia a dia e voce quiser apoiar a continuidade do projeto, voce pode contribuir via PIX:
|
|
86
|
+
|
|
87
|
+
`47506306000188`
|
package/dist/utils/tools.js
CHANGED
|
@@ -103,7 +103,7 @@ class Tools {
|
|
|
103
103
|
method: 'POST',
|
|
104
104
|
headers: {
|
|
105
105
|
'Content-Type': 'application/soap+xml; charset=utf-8',
|
|
106
|
-
'Content-Length': xmlSing
|
|
106
|
+
'Content-Length': Buffer.byteLength(xmlSing, 'utf8'),
|
|
107
107
|
},
|
|
108
108
|
rejectUnauthorized: false
|
|
109
109
|
},
|
|
@@ -178,7 +178,7 @@ class Tools {
|
|
|
178
178
|
method: 'POST',
|
|
179
179
|
headers: {
|
|
180
180
|
'Content-Type': 'application/soap+xml; charset=utf-8',
|
|
181
|
-
'Content-Length': xmlLote
|
|
181
|
+
'Content-Length': Buffer.byteLength(xmlLote, 'utf8'),
|
|
182
182
|
},
|
|
183
183
|
rejectUnauthorized: false
|
|
184
184
|
},
|
|
@@ -310,7 +310,7 @@ class Tools {
|
|
|
310
310
|
method: 'POST',
|
|
311
311
|
headers: {
|
|
312
312
|
'Content-Type': 'application/soap+xml; charset=utf-8',
|
|
313
|
-
'Content-Length': xml
|
|
313
|
+
'Content-Length': Buffer.byteLength(xml, 'utf8'),
|
|
314
314
|
},
|
|
315
315
|
rejectUnauthorized: false,
|
|
316
316
|
...await __classPrivateFieldGet(this, _Tools_instances, "m", _Tools_certTools).call(this)
|
|
@@ -422,7 +422,7 @@ class Tools {
|
|
|
422
422
|
method: 'POST',
|
|
423
423
|
headers: {
|
|
424
424
|
'Content-Type': 'application/soap+xml; charset=utf-8',
|
|
425
|
-
'Content-Length': xmlSing
|
|
425
|
+
'Content-Length': Buffer.byteLength(xmlSing, 'utf8'),
|
|
426
426
|
},
|
|
427
427
|
rejectUnauthorized: false,
|
|
428
428
|
},
|
|
@@ -519,7 +519,7 @@ class Tools {
|
|
|
519
519
|
method: 'POST',
|
|
520
520
|
headers: {
|
|
521
521
|
'Content-Type': 'application/soap+xml; charset=utf-8',
|
|
522
|
-
'Content-Length': xmlSing
|
|
522
|
+
'Content-Length': Buffer.byteLength(xmlSing, 'utf8'),
|
|
523
523
|
},
|
|
524
524
|
rejectUnauthorized: false
|
|
525
525
|
},
|
|
@@ -598,7 +598,7 @@ class Tools {
|
|
|
598
598
|
method: 'POST',
|
|
599
599
|
headers: {
|
|
600
600
|
'Content-Type': 'application/soap+xml; charset=utf-8',
|
|
601
|
-
'Content-Length': xml
|
|
601
|
+
'Content-Length': Buffer.byteLength(xml, 'utf8'),
|
|
602
602
|
'SOAPAction': 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico4/nfeStatusServicoNF'
|
|
603
603
|
},
|
|
604
604
|
rejectUnauthorized: false
|
|
File without changes
|
|
@@ -86,6 +86,7 @@ const extras = {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
+
// eventosCont = Eventos de contingencia
|
|
89
90
|
const eventosCont = (UF) => {
|
|
90
91
|
switch (UF) {
|
|
91
92
|
case 'AC':
|
|
@@ -123,6 +124,27 @@ const eventosCont = (UF) => {
|
|
|
123
124
|
};
|
|
124
125
|
const eventos = (UF) => {
|
|
125
126
|
switch (UF) {
|
|
127
|
+
case 'AN':
|
|
128
|
+
return {
|
|
129
|
+
"homologacao": {
|
|
130
|
+
"NFeStatusServico": "https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
131
|
+
"NFeAutorizacao": "https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
132
|
+
"NFeConsultaProtocolo": "https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
133
|
+
"NFeInutilizacao": "https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
134
|
+
"NFeRetAutorizacao": "https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
135
|
+
"NFeRecepcaoEvento": "https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
136
|
+
"NFeConsultaCadastro": ""
|
|
137
|
+
},
|
|
138
|
+
"producao": {
|
|
139
|
+
"NFeStatusServico": "https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx",
|
|
140
|
+
"NFeAutorizacao": "https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx",
|
|
141
|
+
"NFeConsultaProtocolo": "https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx",
|
|
142
|
+
"NFeInutilizacao": "https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx",
|
|
143
|
+
"NFeRetAutorizacao": "https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",
|
|
144
|
+
"NFeRecepcaoEvento": "https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx",
|
|
145
|
+
"NFeConsultaCadastro": ""
|
|
146
|
+
}
|
|
147
|
+
};
|
|
126
148
|
case 'AM':
|
|
127
149
|
return {
|
|
128
150
|
"homologacao": {
|
|
File without changes
|
|
File without changes
|