@togglhq/cli 1.13.52 → 1.13.54

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-C0eK2cN0.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-DXNjWplq.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-C0eK2cN0.js";
1
+ import { t as createProgram } from "./program-DXNjWplq.js";
2
2
  export { createProgram };
@@ -9963,6 +9963,12 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
9963
9963
  async function updateOrganizationUserActiveStatus(httpClient, organization_id, organization_user_id, status, signal) {
9964
9964
  return await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal }).json();
9965
9965
  }
9966
+ async function createWorkspaceInvitations(httpClient, organization_id, workspace_id, data, signal) {
9967
+ return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/invitations`, {
9968
+ signal,
9969
+ json: data
9970
+ }).json();
9971
+ }
9966
9972
  //#endregion
9967
9973
  //#region ../focus-queries/out/utils/requests.js
9968
9974
  function buildSearchParams$1(params, flattenArrays = false) {
@@ -10909,7 +10915,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10909
10915
  ]))
10910
10916
  });
10911
10917
  //#endregion
10912
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10918
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10913
10919
  async function getInvitations(httpClient, signal) {
10914
10920
  return (await httpClient.get(`invitations`, { signal })).json();
10915
10921
  }
@@ -10926,7 +10932,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10926
10932
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10927
10933
  }
10928
10934
  //#endregion
10929
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10935
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10930
10936
  function buildSearchParams(params, flattenArrays = false) {
10931
10937
  const searchParams = new URLSearchParams();
10932
10938
  Object.entries(params).forEach(([key, value]) => {
@@ -10938,7 +10944,7 @@ function buildSearchParams(params, flattenArrays = false) {
10938
10944
  return searchParams;
10939
10945
  }
10940
10946
  //#endregion
10941
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10947
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10942
10948
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10943
10949
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10944
10950
  }
@@ -10952,7 +10958,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10952
10958
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10953
10959
  }
10954
10960
  //#endregion
10955
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10961
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10956
10962
  async function getWorkspaces(httpClient, organization_id, signal) {
10957
10963
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10958
10964
  }
@@ -10972,7 +10978,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10972
10978
  });
10973
10979
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10974
10980
  //#endregion
10975
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10981
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10976
10982
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
10977
10983
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
10978
10984
  signal,
@@ -10983,12 +10989,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
10983
10989
  })).json();
10984
10990
  }
10985
10991
  //#endregion
10986
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10992
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10987
10993
  async function getStatus(httpClient, signal) {
10988
10994
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10989
10995
  }
10990
10996
  //#endregion
10991
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10997
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10992
10998
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10993
10999
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10994
11000
  signal,
@@ -11016,7 +11022,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
11016
11022
  return response.json();
11017
11023
  }
11018
11024
  //#endregion
11019
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.245_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_60e07bb58dc3fa5bf96f85332219a3d9/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11025
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.246_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_d1e5a052793062459eda2e2506e8660a/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11020
11026
  async function getMyWorkingHours(httpClient, organization_id, signal) {
11021
11027
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
11022
11028
  }
@@ -18766,6 +18772,36 @@ const generatedFocusOperations = [
18766
18772
  ]));
18767
18773
  }
18768
18774
  },
18775
+ {
18776
+ id: "focus.organization.create-workspace-invitations",
18777
+ family: "focus",
18778
+ resource: "organization",
18779
+ action: "create-workspace-invitations",
18780
+ title: "Create Workspace Invitations Organization",
18781
+ description: "Create Workspace Invitations Organization.",
18782
+ safety: "create",
18783
+ destructive: false,
18784
+ cli: {
18785
+ group: ["organization"],
18786
+ command: "create-workspace-invitations",
18787
+ interactive: "default"
18788
+ },
18789
+ mcp: { entityTool: "organization" },
18790
+ inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
18791
+ emails: /* @__PURE__ */ array$1(/* @__PURE__ */ string$1()),
18792
+ focus_role_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
18793
+ }) }),
18794
+ execute: (input, { client }) => {
18795
+ const data = input;
18796
+ return client.runGeneratedRequest("createWorkspaceInvitations", () => callGeneratedRequest(createWorkspaceInvitations, [
18797
+ client.httpClient,
18798
+ client.organizationId,
18799
+ client.workspaceIdNumber,
18800
+ data.payload ?? data.data ?? data,
18801
+ void 0
18802
+ ]));
18803
+ }
18804
+ },
18769
18805
  {
18770
18806
  id: "focus.organization.delete-group",
18771
18807
  family: "focus",
@@ -30231,4 +30267,4 @@ Common commands:
30231
30267
  //#endregion
30232
30268
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30233
30269
 
30234
- //# sourceMappingURL=program-C0eK2cN0.js.map
30270
+ //# sourceMappingURL=program-DXNjWplq.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C0eK2cN0.js";
1
+ import { t as createProgram } from "./program-DXNjWplq.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.52",
3
+ "version": "1.13.54",
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.245",
59
+ "@toggl/queries": "2.2.246",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",