@togglhq/cli 1.13.56 → 1.13.58

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-CxrkCyH2.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-Nzh9v81h.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-CxrkCyH2.js";
1
+ import { t as createProgram } from "./program-Nzh9v81h.js";
2
2
  export { createProgram };
@@ -10588,26 +10588,33 @@ async function updateTask(httpClient, organization_id, workspace_id, task_id, da
10588
10588
  json: data
10589
10589
  }).json();
10590
10590
  }
10591
- async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, outbound_sync, signal) {
10591
+ async function deleteTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, outbound_sync, signal) {
10592
10592
  return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
10593
10593
  signal,
10594
10594
  searchParams: buildSearchParams$2({
10595
10595
  from_recurring_task_id,
10596
+ scope,
10596
10597
  outbound_sync
10597
10598
  })
10598
10599
  }).json();
10599
10600
  }
10600
- async function patchTask(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, signal) {
10601
+ async function patchTask(httpClient, organization_id, workspace_id, task_id, data, from_recurring_task_id, scope, signal) {
10601
10602
  return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}`, {
10602
10603
  signal,
10603
10604
  json: data,
10604
- searchParams: buildSearchParams$2({ from_recurring_task_id })
10605
+ searchParams: buildSearchParams$2({
10606
+ from_recurring_task_id,
10607
+ scope
10608
+ })
10605
10609
  }).json();
10606
10610
  }
10607
- async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, signal) {
10611
+ async function archiveTask(httpClient, organization_id, workspace_id, task_id, from_recurring_task_id, scope, signal) {
10608
10612
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/archive`, {
10609
10613
  signal,
10610
- searchParams: buildSearchParams$2({ from_recurring_task_id })
10614
+ searchParams: buildSearchParams$2({
10615
+ from_recurring_task_id,
10616
+ scope
10617
+ })
10611
10618
  }).json();
10612
10619
  }
10613
10620
  async function getTaskWithChildrenClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, status_id, archived, source, team_id, assignee_user_id, tag_id, include_assignees } = {}, signal) {
@@ -10650,11 +10657,17 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
10650
10657
  })
10651
10658
  }).json();
10652
10659
  }
10653
- async function restoreTask(httpClient, organization_id, workspace_id, task_id, signal) {
10654
- return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, { signal }).json();
10660
+ async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
10661
+ return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
10662
+ signal,
10663
+ searchParams: buildSearchParams$2({ scope })
10664
+ }).json();
10655
10665
  }
10656
- async function unarchiveTask(httpClient, organization_id, workspace_id, task_id, signal) {
10657
- return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, { signal }).json();
10666
+ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
10667
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/unarchive`, {
10668
+ signal,
10669
+ searchParams: buildSearchParams$2({ scope })
10670
+ }).json();
10658
10671
  }
10659
10672
  //#endregion
10660
10673
  //#region ../focus-queries/dist/time-entries/requests.ts
@@ -23857,6 +23870,11 @@ const generatedFocusOperations = [
23857
23870
  mcp: { entityTool: "tasks" },
23858
23871
  inputSchema: /* @__PURE__ */ looseObject({
23859
23872
  from_recurring_task_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23873
+ scope: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
23874
+ "this",
23875
+ "following",
23876
+ "all"
23877
+ ])),
23860
23878
  task_id: /* @__PURE__ */ number$2()
23861
23879
  }),
23862
23880
  execute: (input, { client }) => {
@@ -23867,6 +23885,7 @@ const generatedFocusOperations = [
23867
23885
  client.workspaceIdNumber,
23868
23886
  data.task_id,
23869
23887
  data.from_recurring_task_id,
23888
+ data.scope,
23870
23889
  void 0
23871
23890
  ]));
23872
23891
  }
@@ -25033,7 +25052,14 @@ const generatedFocusOperations = [
25033
25052
  interactive: "default"
25034
25053
  },
25035
25054
  mcp: { entityTool: "tasks" },
25036
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
25055
+ inputSchema: /* @__PURE__ */ looseObject({
25056
+ scope: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
25057
+ "this",
25058
+ "following",
25059
+ "all"
25060
+ ])),
25061
+ task_id: /* @__PURE__ */ number$2()
25062
+ }),
25037
25063
  execute: (input, { client }) => {
25038
25064
  const data = input;
25039
25065
  return client.runGeneratedRequest("restoreTask", () => callGeneratedRequest(restoreTask, [
@@ -25041,6 +25067,7 @@ const generatedFocusOperations = [
25041
25067
  client.organizationId,
25042
25068
  client.workspaceIdNumber,
25043
25069
  data.task_id,
25070
+ data.scope,
25044
25071
  void 0
25045
25072
  ]));
25046
25073
  }
@@ -25114,7 +25141,14 @@ const generatedFocusOperations = [
25114
25141
  interactive: "default"
25115
25142
  },
25116
25143
  mcp: { entityTool: "tasks" },
25117
- inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
25144
+ inputSchema: /* @__PURE__ */ looseObject({
25145
+ scope: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
25146
+ "this",
25147
+ "following",
25148
+ "all"
25149
+ ])),
25150
+ task_id: /* @__PURE__ */ number$2()
25151
+ }),
25118
25152
  execute: (input, { client }) => {
25119
25153
  const data = input;
25120
25154
  return client.runGeneratedRequest("unarchiveTask", () => callGeneratedRequest(unarchiveTask, [
@@ -25122,6 +25156,7 @@ const generatedFocusOperations = [
25122
25156
  client.organizationId,
25123
25157
  client.workspaceIdNumber,
25124
25158
  data.task_id,
25159
+ data.scope,
25125
25160
  void 0
25126
25161
  ]));
25127
25162
  }
@@ -30269,4 +30304,4 @@ Common commands:
30269
30304
  //#endregion
30270
30305
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30271
30306
 
30272
- //# sourceMappingURL=program-CxrkCyH2.js.map
30307
+ //# sourceMappingURL=program-Nzh9v81h.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CxrkCyH2.js";
1
+ import { t as createProgram } from "./program-Nzh9v81h.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.56",
3
+ "version": "1.13.58",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",