@togglhq/cli 1.11.6 → 1.11.8
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-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-sj9X_HG1.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-sj9X_HG1.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10993,7 +10993,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10993
10993
|
]))
|
|
10994
10994
|
});
|
|
10995
10995
|
//#endregion
|
|
10996
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10996
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10997
10997
|
async function getInvitations(httpClient, signal) {
|
|
10998
10998
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10999
10999
|
}
|
|
@@ -11010,7 +11010,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11010
11010
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11011
11011
|
}
|
|
11012
11012
|
//#endregion
|
|
11013
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11013
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11014
11014
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11015
11015
|
const searchParams = new URLSearchParams();
|
|
11016
11016
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11022,7 +11022,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11022
11022
|
return searchParams;
|
|
11023
11023
|
}
|
|
11024
11024
|
//#endregion
|
|
11025
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11025
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11026
11026
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11027
11027
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11028
11028
|
}
|
|
@@ -11036,7 +11036,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11036
11036
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11037
11037
|
}
|
|
11038
11038
|
//#endregion
|
|
11039
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11039
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11040
11040
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11041
11041
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11042
11042
|
}
|
|
@@ -11056,7 +11056,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11056
11056
|
});
|
|
11057
11057
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11058
11058
|
//#endregion
|
|
11059
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11059
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11060
11060
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11061
11061
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11062
11062
|
signal,
|
|
@@ -11067,12 +11067,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11067
11067
|
})).json();
|
|
11068
11068
|
}
|
|
11069
11069
|
//#endregion
|
|
11070
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11070
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11071
11071
|
async function getStatus(httpClient, signal) {
|
|
11072
11072
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11073
11073
|
}
|
|
11074
11074
|
//#endregion
|
|
11075
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11075
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11076
11076
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11077
11077
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11078
11078
|
signal,
|
|
@@ -11100,7 +11100,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11100
11100
|
return response.json();
|
|
11101
11101
|
}
|
|
11102
11102
|
//#endregion
|
|
11103
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11103
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.22_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_cd28a08b37a2ee2257b3618dd6814d64/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11104
11104
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11105
11105
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11106
11106
|
}
|
|
@@ -15937,6 +15937,12 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
|
|
|
15937
15937
|
}
|
|
15938
15938
|
//#endregion
|
|
15939
15939
|
//#region ../focus-queries/dist/user-settings/requests.ts
|
|
15940
|
+
async function emailUnsubscribePage(httpClient, token, signal) {
|
|
15941
|
+
return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
|
|
15942
|
+
}
|
|
15943
|
+
async function emailUnsubscribe(httpClient, token, signal) {
|
|
15944
|
+
return await httpClient.post(`email/unsubscribe/${token}`, { signal }).json();
|
|
15945
|
+
}
|
|
15940
15946
|
async function getUserSettings(httpClient, signal) {
|
|
15941
15947
|
return await httpClient.get(`users/me/settings`, { signal }).json();
|
|
15942
15948
|
}
|
|
@@ -25999,6 +26005,56 @@ const generatedFocusOperations = [
|
|
|
25999
26005
|
return client.listOrgUsers(data);
|
|
26000
26006
|
}
|
|
26001
26007
|
},
|
|
26008
|
+
{
|
|
26009
|
+
id: "focus.users.settings-email-unsubscribe",
|
|
26010
|
+
family: "focus",
|
|
26011
|
+
resource: "users",
|
|
26012
|
+
action: "settings-email-unsubscribe",
|
|
26013
|
+
title: "Settings Email Unsubscribe Users",
|
|
26014
|
+
description: "Settings Email Unsubscribe Users.",
|
|
26015
|
+
safety: "update",
|
|
26016
|
+
destructive: false,
|
|
26017
|
+
cli: {
|
|
26018
|
+
group: ["users", "settings"],
|
|
26019
|
+
command: "email-unsubscribe",
|
|
26020
|
+
interactive: "default"
|
|
26021
|
+
},
|
|
26022
|
+
mcp: { entityTool: "users" },
|
|
26023
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
26024
|
+
execute: (input, { client }) => {
|
|
26025
|
+
const data = input;
|
|
26026
|
+
return client.runGeneratedRequest("emailUnsubscribe", () => callGeneratedRequest(emailUnsubscribe, [
|
|
26027
|
+
client.httpClient,
|
|
26028
|
+
data.token,
|
|
26029
|
+
void 0
|
|
26030
|
+
]));
|
|
26031
|
+
}
|
|
26032
|
+
},
|
|
26033
|
+
{
|
|
26034
|
+
id: "focus.users.settings-email-unsubscribe-page",
|
|
26035
|
+
family: "focus",
|
|
26036
|
+
resource: "users",
|
|
26037
|
+
action: "settings-email-unsubscribe-page",
|
|
26038
|
+
title: "Settings Email Unsubscribe Page Users",
|
|
26039
|
+
description: "Settings Email Unsubscribe Page Users.",
|
|
26040
|
+
safety: "read",
|
|
26041
|
+
destructive: false,
|
|
26042
|
+
cli: {
|
|
26043
|
+
group: ["users", "settings"],
|
|
26044
|
+
command: "email-unsubscribe-page",
|
|
26045
|
+
interactive: "available"
|
|
26046
|
+
},
|
|
26047
|
+
mcp: { entityTool: "users" },
|
|
26048
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
26049
|
+
execute: (input, { client }) => {
|
|
26050
|
+
const data = input;
|
|
26051
|
+
return client.runGeneratedRequest("emailUnsubscribePage", () => callGeneratedRequest(emailUnsubscribePage, [
|
|
26052
|
+
client.httpClient,
|
|
26053
|
+
data.token,
|
|
26054
|
+
void 0
|
|
26055
|
+
]));
|
|
26056
|
+
}
|
|
26057
|
+
},
|
|
26002
26058
|
{
|
|
26003
26059
|
id: "focus.users.settings-list",
|
|
26004
26060
|
family: "focus",
|
|
@@ -28109,4 +28165,4 @@ Common commands:
|
|
|
28109
28165
|
//#endregion
|
|
28110
28166
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
28111
28167
|
|
|
28112
|
-
//# sourceMappingURL=program-
|
|
28168
|
+
//# sourceMappingURL=program-sj9X_HG1.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-sj9X_HG1.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.8",
|
|
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.22",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|