nfets 0.0.108 → 0.0.110

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.
@@ -1,11 +1,7 @@
1
- import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, x as NFeTsError, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ac as Either, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ad as Left, ae as Right, N as Namespaced } from '../xml-signer-C-vXjWBX.cjs';
1
+ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, x as NFeTsError, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ab as Either, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, ag as DeepPartial, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ac as Left, ad as Right, N as Namespaced } from '../types-U8m3n2L8.cjs';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
5
- type DeepPartial<T> = T extends object ? {
6
- [P in keyof T]?: DeepPartial<NonNullable<T[P]>>;
7
- } : T;
8
-
9
5
  interface AccessKey {
10
6
  cUF: string | number;
11
7
  year: string | number;
@@ -1219,7 +1215,6 @@ interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
1219
1215
  idLote?: string;
1220
1216
  indSinc?: '0' | '1';
1221
1217
  NFe: T;
1222
- timeout?: number;
1223
1218
  }
1224
1219
  interface AutorizacaoRequest<E extends NFe$1, T extends E | E[]> {
1225
1220
  enviNFe: AutorizacaoPayload<E, T>;
@@ -1657,6 +1652,7 @@ interface NfeTransmitterOptions extends TransmitterOptions {
1657
1652
  schema?: Schema;
1658
1653
  tpAmb: EnvironmentCode;
1659
1654
  contingency?: ContingencyOptions;
1655
+ timeout?: number;
1660
1656
  }
1661
1657
  interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
1662
1658
  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 +3262,9 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
3266
3262
  consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
3267
3263
  inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
3268
3264
  consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
3269
- autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
3265
+ autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>, options?: {
3266
+ timeout?: number;
3267
+ }): Promise<Either<NFeTsError, AutorizacaoResponse>>;
3270
3268
  retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
3271
3269
  recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
3272
3270
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
@@ -3301,10 +3299,9 @@ interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
3301
3299
  idLote?: string;
3302
3300
  indSinc?: '0' | '1';
3303
3301
  xml: T;
3304
- timeout?: number;
3305
3302
  }
3306
3303
  declare class NfeAuthorizerPipeline extends TransmissionPipeline {
3307
- execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3304
+ execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema' | 'timeout'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3308
3305
  protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
3309
3306
  protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
3310
3307
  protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
@@ -1,11 +1,7 @@
1
- import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, x as NFeTsError, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ac as Either, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ad as Left, ae as Right, N as Namespaced } from '../xml-signer-C-vXjWBX.js';
1
+ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, x as NFeTsError, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ab as Either, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, ag as DeepPartial, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ac as Left, ad as Right, N as Namespaced } from '../types-U8m3n2L8.js';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
5
- type DeepPartial<T> = T extends object ? {
6
- [P in keyof T]?: DeepPartial<NonNullable<T[P]>>;
7
- } : T;
8
-
9
5
  interface AccessKey {
10
6
  cUF: string | number;
11
7
  year: string | number;
@@ -1219,7 +1215,6 @@ interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
1219
1215
  idLote?: string;
1220
1216
  indSinc?: '0' | '1';
1221
1217
  NFe: T;
1222
- timeout?: number;
1223
1218
  }
1224
1219
  interface AutorizacaoRequest<E extends NFe$1, T extends E | E[]> {
1225
1220
  enviNFe: AutorizacaoPayload<E, T>;
@@ -1657,6 +1652,7 @@ interface NfeTransmitterOptions extends TransmitterOptions {
1657
1652
  schema?: Schema;
1658
1653
  tpAmb: EnvironmentCode;
1659
1654
  contingency?: ContingencyOptions;
1655
+ timeout?: number;
1660
1656
  }
1661
1657
  interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
1662
1658
  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 +3262,9 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
3266
3262
  consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
3267
3263
  inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
3268
3264
  consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
3269
- autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
3265
+ autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>, options?: {
3266
+ timeout?: number;
3267
+ }): Promise<Either<NFeTsError, AutorizacaoResponse>>;
3270
3268
  retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
3271
3269
  recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
3272
3270
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
@@ -3301,10 +3299,9 @@ interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
3301
3299
  idLote?: string;
3302
3300
  indSinc?: '0' | '1';
3303
3301
  xml: T;
3304
- timeout?: number;
3305
3302
  }
3306
3303
  declare class NfeAuthorizerPipeline extends TransmissionPipeline {
3307
- execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3304
+ execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema' | 'timeout'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3308
3305
  protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
3309
3306
  protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
3310
3307
  protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;