nfets 0.0.126 → 0.0.128

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.
Files changed (38) hide show
  1. package/build/addons/darwin-arm64/xml_validator.node +0 -0
  2. package/build/addons/linux-arm64/libxml2.so.2 +0 -0
  3. package/build/addons/linux-x64/libxml2.so.2 +0 -0
  4. package/build/addons/win32-x64/wincrypt_certificate_store.node +0 -0
  5. package/build/addons/win32-x64/winhttp_ssl_client.node +0 -0
  6. package/build/addons/win32-x64/xml_validator.node +0 -0
  7. package/dist/{chunk-24AGSZQQ.mjs → chunk-CBNKLDJE.mjs} +20 -13
  8. package/dist/core/index.cjs +90 -83
  9. package/dist/core/index.d.cts +3 -1
  10. package/dist/core/index.d.ts +3 -1
  11. package/dist/core/index.mjs +67 -67
  12. package/dist/index.d.cts +2 -2
  13. package/dist/index.d.ts +2 -2
  14. package/dist/nfe/index.cjs +32 -25
  15. package/dist/nfe/index.d.cts +318 -335
  16. package/dist/nfe/index.d.ts +318 -335
  17. package/dist/nfe/index.mjs +16 -16
  18. package/package.json +19 -18
  19. package/packages/nfe/schemas/PL_009_V4/tiposBasico_v1.03.xsd +3 -3
  20. package/packages/nfe/schemas/PL_009_V4/tiposBasico_v3.10.xsd +4 -4
  21. package/packages/nfe/schemas/PL_009_V4/tiposBasico_v4.00.xsd +4 -4
  22. package/packages/nfe/schemas/PL_009_V4/tiposDistDFe_v1.00.xsd +2 -2
  23. package/packages/nfe/schemas/PL_009_V4/tiposDistDFe_v1.01.xsd +2 -2
  24. package/packages/nfe/schemas/PL_010_V1/DFeTiposBasicos_v1.00.xsd +650 -138
  25. package/packages/nfe/schemas/PL_010_V1/leiauteNFe_v4.00.xsd +216 -56
  26. package/packages/nfe/schemas/PL_010_V1/nfe_v4.00.xsd +10 -10
  27. package/packages/nfe/schemas/PL_010_V1/tiposBasico_v4.00.xsd +17 -7
  28. package/packages/nfe/schemas/PL_010_V1/xmldsig-core-schema_v1.01.xsd +97 -97
  29. package/packages/nfe/schemas/PL_010_V1.21/DFeTiposBasicos_v1.00.xsd +641 -138
  30. package/packages/nfe/schemas/PL_010_V1.21/leiauteNFe_v4.00.xsd +215 -56
  31. package/packages/nfe/schemas/PL_010_V1.21/nfe_v4.00.xsd +10 -10
  32. package/packages/nfe/schemas/PL_010_V1.21/tiposBasico_v4.00.xsd +17 -7
  33. package/packages/nfe/schemas/PL_010_V1.21/xmldsig-core-schema_v1.01.xsd +97 -97
  34. package/packages/nfe/schemas/PL_010_V1.30/DFeTiposBasicos_v1.00.xsd +352 -45
  35. package/packages/nfe/schemas/PL_010_V1.30/leiauteNFe_v4.00.xsd +186 -48
  36. package/packages/nfe/schemas/PL_010_V1.30/nfe_v4.00.xsd +10 -10
  37. package/packages/nfe/schemas/PL_010_V1.30/tiposBasico_v4.00.xsd +17 -7
  38. package/packages/nfe/schemas/PL_010_V1.30/xmldsig-core-schema_v1.01.xsd +97 -97
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nfets",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "description": "typescript libraries for Brazilian's SEFAZ standards",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -58,36 +58,37 @@
58
58
  "class-validator": "^0.15.1",
59
59
  "dayjs": "^1.11.18",
60
60
  "dotenv": "^17.2.2",
61
- "esbuild": "^0.28.0",
62
- "pdfkit": "^0.18.0",
61
+ "esbuild": "^0.28.1",
62
+ "pdfkit": "^0.19.1",
63
63
  "reflect-metadata": "^0.2.2",
64
64
  "rimraf": "^6.0.1"
65
65
  },
66
66
  "devDependencies": {
67
- "@eslint/js": "^9.18.0",
68
- "@swc/core": "^1.15.0",
67
+ "@eslint/js": "^10.0.1",
68
+ "@swc/core": "^1.15.47",
69
69
  "@types/fs-extra": "^11.0.4",
70
70
  "@types/jest": "^30.0.0",
71
- "@types/node": "^25.0.3",
71
+ "@types/node": "^26.1.2",
72
72
  "@types/pdfkit": "^0.17.3",
73
- "@typescript-eslint/parser": "^8.21.0",
74
- "axios": "^1.7.9",
73
+ "@typescript-eslint/parser": "^8.66.0",
74
+ "axios": "^1.19.0",
75
75
  "cross-env": "^10.1.0",
76
- "eslint": "^9.19.0",
77
- "eslint-plugin-prettier": "^5.2.3",
78
- "fs-extra": "^11.3.0",
79
- "globals": "^17.0.0",
80
- "jest": "^30.2.0",
76
+ "eslint": "^10.8.0",
77
+ "eslint-plugin-prettier": "^5.5.6",
78
+ "fs-extra": "^11.4.0",
79
+ "globals": "^17.9.0",
80
+ "jest": "^30.4.2",
81
81
  "pdf-parse": "^2.4.5",
82
- "ts-jest": "^29.2.5",
82
+ "ts-jest": "^29.4.12",
83
83
  "ts-node": "^10.9.2",
84
- "tsc-alias": "^1.8.10",
84
+ "tsc-alias": "^1.9.1",
85
85
  "tsup": "^8.5.0",
86
- "tsx": "^4.19.2",
87
- "typescript-eslint": "^8.21.0"
86
+ "tsx": "^4.23.5",
87
+ "typescript": "^6.0.3",
88
+ "typescript-eslint": "^8.66.0"
88
89
  },
89
90
  "peerDependencies": {
90
- "typescript": "^5.0.0"
91
+ "typescript": ">=5.0.0"
91
92
  },
92
93
  "scripts": {
93
94
  "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).'",
@@ -60,7 +60,7 @@
60
60
  </xs:annotation>
61
61
  <xs:restriction base="xs:string">
62
62
  <xs:whiteSpace value="preserve"/>
63
- <xs:pattern value="[0-9]{44}"/>
63
+ <xs:pattern value="[0-9]{6}[0-9A-Z]{12}[0-9]{26}"/>
64
64
  </xs:restriction>
65
65
  </xs:simpleType>
66
66
  <xs:simpleType name="TProt">
@@ -98,7 +98,7 @@
98
98
  </xs:annotation>
99
99
  <xs:restriction base="xs:string">
100
100
  <xs:whiteSpace value="preserve"/>
101
- <xs:pattern value="[0-9]{14}"/>
101
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
102
102
  </xs:restriction>
103
103
  </xs:simpleType>
104
104
  <xs:simpleType name="TCnpjVar">
@@ -117,7 +117,7 @@
117
117
  <xs:restriction base="xs:string">
118
118
  <xs:whiteSpace value="preserve"/>
119
119
  <xs:maxLength value="14"/>
120
- <xs:pattern value="[0-9]{0}|[0-9]{14}"/>
120
+ <xs:pattern value="[0-9]{0}|[0-9A-Z]{12}[0-9]{2}"/>
121
121
  </xs:restriction>
122
122
  </xs:simpleType>
123
123
  <xs:simpleType name="TCpf">
@@ -52,7 +52,7 @@
52
52
  <xs:restriction base="xs:string">
53
53
  <xs:whiteSpace value="preserve"/>
54
54
  <xs:maxLength value="44"/>
55
- <xs:pattern value="[0-9]{44}"/>
55
+ <xs:pattern value="[0-9]{6}[0-9A-Z]{12}[0-9]{26}"/>
56
56
  </xs:restriction>
57
57
  </xs:simpleType>
58
58
  <xs:simpleType name="TProt">
@@ -92,7 +92,7 @@
92
92
  <xs:restriction base="xs:string">
93
93
  <xs:whiteSpace value="preserve"/>
94
94
  <xs:maxLength value="14"/>
95
- <xs:pattern value="[0-9]{14}"/>
95
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
96
96
  </xs:restriction>
97
97
  </xs:simpleType>
98
98
  <xs:simpleType name="TCnpjVar">
@@ -102,7 +102,7 @@
102
102
  <xs:restriction base="xs:string">
103
103
  <xs:whiteSpace value="preserve"/>
104
104
  <xs:maxLength value="14"/>
105
- <xs:pattern value="[0-9]{3,14}"/>
105
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
106
106
  </xs:restriction>
107
107
  </xs:simpleType>
108
108
  <xs:simpleType name="TCnpjOpc">
@@ -112,7 +112,7 @@
112
112
  <xs:restriction base="xs:string">
113
113
  <xs:whiteSpace value="preserve"/>
114
114
  <xs:maxLength value="14"/>
115
- <xs:pattern value="[0-9]{0}|[0-9]{14}"/>
115
+ <xs:pattern value="[0-9]{0}|[0-9A-Z]{12}[0-9]{2}"/>
116
116
  </xs:restriction>
117
117
  </xs:simpleType>
118
118
  <xs:simpleType name="TCpf">
@@ -52,7 +52,7 @@
52
52
  <xs:restriction base="xs:string">
53
53
  <xs:whiteSpace value="preserve"/>
54
54
  <xs:maxLength value="44"/>
55
- <xs:pattern value="[0-9]{44}"/>
55
+ <xs:pattern value="[0-9]{6}[0-9A-Z]{12}[0-9]{26}"/>
56
56
  </xs:restriction>
57
57
  </xs:simpleType>
58
58
  <xs:simpleType name="TProt">
@@ -92,7 +92,7 @@
92
92
  <xs:restriction base="xs:string">
93
93
  <xs:whiteSpace value="preserve"/>
94
94
  <xs:maxLength value="14"/>
95
- <xs:pattern value="[0-9]{14}"/>
95
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
96
96
  </xs:restriction>
97
97
  </xs:simpleType>
98
98
  <xs:simpleType name="TCnpjVar">
@@ -102,7 +102,7 @@
102
102
  <xs:restriction base="xs:string">
103
103
  <xs:whiteSpace value="preserve"/>
104
104
  <xs:maxLength value="14"/>
105
- <xs:pattern value="[0-9]{3,14}"/>
105
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
106
106
  </xs:restriction>
107
107
  </xs:simpleType>
108
108
  <xs:simpleType name="TCnpjOpc">
@@ -112,7 +112,7 @@
112
112
  <xs:restriction base="xs:string">
113
113
  <xs:whiteSpace value="preserve"/>
114
114
  <xs:maxLength value="14"/>
115
- <xs:pattern value="[0-9]{0}|[0-9]{14}"/>
115
+ <xs:pattern value="[0-9]{0}|[0-9A-Z]{12}[0-9]{2}"/>
116
116
  </xs:restriction>
117
117
  </xs:simpleType>
118
118
  <xs:simpleType name="TCpf">
@@ -116,7 +116,7 @@
116
116
  <xs:restriction base="xs:string">
117
117
  <xs:whiteSpace value="preserve"/>
118
118
  <xs:maxLength value="14"/>
119
- <xs:pattern value="[0-9]{14}"/>
119
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
120
120
  </xs:restriction>
121
121
  </xs:simpleType>
122
122
  <xs:simpleType name="TCpf">
@@ -173,7 +173,7 @@
173
173
  <xs:restriction base="xs:string">
174
174
  <xs:whiteSpace value="preserve"/>
175
175
  <xs:maxLength value="44"/>
176
- <xs:pattern value="[0-9]{44}"/>
176
+ <xs:pattern value="[0-9]{6}[0-9A-Z]{12}[0-9]{26}"/>
177
177
  </xs:restriction>
178
178
  </xs:simpleType>
179
179
  <xs:simpleType name="TProt">
@@ -118,7 +118,7 @@
118
118
  <xs:restriction base="xs:string">
119
119
  <xs:whiteSpace value="preserve"/>
120
120
  <xs:maxLength value="14"/>
121
- <xs:pattern value="[0-9]{14}"/>
121
+ <xs:pattern value="[0-9A-Z]{12}[0-9]{2}"/>
122
122
  </xs:restriction>
123
123
  </xs:simpleType>
124
124
  <xs:simpleType name="TCpf">
@@ -175,7 +175,7 @@
175
175
  <xs:restriction base="xs:string">
176
176
  <xs:whiteSpace value="preserve"/>
177
177
  <xs:maxLength value="44"/>
178
- <xs:pattern value="[0-9]{44}"/>
178
+ <xs:pattern value="[0-9]{6}[0-9A-Z]{12}[0-9]{26}"/>
179
179
  </xs:restriction>
180
180
  </xs:simpleType>
181
181
  <xs:simpleType name="TProt">