@togglhq/cli 1.13.76 → 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-BklQ8ONG.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-BklQ8ONG.js";
1
+ import { t as createProgram } from "./program-loLC8qgy.js";
2
2
  export { createProgram };
@@ -10075,7 +10075,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
10075
10075
  }
10076
10076
  //#endregion
10077
10077
  //#region ../focus-queries/dist/projects/requests.ts
10078
- async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10078
+ async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10079
10079
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
10080
10080
  signal,
10081
10081
  searchParams: buildSearchParams$2({
@@ -10084,6 +10084,7 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
10084
10084
  include_tasks,
10085
10085
  unified_search,
10086
10086
  include_picker_parent_group_counts,
10087
+ include_picker_pinned_tasks,
10087
10088
  task_archived,
10088
10089
  task_recurring,
10089
10090
  task_state,
@@ -10937,7 +10938,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10937
10938
  ]))
10938
10939
  });
10939
10940
  //#endregion
10940
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
10941
10942
  async function getInvitations(httpClient, signal) {
10942
10943
  return (await httpClient.get(`invitations`, { signal })).json();
10943
10944
  }
@@ -10954,7 +10955,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10954
10955
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10955
10956
  }
10956
10957
  //#endregion
10957
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
10958
10959
  function buildSearchParams(params, flattenArrays = false) {
10959
10960
  const searchParams = new URLSearchParams();
10960
10961
  Object.entries(params).forEach(([key, value]) => {
@@ -10966,7 +10967,7 @@ function buildSearchParams(params, flattenArrays = false) {
10966
10967
  return searchParams;
10967
10968
  }
10968
10969
  //#endregion
10969
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
10970
10971
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10971
10972
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10972
10973
  }
@@ -10980,7 +10981,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10980
10981
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10981
10982
  }
10982
10983
  //#endregion
10983
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
10984
10985
  async function getWorkspaces(httpClient, organization_id, signal) {
10985
10986
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10986
10987
  }
@@ -11000,7 +11001,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
11000
11001
  });
11001
11002
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
11002
11003
  //#endregion
11003
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
11004
11005
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
11005
11006
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
11006
11007
  signal,
@@ -11011,12 +11012,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
11011
11012
  })).json();
11012
11013
  }
11013
11014
  //#endregion
11014
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
11015
11016
  async function getStatus(httpClient, signal) {
11016
11017
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
11017
11018
  }
11018
11019
  //#endregion
11019
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
11020
11021
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
11021
11022
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
11022
11023
  signal,
@@ -11044,7 +11045,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
11044
11045
  return response.json();
11045
11046
  }
11046
11047
  //#endregion
11047
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.255_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_10da1b8f2eab0489969c8db7473ef79b/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
11048
11049
  async function getMyWorkingHours(httpClient, organization_id, signal) {
11049
11050
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
11050
11051
  }
@@ -14970,6 +14971,21 @@ async function runAiView(httpClient, organization_id, workspace_id, data, signal
14970
14971
  }).json();
14971
14972
  }
14972
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
14973
14989
  //#region ../focus-queries/dist/archived-projects/requests.ts
14974
14990
  async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
14975
14991
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
@@ -14986,6 +15002,22 @@ async function getArchivedProject(httpClient, organization_id, workspace_id, pro
14986
15002
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
14987
15003
  }
14988
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
14989
15021
  //#region ../focus-queries/dist/archived-time-entries/requests.ts
14990
15022
  async function getArchivedTimeEntriesClassic(httpClient, organization_id, workspace_id, { date_from, date_to, page = 1, per_page, task_id, project_id }, signal) {
14991
15023
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries`, {
@@ -15000,6 +15032,9 @@ async function getArchivedTimeEntriesClassic(httpClient, organization_id, worksp
15000
15032
  })
15001
15033
  }).json();
15002
15034
  }
15035
+ async function getArchivedTimeEntry(httpClient, organization_id, workspace_id, time_entry_id, signal) {
15036
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal }).json();
15037
+ }
15003
15038
  //#endregion
15004
15039
  //#region ../focus-queries/dist/attachments/requests.ts
15005
15040
  async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
@@ -17076,6 +17111,64 @@ const generatedFocusOperations = [
17076
17111
  return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
17077
17112
  }
17078
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
+ },
17079
17172
  {
17080
17173
  id: "focus.archived-projects.get",
17081
17174
  family: "focus",
@@ -17135,6 +17228,65 @@ const generatedFocusOperations = [
17135
17228
  ]));
17136
17229
  }
17137
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
+ },
17138
17290
  {
17139
17291
  id: "focus.archived-time-entries.get",
17140
17292
  family: "focus",
@@ -17169,6 +17321,33 @@ const generatedFocusOperations = [
17169
17321
  ]));
17170
17322
  }
17171
17323
  },
17324
+ {
17325
+ id: "focus.archived-time-entries.get-get",
17326
+ family: "focus",
17327
+ resource: "archived-time-entries",
17328
+ action: "get-get",
17329
+ title: "Get Get Archived Time Entries",
17330
+ description: "Get Get Archived Time Entries.",
17331
+ safety: "read",
17332
+ destructive: false,
17333
+ cli: {
17334
+ group: ["archived-time-entries"],
17335
+ command: "get-get",
17336
+ interactive: "available"
17337
+ },
17338
+ mcp: { entityTool: "archived-time-entries" },
17339
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
17340
+ execute: (input, { client }) => {
17341
+ const data = input;
17342
+ return client.runGeneratedRequest("getArchivedTimeEntry", () => callGeneratedRequest(getArchivedTimeEntry, [
17343
+ client.httpClient,
17344
+ client.organizationId,
17345
+ client.workspaceIdNumber,
17346
+ data.time_entry_id,
17347
+ void 0
17348
+ ]));
17349
+ }
17350
+ },
17172
17351
  {
17173
17352
  id: "focus.attachments.get-workspace-attachment-storage",
17174
17353
  family: "focus",
@@ -30914,4 +31093,4 @@ Common commands:
30914
31093
  //#endregion
30915
31094
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30916
31095
 
30917
- //# sourceMappingURL=program-BklQ8ONG.js.map
31096
+ //# sourceMappingURL=program-loLC8qgy.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-BklQ8ONG.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.76",
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.255",
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",