@togglhq/cli 1.5.52 → 1.5.53
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-DM4C0TPd.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-DM4C0TPd.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -14025,6 +14025,17 @@ async function capacityGetComputations(httpClient, organization_id, workspace_id
|
|
|
14025
14025
|
}).json();
|
|
14026
14026
|
}
|
|
14027
14027
|
//#endregion
|
|
14028
|
+
//#region ../focus-queries/dist/capacity-settings/requests.ts
|
|
14029
|
+
async function getCapacitySettings(httpClient, workspace_id, signal) {
|
|
14030
|
+
return await httpClient.get(`workspaces/${workspace_id}/capacity-settings`, { signal }).json();
|
|
14031
|
+
}
|
|
14032
|
+
async function updateCapacitySettings(httpClient, workspace_id, data, signal) {
|
|
14033
|
+
return await httpClient.patch(`workspaces/${workspace_id}/capacity-settings`, {
|
|
14034
|
+
signal,
|
|
14035
|
+
json: data
|
|
14036
|
+
}).json();
|
|
14037
|
+
}
|
|
14038
|
+
//#endregion
|
|
14028
14039
|
//#region ../focus-queries/dist/composite/requests.ts
|
|
14029
14040
|
async function compositeCreateProject(httpClient, organization_id, workspace_id, data, signal) {
|
|
14030
14041
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/composite/projects`, {
|
|
@@ -15172,6 +15183,54 @@ const generatedFocusOperations = [
|
|
|
15172
15183
|
]));
|
|
15173
15184
|
}
|
|
15174
15185
|
},
|
|
15186
|
+
{
|
|
15187
|
+
id: "focus.capacities.settings-list",
|
|
15188
|
+
family: "focus",
|
|
15189
|
+
resource: "capacities",
|
|
15190
|
+
action: "settings-list",
|
|
15191
|
+
title: "Settings List Capacities",
|
|
15192
|
+
description: "Settings List Capacities.",
|
|
15193
|
+
safety: "read",
|
|
15194
|
+
destructive: false,
|
|
15195
|
+
cli: {
|
|
15196
|
+
group: ["capacities", "settings"],
|
|
15197
|
+
command: "list",
|
|
15198
|
+
interactive: "hidden"
|
|
15199
|
+
},
|
|
15200
|
+
mcp: { entityTool: "capacities" },
|
|
15201
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
15202
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getCapacitySettings", () => callGeneratedRequest(getCapacitySettings, [
|
|
15203
|
+
client.httpClient,
|
|
15204
|
+
client.workspaceIdNumber,
|
|
15205
|
+
void 0
|
|
15206
|
+
]))
|
|
15207
|
+
},
|
|
15208
|
+
{
|
|
15209
|
+
id: "focus.capacities.settings-update",
|
|
15210
|
+
family: "focus",
|
|
15211
|
+
resource: "capacities",
|
|
15212
|
+
action: "settings-update",
|
|
15213
|
+
title: "Settings Update Capacities",
|
|
15214
|
+
description: "Settings Update Capacities.",
|
|
15215
|
+
safety: "update",
|
|
15216
|
+
destructive: false,
|
|
15217
|
+
cli: {
|
|
15218
|
+
group: ["capacities", "settings"],
|
|
15219
|
+
command: "update",
|
|
15220
|
+
interactive: "default"
|
|
15221
|
+
},
|
|
15222
|
+
mcp: { entityTool: "capacities" },
|
|
15223
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ public_holidays_enabled: /* @__PURE__ */ boolean$1() }) }),
|
|
15224
|
+
execute: (input, { client }) => {
|
|
15225
|
+
const data = input;
|
|
15226
|
+
return client.runGeneratedRequest("updateCapacitySettings", () => callGeneratedRequest(updateCapacitySettings, [
|
|
15227
|
+
client.httpClient,
|
|
15228
|
+
client.workspaceIdNumber,
|
|
15229
|
+
data.payload ?? data.data ?? data,
|
|
15230
|
+
void 0
|
|
15231
|
+
]));
|
|
15232
|
+
}
|
|
15233
|
+
},
|
|
15175
15234
|
{
|
|
15176
15235
|
id: "focus.clients.create",
|
|
15177
15236
|
family: "focus",
|
|
@@ -25853,4 +25912,4 @@ Common commands:
|
|
|
25853
25912
|
//#endregion
|
|
25854
25913
|
export { CommanderError as n, createProgram as t };
|
|
25855
25914
|
|
|
25856
|
-
//# sourceMappingURL=program-
|
|
25915
|
+
//# sourceMappingURL=program-DM4C0TPd.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-DM4C0TPd.js";
|
|
2
2
|
export { createProgram };
|