Skip to content

Commit 107f980

Browse files
committed
feat: Ajusta nome da lib
1 parent 644287b commit 107f980

File tree

26 files changed

+184
-180
lines changed

26 files changed

+184
-180
lines changed

docs/configuracaoDeAmbiente.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuração de Ambiente
22

3-
Repositório do projeto [NFeWizard](https://github.com/nfewizard).
3+
Repositório do projeto [NFeWizard-io](https://github.com/nfewizard-org/nfewizard-io).
44

55
### DFE
66

docs/index.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Home
22

3-
Repositório do projeto [NFeWizard](https://github.com/nfewizard).
3+
Repositório do projeto [NFeWizard-io](https://github.com/nfewizard-org/nfewizard-io).
44
<div style="height: 200px; display: flex; justify-content: center; align-items: center; width: 200px;">
55
<img src="assets/logo.jpg" />
66
</div>
77

88
## Sobre
99

10-
NFeWizard é uma biblioteca Node.js projetada para simplificar a interação com os webservices da SEFAZ, proporcionando uma solução robusta para automação de processos relacionados à Nota Fiscal Eletrônica (NF-e). A biblioteca oferece métodos abrangentes para diversas operações fiscais, incluindo:
10+
NFeWizard-io é uma biblioteca Node.js projetada para simplificar a interação com os webservices da SEFAZ, proporcionando uma solução robusta para automação de processos relacionados à Nota Fiscal Eletrônica (NF-e). A biblioteca oferece métodos abrangentes para diversas operações fiscais, incluindo:
1111

1212
- **Autorização (Emissão de NFe)**: Submissão de notas fiscais eletrônicas para autorização.
1313
- **Distribuição DFe**: Consulta e Download de DF-e (Documentos fiscais eletrônicos), facilitando o acesso a documentos fiscais eletrônicos.
@@ -26,17 +26,19 @@ NFeWizard é uma biblioteca Node.js projetada para simplificar a interação com
2626

2727
<br>
2828
!!! Quote "Instalação"
29-
npm install nfewizard<br>
30-
yarn add nfewizard
29+
npm install nfewizard-io<br>
30+
yarn add nfewizard-io
3131

3232
## Exemplo de Utilização
3333

3434
```typescript
35+
import NFeWizard from 'nfewizard-io';
36+
3537
// Instanciar
36-
const nfeWizard = new NFeWizard();
38+
const nfewizard = new NFeWizard();
3739

3840
// Inicializar
39-
await nfeWizard.NFE_LoadEnvironment({
41+
await nfewizard.NFE_LoadEnvironment({
4042
config: {
4143
dfe: {
4244
baixarXMLDistribuicao: true,
@@ -90,7 +92,7 @@ const chaveNFe: DFePorChaveNFe = {
9092
},
9193
}
9294

93-
await nfeWizard.NFE_DistribuicaoDFePorChave(chaveNFe);
95+
await nfewizard.NFE_DistribuicaoDFePorChave(chaveNFe);
9496
```
9597

9698
<!-- ## Documentação
@@ -122,7 +124,7 @@ Primeiramente, obrigado por considerar contribuir para nossa biblioteca! Nosso p
122124

123125
Você pode contribuir através das seguintes plataformas:
124126

125-
- [GitHub Sponsors - Pendente](https://nfewizard-org.github.io/)
127+
- [GitHub Sponsors - Pendente](https://NFeWizard-org.github.io/)
126128
- **Pix**: Se preferir doar via Pix, utilize a seguinte chave:
127129

128130
```

docs/nfeAutorizacao.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const autorizacao: NFe = {
175175
],
176176
};
177177

178-
await nfeWizard.NFE_Autorizacao(autorizacao);
178+
await nfewizard.NFE_Autorizacao(autorizacao);
179179
```
180180
<br>
181181

docs/nfeConsultaProtocolo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
```typescript title="NFE_ConsultaStatusServico" linenums="1"
16-
await nfeWizard.NFE_ConsultaProtocolo('99999999999999999999999999999999999999999999');
16+
await nfewizard.NFE_ConsultaProtocolo('99999999999999999999999999999999999999999999');
1717
```
1818
<br>
1919

docs/nfeDistribuicaoDfe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const distribuicao: ConsultaNFe = {
4343
}
4444
}
4545

46-
await nfeWizard.NFE_DistribuicaoDFe(distribuicao);
46+
await nfewizard.NFE_DistribuicaoDFe(distribuicao);
4747
```
4848
<br>
4949
Também é possível utilizar o método especifico para cada tipo de distribuição:
@@ -65,7 +65,7 @@ const ultimoNSU: DFePorUltimoNSU = {
6565
},
6666
}
6767

68-
await nfeWizard.NFE_DistribuicaoDFePorUltNSU(ultimoNSU);
68+
await nfewizard.NFE_DistribuicaoDFePorUltNSU(ultimoNSU);
6969
```
7070

7171
`Retorno`:
@@ -121,7 +121,7 @@ const nsu: DFePorNSU = {
121121
},
122122
}
123123

124-
await nfeWizard.NFE_DistribuicaoDFePorNSU(nsu);
124+
await nfewizard.NFE_DistribuicaoDFePorNSU(nsu);
125125
```
126126

127127
`Retorno`:
@@ -169,7 +169,7 @@ const chave: DFePorChaveNFe = {
169169
},
170170
}
171171

172-
await nfeWizard.NFE_DistribuicaoDFePorChave(chave);
172+
await nfewizard.NFE_DistribuicaoDFePorChave(chave);
173173
```
174174

175175
`Retorno`:

docs/nfeEnviaEmail.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br>
77

88
```typescript title="NFE_EnviaEmail" linenums="1"
9-
const nfeWizard = new NFeWizard();
9+
const nfewizard = new NFeWizard();
1010

1111
const messageExample = `
1212
<!DOCTYPE html>
@@ -105,7 +105,7 @@ const messageExample = `
105105
</html>
106106
`;
107107

108-
nfeWizard.NFE_EnviaEmail({
108+
nfewizard.NFE_EnviaEmail({
109109
messageExample,
110110
subject: 'Envio de DANFE e NF-e',
111111
attachments: [

docs/nfeGerarDanfe.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const autorizacao: NFe | NFeDanfe = {
183183
],
184184
};
185185

186-
await nfeWizard.NFE_GerarDanfe({
186+
await nfewizard.NFE_GerarDanfe({
187187
chave: '99999999999999999999999999999999999999999999',
188188
data: {
189189
NFe: autorizacao.NFe
@@ -216,11 +216,11 @@ const autorizacao: NFeDanfe = {
216216
NFe: [...],
217217
};
218218

219-
const retorno = await nfeWizard.NFE_Autorizacao(autorizacao);
219+
const retorno = await nfewizard.NFE_Autorizacao(autorizacao);
220220

221221
// Gera DANFE da NFe transmitida
222222
const chave = retorno[0].protNFe.infProt.chNFe;
223-
await nfeWizard.NFE_GerarDanfe({
223+
await nfewizard.NFE_GerarDanfe({
224224
chave,
225225
data: retorno[0],
226226
outputPath: 'src/assets/DANFE.pdf'
@@ -259,7 +259,7 @@ const autorizacao: NFeDanfe = {
259259

260260
if (autorizacao.NFe instanceof Array) {
261261
autorizacao.NFe.forEach(async (NFe: LayoutNFe) => {
262-
await nfeWizard.NFE_GerarDanfe({
262+
await nfewizard.NFE_GerarDanfe({
263263
chave: '99999999999999999999999999999999999999999999',
264264
data: {
265265
NFe,
@@ -274,11 +274,11 @@ if (autorizacao.NFe instanceof Array) {
274274
* Exemplo com NFe já transmitida
275275
*/
276276

277-
const retorno = await nfeWizard.NFE_Autorizacao(autorizacao);
277+
const retorno = await nfewizard.NFE_Autorizacao(autorizacao);
278278

279279
retorno.forEach(async (NFe) => {
280280
const chave = NFe.protNFe.infProt.chNFe;
281-
await nfeWizard.NFE_GerarDanfe({
281+
await nfewizard.NFE_GerarDanfe({
282282
chave: chave,
283283
data: NFe,
284284
outputPath: `src/assets/DANFE-${chave}.pdf`

docs/nfeInicializarAmbiente.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Inicializar Ambiente
22

3-
Repositório do projeto [NFeWizard](https://github.com/nfewizard).
3+
Repositório do projeto [NFeWizard-io](https://github.com/nfewizard-org/nfewizard-io).
44

55
!!! Warning ""
66
`ATENÇÃO`: Após a inicialização do ambiente você será capaz de utilizar a biblioteca para se comunicar com os webservices da SEFAZ.
@@ -11,13 +11,15 @@ Para mais informações sobre opções de configuração consulte a sessão [`Co
1111
<br><br>
1212

1313
!!! Quote "Instalação"
14-
npm install nfewizard<br>
15-
yarn add nfewizard
14+
npm install nfewizard-io<br>
15+
yarn add nfewizard-io
1616

1717
```typescript title="NFE_LoadEnvironment" linenums="1"
18-
const nfeWizard = new NFeWizard();
18+
import NFeWizard from 'nfewizard-io';
1919

20-
await nfeWizard.NFE_LoadEnvironment({
20+
const nfewizard = new NFeWizard();
21+
22+
await nfewizard.NFE_LoadEnvironment({
2123
config: {
2224
dfe: {
2325
baixarXMLDistribuicao: true,

docs/nfeInutilizacao.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const inutilizacao: InutilizacaoData = {
3333
xJust: 'Teste de homologação',
3434
}
3535

36-
await nfeWizard.NFE_Inutilizacao(inutilizacao)
36+
await nfewizard.NFE_Inutilizacao(inutilizacao)
3737
```
3838
<br>
3939

docs/nfeRecepcaoEvento.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const evento: EventoNFe = {
170170
]
171171
}
172172

173-
await nfeWizard.NFE_RecepcaoEvento(evento);
173+
await nfewizard.NFE_RecepcaoEvento(evento);
174174
```
175175
<br>
176176
Também é possível utilizar o método especifico para cada tipo de evento:
@@ -206,7 +206,7 @@ const cienciaDaOperacao: CienciaDaOperacao = {
206206
]
207207
}
208208

209-
await nfeWizard.NFE_CienciaDaOperacao(cienciaDaOperacao);
209+
await nfewizard.NFE_CienciaDaOperacao(cienciaDaOperacao);
210210
```
211211

212212
`Retorno`:
@@ -288,7 +288,7 @@ const confirmacaoDaOperacao: ConfirmacaoDaOperacao = {
288288
]
289289
}
290290

291-
await nfeWizard.NFE_ConfirmacaoDaOperacao(confirmacaoDaOperacao);
291+
await nfewizard.NFE_ConfirmacaoDaOperacao(confirmacaoDaOperacao);
292292
```
293293

294294
`Retorno`:
@@ -372,7 +372,7 @@ const cartaDeCorrecao: CartaDeCorrecao = {
372372
]
373373
}
374374

375-
await nfeWizard.NFE_CartaDeCorrecao(cartaDeCorrecao);
375+
await nfewizard.NFE_CartaDeCorrecao(cartaDeCorrecao);
376376
```
377377

378378
`Retorno`:
@@ -456,7 +456,7 @@ const cancelamento: Cancelamento = {
456456
]
457457
}
458458

459-
await nfeWizard.NFE_Cancelamento(cancelamento);
459+
await nfewizard.NFE_Cancelamento(cancelamento);
460460
```
461461

462462
`Retorno`:
@@ -538,7 +538,7 @@ const desconhecimentoDaOperacao: DesconhecimentoDaOperacao = {
538538
]
539539
}
540540

541-
await nfeWizard.NFE_DesconhecimentoDaOperacao(desconhecimentoDaOperacao);
541+
await nfewizard.NFE_DesconhecimentoDaOperacao(desconhecimentoDaOperacao);
542542
```
543543

544544
`Retorno`:
@@ -621,7 +621,7 @@ const operacaoNaoRealizada: OperacaoNaoRealizada = {
621621
]
622622
}
623623

624-
await nfeWizard.NFE_OperacaoNaoRealizada(operacaoNaoRealizada);
624+
await nfewizard.NFE_OperacaoNaoRealizada(operacaoNaoRealizada);
625625
```
626626

627627
`Retorno`:
@@ -717,7 +717,7 @@ const epec: EPEC = {
717717
]
718718
}
719719

720-
await nfeWizard.NFE_EventoPrevioDeEmissaoEmContingencia(epec);
720+
await nfewizard.NFE_EventoPrevioDeEmissaoEmContingencia(epec);
721721
```
722722
<br>
723723
`Retorno`:

0 commit comments

Comments
 (0)