nfets 0.0.74 → 0.0.76

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, Z as Either, x as NFeTsError, a as ReadCertificateResponse, Q as SignerRepository, d as SignatureAlgorithm, _ as Left, $ 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 } from '../xml-signer-Cu3OlWV1.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,70 +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
- type DocumentOptions = PDFKit.PDFDocumentOptions;
4858
- interface TextOptions extends PDFKit.Mixins.TextOptions {
4859
- x?: number | undefined;
4860
- y?: number | undefined;
4861
- }
4862
- type ImageOptions = PDFKit.Mixins.ImageOption;
4863
- type ColorValue = PDFKit.Mixins.ColorValue;
4864
- type RuleValue = PDFKit.Mixins.RuleValue;
4865
- type TableOptionsWithData = PDFKit.Mixins.TableOptionsWithData;
4866
- type TupleOfLength<N extends number, T = unknown> = N extends N ? number extends N ? T[] : _TupleOfLength<T, N, []> : never;
4867
- type _TupleOfLength<T, N extends number, R extends readonly unknown[]> = R['length'] extends N ? R : _TupleOfLength<T, N, readonly [...R, T]>;
4868
- interface RowBuilderOptions {
4869
- x: number;
4870
- y: number;
4871
- width: number;
4872
- }
4873
- interface RowOptions<C extends number> {
4874
- columns?: C;
4875
- gap?: number;
4876
- left?: number;
4877
- right?: number;
4878
- size?: TupleOfLength<C, number>;
4879
- }
4880
- type RowBuilderFunction = (options: RowBuilderOptions) => PdfBuilder;
4881
- interface PdfBuilder {
4882
- table(options: TableOptionsWithData): this;
4883
- restore(): this;
4884
- save(): this;
4885
- end(): void;
4886
- path(path: string): this;
4887
- translate(x: number, y: number): this;
4888
- scale(x: number, y?: number): this;
4889
- page(options?: DocumentOptions): this;
4890
- pipe(stream: Writable): this;
4891
- configure(options: DocumentOptions): this;
4892
- font(font: string, familyOrSize?: string | number, size?: number): this;
4893
- fontSize(size: number): this;
4894
- text(text: string, options?: TextOptions): this;
4895
- widthOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
4896
- heightOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
4897
- currentLineHeight(includeGap?: boolean): number;
4898
- rect(x: number, y: number, w: number, h: number): this;
4899
- fill(rule: RuleValue): this;
4900
- fill(color?: ColorValue, rule?: RuleValue): this;
4901
- stroke(color?: ColorValue): this;
4902
- image(image: string, x: number, y: number, options?: ImageOptions): this;
4903
- image(image: string, options?: ImageOptions): this;
4904
- pageWidth(): number;
4905
- pageHeight(): number;
4906
- pageMargins(): PDFKit.Mixins.ExpandedSides<number>;
4907
- x(): number;
4908
- y(): number;
4909
- moveDown(amount?: number): this;
4910
- row(...items: [...TupleOfLength<1, RowBuilderFunction>]): this;
4911
- row<C extends number>(options: RowOptions<C>, ...items: [...TupleOfLength<C, RowBuilderFunction>]): this;
4912
- }
4913
-
4914
- interface Builder {
4915
- setup(): void;
4916
- build(options?: RowBuilderOptions): Promise<PdfBuilder> | PdfBuilder;
4917
- end(): void;
4918
- height?: () => number;
4919
- }
4920
-
4921
4864
  declare const DanfceSize: {
4922
4865
  readonly '80mm': number;
4923
4866
  };
@@ -5192,4 +5135,4 @@ declare class NFCe implements NFCe$1 {
5192
5135
  Signature?: Signature;
5193
5136
  }
5194
5137
 
5195
- 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, Z as Either, x as NFeTsError, a as ReadCertificateResponse, Q as SignerRepository, d as SignatureAlgorithm, _ as Left, $ 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 } from '../xml-signer-Cu3OlWV1.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,70 +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
- type DocumentOptions = PDFKit.PDFDocumentOptions;
4858
- interface TextOptions extends PDFKit.Mixins.TextOptions {
4859
- x?: number | undefined;
4860
- y?: number | undefined;
4861
- }
4862
- type ImageOptions = PDFKit.Mixins.ImageOption;
4863
- type ColorValue = PDFKit.Mixins.ColorValue;
4864
- type RuleValue = PDFKit.Mixins.RuleValue;
4865
- type TableOptionsWithData = PDFKit.Mixins.TableOptionsWithData;
4866
- type TupleOfLength<N extends number, T = unknown> = N extends N ? number extends N ? T[] : _TupleOfLength<T, N, []> : never;
4867
- type _TupleOfLength<T, N extends number, R extends readonly unknown[]> = R['length'] extends N ? R : _TupleOfLength<T, N, readonly [...R, T]>;
4868
- interface RowBuilderOptions {
4869
- x: number;
4870
- y: number;
4871
- width: number;
4872
- }
4873
- interface RowOptions<C extends number> {
4874
- columns?: C;
4875
- gap?: number;
4876
- left?: number;
4877
- right?: number;
4878
- size?: TupleOfLength<C, number>;
4879
- }
4880
- type RowBuilderFunction = (options: RowBuilderOptions) => PdfBuilder;
4881
- interface PdfBuilder {
4882
- table(options: TableOptionsWithData): this;
4883
- restore(): this;
4884
- save(): this;
4885
- end(): void;
4886
- path(path: string): this;
4887
- translate(x: number, y: number): this;
4888
- scale(x: number, y?: number): this;
4889
- page(options?: DocumentOptions): this;
4890
- pipe(stream: Writable): this;
4891
- configure(options: DocumentOptions): this;
4892
- font(font: string, familyOrSize?: string | number, size?: number): this;
4893
- fontSize(size: number): this;
4894
- text(text: string, options?: TextOptions): this;
4895
- widthOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
4896
- heightOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
4897
- currentLineHeight(includeGap?: boolean): number;
4898
- rect(x: number, y: number, w: number, h: number): this;
4899
- fill(rule: RuleValue): this;
4900
- fill(color?: ColorValue, rule?: RuleValue): this;
4901
- stroke(color?: ColorValue): this;
4902
- image(image: string, x: number, y: number, options?: ImageOptions): this;
4903
- image(image: string, options?: ImageOptions): this;
4904
- pageWidth(): number;
4905
- pageHeight(): number;
4906
- pageMargins(): PDFKit.Mixins.ExpandedSides<number>;
4907
- x(): number;
4908
- y(): number;
4909
- moveDown(amount?: number): this;
4910
- row(...items: [...TupleOfLength<1, RowBuilderFunction>]): this;
4911
- row<C extends number>(options: RowOptions<C>, ...items: [...TupleOfLength<C, RowBuilderFunction>]): this;
4912
- }
4913
-
4914
- interface Builder {
4915
- setup(): void;
4916
- build(options?: RowBuilderOptions): Promise<PdfBuilder> | PdfBuilder;
4917
- end(): void;
4918
- height?: () => number;
4919
- }
4920
-
4921
4864
  declare const DanfceSize: {
4922
4865
  readonly '80mm': number;
4923
4866
  };
@@ -5192,4 +5135,4 @@ declare class NFCe implements NFCe$1 {
5192
5135
  Signature?: Signature;
5193
5136
  }
5194
5137
 
5195
- 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-RNQ25WCH.mjs";import"../chunk-K44FK57L.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};
@@ -1,3 +1,4 @@
1
+ import { Writable } from 'node:stream';
1
2
  import { X509Certificate, KeyObject } from 'node:crypto';
2
3
 
3
4
  type DecimalRounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
@@ -305,6 +306,66 @@ interface XmlToolkit {
305
306
  appendNode(xml: string, node: string): string;
306
307
  }
307
308
 
309
+ type DocumentOptions = PDFKit.PDFDocumentOptions;
310
+ interface TextOptions extends PDFKit.Mixins.TextOptions {
311
+ x?: number | undefined;
312
+ y?: number | undefined;
313
+ }
314
+ type ImageOptions = PDFKit.Mixins.ImageOption;
315
+ type ColorValue = PDFKit.Mixins.ColorValue;
316
+ type RuleValue = PDFKit.Mixins.RuleValue;
317
+ type TableOptions = PDFKit.Mixins.TableOptions;
318
+ type TableOptionsWithData = PDFKit.Mixins.TableOptionsWithData;
319
+ type CellOptions = PDFKit.Mixins.CellOptions;
320
+ type PDFTableObject = PDFKit.Mixins.PDFTableObject;
321
+ type TupleOfLength<N extends number, T = unknown> = N extends N ? number extends N ? T[] : _TupleOfLength<T, N, []> : never;
322
+ type _TupleOfLength<T, N extends number, R extends readonly unknown[]> = R['length'] extends N ? R : _TupleOfLength<T, N, readonly [...R, T]>;
323
+ interface RowBuilderOptions {
324
+ x: number;
325
+ y: number;
326
+ width: number;
327
+ }
328
+ interface RowOptions<C extends number> {
329
+ columns?: C;
330
+ gap?: number;
331
+ left?: number;
332
+ right?: number;
333
+ size?: TupleOfLength<C, number>;
334
+ }
335
+ type RowBuilderFunction = (options: RowBuilderOptions) => PdfBuilder;
336
+ interface PdfBuilder {
337
+ table(options: TableOptionsWithData): this;
338
+ restore(): this;
339
+ save(): this;
340
+ end(): void;
341
+ path(path: string): this;
342
+ translate(x: number, y: number): this;
343
+ scale(x: number, y?: number): this;
344
+ page(options?: DocumentOptions): this;
345
+ pipe(stream: Writable): this;
346
+ configure(options: DocumentOptions): this;
347
+ font(font: string, familyOrSize?: string | number, size?: number): this;
348
+ fontSize(size: number): this;
349
+ text(text: string, options?: TextOptions): this;
350
+ widthOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
351
+ heightOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
352
+ currentLineHeight(includeGap?: boolean): number;
353
+ rect(x: number, y: number, w: number, h: number): this;
354
+ fill(rule: RuleValue): this;
355
+ fill(color?: ColorValue, rule?: RuleValue): this;
356
+ stroke(color?: ColorValue): this;
357
+ image(image: string, x: number, y: number, options?: ImageOptions): this;
358
+ image(image: string, options?: ImageOptions): this;
359
+ pageWidth(): number;
360
+ pageHeight(): number;
361
+ pageMargins(): PDFKit.Mixins.ExpandedSides<number>;
362
+ x(): number;
363
+ y(): number;
364
+ moveDown(amount?: number): this;
365
+ row(...items: [...TupleOfLength<1, RowBuilderFunction>]): this;
366
+ row<C extends number>(options: RowOptions<C>, ...items: [...TupleOfLength<C, RowBuilderFunction>]): this;
367
+ }
368
+
308
369
  interface CacheAdapter {
309
370
  get<T>(key: string): Promise<T | null>;
310
371
  has(key: string): Promise<boolean>;
@@ -403,4 +464,4 @@ declare class XmlSigner extends Signer {
403
464
  sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
404
465
  }
405
466
 
406
- export { Right 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 Either as Z, Left as _, type ReadCertificateResponse as a, 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 };
@@ -1,3 +1,4 @@
1
+ import { Writable } from 'node:stream';
1
2
  import { X509Certificate, KeyObject } from 'node:crypto';
2
3
 
3
4
  type DecimalRounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
@@ -305,6 +306,66 @@ interface XmlToolkit {
305
306
  appendNode(xml: string, node: string): string;
306
307
  }
307
308
 
309
+ type DocumentOptions = PDFKit.PDFDocumentOptions;
310
+ interface TextOptions extends PDFKit.Mixins.TextOptions {
311
+ x?: number | undefined;
312
+ y?: number | undefined;
313
+ }
314
+ type ImageOptions = PDFKit.Mixins.ImageOption;
315
+ type ColorValue = PDFKit.Mixins.ColorValue;
316
+ type RuleValue = PDFKit.Mixins.RuleValue;
317
+ type TableOptions = PDFKit.Mixins.TableOptions;
318
+ type TableOptionsWithData = PDFKit.Mixins.TableOptionsWithData;
319
+ type CellOptions = PDFKit.Mixins.CellOptions;
320
+ type PDFTableObject = PDFKit.Mixins.PDFTableObject;
321
+ type TupleOfLength<N extends number, T = unknown> = N extends N ? number extends N ? T[] : _TupleOfLength<T, N, []> : never;
322
+ type _TupleOfLength<T, N extends number, R extends readonly unknown[]> = R['length'] extends N ? R : _TupleOfLength<T, N, readonly [...R, T]>;
323
+ interface RowBuilderOptions {
324
+ x: number;
325
+ y: number;
326
+ width: number;
327
+ }
328
+ interface RowOptions<C extends number> {
329
+ columns?: C;
330
+ gap?: number;
331
+ left?: number;
332
+ right?: number;
333
+ size?: TupleOfLength<C, number>;
334
+ }
335
+ type RowBuilderFunction = (options: RowBuilderOptions) => PdfBuilder;
336
+ interface PdfBuilder {
337
+ table(options: TableOptionsWithData): this;
338
+ restore(): this;
339
+ save(): this;
340
+ end(): void;
341
+ path(path: string): this;
342
+ translate(x: number, y: number): this;
343
+ scale(x: number, y?: number): this;
344
+ page(options?: DocumentOptions): this;
345
+ pipe(stream: Writable): this;
346
+ configure(options: DocumentOptions): this;
347
+ font(font: string, familyOrSize?: string | number, size?: number): this;
348
+ fontSize(size: number): this;
349
+ text(text: string, options?: TextOptions): this;
350
+ widthOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
351
+ heightOfString(text: string, options?: PDFKit.Mixins.TextOptions): number;
352
+ currentLineHeight(includeGap?: boolean): number;
353
+ rect(x: number, y: number, w: number, h: number): this;
354
+ fill(rule: RuleValue): this;
355
+ fill(color?: ColorValue, rule?: RuleValue): this;
356
+ stroke(color?: ColorValue): this;
357
+ image(image: string, x: number, y: number, options?: ImageOptions): this;
358
+ image(image: string, options?: ImageOptions): this;
359
+ pageWidth(): number;
360
+ pageHeight(): number;
361
+ pageMargins(): PDFKit.Mixins.ExpandedSides<number>;
362
+ x(): number;
363
+ y(): number;
364
+ moveDown(amount?: number): this;
365
+ row(...items: [...TupleOfLength<1, RowBuilderFunction>]): this;
366
+ row<C extends number>(options: RowOptions<C>, ...items: [...TupleOfLength<C, RowBuilderFunction>]): this;
367
+ }
368
+
308
369
  interface CacheAdapter {
309
370
  get<T>(key: string): Promise<T | null>;
310
371
  has(key: string): Promise<boolean>;
@@ -403,4 +464,4 @@ declare class XmlSigner extends Signer {
403
464
  sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
404
465
  }
405
466
 
406
- export { Right 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 Either as Z, Left as _, type ReadCertificateResponse as a, 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.74",
3
+ "version": "0.0.76",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",