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.
@@ -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, xsdPathReference: string, xsdFilename: string): Promise<Either<NFeTsError, void>>;
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, xsdPathReference: string, xsdFilename: string): Promise<Left<NFeTsError> | Right<never>>;
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;
@@ -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, xsdPathReference: string, xsdFilename: string): Promise<Either<NFeTsError, void>>;
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, xsdPathReference: string, xsdFilename: string): Promise<Left<NFeTsError> | Right<never>>;
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;
@@ -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-GMWKIB4E.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};
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};