bamboohr-cli 1.0.11 → 1.0.13

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 (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -562,7 +562,7 @@ Examples:
562
562
 
563
563
  // src/commands/timeoff/whos-out.ts
564
564
  function whosOut(parent) {
565
- parent.command("whos-out").description("View who's out \u2014 upcoming time off and holidays").option("--start <date>", "Start date (YYYY-MM-DD, defaults to today)").option("--end <date>", "End date (YYYY-MM-DD, defaults to 14 days from start)").addHelpText(
565
+ parent.command("whos-out").description("View who's out \u2014 upcoming time off and holidays").option("--start <date>", "Start date (YYYY-MM-DD, defaults to today)").option("--end <date>", "End date (YYYY-MM-DD, defaults to today)").addHelpText(
566
566
  "after",
567
567
  `
568
568
  Examples:
@@ -570,10 +570,10 @@ Examples:
570
570
  $ bamboohr timeoff whos-out --start 2026-03-20 --end 2026-04-03`
571
571
  ).action(async (opts) => {
572
572
  const client = getClient();
573
- const result = await client.timeOff.getWhosOut({
574
- start: opts.start,
575
- end: opts.end
576
- });
573
+ const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
574
+ const start = opts.start ?? today;
575
+ const end = opts.end ?? (opts.start ? void 0 : today);
576
+ const result = await client.timeOff.getWhosOut({ start, end });
577
577
  output(result);
578
578
  });
579
579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bamboohr-cli",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "publish": true,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "commander": "^13.1.0",
15
- "bamboohr-client": "1.0.19"
15
+ "bamboohr-client": "1.0.20"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "24.10.4",
@@ -22,9 +22,9 @@
22
22
  "tsx": "^4.19.2",
23
23
  "typescript": "^5.7.2",
24
24
  "vitest": "^4.0.16",
25
- "cli-utils": "1.0.0",
26
25
  "config-typescript": "0.0.0",
27
- "config-eslint": "0.0.0"
26
+ "config-eslint": "0.0.0",
27
+ "cli-utils": "1.0.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.0.0"