@togglhq/cli 1.5.44 → 1.5.46

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-BhzFXHr2.js";
2
+ import { n as CommanderError, t as createProgram } from "./program-PKaGDPy0.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-BhzFXHr2.js";
1
+ import { t as createProgram } from "./program-PKaGDPy0.js";
2
2
  export { createProgram };
@@ -14109,6 +14109,12 @@ async function createGoal(httpClient, organization_id, workspace_id, data, signa
14109
14109
  json: data
14110
14110
  }).json();
14111
14111
  }
14112
+ async function reorderGoals(httpClient, organization_id, workspace_id, data, signal) {
14113
+ return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/goals/positions`, {
14114
+ signal,
14115
+ json: data
14116
+ }).json();
14117
+ }
14112
14118
  async function previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
14113
14119
  return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
14114
14120
  signal,
@@ -15997,6 +16003,33 @@ const generatedFocusOperations = [
15997
16003
  ]));
15998
16004
  }
15999
16005
  },
16006
+ {
16007
+ id: "focus.goals.reorder",
16008
+ family: "focus",
16009
+ resource: "goals",
16010
+ action: "reorder",
16011
+ title: "Reorder Goals",
16012
+ description: "Reorder Goals.",
16013
+ safety: "read",
16014
+ destructive: false,
16015
+ cli: {
16016
+ group: ["goals"],
16017
+ command: "reorder",
16018
+ interactive: "available"
16019
+ },
16020
+ mcp: { entityTool: "goals" },
16021
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
16022
+ execute: (input, { client }) => {
16023
+ const data = input;
16024
+ return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
16025
+ client.httpClient,
16026
+ client.organizationId,
16027
+ client.workspaceIdNumber,
16028
+ data.payload ?? data.data ?? data,
16029
+ void 0
16030
+ ]));
16031
+ }
16032
+ },
16000
16033
  {
16001
16034
  id: "focus.goals.update",
16002
16035
  family: "focus",
@@ -25819,4 +25852,4 @@ Common commands:
25819
25852
  //#endregion
25820
25853
  export { CommanderError as n, createProgram as t };
25821
25854
 
25822
- //# sourceMappingURL=program-BhzFXHr2.js.map
25855
+ //# sourceMappingURL=program-PKaGDPy0.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-BhzFXHr2.js";
1
+ import { t as createProgram } from "./program-PKaGDPy0.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.5.44",
3
+ "version": "1.5.46",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",