@togglhq/cli 1.5.37 → 1.5.39
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-
|
|
2
|
+
import { n as CommanderError, t as createProgram } from "./program-CpliAsYt.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-
|
|
1
|
+
import { t as createProgram } from "./program-CpliAsYt.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 previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
|
|
14113
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
14114
|
+
signal,
|
|
14115
|
+
json: data
|
|
14116
|
+
}).json();
|
|
14117
|
+
}
|
|
14112
14118
|
async function getGoal(httpClient, organization_id, workspace_id, goal_id, signal) {
|
|
14113
14119
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, { signal }).json();
|
|
14114
14120
|
}
|
|
@@ -15937,6 +15943,57 @@ const generatedFocusOperations = [
|
|
|
15937
15943
|
void 0
|
|
15938
15944
|
]))
|
|
15939
15945
|
},
|
|
15946
|
+
{
|
|
15947
|
+
id: "focus.goals.preview-goal-tracked-time",
|
|
15948
|
+
family: "focus",
|
|
15949
|
+
resource: "goals",
|
|
15950
|
+
action: "preview-goal-tracked-time",
|
|
15951
|
+
title: "Preview Goal Tracked Time Goals",
|
|
15952
|
+
description: "Preview Goal Tracked Time Goals.",
|
|
15953
|
+
safety: "read",
|
|
15954
|
+
destructive: false,
|
|
15955
|
+
cli: {
|
|
15956
|
+
group: ["goals"],
|
|
15957
|
+
command: "preview-goal-tracked-time",
|
|
15958
|
+
interactive: "available"
|
|
15959
|
+
},
|
|
15960
|
+
mcp: { entityTool: "goals" },
|
|
15961
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
15962
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
15963
|
+
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
15964
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
15965
|
+
icon: /* @__PURE__ */ string$1(),
|
|
15966
|
+
monthly_anchor: /* @__PURE__ */ picklist$1([
|
|
15967
|
+
"calendar",
|
|
15968
|
+
"month_end",
|
|
15969
|
+
"first_workday"
|
|
15970
|
+
]),
|
|
15971
|
+
name: /* @__PURE__ */ string$1(),
|
|
15972
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
15973
|
+
recurrence: /* @__PURE__ */ picklist$1([
|
|
15974
|
+
"daily",
|
|
15975
|
+
"weekly",
|
|
15976
|
+
"daily_workdays",
|
|
15977
|
+
"monthly"
|
|
15978
|
+
]),
|
|
15979
|
+
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
15980
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
15981
|
+
target_seconds: /* @__PURE__ */ number$2(),
|
|
15982
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
15983
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
15984
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
15985
|
+
}) }),
|
|
15986
|
+
execute: (input, { client }) => {
|
|
15987
|
+
const data = input;
|
|
15988
|
+
return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
|
|
15989
|
+
client.httpClient,
|
|
15990
|
+
client.organizationId,
|
|
15991
|
+
client.workspaceIdNumber,
|
|
15992
|
+
data.payload ?? data.data ?? data,
|
|
15993
|
+
void 0
|
|
15994
|
+
]));
|
|
15995
|
+
}
|
|
15996
|
+
},
|
|
15940
15997
|
{
|
|
15941
15998
|
id: "focus.goals.update",
|
|
15942
15999
|
family: "focus",
|
|
@@ -25759,4 +25816,4 @@ Common commands:
|
|
|
25759
25816
|
//#endregion
|
|
25760
25817
|
export { CommanderError as n, createProgram as t };
|
|
25761
25818
|
|
|
25762
|
-
//# sourceMappingURL=program-
|
|
25819
|
+
//# sourceMappingURL=program-CpliAsYt.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-CpliAsYt.js";
|
|
2
2
|
export { createProgram };
|