nfets 0.0.84 → 0.0.92
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-DUZ2ZQ2D.mjs +26 -0
- package/dist/index.cjs +74 -68
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +74 -68
- package/dist/nfe/index.d.cts +12 -1
- package/dist/nfe/index.d.ts +12 -1
- package/dist/nfe/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-N4ST3ZYS.mjs +0 -20
package/dist/nfe/index.d.cts
CHANGED
|
@@ -3317,6 +3317,8 @@ declare class NfceQrcode {
|
|
|
3317
3317
|
private assemble;
|
|
3318
3318
|
private getSequence;
|
|
3319
3319
|
private execute200;
|
|
3320
|
+
private getQrcodeV300OfflineIdentification;
|
|
3321
|
+
private emissionDayOfMonthFormatted;
|
|
3320
3322
|
private execute300;
|
|
3321
3323
|
}
|
|
3322
3324
|
|
|
@@ -4864,11 +4866,20 @@ declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
|
4864
4866
|
toObject(): Either<NFeTsError, T>;
|
|
4865
4867
|
assemble(): Promise<Either<NFeTsError, string>>;
|
|
4866
4868
|
protected get nfeXsdSchema(): string;
|
|
4867
|
-
protected assertXmlSignedAndValidated(xml: string): Promise<
|
|
4869
|
+
protected assertXmlSignedAndValidated(xml: string): Promise<Either<NFeTsError, string>>;
|
|
4870
|
+
protected signXmlString(xml: string): Promise<Either<NFeTsError, string>>;
|
|
4871
|
+
protected validateXmlString(xml: string): Promise<Either<NFeTsError, string>>;
|
|
4868
4872
|
}
|
|
4869
4873
|
|
|
4870
4874
|
declare class NfceXmlBuilderPipeline<T extends object> extends NfeXmlBuilderPipeline<T> {
|
|
4875
|
+
protected readonly options?: Pick<NfceTransmitterOptions, "qrCode"> | undefined;
|
|
4876
|
+
protected readonly nfceQrcode: NfceQrcode;
|
|
4877
|
+
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4878
|
+
constructor(certificate?: ReadCertificateRequest, schema?: Schema, options?: Pick<NfceTransmitterOptions, "qrCode"> | undefined);
|
|
4871
4879
|
protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
|
|
4880
|
+
assemble(): Promise<Either<NFeTsError, string>>;
|
|
4881
|
+
private generateQrCode;
|
|
4882
|
+
private parseSignedNfce;
|
|
4872
4883
|
}
|
|
4873
4884
|
|
|
4874
4885
|
declare const DanfceSize: {
|
package/dist/nfe/index.d.ts
CHANGED
|
@@ -3317,6 +3317,8 @@ declare class NfceQrcode {
|
|
|
3317
3317
|
private assemble;
|
|
3318
3318
|
private getSequence;
|
|
3319
3319
|
private execute200;
|
|
3320
|
+
private getQrcodeV300OfflineIdentification;
|
|
3321
|
+
private emissionDayOfMonthFormatted;
|
|
3320
3322
|
private execute300;
|
|
3321
3323
|
}
|
|
3322
3324
|
|
|
@@ -4864,11 +4866,20 @@ declare class NfeXmlBuilderPipeline<T extends object> extends Pipeline {
|
|
|
4864
4866
|
toObject(): Either<NFeTsError, T>;
|
|
4865
4867
|
assemble(): Promise<Either<NFeTsError, string>>;
|
|
4866
4868
|
protected get nfeXsdSchema(): string;
|
|
4867
|
-
protected assertXmlSignedAndValidated(xml: string): Promise<
|
|
4869
|
+
protected assertXmlSignedAndValidated(xml: string): Promise<Either<NFeTsError, string>>;
|
|
4870
|
+
protected signXmlString(xml: string): Promise<Either<NFeTsError, string>>;
|
|
4871
|
+
protected validateXmlString(xml: string): Promise<Either<NFeTsError, string>>;
|
|
4868
4872
|
}
|
|
4869
4873
|
|
|
4870
4874
|
declare class NfceXmlBuilderPipeline<T extends object> extends NfeXmlBuilderPipeline<T> {
|
|
4875
|
+
protected readonly options?: Pick<NfceTransmitterOptions, "qrCode"> | undefined;
|
|
4876
|
+
protected readonly nfceQrcode: NfceQrcode;
|
|
4877
|
+
protected readonly transmitter: NfceRemoteTransmitter;
|
|
4878
|
+
constructor(certificate?: ReadCertificateRequest, schema?: Schema, options?: Pick<NfceTransmitterOptions, "qrCode"> | undefined);
|
|
4871
4879
|
protected readonly builder: (InfNFeBuilder<T> & IdeBuilder<T>) | AssembleNfeBuilder<T>;
|
|
4880
|
+
assemble(): Promise<Either<NFeTsError, string>>;
|
|
4881
|
+
private generateQrCode;
|
|
4882
|
+
private parseSignedNfce;
|
|
4872
4883
|
}
|
|
4873
4884
|
|
|
4874
4885
|
declare const DanfceSize: {
|
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,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-DUZ2ZQ2D.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.92",
|
|
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",
|