@togglhq/cli 1.13.3 → 1.13.5
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 +1 -1
- package/build/index.js +1 -1
- package/build/{program-URZBr_aV.js → program-KE-qijQG.js} +35 -10
- package/build/program.js +1 -1
- package/package.json +2 -2
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-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-KE-qijQG.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-
|
|
1
|
+
import { t as createProgram } from "./program-KE-qijQG.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10621,6 +10621,9 @@ async function unarchiveTask(httpClient, organization_id, workspace_id, task_id,
|
|
|
10621
10621
|
}
|
|
10622
10622
|
//#endregion
|
|
10623
10623
|
//#region ../focus-queries/dist/time-entries/requests.ts
|
|
10624
|
+
async function getOrganizationTimeEntryPresence(httpClient, organization_id, signal) {
|
|
10625
|
+
return await httpClient.get(`organizations/${organization_id}/time-entries/presence`, { signal }).json();
|
|
10626
|
+
}
|
|
10624
10627
|
async function getTaskTimeEntriesWithOrgClassic(httpClient, organization_id, workspace_id, task_id, { page, per_page, order_by, type, archived, include_subtasks } = {}, signal) {
|
|
10625
10628
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/time-entries`, {
|
|
10626
10629
|
signal,
|
|
@@ -10872,7 +10875,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10872
10875
|
]))
|
|
10873
10876
|
});
|
|
10874
10877
|
//#endregion
|
|
10875
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10878
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10876
10879
|
async function getInvitations(httpClient, signal) {
|
|
10877
10880
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10878
10881
|
}
|
|
@@ -10889,7 +10892,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10889
10892
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10890
10893
|
}
|
|
10891
10894
|
//#endregion
|
|
10892
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10895
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10893
10896
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10894
10897
|
const searchParams = new URLSearchParams();
|
|
10895
10898
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10901,7 +10904,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10901
10904
|
return searchParams;
|
|
10902
10905
|
}
|
|
10903
10906
|
//#endregion
|
|
10904
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10907
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10905
10908
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10906
10909
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10907
10910
|
}
|
|
@@ -10915,7 +10918,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10915
10918
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10916
10919
|
}
|
|
10917
10920
|
//#endregion
|
|
10918
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10921
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10919
10922
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10920
10923
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10921
10924
|
}
|
|
@@ -10935,7 +10938,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10935
10938
|
});
|
|
10936
10939
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10937
10940
|
//#endregion
|
|
10938
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10941
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10939
10942
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10940
10943
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10941
10944
|
signal,
|
|
@@ -10946,12 +10949,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10946
10949
|
})).json();
|
|
10947
10950
|
}
|
|
10948
10951
|
//#endregion
|
|
10949
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10952
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10950
10953
|
async function getStatus(httpClient, signal) {
|
|
10951
10954
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10952
10955
|
}
|
|
10953
10956
|
//#endregion
|
|
10954
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10957
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10955
10958
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10956
10959
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10957
10960
|
signal,
|
|
@@ -10979,7 +10982,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10979
10982
|
return response.json();
|
|
10980
10983
|
}
|
|
10981
10984
|
//#endregion
|
|
10982
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10985
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.195_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a8e5c0ba64108b62eac194a9a19a0127/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10983
10986
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10984
10987
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10985
10988
|
}
|
|
@@ -12247,7 +12250,7 @@ async function resolveApiTokenIdentity(options) {
|
|
|
12247
12250
|
organizationId = hostedMcpOrganizationId;
|
|
12248
12251
|
organizationSource = "api";
|
|
12249
12252
|
} else throw new ApiTokenAuthError(`Could not determine the organization for workspace ${workspaceId}: API keys cannot list organizations. Set ${TOGGL_ORGANIZATION_ID_ENV} (app URLs read focus.toggl.com/<organization_id>/workspaces/<workspace_id>/…).`);
|
|
12250
|
-
const probe = await getJson(`${api}/organizations/${organizationId}/workspaces/${workspaceId}/
|
|
12253
|
+
const probe = await getJson(`${api}/organizations/${organizationId}/workspaces/${workspaceId}/projects?per_page=1`, token, options);
|
|
12251
12254
|
if (probe.status === 401) throw new ApiTokenAuthError(INVALID_KEY_MESSAGE, 401);
|
|
12252
12255
|
if (probe.status === 403 || probe.status === 404) throw new ApiTokenAuthError(`This API key has no access to workspace ${workspaceId} in organization ${organizationId}. Check ${TOGGL_ORGANIZATION_ID_ENV} and ${TOGGL_WORKSPACE_ID_ENV}.`, probe.status);
|
|
12253
12256
|
if (probe.status >= 400) throw new ApiTokenAuthError(`Could not verify access to workspace ${workspaceId} in organization ${organizationId} (${probe.status}).`, probe.status);
|
|
@@ -25061,6 +25064,28 @@ const generatedFocusOperations = [
|
|
|
25061
25064
|
]));
|
|
25062
25065
|
}
|
|
25063
25066
|
},
|
|
25067
|
+
{
|
|
25068
|
+
id: "focus.time-entries.get-organization-time-entry-presence",
|
|
25069
|
+
family: "focus",
|
|
25070
|
+
resource: "time-entries",
|
|
25071
|
+
action: "get-organization-time-entry-presence",
|
|
25072
|
+
title: "Get Organization Time Entry Presence Time Entries",
|
|
25073
|
+
description: "Get Organization Time Entry Presence Time Entries.",
|
|
25074
|
+
safety: "read",
|
|
25075
|
+
destructive: false,
|
|
25076
|
+
cli: {
|
|
25077
|
+
group: ["time-entries"],
|
|
25078
|
+
command: "get-organization-time-entry-presence",
|
|
25079
|
+
interactive: "hidden"
|
|
25080
|
+
},
|
|
25081
|
+
mcp: { entityTool: "time-entries" },
|
|
25082
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
25083
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getOrganizationTimeEntryPresence", () => callGeneratedRequest(getOrganizationTimeEntryPresence, [
|
|
25084
|
+
client.httpClient,
|
|
25085
|
+
client.organizationId,
|
|
25086
|
+
void 0
|
|
25087
|
+
]))
|
|
25088
|
+
},
|
|
25064
25089
|
{
|
|
25065
25090
|
id: "focus.time-entries.get-stream-time-entries-range",
|
|
25066
25091
|
family: "focus",
|
|
@@ -29659,4 +29684,4 @@ Common commands:
|
|
|
29659
29684
|
//#endregion
|
|
29660
29685
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29661
29686
|
|
|
29662
|
-
//# sourceMappingURL=program-
|
|
29687
|
+
//# sourceMappingURL=program-KE-qijQG.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-KE-qijQG.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.5",
|
|
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.
|
|
59
|
+
"@toggl/queries": "2.2.195",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|