nfets 0.0.75 → 0.0.77

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, G as RequestConfig, O as SignedEntity, a7 as Either, x as NFeTsError, a as ReadCertificateResponse, Q as SignerRepository, d as SignatureAlgorithm, a8 as Left, a9 as Right, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, L as RemoteTransmissionRepository, V as EntitySigner, W as XmlSigner, N as Namespaced, aa as RowBuilderOptions, Z as PdfBuilder } from '../xml-signer-CA6BEgl1.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-CCwIT1uC.cjs';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
@@ -1689,6 +1689,13 @@ interface NfceRemoteClient extends NfeRemoteClient {
1689
1689
  nfeAutorizacaoLote<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
1690
1690
  }
1691
1691
 
1692
+ interface Builder {
1693
+ setup(): void;
1694
+ build(options?: RowBuilderOptions): Promise<PdfBuilder> | PdfBuilder;
1695
+ end(): void;
1696
+ height?: () => number;
1697
+ }
1698
+
1692
1699
  interface DetBuilder {
1693
1700
  det($: DetAttributes): ProdBuilder;
1694
1701
  }
@@ -4854,13 +4861,6 @@ declare class NfceXmlBuilderPipeline<T extends object> extends NfeXmlBuilderPipe
4854
4861
  protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
4855
4862
  }
4856
4863
 
4857
- interface Builder {
4858
- setup(): void;
4859
- build(options?: RowBuilderOptions): Promise<PdfBuilder> | PdfBuilder;
4860
- end(): void;
4861
- height?: () => number;
4862
- }
4863
-
4864
4864
  declare const DanfceSize: {
4865
4865
  readonly '80mm': number;
4866
4866
  };
@@ -5135,4 +5135,4 @@ declare class NFCe implements NFCe$1 {
5135
5135
  Signature?: Signature;
5136
5136
  }
5137
5137
 
5138
- export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, 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, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, 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 };
5138
+ 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, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, 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, G as RequestConfig, O as SignedEntity, a7 as Either, x as NFeTsError, a as ReadCertificateResponse, Q as SignerRepository, d as SignatureAlgorithm, a8 as Left, a9 as Right, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, L as RemoteTransmissionRepository, V as EntitySigner, W as XmlSigner, N as Namespaced, aa as RowBuilderOptions, Z as PdfBuilder } from '../xml-signer-CA6BEgl1.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-CCwIT1uC.js';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
@@ -1689,6 +1689,13 @@ interface NfceRemoteClient extends NfeRemoteClient {
1689
1689
  nfeAutorizacaoLote<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
1690
1690
  }
1691
1691
 
1692
+ interface Builder {
1693
+ setup(): void;
1694
+ build(options?: RowBuilderOptions): Promise<PdfBuilder> | PdfBuilder;
1695
+ end(): void;
1696
+ height?: () => number;
1697
+ }
1698
+
1692
1699
  interface DetBuilder {
1693
1700
  det($: DetAttributes): ProdBuilder;
1694
1701
  }
@@ -4854,13 +4861,6 @@ declare class NfceXmlBuilderPipeline<T extends object> extends NfeXmlBuilderPipe
4854
4861
  protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
4855
4862
  }
4856
4863
 
4857
- interface Builder {
4858
- setup(): void;
4859
- build(options?: RowBuilderOptions): Promise<PdfBuilder> | PdfBuilder;
4860
- end(): void;
4861
- height?: () => number;
4862
- }
4863
-
4864
4864
  declare const DanfceSize: {
4865
4865
  readonly '80mm': number;
4866
4866
  };
@@ -5135,4 +5135,4 @@ declare class NFCe implements NFCe$1 {
5135
5135
  Signature?: Signature;
5136
5136
  }
5137
5137
 
5138
- export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, 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, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, 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 };
5138
+ 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, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, 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,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../chunk-CTG5M5GA.mjs";import"../chunk-TVNW3GQ7.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,x as DanfceDefaultPdfDocument,y as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,u as NFCeDto,q as NFeDto,k as NfceAuthorizerPipeline,m as NfceConsultStatusPipeline,j as NfceQrcode,i as NfceRemoteTransmitter,v as NfceXmlBuilder,w as NfceXmlBuilderPipeline,n as NfeAuthorizationResponsePipeline,h as NfeAuthorizerPipeline,l as NfeConsultStatusPipeline,r as NfeDetXmlBuilder,o as NfeNfceCancelPipeline,p as NfeNfceVoidRangePipeline,g as NfeRemoteTransmitter,s as NfeXmlBuilder,t as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
2
+ import{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}from"../chunk-CQP3JLEA.mjs";import"../chunk-RBNELQ4L.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,x as DanfceDefaultPdfDocument,y as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,u as NFCeDto,q as NFeDto,k as NfceAuthorizerPipeline,m as NfceConsultStatusPipeline,j as NfceQrcode,i as NfceRemoteTransmitter,v as NfceXmlBuilder,w as NfceXmlBuilderPipeline,n as NfeAuthorizationResponsePipeline,h as NfeAuthorizerPipeline,l as NfeConsultStatusPipeline,r as NfeDetXmlBuilder,o as NfeNfceCancelPipeline,p as NfeNfceVoidRangePipeline,g as NfeRemoteTransmitter,s as NfeXmlBuilder,t as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
@@ -306,36 +306,6 @@ interface XmlToolkit {
306
306
  appendNode(xml: string, node: string): string;
307
307
  }
308
308
 
309
- interface CacheAdapter {
310
- get<T>(key: string): Promise<T | null>;
311
- has(key: string): Promise<boolean>;
312
- set(key: string, value: unknown): Promise<boolean>;
313
- }
314
-
315
- interface CertificateRepository {
316
- read(request: ReadCertificateRequest): Promise<Either<NFeTsError, ReadCertificateResponse>>;
317
- sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
318
- getStringCertificate(certificate: X509Certificate): string;
319
- getStringPrivateKey(privateKey: KeyObject): string;
320
- getCertificateInfo(certificate: X509Certificate): CertificateInfo;
321
- }
322
-
323
- interface RemoteTransmissionRepository<C extends Client> {
324
- setCertificate(certificate: ReadCertificateResponse): RemoteTransmissionRepository<C>;
325
- send<P extends SendTransmissionPayload<C>, R extends ExtractReturnType<C, P>>(params: P): Promise<Either<NFeTsError, R>>;
326
- }
327
-
328
- interface SignerOptions<T = string> {
329
- tag: T;
330
- mark: string;
331
- }
332
- type SignedEntity<T extends object> = T & {
333
- Signature: Signature;
334
- };
335
- interface SignerRepository {
336
- sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
337
- }
338
-
339
309
  type DocumentOptions = PDFKit.PDFDocumentOptions;
340
310
  interface TextOptions extends PDFKit.Mixins.TextOptions {
341
311
  x?: number | undefined;
@@ -344,7 +314,10 @@ interface TextOptions extends PDFKit.Mixins.TextOptions {
344
314
  type ImageOptions = PDFKit.Mixins.ImageOption;
345
315
  type ColorValue = PDFKit.Mixins.ColorValue;
346
316
  type RuleValue = PDFKit.Mixins.RuleValue;
317
+ type TableOptions = PDFKit.Mixins.TableOptions;
347
318
  type TableOptionsWithData = PDFKit.Mixins.TableOptionsWithData;
319
+ type CellOptions = PDFKit.Mixins.CellOptions;
320
+ type PDFTableObject = PDFKit.Mixins.PDFTableObject;
348
321
  type TupleOfLength<N extends number, T = unknown> = N extends N ? number extends N ? T[] : _TupleOfLength<T, N, []> : never;
349
322
  type _TupleOfLength<T, N extends number, R extends readonly unknown[]> = R['length'] extends N ? R : _TupleOfLength<T, N, readonly [...R, T]>;
350
323
  interface RowBuilderOptions {
@@ -393,6 +366,36 @@ interface PdfBuilder {
393
366
  row<C extends number>(options: RowOptions<C>, ...items: [...TupleOfLength<C, RowBuilderFunction>]): this;
394
367
  }
395
368
 
369
+ interface CacheAdapter {
370
+ get<T>(key: string): Promise<T | null>;
371
+ has(key: string): Promise<boolean>;
372
+ set(key: string, value: unknown): Promise<boolean>;
373
+ }
374
+
375
+ interface CertificateRepository {
376
+ read(request: ReadCertificateRequest): Promise<Either<NFeTsError, ReadCertificateResponse>>;
377
+ sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
378
+ getStringCertificate(certificate: X509Certificate): string;
379
+ getStringPrivateKey(privateKey: KeyObject): string;
380
+ getCertificateInfo(certificate: X509Certificate): CertificateInfo;
381
+ }
382
+
383
+ interface RemoteTransmissionRepository<C extends Client> {
384
+ setCertificate(certificate: ReadCertificateResponse): RemoteTransmissionRepository<C>;
385
+ send<P extends SendTransmissionPayload<C>, R extends ExtractReturnType<C, P>>(params: P): Promise<Either<NFeTsError, R>>;
386
+ }
387
+
388
+ interface SignerOptions<T = string> {
389
+ tag: T;
390
+ mark: string;
391
+ }
392
+ type SignedEntity<T extends object> = T & {
393
+ Signature: Signature;
394
+ };
395
+ interface SignerRepository {
396
+ sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
397
+ }
398
+
396
399
  declare abstract class Signer {
397
400
  protected readonly toolkit: XmlToolkit;
398
401
  protected readonly certificateRepository: CertificateRepository;
@@ -461,4 +464,4 @@ declare class XmlSigner extends Signer {
461
464
  sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
462
465
  }
463
466
 
464
- export { type ColorValue as $, type HttpClientHeaders as A, type BuilderOptions as B, type CertificateInfo as C, type DecimalValue as D, Environment as E, type ResponseType as F, type RequestConfig as G, type HeaderValue as H, type HttpResponse as I, type HttpClient as J, type KnownKeys as K, type RemoteTransmissionRepository as L, type SignerOptions as M, type Namespaced as N, type SignedEntity as O, type ParserOptions as P, type SignerRepository as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, Signer as U, EntitySigner as V, XmlSigner as W, type XmlDeclarationAttributes as X, type Decimal as Y, type PdfBuilder as Z, type DocumentOptions as _, type ReadCertificateResponse as a, type TableOptionsWithData as a0, type TextOptions as a1, type ImageOptions as a2, type RuleValue as a3, type RowOptions as a4, type RowBuilderFunction as a5, type TupleOfLength as a6, type Either as a7, Left as a8, Right as a9, type RowBuilderOptions as aa, CanonicalizationMethod$1 as b, SignatureMethod$1 as c, SignatureAlgorithm as d, DigestAlgorithm as e, StateCodes as f, StateAcronyms as g, type StateCode as h, type StateAcronym as i, type EnvironmentCode as j, type SignedInfo as k, type Signature as l, type Client as m, type SendTransmissionPayload as n, type ExtractReturnType as o, type TransmitterOptions as p, type Transmitter as q, defaultCanonicalizeOptions as r, type CanonicalizeOptions as s, defaultBuilderOptions as t, type RenderOptions as u, defaultParserOptions as v, type XmlToolkit as w, NFeTsError as x, type CacheAdapter as y, type CertificateRepository as z };
467
+ export { type HttpClientHeaders as $, type ColorValue as A, type BuilderOptions as B, type CertificateInfo as C, type DecimalValue as D, Environment as E, type RuleValue as F, type TableOptions as G, type TableOptionsWithData as H, type ImageOptions as I, type CellOptions as J, type KnownKeys as K, type PDFTableObject as L, type TupleOfLength as M, type Namespaced as N, type RowBuilderOptions as O, type ParserOptions as P, type RowOptions as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, type RowBuilderFunction as U, type PdfBuilder as V, type CacheAdapter as W, type XmlDeclarationAttributes as X, type CertificateRepository as Y, type HeaderValue as Z, type _TupleOfLength as _, type ReadCertificateResponse as a, type ResponseType as a0, type RequestConfig as a1, type HttpResponse as a2, type HttpClient as a3, type RemoteTransmissionRepository as a4, type SignerOptions as a5, type SignedEntity as a6, type SignerRepository as a7, Signer as a8, EntitySigner as a9, XmlSigner as aa, type Decimal as ab, type Either as ac, Left as ad, Right as ae, CanonicalizationMethod$1 as b, SignatureMethod$1 as c, SignatureAlgorithm as d, DigestAlgorithm as e, StateCodes as f, StateAcronyms as g, type StateCode as h, type StateAcronym as i, type EnvironmentCode as j, type SignedInfo as k, type Signature as l, type Client as m, type SendTransmissionPayload as n, type ExtractReturnType as o, type TransmitterOptions as p, type Transmitter as q, defaultCanonicalizeOptions as r, type CanonicalizeOptions as s, defaultBuilderOptions as t, type RenderOptions as u, defaultParserOptions as v, type XmlToolkit as w, NFeTsError as x, type DocumentOptions as y, type TextOptions as z };
@@ -306,36 +306,6 @@ interface XmlToolkit {
306
306
  appendNode(xml: string, node: string): string;
307
307
  }
308
308
 
309
- interface CacheAdapter {
310
- get<T>(key: string): Promise<T | null>;
311
- has(key: string): Promise<boolean>;
312
- set(key: string, value: unknown): Promise<boolean>;
313
- }
314
-
315
- interface CertificateRepository {
316
- read(request: ReadCertificateRequest): Promise<Either<NFeTsError, ReadCertificateResponse>>;
317
- sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
318
- getStringCertificate(certificate: X509Certificate): string;
319
- getStringPrivateKey(privateKey: KeyObject): string;
320
- getCertificateInfo(certificate: X509Certificate): CertificateInfo;
321
- }
322
-
323
- interface RemoteTransmissionRepository<C extends Client> {
324
- setCertificate(certificate: ReadCertificateResponse): RemoteTransmissionRepository<C>;
325
- send<P extends SendTransmissionPayload<C>, R extends ExtractReturnType<C, P>>(params: P): Promise<Either<NFeTsError, R>>;
326
- }
327
-
328
- interface SignerOptions<T = string> {
329
- tag: T;
330
- mark: string;
331
- }
332
- type SignedEntity<T extends object> = T & {
333
- Signature: Signature;
334
- };
335
- interface SignerRepository {
336
- sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
337
- }
338
-
339
309
  type DocumentOptions = PDFKit.PDFDocumentOptions;
340
310
  interface TextOptions extends PDFKit.Mixins.TextOptions {
341
311
  x?: number | undefined;
@@ -344,7 +314,10 @@ interface TextOptions extends PDFKit.Mixins.TextOptions {
344
314
  type ImageOptions = PDFKit.Mixins.ImageOption;
345
315
  type ColorValue = PDFKit.Mixins.ColorValue;
346
316
  type RuleValue = PDFKit.Mixins.RuleValue;
317
+ type TableOptions = PDFKit.Mixins.TableOptions;
347
318
  type TableOptionsWithData = PDFKit.Mixins.TableOptionsWithData;
319
+ type CellOptions = PDFKit.Mixins.CellOptions;
320
+ type PDFTableObject = PDFKit.Mixins.PDFTableObject;
348
321
  type TupleOfLength<N extends number, T = unknown> = N extends N ? number extends N ? T[] : _TupleOfLength<T, N, []> : never;
349
322
  type _TupleOfLength<T, N extends number, R extends readonly unknown[]> = R['length'] extends N ? R : _TupleOfLength<T, N, readonly [...R, T]>;
350
323
  interface RowBuilderOptions {
@@ -393,6 +366,36 @@ interface PdfBuilder {
393
366
  row<C extends number>(options: RowOptions<C>, ...items: [...TupleOfLength<C, RowBuilderFunction>]): this;
394
367
  }
395
368
 
369
+ interface CacheAdapter {
370
+ get<T>(key: string): Promise<T | null>;
371
+ has(key: string): Promise<boolean>;
372
+ set(key: string, value: unknown): Promise<boolean>;
373
+ }
374
+
375
+ interface CertificateRepository {
376
+ read(request: ReadCertificateRequest): Promise<Either<NFeTsError, ReadCertificateResponse>>;
377
+ sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
378
+ getStringCertificate(certificate: X509Certificate): string;
379
+ getStringPrivateKey(privateKey: KeyObject): string;
380
+ getCertificateInfo(certificate: X509Certificate): CertificateInfo;
381
+ }
382
+
383
+ interface RemoteTransmissionRepository<C extends Client> {
384
+ setCertificate(certificate: ReadCertificateResponse): RemoteTransmissionRepository<C>;
385
+ send<P extends SendTransmissionPayload<C>, R extends ExtractReturnType<C, P>>(params: P): Promise<Either<NFeTsError, R>>;
386
+ }
387
+
388
+ interface SignerOptions<T = string> {
389
+ tag: T;
390
+ mark: string;
391
+ }
392
+ type SignedEntity<T extends object> = T & {
393
+ Signature: Signature;
394
+ };
395
+ interface SignerRepository {
396
+ sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
397
+ }
398
+
396
399
  declare abstract class Signer {
397
400
  protected readonly toolkit: XmlToolkit;
398
401
  protected readonly certificateRepository: CertificateRepository;
@@ -461,4 +464,4 @@ declare class XmlSigner extends Signer {
461
464
  sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
462
465
  }
463
466
 
464
- export { type ColorValue as $, type HttpClientHeaders as A, type BuilderOptions as B, type CertificateInfo as C, type DecimalValue as D, Environment as E, type ResponseType as F, type RequestConfig as G, type HeaderValue as H, type HttpResponse as I, type HttpClient as J, type KnownKeys as K, type RemoteTransmissionRepository as L, type SignerOptions as M, type Namespaced as N, type SignedEntity as O, type ParserOptions as P, type SignerRepository as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, Signer as U, EntitySigner as V, XmlSigner as W, type XmlDeclarationAttributes as X, type Decimal as Y, type PdfBuilder as Z, type DocumentOptions as _, type ReadCertificateResponse as a, type TableOptionsWithData as a0, type TextOptions as a1, type ImageOptions as a2, type RuleValue as a3, type RowOptions as a4, type RowBuilderFunction as a5, type TupleOfLength as a6, type Either as a7, Left as a8, Right as a9, type RowBuilderOptions as aa, CanonicalizationMethod$1 as b, SignatureMethod$1 as c, SignatureAlgorithm as d, DigestAlgorithm as e, StateCodes as f, StateAcronyms as g, type StateCode as h, type StateAcronym as i, type EnvironmentCode as j, type SignedInfo as k, type Signature as l, type Client as m, type SendTransmissionPayload as n, type ExtractReturnType as o, type TransmitterOptions as p, type Transmitter as q, defaultCanonicalizeOptions as r, type CanonicalizeOptions as s, defaultBuilderOptions as t, type RenderOptions as u, defaultParserOptions as v, type XmlToolkit as w, NFeTsError as x, type CacheAdapter as y, type CertificateRepository as z };
467
+ export { type HttpClientHeaders as $, type ColorValue as A, type BuilderOptions as B, type CertificateInfo as C, type DecimalValue as D, Environment as E, type RuleValue as F, type TableOptions as G, type TableOptionsWithData as H, type ImageOptions as I, type CellOptions as J, type KnownKeys as K, type PDFTableObject as L, type TupleOfLength as M, type Namespaced as N, type RowBuilderOptions as O, type ParserOptions as P, type RowOptions as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, type RowBuilderFunction as U, type PdfBuilder as V, type CacheAdapter as W, type XmlDeclarationAttributes as X, type CertificateRepository as Y, type HeaderValue as Z, type _TupleOfLength as _, type ReadCertificateResponse as a, type ResponseType as a0, type RequestConfig as a1, type HttpResponse as a2, type HttpClient as a3, type RemoteTransmissionRepository as a4, type SignerOptions as a5, type SignedEntity as a6, type SignerRepository as a7, Signer as a8, EntitySigner as a9, XmlSigner as aa, type Decimal as ab, type Either as ac, Left as ad, Right as ae, CanonicalizationMethod$1 as b, SignatureMethod$1 as c, SignatureAlgorithm as d, DigestAlgorithm as e, StateCodes as f, StateAcronyms as g, type StateCode as h, type StateAcronym as i, type EnvironmentCode as j, type SignedInfo as k, type Signature as l, type Client as m, type SendTransmissionPayload as n, type ExtractReturnType as o, type TransmitterOptions as p, type Transmitter as q, defaultCanonicalizeOptions as r, type CanonicalizeOptions as s, defaultBuilderOptions as t, type RenderOptions as u, defaultParserOptions as v, type XmlToolkit as w, NFeTsError as x, type DocumentOptions as y, type TextOptions as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",