@hisaabo/cli 0.3.2 → 0.4.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 (84) hide show
  1. package/.turbo/turbo-typecheck.log +1 -1
  2. package/README.md +1 -1
  3. package/dist/bin/{audit-trail-2YGXGUXW.js → audit-trail-5LOCJ7XZ.js} +4 -4
  4. package/dist/bin/{categories-P5VFWD5F.js → categories-64WWZTND.js} +3 -3
  5. package/dist/bin/{check-slug-4TMOTWUJ.js → check-slug-FLHHUDYS.js} +3 -3
  6. package/dist/bin/{chunk-FTOBDKMO.js → chunk-4MEL44QX.js} +54 -10
  7. package/dist/bin/chunk-FIMJZAS4.js +84 -0
  8. package/dist/bin/{chunk-EYNDY7RB.js → chunk-NO4FIFMS.js} +2 -1
  9. package/dist/bin/{chunk-FFBG6RU4.js → chunk-T63VQXNM.js} +1 -1
  10. package/dist/bin/{client-QNJ2H5CW.js → client-5NZ23GML.js} +1 -1
  11. package/dist/bin/{collection-efficiency-WMKEGS6U.js → collection-efficiency-U56XNVEE.js} +4 -4
  12. package/dist/bin/{config-UKVQYPPR.js → config-335MN4I7.js} +2 -2
  13. package/dist/bin/{create-Y22FAVOW.js → create-RPDEORDD.js} +3 -3
  14. package/dist/bin/{default-account-SA56M66A.js → default-account-AE6EXZZR.js} +3 -3
  15. package/dist/bin/{expenses-VZAOLYUW.js → expenses-5N2QSG54.js} +4 -4
  16. package/dist/bin/{export-QZ6WT6PJ.js → export-QICOQK34.js} +3 -3
  17. package/dist/bin/{factory-2DCU3B5T.js → factory-KOCW2AQM.js} +4 -4
  18. package/dist/bin/{get-EXL44I2X.js → get-A43QCI2S.js} +3 -3
  19. package/dist/bin/{get-6UYP6UVD.js → get-GWH6S5SJ.js} +4 -4
  20. package/dist/bin/hisaabo.js +280 -67
  21. package/dist/bin/invitations-P3EEN5WI.js +66 -0
  22. package/dist/bin/{invite-O26SAL72.js → invite-T3CKX53E.js} +3 -3
  23. package/dist/bin/{invoice-breakdown-XEATXVMR.js → invoice-breakdown-FN5BEFJD.js} +4 -4
  24. package/dist/bin/{items-3U5USBVG.js → items-2OOCQKVF.js} +4 -4
  25. package/dist/bin/{items-toggle-YEKMI2CM.js → items-toggle-SKZWCGJH.js} +3 -3
  26. package/dist/bin/{list-VBAHY72W.js → list-A2RKI3ZG.js} +4 -4
  27. package/dist/bin/list-NRMBMKMI.js +90 -0
  28. package/dist/bin/{list-FX2C3NCL.js → list-T74SN6IR.js} +3 -3
  29. package/dist/bin/{members-5FPRUAB6.js → members-W2GW3ODT.js} +4 -4
  30. package/dist/bin/{monthly-comparison-JEJ3TTY2.js → monthly-comparison-T34ZFOHL.js} +4 -4
  31. package/dist/bin/{order-cancel-XI2LKYXV.js → order-cancel-TI27JYYD.js} +3 -3
  32. package/dist/bin/{order-confirm-HUFCU6MO.js → order-confirm-VMRAMNTD.js} +3 -3
  33. package/dist/bin/{order-get-NSDMPUZR.js → order-get-C2RBUR4O.js} +4 -4
  34. package/dist/bin/{order-update-C7QYSD5R.js → order-update-RE3HATNF.js} +4 -4
  35. package/dist/bin/{output-QFLEKG5W.js → output-NUOL7KJW.js} +1 -1
  36. package/dist/bin/{payment-modes-WI3AWSES.js → payment-modes-WOOT22I7.js} +4 -4
  37. package/dist/bin/{profit-loss-5RIEOBKP.js → profit-loss-T4RESJ32.js} +4 -4
  38. package/dist/bin/{receivables-aging-L6DIQCNE.js → receivables-aging-6XMENEWS.js} +4 -4
  39. package/dist/bin/{remove-M2B4TZ37.js → remove-6QZI4JCY.js} +3 -3
  40. package/dist/bin/revoke-AVEMPAC7.js +40 -0
  41. package/dist/bin/{revoke-H3V2GNCD.js → revoke-YUCFZFNR.js} +3 -3
  42. package/dist/bin/revoke-all-LFW5WBHO.js +33 -0
  43. package/dist/bin/revoke-invitation-DTGQRJR4.js +40 -0
  44. package/dist/bin/{sales-trend-TICB3KGF.js → sales-trend-ZYBRUDUU.js} +4 -4
  45. package/dist/bin/{sequence-XUD6FAKY.js → sequence-FPOJTI2P.js} +3 -3
  46. package/dist/bin/{store-UQ2DDQ5I.js → store-IOB4Y67C.js} +4 -4
  47. package/dist/bin/{summary-BPNFC7I2.js → summary-5KYBA4ZO.js} +4 -4
  48. package/dist/bin/{top-customers-WGGJWKCN.js → top-customers-WSQ2UEJL.js} +4 -4
  49. package/dist/bin/{top-items-C7ZDDJMR.js → top-items-RWQPDGLN.js} +4 -4
  50. package/dist/bin/{top-outstanding-MOGWJIQS.js → top-outstanding-QAMO2E7Y.js} +4 -4
  51. package/dist/bin/{unpaid-invoices-ZUPNMQJP.js → unpaid-invoices-WB3TK5B4.js} +4 -4
  52. package/dist/bin/{untracked-BCJEVDW4.js → untracked-H733MYJL.js} +4 -4
  53. package/dist/bin/{update-IG565YIN.js → update-H6LPO2Z4.js} +3 -3
  54. package/dist/bin/{update-HIU4PANX.js → update-JU2X3XU5.js} +4 -4
  55. package/dist/bin/{update-PVLAX7T3.js → update-TLBUIC5J.js} +4 -4
  56. package/dist/bin/{update-role-Q4ZYJRYT.js → update-role-QST7BVFX.js} +3 -3
  57. package/dist/bin/{update-settings-XPC6L5WM.js → update-settings-Q2EGRLKZ.js} +3 -3
  58. package/package.json +2 -6
  59. package/src/auth.ts +12 -3
  60. package/src/bin/hisaabo.ts +6 -1
  61. package/src/bin/registrars/auth.ts +79 -10
  62. package/src/bin/registrars/bank.ts +34 -0
  63. package/src/bin/registrars/session.ts +32 -0
  64. package/src/bin/registrars/tenant.ts +18 -0
  65. package/src/client.ts +94 -11
  66. package/src/commands/bank/gateway-config.ts +61 -0
  67. package/src/commands/bank/update-gateway.ts +84 -0
  68. package/src/commands/session/list.ts +91 -0
  69. package/src/commands/session/revoke-all.ts +20 -0
  70. package/src/commands/session/revoke.ts +32 -0
  71. package/src/commands/tenant/invitations.ts +62 -0
  72. package/src/commands/tenant/revoke-invitation.ts +32 -0
  73. package/src/config.ts +51 -2
  74. package/src/error-handler.ts +53 -0
  75. package/src/output.ts +1 -0
  76. package/src/spinner.ts +39 -0
  77. package/tsup.config.ts +6 -1
  78. package/dist/bin/chunk-2P35S2C3.js +0 -46
  79. package/src/components/ErrorDisplay.tsx +0 -16
  80. package/src/components/Header.tsx +0 -26
  81. package/src/components/MoneyCell.tsx +0 -16
  82. package/src/components/Spinner.tsx +0 -12
  83. package/src/components/StatusBadge.tsx +0 -39
  84. package/src/components/Table.tsx +0 -63
@@ -1,4 +1,4 @@
1
1
 
2
- > @hisaabo/cli@0.1.0 typecheck /home/saurabh/Coding/billkitaab/hisaabo/packages/cli
2
+ > @hisaabo/cli@0.4.0 typecheck /home/saurabh/Coding/billkitaab/hisaabo/packages/cli
3
3
  > tsc --noEmit
4
4
 
package/README.md CHANGED
@@ -329,4 +329,4 @@ The CLI stores credentials in the OS config directory (`~/.config/hisaabo-cli` o
329
329
 
330
330
  ## Full Documentation
331
331
 
332
- [docs.hisaabo.in/cli](https://docs.hisaabo.in/cli) -- Setup guide, full command reference with all flags, scripting recipes, and CI/CD integration examples.
332
+ [docs.hisaabo.in/ai/cli/](https://docs.hisaabo.in/ai/cli/) -- Setup guide, full command reference with all flags, scripting recipes, and CI/CD integration examples.
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  formatDate
4
- } from "./chunk-FFBG6RU4.js";
4
+ } from "./chunk-T63VQXNM.js";
5
5
  import {
6
6
  HisaaboApiError,
7
7
  HisaaboClient
8
- } from "./chunk-FTOBDKMO.js";
8
+ } from "./chunk-4MEL44QX.js";
9
9
  import {
10
10
  requireAuth
11
- } from "./chunk-2P35S2C3.js";
11
+ } from "./chunk-FIMJZAS4.js";
12
12
  import {
13
13
  EXIT,
14
14
  fatalError,
@@ -18,7 +18,7 @@ import {
18
18
  outputTSV,
19
19
  outputTable,
20
20
  paginationFooter
21
- } from "./chunk-EYNDY7RB.js";
21
+ } from "./chunk-NO4FIFMS.js";
22
22
 
23
23
  // src/commands/business/audit-trail.ts
24
24
  import chalk from "chalk";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient
5
- } from "./chunk-FTOBDKMO.js";
5
+ } from "./chunk-4MEL44QX.js";
6
6
  import {
7
7
  requireAuth
8
- } from "./chunk-2P35S2C3.js";
8
+ } from "./chunk-FIMJZAS4.js";
9
9
  import {
10
10
  EXIT,
11
11
  fatalError,
12
12
  outputJSON
13
- } from "./chunk-EYNDY7RB.js";
13
+ } from "./chunk-NO4FIFMS.js";
14
14
 
15
15
  // src/commands/expense/categories.ts
16
16
  async function expenseCategoriesCommand(opts) {
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient
5
- } from "./chunk-FTOBDKMO.js";
5
+ } from "./chunk-4MEL44QX.js";
6
6
  import {
7
7
  requireAuth
8
- } from "./chunk-2P35S2C3.js";
8
+ } from "./chunk-FIMJZAS4.js";
9
9
  import {
10
10
  EXIT,
11
11
  fatalError,
12
12
  hasColor,
13
13
  outputJSON
14
- } from "./chunk-EYNDY7RB.js";
14
+ } from "./chunk-NO4FIFMS.js";
15
15
 
16
16
  // src/commands/store/check-slug.ts
17
17
  import chalk from "chalk";
@@ -20,6 +20,8 @@ function formatHisaaboError(err) {
20
20
  case "validation_failed":
21
21
  return `Validation failed:
22
22
  ` + Object.entries(err.fields).map(([field, msgs]) => ` ${field}: ${msgs.join(", ")}`).join("\n");
23
+ case "rate_limited":
24
+ return `Rate limited: ${err.message}`;
23
25
  case "network_error":
24
26
  return `Network error: ${err.message}`;
25
27
  case "api_error":
@@ -61,6 +63,21 @@ var HisaaboClient = class {
61
63
  };
62
64
  }
63
65
  async unwrap(res) {
66
+ if (res.status === 429) {
67
+ const retryAfter = res.headers.get("retry-after");
68
+ let retryMs = 6e4;
69
+ if (retryAfter) {
70
+ const parsed = Number(retryAfter);
71
+ if (Number.isFinite(parsed) && parsed > 0) {
72
+ retryMs = Math.min(parsed * 1e3, 12e4);
73
+ }
74
+ }
75
+ throw new HisaaboApiError({
76
+ code: "rate_limited",
77
+ retryAfterMs: retryMs,
78
+ message: `Rate limited. Try again in ${Math.ceil(retryMs / 1e3)}s.`
79
+ });
80
+ }
64
81
  const body = await res.json();
65
82
  if (typeof body !== "object" || body === null) {
66
83
  throw new HisaaboApiError({ code: "api_error", message: "Unexpected response format from API" });
@@ -77,17 +94,26 @@ var HisaaboClient = class {
77
94
  return superjson.deserialize(data);
78
95
  }
79
96
  async query(path, input) {
80
- const url = new URL(`${this.config.apiUrl}/api/trpc/${path}`);
81
- if (input !== void 0) {
82
- url.searchParams.set("input", JSON.stringify(superjson.serialize(input)));
83
- }
84
- try {
85
- const res = await fetch(url.toString(), { headers: this.buildHeaders() });
86
- return this.unwrap(res);
87
- } catch (e) {
88
- if (e instanceof HisaaboApiError) throw e;
89
- throw new HisaaboApiError({ code: "network_error", message: String(e instanceof Error ? e.message : e) });
97
+ const maxRetries = 2;
98
+ for (let attempt = 0; attempt <= maxRetries; attempt++) {
99
+ try {
100
+ const url = new URL(`${this.config.apiUrl}/api/trpc/${path}`);
101
+ if (input !== void 0) {
102
+ url.searchParams.set("input", JSON.stringify(superjson.serialize(input)));
103
+ }
104
+ const res = await fetch(url.toString(), { headers: this.buildHeaders() });
105
+ return await this.unwrap(res);
106
+ } catch (e) {
107
+ if (e instanceof HisaaboApiError && e.hisaaboError.code === "rate_limited" && attempt < maxRetries) {
108
+ const waitMs = Math.min(e.hisaaboError.retryAfterMs, 1e4);
109
+ await new Promise((r) => setTimeout(r, waitMs));
110
+ continue;
111
+ }
112
+ if (e instanceof HisaaboApiError) throw e;
113
+ throw new HisaaboApiError({ code: "network_error", message: String(e instanceof Error ? e.message : e) });
114
+ }
90
115
  }
116
+ throw new HisaaboApiError({ code: "api_error", message: "Max retries exceeded" });
91
117
  }
92
118
  async mutate(path, input) {
93
119
  try {
@@ -126,6 +152,12 @@ var HisaaboClient = class {
126
152
  },
127
153
  updateName(input) {
128
154
  return c.mutate("auth.updateName", input);
155
+ },
156
+ listSessions(input) {
157
+ return c.query("auth.listSessions", input);
158
+ },
159
+ revokeSession(input) {
160
+ return c.mutate("auth.revokeSession", input);
129
161
  }
130
162
  };
131
163
  }
@@ -441,6 +473,12 @@ var HisaaboClient = class {
441
473
  },
442
474
  summary() {
443
475
  return c.query("bankAccount.summary");
476
+ },
477
+ getGatewayConfig(bankAccountId) {
478
+ return c.query("bankAccount.getGatewayConfig", { bankAccountId });
479
+ },
480
+ upsertGatewayConfig(input) {
481
+ return c.mutate("bankAccount.upsertGatewayConfig", input);
444
482
  }
445
483
  };
446
484
  }
@@ -564,6 +602,12 @@ var HisaaboClient = class {
564
602
  },
565
603
  updateMemberRole(input) {
566
604
  return c.mutate("tenant.updateMemberRole", input);
605
+ },
606
+ pendingInvitations() {
607
+ return c.query("tenant.pendingInvitations");
608
+ },
609
+ revokeInvitation(input) {
610
+ return c.mutate("tenant.revokeInvitation", input);
567
611
  }
568
612
  };
569
613
  }
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ fatalError,
4
+ warn
5
+ } from "./chunk-NO4FIFMS.js";
6
+
7
+ // src/config.ts
8
+ import Conf from "conf";
9
+ import { hostname, userInfo } from "os";
10
+ import { createHash } from "crypto";
11
+ function deriveEncryptionKey() {
12
+ let uid;
13
+ try {
14
+ uid = String(userInfo().uid);
15
+ } catch {
16
+ uid = String(process.getuid?.() ?? process.pid);
17
+ }
18
+ const raw = `${uid}:${hostname()}:hisaabo-cli`;
19
+ return createHash("sha256").update(raw).digest("hex");
20
+ }
21
+ var conf = new Conf({
22
+ projectName: "hisaabo",
23
+ projectSuffix: "",
24
+ configName: "config",
25
+ encryptionKey: deriveEncryptionKey(),
26
+ configFileMode: 384
27
+ // owner read/write only — prevents credential theft on shared systems
28
+ });
29
+ function getConfig() {
30
+ return conf.store;
31
+ }
32
+ function setConfig(values) {
33
+ for (const [k, v] of Object.entries(values)) {
34
+ if (v !== void 0) {
35
+ conf.set(k, v);
36
+ }
37
+ }
38
+ }
39
+ function clearConfig() {
40
+ conf.clear();
41
+ }
42
+ function isAuthenticated() {
43
+ const cfg = getConfig();
44
+ return !!(cfg.token && cfg.apiUrl && cfg.businessId);
45
+ }
46
+ function requireAuth() {
47
+ const envToken = process.env["HISAABO_TOKEN"];
48
+ const envUrl = process.env["HISAABO_API_URL"];
49
+ if (envToken && envUrl) {
50
+ return {
51
+ apiUrl: envUrl,
52
+ token: envToken,
53
+ tenantId: process.env["HISAABO_TENANT_ID"] ?? "",
54
+ businessId: process.env["HISAABO_BUSINESS_ID"] ?? "",
55
+ businessName: process.env["HISAABO_BUSINESS_NAME"] ?? "",
56
+ tokenCreatedAt: Date.now()
57
+ };
58
+ }
59
+ const cfg = getConfig();
60
+ if (!cfg.token || !cfg.apiUrl || !cfg.businessId || !cfg.tenantId) {
61
+ fatalError("Not authenticated. Run: hisaabo login", 3);
62
+ }
63
+ const isApiKey = cfg.token.startsWith("hisaabo_key_");
64
+ if (!isApiKey && cfg.tokenCreatedAt) {
65
+ const ageMs = Date.now() - cfg.tokenCreatedAt;
66
+ const TWENTY_FIVE_DAYS = 25 * 24 * 60 * 60 * 1e3;
67
+ if (ageMs > TWENTY_FIVE_DAYS) {
68
+ warn("Session expires soon. Run: hisaabo login");
69
+ }
70
+ }
71
+ return cfg;
72
+ }
73
+ function getConfigPath() {
74
+ return conf.path;
75
+ }
76
+
77
+ export {
78
+ getConfig,
79
+ setConfig,
80
+ clearConfig,
81
+ isAuthenticated,
82
+ requireAuth,
83
+ getConfigPath
84
+ };
@@ -31,7 +31,8 @@ var EXIT = {
31
31
  NOT_FOUND: 5,
32
32
  VALIDATION: 6,
33
33
  NETWORK: 7,
34
- CONFLICT: 8
34
+ CONFLICT: 8,
35
+ RATE_LIMITED: 9
35
36
  };
36
37
  function fatalError(message, code = 1) {
37
38
  if (hasColor()) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  hasColor
4
- } from "./chunk-EYNDY7RB.js";
4
+ } from "./chunk-NO4FIFMS.js";
5
5
 
6
6
  // src/format.ts
7
7
  import chalk from "chalk";
@@ -3,7 +3,7 @@ import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient,
5
5
  formatHisaaboError
6
- } from "./chunk-FTOBDKMO.js";
6
+ } from "./chunk-4MEL44QX.js";
7
7
  export {
8
8
  HisaaboApiError,
9
9
  HisaaboClient,
@@ -5,14 +5,14 @@ import {
5
5
  monthEnd,
6
6
  monthStart,
7
7
  todayISO
8
- } from "./chunk-FFBG6RU4.js";
8
+ } from "./chunk-T63VQXNM.js";
9
9
  import {
10
10
  HisaaboApiError,
11
11
  HisaaboClient
12
- } from "./chunk-FTOBDKMO.js";
12
+ } from "./chunk-4MEL44QX.js";
13
13
  import {
14
14
  requireAuth
15
- } from "./chunk-2P35S2C3.js";
15
+ } from "./chunk-FIMJZAS4.js";
16
16
  import {
17
17
  EXIT,
18
18
  fatalError,
@@ -22,7 +22,7 @@ import {
22
22
  outputTSV,
23
23
  outputTable,
24
24
  termWidth
25
- } from "./chunk-EYNDY7RB.js";
25
+ } from "./chunk-NO4FIFMS.js";
26
26
 
27
27
  // src/commands/dashboard/collection-efficiency.ts
28
28
  import chalk from "chalk";
@@ -6,8 +6,8 @@ import {
6
6
  isAuthenticated,
7
7
  requireAuth,
8
8
  setConfig
9
- } from "./chunk-2P35S2C3.js";
10
- import "./chunk-EYNDY7RB.js";
9
+ } from "./chunk-FIMJZAS4.js";
10
+ import "./chunk-NO4FIFMS.js";
11
11
  export {
12
12
  clearConfig,
13
13
  getConfig,
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient
5
- } from "./chunk-FTOBDKMO.js";
5
+ } from "./chunk-4MEL44QX.js";
6
6
  import {
7
7
  requireAuth
8
- } from "./chunk-2P35S2C3.js";
8
+ } from "./chunk-FIMJZAS4.js";
9
9
  import {
10
10
  EXIT,
11
11
  fatalError,
12
12
  hasColor,
13
13
  outputJSON
14
- } from "./chunk-EYNDY7RB.js";
14
+ } from "./chunk-NO4FIFMS.js";
15
15
 
16
16
  // src/commands/api-key/create.ts
17
17
  import chalk from "chalk";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient
5
- } from "./chunk-FTOBDKMO.js";
5
+ } from "./chunk-4MEL44QX.js";
6
6
  import {
7
7
  requireAuth
8
- } from "./chunk-2P35S2C3.js";
8
+ } from "./chunk-FIMJZAS4.js";
9
9
  import {
10
10
  EXIT,
11
11
  fatalError,
12
12
  outputJSON
13
- } from "./chunk-EYNDY7RB.js";
13
+ } from "./chunk-NO4FIFMS.js";
14
14
 
15
15
  // src/commands/payment/default-account.ts
16
16
  async function paymentDefaultAccountCommand(opts) {
@@ -5,14 +5,14 @@ import {
5
5
  monthEnd,
6
6
  monthStart,
7
7
  todayISO
8
- } from "./chunk-FFBG6RU4.js";
8
+ } from "./chunk-T63VQXNM.js";
9
9
  import {
10
10
  HisaaboApiError,
11
11
  HisaaboClient
12
- } from "./chunk-FTOBDKMO.js";
12
+ } from "./chunk-4MEL44QX.js";
13
13
  import {
14
14
  requireAuth
15
- } from "./chunk-2P35S2C3.js";
15
+ } from "./chunk-FIMJZAS4.js";
16
16
  import {
17
17
  EXIT,
18
18
  fatalError,
@@ -21,7 +21,7 @@ import {
21
21
  outputJSON,
22
22
  outputTSV,
23
23
  outputTable
24
- } from "./chunk-EYNDY7RB.js";
24
+ } from "./chunk-NO4FIFMS.js";
25
25
 
26
26
  // src/commands/dashboard/expenses.ts
27
27
  import chalk from "chalk";
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient
5
- } from "./chunk-FTOBDKMO.js";
5
+ } from "./chunk-4MEL44QX.js";
6
6
  import {
7
7
  requireAuth
8
- } from "./chunk-2P35S2C3.js";
8
+ } from "./chunk-FIMJZAS4.js";
9
9
  import {
10
10
  EXIT,
11
11
  fatalError,
12
12
  outputJSON,
13
13
  success
14
- } from "./chunk-EYNDY7RB.js";
14
+ } from "./chunk-NO4FIFMS.js";
15
15
 
16
16
  // src/commands/business/export.ts
17
17
  import * as readline from "readline";
@@ -9,14 +9,14 @@ import {
9
9
  monthEnd,
10
10
  monthStart,
11
11
  todayISO
12
- } from "./chunk-FFBG6RU4.js";
12
+ } from "./chunk-T63VQXNM.js";
13
13
  import {
14
14
  HisaaboApiError,
15
15
  HisaaboClient
16
- } from "./chunk-FTOBDKMO.js";
16
+ } from "./chunk-4MEL44QX.js";
17
17
  import {
18
18
  requireAuth
19
- } from "./chunk-2P35S2C3.js";
19
+ } from "./chunk-FIMJZAS4.js";
20
20
  import {
21
21
  EXIT,
22
22
  fatalError,
@@ -30,7 +30,7 @@ import {
30
30
  paginationFooter,
31
31
  success,
32
32
  termWidth
33
- } from "./chunk-EYNDY7RB.js";
33
+ } from "./chunk-NO4FIFMS.js";
34
34
 
35
35
  // src/commands/document/factory.ts
36
36
  import * as readline from "readline";
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  HisaaboApiError,
4
4
  HisaaboClient
5
- } from "./chunk-FTOBDKMO.js";
5
+ } from "./chunk-4MEL44QX.js";
6
6
  import {
7
7
  requireAuth
8
- } from "./chunk-2P35S2C3.js";
8
+ } from "./chunk-FIMJZAS4.js";
9
9
  import {
10
10
  EXIT,
11
11
  fatalError,
12
12
  hasColor,
13
13
  outputJSON
14
- } from "./chunk-EYNDY7RB.js";
14
+ } from "./chunk-NO4FIFMS.js";
15
15
 
16
16
  // src/commands/business/get.ts
17
17
  import chalk from "chalk";
@@ -2,19 +2,19 @@
2
2
  import {
3
3
  formatDate,
4
4
  formatINR
5
- } from "./chunk-FFBG6RU4.js";
5
+ } from "./chunk-T63VQXNM.js";
6
6
  import {
7
7
  HisaaboApiError,
8
8
  HisaaboClient
9
- } from "./chunk-FTOBDKMO.js";
9
+ } from "./chunk-4MEL44QX.js";
10
10
  import {
11
11
  requireAuth
12
- } from "./chunk-2P35S2C3.js";
12
+ } from "./chunk-FIMJZAS4.js";
13
13
  import {
14
14
  EXIT,
15
15
  fatalError,
16
16
  outputJSON
17
- } from "./chunk-EYNDY7RB.js";
17
+ } from "./chunk-NO4FIFMS.js";
18
18
 
19
19
  // src/commands/payment/get.ts
20
20
  async function paymentGetCommand(id, opts) {