nfets 0.0.48 → 0.0.50
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-YXSKUFMV.mjs +20 -0
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +59 -59
- package/dist/nfe/index.d.cts +22 -9
- package/dist/nfe/index.d.ts +22 -9
- package/dist/nfe/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-CAMDTF2T.mjs +0 -20
package/dist/nfe/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as StateCode, j as EnvironmentCode, D as DecimalValue,
|
|
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, Z as Either, x as NFeTsError, a as ReadCertificateResponse, Q as SignerRepository, d as SignatureAlgorithm, _ as Left, $ as Right, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, L as RemoteTransmissionRepository, V as EntitySigner, W as XmlSigner, N as Namespaced } from '../xml-signer-Cu3OlWV1.cjs';
|
|
2
2
|
import { Writable } from 'node:stream';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
@@ -971,7 +971,7 @@ interface InfProt {
|
|
|
971
971
|
dhRecbto: string;
|
|
972
972
|
nProt: string;
|
|
973
973
|
digVal: string;
|
|
974
|
-
cStat: string;
|
|
974
|
+
cStat: NfeCstatToProtocol | string;
|
|
975
975
|
xMotivo: string;
|
|
976
976
|
cMsg?: string;
|
|
977
977
|
xMsg?: string;
|
|
@@ -988,6 +988,7 @@ interface NFe$1 {
|
|
|
988
988
|
$: NFeAttributes;
|
|
989
989
|
infNFe: InfNFe;
|
|
990
990
|
infNFeSupl?: InfNFeSupl;
|
|
991
|
+
Signature?: Signature;
|
|
991
992
|
}
|
|
992
993
|
interface NFeProcAttributes {
|
|
993
994
|
xmlns: 'http://www.portalfiscal.inf.br/nfe';
|
|
@@ -998,6 +999,15 @@ interface NFeProc<T extends object = NFe$1> {
|
|
|
998
999
|
$: NFeProcAttributes;
|
|
999
1000
|
protNFe: ProtNFe;
|
|
1000
1001
|
}
|
|
1002
|
+
declare enum NfeCstatToProtocol {
|
|
1003
|
+
Autorizada = "100",
|
|
1004
|
+
AutorizadaForaDoPrazo = "150",
|
|
1005
|
+
UsoDenegado = "110",
|
|
1006
|
+
NfeDenegada = "205",
|
|
1007
|
+
DenegadaIrregularidadeEmissor = "301",
|
|
1008
|
+
DenegadaIrregularidadeDestinatario = "302",
|
|
1009
|
+
DenegadaNaoHabilitadaNaUf = "303"
|
|
1010
|
+
}
|
|
1001
1011
|
|
|
1002
1012
|
interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
|
|
1003
1013
|
cUF?: StateCode;
|
|
@@ -3045,11 +3055,11 @@ declare abstract class TransmissionPipeline extends Pipeline {
|
|
|
3045
3055
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3046
3056
|
execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
3047
3057
|
protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
|
|
3048
|
-
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<
|
|
3058
|
+
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
|
|
3049
3059
|
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
3050
3060
|
protected handleNfeBatch(certificate: ReadCertificateResponse, NFe: NFe | NFe[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
|
|
3051
3061
|
protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
|
|
3052
|
-
protected handleAsyncResponse<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>
|
|
3062
|
+
protected handleAsyncResponse<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
3053
3063
|
protected contingency(NFe: NFe): {
|
|
3054
3064
|
dhCont: string;
|
|
3055
3065
|
xJust: string;
|
|
@@ -4572,11 +4582,8 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4572
4582
|
readonly version: "200";
|
|
4573
4583
|
readonly url: "http://www.sefaz.to.gov.br/nfce/qrcode";
|
|
4574
4584
|
};
|
|
4585
|
+
getUrlConsult(NFe: NFCe$1): "http://homologacao.sefaz.mt.gov.br/nfce/consultanfce" | "http://www.sefaz.mt.gov.br/nfce/consultanfce" | "https://hom.sat.sef.sc.gov.br/nfce/consulta" | "https://sat.sef.sc.gov.br/nfce/consulta" | "www.sefaznet.ac.gov.br/nfce/consulta" | "www.sefaz.al.gov.br/nfce/consulta" | "www.sefaz.ap.gov.br/nfce/consulta" | "www.sefaz.am.gov.br/nfce/consulta" | "http://hinternet.sefaz.ba.gov.br/nfce/consulta" | "www.sefaz.ce.gov.br/nfce/consulta" | "www.fazenda.df.gov.br/nfce/consulta" | "www.sefaz.es.gov.br/nfce/consulta" | "www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao" | "www.sefaz.ma.gov.br/nfce/consulta" | "https://hportalsped.fazenda.mg.gov.br/portalnfce" | "http://www.dfe.ms.gov.br/nfce/consulta" | "www.sefa.pa.gov.br/nfce/consulta" | "www.sefaz.pb.gov.br/nfcehom" | "nfce.sefaz.pe.gov.br/nfce/consulta" | "http://www.fazenda.pr.gov.br/nfce/consulta" | "www.sefaz.pi.gov.br/nfce/consulta" | "www.fazenda.rj.gov.br/nfce/consulta" | "www.set.rn.gov.br/nfce/consulta" | "www.sefin.ro.gov.br/nfce/consulta" | "www.sefaz.rr.gov.br/nfce/consulta" | "www.sefaz.rs.gov.br/nfce/consulta" | "http://www.hom.nfe.se.gov.br/nfce/consulta" | "https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica" | "http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf" | "http://www.sefaz.ba.gov.br/nfce/consulta" | "www.sefaz.go.gov.br/nfce/consulta" | "https://portalsped.fazenda.mg.gov.br/portalnfce" | "http://www.nfce.se.gov.br/nfce/consulta" | "https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica" | "www.sefaz.to.gov.br/nfce/consulta" | "www.sefaz.pb.gov.br/nfce/consulta";
|
|
4575
4586
|
autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4576
|
-
private getUrlConsult;
|
|
4577
|
-
private attachInfNfeSupl;
|
|
4578
|
-
private attachQrCode;
|
|
4579
|
-
private generateQrCode;
|
|
4580
4587
|
}
|
|
4581
4588
|
|
|
4582
4589
|
declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
@@ -4584,6 +4591,12 @@ declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
|
4584
4591
|
protected readonly qrCode: NfceQrcode;
|
|
4585
4592
|
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4586
4593
|
constructor(certificate: ReadCertificateRequest);
|
|
4594
|
+
options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>;
|
|
4595
|
+
execute<E extends NFCe$1, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
4596
|
+
protected signNfe(certificate: ReadCertificateResponse, NFe: NFCe$1): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
4597
|
+
private attachInfNfeSupl;
|
|
4598
|
+
private attachQrCode;
|
|
4599
|
+
private generateQrCode;
|
|
4587
4600
|
}
|
|
4588
4601
|
|
|
4589
4602
|
declare class NfeConsultStatusPipeline extends TransmissionPipeline {
|
|
@@ -4830,4 +4843,4 @@ declare class NFCe implements NFCe$1 {
|
|
|
4830
4843
|
Signature?: Signature;
|
|
4831
4844
|
}
|
|
4832
4845
|
|
|
4833
|
-
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, 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, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas };
|
|
4846
|
+
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, 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, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas };
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as StateCode, j as EnvironmentCode, D as DecimalValue,
|
|
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, Z as Either, x as NFeTsError, a as ReadCertificateResponse, Q as SignerRepository, d as SignatureAlgorithm, _ as Left, $ as Right, R as ReadCertificateRequest, J as HttpClient, w as XmlToolkit, y as CacheAdapter, z as CertificateRepository, L as RemoteTransmissionRepository, V as EntitySigner, W as XmlSigner, N as Namespaced } from '../xml-signer-Cu3OlWV1.js';
|
|
2
2
|
import { Writable } from 'node:stream';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
@@ -971,7 +971,7 @@ interface InfProt {
|
|
|
971
971
|
dhRecbto: string;
|
|
972
972
|
nProt: string;
|
|
973
973
|
digVal: string;
|
|
974
|
-
cStat: string;
|
|
974
|
+
cStat: NfeCstatToProtocol | string;
|
|
975
975
|
xMotivo: string;
|
|
976
976
|
cMsg?: string;
|
|
977
977
|
xMsg?: string;
|
|
@@ -988,6 +988,7 @@ interface NFe$1 {
|
|
|
988
988
|
$: NFeAttributes;
|
|
989
989
|
infNFe: InfNFe;
|
|
990
990
|
infNFeSupl?: InfNFeSupl;
|
|
991
|
+
Signature?: Signature;
|
|
991
992
|
}
|
|
992
993
|
interface NFeProcAttributes {
|
|
993
994
|
xmlns: 'http://www.portalfiscal.inf.br/nfe';
|
|
@@ -998,6 +999,15 @@ interface NFeProc<T extends object = NFe$1> {
|
|
|
998
999
|
$: NFeProcAttributes;
|
|
999
1000
|
protNFe: ProtNFe;
|
|
1000
1001
|
}
|
|
1002
|
+
declare enum NfeCstatToProtocol {
|
|
1003
|
+
Autorizada = "100",
|
|
1004
|
+
AutorizadaForaDoPrazo = "150",
|
|
1005
|
+
UsoDenegado = "110",
|
|
1006
|
+
NfeDenegada = "205",
|
|
1007
|
+
DenegadaIrregularidadeEmissor = "301",
|
|
1008
|
+
DenegadaIrregularidadeDestinatario = "302",
|
|
1009
|
+
DenegadaNaoHabilitadaNaUf = "303"
|
|
1010
|
+
}
|
|
1001
1011
|
|
|
1002
1012
|
interface AutorizacaoPayload<E extends NFe$1, T extends E | E[]> {
|
|
1003
1013
|
cUF?: StateCode;
|
|
@@ -3045,11 +3055,11 @@ declare abstract class TransmissionPipeline extends Pipeline {
|
|
|
3045
3055
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3046
3056
|
execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
3047
3057
|
protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
|
|
3048
|
-
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<
|
|
3058
|
+
protected response<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: SynchronousAutorizacaoResponse<T>): Promise<PipelineAuthorizerResponse<E, T>>;
|
|
3049
3059
|
protected signNfe(certificate: ReadCertificateResponse, NFe: NFe): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
3050
3060
|
protected handleNfeBatch(certificate: ReadCertificateResponse, NFe: NFe | NFe[]): Promise<Left<NFeTsError> | Right<SignedEntity<NFe>[]>>;
|
|
3051
3061
|
protected isSyncResponse<E extends NFe, T extends E | E[]>(response: AutorizacaoResponse<E, T>): response is SynchronousAutorizacaoResponse<T>;
|
|
3052
|
-
protected handleAsyncResponse<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>
|
|
3062
|
+
protected handleAsyncResponse<E extends NFe, T extends E | E[]>(NFe: SignedEntity<NFe>[], response: AsynchronousAutorizacaoResponse): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
3053
3063
|
protected contingency(NFe: NFe): {
|
|
3054
3064
|
dhCont: string;
|
|
3055
3065
|
xJust: string;
|
|
@@ -4572,11 +4582,8 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4572
4582
|
readonly version: "200";
|
|
4573
4583
|
readonly url: "http://www.sefaz.to.gov.br/nfce/qrcode";
|
|
4574
4584
|
};
|
|
4585
|
+
getUrlConsult(NFe: NFCe$1): "http://homologacao.sefaz.mt.gov.br/nfce/consultanfce" | "http://www.sefaz.mt.gov.br/nfce/consultanfce" | "https://hom.sat.sef.sc.gov.br/nfce/consulta" | "https://sat.sef.sc.gov.br/nfce/consulta" | "www.sefaznet.ac.gov.br/nfce/consulta" | "www.sefaz.al.gov.br/nfce/consulta" | "www.sefaz.ap.gov.br/nfce/consulta" | "www.sefaz.am.gov.br/nfce/consulta" | "http://hinternet.sefaz.ba.gov.br/nfce/consulta" | "www.sefaz.ce.gov.br/nfce/consulta" | "www.fazenda.df.gov.br/nfce/consulta" | "www.sefaz.es.gov.br/nfce/consulta" | "www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao" | "www.sefaz.ma.gov.br/nfce/consulta" | "https://hportalsped.fazenda.mg.gov.br/portalnfce" | "http://www.dfe.ms.gov.br/nfce/consulta" | "www.sefa.pa.gov.br/nfce/consulta" | "www.sefaz.pb.gov.br/nfcehom" | "nfce.sefaz.pe.gov.br/nfce/consulta" | "http://www.fazenda.pr.gov.br/nfce/consulta" | "www.sefaz.pi.gov.br/nfce/consulta" | "www.fazenda.rj.gov.br/nfce/consulta" | "www.set.rn.gov.br/nfce/consulta" | "www.sefin.ro.gov.br/nfce/consulta" | "www.sefaz.rr.gov.br/nfce/consulta" | "www.sefaz.rs.gov.br/nfce/consulta" | "http://www.hom.nfe.se.gov.br/nfce/consulta" | "https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica" | "http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf" | "http://www.sefaz.ba.gov.br/nfce/consulta" | "www.sefaz.go.gov.br/nfce/consulta" | "https://portalsped.fazenda.mg.gov.br/portalnfce" | "http://www.nfce.se.gov.br/nfce/consulta" | "https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica" | "www.sefaz.to.gov.br/nfce/consulta" | "www.sefaz.pb.gov.br/nfce/consulta";
|
|
4575
4586
|
autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4576
|
-
private getUrlConsult;
|
|
4577
|
-
private attachInfNfeSupl;
|
|
4578
|
-
private attachQrCode;
|
|
4579
|
-
private generateQrCode;
|
|
4580
4587
|
}
|
|
4581
4588
|
|
|
4582
4589
|
declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
@@ -4584,6 +4591,12 @@ declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
|
4584
4591
|
protected readonly qrCode: NfceQrcode;
|
|
4585
4592
|
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4586
4593
|
constructor(certificate: ReadCertificateRequest);
|
|
4594
|
+
options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>;
|
|
4595
|
+
execute<E extends NFCe$1, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options: Pick<NfceTransmitterOptions, 'schema' | 'qrCode'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
4596
|
+
protected signNfe(certificate: ReadCertificateResponse, NFe: NFCe$1): Promise<Either<NFeTsError, SignedEntity<NFe>>>;
|
|
4597
|
+
private attachInfNfeSupl;
|
|
4598
|
+
private attachQrCode;
|
|
4599
|
+
private generateQrCode;
|
|
4587
4600
|
}
|
|
4588
4601
|
|
|
4589
4602
|
declare class NfeConsultStatusPipeline extends TransmissionPipeline {
|
|
@@ -4830,4 +4843,4 @@ declare class NFCe implements NFCe$1 {
|
|
|
4830
4843
|
Signature?: Signature;
|
|
4831
4844
|
}
|
|
4832
4845
|
|
|
4833
|
-
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, 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, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas };
|
|
4846
|
+
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type CanaBuilder, type CobrBuilder, type CofinsBuilder, type CofinsStBuilder, type CompraBuilder, type ConsultStatusPayload, type ConsultStatusRequest, type ConsultStatusResponse, type ConsultaCadastroPayload, type ConsultaCadastroRequest, type ConsultaCadastroResponse, type ConsultaProtocoloPayload, type ConsultaProtocoloRequest, type ConsultaProtocoloResponse, type ContingencyOptions, DanfceDefaultPdfDocument, DanfceReducedPdfDocument, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DestBuilder, type DetBuilder, type DetBuilderAggregator, type DetEventoCancelamento, type DetGroupBuilder, type EmitBuilder, type EntregaBuilder, type EventoCancelamento, type EventoItem, type EventoItemAttributes, type EventoLotePayload, type EventoLoteResponse, type EventoPayload, type EventoRequest, type EventoResponse, type ExportaBuilder, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IcmsBuilder, type IcmsIpiBuilder, type IcmsOrIssQnBuilder, type IcmsufdestBuilder, type IdeBuilder, type ImpostoBuilder, type InfAdicBuilder, type InfEvento, type InfEventoAttributes, type InfIntermedBuilder, type InfInut, type InfInutAttributes, type InfNFeBuilder, type InfRespTecBuilder, type InfSolicNFFBuilder, type InutNFeAttributes, type InutilizacaoPayload, type InutilizacaoRequest, type InutilizacaoResponse, 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, type NFeProcAttributes, NfceAuthorizerPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, NfeNfceCancelPipeline, NfeNfceVoidRangePipeline, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, NfeXmlBuilderPipeline, type OptionalSharedImpostoBuilder, type PagBuilder, type PipelineAuthorizerResponse, type PisBuilder, type PisStBuilder, type ProcEventoNFe, type ProdBuilder, type RetAutorizacaoPayload, type RetAutorizacaoRequest, type RetAutorizacaoResponse, type RetCancNFe, type RetEvento, type RetEventoItem, type RetiradaBuilder, type Schema, type SynchronousAutorizacaoResponse, type TotalBuilder, type TotalBuilderAggregator, TpEmis, TpEvent, type TranspBuilder, type VerifiedAccessKey, type VoidRangePayload, schemas };
|
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,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../chunk-
|
|
2
|
+
import{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}from"../chunk-YXSKUFMV.mjs";import"../chunk-Q47VIRPG.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,x as DanfceDefaultPdfDocument,y as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,u as NFCeDto,q as NFeDto,k as NfceAuthorizerPipeline,m as NfceConsultStatusPipeline,j as NfceQrcode,i as NfceRemoteTransmitter,v as NfceXmlBuilder,w as NfceXmlBuilderPipeline,n as NfeAuthorizationResponsePipeline,h as NfeAuthorizerPipeline,l as NfeConsultStatusPipeline,r as NfeDetXmlBuilder,o as NfeNfceCancelPipeline,p as NfeNfceVoidRangePipeline,g as NfeRemoteTransmitter,s as NfeXmlBuilder,t as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
|