nfets 0.0.40 → 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.
@@ -1,4 +1,4 @@
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';
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.js';
2
2
  import 'node:crypto';
3
3
 
4
4
  type DeepPartial<T> = {
@@ -945,6 +945,11 @@ interface InfNFe {
945
945
  infSolicNFF?: InfSolicNFF;
946
946
  }
947
947
 
948
+ interface InfNFeSupl {
949
+ qrCode: string;
950
+ urlChave: string;
951
+ }
952
+
948
953
  interface ProtNFeAttributes {
949
954
  versao: string;
950
955
  }
@@ -960,7 +965,7 @@ interface InfProt {
960
965
  cMsg?: string;
961
966
  xMsg?: string;
962
967
  }
963
- interface ProtNFe$1 {
968
+ interface ProtNFe {
964
969
  $: ProtNFeAttributes;
965
970
  infProt: InfProt;
966
971
  }
@@ -971,23 +976,17 @@ interface NFeAttributes {
971
976
  interface NFe$1 {
972
977
  $: NFeAttributes;
973
978
  infNFe: InfNFe;
979
+ infNFeSupl?: InfNFeSupl;
974
980
  }
975
981
  interface NFeProc {
976
982
  NFe: NFe$1;
977
- protNFe: ProtNFe$1;
983
+ protNFe: ProtNFe;
978
984
  }
979
985
 
980
- interface InfNFeSupl {
981
- qrCode: string;
982
- urlChave: string;
983
- }
984
-
985
- interface NFCe$1 extends NFe$1 {
986
- infNFeSupl: InfNFeSupl;
987
- }
986
+ type NFCe$1 = NFe$1;
988
987
  interface NFCeProc {
989
988
  NFe: NFCe$1;
990
- protNFe: ProtNFe$1;
989
+ protNFe: ProtNFe;
991
990
  }
992
991
 
993
992
  interface ConsultStatusPayload {
@@ -1162,24 +1161,6 @@ interface ConsultaProtocoloPayload {
1162
1161
  interface ConsultaProtocoloRequest {
1163
1162
  consSitNFe: ConsultaProtocoloPayload;
1164
1163
  }
1165
- interface ProtNFe {
1166
- $: {
1167
- versao: string;
1168
- };
1169
- infProt: {
1170
- tpAmb: string;
1171
- verAplic: string;
1172
- chNFe: string;
1173
- dhRecbto: string;
1174
- nProt?: string;
1175
- digVal?: string;
1176
- cStat: string;
1177
- xMotivo: string;
1178
- $?: {
1179
- Id?: string;
1180
- };
1181
- };
1182
- }
1183
1164
  interface RetCancNFe {
1184
1165
  $: {
1185
1166
  versao: string;
@@ -1247,17 +1228,17 @@ interface ConsultaProtocoloResponse {
1247
1228
  };
1248
1229
  }
1249
1230
 
1250
- interface AutorizacaoPayload<E extends object> {
1231
+ interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
1251
1232
  cUF?: StateCode;
1252
1233
  tpAmb?: EnvironmentCode;
1253
1234
  idLote?: string;
1254
1235
  indSinc?: '0' | '1';
1255
- NFe: E;
1236
+ NFe: T;
1256
1237
  }
1257
- interface AutorizacaoRequest<E extends object> {
1258
- enviNFe: AutorizacaoPayload<E>;
1238
+ interface AutorizacaoRequest<E extends NFe$1, T extends E | E[]> {
1239
+ enviNFe: AutorizacaoPayload<E, T>;
1259
1240
  }
1260
- interface AutorizacaoResponse {
1241
+ interface SynchronousAutorizacaoResponse<T extends NFe$1 | NFe$1[] = NFe$1 | NFe$1[]> {
1261
1242
  retEnviNFe: {
1262
1243
  $: {
1263
1244
  versao: string;
@@ -1268,17 +1249,30 @@ interface AutorizacaoResponse {
1268
1249
  xMotivo: string;
1269
1250
  cUF: string;
1270
1251
  dhRecbto: string;
1271
- infRec?: {
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: {
1272
1267
  nRec: string;
1273
1268
  tMed: string;
1274
1269
  };
1275
- protNFe?: ProtNFe;
1276
1270
  };
1277
1271
  }
1272
+ type AutorizacaoResponse<E extends NFe$1 = NFe$1, T extends E | E[] = E | E[]> = SynchronousAutorizacaoResponse<T> | AsynchronousAutorizacaoResponse;
1278
1273
 
1279
1274
  interface RetAutorizacaoPayload {
1280
- tpAmb?: EnvironmentCode;
1281
- cUF?: StateCode;
1275
+ tpAmb: EnvironmentCode;
1282
1276
  nRec: string;
1283
1277
  }
1284
1278
  interface RetAutorizacaoRequest {
@@ -1296,7 +1290,9 @@ interface RetAutorizacaoResponse {
1296
1290
  xMotivo: string;
1297
1291
  cUF: string;
1298
1292
  dhRecbto: string;
1299
- protNFe?: ProtNFe[];
1293
+ cMsg?: string;
1294
+ xMsg?: string;
1295
+ protNFe?: ProtNFe | ProtNFe[];
1300
1296
  };
1301
1297
  }
1302
1298
 
@@ -1404,7 +1400,7 @@ interface NfeTransmitter extends Transmitter<NfeRemoteClient> {
1404
1400
  consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
1405
1401
  inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
1406
1402
  consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
1407
- autorizacao(payload: AutorizacaoPayload<SignedEntity<NFe$1>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
1403
+ autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
1408
1404
  retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
1409
1405
  recepcaoEvento<T>(payload: EventoPayload<T>): Promise<Either<NFeTsError, EventoResponse>>;
1410
1406
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
@@ -1413,7 +1409,7 @@ interface NfeRemoteClient extends Client {
1413
1409
  nfeStatusServicoNF(args: ConsultStatusRequest, opt?: RequestConfig): Promise<ConsultStatusResponse>;
1414
1410
  nfeInutilizacaoNF(args: InutilizacaoRequest, opt?: RequestConfig): Promise<InutilizacaoResponse>;
1415
1411
  nfeConsultaNF(args: ConsultaProtocoloRequest, opt?: RequestConfig): Promise<ConsultaProtocoloResponse>;
1416
- nfeAutorizacaoLote(args: AutorizacaoRequest<SignedEntity<NFe$1>>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
1412
+ nfeAutorizacaoLote<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
1417
1413
  nfeRetAutorizacaoLote(args: RetAutorizacaoRequest, opt?: RequestConfig): Promise<RetAutorizacaoResponse>;
1418
1414
  nfeRecepcaoEvento<T>(args: EventoRequest<T>, opt?: RequestConfig): Promise<EventoResponse>;
1419
1415
  consultaCadastro(args: ConsultaCadastroRequest, opt?: RequestConfig): Promise<ConsultaCadastroResponse>;
@@ -1441,10 +1437,10 @@ interface NfceTransmitterOptions extends NfeTransmitterOptions {
1441
1437
  }
1442
1438
  interface NfceTransmitter extends NfeTransmitter, Transmitter<NfceRemoteClient> {
1443
1439
  configure(options: NfceTransmitterOptions): this;
1444
- autorizacao(payload: AutorizacaoPayload<SignedEntity<NFCe$1>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
1440
+ autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
1445
1441
  }
1446
1442
  interface NfceRemoteClient extends NfeRemoteClient {
1447
- nfeAutorizacaoLote(args: AutorizacaoRequest<SignedEntity<NFCe$1>>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
1443
+ nfeAutorizacaoLote<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
1448
1444
  }
1449
1445
 
1450
1446
  interface DetBuilder {
@@ -2988,7 +2984,7 @@ declare class NfeRemoteTransmitter implements NfeTransmitter {
2988
2984
  consultStatus(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
2989
2985
  inutilizacao(payload: InutilizacaoPayload): Promise<Either<NFeTsError, InutilizacaoResponse>>;
2990
2986
  consultaProtocolo(payload: ConsultaProtocoloPayload): Promise<Either<NFeTsError, ConsultaProtocoloResponse>>;
2991
- autorizacao(payload: AutorizacaoPayload<SignedEntity<NFe$1>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
2987
+ autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
2992
2988
  retAutorizacao(payload: RetAutorizacaoPayload): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
2993
2989
  recepcaoEvento<T>(payload: EventoRequest<T>['envEvento']): Promise<Either<NFeTsError, EventoResponse>>;
2994
2990
  consultaCadastro(payload: ConsultaCadastroPayload): Promise<Either<NFeTsError, ConsultaCadastroResponse>>;
@@ -3001,57 +2997,17 @@ declare abstract class TransmissionPipeline extends Pipeline {
3001
2997
  }
3002
2998
 
3003
2999
  declare class NfeAuthorizerPipeline extends TransmissionPipeline {
3004
- execute(payload: AutorizacaoPayload<NFe>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
3005
- protected contingency(payload: AutorizacaoPayload<NFe>): {
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): {
3006
3006
  dhCont: string;
3007
3007
  xJust: string;
3008
3008
  } | undefined;
3009
3009
  }
3010
3010
 
3011
- declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
3012
- protected readonly certificate: ReadCertificateRequest;
3013
- protected readonly transmitter: NfeRemoteTransmitter;
3014
- constructor(certificate: ReadCertificateRequest);
3015
- }
3016
-
3017
- declare abstract class EventPipeline extends TransmissionPipeline {
3018
- protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
3019
- descEvento: string;
3020
- } & T>>>;
3021
- private validated;
3022
- }
3023
-
3024
- interface DetEventoCancelamento {
3025
- xJust: string;
3026
- nProt: string;
3027
- }
3028
- interface EventoCancelamento extends DetEventoCancelamento {
3029
- chNFe: string;
3030
- idLote?: string;
3031
- dhEvento?: string;
3032
- }
3033
-
3034
- declare class NfeNfceCancelPipeline extends EventPipeline {
3035
- execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
3036
- }
3037
-
3038
- declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
3039
- execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
3040
- private validated;
3041
- }
3042
-
3043
- declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
3044
- protected readonly certificate?: ReadCertificateRequest | undefined;
3045
- protected readonly schema: Schema;
3046
- protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
3047
- constructor(certificate?: ReadCertificateRequest | undefined, schema?: Schema);
3048
- build(build: (builder: InfNFeBuilder<T> & IdeBuilder<T>) => AssembleNfeBuilder<T>): this;
3049
- toObject(): Either<NFeTsError, T>;
3050
- assemble(): Promise<Either<NFeTsError, string>>;
3051
- protected get nfeXsdSchema(): string;
3052
- protected assertXmlSignedAndValidated(xml: string): Promise<Left<NFeTsError> | Right<string>>;
3053
- }
3054
-
3055
3011
  declare const _default: {
3056
3012
  readonly AC: {
3057
3013
  readonly "2": {
@@ -4278,13 +4234,6 @@ declare const webservices: {
4278
4234
  readonly SVRS: "SVRS";
4279
4235
  };
4280
4236
 
4281
- declare class NFCe implements NFCe$1 {
4282
- $: NFeAttributes;
4283
- infNFe: InfNFe;
4284
- infNFeSupl: InfNFeSupl;
4285
- Signature?: Signature;
4286
- }
4287
-
4288
4237
  declare class NfceQrcode {
4289
4238
  private readonly certificateRepository;
4290
4239
  constructor(certificateRepository: CertificateRepository);
@@ -4575,15 +4524,63 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
4575
4524
  readonly version: "200";
4576
4525
  readonly url: "http://www.sefaz.to.gov.br/nfce/qrcode";
4577
4526
  };
4578
- autorizacao(payload: AutorizacaoPayload<SignedEntity<NFCe>>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
4527
+ autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
4579
4528
  private getUrlConsult;
4580
- private infNfeSupl;
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>>;
4581
4577
  }
4582
4578
 
4583
4579
  declare class NfeXmlBuilder<T extends object = NFe$1> implements INfeXmlBuilder<T> {
4584
4580
  protected readonly builder: XmlToolkit;
4585
4581
  protected contingency?: ContingencyOptions | undefined;
4586
4582
  protected readonly data: NFe$1;
4583
+ private $data;
4587
4584
  protected get entity(): new () => T;
4588
4585
  protected readonly root = "NFe";
4589
4586
  protected readonly $det: DetBuilderAggregator | undefined;
@@ -4651,4 +4648,11 @@ declare class NfeDetXmlBuilder implements INfeDetXmlBuilder {
4651
4648
  assemble(): Det;
4652
4649
  }
4653
4650
 
4651
+ declare class NFCe implements NFCe$1 {
4652
+ $: NFeAttributes;
4653
+ infNFe: InfNFe;
4654
+ infNFeSupl: InfNFeSupl;
4655
+ Signature?: Signature;
4656
+ }
4657
+
4654
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 };
@@ -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-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};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-UE7UEYKF.mjs";import"../chunk-CNX6WGGL.mjs";import"../chunk-W6MRGYXP.mjs";export{c as AccessKeyBuilder,d as DefaultDetBuilderAggregator,e as DefaultTotalBuilderAggregator,q as NFCeDto,m as NFeDto,j as NfceAuthorizerPipeline,i as NfceQrcode,h as NfceRemoteTransmitter,r as NfceXmlBuilder,g as NfeAuthorizerPipeline,n as NfeDetXmlBuilder,k as NfeNfceCancelPipeline,l as NfeNfceVoidRangePipeline,f as NfeRemoteTransmitter,o as NfeXmlBuilder,p as NfeXmlBuilderPipeline,a as TpEmis,b as directory};
@@ -321,7 +321,7 @@ interface CertificateRepository {
321
321
 
322
322
  interface RemoteTransmissionRepository<C extends Client> {
323
323
  setCertificate(certificate: ReadCertificateResponse): RemoteTransmissionRepository<C>;
324
- send<P extends SendTransmissionPayload<C>>(params: P): Promise<Either<NFeTsError, ExtractReturnType<C, P>>>;
324
+ send<P extends SendTransmissionPayload<C>, R extends ExtractReturnType<C, P>>(params: P): Promise<Either<NFeTsError, R>>;
325
325
  }
326
326
 
327
327
  interface SignerOptions<T = string> {
@@ -321,7 +321,7 @@ interface CertificateRepository {
321
321
 
322
322
  interface RemoteTransmissionRepository<C extends Client> {
323
323
  setCertificate(certificate: ReadCertificateResponse): RemoteTransmissionRepository<C>;
324
- send<P extends SendTransmissionPayload<C>>(params: P): Promise<Either<NFeTsError, ExtractReturnType<C, P>>>;
324
+ send<P extends SendTransmissionPayload<C>, R extends ExtractReturnType<C, P>>(params: P): Promise<Either<NFeTsError, R>>;
325
325
  }
326
326
 
327
327
  interface SignerOptions<T = string> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",