nfets 0.0.109 → 0.0.110
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/core/index.cjs +59 -59
- package/dist/core/index.d.cts +168 -125
- package/dist/core/index.d.ts +168 -125
- package/dist/core/index.mjs +37 -37
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/nfe/index.cjs +23 -23
- package/dist/nfe/index.d.cts +1 -5
- package/dist/nfe/index.d.ts +1 -5
- package/dist/nfe/index.mjs +1 -1
- package/dist/{xml-signer-C-vXjWBX.d.cts → types-U8m3n2L8.d.cts} +8 -1
- package/dist/{xml-signer-C-vXjWBX.d.ts → types-U8m3n2L8.d.ts} +8 -1
- package/package.json +1 -1
|
@@ -295,6 +295,8 @@ declare class Right<R> {
|
|
|
295
295
|
isLeft(): this is never;
|
|
296
296
|
isRight(): this is Right<R>;
|
|
297
297
|
}
|
|
298
|
+
declare const left: <L = never>(l: L) => Left<L>;
|
|
299
|
+
declare const right: <R = never>(a?: R) => Right<R>;
|
|
298
300
|
|
|
299
301
|
interface XmlToolkit {
|
|
300
302
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
@@ -467,4 +469,9 @@ declare class XmlSigner extends Signer {
|
|
|
467
469
|
sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
|
|
468
470
|
}
|
|
469
471
|
|
|
470
|
-
|
|
472
|
+
type DeepPartial<T> = T extends object ? {
|
|
473
|
+
[P in keyof T]?: DeepPartial<NonNullable<T[P]>>;
|
|
474
|
+
} : T;
|
|
475
|
+
type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
476
|
+
|
|
477
|
+
export { type HttpClientHeaders as $, type ColorValue as A, type BuilderOptions as B, type CertificateInfo as C, type DecimalValue as D, Environment as E, type RuleValue as F, type TableOptions as G, type TableOptionsWithData as H, type ImageOptions as I, type CellOptions as J, type KnownKeys as K, type PDFTableObject as L, type TupleOfLength as M, type Namespaced as N, type RowBuilderOptions as O, type ParserOptions as P, type RowOptions as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, type RowBuilderFunction as U, type PdfBuilder as V, type CacheAdapter as W, type XmlDeclarationAttributes as X, type CertificateRepository as Y, type HeaderValue as Z, type _TupleOfLength as _, type ReadCertificateResponse as a, type ResponseType as a0, type RequestConfig as a1, type HttpResponse as a2, type HttpClient as a3, type RemoteTransmissionRepository as a4, type SignerOptions as a5, type SignedEntity as a6, type SignerRepository as a7, Signer as a8, EntitySigner as a9, XmlSigner as aa, type Either as ab, Left as ac, Right as ad, left as ae, right as af, type DeepPartial as ag, type UnionToIntersection as ah, type Decimal as ai, 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 DocumentOptions as y, type TextOptions as z };
|
|
@@ -295,6 +295,8 @@ declare class Right<R> {
|
|
|
295
295
|
isLeft(): this is never;
|
|
296
296
|
isRight(): this is Right<R>;
|
|
297
297
|
}
|
|
298
|
+
declare const left: <L = never>(l: L) => Left<L>;
|
|
299
|
+
declare const right: <R = never>(a?: R) => Right<R>;
|
|
298
300
|
|
|
299
301
|
interface XmlToolkit {
|
|
300
302
|
parse<T>(xml: string, options?: ParserOptions): Promise<T>;
|
|
@@ -467,4 +469,9 @@ declare class XmlSigner extends Signer {
|
|
|
467
469
|
sign(xml: string, options: SignerOptions, cert: ReadCertificateResponse): Promise<Left<NFeTsError> | Right<string>>;
|
|
468
470
|
}
|
|
469
471
|
|
|
470
|
-
|
|
472
|
+
type DeepPartial<T> = T extends object ? {
|
|
473
|
+
[P in keyof T]?: DeepPartial<NonNullable<T[P]>>;
|
|
474
|
+
} : T;
|
|
475
|
+
type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
476
|
+
|
|
477
|
+
export { type HttpClientHeaders as $, type ColorValue as A, type BuilderOptions as B, type CertificateInfo as C, type DecimalValue as D, Environment as E, type RuleValue as F, type TableOptions as G, type TableOptionsWithData as H, type ImageOptions as I, type CellOptions as J, type KnownKeys as K, type PDFTableObject as L, type TupleOfLength as M, type Namespaced as N, type RowBuilderOptions as O, type ParserOptions as P, type RowOptions as Q, type ReadCertificateRequest as R, SignatureNamespace as S, type Transforms as T, type RowBuilderFunction as U, type PdfBuilder as V, type CacheAdapter as W, type XmlDeclarationAttributes as X, type CertificateRepository as Y, type HeaderValue as Z, type _TupleOfLength as _, type ReadCertificateResponse as a, type ResponseType as a0, type RequestConfig as a1, type HttpResponse as a2, type HttpClient as a3, type RemoteTransmissionRepository as a4, type SignerOptions as a5, type SignedEntity as a6, type SignerRepository as a7, Signer as a8, EntitySigner as a9, XmlSigner as aa, type Either as ab, Left as ac, Right as ad, left as ae, right as af, type DeepPartial as ag, type UnionToIntersection as ah, type Decimal as ai, 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 DocumentOptions as y, type TextOptions as z };
|