nfets 0.0.108 → 0.0.109
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/dist/chunk-24AGSZQQ.mjs +34 -0
- package/dist/core/index.mjs +228 -1
- package/dist/index.cjs +1 -278
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +30 -257
- package/dist/nfe/index.d.cts +5 -4
- package/dist/nfe/index.d.ts +5 -4
- package/dist/nfe/index.mjs +19 -1
- package/package.json +2 -1
- package/dist/chunk-23RWB4QQ.mjs +0 -1
- package/dist/chunk-EWZQUGA4.mjs +0 -259
- package/dist/chunk-W43MOHTT.mjs +0 -20
package/dist/nfe/index.d.cts
CHANGED
|
@@ -1219,7 +1219,6 @@ interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
|
|
|
1219
1219
|
idLote?: string;
|
|
1220
1220
|
indSinc?: '0' | '1';
|
|
1221
1221
|
NFe: T;
|
|
1222
|
-
timeout?: number;
|
|
1223
1222
|
}
|
|
1224
1223
|
interface AutorizacaoRequest<E extends NFe$1, T extends E | E[]> {
|
|
1225
1224
|
enviNFe: AutorizacaoPayload<E, T>;
|
|
@@ -1657,6 +1656,7 @@ interface NfeTransmitterOptions extends TransmitterOptions {
|
|
|
1657
1656
|
schema?: Schema;
|
|
1658
1657
|
tpAmb: EnvironmentCode;
|
|
1659
1658
|
contingency?: ContingencyOptions;
|
|
1659
|
+
timeout?: number;
|
|
1660
1660
|
}
|
|
1661
1661
|
interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
|
|
1662
1662
|
service<WS extends Record<string, unknown>, O extends Record<string, unknown>, S extends StateCode, E extends EnvironmentCode>(options: ServiceOptions<WS, O, S, E>): Service;
|
|
@@ -3266,7 +3266,9 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
|
|
|
3266
3266
|
consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
3267
3267
|
inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
3268
3268
|
consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
|
|
3269
|
-
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T
|
|
3269
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>, options?: {
|
|
3270
|
+
timeout?: number;
|
|
3271
|
+
}): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
3270
3272
|
retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
3271
3273
|
recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
|
|
3272
3274
|
consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
|
|
@@ -3301,10 +3303,9 @@ interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
|
|
|
3301
3303
|
idLote?: string;
|
|
3302
3304
|
indSinc?: '0' | '1';
|
|
3303
3305
|
xml: T;
|
|
3304
|
-
timeout?: number;
|
|
3305
3306
|
}
|
|
3306
3307
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3307
|
-
execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
|
|
3308
|
+
execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema' | 'timeout'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
|
|
3308
3309
|
protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
|
|
3309
3310
|
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
|
|
3310
3311
|
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -1219,7 +1219,6 @@ interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
|
|
|
1219
1219
|
idLote?: string;
|
|
1220
1220
|
indSinc?: '0' | '1';
|
|
1221
1221
|
NFe: T;
|
|
1222
|
-
timeout?: number;
|
|
1223
1222
|
}
|
|
1224
1223
|
interface AutorizacaoRequest<E extends NFe$1, T extends E | E[]> {
|
|
1225
1224
|
enviNFe: AutorizacaoPayload<E, T>;
|
|
@@ -1657,6 +1656,7 @@ interface NfeTransmitterOptions extends TransmitterOptions {
|
|
|
1657
1656
|
schema?: Schema;
|
|
1658
1657
|
tpAmb: EnvironmentCode;
|
|
1659
1658
|
contingency?: ContingencyOptions;
|
|
1659
|
+
timeout?: number;
|
|
1660
1660
|
}
|
|
1661
1661
|
interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
|
|
1662
1662
|
service<WS extends Record<string, unknown>, O extends Record<string, unknown>, S extends StateCode, E extends EnvironmentCode>(options: ServiceOptions<WS, O, S, E>): Service;
|
|
@@ -3266,7 +3266,9 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
|
|
|
3266
3266
|
consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
3267
3267
|
inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
3268
3268
|
consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
|
|
3269
|
-
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T
|
|
3269
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>, options?: {
|
|
3270
|
+
timeout?: number;
|
|
3271
|
+
}): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
3270
3272
|
retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
3271
3273
|
recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
|
|
3272
3274
|
consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
|
|
@@ -3301,10 +3303,9 @@ interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
|
|
|
3301
3303
|
idLote?: string;
|
|
3302
3304
|
indSinc?: '0' | '1';
|
|
3303
3305
|
xml: T;
|
|
3304
|
-
timeout?: number;
|
|
3305
3306
|
}
|
|
3306
3307
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3307
|
-
execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
|
|
3308
|
+
execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema' | 'timeout'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
|
|
3308
3309
|
protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
|
|
3309
3310
|
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
|
|
3310
3311
|
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|