nfets 0.0.15 → 0.0.16

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.
@@ -78,6 +78,7 @@ interface VerifiedAccessKey extends AccessKey {
78
78
 
79
79
  declare enum TpEmis {
80
80
  Normal = "1",
81
+ EPEC = "4",
81
82
  SVCAN = "6",
82
83
  SVCRS = "7",
83
84
  OFFLINE = "9"
@@ -755,7 +756,7 @@ interface ObsItem {
755
756
  }
756
757
 
757
758
  interface DetAttributes {
758
- nItem?: string;
759
+ nItem: string;
759
760
  }
760
761
  interface Det {
761
762
  $: DetAttributes;
@@ -888,6 +889,30 @@ interface Cobr {
888
889
  dup?: Dup[];
889
890
  }
890
891
 
892
+ declare const TPags: {
893
+ readonly Dinheiro: "01";
894
+ readonly Cheque: "02";
895
+ readonly CartaoDeCredito: "03";
896
+ readonly CartaoDeDebito: "04";
897
+ readonly CartaoDaLoja: "05";
898
+ readonly ValeAlimentacao: "10";
899
+ readonly ValeRefeicao: "11";
900
+ readonly ValePresente: "12";
901
+ readonly ValeCombustivel: "13";
902
+ readonly BoletoBancario: "15";
903
+ readonly DepositoBancario: "16";
904
+ readonly PIXDinamico: "17";
905
+ readonly TransferenciaBancaria: "18";
906
+ readonly ProgramaFidelidade: "19";
907
+ readonly PIXEstatico: "20";
908
+ readonly CreditoEmLoja: "21";
909
+ readonly PagamentoNaoInformado: "22";
910
+ readonly SemPagamento: "90";
911
+ readonly PagamentoPosterior: "91";
912
+ readonly Outros: "99";
913
+ };
914
+ type TPag = (typeof TPags)[keyof typeof TPags];
915
+
891
916
  interface Card {
892
917
  cNPJ?: string;
893
918
  tBand?: string;
@@ -895,7 +920,7 @@ interface Card {
895
920
  }
896
921
  interface DetPag {
897
922
  indPag?: string;
898
- tPag: string;
923
+ tPag: TPag;
899
924
  vPag: DecimalValue;
900
925
  card?: Card;
901
926
  xPag?: string;
@@ -976,6 +1001,26 @@ interface InfNFe {
976
1001
  infSolicNFF?: InfSolicNFF;
977
1002
  }
978
1003
 
1004
+ interface ProtNFeAttributes {
1005
+ versao: string;
1006
+ }
1007
+ interface InfProt {
1008
+ tpAmb: string;
1009
+ verAplic: string;
1010
+ chNFe: string;
1011
+ dhRecbto: string;
1012
+ nProt: string;
1013
+ digVal: string;
1014
+ cStat: string;
1015
+ xMotivo: string;
1016
+ cMsg?: string;
1017
+ xMsg?: string;
1018
+ }
1019
+ interface ProtNFe$1 {
1020
+ $: ProtNFeAttributes;
1021
+ infProt: InfProt;
1022
+ }
1023
+
979
1024
  interface NFeAttributes {
980
1025
  xmlns: 'http://www.portalfiscal.inf.br/nfe';
981
1026
  }
@@ -983,6 +1028,10 @@ interface NFe$1 {
983
1028
  $: NFeAttributes;
984
1029
  infNFe: InfNFe;
985
1030
  }
1031
+ interface NFeProc {
1032
+ NFe: NFe$1;
1033
+ protNFe: ProtNFe$1;
1034
+ }
986
1035
 
987
1036
  interface InfNFeSupl {
988
1037
  qrCode: string;
@@ -992,6 +1041,10 @@ interface InfNFeSupl {
992
1041
  interface NFCe$1 extends NFe$1 {
993
1042
  infNFeSupl: InfNFeSupl;
994
1043
  }
1044
+ interface NFCeProc {
1045
+ NFe: NFCe$1;
1046
+ protNFe: ProtNFe$1;
1047
+ }
995
1048
 
996
1049
  interface ConsultStatusPayload {
997
1050
  tpAmb: EnvironmentCode;
@@ -4635,4 +4688,4 @@ declare class NFCe implements NFCe$2 {
4635
4688
  Signature?: Signature;
4636
4689
  }
4637
4690
 
4638
- export { type AccessKey, AccessKeyBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DetBuilderAggregator, nfeDetXmlBuilder as INfeDetXmlBuilder, nfeXmlBuilder as INfeXmlBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, type Schema, type TotalBuilderAggregator, TpEmis, type VerifiedAccessKey, directory };
4691
+ export { type AccessKey, AccessKeyBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DetBuilderAggregator, nfeDetXmlBuilder as INfeDetXmlBuilder, nfeXmlBuilder as INfeXmlBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, type Schema, type TotalBuilderAggregator, TpEmis, type VerifiedAccessKey, directory };
@@ -78,6 +78,7 @@ interface VerifiedAccessKey extends AccessKey {
78
78
 
79
79
  declare enum TpEmis {
80
80
  Normal = "1",
81
+ EPEC = "4",
81
82
  SVCAN = "6",
82
83
  SVCRS = "7",
83
84
  OFFLINE = "9"
@@ -755,7 +756,7 @@ interface ObsItem {
755
756
  }
756
757
 
757
758
  interface DetAttributes {
758
- nItem?: string;
759
+ nItem: string;
759
760
  }
760
761
  interface Det {
761
762
  $: DetAttributes;
@@ -888,6 +889,30 @@ interface Cobr {
888
889
  dup?: Dup[];
889
890
  }
890
891
 
892
+ declare const TPags: {
893
+ readonly Dinheiro: "01";
894
+ readonly Cheque: "02";
895
+ readonly CartaoDeCredito: "03";
896
+ readonly CartaoDeDebito: "04";
897
+ readonly CartaoDaLoja: "05";
898
+ readonly ValeAlimentacao: "10";
899
+ readonly ValeRefeicao: "11";
900
+ readonly ValePresente: "12";
901
+ readonly ValeCombustivel: "13";
902
+ readonly BoletoBancario: "15";
903
+ readonly DepositoBancario: "16";
904
+ readonly PIXDinamico: "17";
905
+ readonly TransferenciaBancaria: "18";
906
+ readonly ProgramaFidelidade: "19";
907
+ readonly PIXEstatico: "20";
908
+ readonly CreditoEmLoja: "21";
909
+ readonly PagamentoNaoInformado: "22";
910
+ readonly SemPagamento: "90";
911
+ readonly PagamentoPosterior: "91";
912
+ readonly Outros: "99";
913
+ };
914
+ type TPag = (typeof TPags)[keyof typeof TPags];
915
+
891
916
  interface Card {
892
917
  cNPJ?: string;
893
918
  tBand?: string;
@@ -895,7 +920,7 @@ interface Card {
895
920
  }
896
921
  interface DetPag {
897
922
  indPag?: string;
898
- tPag: string;
923
+ tPag: TPag;
899
924
  vPag: DecimalValue;
900
925
  card?: Card;
901
926
  xPag?: string;
@@ -976,6 +1001,26 @@ interface InfNFe {
976
1001
  infSolicNFF?: InfSolicNFF;
977
1002
  }
978
1003
 
1004
+ interface ProtNFeAttributes {
1005
+ versao: string;
1006
+ }
1007
+ interface InfProt {
1008
+ tpAmb: string;
1009
+ verAplic: string;
1010
+ chNFe: string;
1011
+ dhRecbto: string;
1012
+ nProt: string;
1013
+ digVal: string;
1014
+ cStat: string;
1015
+ xMotivo: string;
1016
+ cMsg?: string;
1017
+ xMsg?: string;
1018
+ }
1019
+ interface ProtNFe$1 {
1020
+ $: ProtNFeAttributes;
1021
+ infProt: InfProt;
1022
+ }
1023
+
979
1024
  interface NFeAttributes {
980
1025
  xmlns: 'http://www.portalfiscal.inf.br/nfe';
981
1026
  }
@@ -983,6 +1028,10 @@ interface NFe$1 {
983
1028
  $: NFeAttributes;
984
1029
  infNFe: InfNFe;
985
1030
  }
1031
+ interface NFeProc {
1032
+ NFe: NFe$1;
1033
+ protNFe: ProtNFe$1;
1034
+ }
986
1035
 
987
1036
  interface InfNFeSupl {
988
1037
  qrCode: string;
@@ -992,6 +1041,10 @@ interface InfNFeSupl {
992
1041
  interface NFCe$1 extends NFe$1 {
993
1042
  infNFeSupl: InfNFeSupl;
994
1043
  }
1044
+ interface NFCeProc {
1045
+ NFe: NFCe$1;
1046
+ protNFe: ProtNFe$1;
1047
+ }
995
1048
 
996
1049
  interface ConsultStatusPayload {
997
1050
  tpAmb: EnvironmentCode;
@@ -4635,4 +4688,4 @@ declare class NFCe implements NFCe$2 {
4635
4688
  Signature?: Signature;
4636
4689
  }
4637
4690
 
4638
- export { type AccessKey, AccessKeyBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DetBuilderAggregator, nfeDetXmlBuilder as INfeDetXmlBuilder, nfeXmlBuilder as INfeXmlBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, type Schema, type TotalBuilderAggregator, TpEmis, type VerifiedAccessKey, directory };
4691
+ export { type AccessKey, AccessKeyBuilder, type ContingencyOptions, DefaultDetBuilderAggregator, DefaultTotalBuilderAggregator, type DetBuilderAggregator, nfeDetXmlBuilder as INfeDetXmlBuilder, nfeXmlBuilder as INfeXmlBuilder, type NFCe$1 as NFCe, NFCe as NFCeDto, type NFCeProc, type NFe$1 as NFe, type NFeAttributes, NFe as NFeDto, type NFeProc, NfceQrcode, type NfceQrcodeOptions, type NfceQrcodeOptions200, type NfceQrcodeOptions300, type NfceQrcodeOptionsBase, type NfceRemoteClient, NfceRemoteTransmitter, type NfceTransmitter, type NfceTransmitterOptions, NfceXmlBuilder, NfeAuthorizerPipeline, NfeDetXmlBuilder, type NfeRemoteClient, NfeRemoteTransmitter, type NfeTransmitter, type NfeTransmitterOptions, NfeXmlBuilder, type Schema, type TotalBuilderAggregator, TpEmis, type VerifiedAccessKey, directory };
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-V2LFKSE4.mjs";import"../chunk-3WPW27WV.mjs";import"../chunk-W6MRGYXP.mjs";export{c as AccessKeyBuilder,d as DefaultDetBuilderAggregator,e as DefaultTotalBuilderAggregator,n as NFCeDto,f as NFeDto,j as NfceQrcode,i as NfceRemoteTransmitter,l as NfceXmlBuilder,h as NfeAuthorizerPipeline,m as NfeDetXmlBuilder,g as NfeRemoteTransmitter,k as NfeXmlBuilder,a as TpEmis,b as directory};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"../chunk-MOAUKJKC.mjs";import"../chunk-3WPW27WV.mjs";import"../chunk-W6MRGYXP.mjs";export{c as AccessKeyBuilder,d as DefaultDetBuilderAggregator,e as DefaultTotalBuilderAggregator,n as NFCeDto,f as NFeDto,j as NfceQrcode,i as NfceRemoteTransmitter,l as NfceXmlBuilder,h as NfeAuthorizerPipeline,m as NfeDetXmlBuilder,g as NfeRemoteTransmitter,k as NfeXmlBuilder,a as TpEmis,b as directory};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -55,6 +55,7 @@
55
55
  "class-validator": "^0.14.1",
56
56
  "dayjs": "^1.11.18",
57
57
  "dotenv": "^17.2.2",
58
+ "pdfkit": "^0.17.2",
58
59
  "reflect-metadata": "^0.2.2",
59
60
  "rimraf": "^6.0.1",
60
61
  "@nfets/core": "0.0.1",
@@ -66,6 +67,7 @@
66
67
  "@types/fs-extra": "^11.0.4",
67
68
  "@types/jest": "^30.0.0",
68
69
  "@types/node": "^24.5.2",
70
+ "@types/pdfkit": "^0.17.3",
69
71
  "@typescript-eslint/parser": "^8.21.0",
70
72
  "axios": "^1.7.9",
71
73
  "eslint": "^9.19.0",
@@ -74,6 +76,7 @@
74
76
  "globals": "^16.0.0",
75
77
  "jest": "^30.2.0",
76
78
  "node-gyp": "^11.1.0",
79
+ "pdf-parse": "^2.4.5",
77
80
  "ts-jest": "^29.2.5",
78
81
  "ts-node": "^10.9.2",
79
82
  "tsc-alias": "^1.8.10",