@togglhq/cli 1.5.24 → 1.5.26

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.
package/build/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { };
package/build/cli.js ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import { n as CommanderError, t as createProgram } from "./program-B03iyxXV.js";
3
+ //#region src/cli.ts
4
+ try {
5
+ await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
6
+ } catch (error) {
7
+ if (error instanceof CommanderError) process.exit(error.exitCode);
8
+ throw error;
9
+ }
10
+ //#endregion
11
+ export {};
12
+
13
+ //# sourceMappingURL=cli.js.map
package/build/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { };
1
+ import { t as createProgram } from "./program-Bby4U_hT.js";
2
+ export { createProgram };
package/build/index.js CHANGED
@@ -1,13 +1,2 @@
1
- #!/usr/bin/env node
2
- import { n as CommanderError, t as createProgram } from "./program-Bz9wasNE.js";
3
- //#region src/index.ts
4
- try {
5
- await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
6
- } catch (error) {
7
- if (error instanceof CommanderError) process.exit(error.exitCode);
8
- throw error;
9
- }
10
- //#endregion
11
- export {};
12
-
13
- //# sourceMappingURL=index.js.map
1
+ import { t as createProgram } from "./program-B03iyxXV.js";
2
+ export { createProgram };
@@ -1,11 +1,11 @@
1
1
  import { createRequire } from "node:module";
2
- import { exec, spawn } from "node:child_process";
3
- import * as path$1 from "node:path";
4
- import path, { basename, dirname, extname, join } from "node:path";
5
2
  import * as fs$1 from "node:fs";
6
3
  import { readFileSync } from "node:fs";
7
- import process$1 from "node:process";
4
+ import * as path$1 from "node:path";
5
+ import path, { basename, dirname, extname, join } from "node:path";
8
6
  import { fileURLToPath } from "node:url";
7
+ import { exec, spawn } from "node:child_process";
8
+ import process$1 from "node:process";
9
9
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
10
10
  import { stripVTControlCharacters, styleText } from "node:util";
11
11
  import * as readline from "node:readline";
@@ -10545,7 +10545,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10545
10545
  ]))
10546
10546
  });
10547
10547
  //#endregion
10548
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10548
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10549
10549
  async function getInvitations(httpClient, signal) {
10550
10550
  return (await httpClient.get(`invitations`, { signal })).json();
10551
10551
  }
@@ -10562,7 +10562,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10562
10562
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10563
10563
  }
10564
10564
  //#endregion
10565
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10565
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10566
10566
  function buildSearchParams$1(params, flattenArrays = false) {
10567
10567
  const searchParams = new URLSearchParams();
10568
10568
  Object.entries(params).forEach(([key, value]) => {
@@ -10574,7 +10574,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
10574
10574
  return searchParams;
10575
10575
  }
10576
10576
  //#endregion
10577
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10577
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10578
10578
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10579
10579
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10580
10580
  }
@@ -10588,7 +10588,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10588
10588
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10589
10589
  }
10590
10590
  //#endregion
10591
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10591
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10592
10592
  async function getWorkspaces(httpClient, organization_id, signal) {
10593
10593
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10594
10594
  }
@@ -10608,7 +10608,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10608
10608
  });
10609
10609
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10610
10610
  //#endregion
10611
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10611
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10612
10612
  const META_SYMBOL = Symbol.for("querygen:response:meta");
10613
10613
  function withResponseMeta(data, headers, status) {
10614
10614
  if (!data) return data;
@@ -10635,7 +10635,7 @@ function buildSearchParams(params, flattenArrays = false) {
10635
10635
  return searchParams;
10636
10636
  }
10637
10637
  //#endregion
10638
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10638
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10639
10639
  async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10640
10640
  const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
10641
10641
  signal,
@@ -10644,12 +10644,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10644
10644
  return withResponseMeta(await response.json(), response.headers, response.status);
10645
10645
  }
10646
10646
  //#endregion
10647
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10647
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10648
10648
  async function getStatus(httpClient, signal) {
10649
10649
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10650
10650
  }
10651
10651
  //#endregion
10652
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10652
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10653
10653
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10654
10654
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10655
10655
  signal,
@@ -10677,7 +10677,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10677
10677
  return response.json();
10678
10678
  }
10679
10679
  //#endregion
10680
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.17_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_0ee1826bb628e58a201dde12f5dbe731/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10680
+ //#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10681
10681
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10682
10682
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10683
10683
  }
@@ -26082,4 +26082,4 @@ Common commands:
26082
26082
  //#endregion
26083
26083
  export { CommanderError as n, createProgram as t };
26084
26084
 
26085
- //# sourceMappingURL=program-Bz9wasNE.js.map
26085
+ //# sourceMappingURL=program-B03iyxXV.js.map