@timbrix/cli 1.1.0 → 1.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/invoices/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAA;AAO5C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;IACjD,OAAgB,WAAW,SAG4C;IAEvE,OAAgB,QAAQ,WAGvB;IAED,OAAgB,KAAK;;;;;MAoBpB;IAEY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA6ClC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/commands/invoices/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAA;AAO5C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;IACjD,OAAgB,WAAW,SAG4C;IAEvE,OAAgB,QAAQ,WAGvB;IAED,OAAgB,KAAK;;;;;MAoBpB;IAEY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8ClC"}
@@ -25,7 +25,7 @@ export default class InvoicesCreate extends Command {
25
25
  }),
26
26
  file: Flags.string({
27
27
  char: "f",
28
- description: "Path to a JSON file with the invoice payload (series, folioNumber, date, paymentForm, use, customer|customerId, items)",
28
+ description: "Path to a JSON file with the invoice payload (type, series, folioNumber, date, paymentForm, use, customer|customerId, items, relatedInvoiceUuid for type=E)",
29
29
  required: true,
30
30
  }),
31
31
  output: Flags.string({
@@ -49,6 +49,7 @@ export default class InvoicesCreate extends Command {
49
49
  this.log(chalk.gray("\nInvoice Details:"));
50
50
  this.log(` ${chalk.bold("ID:")} ${invoice.id}`);
51
51
  this.log(` ${chalk.bold("UUID:")} ${invoice.uuid}`);
52
+ this.log(` ${chalk.bold("Type:")} ${invoice.type}`);
52
53
  this.log(` ${chalk.bold("Series/Folio:")} ${invoice.series}-${invoice.folioNumber}`);
53
54
  this.log(` ${chalk.bold("Total:")} $${invoice.total.toFixed(2)}`);
54
55
  if (flags.output) {
@@ -518,7 +518,7 @@
518
518
  },
519
519
  "file": {
520
520
  "char": "f",
521
- "description": "Path to a JSON file with the invoice payload (series, folioNumber, date, paymentForm, use, customer|customerId, items)",
521
+ "description": "Path to a JSON file with the invoice payload (type, series, folioNumber, date, paymentForm, use, customer|customerId, items, relatedInvoiceUuid for type=E)",
522
522
  "name": "file",
523
523
  "required": true,
524
524
  "hasDynamicHelp": false,
@@ -1608,5 +1608,5 @@
1608
1608
  ]
1609
1609
  }
1610
1610
  },
1611
- "version": "1.1.0"
1611
+ "version": "1.2.0"
1612
1612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timbrix/cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "CLI tool for Timbrix API",
5
5
  "author": "Ivan Sotelo",
6
6
  "bin": {
@@ -36,7 +36,7 @@
36
36
  "ky": "^2.0.2",
37
37
  "ora": "^9.4.1",
38
38
  "update-notifier": "^7.3.1",
39
- "@timbrix/sdk": "1.1.0"
39
+ "@timbrix/sdk": "1.2.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^26.1.2",