nfets 0.0.15 → 0.0.16
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/Release/xml_validator.node +0 -0
- package/dist/{chunk-GMWKIB4E.mjs → chunk-H4DRLHOC.mjs} +51 -51
- package/dist/chunk-MOAUKJKC.mjs +7 -0
- package/dist/core/index.cjs +54 -54
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +62 -62
- 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 +11 -11
- package/dist/nfe/index.d.cts +56 -3
- package/dist/nfe/index.d.ts +56 -3
- package/dist/nfe/index.mjs +1 -1
- package/package.json +4 -1
- package/dist/chunk-V2LFKSE4.mjs +0 -7
package/dist/core/index.d.cts
CHANGED
|
@@ -243,7 +243,7 @@ interface ParserOptions {
|
|
|
243
243
|
interface XmlToolkit {
|
|
244
244
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
245
245
|
build(object: object, options?: BuilderOptions): Promise<string>;
|
|
246
|
-
validate(xml: string,
|
|
246
|
+
validate(xml: string, xsd: string): Promise<Either<NFeTsError, void>>;
|
|
247
247
|
canonicalize(xml: string, options?: CanonicalizeOptions): string;
|
|
248
248
|
digest(xml: string, algorithm: SignatureAlgorithm, options?: CanonicalizeOptions): string;
|
|
249
249
|
getNode(xml: string, tag: string): string | null;
|
|
@@ -571,7 +571,7 @@ declare class SoapRemoteTransmissionRepository<C extends Client$1> implements Re
|
|
|
571
571
|
declare class Xml2JsToolkit implements XmlToolkit {
|
|
572
572
|
private readonly xml2js;
|
|
573
573
|
constructor(xml2js?: typeof Xml2js);
|
|
574
|
-
validate(xml: string,
|
|
574
|
+
validate(xml: string, xsd: string): Promise<Left<NFeTsError> | Right<never>>;
|
|
575
575
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
576
576
|
build(object: object, options?: BuilderOptions): Promise<string>;
|
|
577
577
|
digest(xml: string, algorithm: SignatureAlgorithm, options?: CanonicalizeOptions): string;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ interface ParserOptions {
|
|
|
243
243
|
interface XmlToolkit {
|
|
244
244
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
245
245
|
build(object: object, options?: BuilderOptions): Promise<string>;
|
|
246
|
-
validate(xml: string,
|
|
246
|
+
validate(xml: string, xsd: string): Promise<Either<NFeTsError, void>>;
|
|
247
247
|
canonicalize(xml: string, options?: CanonicalizeOptions): string;
|
|
248
248
|
digest(xml: string, algorithm: SignatureAlgorithm, options?: CanonicalizeOptions): string;
|
|
249
249
|
getNode(xml: string, tag: string): string | null;
|
|
@@ -571,7 +571,7 @@ declare class SoapRemoteTransmissionRepository<C extends Client$1> implements Re
|
|
|
571
571
|
declare class Xml2JsToolkit implements XmlToolkit {
|
|
572
572
|
private readonly xml2js;
|
|
573
573
|
constructor(xml2js?: typeof Xml2js);
|
|
574
|
-
validate(xml: string,
|
|
574
|
+
validate(xml: string, xsd: string): Promise<Left<NFeTsError> | Right<never>>;
|
|
575
575
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
576
576
|
build(object: object, options?: BuilderOptions): Promise<string>;
|
|
577
577
|
digest(xml: string, algorithm: SignatureAlgorithm, options?: CanonicalizeOptions): string;
|
package/dist/core/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
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,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-H4DRLHOC.mjs";import"../chunk-3WPW27WV.mjs";import"../chunk-W6MRGYXP.mjs";export{da as ASN1,b as CanonicalizationMethod,B as Choice,ea as Decimal,e as DigestAlgorithm,q as EntitySigner,h as Environment,A as IsDecimal,m as Left,fa as MemoryCacheAdapter,i as NFeTsError,ga as NativeCertificateRepository,ha as NullCacheAdapter,n as Right,d as SignatureAlgorithm,c as SignatureMethod,a as SignatureNamespace,l as Signer,u as SkipAllValidations,t as SkipValidation,s as SkipValidationMetadata,ia as SoapRemoteTransmissionRepository,g as StateAcronyms,E as StateCodeAcValidator,F as StateCodeAlValidator,G as StateCodeAmValidator,H as StateCodeApValidator,I as StateCodeBaValidator,J as StateCodeCeValidator,K as StateCodeDfValidator,L as StateCodeEsValidator,M as StateCodeGoValidator,N as StateCodeMaValidator,O as StateCodeMgValidator,P as StateCodeMsValidator,Q as StateCodeMtValidator,R as StateCodePaValidator,S as StateCodePbValidator,T as StateCodePeValidator,U as StateCodePiValidator,V as StateCodePrValidator,W as StateCodeRjValidator,X as StateCodeRnValidator,Y as StateCodeRoValidator,Z as StateCodeRrValidator,_ as StateCodeRsValidator,$ as StateCodeScValidator,aa as StateCodeSeValidator,ba as StateCodeSpValidator,ca as StateCodeToValidator,f as StateCodes,D as TransformDateString,C as TransformDecimal,x as ValidateErrorsMetadata,z as Validates,j as ValidationError,ka as Xml2JsToolkit,r as XmlSigner,v as clearEmptyValues,o as left,ja as leftFromError,y as mapConstraintsToErrors,w as plainToInstance,p as right,k as unreachable};
|