@togglhq/cli 1.13.209 → 1.13.211

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-DySjHzDI.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-DPMPawwS.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-DySjHzDI.js";
1
+ import { t as createProgram } from "./program-DPMPawwS.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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
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.333_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_346a1d9d17229c4b3a5c875ce913f40d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
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) {
@@ -19754,7 +19763,10 @@ const generatedFocusOperations = [
19754
19763
  params: /* @__PURE__ */ looseObject({
19755
19764
  charts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
19756
19765
  id: /* @__PURE__ */ string$1(),
19757
- layout: /* @__PURE__ */ looseObject({ width: /* @__PURE__ */ number$2() }),
19766
+ layout: /* @__PURE__ */ looseObject({
19767
+ width: /* @__PURE__ */ number$2(),
19768
+ height: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
19769
+ }),
19758
19770
  name: /* @__PURE__ */ string$1(),
19759
19771
  query: /* @__PURE__ */ looseObject({
19760
19772
  aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
@@ -19910,7 +19922,10 @@ const generatedFocusOperations = [
19910
19922
  params: /* @__PURE__ */ looseObject({
19911
19923
  charts: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
19912
19924
  id: /* @__PURE__ */ string$1(),
19913
- layout: /* @__PURE__ */ looseObject({ width: /* @__PURE__ */ number$2() }),
19925
+ layout: /* @__PURE__ */ looseObject({
19926
+ width: /* @__PURE__ */ number$2(),
19927
+ height: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
19928
+ }),
19914
19929
  name: /* @__PURE__ */ string$1(),
19915
19930
  query: /* @__PURE__ */ looseObject({
19916
19931
  aggregations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
@@ -31402,6 +31417,24 @@ const generatedFocusOperations = [
31402
31417
  ]));
31403
31418
  }
31404
31419
  },
31420
+ {
31421
+ id: "focus.users.settings-get-desktop",
31422
+ family: "focus",
31423
+ resource: "users",
31424
+ action: "settings-get-desktop",
31425
+ title: "Settings Get Desktop Users",
31426
+ description: "Settings Get Desktop Users.",
31427
+ safety: "read",
31428
+ destructive: false,
31429
+ cli: {
31430
+ group: ["users", "settings"],
31431
+ command: "get-desktop",
31432
+ interactive: "hidden"
31433
+ },
31434
+ mcp: { entityTool: "users" },
31435
+ inputSchema: /* @__PURE__ */ looseObject({}),
31436
+ execute: (_input, { client }) => client.runGeneratedRequest("getDesktopUserSettings", () => callGeneratedRequest(getDesktopUserSettings, [client.httpClient, void 0]))
31437
+ },
31405
31438
  {
31406
31439
  id: "focus.users.settings-list",
31407
31440
  family: "focus",
@@ -31523,6 +31556,41 @@ const generatedFocusOperations = [
31523
31556
  ]));
31524
31557
  }
31525
31558
  },
31559
+ {
31560
+ id: "focus.users.settings-update-desktop",
31561
+ family: "focus",
31562
+ resource: "users",
31563
+ action: "settings-update-desktop",
31564
+ title: "Settings Update Desktop Users",
31565
+ description: "Settings Update Desktop Users.",
31566
+ safety: "update",
31567
+ destructive: false,
31568
+ cli: {
31569
+ group: ["users", "settings"],
31570
+ command: "update-desktop",
31571
+ interactive: "default"
31572
+ },
31573
+ mcp: { entityTool: "users" },
31574
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ desktop_autotracker_rules: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
31575
+ enabled: /* @__PURE__ */ boolean$1(),
31576
+ id: /* @__PURE__ */ string$1(),
31577
+ keyword: /* @__PURE__ */ string$1(),
31578
+ keyword_mode: /* @__PURE__ */ picklist$1(["contains_phrase", "all_words"]),
31579
+ start_without_asking: /* @__PURE__ */ boolean$1(),
31580
+ stop_when_meeting_ends: /* @__PURE__ */ boolean$1(),
31581
+ trigger: /* @__PURE__ */ picklist$1(["window", "meeting"]),
31582
+ trigger_when_timer_is_running: /* @__PURE__ */ boolean$1(),
31583
+ updated_at: apiDateTimeString
31584
+ }))) }) }),
31585
+ execute: (input, { client }) => {
31586
+ const data = input;
31587
+ return client.runGeneratedRequest("partialUpdateDesktopUserSettings", () => callGeneratedRequest(partialUpdateDesktopUserSettings, [
31588
+ client.httpClient,
31589
+ data.payload ?? data.data ?? data,
31590
+ void 0
31591
+ ]));
31592
+ }
31593
+ },
31526
31594
  {
31527
31595
  id: "focus.users.workspace-settings-list",
31528
31596
  family: "focus",
@@ -33731,4 +33799,4 @@ Common commands:
33731
33799
  //#endregion
33732
33800
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
33733
33801
 
33734
- //# sourceMappingURL=program-DySjHzDI.js.map
33802
+ //# sourceMappingURL=program-DPMPawwS.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DySjHzDI.js";
1
+ import { t as createProgram } from "./program-DPMPawwS.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.209",
3
+ "version": "1.13.211",
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.333",
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",