@togglhq/cli 1.13.249 → 1.13.251

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-DWRWoXyw.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-DWeS4szo.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-DWRWoXyw.js";
1
+ import { t as createProgram } from "./program-DWeS4szo.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",
@@ -31681,6 +31718,7 @@ const generatedFocusOperations = [
31681
31718
  shortcuts_enabled: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31682
31719
  show_goals_panel: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31683
31720
  show_google_calendar_events: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31721
+ slack_daily_brief: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31684
31722
  start_week_on: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
31685
31723
  switch_to_focus_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
31686
31724
  sync_external_calendar: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
@@ -33964,4 +34002,4 @@ Common commands:
33964
34002
  //#endregion
33965
34003
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
33966
34004
 
33967
- //# sourceMappingURL=program-DWRWoXyw.js.map
34005
+ //# sourceMappingURL=program-DWeS4szo.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DWRWoXyw.js";
1
+ import { t as createProgram } from "./program-DWeS4szo.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.249",
3
+ "version": "1.13.251",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",