@togglhq/cli 1.5.33 → 1.5.35

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as CommanderError, t as createProgram } from "./program-DuwrGVwr.js";
2
+ import { n as CommanderError, t as createProgram } from "./program-DWSbNAZL.js";
3
3
  //#region src/cli.ts
4
4
  try {
5
5
  await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DuwrGVwr.js";
1
+ import { t as createProgram } from "./program-DWSbNAZL.js";
2
2
  export { createProgram };
@@ -8861,9 +8861,19 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
8861
8861
  private: /* @__PURE__ */ boolean(),
8862
8862
  source: /* @__PURE__ */ string(),
8863
8863
  status_id: /* @__PURE__ */ number(),
8864
+ sub_task_done_count: /* @__PURE__ */ number(),
8865
+ sub_task_total_count: /* @__PURE__ */ number(),
8864
8866
  tag_ids: /* @__PURE__ */ array(/* @__PURE__ */ number()),
8865
8867
  tags: /* @__PURE__ */ array(TagLiteSchema),
8868
+ time_block_completed_count: /* @__PURE__ */ number(),
8869
+ time_block_scheduled_completed_count: /* @__PURE__ */ number(),
8870
+ time_block_scheduled_total_count: /* @__PURE__ */ number(),
8871
+ time_block_total_count: /* @__PURE__ */ number(),
8872
+ time_entry_total_count: /* @__PURE__ */ number(),
8866
8873
  toggl_user_id: /* @__PURE__ */ number(),
8874
+ total_blocked_time: /* @__PURE__ */ number(),
8875
+ total_scheduled_blocked_time: /* @__PURE__ */ number(),
8876
+ total_tracked_time: /* @__PURE__ */ number(),
8867
8877
  workspace_id: /* @__PURE__ */ number(),
8868
8878
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8869
8879
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ number())),
@@ -8893,16 +8903,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
8893
8903
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
8894
8904
  status: /* @__PURE__ */ optional(StatusLiteSchema),
8895
8905
  status_updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
8896
- sub_task_done_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8897
- sub_task_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8898
- time_block_completed_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8899
- time_block_scheduled_completed_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8900
- time_block_scheduled_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8901
- time_block_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("TODO: Set as `required` after FE adjusts things on their end"))),
8902
- time_entry_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8903
- total_blocked_time: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8904
- total_scheduled_blocked_time: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8905
- total_tracked_time: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8906
8906
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
8907
8907
  });
8908
8908
  const PaginatedTasksWithMetaAndTotalSchema = /* @__PURE__ */ object({
@@ -9186,6 +9186,7 @@ const PaginatedStatussSchema = /* @__PURE__ */ object({
9186
9186
  const PaginatedTimeBlockAggregateWithTasksSchema = /* @__PURE__ */ object({
9187
9187
  data: /* @__PURE__ */ array(/* @__PURE__ */ object({
9188
9188
  created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
9189
+ has_time_entry: /* @__PURE__ */ boolean(),
9189
9190
  id: /* @__PURE__ */ number(),
9190
9191
  start: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
9191
9192
  task_id: /* @__PURE__ */ number(),
@@ -9197,7 +9198,6 @@ const PaginatedTimeBlockAggregateWithTasksSchema = /* @__PURE__ */ object({
9197
9198
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
9198
9199
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
9199
9200
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
9200
- has_time_entry: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
9201
9201
  task: /* @__PURE__ */ optional(TaskSchema),
9202
9202
  timezone: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("Timezone is the effective IANA timezone hydrated on reads: the workspace timezone snapshotted at creation when set, else the creator's snapshot; NULL when unresolved."))),
9203
9203
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
@@ -10577,7 +10577,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10577
10577
  ]))
10578
10578
  });
10579
10579
  //#endregion
10580
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10580
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10581
10581
  async function getInvitations(httpClient, signal) {
10582
10582
  return (await httpClient.get(`invitations`, { signal })).json();
10583
10583
  }
@@ -10594,7 +10594,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10594
10594
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10595
10595
  }
10596
10596
  //#endregion
10597
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10597
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10598
10598
  function buildSearchParams$1(params, flattenArrays = false) {
10599
10599
  const searchParams = new URLSearchParams();
10600
10600
  Object.entries(params).forEach(([key, value]) => {
@@ -10606,7 +10606,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
10606
10606
  return searchParams;
10607
10607
  }
10608
10608
  //#endregion
10609
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10609
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10610
10610
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10611
10611
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10612
10612
  }
@@ -10620,7 +10620,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10620
10620
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10621
10621
  }
10622
10622
  //#endregion
10623
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10623
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10624
10624
  async function getWorkspaces(httpClient, organization_id, signal) {
10625
10625
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10626
10626
  }
@@ -10649,7 +10649,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10649
10649
  });
10650
10650
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10651
10651
  //#endregion
10652
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10652
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10653
10653
  const META_SYMBOL = Symbol.for("querygen:response:meta");
10654
10654
  function withResponseMeta(data, headers, status) {
10655
10655
  if (!data) return data;
@@ -10676,7 +10676,7 @@ function buildSearchParams(params, flattenArrays = false) {
10676
10676
  return searchParams;
10677
10677
  }
10678
10678
  //#endregion
10679
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10679
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10680
10680
  async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10681
10681
  const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
10682
10682
  signal,
@@ -10685,12 +10685,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10685
10685
  return withResponseMeta(await response.json(), response.headers, response.status);
10686
10686
  }
10687
10687
  //#endregion
10688
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10688
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10689
10689
  async function getStatus(httpClient, signal) {
10690
10690
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10691
10691
  }
10692
10692
  //#endregion
10693
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10693
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10694
10694
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10695
10695
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10696
10696
  signal,
@@ -10718,7 +10718,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10718
10718
  return response.json();
10719
10719
  }
10720
10720
  //#endregion
10721
- //#region ../../node_modules/.pnpm/@toggl+queries@0.15.24_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_ed9b6b8a86ac88aa35571489073a9959/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10721
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.0.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_a2b83df85e5c0a04ce57e670eec2d87f/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10722
10722
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10723
10723
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10724
10724
  }
@@ -25758,4 +25758,4 @@ Common commands:
25758
25758
  //#endregion
25759
25759
  export { CommanderError as n, createProgram as t };
25760
25760
 
25761
- //# sourceMappingURL=program-DuwrGVwr.js.map
25761
+ //# sourceMappingURL=program-DWSbNAZL.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DuwrGVwr.js";
1
+ import { t as createProgram } from "./program-DWSbNAZL.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.5.33",
3
+ "version": "1.5.35",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@toggl/cli-core": "workspace:^",
57
57
  "@toggl/operations": "workspace:^",
58
- "@toggl/queries": "0.15.24",
58
+ "@toggl/queries": "1.0.0",
59
59
  "@types/node": "22.19.11",
60
60
  "tsdown": "0.21.8",
61
61
  "typescript": "5.9.3",