nfets 0.0.103 → 0.0.105
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-NBDX3ALP.mjs +20 -0
- package/dist/index.cjs +71 -71
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +71 -71
- package/dist/nfe/index.d.cts +27 -9
- package/dist/nfe/index.d.ts +27 -9
- package/dist/nfe/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-Q625746I.mjs +0 -20
package/dist/nfe/index.d.cts
CHANGED
|
@@ -2,9 +2,9 @@ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature
|
|
|
2
2
|
import { Writable } from 'node:stream';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
5
|
-
type DeepPartial<T> = {
|
|
6
|
-
[P in keyof T]?:
|
|
7
|
-
};
|
|
5
|
+
type DeepPartial<T> = T extends object ? {
|
|
6
|
+
[P in keyof T]?: DeepPartial<NonNullable<T[P]>>;
|
|
7
|
+
} : T;
|
|
8
8
|
|
|
9
9
|
interface AccessKey {
|
|
10
10
|
cUF: string | number;
|
|
@@ -597,11 +597,22 @@ interface II {
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
interface ISSQN {
|
|
600
|
-
vBC
|
|
601
|
-
vAliq
|
|
602
|
-
vISSQN
|
|
603
|
-
cMunFG
|
|
604
|
-
cListServ
|
|
600
|
+
vBC: DecimalValue;
|
|
601
|
+
vAliq: DecimalValue;
|
|
602
|
+
vISSQN: DecimalValue;
|
|
603
|
+
cMunFG: string;
|
|
604
|
+
cListServ: string;
|
|
605
|
+
vDeducao?: DecimalValue;
|
|
606
|
+
vOutro?: DecimalValue;
|
|
607
|
+
vDescIncond?: DecimalValue;
|
|
608
|
+
vDescCond?: DecimalValue;
|
|
609
|
+
vISSRet?: DecimalValue;
|
|
610
|
+
indISS: string;
|
|
611
|
+
cServico?: string;
|
|
612
|
+
cMun?: string;
|
|
613
|
+
cPais?: string;
|
|
614
|
+
nProcesso?: string;
|
|
615
|
+
indIncentivo: string;
|
|
605
616
|
}
|
|
606
617
|
|
|
607
618
|
interface PIS {
|
|
@@ -1782,6 +1793,8 @@ interface DetGroupBuilder<T extends object> {
|
|
|
1782
1793
|
}
|
|
1783
1794
|
interface TotalBuilder<T extends object> {
|
|
1784
1795
|
total(payload: Total): TranspBuilder<T>;
|
|
1796
|
+
ISSQNTot(payload: Partial<ISSQNTot>): TranspBuilder<T>;
|
|
1797
|
+
ICMSTot(payload: Partial<ICMSTot>): TranspBuilder<T>;
|
|
1785
1798
|
increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): TranspBuilder<T>;
|
|
1786
1799
|
}
|
|
1787
1800
|
interface TranspBuilder<T extends object> {
|
|
@@ -1816,6 +1829,7 @@ interface InfSolicNFFBuilder<T extends object> {
|
|
|
1816
1829
|
}
|
|
1817
1830
|
interface AssembleNfeBuilder<T extends object> {
|
|
1818
1831
|
quiet(): AssembleNfeBuilder<T>;
|
|
1832
|
+
toObject(): Either<NFeTsError, T>;
|
|
1819
1833
|
assemble(): Promise<Either<NFeTsError, string>>;
|
|
1820
1834
|
}
|
|
1821
1835
|
interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetGroupBuilder<T>, DestBuilder<T>, RetiradaBuilder<T>, EntregaBuilder<T>, AutXMLBuilder<T>, TotalBuilder<T>, TranspBuilder<T>, PagBuilder<T>, InfIntermedBuilder<T>, ExportaBuilder<T>, CompraBuilder<T>, CanaBuilder<T>, InfRespTecBuilder<T>, InfSolicNFFBuilder<T>, InfAdicBuilder<T>, AvulsaBuilder<T>, AssembleNfeBuilder<T> {
|
|
@@ -1832,6 +1846,7 @@ declare class AccessKeyBuilder {
|
|
|
1832
1846
|
|
|
1833
1847
|
interface DetBuilderAggregator {
|
|
1834
1848
|
prod(payload: Prod): void;
|
|
1849
|
+
issqn(payload: ISSQN): void;
|
|
1835
1850
|
icms(payload: ICMS): void;
|
|
1836
1851
|
pis(payload: PIS): void;
|
|
1837
1852
|
cofins(payload: COFINS): void;
|
|
@@ -1840,6 +1855,7 @@ declare class DefaultDetBuilderAggregator<T extends object> implements DetBuilde
|
|
|
1840
1855
|
private readonly builder;
|
|
1841
1856
|
constructor(builder: INfeXmlBuilder<T>);
|
|
1842
1857
|
prod(payload: Prod): void;
|
|
1858
|
+
issqn(payload: ISSQN): void;
|
|
1843
1859
|
cofins(payload: COFINS): void;
|
|
1844
1860
|
pis(payload: PIS): void;
|
|
1845
1861
|
icms(payload: ICMS): void;
|
|
@@ -4961,6 +4977,8 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
|
|
|
4961
4977
|
autXML(payload?: AutXML): this;
|
|
4962
4978
|
det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder, item: D) => AssembleDetXmlBuilder): TotalBuilder<T> & TranspBuilder<T>;
|
|
4963
4979
|
total(payload: Total): this;
|
|
4980
|
+
ISSQNTot(payload: Partial<ISSQNTot>): this;
|
|
4981
|
+
ICMSTot(payload: Partial<ICMSTot>): this;
|
|
4964
4982
|
increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): this;
|
|
4965
4983
|
private buildTotalForPL_010;
|
|
4966
4984
|
transp(payload: Transp): this;
|
|
@@ -4974,7 +4992,7 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
|
|
|
4974
4992
|
infRespTec(payload?: InfRespTec): this;
|
|
4975
4993
|
infSolicNFF(payload?: InfSolicNFF): this;
|
|
4976
4994
|
quiet(): this;
|
|
4977
|
-
|
|
4995
|
+
toObject(): Left<NFeTsError> | Right<T>;
|
|
4978
4996
|
assemble(): Promise<Left<NFeTsError> | Right<string>>;
|
|
4979
4997
|
protected assertHomologValidations(): boolean;
|
|
4980
4998
|
protected assertContingencyModes(): void;
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { h as StateCode, j as EnvironmentCode, D as DecimalValue, l as Signature
|
|
|
2
2
|
import { Writable } from 'node:stream';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
5
|
-
type DeepPartial<T> = {
|
|
6
|
-
[P in keyof T]?:
|
|
7
|
-
};
|
|
5
|
+
type DeepPartial<T> = T extends object ? {
|
|
6
|
+
[P in keyof T]?: DeepPartial<NonNullable<T[P]>>;
|
|
7
|
+
} : T;
|
|
8
8
|
|
|
9
9
|
interface AccessKey {
|
|
10
10
|
cUF: string | number;
|
|
@@ -597,11 +597,22 @@ interface II {
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
interface ISSQN {
|
|
600
|
-
vBC
|
|
601
|
-
vAliq
|
|
602
|
-
vISSQN
|
|
603
|
-
cMunFG
|
|
604
|
-
cListServ
|
|
600
|
+
vBC: DecimalValue;
|
|
601
|
+
vAliq: DecimalValue;
|
|
602
|
+
vISSQN: DecimalValue;
|
|
603
|
+
cMunFG: string;
|
|
604
|
+
cListServ: string;
|
|
605
|
+
vDeducao?: DecimalValue;
|
|
606
|
+
vOutro?: DecimalValue;
|
|
607
|
+
vDescIncond?: DecimalValue;
|
|
608
|
+
vDescCond?: DecimalValue;
|
|
609
|
+
vISSRet?: DecimalValue;
|
|
610
|
+
indISS: string;
|
|
611
|
+
cServico?: string;
|
|
612
|
+
cMun?: string;
|
|
613
|
+
cPais?: string;
|
|
614
|
+
nProcesso?: string;
|
|
615
|
+
indIncentivo: string;
|
|
605
616
|
}
|
|
606
617
|
|
|
607
618
|
interface PIS {
|
|
@@ -1782,6 +1793,8 @@ interface DetGroupBuilder<T extends object> {
|
|
|
1782
1793
|
}
|
|
1783
1794
|
interface TotalBuilder<T extends object> {
|
|
1784
1795
|
total(payload: Total): TranspBuilder<T>;
|
|
1796
|
+
ISSQNTot(payload: Partial<ISSQNTot>): TranspBuilder<T>;
|
|
1797
|
+
ICMSTot(payload: Partial<ICMSTot>): TranspBuilder<T>;
|
|
1785
1798
|
increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): TranspBuilder<T>;
|
|
1786
1799
|
}
|
|
1787
1800
|
interface TranspBuilder<T extends object> {
|
|
@@ -1816,6 +1829,7 @@ interface InfSolicNFFBuilder<T extends object> {
|
|
|
1816
1829
|
}
|
|
1817
1830
|
interface AssembleNfeBuilder<T extends object> {
|
|
1818
1831
|
quiet(): AssembleNfeBuilder<T>;
|
|
1832
|
+
toObject(): Either<NFeTsError, T>;
|
|
1819
1833
|
assemble(): Promise<Either<NFeTsError, string>>;
|
|
1820
1834
|
}
|
|
1821
1835
|
interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetGroupBuilder<T>, DestBuilder<T>, RetiradaBuilder<T>, EntregaBuilder<T>, AutXMLBuilder<T>, TotalBuilder<T>, TranspBuilder<T>, PagBuilder<T>, InfIntermedBuilder<T>, ExportaBuilder<T>, CompraBuilder<T>, CanaBuilder<T>, InfRespTecBuilder<T>, InfSolicNFFBuilder<T>, InfAdicBuilder<T>, AvulsaBuilder<T>, AssembleNfeBuilder<T> {
|
|
@@ -1832,6 +1846,7 @@ declare class AccessKeyBuilder {
|
|
|
1832
1846
|
|
|
1833
1847
|
interface DetBuilderAggregator {
|
|
1834
1848
|
prod(payload: Prod): void;
|
|
1849
|
+
issqn(payload: ISSQN): void;
|
|
1835
1850
|
icms(payload: ICMS): void;
|
|
1836
1851
|
pis(payload: PIS): void;
|
|
1837
1852
|
cofins(payload: COFINS): void;
|
|
@@ -1840,6 +1855,7 @@ declare class DefaultDetBuilderAggregator<T extends object> implements DetBuilde
|
|
|
1840
1855
|
private readonly builder;
|
|
1841
1856
|
constructor(builder: INfeXmlBuilder<T>);
|
|
1842
1857
|
prod(payload: Prod): void;
|
|
1858
|
+
issqn(payload: ISSQN): void;
|
|
1843
1859
|
cofins(payload: COFINS): void;
|
|
1844
1860
|
pis(payload: PIS): void;
|
|
1845
1861
|
icms(payload: ICMS): void;
|
|
@@ -4961,6 +4977,8 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
|
|
|
4961
4977
|
autXML(payload?: AutXML): this;
|
|
4962
4978
|
det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder, item: D) => AssembleDetXmlBuilder): TotalBuilder<T> & TranspBuilder<T>;
|
|
4963
4979
|
total(payload: Total): this;
|
|
4980
|
+
ISSQNTot(payload: Partial<ISSQNTot>): this;
|
|
4981
|
+
ICMSTot(payload: Partial<ICMSTot>): this;
|
|
4964
4982
|
increment(callback: (context: DeepPartial<Total>, det: DeepPartial<Det[]>) => DeepPartial<Total>): this;
|
|
4965
4983
|
private buildTotalForPL_010;
|
|
4966
4984
|
transp(payload: Transp): this;
|
|
@@ -4974,7 +4992,7 @@ declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<
|
|
|
4974
4992
|
infRespTec(payload?: InfRespTec): this;
|
|
4975
4993
|
infSolicNFF(payload?: InfSolicNFF): this;
|
|
4976
4994
|
quiet(): this;
|
|
4977
|
-
|
|
4995
|
+
toObject(): Left<NFeTsError> | Right<T>;
|
|
4978
4996
|
assemble(): Promise<Left<NFeTsError> | Right<string>>;
|
|
4979
4997
|
protected assertHomologValidations(): boolean;
|
|
4980
4998
|
protected assertContingencyModes(): void;
|
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,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}from"../chunk-
|
|
2
|
+
import{A,B,C,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}from"../chunk-NBDX3ALP.mjs";import"../chunk-GG3KUX2D.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,B as DanfceDefaultPdfDocument,C as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,y as NFCeDto,u as NFeDto,q as NfceAuthorizerPipeline,p as NfceCancelPipeline,t as NfceConsultProtocoloPipeline,s as NfceConsultStatusPipeline,n as NfceQrcode,o as NfceRemoteTransmitter,r as NfceVoidRangePipeline,z as NfceXmlBuilder,A as NfceXmlBuilderPipeline,m as NfeAuthorizationResponsePipeline,i as NfeAuthorizerPipeline,h as NfeCancelPipeline,l as NfeConsultProtocoloPipeline,k as NfeConsultStatusPipeline,v as NfeDetXmlBuilder,g as NfeRemoteTransmitter,j as NfeVoidRangePipeline,w as NfeXmlBuilder,x as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
|