@togglhq/cli 1.13.209 → 1.13.210
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-BoepSLiL.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-BoepSLiL.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -11126,7 +11126,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11126
11126
|
]))
|
|
11127
11127
|
});
|
|
11128
11128
|
//#endregion
|
|
11129
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11129
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11130
11130
|
async function getInvitations(httpClient, signal) {
|
|
11131
11131
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11132
11132
|
}
|
|
@@ -11143,7 +11143,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11143
11143
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11144
11144
|
}
|
|
11145
11145
|
//#endregion
|
|
11146
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11146
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11147
11147
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11148
11148
|
const searchParams = new URLSearchParams();
|
|
11149
11149
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11155,7 +11155,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11155
11155
|
return searchParams;
|
|
11156
11156
|
}
|
|
11157
11157
|
//#endregion
|
|
11158
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11158
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11159
11159
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11160
11160
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11161
11161
|
}
|
|
@@ -11170,7 +11170,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11170
11170
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11171
11171
|
}
|
|
11172
11172
|
//#endregion
|
|
11173
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11173
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11174
11174
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11175
11175
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11176
11176
|
}
|
|
@@ -11190,7 +11190,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11190
11190
|
});
|
|
11191
11191
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11192
11192
|
//#endregion
|
|
11193
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11193
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11194
11194
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11195
11195
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11196
11196
|
signal,
|
|
@@ -11201,12 +11201,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11201
11201
|
})).json();
|
|
11202
11202
|
}
|
|
11203
11203
|
//#endregion
|
|
11204
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11204
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11205
11205
|
async function getStatus(httpClient, signal) {
|
|
11206
11206
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11207
11207
|
}
|
|
11208
11208
|
//#endregion
|
|
11209
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11209
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11210
11210
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11211
11211
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11212
11212
|
signal,
|
|
@@ -11234,7 +11234,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11234
11234
|
return response.json();
|
|
11235
11235
|
}
|
|
11236
11236
|
//#endregion
|
|
11237
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11237
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.334_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_818b3bb2f79b19e13309102b6331c5da/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11238
11238
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11239
11239
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11240
11240
|
}
|
|
@@ -17486,6 +17486,15 @@ async function partialUpdateUserSettings(httpClient, data, signal) {
|
|
|
17486
17486
|
json: data
|
|
17487
17487
|
})).json();
|
|
17488
17488
|
}
|
|
17489
|
+
async function getDesktopUserSettings(httpClient, signal) {
|
|
17490
|
+
return (await httpClient.get(`users/me/settings/desktop`, { signal })).json();
|
|
17491
|
+
}
|
|
17492
|
+
async function partialUpdateDesktopUserSettings(httpClient, data, signal) {
|
|
17493
|
+
return (await httpClient.patch(`users/me/settings/desktop`, {
|
|
17494
|
+
signal,
|
|
17495
|
+
json: data
|
|
17496
|
+
})).json();
|
|
17497
|
+
}
|
|
17489
17498
|
//#endregion
|
|
17490
17499
|
//#region ../focus-queries/dist/user-workspace-settings/requests.ts
|
|
17491
17500
|
async function getUserWorkspaceSettings(httpClient, workspace_id, signal) {
|
|
@@ -31402,6 +31411,24 @@ const generatedFocusOperations = [
|
|
|
31402
31411
|
]));
|
|
31403
31412
|
}
|
|
31404
31413
|
},
|
|
31414
|
+
{
|
|
31415
|
+
id: "focus.users.settings-get-desktop",
|
|
31416
|
+
family: "focus",
|
|
31417
|
+
resource: "users",
|
|
31418
|
+
action: "settings-get-desktop",
|
|
31419
|
+
title: "Settings Get Desktop Users",
|
|
31420
|
+
description: "Settings Get Desktop Users.",
|
|
31421
|
+
safety: "read",
|
|
31422
|
+
destructive: false,
|
|
31423
|
+
cli: {
|
|
31424
|
+
group: ["users", "settings"],
|
|
31425
|
+
command: "get-desktop",
|
|
31426
|
+
interactive: "hidden"
|
|
31427
|
+
},
|
|
31428
|
+
mcp: { entityTool: "users" },
|
|
31429
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
31430
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getDesktopUserSettings", () => callGeneratedRequest(getDesktopUserSettings, [client.httpClient, void 0]))
|
|
31431
|
+
},
|
|
31405
31432
|
{
|
|
31406
31433
|
id: "focus.users.settings-list",
|
|
31407
31434
|
family: "focus",
|
|
@@ -31523,6 +31550,41 @@ const generatedFocusOperations = [
|
|
|
31523
31550
|
]));
|
|
31524
31551
|
}
|
|
31525
31552
|
},
|
|
31553
|
+
{
|
|
31554
|
+
id: "focus.users.settings-update-desktop",
|
|
31555
|
+
family: "focus",
|
|
31556
|
+
resource: "users",
|
|
31557
|
+
action: "settings-update-desktop",
|
|
31558
|
+
title: "Settings Update Desktop Users",
|
|
31559
|
+
description: "Settings Update Desktop Users.",
|
|
31560
|
+
safety: "update",
|
|
31561
|
+
destructive: false,
|
|
31562
|
+
cli: {
|
|
31563
|
+
group: ["users", "settings"],
|
|
31564
|
+
command: "update-desktop",
|
|
31565
|
+
interactive: "default"
|
|
31566
|
+
},
|
|
31567
|
+
mcp: { entityTool: "users" },
|
|
31568
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ desktop_autotracker_rules: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
31569
|
+
enabled: /* @__PURE__ */ boolean$1(),
|
|
31570
|
+
id: /* @__PURE__ */ string$1(),
|
|
31571
|
+
keyword: /* @__PURE__ */ string$1(),
|
|
31572
|
+
keyword_mode: /* @__PURE__ */ picklist$1(["contains_phrase", "all_words"]),
|
|
31573
|
+
start_without_asking: /* @__PURE__ */ boolean$1(),
|
|
31574
|
+
stop_when_meeting_ends: /* @__PURE__ */ boolean$1(),
|
|
31575
|
+
trigger: /* @__PURE__ */ picklist$1(["window", "meeting"]),
|
|
31576
|
+
trigger_when_timer_is_running: /* @__PURE__ */ boolean$1(),
|
|
31577
|
+
updated_at: apiDateTimeString
|
|
31578
|
+
}))) }) }),
|
|
31579
|
+
execute: (input, { client }) => {
|
|
31580
|
+
const data = input;
|
|
31581
|
+
return client.runGeneratedRequest("partialUpdateDesktopUserSettings", () => callGeneratedRequest(partialUpdateDesktopUserSettings, [
|
|
31582
|
+
client.httpClient,
|
|
31583
|
+
data.payload ?? data.data ?? data,
|
|
31584
|
+
void 0
|
|
31585
|
+
]));
|
|
31586
|
+
}
|
|
31587
|
+
},
|
|
31526
31588
|
{
|
|
31527
31589
|
id: "focus.users.workspace-settings-list",
|
|
31528
31590
|
family: "focus",
|
|
@@ -33731,4 +33793,4 @@ Common commands:
|
|
|
33731
33793
|
//#endregion
|
|
33732
33794
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
33733
33795
|
|
|
33734
|
-
//# sourceMappingURL=program-
|
|
33796
|
+
//# sourceMappingURL=program-BoepSLiL.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-BoepSLiL.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.210",
|
|
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.334",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|