@togglhq/cli 1.13.0 → 1.13.2

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 { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-C6Dg7orD.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-BN4oqIBL.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { dirname, join } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C6Dg7orD.js";
1
+ import { t as createProgram } from "./program-BN4oqIBL.js";
2
2
  export { createProgram };
@@ -10872,7 +10872,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10872
10872
  ]))
10873
10873
  });
10874
10874
  //#endregion
10875
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10875
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10876
10876
  async function getInvitations(httpClient, signal) {
10877
10877
  return (await httpClient.get(`invitations`, { signal })).json();
10878
10878
  }
@@ -10889,7 +10889,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10889
10889
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10890
10890
  }
10891
10891
  //#endregion
10892
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10892
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10893
10893
  function buildSearchParams(params, flattenArrays = false) {
10894
10894
  const searchParams = new URLSearchParams();
10895
10895
  Object.entries(params).forEach(([key, value]) => {
@@ -10901,7 +10901,7 @@ function buildSearchParams(params, flattenArrays = false) {
10901
10901
  return searchParams;
10902
10902
  }
10903
10903
  //#endregion
10904
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10904
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10905
10905
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10906
10906
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10907
10907
  }
@@ -10915,7 +10915,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10915
10915
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10916
10916
  }
10917
10917
  //#endregion
10918
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10918
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10919
10919
  async function getWorkspaces(httpClient, organization_id, signal) {
10920
10920
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10921
10921
  }
@@ -10935,7 +10935,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10935
10935
  });
10936
10936
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10937
10937
  //#endregion
10938
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10938
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10939
10939
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
10940
10940
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
10941
10941
  signal,
@@ -10946,12 +10946,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
10946
10946
  })).json();
10947
10947
  }
10948
10948
  //#endregion
10949
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10949
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10950
10950
  async function getStatus(httpClient, signal) {
10951
10951
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10952
10952
  }
10953
10953
  //#endregion
10954
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10954
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10955
10955
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10956
10956
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10957
10957
  signal,
@@ -10979,7 +10979,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10979
10979
  return response.json();
10980
10980
  }
10981
10981
  //#endregion
10982
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10982
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.190_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b1184b7a85021c667b7a3d6b36f4d1b5/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10983
10983
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10984
10984
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10985
10985
  }
@@ -15704,7 +15704,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
15704
15704
  }
15705
15705
  //#endregion
15706
15706
  //#region ../focus-queries/dist/search/requests.ts
15707
- async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
15707
+ async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me, occurrence_window_date }, signal) {
15708
15708
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
15709
15709
  signal,
15710
15710
  searchParams: buildSearchParams$2({
@@ -15718,7 +15718,8 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
15718
15718
  include_drafts,
15719
15719
  exclude_calendar_events,
15720
15720
  group_by_tags,
15721
- only_me
15721
+ only_me,
15722
+ occurrence_window_date
15722
15723
  })
15723
15724
  }).json();
15724
15725
  }
@@ -16224,8 +16225,11 @@ async function getTimesheetSetupMembers(httpClient, organization_id, workspace_i
16224
16225
  searchParams: buildSearchParams$2({ include_discontinued })
16225
16226
  }).json();
16226
16227
  }
16227
- async function addTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
16228
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, { signal }).json();
16228
+ async function addTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
16229
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, {
16230
+ signal,
16231
+ json: data
16232
+ }).json();
16229
16233
  }
16230
16234
  async function deleteTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
16231
16235
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}`, { signal }).json();
@@ -26801,6 +26805,7 @@ const generatedFocusOperations = [
26801
26805
  },
26802
26806
  mcp: { entityTool: "timesheets" },
26803
26807
  inputSchema: /* @__PURE__ */ looseObject({
26808
+ payload: /* @__PURE__ */ looseObject({ started_at: /* @__PURE__ */ optional$1(apiDateTimeString) }),
26804
26809
  setup_id: /* @__PURE__ */ number$2(),
26805
26810
  user_account_id: /* @__PURE__ */ number$2()
26806
26811
  }),
@@ -26812,6 +26817,7 @@ const generatedFocusOperations = [
26812
26817
  client.workspaceIdNumber,
26813
26818
  data.setup_id,
26814
26819
  data.user_account_id,
26820
+ data.payload ?? data.data ?? data,
26815
26821
  void 0
26816
26822
  ]));
26817
26823
  }
@@ -29653,4 +29659,4 @@ Common commands:
29653
29659
  //#endregion
29654
29660
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
29655
29661
 
29656
- //# sourceMappingURL=program-C6Dg7orD.js.map
29662
+ //# sourceMappingURL=program-BN4oqIBL.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C6Dg7orD.js";
1
+ import { t as createProgram } from "./program-BN4oqIBL.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.0",
3
+ "version": "1.13.2",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@toggl/cli-core": "workspace:^",
58
58
  "@toggl/operations": "workspace:^",
59
- "@toggl/queries": "2.2.189",
59
+ "@toggl/queries": "2.2.190",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",