nfets 0.0.98 → 0.0.99

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-E-132bo8.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, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ad as Left, ae as Right, N as Namespaced } from '../xml-signer-sNjO8e80.cjs';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
@@ -1854,17 +1854,12 @@ declare class DefaultTotalBuilderAggregator<T extends object> implements TotalBu
1854
1854
  aggregate(): void;
1855
1855
  }
1856
1856
 
1857
- declare class CryptoSignerRepository implements SignerRepository {
1858
- sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Left<NFeTsError> | Right<string>>;
1859
- }
1860
-
1861
1857
  declare abstract class Pipeline {
1862
1858
  protected readonly certificate?: ReadCertificateRequest | undefined;
1863
1859
  protected readonly xmlns = "http://www.portalfiscal.inf.br/nfe";
1864
1860
  protected readonly http: HttpClient;
1865
1861
  protected readonly toolkit: XmlToolkit;
1866
1862
  protected readonly caching: CacheAdapter;
1867
- protected readonly signerRepository: CryptoSignerRepository;
1868
1863
  protected readonly certificates: CertificateRepository;
1869
1864
  protected readonly soap: RemoteTransmissionRepository<NfeRemoteClient>;
1870
1865
  protected readonly signer: EntitySigner;
@@ -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-E-132bo8.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, R as ReadCertificateRequest, a3 as HttpClient, w as XmlToolkit, W as CacheAdapter, Y as CertificateRepository, a4 as RemoteTransmissionRepository, a9 as EntitySigner, aa as XmlSigner, ad as Left, ae as Right, N as Namespaced } from '../xml-signer-sNjO8e80.js';
2
2
  import { Writable } from 'node:stream';
3
3
  import 'node:crypto';
4
4
 
@@ -1854,17 +1854,12 @@ declare class DefaultTotalBuilderAggregator<T extends object> implements TotalBu
1854
1854
  aggregate(): void;
1855
1855
  }
1856
1856
 
1857
- declare class CryptoSignerRepository implements SignerRepository {
1858
- sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Left<NFeTsError> | Right<string>>;
1859
- }
1860
-
1861
1857
  declare abstract class Pipeline {
1862
1858
  protected readonly certificate?: ReadCertificateRequest | undefined;
1863
1859
  protected readonly xmlns = "http://www.portalfiscal.inf.br/nfe";
1864
1860
  protected readonly http: HttpClient;
1865
1861
  protected readonly toolkit: XmlToolkit;
1866
1862
  protected readonly caching: CacheAdapter;
1867
- protected readonly signerRepository: CryptoSignerRepository;
1868
1863
  protected readonly certificates: CertificateRepository;
1869
1864
  protected readonly soap: RemoteTransmissionRepository<NfeRemoteClient>;
1870
1865
  protected readonly signer: EntitySigner;
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{A,B,C,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-4YDKSLI2.mjs";import"../chunk-PCA4Z35I.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,B as DanfceDefaultPdfDocument,C as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,y as NFCeDto,u as NFeDto,q as NfceAuthorizerPipeline,p as NfceCancelPipeline,t as NfceConsultProtocoloPipeline,s as NfceConsultStatusPipeline,n as NfceQrcode,o as NfceRemoteTransmitter,r as NfceVoidRangePipeline,z as NfceXmlBuilder,A as NfceXmlBuilderPipeline,m as NfeAuthorizationResponsePipeline,i as NfeAuthorizerPipeline,h as NfeCancelPipeline,l as NfeConsultProtocoloPipeline,k as NfeConsultStatusPipeline,v as NfeDetXmlBuilder,g as NfeRemoteTransmitter,j as NfeVoidRangePipeline,w as NfeXmlBuilder,x as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
2
+ import{A,B,C,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-HY2TTOIL.mjs";import"../chunk-GG3KUX2D.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,B as DanfceDefaultPdfDocument,C as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,y as NFCeDto,u as NFeDto,q as NfceAuthorizerPipeline,p as NfceCancelPipeline,t as NfceConsultProtocoloPipeline,s as NfceConsultStatusPipeline,n as NfceQrcode,o as NfceRemoteTransmitter,r as NfceVoidRangePipeline,z as NfceXmlBuilder,A as NfceXmlBuilderPipeline,m as NfeAuthorizationResponsePipeline,i as NfeAuthorizerPipeline,h as NfeCancelPipeline,l as NfeConsultProtocoloPipeline,k as NfeConsultStatusPipeline,v as NfeDetXmlBuilder,g as NfeRemoteTransmitter,j as NfeVoidRangePipeline,w as NfeXmlBuilder,x as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
@@ -61,8 +61,9 @@ interface Decimal {
61
61
  }
62
62
 
63
63
  interface ReadCertificateRequest {
64
- pfxPathOrBase64: string;
65
64
  password: string;
65
+ pfxPathOrBase64?: string;
66
+ publicCertDerBase64?: string;
66
67
  }
67
68
  interface ReadCertificateResponse {
68
69
  password: string;
@@ -61,8 +61,9 @@ interface Decimal {
61
61
  }
62
62
 
63
63
  interface ReadCertificateRequest {
64
- pfxPathOrBase64: string;
65
64
  password: string;
65
+ pfxPathOrBase64?: string;
66
+ publicCertDerBase64?: string;
66
67
  }
67
68
  interface ReadCertificateResponse {
68
69
  password: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.98",
3
+ "version": "0.0.99",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",