@togglhq/cli 1.13.66 → 1.13.68

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-CrU5XoNI.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-CdVVE8GA.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-CrU5XoNI.js";
1
+ import { t as createProgram } from "./program-CdVVE8GA.js";
2
2
  export { createProgram };
@@ -14941,6 +14941,22 @@ async function sendAiMessage(httpClient, organization_id, workspace_id, conversa
14941
14941
  }).json();
14942
14942
  }
14943
14943
  //#endregion
14944
+ //#region ../focus-queries/dist/archived-projects/requests.ts
14945
+ async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
14946
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
14947
+ signal,
14948
+ searchParams: buildSearchParams$2({
14949
+ page,
14950
+ per_page,
14951
+ name,
14952
+ client_id
14953
+ })
14954
+ }).json();
14955
+ }
14956
+ async function getArchivedProject(httpClient, organization_id, workspace_id, project_id, signal) {
14957
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
14958
+ }
14959
+ //#endregion
14944
14960
  //#region ../focus-queries/dist/attachments/requests.ts
14945
14961
  async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
14946
14962
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal }).json();
@@ -16860,6 +16876,65 @@ const generatedFocusOperations = [
16860
16876
  return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
16861
16877
  }
16862
16878
  },
16879
+ {
16880
+ id: "focus.archived-projects.get",
16881
+ family: "focus",
16882
+ resource: "archived-projects",
16883
+ action: "get",
16884
+ title: "Get Archived Projects",
16885
+ description: "Get Archived Projects.",
16886
+ safety: "read",
16887
+ destructive: false,
16888
+ cli: {
16889
+ group: ["archived-projects"],
16890
+ command: "get",
16891
+ interactive: "available"
16892
+ },
16893
+ mcp: { entityTool: "archived-projects" },
16894
+ inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
16895
+ execute: (input, { client }) => {
16896
+ const data = input;
16897
+ return client.runGeneratedRequest("getArchivedProject", () => callGeneratedRequest(getArchivedProject, [
16898
+ client.httpClient,
16899
+ client.organizationId,
16900
+ client.workspaceIdNumber,
16901
+ data.project_id,
16902
+ void 0
16903
+ ]));
16904
+ }
16905
+ },
16906
+ {
16907
+ id: "focus.archived-projects.get-classic",
16908
+ family: "focus",
16909
+ resource: "archived-projects",
16910
+ action: "get-classic",
16911
+ title: "Get Classic Archived Projects",
16912
+ description: "Get Classic Archived Projects.",
16913
+ safety: "read",
16914
+ destructive: false,
16915
+ cli: {
16916
+ group: ["archived-projects"],
16917
+ command: "get-classic",
16918
+ interactive: "hidden"
16919
+ },
16920
+ mcp: { entityTool: "archived-projects" },
16921
+ inputSchema: /* @__PURE__ */ looseObject({
16922
+ client_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16923
+ name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
16924
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
16925
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
16926
+ }),
16927
+ execute: (input, { client }) => {
16928
+ const data = input;
16929
+ return client.runGeneratedRequest("getArchivedProjectsClassic", () => callGeneratedRequest(getArchivedProjectsClassic, [
16930
+ client.httpClient,
16931
+ client.organizationId,
16932
+ client.workspaceIdNumber,
16933
+ data,
16934
+ void 0
16935
+ ]));
16936
+ }
16937
+ },
16863
16938
  {
16864
16939
  id: "focus.attachments.get-workspace-attachment-storage",
16865
16940
  family: "focus",
@@ -17825,7 +17900,8 @@ const generatedFocusOperations = [
17825
17900
  "donut",
17826
17901
  "table",
17827
17902
  "pivot_table"
17828
- ])
17903
+ ]),
17904
+ filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
17829
17905
  })),
17830
17906
  period: /* @__PURE__ */ unknown$1(),
17831
17907
  flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
@@ -17973,7 +18049,8 @@ const generatedFocusOperations = [
17973
18049
  "donut",
17974
18050
  "table",
17975
18051
  "pivot_table"
17976
- ])
18052
+ ]),
18053
+ filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
17977
18054
  })),
17978
18055
  period: /* @__PURE__ */ unknown$1(),
17979
18056
  flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
@@ -30549,4 +30626,4 @@ Common commands:
30549
30626
  //#endregion
30550
30627
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30551
30628
 
30552
- //# sourceMappingURL=program-CrU5XoNI.js.map
30629
+ //# sourceMappingURL=program-CdVVE8GA.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CrU5XoNI.js";
1
+ import { t as createProgram } from "./program-CdVVE8GA.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.66",
3
+ "version": "1.13.68",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",