nfets 0.0.128 → 0.0.130
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/nfe/index.d.cts +10 -10
- package/dist/nfe/index.d.ts +10 -10
- package/package.json +1 -1
package/dist/nfe/index.d.cts
CHANGED
|
@@ -1950,10 +1950,10 @@ interface NfceTransmitterOptions extends NfeTransmitterOptions {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
interface NfceTransmitter extends NfeTransmitter, Transmitter<NfceRemoteClient> {
|
|
1952
1952
|
configure(options: NfceTransmitterOptions): this;
|
|
1953
|
-
autorizacao<E extends
|
|
1953
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
1954
1954
|
}
|
|
1955
1955
|
interface NfceRemoteClient extends NfeRemoteClient {
|
|
1956
|
-
nfeAutorizacaoLote<E extends
|
|
1956
|
+
nfeAutorizacaoLote<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
|
|
1957
1957
|
}
|
|
1958
1958
|
|
|
1959
1959
|
interface Builder {
|
|
@@ -3651,7 +3651,7 @@ declare class NfeAuthorizationResponsePipeline extends TransmissionPipeline {
|
|
|
3651
3651
|
declare class NfceQrcode {
|
|
3652
3652
|
private readonly certificateRepository;
|
|
3653
3653
|
constructor(certificateRepository: CertificateRepository);
|
|
3654
|
-
execute(entity: SignedEntity<
|
|
3654
|
+
execute(entity: SignedEntity<NFe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
3655
3655
|
private content;
|
|
3656
3656
|
private isVersion200;
|
|
3657
3657
|
private isVersion300;
|
|
@@ -4896,8 +4896,8 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4896
4896
|
constructor(remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient>, qrCode: NfceQrcode);
|
|
4897
4897
|
configure(options: NfceTransmitterOptions): this;
|
|
4898
4898
|
service<WS extends Record<string, unknown> = typeof webservices, O extends Record<string, unknown> = typeof _default, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode, K extends ServiceOptions<WS, O, S, E>['service'] = ServiceOptions<WS, O, S, E>['service']>(options: ServiceOptions<WS, O, S, E, K>): WebserviceForService<WS, O, S, E, K>;
|
|
4899
|
-
getUrlConsult(NFe:
|
|
4900
|
-
autorizacao<E extends
|
|
4899
|
+
getUrlConsult(NFe: NFe$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";
|
|
4900
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4901
4901
|
}
|
|
4902
4902
|
|
|
4903
4903
|
declare class NfceCancelPipeline extends NfeCancelPipeline {
|
|
@@ -4977,7 +4977,7 @@ interface DanfceOptions {
|
|
|
4977
4977
|
|
|
4978
4978
|
declare abstract class DanfcePdfDocument {
|
|
4979
4979
|
protected readonly stream: Writable;
|
|
4980
|
-
data:
|
|
4980
|
+
data: NFe$1;
|
|
4981
4981
|
protNFe?: ProtNFe;
|
|
4982
4982
|
readonly builder: PdfBuilder;
|
|
4983
4983
|
readonly toolkit: XmlToolkit;
|
|
@@ -5074,9 +5074,9 @@ declare class NfeXmlBuilder<T extends object = NFe$1, S extends Schema = typeof
|
|
|
5074
5074
|
private fillAccessKeyIfEmpty;
|
|
5075
5075
|
}
|
|
5076
5076
|
|
|
5077
|
-
declare class NfceXmlBuilder<T extends object =
|
|
5078
|
-
readonly data:
|
|
5079
|
-
static create<T extends object =
|
|
5077
|
+
declare class NfceXmlBuilder<T extends object = NFe$1, S extends Schema = typeof DefaultSchema> extends NfeXmlBuilder<T, S> {
|
|
5078
|
+
readonly data: NFe$1;
|
|
5079
|
+
static create<T extends object = NFe$1, S extends Schema = typeof DefaultSchema>(builder: XmlToolkit, contingency?: ContingencyOptions, schema?: S): InfNFeBuilder<T, S> & IdeBuilder<T, S>;
|
|
5080
5080
|
protected toInstance(): T;
|
|
5081
5081
|
protected assertHomologValidations(): boolean;
|
|
5082
5082
|
protected assertContingencyModes(): void;
|
|
@@ -5107,7 +5107,7 @@ declare class NfeDetXmlBuilder<S extends Schema> implements INfeDetXmlBuilder<S>
|
|
|
5107
5107
|
assemble(): Det;
|
|
5108
5108
|
}
|
|
5109
5109
|
|
|
5110
|
-
declare class NFCe implements
|
|
5110
|
+
declare class NFCe implements NFe$1 {
|
|
5111
5111
|
$: NFeAttributes;
|
|
5112
5112
|
infNFe: InfNFe;
|
|
5113
5113
|
infNFeSupl: InfNFeSupl;
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -1950,10 +1950,10 @@ interface NfceTransmitterOptions extends NfeTransmitterOptions {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
interface NfceTransmitter extends NfeTransmitter, Transmitter<NfceRemoteClient> {
|
|
1952
1952
|
configure(options: NfceTransmitterOptions): this;
|
|
1953
|
-
autorizacao<E extends
|
|
1953
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
1954
1954
|
}
|
|
1955
1955
|
interface NfceRemoteClient extends NfeRemoteClient {
|
|
1956
|
-
nfeAutorizacaoLote<E extends
|
|
1956
|
+
nfeAutorizacaoLote<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(args: AutorizacaoRequest<E, T>, opt?: RequestConfig): Promise<AutorizacaoResponse>;
|
|
1957
1957
|
}
|
|
1958
1958
|
|
|
1959
1959
|
interface Builder {
|
|
@@ -3651,7 +3651,7 @@ declare class NfeAuthorizationResponsePipeline extends TransmissionPipeline {
|
|
|
3651
3651
|
declare class NfceQrcode {
|
|
3652
3652
|
private readonly certificateRepository;
|
|
3653
3653
|
constructor(certificateRepository: CertificateRepository);
|
|
3654
|
-
execute(entity: SignedEntity<
|
|
3654
|
+
execute(entity: SignedEntity<NFe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
3655
3655
|
private content;
|
|
3656
3656
|
private isVersion200;
|
|
3657
3657
|
private isVersion300;
|
|
@@ -4896,8 +4896,8 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4896
4896
|
constructor(remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient>, qrCode: NfceQrcode);
|
|
4897
4897
|
configure(options: NfceTransmitterOptions): this;
|
|
4898
4898
|
service<WS extends Record<string, unknown> = typeof webservices, O extends Record<string, unknown> = typeof _default, S extends StateCode = StateCode, E extends EnvironmentCode = EnvironmentCode, K extends ServiceOptions<WS, O, S, E>['service'] = ServiceOptions<WS, O, S, E>['service']>(options: ServiceOptions<WS, O, S, E, K>): WebserviceForService<WS, O, S, E, K>;
|
|
4899
|
-
getUrlConsult(NFe:
|
|
4900
|
-
autorizacao<E extends
|
|
4899
|
+
getUrlConsult(NFe: NFe$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";
|
|
4900
|
+
autorizacao<E extends NFe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4901
4901
|
}
|
|
4902
4902
|
|
|
4903
4903
|
declare class NfceCancelPipeline extends NfeCancelPipeline {
|
|
@@ -4977,7 +4977,7 @@ interface DanfceOptions {
|
|
|
4977
4977
|
|
|
4978
4978
|
declare abstract class DanfcePdfDocument {
|
|
4979
4979
|
protected readonly stream: Writable;
|
|
4980
|
-
data:
|
|
4980
|
+
data: NFe$1;
|
|
4981
4981
|
protNFe?: ProtNFe;
|
|
4982
4982
|
readonly builder: PdfBuilder;
|
|
4983
4983
|
readonly toolkit: XmlToolkit;
|
|
@@ -5074,9 +5074,9 @@ declare class NfeXmlBuilder<T extends object = NFe$1, S extends Schema = typeof
|
|
|
5074
5074
|
private fillAccessKeyIfEmpty;
|
|
5075
5075
|
}
|
|
5076
5076
|
|
|
5077
|
-
declare class NfceXmlBuilder<T extends object =
|
|
5078
|
-
readonly data:
|
|
5079
|
-
static create<T extends object =
|
|
5077
|
+
declare class NfceXmlBuilder<T extends object = NFe$1, S extends Schema = typeof DefaultSchema> extends NfeXmlBuilder<T, S> {
|
|
5078
|
+
readonly data: NFe$1;
|
|
5079
|
+
static create<T extends object = NFe$1, S extends Schema = typeof DefaultSchema>(builder: XmlToolkit, contingency?: ContingencyOptions, schema?: S): InfNFeBuilder<T, S> & IdeBuilder<T, S>;
|
|
5080
5080
|
protected toInstance(): T;
|
|
5081
5081
|
protected assertHomologValidations(): boolean;
|
|
5082
5082
|
protected assertContingencyModes(): void;
|
|
@@ -5107,7 +5107,7 @@ declare class NfeDetXmlBuilder<S extends Schema> implements INfeDetXmlBuilder<S>
|
|
|
5107
5107
|
assemble(): Det;
|
|
5108
5108
|
}
|
|
5109
5109
|
|
|
5110
|
-
declare class NFCe implements
|
|
5110
|
+
declare class NFCe implements NFe$1 {
|
|
5111
5111
|
$: NFeAttributes;
|
|
5112
5112
|
infNFe: InfNFe;
|
|
5113
5113
|
infNFeSupl: InfNFeSupl;
|