nfewizard-io 0.5.2 → 0.5.4
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 +5 -4
- package/dist/cjs/adapters/NFeWizard.d.ts +7 -1
- package/dist/cjs/adapters/XmlBuilder.d.ts +1 -1
- package/dist/cjs/core/interfaces/CTEDistribuicaoDFeServiceImpl.d.ts +9 -0
- package/dist/cjs/core/interfaces/GerarConsultaImpl.d.ts +1 -1
- package/dist/cjs/core/interfaces/NFeWizardImpl.d.ts +4 -1
- package/dist/cjs/core/interfaces/NFeWizardServiceImpl.d.ts +4 -1
- package/dist/cjs/core/interfaces/index.d.ts +1 -0
- package/dist/cjs/core/types/CTEDistribuicaoDFe.d.ts +47 -0
- package/dist/cjs/core/types/NFEDanfeGenerator.d.ts +4 -0
- package/dist/cjs/core/types/index.d.ts +1 -0
- package/dist/cjs/core/utils/Utility.d.ts +2 -2
- package/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/modules/dfe/base/GerarConsulta.d.ts +3 -3
- package/dist/cjs/modules/dfe/cte/exemplo-uso.d.ts +23 -0
- package/dist/cjs/modules/dfe/cte/index.d.ts +7 -0
- package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
- package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
- package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
- package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
- package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
- package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +20 -0
- package/dist/cjs/modules/dfe/cte/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +22 -0
- package/dist/cjs/modules/dfe/nfe/services/NFeWizard/NFeWizardService.d.ts +7 -1
- package/dist/esm/adapters/NFeWizard.d.ts +7 -1
- package/dist/esm/adapters/XmlBuilder.d.ts +1 -1
- package/dist/esm/core/interfaces/CTEDistribuicaoDFeServiceImpl.d.ts +9 -0
- package/dist/esm/core/interfaces/GerarConsultaImpl.d.ts +1 -1
- package/dist/esm/core/interfaces/NFeWizardImpl.d.ts +4 -1
- package/dist/esm/core/interfaces/NFeWizardServiceImpl.d.ts +4 -1
- package/dist/esm/core/interfaces/index.d.ts +1 -0
- package/dist/esm/core/types/CTEDistribuicaoDFe.d.ts +47 -0
- package/dist/esm/core/types/NFEDanfeGenerator.d.ts +4 -0
- package/dist/esm/core/types/index.d.ts +1 -0
- package/dist/esm/core/utils/Utility.d.ts +2 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/dfe/base/GerarConsulta.d.ts +3 -3
- package/dist/esm/modules/dfe/cte/exemplo-uso.d.ts +23 -0
- package/dist/esm/modules/dfe/cte/index.d.ts +7 -0
- package/dist/esm/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.d.ts +7 -0
- package/dist/esm/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
- package/dist/esm/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
- package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.d.ts +10 -0
- package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts +10 -0
- package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.d.ts +20 -0
- package/dist/esm/modules/dfe/cte/services/CTEDistribuicaoDFe/util/DistribuicaoHandler.d.ts +22 -0
- package/dist/esm/modules/dfe/nfe/services/NFeWizard/NFeWizardService.d.ts +7 -1
- package/dist/resources/certs/AC_JUS_v6.crt +37 -0
- package/dist/resources/certs/AC_Safeweb_v12.crt +36 -0
- package/dist/resources/certs/AC_VALID_V12.crt +36 -0
- package/dist/resources/certs/Sectigo Public Server Authentication Root R46.crt +32 -0
- package/dist/resources/schemas/cte/distDFeInt_v1.00.xsd +71 -0
- package/dist/resources/schemas/cte/retDistDFeInt_v1.00.xsd +89 -0
- package/dist/resources/schemas/cte/tiposDistDFe_v1.00.xsd +243 -0
- package/dist/resources/schemas/cte/xmldsig-core-schema_v1.01.xsd +98 -0
- package/package.json +1 -1
|
@@ -7,12 +7,12 @@ declare class GerarConsulta implements GerarConsultaImpl {
|
|
|
7
7
|
environment: Environment;
|
|
8
8
|
xmlBuilder: XmlBuilder;
|
|
9
9
|
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder);
|
|
10
|
-
createSoapEnvelop(xmlConsulta: string, metodo: string, method: string, rootTag?: boolean, tag?: string): string;
|
|
11
|
-
gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string): Promise<{
|
|
10
|
+
createSoapEnvelop(xmlConsulta: string, metodo: string, method: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): string;
|
|
11
|
+
gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): Promise<{
|
|
12
12
|
xmlFormated: string;
|
|
13
13
|
agent: import("https").Agent;
|
|
14
14
|
webServiceUrl: string;
|
|
15
|
-
action:
|
|
15
|
+
action: any;
|
|
16
16
|
}>;
|
|
17
17
|
}
|
|
18
18
|
export default GerarConsulta;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exemplo 1: Consulta por último NSU
|
|
3
|
+
*
|
|
4
|
+
* Este método consulta todos os documentos disponíveis a partir do último NSU conhecido.
|
|
5
|
+
* É útil para sincronização incremental de documentos.
|
|
6
|
+
*/
|
|
7
|
+
declare function exemploPorUltNSU(): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Códigos de retorno comuns
|
|
10
|
+
*
|
|
11
|
+
* 137 - Nenhum documento localizado
|
|
12
|
+
* 138 - Documento localizado
|
|
13
|
+
* 656 - Consulta a ser processada
|
|
14
|
+
*/
|
|
15
|
+
export { exemploPorUltNSU, exemploPorNSU };
|
|
16
|
+
/**
|
|
17
|
+
* Códigos de retorno comuns
|
|
18
|
+
*
|
|
19
|
+
* 137 - Nenhum documento localizado
|
|
20
|
+
* 138 - Documento localizado
|
|
21
|
+
* 656 - Consulta a ser processada
|
|
22
|
+
*/
|
|
23
|
+
export { exemploPorUltNSU, exemploPorChave, exemploPorNSU };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as CTEDistribuicaoDFeService } from './services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
|
|
2
|
+
export { default as CTEDistribuicaoDFePorNSUService } from './services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js';
|
|
3
|
+
export { default as CTEDistribuicaoDFePorUltNSUService } from './services/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js';
|
|
4
|
+
export { default as CTEDistribuicaoDFe } from './operations/CTEDistribuicaoDFe/CTEDistribuicaoDFe.js';
|
|
5
|
+
export { default as CTEDistribuicaoDFePorNSU } from './operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorNSU.js';
|
|
6
|
+
export { default as CTEDistribuicaoDFePorUltNSU } from './operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.js';
|
|
7
|
+
export { default as DistribuicaoHandler } from './services/CTEDistribuicaoDFe/util/DistribuicaoHandler.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CTEDistribuicaoDFeServiceImpl } from '@Interfaces';
|
|
2
|
+
declare class CTEDistribuicaoDFe implements CTEDistribuicaoDFeServiceImpl {
|
|
3
|
+
cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl;
|
|
4
|
+
constructor(cteDistribuicaoDFeService: CTEDistribuicaoDFeServiceImpl);
|
|
5
|
+
Exec(data?: any): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
export default CTEDistribuicaoDFe;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Environment from '@Modules/environment/Environment.js';
|
|
2
|
+
import Utility from '@Utils/Utility.js';
|
|
3
|
+
import XmlBuilder from '@Adapters/XmlBuilder.js';
|
|
4
|
+
import { AxiosInstance } from 'axios';
|
|
5
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
|
|
6
|
+
import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
|
|
7
|
+
declare class CTEDistribuicaoDFePorNSU extends CTEDistribuicaoDFeService {
|
|
8
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
9
|
+
}
|
|
10
|
+
export default CTEDistribuicaoDFePorNSU;
|
package/dist/cjs/modules/dfe/cte/operations/CTEDistribuicaoDFe/CTEDistribuicaoDFePorUltNSU.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Environment from '@Modules/environment/Environment.js';
|
|
2
|
+
import Utility from '@Utils/Utility.js';
|
|
3
|
+
import XmlBuilder from '@Adapters/XmlBuilder.js';
|
|
4
|
+
import { AxiosInstance } from 'axios';
|
|
5
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
|
|
6
|
+
import CTEDistribuicaoDFeService from '../../services/CTEDistribuicaoDFe/CTEDistribuicaoDFeService.js';
|
|
7
|
+
declare class CTEDistribuicaoDFePorUltNSU extends CTEDistribuicaoDFeService {
|
|
8
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
9
|
+
}
|
|
10
|
+
export default CTEDistribuicaoDFePorUltNSU;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Environment from '@Modules/environment/Environment.js';
|
|
2
|
+
import Utility from '@Utils/Utility.js';
|
|
3
|
+
import XmlBuilder from '@Adapters/XmlBuilder.js';
|
|
4
|
+
import { AxiosInstance } from 'axios';
|
|
5
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
|
|
6
|
+
import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
|
|
7
|
+
declare class CTEDistribuicaoDFePorNSUService extends CTEDistribuicaoDFeService {
|
|
8
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
9
|
+
}
|
|
10
|
+
export default CTEDistribuicaoDFePorNSUService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Environment from '@Modules/environment/Environment.js';
|
|
2
|
+
import Utility from '@Utils/Utility.js';
|
|
3
|
+
import XmlBuilder from '@Adapters/XmlBuilder.js';
|
|
4
|
+
import { AxiosInstance } from 'axios';
|
|
5
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
|
|
6
|
+
import CTEDistribuicaoDFeService from './CTEDistribuicaoDFeService.js';
|
|
7
|
+
declare class CTEDistribuicaoDFePorUltNSUService extends CTEDistribuicaoDFeService {
|
|
8
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
9
|
+
}
|
|
10
|
+
export default CTEDistribuicaoDFePorUltNSUService;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
+
import Environment from '@Modules/environment/Environment.js';
|
|
3
|
+
import Utility from '@Utils/Utility.js';
|
|
4
|
+
import XmlBuilder from '@Adapters/XmlBuilder.js';
|
|
5
|
+
import { ConsultaNFe, GenericObject } from '@Types';
|
|
6
|
+
import BaseNFE from '@Modules/dfe/base/BaseNFe.js';
|
|
7
|
+
import { GerarConsultaImpl, SaveFilesImpl } from '@Interfaces';
|
|
8
|
+
import { Agent } from 'http';
|
|
9
|
+
declare class CTEDistribuicaoDFeService extends BaseNFE {
|
|
10
|
+
constructor(environment: Environment, utility: Utility, xmlBuilder: XmlBuilder, axios: AxiosInstance, saveFiles: SaveFilesImpl, gerarConsulta: GerarConsultaImpl);
|
|
11
|
+
protected gerarXml(data: ConsultaNFe): string;
|
|
12
|
+
gerarXmlCTeDistribuicaoDFe(data: ConsultaNFe): string;
|
|
13
|
+
protected callWebService(xmlConsulta: string, webServiceUrl: string, ContentType: string, action: string, agent: Agent): Promise<AxiosResponse<any, any>>;
|
|
14
|
+
Exec(data: ConsultaNFe): Promise<{
|
|
15
|
+
data: GenericObject;
|
|
16
|
+
xMotivo: any;
|
|
17
|
+
filesList: string[];
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export default CTEDistribuicaoDFeService;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Utility from '@Utils/Utility.js';
|
|
2
|
+
import { GenericObject } from '@Types';
|
|
3
|
+
import Environment from '@Modules/environment/Environment.js';
|
|
4
|
+
import { AxiosResponse } from 'axios';
|
|
5
|
+
declare class DistribuicaoHandler {
|
|
6
|
+
environment: Environment;
|
|
7
|
+
utility: Utility;
|
|
8
|
+
metodo: string;
|
|
9
|
+
constructor(environment: Environment, utility: Utility, metodo: string);
|
|
10
|
+
/**
|
|
11
|
+
* Métodos para tratativas do DistribuicaoDFe do CTe
|
|
12
|
+
*/
|
|
13
|
+
protected salvaArquivos(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
|
|
14
|
+
deCompressDFeXML(loteDistDFeInt: AxiosResponse<any, any>, metodo: string, xmlConsulta: string): string[];
|
|
15
|
+
decodeDocZip(docZip: any): string;
|
|
16
|
+
removeSignatureTag(xmlString: string): string;
|
|
17
|
+
parseXml(xmlString: string): undefined;
|
|
18
|
+
getChCTe(parsedResult: GenericObject): any;
|
|
19
|
+
getTipo(parsedResult: GenericObject): "res" | "event" | "proc";
|
|
20
|
+
handleResponse(XMLDistribuicaoInJson: GenericObject, XMLDistribuicao: string, chCTe: string): void;
|
|
21
|
+
}
|
|
22
|
+
export default DistribuicaoHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NFeWizardServiceImpl } from '@Interfaces';
|
|
2
|
-
import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, InutilizacaoData, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada } from '@Types';
|
|
2
|
+
import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, ConsultaCTe, DFePorUltimoNSUCTe, DFePorNSUCTe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, InutilizacaoData, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada } from '@Types';
|
|
3
3
|
declare class NFeWizardService implements NFeWizardServiceImpl {
|
|
4
4
|
private config;
|
|
5
5
|
private environment;
|
|
@@ -38,6 +38,12 @@ declare class NFeWizardService implements NFeWizardServiceImpl {
|
|
|
38
38
|
NFE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSU): Promise<any>;
|
|
39
39
|
NFE_DistribuicaoDFePorNSU(data: DFePorNSU): Promise<any>;
|
|
40
40
|
NFE_DistribuicaoDFePorChave(data: DFePorChaveNFe): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Distribuição DFe CTe
|
|
43
|
+
*/
|
|
44
|
+
CTE_DistribuicaoDFe(data: ConsultaCTe): Promise<any>;
|
|
45
|
+
CTE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<import("@Types").GenericObject>;
|
|
46
|
+
CTE_DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<import("@Types").GenericObject>;
|
|
41
47
|
/**
|
|
42
48
|
* Autorização
|
|
43
49
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NFeWizardProps, EventoNFe, ConsultaNFe, NFe, InutilizacaoData, NFEGerarDanfeProps, DFePorChaveNFe, DFePorUltimoNSU, DFePorNSU, Cancelamento, CienciaDaOperacao, ConfirmacaoDaOperacao, OperacaoNaoRealizada, CartaDeCorrecao, DesconhecimentoDaOperacao, EPEC, EmailParams } from 'src/core/types';
|
|
1
|
+
import { NFeWizardProps, EventoNFe, ConsultaNFe, ConsultaCTe, DFePorUltimoNSUCTe, DFePorNSUCTe, NFe, InutilizacaoData, NFEGerarDanfeProps, DFePorChaveNFe, DFePorUltimoNSU, DFePorNSU, Cancelamento, CienciaDaOperacao, ConfirmacaoDaOperacao, OperacaoNaoRealizada, CartaDeCorrecao, DesconhecimentoDaOperacao, EPEC, EmailParams } from 'src/core/types';
|
|
2
2
|
import { NFeWizardImpl } from '@Interfaces';
|
|
3
3
|
export default class NFeWizard implements NFeWizardImpl {
|
|
4
4
|
private nfeWizardService;
|
|
@@ -32,6 +32,12 @@ export default class NFeWizard implements NFeWizardImpl {
|
|
|
32
32
|
NFE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSU): Promise<import("src/core/types").GenericObject>;
|
|
33
33
|
NFE_DistribuicaoDFePorNSU(data: DFePorNSU): Promise<import("src/core/types").GenericObject>;
|
|
34
34
|
NFE_DistribuicaoDFePorChave(data: DFePorChaveNFe): Promise<import("src/core/types").GenericObject>;
|
|
35
|
+
/**
|
|
36
|
+
* Distribuição DFe CTe
|
|
37
|
+
*/
|
|
38
|
+
CTE_DistribuicaoDFe(data: ConsultaCTe): Promise<import("src/core/types").GenericObject>;
|
|
39
|
+
CTE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<import("src/core/types").GenericObject>;
|
|
40
|
+
CTE_DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<import("src/core/types").GenericObject>;
|
|
35
41
|
/**
|
|
36
42
|
* Autorização
|
|
37
43
|
*/
|
|
@@ -26,6 +26,6 @@ declare class XmlBuilder {
|
|
|
26
26
|
/**
|
|
27
27
|
* Método utilizado para cirar um envelop SOAP - Formato de mensagem para serviço SOAP (como o da SEFAZ)
|
|
28
28
|
*/
|
|
29
|
-
buildSoapEnvelope(xml: string, soapMethod: string, soapVersion?: string, rootTagObj?: any): string;
|
|
29
|
+
buildSoapEnvelope(xml: string, soapMethod: string, soapVersion?: string, rootTagObj?: any, dadosMsgTag?: string): string;
|
|
30
30
|
}
|
|
31
31
|
export default XmlBuilder;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConsultaNFe } from '@Types/NFEDistribuicaoDFe';
|
|
2
|
+
import { GenericObject } from '@Types/Utils';
|
|
3
|
+
export interface CTEDistribuicaoDFeServiceImpl {
|
|
4
|
+
Exec(data: ConsultaNFe): Promise<{
|
|
5
|
+
data: GenericObject;
|
|
6
|
+
xMotivo: any;
|
|
7
|
+
filesList: string[];
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Agent } from 'http';
|
|
2
2
|
export interface GerarConsultaImpl {
|
|
3
|
-
gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string): Promise<{
|
|
3
|
+
gerarConsulta(xmlConsulta: string, metodo: string, ambienteNacional?: boolean, versao?: string, mod?: string, rootTag?: boolean, tag?: string, dadosMsgTag?: string): Promise<{
|
|
4
4
|
xmlFormated: string;
|
|
5
5
|
agent: Agent;
|
|
6
6
|
webServiceUrl: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, GenericObject, InutilizacaoData, LayoutNFe, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada, ProtNFe } from '@Types';
|
|
1
|
+
import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, ConsultaCTe, DFePorUltimoNSUCTe, DFePorNSUCTe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, GenericObject, InutilizacaoData, LayoutNFe, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada, ProtNFe } from '@Types';
|
|
2
2
|
export interface NFeWizardImpl {
|
|
3
3
|
NFE_LoadEnvironment({ config }: {
|
|
4
4
|
config: NFeWizardProps;
|
|
@@ -17,6 +17,9 @@ export interface NFeWizardImpl {
|
|
|
17
17
|
NFE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSU): Promise<GenericObject>;
|
|
18
18
|
NFE_DistribuicaoDFePorNSU(data: DFePorNSU): Promise<GenericObject>;
|
|
19
19
|
NFE_DistribuicaoDFePorChave(data: DFePorChaveNFe): Promise<GenericObject>;
|
|
20
|
+
CTE_DistribuicaoDFe(data: ConsultaCTe): Promise<GenericObject>;
|
|
21
|
+
CTE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<GenericObject>;
|
|
22
|
+
CTE_DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<GenericObject>;
|
|
20
23
|
NFE_Autorizacao(data: NFe): Promise<{
|
|
21
24
|
NFe: LayoutNFe;
|
|
22
25
|
protNFe: ProtNFe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, GenericObject, InutilizacaoData, LayoutNFe, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada, ProtNFe } from '@Types';
|
|
1
|
+
import { Cancelamento, CartaDeCorrecao, CienciaDaOperacao, ConfirmacaoDaOperacao, ConsultaNFe, ConsultaCTe, DFePorUltimoNSUCTe, DFePorNSUCTe, DesconhecimentoDaOperacao, DFePorChaveNFe, DFePorNSU, DFePorUltimoNSU, EmailParams, EPEC, EventoNFe, GenericObject, InutilizacaoData, LayoutNFe, NFe, NFEGerarDanfeProps, NFeWizardProps, OperacaoNaoRealizada, ProtNFe } from '@Types';
|
|
2
2
|
export interface NFeWizardServiceImpl {
|
|
3
3
|
NFE_LoadEnvironment({ config }: {
|
|
4
4
|
config: NFeWizardProps;
|
|
@@ -17,6 +17,9 @@ export interface NFeWizardServiceImpl {
|
|
|
17
17
|
NFE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSU): Promise<GenericObject>;
|
|
18
18
|
NFE_DistribuicaoDFePorNSU(data: DFePorNSU): Promise<GenericObject>;
|
|
19
19
|
NFE_DistribuicaoDFePorChave(data: DFePorChaveNFe): Promise<GenericObject>;
|
|
20
|
+
CTE_DistribuicaoDFe(data: ConsultaCTe): Promise<GenericObject>;
|
|
21
|
+
CTE_DistribuicaoDFePorUltNSU(data: DFePorUltimoNSUCTe): Promise<GenericObject>;
|
|
22
|
+
CTE_DistribuicaoDFePorNSU(data: DFePorNSUCTe): Promise<GenericObject>;
|
|
20
23
|
NFE_Autorizacao(data: NFe): Promise<{
|
|
21
24
|
NFe: LayoutNFe;
|
|
22
25
|
protNFe: ProtNFe;
|
|
@@ -8,6 +8,7 @@ export * from './NFEconsultaProtocoloServiceImpl';
|
|
|
8
8
|
export * from './NFERecepcaoEventoServiceImpl';
|
|
9
9
|
export * from './HttpClient';
|
|
10
10
|
export * from './NFEDistribuicaoDFeServiceImpl';
|
|
11
|
+
export * from './CTEDistribuicaoDFeServiceImpl';
|
|
11
12
|
export * from './NFEInutilizacaoServiceImpl';
|
|
12
13
|
export * from './NFERetornoAutorizacaoServiceImpl';
|
|
13
14
|
export * from './NFCEAutorizacaoServiceImpl';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type ConsultaCTe = DFePorUltimoNSUCTe | DFePorNSUCTe;
|
|
2
|
+
export interface DFePorUltimoNSUCTe {
|
|
3
|
+
/**
|
|
4
|
+
* @param {number} cUFAutor - Código da UF do Autor
|
|
5
|
+
*/
|
|
6
|
+
cUFAutor: number;
|
|
7
|
+
/**
|
|
8
|
+
* @param {string} CNPJ - CNPJ do interessado no DF-e
|
|
9
|
+
*/
|
|
10
|
+
CNPJ?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @param {string} CPF - CPF do interessado no DF-e
|
|
13
|
+
*/
|
|
14
|
+
CPF?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @param {any} distNSU - Grupo para distribuir DF-e de interesse
|
|
17
|
+
*/
|
|
18
|
+
distNSU: {
|
|
19
|
+
/**
|
|
20
|
+
* @param {number} ultNSU - Último NSU recebido pelo ator. Caso seja informado com zero, ou com um NSU muito antigo, a consulta retornará unicamente as informações resumidas e documentos fiscais eletrônicos que tenham sido recepcionados pelo Ambiente Nacional nos últimos 3 meses.
|
|
21
|
+
*/
|
|
22
|
+
ultNSU: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface DFePorNSUCTe {
|
|
26
|
+
/**
|
|
27
|
+
* @param {number} cUFAutor - Código da UF do Autor
|
|
28
|
+
*/
|
|
29
|
+
cUFAutor: number;
|
|
30
|
+
/**
|
|
31
|
+
* @param {string} CNPJ - CNPJ do interessado no DF-e
|
|
32
|
+
*/
|
|
33
|
+
CNPJ?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @param {string} CPF - CPF do interessado no DF-e
|
|
36
|
+
*/
|
|
37
|
+
CPF?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @param {any} consNSU - Grupo para consultar um DF-e a partir de um NSU específico
|
|
40
|
+
*/
|
|
41
|
+
consNSU: {
|
|
42
|
+
/**
|
|
43
|
+
* @param {string} NSU - Número Sequencial Único. Geralmente esta consulta será utilizada quando identificado que existe um documento a ser buscado através de consulta prévia.
|
|
44
|
+
*/
|
|
45
|
+
NSU: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -12,6 +12,10 @@ export type NFEGerarDanfeProps = {
|
|
|
12
12
|
* @param {ProtNFe} protNFe - Dados da aturoziação de uso da NFe
|
|
13
13
|
*/
|
|
14
14
|
protNFe?: ProtNFe;
|
|
15
|
+
/**
|
|
16
|
+
* @param {ProtNFe} protNFe - Força remoção da mensagem de "NFe não transmitida"
|
|
17
|
+
*/
|
|
18
|
+
forceTransmitida?: boolean;
|
|
15
19
|
};
|
|
16
20
|
/**
|
|
17
21
|
* @param {string} chave - Chave da NFe
|
|
@@ -2,6 +2,7 @@ export * from './EmailConfig';
|
|
|
2
2
|
export * from './NFEAutorizacao';
|
|
3
3
|
export * from './NFEDanfeGenerator';
|
|
4
4
|
export * from './NFEDistribuicaoDFe';
|
|
5
|
+
export * from './CTEDistribuicaoDFe';
|
|
5
6
|
export * from './NFEInutilizacao';
|
|
6
7
|
export * from './NFERecepcaoEvento';
|
|
7
8
|
export * from './NFeWizard';
|
|
@@ -50,8 +50,8 @@ declare class Utility {
|
|
|
50
50
|
action: string;
|
|
51
51
|
};
|
|
52
52
|
getSoapInfo(uf: string, method: string): {
|
|
53
|
-
method:
|
|
54
|
-
action:
|
|
53
|
+
method: any;
|
|
54
|
+
action: any;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
57
|
* Marco, adicionei este metodo para concatenar todas url incluido as na Usar, mas no fim nao precisei usar por enquanto
|