nfets 0.0.15 → 0.0.17
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-5KI5OGAA.mjs +7 -0
- package/dist/chunk-I4KZJHBR.mjs +0 -0
- package/dist/chunk-PEB34YMB.mjs +259 -0
- package/dist/core/index.cjs +59 -59
- package/dist/core/index.d.cts +19 -356
- package/dist/core/index.d.ts +19 -356
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +78 -78
- package/dist/index.d.cts +3 -65
- package/dist/index.d.ts +3 -65
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +248 -11
- package/dist/nfe/index.d.cts +203 -204
- package/dist/nfe/index.d.ts +203 -204
- package/dist/nfe/index.mjs +1 -1
- package/dist/types-BVhE6D84.d.cts +405 -0
- package/dist/types-BVhE6D84.d.ts +405 -0
- package/package.json +6 -5
- package/dist/chunk-3WPW27WV.mjs +0 -24
- package/dist/chunk-GMWKIB4E.mjs +0 -238
- package/dist/chunk-V2LFKSE4.mjs +0 -7
- package/dist/either-CdHd_Yt7.d.cts +0 -20
- package/dist/either-CdHd_Yt7.d.ts +0 -20
package/dist/nfe/index.d.cts
CHANGED
|
@@ -1,65 +1,5 @@
|
|
|
1
|
-
import { StateCode, EnvironmentCode, DecimalValue, Signature, StateAcronym, TransmitterOptions, Transmitter, Client, RequestConfig, SignedEntity, NFeTsError, ReadCertificateResponse, RemoteTransmissionRepository, Namespaced, ReadCertificateRequest, HttpClient, XmlToolkit, CacheAdapter, CertificateRepository } from '
|
|
2
|
-
import
|
|
3
|
-
import { StateCode as StateCode$1, EnvironmentCode as EnvironmentCode$1, StateCodes, StateAcronym as StateAcronym$1, Either as Either$1, CertificateRepository as CertificateRepository$1, SignedEntity as SignedEntity$1, Signature as Signature$1 } from '@nfets/core';
|
|
4
|
-
import { Either as Either$2, DeepPartial } from '@nfets/core/shared';
|
|
5
|
-
import { Ide as Ide$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/ide';
|
|
6
|
-
import { InfNFeAttributes as InfNFeAttributes$1, InfNFe as InfNFe$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe';
|
|
7
|
-
import { Emit as Emit$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/emit';
|
|
8
|
-
import { Dest as Dest$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/dest';
|
|
9
|
-
import { Pag as Pag$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/pag';
|
|
10
|
-
import { Det as Det$1, DetAttributes as DetAttributes$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det';
|
|
11
|
-
import { Imposto as Imposto$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto';
|
|
12
|
-
import { COFINS as COFINS$1, COFINSST as COFINSST$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/cofins';
|
|
13
|
-
import { ICMS as ICMS$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/icms';
|
|
14
|
-
import { ICMSUFDest as ICMSUFDest$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/icmsufdest';
|
|
15
|
-
import { II as II$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/ii';
|
|
16
|
-
import { IPI as IPI$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/ipi';
|
|
17
|
-
import { ISSQN as ISSQN$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/issqn';
|
|
18
|
-
import { PIS as PIS$1, PISST as PISST$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/imposto/pis';
|
|
19
|
-
import { Prod as Prod$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/det/prod';
|
|
20
|
-
import { Total as Total$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/total';
|
|
21
|
-
import { Transp as Transp$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/transp';
|
|
22
|
-
import { Cobr as Cobr$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/cobr';
|
|
23
|
-
import { InfIntermed as InfIntermed$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/infintermed';
|
|
24
|
-
import { Exporta as Exporta$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/exporta';
|
|
25
|
-
import { Compra as Compra$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/compra';
|
|
26
|
-
import { Cana as Cana$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/cana';
|
|
27
|
-
import { InfRespTec as InfRespTec$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/infresptec';
|
|
28
|
-
import { InfSolicNFF as InfSolicNFF$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/inf-solic-nff';
|
|
29
|
-
import { InfAdic as InfAdic$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/infadic';
|
|
30
|
-
import { Avulsa as Avulsa$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/avulsa';
|
|
31
|
-
import { Local as Local$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/local';
|
|
32
|
-
import { AutXML as AutXML$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe/autxml';
|
|
33
|
-
import { AccessKey as AccessKey$1, VerifiedAccessKey as VerifiedAccessKey$1 } from '@nfets/nfe/domain/entities/access-keys/access-key';
|
|
34
|
-
import { INfeXmlBuilder as INfeXmlBuilder$1, InfNFeBuilder as InfNFeBuilder$1, IdeBuilder as IdeBuilder$1, TotalBuilder as TotalBuilder$1, TranspBuilder as TranspBuilder$1 } from '@nfets/nfe/domain/entities/xml-builder/nfe-xml-builder';
|
|
35
|
-
import * as _nfets_nfe_domain_entities_services_autorizacao from '@nfets/nfe/domain/entities/services/autorizacao';
|
|
36
|
-
import { AutorizacaoPayload as AutorizacaoPayload$1, AutorizacaoResponse as AutorizacaoResponse$1 } from '@nfets/nfe/domain/entities/services/autorizacao';
|
|
37
|
-
import { L as Left, R as Right, E as Either$3, N as NFeTsError$1 } from '../either-CdHd_Yt7.cjs';
|
|
38
|
-
import { NfeTransmitter as NfeTransmitter$1, NfeRemoteClient as NfeRemoteClient$1, NfeTransmitterOptions as NfeTransmitterOptions$1, ContingencyOptions as ContingencyOptions$1 } from '@nfets/nfe/domain/entities/transmission/nfe-remote-client';
|
|
39
|
-
import { NFe as NFe$3 } from '@nfets/nfe/infrastructure/dto/nfe/nfe';
|
|
40
|
-
import { EntitySigner } from '@nfets/core/application';
|
|
41
|
-
import * as _nfets_nfe_domain_entities_services_consulta_cadastro from '@nfets/nfe/domain/entities/services/consulta-cadastro';
|
|
42
|
-
import { ConsultaCadastroPayload as ConsultaCadastroPayload$1 } from '@nfets/nfe/domain/entities/services/consulta-cadastro';
|
|
43
|
-
import * as _nfets_nfe_domain_entities_services_evento from '@nfets/nfe/domain/entities/services/evento';
|
|
44
|
-
import { EventoRequest as EventoRequest$1 } from '@nfets/nfe/domain/entities/services/evento';
|
|
45
|
-
import * as _nfets_nfe_domain_entities_services_ret_autorizacao from '@nfets/nfe/domain/entities/services/ret-autorizacao';
|
|
46
|
-
import { RetAutorizacaoPayload as RetAutorizacaoPayload$1 } from '@nfets/nfe/domain/entities/services/ret-autorizacao';
|
|
47
|
-
import * as _nfets_nfe_domain_entities_services_consulta_protocolo from '@nfets/nfe/domain/entities/services/consulta-protocolo';
|
|
48
|
-
import { ConsultaProtocoloPayload as ConsultaProtocoloPayload$1 } from '@nfets/nfe/domain/entities/services/consulta-protocolo';
|
|
49
|
-
import * as _nfets_nfe_domain_entities_services_inutilizacao from '@nfets/nfe/domain/entities/services/inutilizacao';
|
|
50
|
-
import { InutilizacaoPayload as InutilizacaoPayload$1 } from '@nfets/nfe/domain/entities/services/inutilizacao';
|
|
51
|
-
import * as _nfets_nfe_domain_entities_services_consult_status from '@nfets/nfe/domain/entities/services/consult-status';
|
|
52
|
-
import { ConsultStatusPayload as ConsultStatusPayload$1 } from '@nfets/nfe/domain/entities/services/consult-status';
|
|
53
|
-
import { ServiceOptions as ServiceOptions$1, Webservice } from '@nfets/nfe/domain/entities/transmission/services';
|
|
54
|
-
import { NFe as NFe$2, NFeAttributes as NFeAttributes$1 } from '@nfets/nfe/domain/entities/nfe/nfe';
|
|
55
|
-
import { NfceQrcodeOptions as NfceQrcodeOptions$1, NfceQrcodeOptionsBase as NfceQrcodeOptionsBase$1, NfceTransmitter as NfceTransmitter$1, NfceRemoteClient as NfceRemoteClient$1, NfceTransmitterOptions as NfceTransmitterOptions$1 } from '@nfets/nfe/domain/entities/transmission/nfce-remote-client';
|
|
56
|
-
import { NFCe as NFCe$3 } from '@nfets/nfe/infrastructure/dto/nfe/nfce';
|
|
57
|
-
import { InfNFeSupl as InfNFeSupl$1 } from '@nfets/nfe/domain/entities/nfe/inf-nfe-supl';
|
|
58
|
-
import { NFCe as NFCe$2 } from '@nfets/nfe/domain/entities/nfe/nfce';
|
|
59
|
-
import * as _nfets_nfe_domain_entities_xml_builder_nfe_det_xml_builder from '@nfets/nfe/domain/entities/xml-builder/nfe-det-xml-builder';
|
|
60
|
-
import { ProdBuilder as ProdBuilder$1, AssembleDetXmlBuilder as AssembleDetXmlBuilder$1, INfeDetXmlBuilder as INfeDetXmlBuilder$1, DetBuilder as DetBuilder$2 } from '@nfets/nfe/domain/entities/xml-builder/nfe-det-xml-builder';
|
|
61
|
-
import { DetBuilderAggregator as DetBuilderAggregator$1 } from '@nfets/nfe/application/aggregator/det-builder-aggregator';
|
|
62
|
-
import { TotalBuilderAggregator as TotalBuilderAggregator$1 } from '@nfets/nfe/application/aggregator/total-builder-aggregator';
|
|
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, V as Either, x as NFeTsError, a as ReadCertificateResponse, $ as DeepPartial, L as RemoteTransmissionRepository, W as Left, Y as Right, N as Namespaced, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, U as EntitySigner } from '../types-BVhE6D84.cjs';
|
|
2
|
+
import 'node:crypto';
|
|
63
3
|
|
|
64
4
|
interface AccessKey {
|
|
65
5
|
cUF: string | number;
|
|
@@ -78,6 +18,7 @@ interface VerifiedAccessKey extends AccessKey {
|
|
|
78
18
|
|
|
79
19
|
declare enum TpEmis {
|
|
80
20
|
Normal = "1",
|
|
21
|
+
EPEC = "4",
|
|
81
22
|
SVCAN = "6",
|
|
82
23
|
SVCRS = "7",
|
|
83
24
|
OFFLINE = "9"
|
|
@@ -755,7 +696,7 @@ interface ObsItem {
|
|
|
755
696
|
}
|
|
756
697
|
|
|
757
698
|
interface DetAttributes {
|
|
758
|
-
nItem
|
|
699
|
+
nItem: string;
|
|
759
700
|
}
|
|
760
701
|
interface Det {
|
|
761
702
|
$: DetAttributes;
|
|
@@ -888,6 +829,30 @@ interface Cobr {
|
|
|
888
829
|
dup?: Dup[];
|
|
889
830
|
}
|
|
890
831
|
|
|
832
|
+
declare const TPags: {
|
|
833
|
+
readonly Dinheiro: "01";
|
|
834
|
+
readonly Cheque: "02";
|
|
835
|
+
readonly CartaoDeCredito: "03";
|
|
836
|
+
readonly CartaoDeDebito: "04";
|
|
837
|
+
readonly CartaoDaLoja: "05";
|
|
838
|
+
readonly ValeAlimentacao: "10";
|
|
839
|
+
readonly ValeRefeicao: "11";
|
|
840
|
+
readonly ValePresente: "12";
|
|
841
|
+
readonly ValeCombustivel: "13";
|
|
842
|
+
readonly BoletoBancario: "15";
|
|
843
|
+
readonly DepositoBancario: "16";
|
|
844
|
+
readonly PIXDinamico: "17";
|
|
845
|
+
readonly TransferenciaBancaria: "18";
|
|
846
|
+
readonly ProgramaFidelidade: "19";
|
|
847
|
+
readonly PIXEstatico: "20";
|
|
848
|
+
readonly CreditoEmLoja: "21";
|
|
849
|
+
readonly PagamentoNaoInformado: "22";
|
|
850
|
+
readonly SemPagamento: "90";
|
|
851
|
+
readonly PagamentoPosterior: "91";
|
|
852
|
+
readonly Outros: "99";
|
|
853
|
+
};
|
|
854
|
+
type TPag = (typeof TPags)[keyof typeof TPags];
|
|
855
|
+
|
|
891
856
|
interface Card {
|
|
892
857
|
cNPJ?: string;
|
|
893
858
|
tBand?: string;
|
|
@@ -895,7 +860,7 @@ interface Card {
|
|
|
895
860
|
}
|
|
896
861
|
interface DetPag {
|
|
897
862
|
indPag?: string;
|
|
898
|
-
tPag:
|
|
863
|
+
tPag: TPag;
|
|
899
864
|
vPag: DecimalValue;
|
|
900
865
|
card?: Card;
|
|
901
866
|
xPag?: string;
|
|
@@ -976,6 +941,26 @@ interface InfNFe {
|
|
|
976
941
|
infSolicNFF?: InfSolicNFF;
|
|
977
942
|
}
|
|
978
943
|
|
|
944
|
+
interface ProtNFeAttributes {
|
|
945
|
+
versao: string;
|
|
946
|
+
}
|
|
947
|
+
interface InfProt {
|
|
948
|
+
tpAmb: string;
|
|
949
|
+
verAplic: string;
|
|
950
|
+
chNFe: string;
|
|
951
|
+
dhRecbto: string;
|
|
952
|
+
nProt: string;
|
|
953
|
+
digVal: string;
|
|
954
|
+
cStat: string;
|
|
955
|
+
xMotivo: string;
|
|
956
|
+
cMsg?: string;
|
|
957
|
+
xMsg?: string;
|
|
958
|
+
}
|
|
959
|
+
interface ProtNFe$1 {
|
|
960
|
+
$: ProtNFeAttributes;
|
|
961
|
+
infProt: InfProt;
|
|
962
|
+
}
|
|
963
|
+
|
|
979
964
|
interface NFeAttributes {
|
|
980
965
|
xmlns: 'http://www.portalfiscal.inf.br/nfe';
|
|
981
966
|
}
|
|
@@ -983,6 +968,10 @@ interface NFe$1 {
|
|
|
983
968
|
$: NFeAttributes;
|
|
984
969
|
infNFe: InfNFe;
|
|
985
970
|
}
|
|
971
|
+
interface NFeProc {
|
|
972
|
+
NFe: NFe$1;
|
|
973
|
+
protNFe: ProtNFe$1;
|
|
974
|
+
}
|
|
986
975
|
|
|
987
976
|
interface InfNFeSupl {
|
|
988
977
|
qrCode: string;
|
|
@@ -992,6 +981,10 @@ interface InfNFeSupl {
|
|
|
992
981
|
interface NFCe$1 extends NFe$1 {
|
|
993
982
|
infNFeSupl: InfNFeSupl;
|
|
994
983
|
}
|
|
984
|
+
interface NFCeProc {
|
|
985
|
+
NFe: NFCe$1;
|
|
986
|
+
protNFe: ProtNFe$1;
|
|
987
|
+
}
|
|
995
988
|
|
|
996
989
|
interface ConsultStatusPayload {
|
|
997
990
|
tpAmb: EnvironmentCode;
|
|
@@ -1358,15 +1351,21 @@ declare const schemas: {
|
|
|
1358
1351
|
declare const directory: string;
|
|
1359
1352
|
type Schema = (typeof schemas)[keyof typeof schemas];
|
|
1360
1353
|
|
|
1361
|
-
type WebserviceForState<WS extends Record<string, unknown>, S extends StateCode
|
|
1354
|
+
type WebserviceForState<WS extends Record<string, unknown>, S extends StateCode> = S extends keyof WS ? WS[S] : never;
|
|
1362
1355
|
type UfMap = typeof StateCodes;
|
|
1363
|
-
type StateAcronymFromCode<S extends StateCode
|
|
1364
|
-
[K in keyof UfMap]: S extends UfMap[K] ? Extract<K, StateAcronym
|
|
1356
|
+
type StateAcronymFromCode<S extends StateCode> = {
|
|
1357
|
+
[K in keyof UfMap]: S extends UfMap[K] ? Extract<K, StateAcronym> : never;
|
|
1365
1358
|
}[keyof UfMap];
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1359
|
+
interface Webservice {
|
|
1360
|
+
url: string;
|
|
1361
|
+
method: string;
|
|
1362
|
+
operation: string;
|
|
1363
|
+
version: string;
|
|
1364
|
+
}
|
|
1365
|
+
type GroupServicesForState<WS extends Record<string, unknown>, O extends Record<string, unknown>, S extends StateCode, E extends EnvironmentCode> = WebserviceForState<WS, S> extends keyof O ? E extends keyof O[WebserviceForState<WS, S>] ? keyof O[WebserviceForState<WS, S>][E] : never : never;
|
|
1366
|
+
type StateServicesForState<O extends Record<string, unknown>, S extends StateCode, E extends EnvironmentCode> = StateAcronymFromCode<S> extends keyof O ? E extends keyof O[StateAcronymFromCode<S>] ? keyof O[StateAcronymFromCode<S>][E] : never : never;
|
|
1367
|
+
type ServicesForState<WS extends Record<string, unknown>, O extends Record<string, unknown>, S extends StateCode, E extends EnvironmentCode> = GroupServicesForState<WS, O, S, E> | StateServicesForState<O, S, E>;
|
|
1368
|
+
type ServiceOptions<WS extends Record<string, unknown>, O extends Record<string, unknown>, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode> = {
|
|
1370
1369
|
cUF?: S;
|
|
1371
1370
|
tpAmb?: E;
|
|
1372
1371
|
service: ServicesForState<WS, O, S, E>;
|
|
@@ -1429,57 +1428,57 @@ interface NfceTransmitterOptions extends NfeTransmitterOptions {
|
|
|
1429
1428
|
}
|
|
1430
1429
|
interface NfceTransmitter extends NfeTransmitter, Transmitter<NfceRemoteClient> {
|
|
1431
1430
|
configure(options: NfceTransmitterOptions): this;
|
|
1432
|
-
autorizacao(payload: AutorizacaoPayload<SignedEntity<NFCe$1>>): Promise<Either
|
|
1431
|
+
autorizacao(payload: AutorizacaoPayload<SignedEntity<NFCe$1>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
1433
1432
|
}
|
|
1434
1433
|
interface NfceRemoteClient extends NfeRemoteClient {
|
|
1435
1434
|
nfeAutorizacaoLote(args: AutorizacaoRequest<SignedEntity<NFCe$1>>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
|
|
1436
1435
|
}
|
|
1437
1436
|
|
|
1438
1437
|
interface DetBuilder$1 {
|
|
1439
|
-
det($: DetAttributes
|
|
1438
|
+
det($: DetAttributes): ProdBuilder;
|
|
1440
1439
|
}
|
|
1441
1440
|
interface ProdBuilder {
|
|
1442
|
-
prod(payload: Prod
|
|
1441
|
+
prod(payload: Prod): ImpostoBuilder & IcmsOrIssQnBuilder;
|
|
1443
1442
|
}
|
|
1444
1443
|
interface ImpostoBuilder {
|
|
1445
|
-
imposto(payload: Imposto
|
|
1444
|
+
imposto(payload: Imposto): IcmsOrIssQnBuilder & AssembleDetXmlBuilder;
|
|
1446
1445
|
}
|
|
1447
1446
|
interface IcmsBuilder {
|
|
1448
|
-
icms(payload: ICMS
|
|
1447
|
+
icms(payload: ICMS): IcmsIpiBuilder & IIBuilder & PisBuilder & PisStBuilder & CofinsBuilder & CofinsStBuilder & AssembleDetXmlBuilder;
|
|
1449
1448
|
}
|
|
1450
1449
|
interface IssQnBuilder {
|
|
1451
|
-
issqn(payload: ISSQN
|
|
1450
|
+
issqn(payload: ISSQN): IssIpiBuilder & PisBuilder & PisStBuilder & AssembleDetXmlBuilder;
|
|
1452
1451
|
}
|
|
1453
1452
|
interface IcmsOrIssQnBuilder extends IcmsBuilder, IssQnBuilder {
|
|
1454
1453
|
}
|
|
1455
1454
|
interface OptionalSharedImpostoBuilder extends PisBuilder, CofinsBuilder, IcmsufdestBuilder, AssembleDetXmlBuilder {
|
|
1456
1455
|
}
|
|
1457
1456
|
interface IcmsIpiBuilder {
|
|
1458
|
-
ipi(payload: IPI
|
|
1457
|
+
ipi(payload: IPI): IIBuilder & PisBuilder & PisStBuilder & IcmsufdestBuilder & AssembleDetXmlBuilder;
|
|
1459
1458
|
}
|
|
1460
1459
|
interface IssIpiBuilder {
|
|
1461
|
-
ipi(payload: IPI
|
|
1460
|
+
ipi(payload: IPI): PisBuilder & PisStBuilder & IcmsufdestBuilder & AssembleDetXmlBuilder;
|
|
1462
1461
|
}
|
|
1463
1462
|
interface IIBuilder {
|
|
1464
|
-
ii(payload: II
|
|
1463
|
+
ii(payload: II): PisBuilder & PisStBuilder & IcmsufdestBuilder & AssembleDetXmlBuilder;
|
|
1465
1464
|
}
|
|
1466
1465
|
interface PisBuilder {
|
|
1467
|
-
pis(payload: PIS
|
|
1466
|
+
pis(payload: PIS): IcmsufdestBuilder & CofinsBuilder & CofinsStBuilder & PisStBuilder & AssembleDetXmlBuilder;
|
|
1468
1467
|
}
|
|
1469
1468
|
interface PisStBuilder {
|
|
1470
|
-
pisst(payload: PISST
|
|
1469
|
+
pisst(payload: PISST): IcmsufdestBuilder & CofinsBuilder & CofinsStBuilder & AssembleDetXmlBuilder;
|
|
1471
1470
|
}
|
|
1472
1471
|
interface CofinsBuilder {
|
|
1473
|
-
cofins(payload: COFINS
|
|
1472
|
+
cofins(payload: COFINS): IcmsufdestBuilder & CofinsStBuilder & AssembleDetXmlBuilder;
|
|
1474
1473
|
}
|
|
1475
1474
|
interface CofinsStBuilder {
|
|
1476
|
-
cofinsst(payload: COFINSST
|
|
1475
|
+
cofinsst(payload: COFINSST): IcmsufdestBuilder & AssembleDetXmlBuilder;
|
|
1477
1476
|
}
|
|
1478
1477
|
interface IcmsufdestBuilder {
|
|
1479
|
-
icmsufdest(payload: ICMSUFDest
|
|
1478
|
+
icmsufdest(payload: ICMSUFDest): AssembleDetXmlBuilder;
|
|
1480
1479
|
}
|
|
1481
1480
|
interface AssembleDetXmlBuilder {
|
|
1482
|
-
assemble(): Det
|
|
1481
|
+
assemble(): Det;
|
|
1483
1482
|
}
|
|
1484
1483
|
interface INfeDetXmlBuilder extends DetBuilder$1, ProdBuilder, ImpostoBuilder, IcmsOrIssQnBuilder, OptionalSharedImpostoBuilder, AssembleDetXmlBuilder {
|
|
1485
1484
|
}
|
|
@@ -1505,70 +1504,70 @@ declare namespace nfeDetXmlBuilder {
|
|
|
1505
1504
|
}
|
|
1506
1505
|
|
|
1507
1506
|
interface InfNFeBuilder<T extends object> {
|
|
1508
|
-
infNFe(payload: InfNFeAttributes
|
|
1507
|
+
infNFe(payload: InfNFeAttributes): IdeBuilder<T>;
|
|
1509
1508
|
}
|
|
1510
1509
|
interface IdeBuilder<T extends object> {
|
|
1511
|
-
ide(payload: Ide
|
|
1510
|
+
ide(payload: Ide): EmitBuilder<T>;
|
|
1512
1511
|
}
|
|
1513
1512
|
interface EmitBuilder<T extends object> {
|
|
1514
|
-
emit(payload: Emit
|
|
1513
|
+
emit(payload: Emit): AvulsaBuilder<T> & DestBuilder<T> & RetiradaBuilder<T> & EntregaBuilder<T> & AutXMLBuilder<T> & DetBuilder<T>;
|
|
1515
1514
|
}
|
|
1516
1515
|
interface AvulsaBuilder<T extends object> {
|
|
1517
|
-
avulsa(payload: Avulsa
|
|
1516
|
+
avulsa(payload: Avulsa): DestBuilder<T> & RetiradaBuilder<T> & EntregaBuilder<T> & AutXMLBuilder<T> & DetBuilder<T>;
|
|
1518
1517
|
}
|
|
1519
1518
|
interface DestBuilder<T extends object> {
|
|
1520
|
-
dest(payload: Dest
|
|
1519
|
+
dest(payload: Dest): RetiradaBuilder<T> & EntregaBuilder<T> & AutXMLBuilder<T> & DetBuilder<T>;
|
|
1521
1520
|
}
|
|
1522
1521
|
interface RetiradaBuilder<T extends object> {
|
|
1523
|
-
retirada(payload: Local
|
|
1522
|
+
retirada(payload: Local): DestBuilder<T> & EntregaBuilder<T> & AutXMLBuilder<T> & DetBuilder<T>;
|
|
1524
1523
|
}
|
|
1525
1524
|
interface EntregaBuilder<T extends object> {
|
|
1526
|
-
entrega(payload: Local
|
|
1525
|
+
entrega(payload: Local): DestBuilder<T> & AutXMLBuilder<T> & DetBuilder<T>;
|
|
1527
1526
|
}
|
|
1528
1527
|
interface AutXMLBuilder<T extends object> {
|
|
1529
|
-
autXML(payload: AutXML
|
|
1528
|
+
autXML(payload: AutXML): AutXMLBuilder<T> & DetBuilder<T>;
|
|
1530
1529
|
}
|
|
1531
1530
|
interface DetBuilder<T extends object> {
|
|
1532
1531
|
det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder, item: D) => AssembleDetXmlBuilder): TotalBuilder<T> & TranspBuilder<T>;
|
|
1533
1532
|
}
|
|
1534
1533
|
interface TotalBuilder<T extends object> {
|
|
1535
|
-
total(payload: Total
|
|
1536
|
-
increment(callback: (context: DeepPartial<Total
|
|
1534
|
+
total(payload: Total): TranspBuilder<T>;
|
|
1535
|
+
increment(callback: (context: DeepPartial<Total>) => DeepPartial<Total>): TranspBuilder<T>;
|
|
1537
1536
|
}
|
|
1538
1537
|
interface TranspBuilder<T extends object> {
|
|
1539
|
-
transp(payload: Transp
|
|
1538
|
+
transp(payload: Transp): CobrBuilder<T> & PagBuilder<T>;
|
|
1540
1539
|
}
|
|
1541
1540
|
interface CobrBuilder<T extends object> {
|
|
1542
|
-
cobr(payload: Cobr
|
|
1541
|
+
cobr(payload: Cobr): PagBuilder<T>;
|
|
1543
1542
|
}
|
|
1544
1543
|
interface PagBuilder<T extends object> {
|
|
1545
|
-
pag(payload: Pag
|
|
1544
|
+
pag(payload: Pag): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T> & CanaBuilder<T> & CompraBuilder<T> & ExportaBuilder<T> & InfRespTecBuilder<T> & InfIntermedBuilder<T>;
|
|
1546
1545
|
}
|
|
1547
1546
|
interface InfIntermedBuilder<T extends object> {
|
|
1548
|
-
infIntermed(payload: InfIntermed
|
|
1547
|
+
infIntermed(payload: InfIntermed): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T> & CanaBuilder<T> & CompraBuilder<T> & InfRespTecBuilder<T> & ExportaBuilder<T>;
|
|
1549
1548
|
}
|
|
1550
1549
|
interface InfAdicBuilder<T extends object> {
|
|
1551
|
-
infAdic(payload: InfAdic
|
|
1550
|
+
infAdic(payload: InfAdic): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T> & InfRespTecBuilder<T> & CanaBuilder<T> & CompraBuilder<T> & ExportaBuilder<T>;
|
|
1552
1551
|
}
|
|
1553
1552
|
interface ExportaBuilder<T extends object> {
|
|
1554
|
-
exporta(payload: Exporta
|
|
1553
|
+
exporta(payload: Exporta): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T> & InfRespTecBuilder<T> & CanaBuilder<T> & CompraBuilder<T>;
|
|
1555
1554
|
}
|
|
1556
1555
|
interface CompraBuilder<T extends object> {
|
|
1557
|
-
compra(payload: Compra
|
|
1556
|
+
compra(payload: Compra): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T> & InfRespTecBuilder<T> & CanaBuilder<T>;
|
|
1558
1557
|
}
|
|
1559
1558
|
interface CanaBuilder<T extends object> {
|
|
1560
|
-
cana(payload: Cana
|
|
1559
|
+
cana(payload: Cana): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T> & InfRespTecBuilder<T>;
|
|
1561
1560
|
}
|
|
1562
1561
|
interface InfRespTecBuilder<T extends object> {
|
|
1563
|
-
infRespTec(payload: InfRespTec
|
|
1562
|
+
infRespTec(payload: InfRespTec): AssembleNfeBuilder<T> & AvulsaBuilder<T> & InfAdicBuilder<T> & InfSolicNFFBuilder<T>;
|
|
1564
1563
|
}
|
|
1565
1564
|
interface InfSolicNFFBuilder<T extends object> {
|
|
1566
|
-
infSolicNFF(payload: InfSolicNFF
|
|
1565
|
+
infSolicNFF(payload: InfSolicNFF): AssembleNfeBuilder<T> & InfAdicBuilder<T> & AvulsaBuilder<T>;
|
|
1567
1566
|
}
|
|
1568
1567
|
interface AssembleNfeBuilder<T extends object> {
|
|
1569
1568
|
quiet(): AssembleNfeBuilder<T>;
|
|
1570
|
-
toObject(): Either
|
|
1571
|
-
assemble(): Promise<Either
|
|
1569
|
+
toObject(): Either<NFeTsError, T>;
|
|
1570
|
+
assemble(): Promise<Either<NFeTsError, string>>;
|
|
1572
1571
|
}
|
|
1573
1572
|
interface INfeXmlBuilder<T extends object> extends InfNFeBuilder<T>, IdeBuilder<T>, DetBuilder<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> {
|
|
1574
1573
|
}
|
|
@@ -1600,22 +1599,22 @@ declare namespace nfeXmlBuilder {
|
|
|
1600
1599
|
}
|
|
1601
1600
|
|
|
1602
1601
|
declare class AccessKeyBuilder {
|
|
1603
|
-
compile(payload: AccessKey
|
|
1604
|
-
decompile(accessKey: string): VerifiedAccessKey
|
|
1602
|
+
compile(payload: AccessKey): string;
|
|
1603
|
+
decompile(accessKey: string): VerifiedAccessKey | undefined;
|
|
1605
1604
|
private code;
|
|
1606
1605
|
private isCodeValid;
|
|
1607
1606
|
private verifyingDigit;
|
|
1608
1607
|
}
|
|
1609
1608
|
|
|
1610
1609
|
interface DetBuilderAggregator {
|
|
1611
|
-
prod(payload: Prod
|
|
1612
|
-
icms(payload: ICMS
|
|
1610
|
+
prod(payload: Prod): void;
|
|
1611
|
+
icms(payload: ICMS): void;
|
|
1613
1612
|
}
|
|
1614
1613
|
declare class DefaultDetBuilderAggregator<T extends object> implements DetBuilderAggregator {
|
|
1615
1614
|
private readonly builder;
|
|
1616
|
-
constructor(builder: INfeXmlBuilder
|
|
1617
|
-
prod(payload: Prod
|
|
1618
|
-
icms(_payload: ICMS
|
|
1615
|
+
constructor(builder: INfeXmlBuilder<T>);
|
|
1616
|
+
prod(payload: Prod): void;
|
|
1617
|
+
icms(_payload: ICMS): void;
|
|
1619
1618
|
}
|
|
1620
1619
|
|
|
1621
1620
|
interface TotalBuilderAggregator {
|
|
@@ -1623,10 +1622,16 @@ interface TotalBuilderAggregator {
|
|
|
1623
1622
|
}
|
|
1624
1623
|
declare class DefaultTotalBuilderAggregator<T extends object> implements TotalBuilderAggregator {
|
|
1625
1624
|
private readonly builder;
|
|
1626
|
-
constructor(builder: INfeXmlBuilder
|
|
1625
|
+
constructor(builder: INfeXmlBuilder<T>);
|
|
1627
1626
|
aggregate(): void;
|
|
1628
1627
|
}
|
|
1629
1628
|
|
|
1629
|
+
declare class NFe implements NFe$1 {
|
|
1630
|
+
$: NFeAttributes;
|
|
1631
|
+
infNFe: InfNFe;
|
|
1632
|
+
Signature?: Signature;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1630
1635
|
declare const _default$1: {
|
|
1631
1636
|
readonly AM: {
|
|
1632
1637
|
readonly "2": {
|
|
@@ -2983,13 +2988,13 @@ declare const webservices$1: {
|
|
|
2983
2988
|
readonly SVCRS: "SVCRS";
|
|
2984
2989
|
};
|
|
2985
2990
|
|
|
2986
|
-
declare class NfeRemoteTransmitter implements NfeTransmitter
|
|
2987
|
-
protected readonly remoteTransmissionRepository: RemoteTransmissionRepository<NfeRemoteClient
|
|
2988
|
-
constructor(remoteTransmissionRepository: RemoteTransmissionRepository<NfeRemoteClient
|
|
2989
|
-
protected options: NfeTransmitterOptions
|
|
2991
|
+
declare class NfeRemoteTransmitter implements NfeTransmitter {
|
|
2992
|
+
protected readonly remoteTransmissionRepository: RemoteTransmissionRepository<NfeRemoteClient>;
|
|
2993
|
+
constructor(remoteTransmissionRepository: RemoteTransmissionRepository<NfeRemoteClient>);
|
|
2994
|
+
protected options: NfeTransmitterOptions;
|
|
2990
2995
|
protected readonly xmlns = "http://www.portalfiscal.inf.br/nfe";
|
|
2991
|
-
configure(options: NfeTransmitterOptions
|
|
2992
|
-
service<WS extends Record<string, unknown> = typeof webservices$1, O extends Record<string, unknown> = typeof _default$1, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode>(options: ServiceOptions
|
|
2996
|
+
configure(options: NfeTransmitterOptions): this;
|
|
2997
|
+
service<WS extends Record<string, unknown> = typeof webservices$1, O extends Record<string, unknown> = typeof _default$1, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode>(options: ServiceOptions<WS, O, S, E>): Webservice;
|
|
2993
2998
|
protected errors(): string[] | undefined;
|
|
2994
2999
|
protected validate<T extends object>(payload: T): Left<NFeTsError> | Right<T>;
|
|
2995
3000
|
protected ns<T extends object>(payload: Namespaced<T>, version: string): T & {
|
|
@@ -2999,13 +3004,13 @@ declare class NfeRemoteTransmitter implements NfeTransmitter$1 {
|
|
|
2999
3004
|
};
|
|
3000
3005
|
};
|
|
3001
3006
|
protected xsd(name: string): string;
|
|
3002
|
-
consultStatus(payload: ConsultStatusPayload
|
|
3003
|
-
inutilizacao(payload: InutilizacaoPayload
|
|
3004
|
-
consultaProtocolo(payload: ConsultaProtocoloPayload
|
|
3005
|
-
autorizacao(payload: AutorizacaoPayload
|
|
3006
|
-
retAutorizacao(payload: RetAutorizacaoPayload
|
|
3007
|
-
recepcaoEvento<T>(payload: EventoRequest
|
|
3008
|
-
consultaCadastro(payload: ConsultaCadastroPayload
|
|
3007
|
+
consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
3008
|
+
inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
3009
|
+
consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
|
|
3010
|
+
autorizacao(payload: AutorizacaoPayload<SignedEntity<NFe$1>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
3011
|
+
retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
3012
|
+
recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
|
|
3013
|
+
consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
|
|
3009
3014
|
}
|
|
3010
3015
|
|
|
3011
3016
|
declare abstract class Pipeline {
|
|
@@ -3015,7 +3020,7 @@ declare abstract class Pipeline {
|
|
|
3015
3020
|
protected readonly toolkit: XmlToolkit;
|
|
3016
3021
|
protected readonly caching: CacheAdapter;
|
|
3017
3022
|
protected readonly certificates: CertificateRepository;
|
|
3018
|
-
protected readonly soap: RemoteTransmissionRepository<NfeRemoteClient
|
|
3023
|
+
protected readonly soap: RemoteTransmissionRepository<NfeRemoteClient>;
|
|
3019
3024
|
protected readonly transmitter: NfeRemoteTransmitter;
|
|
3020
3025
|
protected readonly signer: EntitySigner;
|
|
3021
3026
|
constructor(certificate: ReadCertificateRequest);
|
|
@@ -3023,8 +3028,8 @@ declare abstract class Pipeline {
|
|
|
3023
3028
|
}
|
|
3024
3029
|
|
|
3025
3030
|
declare class NfeAuthorizerPipeline extends Pipeline {
|
|
3026
|
-
execute(payload: AutorizacaoPayload
|
|
3027
|
-
protected contingency(payload: AutorizacaoPayload
|
|
3031
|
+
execute(payload: AutorizacaoPayload<NFe>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
3032
|
+
protected contingency(payload: AutorizacaoPayload<NFe>): {
|
|
3028
3033
|
dhCont: string;
|
|
3029
3034
|
xJust: string;
|
|
3030
3035
|
} | undefined;
|
|
@@ -4256,10 +4261,17 @@ declare const webservices: {
|
|
|
4256
4261
|
readonly SVRS: "SVRS";
|
|
4257
4262
|
};
|
|
4258
4263
|
|
|
4264
|
+
declare class NFCe implements NFCe$1 {
|
|
4265
|
+
$: NFeAttributes;
|
|
4266
|
+
infNFe: InfNFe;
|
|
4267
|
+
infNFeSupl: InfNFeSupl;
|
|
4268
|
+
Signature?: Signature;
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4259
4271
|
declare class NfceQrcode {
|
|
4260
4272
|
private readonly certificateRepository;
|
|
4261
|
-
constructor(certificateRepository: CertificateRepository
|
|
4262
|
-
execute(entity: SignedEntity
|
|
4273
|
+
constructor(certificateRepository: CertificateRepository);
|
|
4274
|
+
execute(entity: SignedEntity<NFCe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
4263
4275
|
private content;
|
|
4264
4276
|
private isVersion200;
|
|
4265
4277
|
private isVersion300;
|
|
@@ -4269,13 +4281,13 @@ declare class NfceQrcode {
|
|
|
4269
4281
|
private execute300;
|
|
4270
4282
|
}
|
|
4271
4283
|
|
|
4272
|
-
declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements NfceTransmitter
|
|
4273
|
-
protected readonly remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient
|
|
4284
|
+
declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements NfceTransmitter {
|
|
4285
|
+
protected readonly remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient>;
|
|
4274
4286
|
protected readonly qrCode: NfceQrcode;
|
|
4275
|
-
protected options: NfceTransmitterOptions
|
|
4276
|
-
constructor(remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient
|
|
4277
|
-
configure(options: NfceTransmitterOptions
|
|
4278
|
-
service<WS extends Record<string, unknown> = typeof webservices, O extends Record<string, unknown> = typeof _default, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode>(options: ServiceOptions
|
|
4287
|
+
protected options: NfceTransmitterOptions;
|
|
4288
|
+
constructor(remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient>, qrCode: NfceQrcode);
|
|
4289
|
+
configure(options: NfceTransmitterOptions): this;
|
|
4290
|
+
service<WS extends Record<string, unknown> = typeof webservices, O extends Record<string, unknown> = typeof _default, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode>(options: ServiceOptions<WS, O, S, E>): Webservice | {
|
|
4279
4291
|
readonly method: "QR-CODE";
|
|
4280
4292
|
readonly operation: "NfeConsultaQR";
|
|
4281
4293
|
readonly version: "300";
|
|
@@ -4546,43 +4558,43 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4546
4558
|
readonly version: "200";
|
|
4547
4559
|
readonly url: "http://www.sefaz.to.gov.br/nfce/qrcode";
|
|
4548
4560
|
};
|
|
4549
|
-
autorizacao(payload: AutorizacaoPayload
|
|
4561
|
+
autorizacao(payload: AutorizacaoPayload<SignedEntity<NFCe>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4550
4562
|
private getUrlConsult;
|
|
4551
4563
|
private infNfeSupl;
|
|
4552
4564
|
}
|
|
4553
4565
|
|
|
4554
|
-
declare class NfeXmlBuilder<T extends object = NFe$
|
|
4566
|
+
declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<T> {
|
|
4555
4567
|
protected readonly builder: XmlToolkit;
|
|
4556
|
-
protected contingency?: ContingencyOptions
|
|
4557
|
-
protected readonly data: NFe$
|
|
4568
|
+
protected contingency?: ContingencyOptions | undefined;
|
|
4569
|
+
protected readonly data: NFe$1;
|
|
4558
4570
|
protected get entity(): new () => T;
|
|
4559
4571
|
protected readonly root = "NFe";
|
|
4560
|
-
protected readonly $det: DetBuilderAggregator
|
|
4561
|
-
protected readonly $total: TotalBuilderAggregator
|
|
4562
|
-
protected readonly nfeDetXmlBuilder:
|
|
4563
|
-
static create<T extends object = NFe$
|
|
4564
|
-
protected constructor(builder: XmlToolkit, contingency?: ContingencyOptions
|
|
4565
|
-
infNFe($: InfNFeAttributes
|
|
4566
|
-
ide(payload: Ide
|
|
4567
|
-
emit(payload: Emit
|
|
4568
|
-
avulsa(payload: Avulsa
|
|
4569
|
-
dest(payload: Dest
|
|
4570
|
-
retirada(payload: Local
|
|
4571
|
-
entrega(payload: Local
|
|
4572
|
-
autXML(payload: AutXML
|
|
4573
|
-
det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder
|
|
4574
|
-
total(payload: Total
|
|
4575
|
-
increment(callback: (context: DeepPartial<Total
|
|
4576
|
-
transp(payload: Transp
|
|
4577
|
-
cobr(payload: Cobr
|
|
4578
|
-
pag(payload: Pag
|
|
4579
|
-
infIntermed(payload: InfIntermed
|
|
4580
|
-
infAdic(payload: InfAdic
|
|
4581
|
-
exporta(payload: Exporta
|
|
4582
|
-
compra(payload: Compra
|
|
4583
|
-
cana(payload: Cana
|
|
4584
|
-
infRespTec(payload: InfRespTec
|
|
4585
|
-
infSolicNFF(payload: InfSolicNFF
|
|
4572
|
+
protected readonly $det: DetBuilderAggregator | undefined;
|
|
4573
|
+
protected readonly $total: TotalBuilderAggregator | undefined;
|
|
4574
|
+
protected readonly nfeDetXmlBuilder: DetBuilder$1 & ProdBuilder;
|
|
4575
|
+
static create<T extends object = NFe$1>(builder: XmlToolkit, contingency?: ContingencyOptions): InfNFeBuilder<T> & IdeBuilder<T>;
|
|
4576
|
+
protected constructor(builder: XmlToolkit, contingency?: ContingencyOptions | undefined);
|
|
4577
|
+
infNFe($: InfNFeAttributes): this;
|
|
4578
|
+
ide(payload: Ide): this;
|
|
4579
|
+
emit(payload: Emit): this;
|
|
4580
|
+
avulsa(payload: Avulsa): this;
|
|
4581
|
+
dest(payload: Dest): this;
|
|
4582
|
+
retirada(payload: Local): this;
|
|
4583
|
+
entrega(payload: Local): this;
|
|
4584
|
+
autXML(payload: AutXML): this;
|
|
4585
|
+
det<D>(items: [D, ...D[]], build: (ctx: ProdBuilder, item: D) => AssembleDetXmlBuilder): TotalBuilder<T> & TranspBuilder<T>;
|
|
4586
|
+
total(payload: Total): this;
|
|
4587
|
+
increment(callback: (context: DeepPartial<Total>) => DeepPartial<Total>): this;
|
|
4588
|
+
transp(payload: Transp): this;
|
|
4589
|
+
cobr(payload: Cobr): this;
|
|
4590
|
+
pag(payload: Pag): this;
|
|
4591
|
+
infIntermed(payload: InfIntermed): this;
|
|
4592
|
+
infAdic(payload: InfAdic): this;
|
|
4593
|
+
exporta(payload: Exporta): this;
|
|
4594
|
+
compra(payload: Compra): this;
|
|
4595
|
+
cana(payload: Cana): this;
|
|
4596
|
+
infRespTec(payload: InfRespTec): this;
|
|
4597
|
+
infSolicNFF(payload: InfSolicNFF): this;
|
|
4586
4598
|
quiet(): this;
|
|
4587
4599
|
toObject(): Left<NFeTsError> | Right<T>;
|
|
4588
4600
|
assemble(): Promise<Left<NFeTsError> | Right<string>>;
|
|
@@ -4594,45 +4606,32 @@ declare class NfeXmlBuilder<T extends object = NFe$2> implements INfeXmlBuilder$
|
|
|
4594
4606
|
private fillAccessKeyIfEmpty;
|
|
4595
4607
|
}
|
|
4596
4608
|
|
|
4597
|
-
declare class NfceXmlBuilder<T extends object = NFCe$
|
|
4598
|
-
protected readonly data: NFCe$
|
|
4609
|
+
declare class NfceXmlBuilder<T extends object = NFCe$1> extends NfeXmlBuilder<T> implements INfeXmlBuilder<T> {
|
|
4610
|
+
protected readonly data: NFCe$1;
|
|
4599
4611
|
protected get entity(): new () => T;
|
|
4600
|
-
static create<T extends object = NFCe$
|
|
4612
|
+
static create<T extends object = NFCe$1>(builder: XmlToolkit, contingency?: ContingencyOptions): InfNFeBuilder<T> & IdeBuilder<T>;
|
|
4601
4613
|
protected assertHomologValidations(): boolean;
|
|
4602
4614
|
protected assertContingencyModes(): void;
|
|
4603
4615
|
}
|
|
4604
4616
|
|
|
4605
|
-
declare class NfeDetXmlBuilder implements INfeDetXmlBuilder
|
|
4617
|
+
declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
|
|
4606
4618
|
private readonly listener?;
|
|
4607
|
-
protected readonly data: Det
|
|
4608
|
-
static create(listener?: DetBuilderAggregator
|
|
4609
|
-
protected constructor(listener?: DetBuilderAggregator
|
|
4610
|
-
det(payload: DetAttributes
|
|
4611
|
-
prod(payload: Prod
|
|
4612
|
-
imposto(payload: Imposto
|
|
4613
|
-
icms(payload: ICMS
|
|
4614
|
-
issqn(payload: ISSQN
|
|
4615
|
-
ii(payload: II
|
|
4616
|
-
ipi(payload: IPI
|
|
4617
|
-
pis(payload: PIS
|
|
4618
|
-
pisst(payload: PISST
|
|
4619
|
-
cofins(payload: COFINS
|
|
4620
|
-
cofinsst(payload: COFINSST
|
|
4621
|
-
icmsufdest(payload: ICMSUFDest
|
|
4622
|
-
assemble(): Det
|
|
4623
|
-
}
|
|
4624
|
-
|
|
4625
|
-
declare class NFe implements NFe$2 {
|
|
4626
|
-
$: NFeAttributes$1;
|
|
4627
|
-
infNFe: InfNFe$1;
|
|
4628
|
-
Signature?: Signature$1;
|
|
4629
|
-
}
|
|
4630
|
-
|
|
4631
|
-
declare class NFCe implements NFCe$2 {
|
|
4632
|
-
$: NFeAttributes$1;
|
|
4633
|
-
infNFe: InfNFe$1;
|
|
4634
|
-
infNFeSupl: InfNFeSupl$1;
|
|
4635
|
-
Signature?: Signature;
|
|
4619
|
+
protected readonly data: Det;
|
|
4620
|
+
static create(listener?: DetBuilderAggregator): DetBuilder$1 & ProdBuilder;
|
|
4621
|
+
protected constructor(listener?: DetBuilderAggregator | undefined);
|
|
4622
|
+
det(payload: DetAttributes): this;
|
|
4623
|
+
prod(payload: Prod): this;
|
|
4624
|
+
imposto(payload: Imposto): this;
|
|
4625
|
+
icms(payload: ICMS): this;
|
|
4626
|
+
issqn(payload: ISSQN): this;
|
|
4627
|
+
ii(payload: II): this;
|
|
4628
|
+
ipi(payload: IPI): this;
|
|
4629
|
+
pis(payload: PIS): this;
|
|
4630
|
+
pisst(payload: PISST): this;
|
|
4631
|
+
cofins(payload: COFINS): this;
|
|
4632
|
+
cofinsst(payload: COFINSST): this;
|
|
4633
|
+
icmsufdest(payload: ICMSUFDest): this;
|
|
4634
|
+
assemble(): Det;
|
|
4636
4635
|
}
|
|
4637
4636
|
|
|
4638
|
-
export { type AccessKey, AccessKeyBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DetBuilderAggregator, nfeDetXmlBuilder as INfeDetXmlBuilder, nfeXmlBuilder as INfeXmlBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, type Schema, type TotalBuilderAggregator, TpEmis, type VerifiedAccessKey, directory };
|
|
4637
|
+
export { type AccessKey, AccessKeyBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DetBuilderAggregator, nfeDetXmlBuilder as INfeDetXmlBuilder, nfeXmlBuilder as INfeXmlBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, type Schema, type TotalBuilderAggregator, TpEmis, type VerifiedAccessKey, directory };
|