nfets 0.0.39 → 0.0.41
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-IURMCRIH.mjs → chunk-CNX6WGGL.mjs} +11 -11
- package/dist/chunk-UE7UEYKF.mjs +8 -0
- 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 +61 -61
- 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 +63 -63
- package/dist/nfe/index.d.cts +108 -99
- package/dist/nfe/index.d.ts +108 -99
- package/dist/nfe/index.mjs +1 -1
- package/dist/{types-CwXoUwhL.d.ts → xml-signer-BmpwXTKY.d.cts} +2 -8
- package/dist/{types-CwXoUwhL.d.cts → xml-signer-BmpwXTKY.d.ts} +2 -8
- package/package.json +1 -1
- package/dist/chunk-3LPOEYDL.mjs +0 -8
- /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-BmpwXTKY.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;
|
|
@@ -941,6 +945,11 @@ interface InfNFe {
|
|
|
941
945
|
infSolicNFF?: InfSolicNFF;
|
|
942
946
|
}
|
|
943
947
|
|
|
948
|
+
interface InfNFeSupl {
|
|
949
|
+
qrCode: string;
|
|
950
|
+
urlChave: string;
|
|
951
|
+
}
|
|
952
|
+
|
|
944
953
|
interface ProtNFeAttributes {
|
|
945
954
|
versao: string;
|
|
946
955
|
}
|
|
@@ -956,7 +965,7 @@ interface InfProt {
|
|
|
956
965
|
cMsg?: string;
|
|
957
966
|
xMsg?: string;
|
|
958
967
|
}
|
|
959
|
-
interface ProtNFe
|
|
968
|
+
interface ProtNFe {
|
|
960
969
|
$: ProtNFeAttributes;
|
|
961
970
|
infProt: InfProt;
|
|
962
971
|
}
|
|
@@ -967,23 +976,17 @@ interface NFeAttributes {
|
|
|
967
976
|
interface NFe$1 {
|
|
968
977
|
$: NFeAttributes;
|
|
969
978
|
infNFe: InfNFe;
|
|
979
|
+
infNFeSupl?: InfNFeSupl;
|
|
970
980
|
}
|
|
971
981
|
interface NFeProc {
|
|
972
982
|
NFe: NFe$1;
|
|
973
|
-
protNFe: ProtNFe
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
interface InfNFeSupl {
|
|
977
|
-
qrCode: string;
|
|
978
|
-
urlChave: string;
|
|
983
|
+
protNFe: ProtNFe;
|
|
979
984
|
}
|
|
980
985
|
|
|
981
|
-
|
|
982
|
-
infNFeSupl: InfNFeSupl;
|
|
983
|
-
}
|
|
986
|
+
type NFCe$1 = NFe$1;
|
|
984
987
|
interface NFCeProc {
|
|
985
988
|
NFe: NFCe$1;
|
|
986
|
-
protNFe: ProtNFe
|
|
989
|
+
protNFe: ProtNFe;
|
|
987
990
|
}
|
|
988
991
|
|
|
989
992
|
interface ConsultStatusPayload {
|
|
@@ -1158,24 +1161,6 @@ interface ConsultaProtocoloPayload {
|
|
|
1158
1161
|
interface ConsultaProtocoloRequest {
|
|
1159
1162
|
consSitNFe: ConsultaProtocoloPayload;
|
|
1160
1163
|
}
|
|
1161
|
-
interface ProtNFe {
|
|
1162
|
-
$: {
|
|
1163
|
-
versao: string;
|
|
1164
|
-
};
|
|
1165
|
-
infProt: {
|
|
1166
|
-
tpAmb: string;
|
|
1167
|
-
verAplic: string;
|
|
1168
|
-
chNFe: string;
|
|
1169
|
-
dhRecbto: string;
|
|
1170
|
-
nProt?: string;
|
|
1171
|
-
digVal?: string;
|
|
1172
|
-
cStat: string;
|
|
1173
|
-
xMotivo: string;
|
|
1174
|
-
$?: {
|
|
1175
|
-
Id?: string;
|
|
1176
|
-
};
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
1164
|
interface RetCancNFe {
|
|
1180
1165
|
$: {
|
|
1181
1166
|
versao: string;
|
|
@@ -1243,17 +1228,17 @@ interface ConsultaProtocoloResponse {
|
|
|
1243
1228
|
};
|
|
1244
1229
|
}
|
|
1245
1230
|
|
|
1246
|
-
interface AutorizacaoPayload<E extends
|
|
1231
|
+
interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
|
|
1247
1232
|
cUF?: StateCode;
|
|
1248
1233
|
tpAmb?: EnvironmentCode;
|
|
1249
1234
|
idLote?: string;
|
|
1250
1235
|
indSinc?: '0' | '1';
|
|
1251
|
-
NFe:
|
|
1236
|
+
NFe: T;
|
|
1252
1237
|
}
|
|
1253
|
-
interface AutorizacaoRequest<E extends
|
|
1254
|
-
enviNFe: AutorizacaoPayload<E>;
|
|
1238
|
+
interface AutorizacaoRequest<E extends NFe$1, T extends E | E[]> {
|
|
1239
|
+
enviNFe: AutorizacaoPayload<E, T>;
|
|
1255
1240
|
}
|
|
1256
|
-
interface
|
|
1241
|
+
interface SynchronousAutorizacaoResponse<T extends NFe$1 | NFe$1[] = NFe$1 | NFe$1[]> {
|
|
1257
1242
|
retEnviNFe: {
|
|
1258
1243
|
$: {
|
|
1259
1244
|
versao: string;
|
|
@@ -1264,17 +1249,30 @@ interface AutorizacaoResponse {
|
|
|
1264
1249
|
xMotivo: string;
|
|
1265
1250
|
cUF: string;
|
|
1266
1251
|
dhRecbto: string;
|
|
1267
|
-
|
|
1252
|
+
protNFe: T extends NFe$1[] ? ProtNFe[] : ProtNFe;
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
interface AsynchronousAutorizacaoResponse {
|
|
1256
|
+
retEnviNFe: {
|
|
1257
|
+
$: {
|
|
1258
|
+
versao: string;
|
|
1259
|
+
};
|
|
1260
|
+
tpAmb: EnvironmentCode;
|
|
1261
|
+
verAplic: string;
|
|
1262
|
+
cStat: string;
|
|
1263
|
+
xMotivo: string;
|
|
1264
|
+
cUF: StateCode;
|
|
1265
|
+
dhRecbto: string;
|
|
1266
|
+
infRec: {
|
|
1268
1267
|
nRec: string;
|
|
1269
1268
|
tMed: string;
|
|
1270
1269
|
};
|
|
1271
|
-
protNFe?: ProtNFe;
|
|
1272
1270
|
};
|
|
1273
1271
|
}
|
|
1272
|
+
type AutorizacaoResponse<E extends NFe$1 = NFe$1, T extends E | E[] = E | E[]> = SynchronousAutorizacaoResponse<T> | AsynchronousAutorizacaoResponse;
|
|
1274
1273
|
|
|
1275
1274
|
interface RetAutorizacaoPayload {
|
|
1276
|
-
tpAmb
|
|
1277
|
-
cUF?: StateCode;
|
|
1275
|
+
tpAmb: EnvironmentCode;
|
|
1278
1276
|
nRec: string;
|
|
1279
1277
|
}
|
|
1280
1278
|
interface RetAutorizacaoRequest {
|
|
@@ -1292,7 +1290,9 @@ interface RetAutorizacaoResponse {
|
|
|
1292
1290
|
xMotivo: string;
|
|
1293
1291
|
cUF: string;
|
|
1294
1292
|
dhRecbto: string;
|
|
1295
|
-
|
|
1293
|
+
cMsg?: string;
|
|
1294
|
+
xMsg?: string;
|
|
1295
|
+
protNFe?: ProtNFe | ProtNFe[];
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
@@ -1400,7 +1400,7 @@ interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
|
|
|
1400
1400
|
consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
1401
1401
|
inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
1402
1402
|
consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
|
|
1403
|
-
autorizacao(payload: AutorizacaoPayload<
|
|
1403
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
1404
1404
|
retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
1405
1405
|
recepcaoEvento<T>(payload: EventoPayload<T>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
1406
1406
|
consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
|
|
@@ -1409,7 +1409,7 @@ interface NfeRemoteClient extends Client {
|
|
|
1409
1409
|
nfeStatusServicoNF(args: ConsultStatusRequest, opt?: RequestConfig): Promise<ConsultStatusResponse>;
|
|
1410
1410
|
nfeInutilizacaoNF(args: InutilizacaoRequest, opt?: RequestConfig): Promise<InutilizacaoResponse>;
|
|
1411
1411
|
nfeConsultaNF(args: ConsultaProtocoloRequest, opt?: RequestConfig): Promise<ConsultaProtocoloResponse>;
|
|
1412
|
-
nfeAutorizacaoLote(args: AutorizacaoRequest<
|
|
1412
|
+
nfeAutorizacaoLote<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
|
|
1413
1413
|
nfeRetAutorizacaoLote(args: RetAutorizacaoRequest, opt?: RequestConfig): Promise<RetAutorizacaoResponse>;
|
|
1414
1414
|
nfeRecepcaoEvento<T>(args: EventoRequest<T>, opt?: RequestConfig): Promise<EventoResponse>;
|
|
1415
1415
|
consultaCadastro(args: ConsultaCadastroRequest, opt?: RequestConfig): Promise<ConsultaCadastroResponse>;
|
|
@@ -1437,10 +1437,10 @@ interface NfceTransmitterOptions extends NfeTransmitterOptions {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
interface NfceTransmitter extends NfeTransmitter, Transmitter<NfceRemoteClient> {
|
|
1439
1439
|
configure(options: NfceTransmitterOptions): this;
|
|
1440
|
-
autorizacao(payload: AutorizacaoPayload<
|
|
1440
|
+
autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
1441
1441
|
}
|
|
1442
1442
|
interface NfceRemoteClient extends NfeRemoteClient {
|
|
1443
|
-
nfeAutorizacaoLote(args: AutorizacaoRequest<
|
|
1443
|
+
nfeAutorizacaoLote<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
1446
|
interface DetBuilder {
|
|
@@ -2984,7 +2984,7 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
|
|
|
2984
2984
|
consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
2985
2985
|
inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
2986
2986
|
consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
|
|
2987
|
-
autorizacao(payload: AutorizacaoPayload<
|
|
2987
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
2988
2988
|
retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
2989
2989
|
recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
|
|
2990
2990
|
consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
|
|
@@ -2997,56 +2997,17 @@ declare abstract class TransmissionPipeline extends Pipeline {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
|
|
2999
2999
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3000
|
-
execute(payload: AutorizacaoPayload<
|
|
3001
|
-
protected
|
|
3000
|
+
execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, SynchronousAutorizacaoResponse<T>>>;
|
|
3001
|
+
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
3002
|
+
protected handleNfeBatch(certificate: ReadCertificateResponse, NFe: NFe | NFe[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
|
|
3003
|
+
protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
|
|
3004
|
+
protected handleAsyncResponse<E extends NFe, T extends E | E[]>(response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, SynchronousAutorizacaoResponse<T>>>;
|
|
3005
|
+
protected contingency(NFe: NFe): {
|
|
3002
3006
|
dhCont: string;
|
|
3003
3007
|
xJust: string;
|
|
3004
3008
|
} | undefined;
|
|
3005
3009
|
}
|
|
3006
3010
|
|
|
3007
|
-
declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
3008
|
-
protected readonly certificate: ReadCertificateRequest;
|
|
3009
|
-
protected readonly transmitter: NfeRemoteTransmitter;
|
|
3010
|
-
constructor(certificate: ReadCertificateRequest);
|
|
3011
|
-
}
|
|
3012
|
-
|
|
3013
|
-
declare abstract class EventPipeline extends TransmissionPipeline {
|
|
3014
|
-
protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
|
|
3015
|
-
descEvento: string;
|
|
3016
|
-
} & T>>>;
|
|
3017
|
-
private validated;
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
interface DetEventoCancelamento {
|
|
3021
|
-
xJust: string;
|
|
3022
|
-
nProt: string;
|
|
3023
|
-
}
|
|
3024
|
-
interface EventoCancelamento extends DetEventoCancelamento {
|
|
3025
|
-
chNFe: string;
|
|
3026
|
-
idLote?: string;
|
|
3027
|
-
dhEvento?: string;
|
|
3028
|
-
}
|
|
3029
|
-
|
|
3030
|
-
declare class NfeNfceCancelPipeline extends EventPipeline {
|
|
3031
|
-
execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
|
|
3035
|
-
execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
3036
|
-
private validated;
|
|
3037
|
-
}
|
|
3038
|
-
|
|
3039
|
-
declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
3040
|
-
protected readonly certificate?: ReadCertificateRequest | undefined;
|
|
3041
|
-
protected readonly schema: Schema;
|
|
3042
|
-
protected readonly builder: InfNFeBuilder<T> & IdeBuilder<T>;
|
|
3043
|
-
constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
|
|
3044
|
-
toObject(build: (builder: typeof this.builder) => AssembleNfeBuilder<T>): Either<NFeTsError, T>;
|
|
3045
|
-
assemble(build: (builder: typeof this.builder) => AssembleNfeBuilder<T>): Promise<Either<NFeTsError, string>>;
|
|
3046
|
-
protected get nfeXsdSchema(): string;
|
|
3047
|
-
protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
|
|
3048
|
-
}
|
|
3049
|
-
|
|
3050
3011
|
declare const _default: {
|
|
3051
3012
|
readonly AC: {
|
|
3052
3013
|
readonly "2": {
|
|
@@ -4273,13 +4234,6 @@ declare const webservices: {
|
|
|
4273
4234
|
readonly SVRS: "SVRS";
|
|
4274
4235
|
};
|
|
4275
4236
|
|
|
4276
|
-
declare class NFCe implements NFCe$1 {
|
|
4277
|
-
$: NFeAttributes;
|
|
4278
|
-
infNFe: InfNFe;
|
|
4279
|
-
infNFeSupl: InfNFeSupl;
|
|
4280
|
-
Signature?: Signature;
|
|
4281
|
-
}
|
|
4282
|
-
|
|
4283
4237
|
declare class NfceQrcode {
|
|
4284
4238
|
private readonly certificateRepository;
|
|
4285
4239
|
constructor(certificateRepository: CertificateRepository);
|
|
@@ -4570,15 +4524,63 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4570
4524
|
readonly version: "200";
|
|
4571
4525
|
readonly url: "http://www.sefaz.to.gov.br/nfce/qrcode";
|
|
4572
4526
|
};
|
|
4573
|
-
autorizacao(payload: AutorizacaoPayload<
|
|
4527
|
+
autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4574
4528
|
private getUrlConsult;
|
|
4575
|
-
private
|
|
4529
|
+
private attachInfNfeSupl;
|
|
4530
|
+
private attachQrCode;
|
|
4531
|
+
private generateQrCode;
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4534
|
+
declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
4535
|
+
protected readonly certificate: ReadCertificateRequest;
|
|
4536
|
+
protected readonly qrCode: NfceQrcode;
|
|
4537
|
+
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4538
|
+
constructor(certificate: ReadCertificateRequest);
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4541
|
+
declare abstract class EventPipeline extends TransmissionPipeline {
|
|
4542
|
+
protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
|
|
4543
|
+
descEvento: string;
|
|
4544
|
+
} & T>>>;
|
|
4545
|
+
private validated;
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
interface DetEventoCancelamento {
|
|
4549
|
+
xJust: string;
|
|
4550
|
+
nProt: string;
|
|
4551
|
+
}
|
|
4552
|
+
interface EventoCancelamento extends DetEventoCancelamento {
|
|
4553
|
+
chNFe: string;
|
|
4554
|
+
idLote?: string;
|
|
4555
|
+
dhEvento?: string;
|
|
4556
|
+
}
|
|
4557
|
+
|
|
4558
|
+
declare class NfeNfceCancelPipeline extends EventPipeline {
|
|
4559
|
+
execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4562
|
+
declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
|
|
4563
|
+
execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
4564
|
+
private validated;
|
|
4565
|
+
}
|
|
4566
|
+
|
|
4567
|
+
declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
4568
|
+
protected readonly certificate?: ReadCertificateRequest | undefined;
|
|
4569
|
+
protected readonly schema: Schema;
|
|
4570
|
+
protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
|
|
4571
|
+
constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
|
|
4572
|
+
build(build: (builder: InfNFeBuilder<T> & IdeBuilder<T>) => AssembleNfeBuilder<T>): this;
|
|
4573
|
+
toObject(): Either<NFeTsError, T>;
|
|
4574
|
+
assemble(): Promise<Either<NFeTsError, string>>;
|
|
4575
|
+
protected get nfeXsdSchema(): string;
|
|
4576
|
+
protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
|
|
4576
4577
|
}
|
|
4577
4578
|
|
|
4578
4579
|
declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<T> {
|
|
4579
4580
|
protected readonly builder: XmlToolkit;
|
|
4580
4581
|
protected contingency?: ContingencyOptions | undefined;
|
|
4581
4582
|
protected readonly data: NFe$1;
|
|
4583
|
+
private $data;
|
|
4582
4584
|
protected get entity(): new () => T;
|
|
4583
4585
|
protected readonly root = "NFe";
|
|
4584
4586
|
protected readonly $det: DetBuilderAggregator | undefined;
|
|
@@ -4646,4 +4648,11 @@ declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
|
|
|
4646
4648
|
assemble(): Det;
|
|
4647
4649
|
}
|
|
4648
4650
|
|
|
4651
|
+
declare class NFCe implements NFCe$1 {
|
|
4652
|
+
$: NFeAttributes;
|
|
4653
|
+
infNFe: InfNFe;
|
|
4654
|
+
infNFeSupl: InfNFeSupl;
|
|
4655
|
+
Signature?: Signature;
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4649
4658
|
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AutXMLBuilder, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfIntermedBuilder, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type IssIpiBuilder, type IssQnBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, NfceAuthorizerPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PisBuilder, type PisStBuilder, type ProdBuilder, type RetiradaBuilder, type Schema, type TotalBuilder, type TotalBuilderAggregator, TpEmis, type TranspBuilder, type VerifiedAccessKey, directory };
|