@togglhq/cli 1.11.158 → 1.11.159

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-CiilyFWs.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-q_P5Km6C.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-CiilyFWs.js";
1
+ import { t as createProgram } from "./program-q_P5Km6C.js";
2
2
  export { createProgram };
@@ -7816,8 +7816,7 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
7816
7816
  work_role_id: /* @__PURE__ */ number(),
7817
7817
  workspace_user_id: /* @__PURE__ */ number()
7818
7818
  })),
7819
- custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
7820
- has_calendar_integration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("HasCalendarIntegration is true when the member has a calendar connected in Focus. The field is present only when the request sets include_calendar_integration to true and the calendar lookup succeeded. The field is absent when the lookup failed. Absent means unknown. It does not mean false. A member who connected a calendar in another product stays false here until they open the Focus calendar integrations page.")))
7819
+ custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema))
7821
7820
  });
7822
7821
  const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
7823
7822
  const ProjectBulkRestorePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
@@ -9913,7 +9912,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
9913
9912
  })
9914
9913
  }).json();
9915
9914
  }
9916
- async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
9915
+ async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields } = {}, signal) {
9917
9916
  const response = await httpClient.get(`organizations/${organization_id}/users`, {
9918
9917
  signal,
9919
9918
  searchParams: buildSearchParams$2({
@@ -9935,8 +9934,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
9935
9934
  pinned_ids,
9936
9935
  has_group,
9937
9936
  cf_filter,
9938
- include_custom_fields,
9939
- include_calendar_integration
9937
+ include_custom_fields
9940
9938
  }, true)
9941
9939
  });
9942
9940
  return withResponseMeta(await response.json(), response.headers, response.status);
@@ -15125,9 +15123,6 @@ async function dismissATemplateEstimateSuggestion(httpClient, organization_id, w
15125
15123
  }
15126
15124
  //#endregion
15127
15125
  //#region ../focus-queries/dist/reports/requests.ts
15128
- async function getForecastAvailability(httpClient, workspace_id, signal) {
15129
- return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
15130
- }
15131
15126
  async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
15132
15127
  return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
15133
15128
  signal,
@@ -15573,21 +15568,6 @@ async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal
15573
15568
  }).json();
15574
15569
  }
15575
15570
  //#endregion
15576
- //#region ../focus-queries/dist/time-entry-groups/requests.ts
15577
- async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
15578
- return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
15579
- signal,
15580
- searchParams: buildSearchParams$2({
15581
- start_date,
15582
- end_date,
15583
- user_id,
15584
- page,
15585
- per_page,
15586
- order_by
15587
- })
15588
- }).json();
15589
- }
15590
- //#endregion
15591
15571
  //#region ../focus-queries/dist/time-off/requests.ts
15592
15572
  async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
15593
15573
  return await httpClient.get(`organizations/${organization_id}/timeoff`, {
@@ -17058,13 +17038,6 @@ const generatedFocusOperations = [
17058
17038
  icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17059
17039
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
17060
17040
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17061
- recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
17062
- "daily",
17063
- "weekly",
17064
- "daily_workdays",
17065
- "monthly"
17066
- ])),
17067
- start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
17068
17041
  tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
17069
17042
  target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
17070
17043
  task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
@@ -20638,28 +20611,6 @@ const generatedFocusOperations = [
20638
20611
  ]));
20639
20612
  }
20640
20613
  },
20641
- {
20642
- id: "focus.reports.get-forecast-availability",
20643
- family: "focus",
20644
- resource: "reports",
20645
- action: "get-forecast-availability",
20646
- title: "Get Forecast Availability Reports",
20647
- description: "Get Forecast Availability Reports.",
20648
- safety: "read",
20649
- destructive: false,
20650
- cli: {
20651
- group: ["reports"],
20652
- command: "get-forecast-availability",
20653
- interactive: "hidden"
20654
- },
20655
- mcp: { entityTool: "reports" },
20656
- inputSchema: /* @__PURE__ */ looseObject({}),
20657
- execute: (_input, { client }) => client.runGeneratedRequest("getForecastAvailability", () => callGeneratedRequest(getForecastAvailability, [
20658
- client.httpClient,
20659
- client.workspaceIdNumber,
20660
- void 0
20661
- ]))
20662
- },
20663
20614
  {
20664
20615
  id: "focus.reports.get-profitability",
20665
20616
  family: "focus",
@@ -24320,40 +24271,6 @@ const generatedFocusOperations = [
24320
24271
  ]));
24321
24272
  }
24322
24273
  },
24323
- {
24324
- id: "focus.time-entries.groups-get-users",
24325
- family: "focus",
24326
- resource: "time-entries",
24327
- action: "groups-get-users",
24328
- title: "Groups Get Users Time Entries",
24329
- description: "Groups Get Users Time Entries.",
24330
- safety: "read",
24331
- destructive: false,
24332
- cli: {
24333
- group: ["time-entries", "groups"],
24334
- command: "get-users",
24335
- interactive: "hidden"
24336
- },
24337
- mcp: { entityTool: "time-entries" },
24338
- inputSchema: /* @__PURE__ */ looseObject({
24339
- end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
24340
- order_by: /* @__PURE__ */ unknown$1(),
24341
- page: /* @__PURE__ */ number$2(),
24342
- per_page: /* @__PURE__ */ unknown$1(),
24343
- start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
24344
- user_id: /* @__PURE__ */ number$2()
24345
- }),
24346
- execute: (input, { client }) => {
24347
- const data = input;
24348
- return client.runGeneratedRequest("getTimeEntryGroupsUsersClassic", () => callGeneratedRequest(getTimeEntryGroupsUsersClassic, [
24349
- client.httpClient,
24350
- client.organizationId,
24351
- client.workspaceIdNumber,
24352
- data,
24353
- void 0
24354
- ]));
24355
- }
24356
- },
24357
24274
  {
24358
24275
  id: "focus.time-entries.list",
24359
24276
  family: "focus",
@@ -27914,4 +27831,4 @@ Common commands:
27914
27831
  //#endregion
27915
27832
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
27916
27833
 
27917
- //# sourceMappingURL=program-CiilyFWs.js.map
27834
+ //# sourceMappingURL=program-q_P5Km6C.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CiilyFWs.js";
1
+ import { t as createProgram } from "./program-q_P5Km6C.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.11.158",
3
+ "version": "1.11.159",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",