@togglhq/cli 1.5.59 → 1.5.61

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-DgWZLN1f.js";
2
+ import { n as CommanderError, t as createProgram } from "./program-BpTJ4d__.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-DgWZLN1f.js";
1
+ import { t as createProgram } from "./program-BpTJ4d__.js";
2
2
  export { createProgram };
@@ -8888,9 +8888,19 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
8888
8888
  private: /* @__PURE__ */ boolean(),
8889
8889
  source: /* @__PURE__ */ string(),
8890
8890
  status_id: /* @__PURE__ */ number(),
8891
+ sub_task_done_count: /* @__PURE__ */ number(),
8892
+ sub_task_total_count: /* @__PURE__ */ number(),
8891
8893
  tag_ids: /* @__PURE__ */ array(/* @__PURE__ */ number()),
8892
8894
  tags: /* @__PURE__ */ array(TagLiteSchema),
8895
+ time_block_completed_count: /* @__PURE__ */ number(),
8896
+ time_block_scheduled_completed_count: /* @__PURE__ */ number(),
8897
+ time_block_scheduled_total_count: /* @__PURE__ */ number(),
8898
+ time_block_total_count: /* @__PURE__ */ number(),
8899
+ time_entry_total_count: /* @__PURE__ */ number(),
8893
8900
  toggl_user_id: /* @__PURE__ */ number(),
8901
+ total_blocked_time: /* @__PURE__ */ number(),
8902
+ total_scheduled_blocked_time: /* @__PURE__ */ number(),
8903
+ total_tracked_time: /* @__PURE__ */ number(),
8894
8904
  workspace_id: /* @__PURE__ */ number(),
8895
8905
  archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8896
8906
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ number())),
@@ -8920,16 +8930,6 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
8920
8930
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
8921
8931
  status: /* @__PURE__ */ optional(StatusLiteSchema),
8922
8932
  status_updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
8923
- sub_task_done_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8924
- sub_task_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8925
- time_block_completed_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8926
- time_block_scheduled_completed_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8927
- time_block_scheduled_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8928
- time_block_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("TODO: Set as `required` after FE adjusts things on their end"))),
8929
- time_entry_total_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8930
- total_blocked_time: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8931
- total_scheduled_blocked_time: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8932
- total_tracked_time: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8933
8933
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
8934
8934
  });
8935
8935
  const PaginatedTasksWithMetaAndTotalSchema = /* @__PURE__ */ object({
@@ -9213,6 +9213,7 @@ const PaginatedStatussSchema = /* @__PURE__ */ object({
9213
9213
  const PaginatedTimeBlockAggregateWithTasksSchema = /* @__PURE__ */ object({
9214
9214
  data: /* @__PURE__ */ array(/* @__PURE__ */ object({
9215
9215
  created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
9216
+ has_time_entry: /* @__PURE__ */ boolean(),
9216
9217
  id: /* @__PURE__ */ number(),
9217
9218
  start: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
9218
9219
  task_id: /* @__PURE__ */ number(),
@@ -9224,7 +9225,6 @@ const PaginatedTimeBlockAggregateWithTasksSchema = /* @__PURE__ */ object({
9224
9225
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
9225
9226
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
9226
9227
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
9227
- has_time_entry: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
9228
9228
  task: /* @__PURE__ */ optional(TaskSchema),
9229
9229
  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."))),
9230
9230
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
@@ -10607,7 +10607,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10607
10607
  ]))
10608
10608
  });
10609
10609
  //#endregion
10610
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10610
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10611
10611
  async function getInvitations(httpClient, signal) {
10612
10612
  return (await httpClient.get(`invitations`, { signal })).json();
10613
10613
  }
@@ -10624,7 +10624,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10624
10624
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10625
10625
  }
10626
10626
  //#endregion
10627
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10627
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10628
10628
  function buildSearchParams$1(params, flattenArrays = false) {
10629
10629
  const searchParams = new URLSearchParams();
10630
10630
  Object.entries(params).forEach(([key, value]) => {
@@ -10636,7 +10636,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
10636
10636
  return searchParams;
10637
10637
  }
10638
10638
  //#endregion
10639
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10639
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10640
10640
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10641
10641
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10642
10642
  }
@@ -10650,7 +10650,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10650
10650
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10651
10651
  }
10652
10652
  //#endregion
10653
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10653
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10654
10654
  async function getWorkspaces(httpClient, organization_id, signal) {
10655
10655
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10656
10656
  }
@@ -10679,7 +10679,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10679
10679
  });
10680
10680
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10681
10681
  //#endregion
10682
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10682
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
10683
10683
  const META_SYMBOL = Symbol.for("querygen:response:meta");
10684
10684
  function withResponseMeta(data, headers, status) {
10685
10685
  if (!data) return data;
@@ -10706,7 +10706,7 @@ function buildSearchParams(params, flattenArrays = false) {
10706
10706
  return searchParams;
10707
10707
  }
10708
10708
  //#endregion
10709
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10709
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
10710
10710
  async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10711
10711
  const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
10712
10712
  signal,
@@ -10715,12 +10715,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
10715
10715
  return withResponseMeta(await response.json(), response.headers, response.status);
10716
10716
  }
10717
10717
  //#endregion
10718
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10718
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10719
10719
  async function getStatus(httpClient, signal) {
10720
10720
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10721
10721
  }
10722
10722
  //#endregion
10723
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10723
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10724
10724
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10725
10725
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10726
10726
  signal,
@@ -10748,7 +10748,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10748
10748
  return response.json();
10749
10749
  }
10750
10750
  //#endregion
10751
- //#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10751
+ //#region ../../node_modules/.pnpm/@toggl+queries@1.1.2_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_09ff1b7117ab0a7beb1382d6f8a06eea/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10752
10752
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10753
10753
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10754
10754
  }
@@ -25978,4 +25978,4 @@ Common commands:
25978
25978
  //#endregion
25979
25979
  export { CommanderError as n, createProgram as t };
25980
25980
 
25981
- //# sourceMappingURL=program-DgWZLN1f.js.map
25981
+ //# sourceMappingURL=program-BpTJ4d__.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DgWZLN1f.js";
1
+ import { t as createProgram } from "./program-BpTJ4d__.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.5.59",
3
+ "version": "1.5.61",
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": "1.1.0",
58
+ "@toggl/queries": "1.1.2",
59
59
  "@types/node": "22.19.11",
60
60
  "tsdown": "0.21.8",
61
61
  "typescript": "5.9.3",