facturas 0.16.1 → 0.18.0

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 (34) hide show
  1. package/README.md +19 -19
  2. package/dist/{chunk-WN62NMUJ.mjs → chunk-4RD5VQWC.mjs} +5 -29
  3. package/dist/chunk-4RD5VQWC.mjs.map +1 -0
  4. package/dist/{chunk-BYEP3ABS.mjs → chunk-EZ4HA3LC.mjs} +45 -5
  5. package/dist/{chunk-BYEP3ABS.mjs.map → chunk-EZ4HA3LC.mjs.map} +1 -1
  6. package/dist/{chunk-5O2FESHA.mjs → chunk-JP5IBMVI.mjs} +58 -25
  7. package/dist/chunk-JP5IBMVI.mjs.map +1 -0
  8. package/dist/{chunk-EXECWJEC.mjs → chunk-MRBFLBWX.mjs} +66 -6
  9. package/dist/chunk-MRBFLBWX.mjs.map +1 -0
  10. package/dist/{chunk-VJ2ICMSA.mjs → chunk-OORNZFI5.mjs} +32 -19
  11. package/dist/chunk-OORNZFI5.mjs.map +1 -0
  12. package/dist/{chunk-PHXH34L6.mjs → chunk-WPHD2GQJ.mjs} +2 -2
  13. package/dist/cli.d.ts +2 -2
  14. package/dist/cli.mjs +16 -16
  15. package/dist/cli.mjs.map +1 -1
  16. package/dist/{client-C7lhfLGY.d.ts → client-COK5u3oz.d.ts} +15 -7
  17. package/dist/errors.d.ts +1 -1
  18. package/dist/errors.mjs +1 -1
  19. package/dist/{fiscal-evidence-DaCyGd5o.d.ts → fiscal-evidence-B6UTFGmY.d.ts} +25 -8
  20. package/dist/index.d.ts +6 -8
  21. package/dist/index.mjs +6 -8
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/padron.d.ts +28 -1
  24. package/dist/padron.mjs +2 -2
  25. package/dist/wsfe.d.ts +23 -27
  26. package/dist/wsfe.mjs +3 -3
  27. package/dist/wsmtxca.d.ts +6 -21
  28. package/dist/wsmtxca.mjs +3 -3
  29. package/package.json +10 -5
  30. package/dist/chunk-5O2FESHA.mjs.map +0 -1
  31. package/dist/chunk-EXECWJEC.mjs.map +0 -1
  32. package/dist/chunk-VJ2ICMSA.mjs.map +0 -1
  33. package/dist/chunk-WN62NMUJ.mjs.map +0 -1
  34. /package/dist/{chunk-PHXH34L6.mjs.map → chunk-WPHD2GQJ.mjs.map} +0 -0
package/dist/cli.mjs CHANGED
@@ -7,12 +7,12 @@ import {
7
7
  createWsaaAuthModule,
8
8
  createWsaaStoreAdapter,
9
9
  discoverArcaClientConfig
10
- } from "./chunk-5O2FESHA.mjs";
10
+ } from "./chunk-JP5IBMVI.mjs";
11
11
  import "./chunk-DHN6OQJP.mjs";
12
- import "./chunk-EXECWJEC.mjs";
13
- import "./chunk-VJ2ICMSA.mjs";
14
- import "./chunk-WN62NMUJ.mjs";
15
- import "./chunk-PHXH34L6.mjs";
12
+ import "./chunk-MRBFLBWX.mjs";
13
+ import "./chunk-OORNZFI5.mjs";
14
+ import "./chunk-4RD5VQWC.mjs";
15
+ import "./chunk-WPHD2GQJ.mjs";
16
16
  import {
17
17
  ArcaConfigurationError,
18
18
  ArcaServiceError,
@@ -20,7 +20,7 @@ import {
20
20
  ArcaTransportError,
21
21
  isArcaAuthenticationError,
22
22
  toArcaSafeErrorMetadata
23
- } from "./chunk-BYEP3ABS.mjs";
23
+ } from "./chunk-EZ4HA3LC.mjs";
24
24
 
25
25
  // src/cli/main.ts
26
26
  import { tmpdir } from "os";
@@ -674,7 +674,7 @@ var CLI_DIAGNOSES = {
674
674
  },
675
675
  "config.taxIdUnknown": {
676
676
  diagnosis: "El certificado no dice de qu\xE9 CUIT es.",
677
- fix: "Pas\xE1 --tax-id 20123456786 o defin\xED ARCA_TAX_ID."
677
+ fix: "Pas\xE1 --cuit 20123456786 o defin\xED ARCA_TAX_ID."
678
678
  },
679
679
  "config.environment": {
680
680
  diagnosis: "Falta el entorno.",
@@ -702,7 +702,7 @@ var CLI_DIAGNOSES = {
702
702
  },
703
703
  "cert.taxIdMismatch": {
704
704
  diagnosis: "El certificado es del CUIT {certificateTaxId} y el configurado es {taxId}.",
705
- fix: "Us\xE1 el certificado de ese CUIT, o correg\xED --tax-id o ARCA_TAX_ID."
705
+ fix: "Us\xE1 el certificado de ese CUIT, o correg\xED --cuit o ARCA_TAX_ID."
706
706
  },
707
707
  "cert.mismatch": {
708
708
  diagnosis: "La clave privada no corresponde a este certificado.",
@@ -1031,7 +1031,7 @@ function resolveTaxId(io, flags, certificatePem) {
1031
1031
  }
1032
1032
  return {
1033
1033
  taxId: normalizeTaxId(given),
1034
- source: flags.taxId?.trim() ? "--tax-id" : "ARCA_TAX_ID"
1034
+ source: flags.taxId?.trim() ? "--cuit" : "ARCA_TAX_ID"
1035
1035
  };
1036
1036
  }
1037
1037
  if (certificatePem === void 0) {
@@ -1212,7 +1212,7 @@ async function checkWsfe(client) {
1212
1212
  layer: failedLayer("wsfe", diagnose("wsfe.serviceError", { message }))
1213
1213
  };
1214
1214
  }
1215
- const salesPoints = await client.wsfe.getSalesPoints({});
1215
+ const salesPoints = await client.wsfe.getSalesPoints();
1216
1216
  return {
1217
1217
  layer: { name: "wsfe", ok: true, detail: "servidor ok" },
1218
1218
  salesPoints
@@ -1316,7 +1316,7 @@ function createEphemeralSessionStore(credentials) {
1316
1316
  function toSalesPointReport(point) {
1317
1317
  return {
1318
1318
  number: point.number,
1319
- blocked: (point.blocked ?? "N").trim().toUpperCase().startsWith("S"),
1319
+ blocked: point.blocked,
1320
1320
  ...point.emissionType === void 0 ? {} : { system: point.emissionType }
1321
1321
  };
1322
1322
  }
@@ -1599,7 +1599,7 @@ var HELP_PAGES = {
1599
1599
  description: "clave privada PEM desde un archivo"
1600
1600
  },
1601
1601
  {
1602
- name: "--tax-id <cuit>",
1602
+ name: "--cuit <cuit>",
1603
1603
  description: "CUIT, en lugar de ARCA_TAX_ID"
1604
1604
  },
1605
1605
  {
@@ -1656,7 +1656,7 @@ var HELP_PAGES = {
1656
1656
  description: "clave privada PEM desde un archivo"
1657
1657
  },
1658
1658
  {
1659
- name: "--tax-id <cuit>",
1659
+ name: "--cuit <cuit>",
1660
1660
  description: "CUIT, en lugar de ARCA_TAX_ID"
1661
1661
  },
1662
1662
  {
@@ -2144,7 +2144,7 @@ var COMMAND_OPTIONS = {
2144
2144
  ...GLOBAL_OPTIONS,
2145
2145
  cert: { type: "string" },
2146
2146
  key: { type: "string" },
2147
- "tax-id": { type: "string" },
2147
+ cuit: { type: "string" },
2148
2148
  env: { type: "string" },
2149
2149
  dir: { type: "string" },
2150
2150
  "sales-point": { type: "string" },
@@ -2154,7 +2154,7 @@ var COMMAND_OPTIONS = {
2154
2154
  ...GLOBAL_OPTIONS,
2155
2155
  cert: { type: "string" },
2156
2156
  key: { type: "string" },
2157
- "tax-id": { type: "string" },
2157
+ cuit: { type: "string" },
2158
2158
  env: { type: "string" },
2159
2159
  dir: { type: "string" },
2160
2160
  "sales-point": { type: "string" },
@@ -2294,7 +2294,7 @@ function toCheckFlags(values, salesPoint) {
2294
2294
  return {
2295
2295
  ...text(values, "cert", "cert"),
2296
2296
  ...text(values, "key", "key"),
2297
- ...text(values, "tax-id", "taxId"),
2297
+ ...text(values, "cuit", "taxId"),
2298
2298
  ...text(values, "env", "env"),
2299
2299
  ...text(values, "dir", "dir"),
2300
2300
  ...salesPoint === void 0 ? {} : { salesPoint },