nfets 0.0.81 → 0.0.91
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-OE5U6JNA.mjs +20 -0
- package/dist/index.cjs +70 -70
- 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 +70 -70
- package/dist/nfe/index.d.cts +55 -52
- package/dist/nfe/index.d.ts +55 -52
- package/dist/nfe/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-4CTL55PS.mjs +0 -20
package/dist/nfe/index.d.cts
CHANGED
|
@@ -1855,12 +1855,6 @@ declare class DefaultTotalBuilderAggregator<T extends object> implements TotalBu
|
|
|
1855
1855
|
aggregate(): void;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
declare class NFe implements NFe$1 {
|
|
1859
|
-
$: NFeAttributes;
|
|
1860
|
-
infNFe: InfNFe;
|
|
1861
|
-
Signature?: Signature;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
1858
|
declare class CryptoSignerRepository implements SignerRepository {
|
|
1865
1859
|
sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Left<NFeTsError> | Right<string>>;
|
|
1866
1860
|
}
|
|
@@ -3267,6 +3261,23 @@ declare abstract class TransmissionPipeline extends Pipeline {
|
|
|
3267
3261
|
constructor(certificate: ReadCertificateRequest);
|
|
3268
3262
|
}
|
|
3269
3263
|
|
|
3264
|
+
declare abstract class EventPipeline extends TransmissionPipeline {
|
|
3265
|
+
protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
|
|
3266
|
+
descEvento: string;
|
|
3267
|
+
} & T>>>;
|
|
3268
|
+
private validated;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
declare class NfeCancelPipeline extends EventPipeline {
|
|
3272
|
+
execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
declare class NFe implements NFe$1 {
|
|
3276
|
+
$: NFeAttributes;
|
|
3277
|
+
infNFe: InfNFe;
|
|
3278
|
+
Signature?: Signature;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3270
3281
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3271
3282
|
execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
3272
3283
|
protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
|
|
@@ -3281,6 +3292,36 @@ declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
|
3281
3292
|
} | undefined;
|
|
3282
3293
|
}
|
|
3283
3294
|
|
|
3295
|
+
declare class NfeVoidRangePipeline extends TransmissionPipeline {
|
|
3296
|
+
execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
3297
|
+
private validated;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
declare class NfeConsultStatusPipeline extends TransmissionPipeline {
|
|
3301
|
+
execute(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
declare class NfeAuthorizationResponsePipeline extends TransmissionPipeline {
|
|
3305
|
+
execute(payload: RetAutorizacaoPayload & {
|
|
3306
|
+
cUF: StateCode;
|
|
3307
|
+
}): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
declare class NfceQrcode {
|
|
3311
|
+
private readonly certificateRepository;
|
|
3312
|
+
constructor(certificateRepository: CertificateRepository);
|
|
3313
|
+
execute(entity: SignedEntity<NFCe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
3314
|
+
private content;
|
|
3315
|
+
private isVersion200;
|
|
3316
|
+
private isVersion300;
|
|
3317
|
+
private assemble;
|
|
3318
|
+
private getSequence;
|
|
3319
|
+
private execute200;
|
|
3320
|
+
private getQrcodeV300OfflineIdentification;
|
|
3321
|
+
private emissionDayOfMonthFormatted;
|
|
3322
|
+
private execute300;
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3284
3325
|
declare const _default: {
|
|
3285
3326
|
readonly AC: {
|
|
3286
3327
|
readonly "2": {
|
|
@@ -4507,19 +4548,6 @@ declare const webservices: {
|
|
|
4507
4548
|
readonly SVRS: "SVRS";
|
|
4508
4549
|
};
|
|
4509
4550
|
|
|
4510
|
-
declare class NfceQrcode {
|
|
4511
|
-
private readonly certificateRepository;
|
|
4512
|
-
constructor(certificateRepository: CertificateRepository);
|
|
4513
|
-
execute(entity: SignedEntity<NFCe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
4514
|
-
private content;
|
|
4515
|
-
private isVersion200;
|
|
4516
|
-
private isVersion300;
|
|
4517
|
-
private assemble;
|
|
4518
|
-
private getSequence;
|
|
4519
|
-
private execute200;
|
|
4520
|
-
private execute300;
|
|
4521
|
-
}
|
|
4522
|
-
|
|
4523
4551
|
declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements NfceTransmitter {
|
|
4524
4552
|
protected readonly remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient>;
|
|
4525
4553
|
protected readonly qrCode: NfceQrcode;
|
|
@@ -4801,6 +4829,11 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4801
4829
|
autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4802
4830
|
}
|
|
4803
4831
|
|
|
4832
|
+
declare class NfceCancelPipeline extends NfeCancelPipeline {
|
|
4833
|
+
protected readonly qrCode: NfceQrcode;
|
|
4834
|
+
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4804
4837
|
declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
4805
4838
|
protected readonly certificate: ReadCertificateRequest;
|
|
4806
4839
|
protected readonly qrCode: NfceQrcode;
|
|
@@ -4814,44 +4847,14 @@ declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
|
4814
4847
|
private generateQrCode;
|
|
4815
4848
|
}
|
|
4816
4849
|
|
|
4817
|
-
declare class
|
|
4818
|
-
execute(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
4819
|
-
}
|
|
4820
|
-
|
|
4821
|
-
declare class NfceConsultStatusPipeline extends NfeConsultStatusPipeline {
|
|
4850
|
+
declare class NfceVoidRangePipeline extends NfeVoidRangePipeline {
|
|
4822
4851
|
protected readonly qrCode: NfceQrcode;
|
|
4823
4852
|
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4824
4853
|
}
|
|
4825
4854
|
|
|
4826
|
-
declare class
|
|
4827
|
-
execute(payload: RetAutorizacaoPayload & {
|
|
4828
|
-
cUF: StateCode;
|
|
4829
|
-
}): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
4830
|
-
}
|
|
4831
|
-
|
|
4832
|
-
declare abstract class EventPipeline extends TransmissionPipeline {
|
|
4833
|
-
protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
|
|
4834
|
-
descEvento: string;
|
|
4835
|
-
} & T>>>;
|
|
4836
|
-
private validated;
|
|
4837
|
-
}
|
|
4838
|
-
|
|
4839
|
-
declare class NfeCancelPipeline extends EventPipeline {
|
|
4840
|
-
execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
4841
|
-
}
|
|
4842
|
-
|
|
4843
|
-
declare class NfceCancelPipeline extends NfeCancelPipeline {
|
|
4844
|
-
protected readonly certificate: ReadCertificateRequest;
|
|
4855
|
+
declare class NfceConsultStatusPipeline extends NfeConsultStatusPipeline {
|
|
4845
4856
|
protected readonly qrCode: NfceQrcode;
|
|
4846
4857
|
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4847
|
-
constructor(certificate: ReadCertificateRequest);
|
|
4848
|
-
options: Pick<NfceTransmitterOptions, 'tpAmb'>;
|
|
4849
|
-
execute(payload: EventoCancelamento, options: Pick<NfceTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
|
-
declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
|
|
4853
|
-
execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
4854
|
-
private validated;
|
|
4855
4858
|
}
|
|
4856
4859
|
|
|
4857
4860
|
declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
@@ -5144,4 +5147,4 @@ declare class NFCe implements NFCe$1 {
|
|
|
5144
5147
|
Signature?: Signature;
|
|
5145
5148
|
}
|
|
5146
5149
|
|
|
5147
|
-
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, 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 ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, 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, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder,
|
|
5150
|
+
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, 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 ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, 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, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, 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, type vItemBuilder };
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -1855,12 +1855,6 @@ declare class DefaultTotalBuilderAggregator<T extends object> implements TotalBu
|
|
|
1855
1855
|
aggregate(): void;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
declare class NFe implements NFe$1 {
|
|
1859
|
-
$: NFeAttributes;
|
|
1860
|
-
infNFe: InfNFe;
|
|
1861
|
-
Signature?: Signature;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
1858
|
declare class CryptoSignerRepository implements SignerRepository {
|
|
1865
1859
|
sign(content: string, cert: ReadCertificateResponse, algorithm: SignatureAlgorithm): Promise<Left<NFeTsError> | Right<string>>;
|
|
1866
1860
|
}
|
|
@@ -3267,6 +3261,23 @@ declare abstract class TransmissionPipeline extends Pipeline {
|
|
|
3267
3261
|
constructor(certificate: ReadCertificateRequest);
|
|
3268
3262
|
}
|
|
3269
3263
|
|
|
3264
|
+
declare abstract class EventPipeline extends TransmissionPipeline {
|
|
3265
|
+
protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
|
|
3266
|
+
descEvento: string;
|
|
3267
|
+
} & T>>>;
|
|
3268
|
+
private validated;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
declare class NfeCancelPipeline extends EventPipeline {
|
|
3272
|
+
execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
declare class NFe implements NFe$1 {
|
|
3276
|
+
$: NFeAttributes;
|
|
3277
|
+
infNFe: InfNFe;
|
|
3278
|
+
Signature?: Signature;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3270
3281
|
declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
3271
3282
|
execute<E extends NFe, T extends E | E[]>(payload: AutorizacaoPayload<E, T>, options?: Pick<NfeTransmitterOptions, 'schema'>): Promise<Either<NFeTsError, PipelineAuthorizerResponse<E, T>>>;
|
|
3272
3283
|
protected protocol(NFe: NFe, protNFe: ProtNFe): Promise<string>;
|
|
@@ -3281,6 +3292,36 @@ declare class NfeAuthorizerPipeline extends TransmissionPipeline {
|
|
|
3281
3292
|
} | undefined;
|
|
3282
3293
|
}
|
|
3283
3294
|
|
|
3295
|
+
declare class NfeVoidRangePipeline extends TransmissionPipeline {
|
|
3296
|
+
execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
3297
|
+
private validated;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
declare class NfeConsultStatusPipeline extends TransmissionPipeline {
|
|
3301
|
+
execute(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
declare class NfeAuthorizationResponsePipeline extends TransmissionPipeline {
|
|
3305
|
+
execute(payload: RetAutorizacaoPayload & {
|
|
3306
|
+
cUF: StateCode;
|
|
3307
|
+
}): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
3310
|
+
declare class NfceQrcode {
|
|
3311
|
+
private readonly certificateRepository;
|
|
3312
|
+
constructor(certificateRepository: CertificateRepository);
|
|
3313
|
+
execute(entity: SignedEntity<NFCe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
3314
|
+
private content;
|
|
3315
|
+
private isVersion200;
|
|
3316
|
+
private isVersion300;
|
|
3317
|
+
private assemble;
|
|
3318
|
+
private getSequence;
|
|
3319
|
+
private execute200;
|
|
3320
|
+
private getQrcodeV300OfflineIdentification;
|
|
3321
|
+
private emissionDayOfMonthFormatted;
|
|
3322
|
+
private execute300;
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3284
3325
|
declare const _default: {
|
|
3285
3326
|
readonly AC: {
|
|
3286
3327
|
readonly "2": {
|
|
@@ -4507,19 +4548,6 @@ declare const webservices: {
|
|
|
4507
4548
|
readonly SVRS: "SVRS";
|
|
4508
4549
|
};
|
|
4509
4550
|
|
|
4510
|
-
declare class NfceQrcode {
|
|
4511
|
-
private readonly certificateRepository;
|
|
4512
|
-
constructor(certificateRepository: CertificateRepository);
|
|
4513
|
-
execute(entity: SignedEntity<NFCe$1>, options: NfceQrcodeOptions & NfceQrcodeOptionsBase): Promise<Left<NFeTsError> | Right<InfNFeSupl>>;
|
|
4514
|
-
private content;
|
|
4515
|
-
private isVersion200;
|
|
4516
|
-
private isVersion300;
|
|
4517
|
-
private assemble;
|
|
4518
|
-
private getSequence;
|
|
4519
|
-
private execute200;
|
|
4520
|
-
private execute300;
|
|
4521
|
-
}
|
|
4522
|
-
|
|
4523
4551
|
declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements NfceTransmitter {
|
|
4524
4552
|
protected readonly remoteTransmissionRepository: RemoteTransmissionRepository<NfceRemoteClient>;
|
|
4525
4553
|
protected readonly qrCode: NfceQrcode;
|
|
@@ -4801,6 +4829,11 @@ declare class NfceRemoteTransmitter extends NfeRemoteTransmitter implements Nfce
|
|
|
4801
4829
|
autorizacao<E extends NFCe$1, T extends SignedEntity<E> | SignedEntity<E>[]>(payload: AutorizacaoPayload<E, T>): Promise<Either<NFeTsError, AutorizacaoResponse>>;
|
|
4802
4830
|
}
|
|
4803
4831
|
|
|
4832
|
+
declare class NfceCancelPipeline extends NfeCancelPipeline {
|
|
4833
|
+
protected readonly qrCode: NfceQrcode;
|
|
4834
|
+
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4804
4837
|
declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
4805
4838
|
protected readonly certificate: ReadCertificateRequest;
|
|
4806
4839
|
protected readonly qrCode: NfceQrcode;
|
|
@@ -4814,44 +4847,14 @@ declare class NfceAuthorizerPipeline extends NfeAuthorizerPipeline {
|
|
|
4814
4847
|
private generateQrCode;
|
|
4815
4848
|
}
|
|
4816
4849
|
|
|
4817
|
-
declare class
|
|
4818
|
-
execute(payload: ConsultStatusPayload): Promise<Either<NFeTsError, ConsultStatusResponse>>;
|
|
4819
|
-
}
|
|
4820
|
-
|
|
4821
|
-
declare class NfceConsultStatusPipeline extends NfeConsultStatusPipeline {
|
|
4850
|
+
declare class NfceVoidRangePipeline extends NfeVoidRangePipeline {
|
|
4822
4851
|
protected readonly qrCode: NfceQrcode;
|
|
4823
4852
|
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4824
4853
|
}
|
|
4825
4854
|
|
|
4826
|
-
declare class
|
|
4827
|
-
execute(payload: RetAutorizacaoPayload & {
|
|
4828
|
-
cUF: StateCode;
|
|
4829
|
-
}): Promise<Either<NFeTsError, RetAutorizacaoResponse>>;
|
|
4830
|
-
}
|
|
4831
|
-
|
|
4832
|
-
declare abstract class EventPipeline extends TransmissionPipeline {
|
|
4833
|
-
protected event<T>(tpEvento: TpEvent, payload: Pick<EventoItem<T>['infEvento'], 'nSeqEvento' | 'dhEvento' | 'chNFe' | 'detEvento'>, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoItem<{
|
|
4834
|
-
descEvento: string;
|
|
4835
|
-
} & T>>>;
|
|
4836
|
-
private validated;
|
|
4837
|
-
}
|
|
4838
|
-
|
|
4839
|
-
declare class NfeCancelPipeline extends EventPipeline {
|
|
4840
|
-
execute(payload: EventoCancelamento, options: Pick<NfeTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
4841
|
-
}
|
|
4842
|
-
|
|
4843
|
-
declare class NfceCancelPipeline extends NfeCancelPipeline {
|
|
4844
|
-
protected readonly certificate: ReadCertificateRequest;
|
|
4855
|
+
declare class NfceConsultStatusPipeline extends NfeConsultStatusPipeline {
|
|
4845
4856
|
protected readonly qrCode: NfceQrcode;
|
|
4846
4857
|
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4847
|
-
constructor(certificate: ReadCertificateRequest);
|
|
4848
|
-
options: Pick<NfceTransmitterOptions, 'tpAmb'>;
|
|
4849
|
-
execute(payload: EventoCancelamento, options: Pick<NfceTransmitterOptions, 'tpAmb'>): Promise<Either<NFeTsError, EventoResponse>>;
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
|
-
declare class NfeNfceVoidRangePipeline extends TransmissionPipeline {
|
|
4853
|
-
execute(payload: VoidRangePayload, options: Pick<NfeTransmitterOptions, 'tpAmb' | 'cUF'>): Promise<Either<NFeTsError, InutilizacaoResponse>>;
|
|
4854
|
-
private validated;
|
|
4855
4858
|
}
|
|
4856
4859
|
|
|
4857
4860
|
declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
@@ -5144,4 +5147,4 @@ declare class NFCe implements NFCe$1 {
|
|
|
5144
5147
|
Signature?: Signature;
|
|
5145
5148
|
}
|
|
5146
5149
|
|
|
5147
|
-
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, 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 ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, 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, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder,
|
|
5150
|
+
export { type AccessKey, AccessKeyBuilder, type AssembleDetXmlBuilder, type AssembleNfeBuilder, type AsynchronousAutorizacaoResponse, type AutXMLBuilder, type AutorizacaoPayload, type AutorizacaoRequest, type AutorizacaoResponse, type AvulsaBuilder, type Builder, 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 ICMS, type ICMS00, type ICMS10, type ICMS20, type ICMS30, type ICMS40, type ICMS51, type ICMS60, type ICMS70, type ICMS90, type ICMSPart, type ICMSSN, type ICMSSN101, type ICMSSN102, type ICMSSN201, type ICMSSN202, type ICMSSN500, type ICMSSN900, type ICMSST, type ICMSStandard, type IIBuilder, type INfeDetXmlBuilder, type INfeXmlBuilder, type IbscbsBuilder, 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, NfceCancelPipeline, NfceConsultStatusPipeline, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceVoidRangePipeline, NfceXmlBuilder, NfceXmlBuilderPipeline, NfeAuthorizationResponsePipeline, NfeAuthorizerPipeline, NfeCancelPipeline, NfeConsultStatusPipeline, NfeCstatToProtocol, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeVoidRangePipeline, 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, type vItemBuilder };
|
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,z}from"../chunk-
|
|
2
|
+
import{A,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,z}from"../chunk-OE5U6JNA.mjs";import"../chunk-4WBTBSE6.mjs";import"../chunk-W6MRGYXP.mjs";export{d as AccessKeyBuilder,z as DanfceDefaultPdfDocument,A as DanfceReducedPdfDocument,e as DefaultDetBuilderAggregator,f as DefaultTotalBuilderAggregator,w as NFCeDto,s as NFeDto,p as NfceAuthorizerPipeline,o as NfceCancelPipeline,r as NfceConsultStatusPipeline,m as NfceQrcode,n as NfceRemoteTransmitter,q as NfceVoidRangePipeline,x as NfceXmlBuilder,y as NfceXmlBuilderPipeline,l as NfeAuthorizationResponsePipeline,i as NfeAuthorizerPipeline,h as NfeCancelPipeline,k as NfeConsultStatusPipeline,t as NfeDetXmlBuilder,g as NfeRemoteTransmitter,j as NfeVoidRangePipeline,u as NfeXmlBuilder,v as NfeXmlBuilderPipeline,a as TpEmis,b as TpEvent,c as schemas};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nfets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.91",
|
|
4
4
|
"description": "typescript libraries for Brazilian's SEFAZ standards",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"typescript": "^5.0.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
|
-
"install": "
|
|
92
|
+
"install": "pnpm dlx node-gyp@12.1.0 rebuild || echo 'Warning: Failed to rebuild native addon. Make sure you have build tools installed (python, make, g++, and libxml2-dev on Linux).'",
|
|
93
93
|
"build": "pnpm --filter !@nfets/test build && tsup --config tsup.config.ts",
|
|
94
94
|
"test": "pnpm --filter @nfets/* test",
|
|
95
95
|
"typecheck": "pnpm --filter @nfets/* typecheck",
|