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.
- package/build/addons/darwin-arm64/xml_validator.node +0 -0
- package/build/addons/linux-arm64/xml_validator.node +0 -0
- package/build/addons/linux-x64/xml_validator.node +0 -0
- package/build/addons/win32-x64/libiconv-2.dll +0 -0
- package/build/addons/win32-x64/libxml2-16.dll +0 -0
- package/build/addons/win32-x64/wincrypt_certificate_store.node +0 -0
- package/build/addons/win32-x64/winhttp_ssl_client.node +0 -0
- package/build/addons/win32-x64/xml_validator.node +0 -0
- package/build/addons/win32-x64/zlib1.dll +0 -0
- package/dist/{chunk-PCA4Z35I.mjs → chunk-GG3KUX2D.mjs} +73 -73
- package/dist/chunk-HY2TTOIL.mjs +20 -0
- package/dist/core/index.cjs +72 -72
- package/dist/core/index.d.cts +5 -4
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +83 -83
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +83 -83
- package/dist/nfe/index.d.cts +1 -6
- package/dist/nfe/index.d.ts +1 -6
- package/dist/nfe/index.mjs +1 -1
- package/dist/{xml-signer-E-132bo8.d.cts → xml-signer-sNjO8e80.d.cts} +2 -1
- package/dist/{xml-signer-E-132bo8.d.ts → xml-signer-sNjO8e80.d.ts} +2 -1
- package/package.json +1 -1
- package/dist/chunk-4YDKSLI2.mjs +0 -20
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as NFeTsError, ab as Decimal$2, D as DecimalValue, V as PdfBuilder, y as DocumentOptions, A as ColorValue, H as TableOptionsWithData, z as TextOptions, I as ImageOptions, F as RuleValue, Q as RowOptions, U as RowBuilderFunction, M as TupleOfLength, W as CacheAdapter, Y as CertificateRepository, a3 as HttpClient, a7 as SignerRepository, R as ReadCertificateRequest, ac as Either, a as ReadCertificateResponse, d as SignatureAlgorithm, m as Client, a4 as RemoteTransmissionRepository, w as XmlToolkit, n as SendTransmissionPayload, ad as Left, ae as Right, o as ExtractReturnType, P as ParserOptions, B as BuilderOptions, s as CanonicalizeOptions } from '../xml-signer-
|
|
2
|
-
export { b as CanonicalizationMethod, J as CellOptions, C as CertificateInfo, e as DigestAlgorithm, a9 as EntitySigner, E as Environment, j as EnvironmentCode, Z as HeaderValue, $ as HttpClientHeaders, a2 as HttpResponse, K as KnownKeys, N as Namespaced, L as PDFTableObject, u as RenderOptions, a1 as RequestConfig, a0 as ResponseType, O as RowBuilderOptions, l as Signature, c as SignatureMethod, S as SignatureNamespace, a6 as SignedEntity, k as SignedInfo, a8 as Signer, a5 as SignerOptions, i as StateAcronym, g as StateAcronyms, h as StateCode, f as StateCodes, G as TableOptions, T as Transforms, q as Transmitter, p as TransmitterOptions, X as XmlDeclarationAttributes, aa as XmlSigner, _ as _TupleOfLength, t as defaultBuilderOptions, r as defaultCanonicalizeOptions, v as defaultParserOptions } from '../xml-signer-
|
|
1
|
+
import { x as NFeTsError, ab as Decimal$2, D as DecimalValue, V as PdfBuilder, y as DocumentOptions, A as ColorValue, H as TableOptionsWithData, z as TextOptions, I as ImageOptions, F as RuleValue, Q as RowOptions, U as RowBuilderFunction, M as TupleOfLength, W as CacheAdapter, Y as CertificateRepository, a3 as HttpClient, a7 as SignerRepository, R as ReadCertificateRequest, ac as Either, a as ReadCertificateResponse, d as SignatureAlgorithm, m as Client, a4 as RemoteTransmissionRepository, w as XmlToolkit, n as SendTransmissionPayload, ad as Left, ae as Right, o as ExtractReturnType, P as ParserOptions, B as BuilderOptions, s as CanonicalizeOptions } from '../xml-signer-sNjO8e80.cjs';
|
|
2
|
+
export { b as CanonicalizationMethod, J as CellOptions, C as CertificateInfo, e as DigestAlgorithm, a9 as EntitySigner, E as Environment, j as EnvironmentCode, Z as HeaderValue, $ as HttpClientHeaders, a2 as HttpResponse, K as KnownKeys, N as Namespaced, L as PDFTableObject, u as RenderOptions, a1 as RequestConfig, a0 as ResponseType, O as RowBuilderOptions, l as Signature, c as SignatureMethod, S as SignatureNamespace, a6 as SignedEntity, k as SignedInfo, a8 as Signer, a5 as SignerOptions, i as StateAcronym, g as StateAcronyms, h as StateCode, f as StateCodes, G as TableOptions, T as Transforms, q as Transmitter, p as TransmitterOptions, X as XmlDeclarationAttributes, aa as XmlSigner, _ as _TupleOfLength, t as defaultBuilderOptions, r as defaultCanonicalizeOptions, v as defaultParserOptions } from '../xml-signer-sNjO8e80.cjs';
|
|
3
3
|
import { ValidationError as ValidationError$1, ValidationOptions } from 'class-validator';
|
|
4
4
|
import { X509Certificate, KeyObject } from 'node:crypto';
|
|
5
5
|
import { Decimal as Decimal$1 } from 'decimal.js';
|
|
@@ -67,9 +67,9 @@ declare class MemoryCacheAdapter implements CacheAdapter {
|
|
|
67
67
|
|
|
68
68
|
declare class NativeCertificateRepository implements CertificateRepository {
|
|
69
69
|
private readonly httpClient;
|
|
70
|
-
private readonly signer;
|
|
71
70
|
private readonly cache;
|
|
72
|
-
|
|
71
|
+
private readonly signer;
|
|
72
|
+
constructor(httpClient: HttpClient, cache?: CacheAdapter, signer?: SignerRepository);
|
|
73
73
|
read(request: ReadCertificateRequest): Promise<Either<NFeTsError, ReadCertificateResponse>>;
|
|
74
74
|
private getPrivateKey;
|
|
75
75
|
sign(content: string, cert: ReadCertificateResponse, algorithm?: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
|
|
@@ -103,6 +103,7 @@ declare class SoapRemoteTransmissionRepository<C extends Client> implements Remo
|
|
|
103
103
|
private certificate?;
|
|
104
104
|
constructor(toolkit: XmlToolkit, certificateRepository: CertificateRepository);
|
|
105
105
|
setCertificate(certificate: ReadCertificateResponse): this;
|
|
106
|
+
private validateCertificatePeriod;
|
|
106
107
|
protected get httpsAgent(): Agent;
|
|
107
108
|
protected get defaultSoapHeaders(): {
|
|
108
109
|
'Content-Type': string;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as NFeTsError, ab as Decimal$2, D as DecimalValue, V as PdfBuilder, y as DocumentOptions, A as ColorValue, H as TableOptionsWithData, z as TextOptions, I as ImageOptions, F as RuleValue, Q as RowOptions, U as RowBuilderFunction, M as TupleOfLength, W as CacheAdapter, Y as CertificateRepository, a3 as HttpClient, a7 as SignerRepository, R as ReadCertificateRequest, ac as Either, a as ReadCertificateResponse, d as SignatureAlgorithm, m as Client, a4 as RemoteTransmissionRepository, w as XmlToolkit, n as SendTransmissionPayload, ad as Left, ae as Right, o as ExtractReturnType, P as ParserOptions, B as BuilderOptions, s as CanonicalizeOptions } from '../xml-signer-
|
|
2
|
-
export { b as CanonicalizationMethod, J as CellOptions, C as CertificateInfo, e as DigestAlgorithm, a9 as EntitySigner, E as Environment, j as EnvironmentCode, Z as HeaderValue, $ as HttpClientHeaders, a2 as HttpResponse, K as KnownKeys, N as Namespaced, L as PDFTableObject, u as RenderOptions, a1 as RequestConfig, a0 as ResponseType, O as RowBuilderOptions, l as Signature, c as SignatureMethod, S as SignatureNamespace, a6 as SignedEntity, k as SignedInfo, a8 as Signer, a5 as SignerOptions, i as StateAcronym, g as StateAcronyms, h as StateCode, f as StateCodes, G as TableOptions, T as Transforms, q as Transmitter, p as TransmitterOptions, X as XmlDeclarationAttributes, aa as XmlSigner, _ as _TupleOfLength, t as defaultBuilderOptions, r as defaultCanonicalizeOptions, v as defaultParserOptions } from '../xml-signer-
|
|
1
|
+
import { x as NFeTsError, ab as Decimal$2, D as DecimalValue, V as PdfBuilder, y as DocumentOptions, A as ColorValue, H as TableOptionsWithData, z as TextOptions, I as ImageOptions, F as RuleValue, Q as RowOptions, U as RowBuilderFunction, M as TupleOfLength, W as CacheAdapter, Y as CertificateRepository, a3 as HttpClient, a7 as SignerRepository, R as ReadCertificateRequest, ac as Either, a as ReadCertificateResponse, d as SignatureAlgorithm, m as Client, a4 as RemoteTransmissionRepository, w as XmlToolkit, n as SendTransmissionPayload, ad as Left, ae as Right, o as ExtractReturnType, P as ParserOptions, B as BuilderOptions, s as CanonicalizeOptions } from '../xml-signer-sNjO8e80.js';
|
|
2
|
+
export { b as CanonicalizationMethod, J as CellOptions, C as CertificateInfo, e as DigestAlgorithm, a9 as EntitySigner, E as Environment, j as EnvironmentCode, Z as HeaderValue, $ as HttpClientHeaders, a2 as HttpResponse, K as KnownKeys, N as Namespaced, L as PDFTableObject, u as RenderOptions, a1 as RequestConfig, a0 as ResponseType, O as RowBuilderOptions, l as Signature, c as SignatureMethod, S as SignatureNamespace, a6 as SignedEntity, k as SignedInfo, a8 as Signer, a5 as SignerOptions, i as StateAcronym, g as StateAcronyms, h as StateCode, f as StateCodes, G as TableOptions, T as Transforms, q as Transmitter, p as TransmitterOptions, X as XmlDeclarationAttributes, aa as XmlSigner, _ as _TupleOfLength, t as defaultBuilderOptions, r as defaultCanonicalizeOptions, v as defaultParserOptions } from '../xml-signer-sNjO8e80.js';
|
|
3
3
|
import { ValidationError as ValidationError$1, ValidationOptions } from 'class-validator';
|
|
4
4
|
import { X509Certificate, KeyObject } from 'node:crypto';
|
|
5
5
|
import { Decimal as Decimal$1 } from 'decimal.js';
|
|
@@ -67,9 +67,9 @@ declare class MemoryCacheAdapter implements CacheAdapter {
|
|
|
67
67
|
|
|
68
68
|
declare class NativeCertificateRepository implements CertificateRepository {
|
|
69
69
|
private readonly httpClient;
|
|
70
|
-
private readonly signer;
|
|
71
70
|
private readonly cache;
|
|
72
|
-
|
|
71
|
+
private readonly signer;
|
|
72
|
+
constructor(httpClient: HttpClient, cache?: CacheAdapter, signer?: SignerRepository);
|
|
73
73
|
read(request: ReadCertificateRequest): Promise<Either<NFeTsError, ReadCertificateResponse>>;
|
|
74
74
|
private getPrivateKey;
|
|
75
75
|
sign(content: string, cert: ReadCertificateResponse, algorithm?: SignatureAlgorithm): Promise<Either<NFeTsError, string>>;
|
|
@@ -103,6 +103,7 @@ declare class SoapRemoteTransmissionRepository<C extends Client> implements Remo
|
|
|
103
103
|
private certificate?;
|
|
104
104
|
constructor(toolkit: XmlToolkit, certificateRepository: CertificateRepository);
|
|
105
105
|
setCertificate(certificate: ReadCertificateResponse): this;
|
|
106
|
+
private validateCertificatePeriod;
|
|
106
107
|
protected get httpsAgent(): Agent;
|
|
107
108
|
protected get defaultSoapHeaders(): {
|
|
108
109
|
'Content-Type': string;
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import"../chunk-23RWB4QQ.mjs";import{$ as
|
|
2
|
+
import"../chunk-23RWB4QQ.mjs";import{$ as U,A as w,B as x,C as y,E as z,F as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,Z as S,_ as T,a,aa as V,b,ba as W,c,ca as X,d,da as Y,e,ea as Z,f,fa as _,g,ga as $,h,ha as aa,ia as ba,j as i,ja as ca,k as j,ka as da,la as ea,m as k,ma as fa,p as l,q as m,r as n,s as o,t as p,u as q,v as r,w as s,x as t,y as u,z as v}from"../chunk-GG3KUX2D.mjs";import"../chunk-W6MRGYXP.mjs";export{z as ASN1,b as CanonicalizationMethod,E as Choice,v as Decimal,e as DigestAlgorithm,l as EntitySigner,h as Environment,D as IsDecimal,x as MemoryCacheAdapter,i as NFeTsError,A as NativeCertificateRepository,y as NullCacheAdapter,w as PdfkitPdfBuilder,d as SignatureAlgorithm,c as SignatureMethod,a as SignatureNamespace,k as Signer,p as SkipAllValidations,o as SkipValidation,n as SkipValidationMetadata,B as SoapRemoteTransmissionRepository,g as StateAcronyms,H as StateCodeAcValidator,I as StateCodeAlValidator,J as StateCodeAmValidator,K as StateCodeApValidator,L as StateCodeBaValidator,M as StateCodeCeValidator,N as StateCodeDfValidator,O as StateCodeEsValidator,P as StateCodeGoValidator,Q as StateCodeMaValidator,R as StateCodeMgValidator,S as StateCodeMsValidator,T as StateCodeMtValidator,U as StateCodePaValidator,V as StateCodePbValidator,W as StateCodePeValidator,X as StateCodePiValidator,Y as StateCodePrValidator,Z as StateCodeRjValidator,_ as StateCodeRnValidator,$ as StateCodeRoValidator,aa as StateCodeRrValidator,ba as StateCodeRsValidator,ca as StateCodeScValidator,da as StateCodeSeValidator,ea as StateCodeSpValidator,fa as StateCodeToValidator,f as StateCodes,G as TransformDateString,F as TransformDecimal,s as ValidateErrorsMetadata,u as Validates,j as ValidationError,C as Xml2JsToolkit,m as XmlSigner,q as clearEmptyValues,t as mapConstraintsToErrors,r as plainToInstance};
|