nfets 0.0.39 → 0.0.40
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/dist/{chunk-3LPOEYDL.mjs → chunk-6GXYTBBS.mjs} +2 -2
- package/dist/{chunk-IURMCRIH.mjs → chunk-CNX6WGGL.mjs} +11 -11
- package/dist/core/index.cjs +46 -46
- package/dist/core/index.d.cts +76 -80
- package/dist/core/index.d.ts +76 -80
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +1 -1
- package/dist/nfe/index.d.cts +9 -4
- package/dist/nfe/index.d.ts +9 -4
- package/dist/nfe/index.mjs +1 -1
- package/dist/{types-CwXoUwhL.d.ts → xml-signer-_YzTA_hV.d.cts} +1 -7
- package/dist/{types-CwXoUwhL.d.cts → xml-signer-_YzTA_hV.d.ts} +1 -7
- package/package.json +1 -1
- /package/dist/{chunk-I4KZJHBR.mjs → chunk-23RWB4QQ.mjs} +0 -0
package/dist/nfe/index.d.cts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
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,
|
|
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, Y as Either, x as NFeTsError, a as ReadCertificateResponse, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, L as RemoteTransmissionRepository, U as EntitySigner, V as XmlSigner, Z as Left, _ as Right, N as Namespaced } from '../xml-signer-_YzTA_hV.cjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
|
+
type DeepPartial<T> = {
|
|
5
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
6
|
+
};
|
|
7
|
+
|
|
4
8
|
interface AccessKey {
|
|
5
9
|
cUF: string | number;
|
|
6
10
|
year: string | number;
|
|
@@ -3039,10 +3043,11 @@ declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
|
|
|
3039
3043
|
declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
3040
3044
|
protected readonly certificate?: ReadCertificateRequest | undefined;
|
|
3041
3045
|
protected readonly schema: Schema;
|
|
3042
|
-
protected readonly builder: InfNFeBuilder<T> & IdeBuilder<T>;
|
|
3046
|
+
protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
|
|
3043
3047
|
constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
|
|
3044
|
-
|
|
3045
|
-
|
|
3048
|
+
build(build: (builder: InfNFeBuilder<T> & IdeBuilder<T>) => AssembleNfeBuilder<T>): this;
|
|
3049
|
+
toObject(): Either<NFeTsError, T>;
|
|
3050
|
+
assemble(): Promise<Either<NFeTsError, string>>;
|
|
3046
3051
|
protected get nfeXsdSchema(): string;
|
|
3047
3052
|
protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
|
|
3048
3053
|
}
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
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,
|
|
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, Y as Either, x as NFeTsError, a as ReadCertificateResponse, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, L as RemoteTransmissionRepository, U as EntitySigner, V as XmlSigner, Z as Left, _ as Right, N as Namespaced } from '../xml-signer-_YzTA_hV.js';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
|
+
type DeepPartial<T> = {
|
|
5
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
6
|
+
};
|
|
7
|
+
|
|
4
8
|
interface AccessKey {
|
|
5
9
|
cUF: string | number;
|
|
6
10
|
year: string | number;
|
|
@@ -3039,10 +3043,11 @@ declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
|
|
|
3039
3043
|
declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
3040
3044
|
protected readonly certificate?: ReadCertificateRequest | undefined;
|
|
3041
3045
|
protected readonly schema: Schema;
|
|
3042
|
-
protected readonly builder: InfNFeBuilder<T> & IdeBuilder<T>;
|
|
3046
|
+
protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
|
|
3043
3047
|
constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
|
|
3044
|
-
|
|
3045
|
-
|
|
3048
|
+
build(build: (builder: InfNFeBuilder<T> & IdeBuilder<T>) => AssembleNfeBuilder<T>): this;
|
|
3049
|
+
toObject(): Either<NFeTsError, T>;
|
|
3050
|
+
assemble(): Promise<Either<NFeTsError, string>>;
|
|
3046
3051
|
protected get nfeXsdSchema(): string;
|
|
3047
3052
|
protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
|
|
3048
3053
|
}
|
package/dist/nfe/index.mjs
CHANGED
|
@@ -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}from"../chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-6GXYTBBS.mjs";import"../chunk-CNX6WGGL.mjs";import"../chunk-W6MRGYXP.mjs";export{c as AccessKeyBuilder,d as DefaultDetBuilderAggregator,e as DefaultTotalBuilderAggregator,o as NFCeDto,f as NFeDto,i as NfceAuthorizerPipeline,q as NfceQrcode,p as NfceRemoteTransmitter,r as NfceXmlBuilder,h as NfeAuthorizerPipeline,l as NfeDetXmlBuilder,j as NfeNfceCancelPipeline,k as NfeNfceVoidRangePipeline,g as NfeRemoteTransmitter,m as NfeXmlBuilder,n as NfeXmlBuilderPipeline,a as TpEmis,b as directory};
|
|
@@ -292,8 +292,6 @@ declare class Right<R> {
|
|
|
292
292
|
isLeft(): this is never;
|
|
293
293
|
isRight(): this is Right<R>;
|
|
294
294
|
}
|
|
295
|
-
declare const left: <L = never>(l: L) => Left<L>;
|
|
296
|
-
declare const right: <R = never>(a?: R) => Right<R>;
|
|
297
295
|
|
|
298
296
|
interface XmlToolkit {
|
|
299
297
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
@@ -402,8 +400,4 @@ declare class XmlSigner extends Signer {
|
|
|
402
400
|
sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
|
|
403
401
|
}
|
|
404
402
|
|
|
405
|
-
type
|
|
406
|
-
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
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, Signer as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, EntitySigner as U, XmlSigner as V, type Either as W, type XmlDeclarationAttributes as X, Left as Y, Right as Z, left as _, type ReadCertificateResponse as a, type DeepPartial as a0, type Decimal as a1, 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 };
|
|
403
|
+
export { 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, Signer as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, EntitySigner as U, XmlSigner as V, type Decimal as W, type XmlDeclarationAttributes as X, type Either as Y, Left as Z, Right 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 };
|
|
@@ -292,8 +292,6 @@ declare class Right<R> {
|
|
|
292
292
|
isLeft(): this is never;
|
|
293
293
|
isRight(): this is Right<R>;
|
|
294
294
|
}
|
|
295
|
-
declare const left: <L = never>(l: L) => Left<L>;
|
|
296
|
-
declare const right: <R = never>(a?: R) => Right<R>;
|
|
297
295
|
|
|
298
296
|
interface XmlToolkit {
|
|
299
297
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
@@ -402,8 +400,4 @@ declare class XmlSigner extends Signer {
|
|
|
402
400
|
sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
|
|
403
401
|
}
|
|
404
402
|
|
|
405
|
-
type
|
|
406
|
-
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
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, Signer as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, EntitySigner as U, XmlSigner as V, type Either as W, type XmlDeclarationAttributes as X, Left as Y, Right as Z, left as _, type ReadCertificateResponse as a, type DeepPartial as a0, type Decimal as a1, 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 };
|
|
403
|
+
export { 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, Signer as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, EntitySigner as U, XmlSigner as V, type Decimal as W, type XmlDeclarationAttributes as X, type Either as Y, Left as Z, Right 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 };
|
package/package.json
CHANGED
|
File without changes
|