@togglhq/cli 1.13.260 → 1.13.261
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-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-D9U_ozVp.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-
|
|
1
|
+
import { t as createProgram } from "./program-D9U_ozVp.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -15591,6 +15591,12 @@ async function getArchivedTasksClassic(httpClient, organization_id, workspace_id
|
|
|
15591
15591
|
async function getArchivedTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
15592
15592
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal })).json();
|
|
15593
15593
|
}
|
|
15594
|
+
async function restoreArchivedTask(httpClient, organization_id, workspace_id, task_id, data, signal) {
|
|
15595
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}/restore`, {
|
|
15596
|
+
signal,
|
|
15597
|
+
json: data
|
|
15598
|
+
})).json();
|
|
15599
|
+
}
|
|
15594
15600
|
//#endregion
|
|
15595
15601
|
//#region ../focus-queries/dist/archived-time-entries/requests.ts
|
|
15596
15602
|
async function getArchivedTimeEntriesClassic(httpClient, organization_id, workspace_id, { date_from, date_to, page = 1, per_page, task_id, project_id }, signal) {
|
|
@@ -18780,6 +18786,37 @@ const generatedFocusOperations = [
|
|
|
18780
18786
|
]));
|
|
18781
18787
|
}
|
|
18782
18788
|
},
|
|
18789
|
+
{
|
|
18790
|
+
id: "focus.archived-tasks.restore",
|
|
18791
|
+
family: "focus",
|
|
18792
|
+
resource: "archived-tasks",
|
|
18793
|
+
action: "restore",
|
|
18794
|
+
title: "Restore Archived Tasks",
|
|
18795
|
+
description: "Restore Archived Tasks.",
|
|
18796
|
+
safety: "update",
|
|
18797
|
+
destructive: false,
|
|
18798
|
+
cli: {
|
|
18799
|
+
group: ["archived-tasks"],
|
|
18800
|
+
command: "restore",
|
|
18801
|
+
interactive: "default"
|
|
18802
|
+
},
|
|
18803
|
+
mcp: { entityTool: "archived-tasks" },
|
|
18804
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
18805
|
+
payload: /* @__PURE__ */ looseObject({ request_id: /* @__PURE__ */ string$1() }),
|
|
18806
|
+
task_id: /* @__PURE__ */ number$2()
|
|
18807
|
+
}),
|
|
18808
|
+
execute: (input, { client }) => {
|
|
18809
|
+
const data = input;
|
|
18810
|
+
return client.runGeneratedRequest("restoreArchivedTask", () => callGeneratedRequest(restoreArchivedTask, [
|
|
18811
|
+
client.httpClient,
|
|
18812
|
+
client.organizationId,
|
|
18813
|
+
client.workspaceIdNumber,
|
|
18814
|
+
data.task_id,
|
|
18815
|
+
data.payload ?? data.data ?? data,
|
|
18816
|
+
void 0
|
|
18817
|
+
]));
|
|
18818
|
+
}
|
|
18819
|
+
},
|
|
18783
18820
|
{
|
|
18784
18821
|
id: "focus.archived-time-entries.get",
|
|
18785
18822
|
family: "focus",
|
|
@@ -34007,4 +34044,4 @@ Common commands:
|
|
|
34007
34044
|
//#endregion
|
|
34008
34045
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
34009
34046
|
|
|
34010
|
-
//# sourceMappingURL=program-
|
|
34047
|
+
//# sourceMappingURL=program-D9U_ozVp.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-D9U_ozVp.js";
|
|
2
2
|
export { createProgram };
|