@togglhq/cli 1.13.77 → 1.13.78

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-CdV-YKPL.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-loLC8qgy.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-CdV-YKPL.js";
1
+ import { t as createProgram } from "./program-loLC8qgy.js";
2
2
  export { createProgram };
@@ -10938,7 +10938,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10938
10938
  ]))
10939
10939
  });
10940
10940
  //#endregion
10941
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10941
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10942
10942
  async function getInvitations(httpClient, signal) {
10943
10943
  return (await httpClient.get(`invitations`, { signal })).json();
10944
10944
  }
@@ -10955,7 +10955,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10955
10955
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10956
10956
  }
10957
10957
  //#endregion
10958
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10958
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10959
10959
  function buildSearchParams(params, flattenArrays = false) {
10960
10960
  const searchParams = new URLSearchParams();
10961
10961
  Object.entries(params).forEach(([key, value]) => {
@@ -10967,7 +10967,7 @@ function buildSearchParams(params, flattenArrays = false) {
10967
10967
  return searchParams;
10968
10968
  }
10969
10969
  //#endregion
10970
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10970
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10971
10971
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10972
10972
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10973
10973
  }
@@ -10981,7 +10981,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10981
10981
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10982
10982
  }
10983
10983
  //#endregion
10984
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10984
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10985
10985
  async function getWorkspaces(httpClient, organization_id, signal) {
10986
10986
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10987
10987
  }
@@ -11001,7 +11001,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
11001
11001
  });
11002
11002
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
11003
11003
  //#endregion
11004
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11004
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11005
11005
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
11006
11006
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
11007
11007
  signal,
@@ -11012,12 +11012,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
11012
11012
  })).json();
11013
11013
  }
11014
11014
  //#endregion
11015
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11015
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11016
11016
  async function getStatus(httpClient, signal) {
11017
11017
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
11018
11018
  }
11019
11019
  //#endregion
11020
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11020
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11021
11021
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
11022
11022
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
11023
11023
  signal,
@@ -11045,7 +11045,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
11045
11045
  return response.json();
11046
11046
  }
11047
11047
  //#endregion
11048
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.257_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6219ff2a8f5c4a05cc95903d440d5155/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11048
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.258_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6b7bc9c86b6ebd72f15d1b5aca14fb35/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11049
11049
  async function getMyWorkingHours(httpClient, organization_id, signal) {
11050
11050
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
11051
11051
  }
@@ -14971,6 +14971,21 @@ async function runAiView(httpClient, organization_id, workspace_id, data, signal
14971
14971
  }).json();
14972
14972
  }
14973
14973
  //#endregion
14974
+ //#region ../focus-queries/dist/archived-clients/requests.ts
14975
+ async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
14976
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
14977
+ signal,
14978
+ searchParams: buildSearchParams$2({
14979
+ page,
14980
+ per_page,
14981
+ name
14982
+ })
14983
+ }).json();
14984
+ }
14985
+ async function getArchivedClient(httpClient, organization_id, workspace_id, client_id, signal) {
14986
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients/${client_id}`, { signal }).json();
14987
+ }
14988
+ //#endregion
14974
14989
  //#region ../focus-queries/dist/archived-projects/requests.ts
14975
14990
  async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
14976
14991
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
@@ -14987,6 +15002,22 @@ async function getArchivedProject(httpClient, organization_id, workspace_id, pro
14987
15002
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
14988
15003
  }
14989
15004
  //#endregion
15005
+ //#region ../focus-queries/dist/archived-tasks/requests.ts
15006
+ async function getArchivedTasksClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, project_id } = {}, signal) {
15007
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks`, {
15008
+ signal,
15009
+ searchParams: buildSearchParams$2({
15010
+ page,
15011
+ per_page,
15012
+ name,
15013
+ project_id
15014
+ })
15015
+ }).json();
15016
+ }
15017
+ async function getArchivedTask(httpClient, organization_id, workspace_id, task_id, signal) {
15018
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/tasks/${task_id}`, { signal }).json();
15019
+ }
15020
+ //#endregion
14990
15021
  //#region ../focus-queries/dist/archived-time-entries/requests.ts
14991
15022
  async function getArchivedTimeEntriesClassic(httpClient, organization_id, workspace_id, { date_from, date_to, page = 1, per_page, task_id, project_id }, signal) {
14992
15023
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
@@ -17080,6 +17111,64 @@ const generatedFocusOperations = [
17080
17111
  return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
17081
17112
  }
17082
17113
  },
17114
+ {
17115
+ id: "focus.archived-clients.get",
17116
+ family: "focus",
17117
+ resource: "archived-clients",
17118
+ action: "get",
17119
+ title: "Get Archived Clients",
17120
+ description: "Get Archived Clients.",
17121
+ safety: "read",
17122
+ destructive: false,
17123
+ cli: {
17124
+ group: ["archived-clients"],
17125
+ command: "get",
17126
+ interactive: "available"
17127
+ },
17128
+ mcp: { entityTool: "archived-clients" },
17129
+ inputSchema: /* @__PURE__ */ looseObject({ client_id: /* @__PURE__ */ number$2() }),
17130
+ execute: (input, { client }) => {
17131
+ const data = input;
17132
+ return client.runGeneratedRequest("getArchivedClient", () => callGeneratedRequest(getArchivedClient, [
17133
+ client.httpClient,
17134
+ client.organizationId,
17135
+ client.workspaceIdNumber,
17136
+ data.client_id,
17137
+ void 0
17138
+ ]));
17139
+ }
17140
+ },
17141
+ {
17142
+ id: "focus.archived-clients.get-classic",
17143
+ family: "focus",
17144
+ resource: "archived-clients",
17145
+ action: "get-classic",
17146
+ title: "Get Classic Archived Clients",
17147
+ description: "Get Classic Archived Clients.",
17148
+ safety: "read",
17149
+ destructive: false,
17150
+ cli: {
17151
+ group: ["archived-clients"],
17152
+ command: "get-classic",
17153
+ interactive: "hidden"
17154
+ },
17155
+ mcp: { entityTool: "archived-clients" },
17156
+ inputSchema: /* @__PURE__ */ looseObject({
17157
+ name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17158
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17159
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
17160
+ }),
17161
+ execute: (input, { client }) => {
17162
+ const data = input;
17163
+ return client.runGeneratedRequest("getArchivedClientsClassic", () => callGeneratedRequest(getArchivedClientsClassic, [
17164
+ client.httpClient,
17165
+ client.organizationId,
17166
+ client.workspaceIdNumber,
17167
+ data,
17168
+ void 0
17169
+ ]));
17170
+ }
17171
+ },
17083
17172
  {
17084
17173
  id: "focus.archived-projects.get",
17085
17174
  family: "focus",
@@ -17139,6 +17228,65 @@ const generatedFocusOperations = [
17139
17228
  ]));
17140
17229
  }
17141
17230
  },
17231
+ {
17232
+ id: "focus.archived-tasks.get",
17233
+ family: "focus",
17234
+ resource: "archived-tasks",
17235
+ action: "get",
17236
+ title: "Get Archived Tasks",
17237
+ description: "Get Archived Tasks.",
17238
+ safety: "read",
17239
+ destructive: false,
17240
+ cli: {
17241
+ group: ["archived-tasks"],
17242
+ command: "get",
17243
+ interactive: "available"
17244
+ },
17245
+ mcp: { entityTool: "archived-tasks" },
17246
+ inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
17247
+ execute: (input, { client }) => {
17248
+ const data = input;
17249
+ return client.runGeneratedRequest("getArchivedTask", () => callGeneratedRequest(getArchivedTask, [
17250
+ client.httpClient,
17251
+ client.organizationId,
17252
+ client.workspaceIdNumber,
17253
+ data.task_id,
17254
+ void 0
17255
+ ]));
17256
+ }
17257
+ },
17258
+ {
17259
+ id: "focus.archived-tasks.get-classic",
17260
+ family: "focus",
17261
+ resource: "archived-tasks",
17262
+ action: "get-classic",
17263
+ title: "Get Classic Archived Tasks",
17264
+ description: "Get Classic Archived Tasks.",
17265
+ safety: "read",
17266
+ destructive: false,
17267
+ cli: {
17268
+ group: ["archived-tasks"],
17269
+ command: "get-classic",
17270
+ interactive: "hidden"
17271
+ },
17272
+ mcp: { entityTool: "archived-tasks" },
17273
+ inputSchema: /* @__PURE__ */ looseObject({
17274
+ name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17275
+ page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17276
+ per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17277
+ project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
17278
+ }),
17279
+ execute: (input, { client }) => {
17280
+ const data = input;
17281
+ return client.runGeneratedRequest("getArchivedTasksClassic", () => callGeneratedRequest(getArchivedTasksClassic, [
17282
+ client.httpClient,
17283
+ client.organizationId,
17284
+ client.workspaceIdNumber,
17285
+ data,
17286
+ void 0
17287
+ ]));
17288
+ }
17289
+ },
17142
17290
  {
17143
17291
  id: "focus.archived-time-entries.get",
17144
17292
  family: "focus",
@@ -30945,4 +31093,4 @@ Common commands:
30945
31093
  //#endregion
30946
31094
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30947
31095
 
30948
- //# sourceMappingURL=program-CdV-YKPL.js.map
31096
+ //# sourceMappingURL=program-loLC8qgy.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CdV-YKPL.js";
1
+ import { t as createProgram } from "./program-loLC8qgy.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.77",
3
+ "version": "1.13.78",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@toggl/cli-core": "workspace:^",
58
58
  "@toggl/operations": "workspace:^",
59
- "@toggl/queries": "2.2.257",
59
+ "@toggl/queries": "2.2.258",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",