nfets 0.0.92 → 0.0.94

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,4 +1,4 @@
1
- import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ac as Either, x as NFeTsError, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, a7 as SignerRepository, d as SignatureAlgorithm, ad as Left, ae as Right, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, N as Namespaced } from '../xml-signer-CCwIT1uC.cjs';
1
+ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ac as Either, x as NFeTsError, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, a7 as SignerRepository, d as SignatureAlgorithm, ad as Left, ae as Right, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, N as Namespaced } from '../xml-signer-E-132bo8.cjs';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
@@ -1244,7 +1244,7 @@ interface AsynchronousAutorizacaoResponse {
1244
1244
  };
1245
1245
  }
1246
1246
  type AutorizacaoResponse<E extends NFe$1 = NFe$1, T extends E | E[] = E | E[]> = SynchronousAutorizacaoResponse<T> | AsynchronousAutorizacaoResponse;
1247
- type PipelineAuthorizerResponse<E extends NFe$1, T extends E | E[]> = T extends E[] ? {
1247
+ type PipelineAuthorizerResponse<E extends NFe$1, T extends E | E[] = E | E[]> = T extends E[] ? {
1248
1248
  xml: string[];
1249
1249
  response: SynchronousAutorizacaoResponse<T>;
1250
1250
  } : {
@@ -1816,7 +1816,6 @@ interface InfSolicNFFBuilder<T extends object> {
1816
1816
  }
1817
1817
  interface AssembleNfeBuilder<T extends object> {
1818
1818
  quiet(): AssembleNfeBuilder<T>;
1819
- toObject(): Either<NFeTsError, T>;
1820
1819
  assemble(): Promise<Either<NFeTsError, string>>;
1821
1820
  }
1822
1821
  interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetGroupBuilder<T>, DestBuilder<T>, RetiradaBuilder<T>, EntregaBuilder<T>, AutXMLBuilder<T>, TotalBuilder<T>, TranspBuilder<T>, PagBuilder<T>, InfIntermedBuilder<T>, ExportaBuilder<T>, CompraBuilder<T>, CanaBuilder<T>, InfRespTecBuilder<T>, InfSolicNFFBuilder<T>, InfAdicBuilder<T>, AvulsaBuilder<T>, AssembleNfeBuilder<T> {
@@ -3278,14 +3277,21 @@ declare class NFe implements NFe$1 {
3278
3277
  Signature?: Signature;
3279
3278
  }
3280
3279
 
3280
+ interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
3281
+ cUF?: StateCode;
3282
+ tpAmb?: EnvironmentCode;
3283
+ idLote?: string;
3284
+ indSinc?: '0' | '1';
3285
+ xml: T;
3286
+ }
3281
3287
  declare class NfeAuthorizerPipeline extends TransmissionPipeline {
3282
- execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
3288
+ execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3283
3289
  protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
3284
3290
  protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
3285
3291
  protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
3286
- protected handleNfeBatch(certificate: ReadCertificateResponse, NFe: NFe | NFe[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
3292
+ protected handleNfeBatch(certificate: ReadCertificateResponse, xml: string | string[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
3287
3293
  protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
3288
- protected handleAsyncResponse<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
3294
+ protected handleAsyncResponse(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3289
3295
  protected contingency(NFe: NFe): {
3290
3296
  dhCont: string;
3291
3297
  xJust: string;
@@ -4839,12 +4845,6 @@ declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
4839
4845
  protected readonly qrCode: NfceQrcode;
4840
4846
  protected readonly transmitter: NfceRemoteTransmitter;
4841
4847
  constructor(certificate: ReadCertificateRequest);
4842
- options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>;
4843
- execute<E extends NFCe$1, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
4844
- protected signNfe(certificate: ReadCertificateResponse, NFe: NFCe$1): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
4845
- private attachInfNfeSupl;
4846
- private attachQrCode;
4847
- private generateQrCode;
4848
4848
  }
4849
4849
 
4850
4850
  declare class NfceVoidRangePipeline extends NfeVoidRangePipeline {
@@ -4863,7 +4863,6 @@ declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
4863
4863
  protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
4864
4864
  constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
4865
4865
  build(build: (builder: InfNFeBuilder<T> & IdeBuilder<T>) => AssembleNfeBuilder<T>): this;
4866
- toObject(): Either<NFeTsError, T>;
4867
4866
  assemble(): Promise<Either<NFeTsError, string>>;
4868
4867
  protected get nfeXsdSchema(): string;
4869
4868
  protected assertXmlSignedAndValidated(xml: string): Promise<Either<NFeTsError, string>>;
@@ -4877,9 +4876,8 @@ declare class NfceXmlBuilderPipeline<T extends object> extends NfeXmlBuilderPipe
4877
4876
  protected readonly transmitter: NfceRemoteTransmitter;
4878
4877
  constructor(certificate?: ReadCertificateRequest, schema?: Schema, options?: Pick<NfceTransmitterOptions, "qrCode"> | undefined);
4879
4878
  protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
4880
- assemble(): Promise<Either<NFeTsError, string>>;
4879
+ protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
4881
4880
  private generateQrCode;
4882
- private parseSignedNfce;
4883
4881
  }
4884
4882
 
4885
4883
  declare const DanfceSize: {
@@ -4972,7 +4970,7 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4972
4970
  infRespTec(payload: InfRespTec): this;
4973
4971
  infSolicNFF(payload: InfSolicNFF): this;
4974
4972
  quiet(): this;
4975
- toObject(): Left<NFeTsError> | Right<T>;
4973
+ protected toObject(): Left<NFeTsError> | Right<T>;
4976
4974
  assemble(): Promise<Left<NFeTsError> | Right<string>>;
4977
4975
  protected assertHomologValidations(): boolean;
4978
4976
  protected assertContingencyModes(): void;
@@ -5156,4 +5154,4 @@ declare class NFCe implements NFCe$1 {
5156
5154
  Signature?: Signature;
5157
5155
  }
5158
5156
 
5159
- export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas, type vItemBuilder };
5157
+ export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas, type vItemBuilder };
@@ -1,4 +1,4 @@
1
- import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ac as Either, x as NFeTsError, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, a7 as SignerRepository, d as SignatureAlgorithm, ad as Left, ae as Right, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, N as Namespaced } from '../xml-signer-CCwIT1uC.js';
1
+ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature, i as StateAcronym, f as StateCodes, p as TransmitterOptions, q as Transmitter, m as Client, a1 as RequestConfig, a6 as SignedEntity, ac as Either, x as NFeTsError, a as ReadCertificateResponse, O as RowBuilderOptions, V as PdfBuilder, a7 as SignerRepository, d as SignatureAlgorithm, ad as Left, ae as Right, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, N as Namespaced } from '../xml-signer-E-132bo8.js';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
@@ -1244,7 +1244,7 @@ interface AsynchronousAutorizacaoResponse {
1244
1244
  };
1245
1245
  }
1246
1246
  type AutorizacaoResponse<E extends NFe$1 = NFe$1, T extends E | E[] = E | E[]> = SynchronousAutorizacaoResponse<T> | AsynchronousAutorizacaoResponse;
1247
- type PipelineAuthorizerResponse<E extends NFe$1, T extends E | E[]> = T extends E[] ? {
1247
+ type PipelineAuthorizerResponse<E extends NFe$1, T extends E | E[] = E | E[]> = T extends E[] ? {
1248
1248
  xml: string[];
1249
1249
  response: SynchronousAutorizacaoResponse<T>;
1250
1250
  } : {
@@ -1816,7 +1816,6 @@ interface InfSolicNFFBuilder<T extends object> {
1816
1816
  }
1817
1817
  interface AssembleNfeBuilder<T extends object> {
1818
1818
  quiet(): AssembleNfeBuilder<T>;
1819
- toObject(): Either<NFeTsError, T>;
1820
1819
  assemble(): Promise<Either<NFeTsError, string>>;
1821
1820
  }
1822
1821
  interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetGroupBuilder<T>, DestBuilder<T>, RetiradaBuilder<T>, EntregaBuilder<T>, AutXMLBuilder<T>, TotalBuilder<T>, TranspBuilder<T>, PagBuilder<T>, InfIntermedBuilder<T>, ExportaBuilder<T>, CompraBuilder<T>, CanaBuilder<T>, InfRespTecBuilder<T>, InfSolicNFFBuilder<T>, InfAdicBuilder<T>, AvulsaBuilder<T>, AssembleNfeBuilder<T> {
@@ -3278,14 +3277,21 @@ declare class NFe implements NFe$1 {
3278
3277
  Signature?: Signature;
3279
3278
  }
3280
3279
 
3280
+ interface NfeAuthorizerPayload<E extends string, T extends E | E[] = E | E[]> {
3281
+ cUF?: StateCode;
3282
+ tpAmb?: EnvironmentCode;
3283
+ idLote?: string;
3284
+ indSinc?: '0' | '1';
3285
+ xml: T;
3286
+ }
3281
3287
  declare class NfeAuthorizerPipeline extends TransmissionPipeline {
3282
- execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
3288
+ execute(payload: NfeAuthorizerPayload<string>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3283
3289
  protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
3284
3290
  protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
3285
3291
  protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
3286
- protected handleNfeBatch(certificate: ReadCertificateResponse, NFe: NFe | NFe[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
3292
+ protected handleNfeBatch(certificate: ReadCertificateResponse, xml: string | string[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
3287
3293
  protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
3288
- protected handleAsyncResponse<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
3294
+ protected handleAsyncResponse(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<NFe>>>;
3289
3295
  protected contingency(NFe: NFe): {
3290
3296
  dhCont: string;
3291
3297
  xJust: string;
@@ -4839,12 +4845,6 @@ declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
4839
4845
  protected readonly qrCode: NfceQrcode;
4840
4846
  protected readonly transmitter: NfceRemoteTransmitter;
4841
4847
  constructor(certificate: ReadCertificateRequest);
4842
- options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>;
4843
- execute<E extends NFCe$1, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
4844
- protected signNfe(certificate: ReadCertificateResponse, NFe: NFCe$1): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
4845
- private attachInfNfeSupl;
4846
- private attachQrCode;
4847
- private generateQrCode;
4848
4848
  }
4849
4849
 
4850
4850
  declare class NfceVoidRangePipeline extends NfeVoidRangePipeline {
@@ -4863,7 +4863,6 @@ declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
4863
4863
  protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
4864
4864
  constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
4865
4865
  build(build: (builder: InfNFeBuilder<T> & IdeBuilder<T>) => AssembleNfeBuilder<T>): this;
4866
- toObject(): Either<NFeTsError, T>;
4867
4866
  assemble(): Promise<Either<NFeTsError, string>>;
4868
4867
  protected get nfeXsdSchema(): string;
4869
4868
  protected assertXmlSignedAndValidated(xml: string): Promise<Either<NFeTsError, string>>;
@@ -4877,9 +4876,8 @@ declare class NfceXmlBuilderPipeline<T extends object> extends NfeXmlBuilderPipe
4877
4876
  protected readonly transmitter: NfceRemoteTransmitter;
4878
4877
  constructor(certificate?: ReadCertificateRequest, schema?: Schema, options?: Pick<NfceTransmitterOptions, "qrCode"> | undefined);
4879
4878
  protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
4880
- assemble(): Promise<Either<NFeTsError, string>>;
4879
+ protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
4881
4880
  private generateQrCode;
4882
- private parseSignedNfce;
4883
4881
  }
4884
4882
 
4885
4883
  declare const DanfceSize: {
@@ -4972,7 +4970,7 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
4972
4970
  infRespTec(payload: InfRespTec): this;
4973
4971
  infSolicNFF(payload: InfSolicNFF): this;
4974
4972
  quiet(): this;
4975
- toObject(): Left<NFeTsError> | Right<T>;
4973
+ protected toObject(): Left<NFeTsError> | Right<T>;
4976
4974
  assemble(): Promise<Left<NFeTsError> | Right<string>>;
4977
4975
  protected assertHomologValidations(): boolean;
4978
4976
  protected assertContingencyModes(): void;
@@ -5156,4 +5154,4 @@ declare class NFCe implements NFCe$1 {
5156
5154
  Signature?: Signature;
5157
5155
  }
5158
5156
 
5159
- export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas, type vItemBuilder };
5157
+ export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, type NFeProcAttributes, NfceAuthorizerPipeline, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, type NfeAuthorizerPayload, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas, type vItemBuilder };
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-DUZ2ZQ2D.mjs";import"../chunk-4WBTBSE6.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,z as DanfceDefaultPdfDocument,A as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,w as NFCeDto,s as NFeDto,p as NfceAuthorizerPipeline,o as NfceCancelPipeline,r as NfceConsultStatusPipeline,m as NfceQrcode,n as NfceRemoteTransmitter,q as NfceVoidRangePipeline,x as NfceXmlBuilder,y as NfceXmlBuilderPipeline,l as NfeAuthorizationResponsePipeline,i as NfeAuthorizerPipeline,h as NfeCancelPipeline,k as NfeConsultStatusPipeline,t as NfeDetXmlBuilder,g as NfeRemoteTransmitter,j as NfeVoidRangePipeline,u as NfeXmlBuilder,v as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
2
+ import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-VPC3GCBK.mjs";import"../chunk-POAIEFMR.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,z as DanfceDefaultPdfDocument,A as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,w as NFCeDto,s as NFeDto,p as NfceAuthorizerPipeline,o as NfceCancelPipeline,r as NfceConsultStatusPipeline,m as NfceQrcode,n as NfceRemoteTransmitter,q as NfceVoidRangePipeline,x as NfceXmlBuilder,y as NfceXmlBuilderPipeline,l as NfeAuthorizationResponsePipeline,i as NfeAuthorizerPipeline,h as NfeCancelPipeline,k as NfeConsultStatusPipeline,t as NfeDetXmlBuilder,g as NfeRemoteTransmitter,j as NfeVoidRangePipeline,u as NfeXmlBuilder,v as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
@@ -304,6 +304,7 @@ interface XmlToolkit {
304
304
  getFirstNode(xml: string): string | null;
305
305
  getAttribute(xml: string, tag: string): string | null;
306
306
  appendNode(xml: string, node: string): string;
307
+ insertBefore(xml: string, referenceTag: string, node: string): string;
307
308
  }
308
309
 
309
310
  type DocumentOptions = PDFKit.PDFDocumentOptions;
@@ -304,6 +304,7 @@ interface XmlToolkit {
304
304
  getFirstNode(xml: string): string | null;
305
305
  getAttribute(xml: string, tag: string): string | null;
306
306
  appendNode(xml: string, node: string): string;
307
+ insertBefore(xml: string, referenceTag: string, node: string): string;
307
308
  }
308
309
 
309
310
  type DocumentOptions = PDFKit.PDFDocumentOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",