@togglhq/cli 1.13.76 → 1.13.77

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-CdV-YKPL.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-CdV-YKPL.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.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
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.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
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.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
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.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
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.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
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.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
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.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
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.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
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
  }
@@ -15000,6 +15001,9 @@ async function getArchivedTimeEntriesClassic(httpClient, organization_id, worksp
15000
15001
  })
15001
15002
  }).json();
15002
15003
  }
15004
+ async function getArchivedTimeEntry(httpClient, organization_id, workspace_id, time_entry_id, signal) {
15005
+ return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal }).json();
15006
+ }
15003
15007
  //#endregion
15004
15008
  //#region ../focus-queries/dist/attachments/requests.ts
15005
15009
  async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
@@ -17169,6 +17173,33 @@ const generatedFocusOperations = [
17169
17173
  ]));
17170
17174
  }
17171
17175
  },
17176
+ {
17177
+ id: "focus.archived-time-entries.get-get",
17178
+ family: "focus",
17179
+ resource: "archived-time-entries",
17180
+ action: "get-get",
17181
+ title: "Get Get Archived Time Entries",
17182
+ description: "Get Get Archived Time Entries.",
17183
+ safety: "read",
17184
+ destructive: false,
17185
+ cli: {
17186
+ group: ["archived-time-entries"],
17187
+ command: "get-get",
17188
+ interactive: "available"
17189
+ },
17190
+ mcp: { entityTool: "archived-time-entries" },
17191
+ inputSchema: /* @__PURE__ */ looseObject({ time_entry_id: /* @__PURE__ */ number$2() }),
17192
+ execute: (input, { client }) => {
17193
+ const data = input;
17194
+ return client.runGeneratedRequest("getArchivedTimeEntry", () => callGeneratedRequest(getArchivedTimeEntry, [
17195
+ client.httpClient,
17196
+ client.organizationId,
17197
+ client.workspaceIdNumber,
17198
+ data.time_entry_id,
17199
+ void 0
17200
+ ]));
17201
+ }
17202
+ },
17172
17203
  {
17173
17204
  id: "focus.attachments.get-workspace-attachment-storage",
17174
17205
  family: "focus",
@@ -30914,4 +30945,4 @@ Common commands:
30914
30945
  //#endregion
30915
30946
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30916
30947
 
30917
- //# sourceMappingURL=program-BklQ8ONG.js.map
30948
+ //# sourceMappingURL=program-CdV-YKPL.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-CdV-YKPL.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.77",
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.257",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",