@togglhq/cli 1.13.248 → 1.13.250

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-C9aMHm_P.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-DdkN9F3I.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-C9aMHm_P.js";
1
+ import { t as createProgram } from "./program-DdkN9F3I.js";
2
2
  export { createProgram };
@@ -15604,6 +15604,12 @@ async function getArchivedTimeEntriesClassic(httpClient, organization_id, worksp
15604
15604
  async function getArchivedTimeEntry(httpClient, organization_id, workspace_id, time_entry_id, signal) {
15605
15605
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}`, { signal })).json();
15606
15606
  }
15607
+ async function restoreArchivedTimeEntry(httpClient, organization_id, workspace_id, time_entry_id, data, signal) {
15608
+ return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/archived/time-entries/${time_entry_id}/restore`, {
15609
+ signal,
15610
+ json: data
15611
+ })).json();
15612
+ }
15607
15613
  //#endregion
15608
15614
  //#region ../focus-queries/dist/attachments/requests.ts
15609
15615
  async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
@@ -18830,6 +18836,37 @@ const generatedFocusOperations = [
18830
18836
  ]));
18831
18837
  }
18832
18838
  },
18839
+ {
18840
+ id: "focus.archived-time-entries.restore",
18841
+ family: "focus",
18842
+ resource: "archived-time-entries",
18843
+ action: "restore",
18844
+ title: "Restore Archived Time Entries",
18845
+ description: "Restore Archived Time Entries.",
18846
+ safety: "update",
18847
+ destructive: false,
18848
+ cli: {
18849
+ group: ["archived-time-entries"],
18850
+ command: "restore",
18851
+ interactive: "default"
18852
+ },
18853
+ mcp: { entityTool: "archived-time-entries" },
18854
+ inputSchema: /* @__PURE__ */ looseObject({
18855
+ payload: /* @__PURE__ */ looseObject({ request_id: /* @__PURE__ */ string$1() }),
18856
+ time_entry_id: /* @__PURE__ */ number$2()
18857
+ }),
18858
+ execute: (input, { client }) => {
18859
+ const data = input;
18860
+ return client.runGeneratedRequest("restoreArchivedTimeEntry", () => callGeneratedRequest(restoreArchivedTimeEntry, [
18861
+ client.httpClient,
18862
+ client.organizationId,
18863
+ client.workspaceIdNumber,
18864
+ data.time_entry_id,
18865
+ data.payload ?? data.data ?? data,
18866
+ void 0
18867
+ ]));
18868
+ }
18869
+ },
18833
18870
  {
18834
18871
  id: "focus.attachments.get-workspace-attachment-storage",
18835
18872
  family: "focus",
@@ -31730,17 +31767,23 @@ const generatedFocusOperations = [
31730
31767
  interactive: "default"
31731
31768
  },
31732
31769
  mcp: { entityTool: "users" },
31733
- inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ desktop_autotracker_rules: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
31734
- enabled: /* @__PURE__ */ boolean$1(),
31735
- id: /* @__PURE__ */ string$1(),
31736
- keyword: /* @__PURE__ */ string$1(),
31737
- keyword_mode: /* @__PURE__ */ picklist$1(["contains_phrase", "all_words"]),
31738
- start_without_asking: /* @__PURE__ */ boolean$1(),
31739
- stop_when_meeting_ends: /* @__PURE__ */ boolean$1(),
31740
- trigger: /* @__PURE__ */ picklist$1(["window", "meeting"]),
31741
- trigger_when_timer_is_running: /* @__PURE__ */ boolean$1(),
31742
- updated_at: apiDateTimeString
31743
- }))) }) }),
31770
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
31771
+ desktop_autotracker_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31772
+ desktop_autotracker_focus_duration_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31773
+ desktop_autotracker_focus_duration_secs: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
31774
+ desktop_autotracker_rules: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
31775
+ enabled: /* @__PURE__ */ boolean$1(),
31776
+ id: /* @__PURE__ */ string$1(),
31777
+ keyword: /* @__PURE__ */ string$1(),
31778
+ keyword_mode: /* @__PURE__ */ picklist$1(["contains_phrase", "all_words"]),
31779
+ start_without_asking: /* @__PURE__ */ boolean$1(),
31780
+ stop_when_meeting_ends: /* @__PURE__ */ boolean$1(),
31781
+ trigger: /* @__PURE__ */ picklist$1(["window", "meeting"]),
31782
+ trigger_when_timer_is_running: /* @__PURE__ */ boolean$1(),
31783
+ updated_at: apiDateTimeString
31784
+ }))),
31785
+ desktop_autotracker_stop_on_no_match: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
31786
+ }) }),
31744
31787
  execute: (input, { client }) => {
31745
31788
  const data = input;
31746
31789
  return client.runGeneratedRequest("partialUpdateDesktopUserSettings", () => callGeneratedRequest(partialUpdateDesktopUserSettings, [
@@ -33958,4 +34001,4 @@ Common commands:
33958
34001
  //#endregion
33959
34002
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
33960
34003
 
33961
- //# sourceMappingURL=program-C9aMHm_P.js.map
34004
+ //# sourceMappingURL=program-DdkN9F3I.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C9aMHm_P.js";
1
+ import { t as createProgram } from "./program-DdkN9F3I.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.248",
3
+ "version": "1.13.250",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",