@togglhq/cli 1.5.67 → 1.5.69
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 +1 -1
- package/build/index.js +1 -1
- package/build/{program-Dys0iFGT.js → program-BnP1XwLR.js} +42 -10
- package/build/program.js +1 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as CommanderError, t as createProgram } from "./program-
|
|
2
|
+
import { n as CommanderError, t as createProgram } from "./program-BnP1XwLR.js";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
try {
|
|
5
5
|
await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-BnP1XwLR.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -9646,6 +9646,12 @@ async function updateOrganizationGroupUserRole(httpClient, organization_id, grou
|
|
|
9646
9646
|
json: data
|
|
9647
9647
|
}).json();
|
|
9648
9648
|
}
|
|
9649
|
+
async function getOrganizationMemberTags(httpClient, organization_id, { workspace_id }, signal) {
|
|
9650
|
+
return await httpClient.get(`organizations/${organization_id}/member-tags`, {
|
|
9651
|
+
signal,
|
|
9652
|
+
searchParams: buildSearchParams$3({ workspace_id })
|
|
9653
|
+
}).json();
|
|
9654
|
+
}
|
|
9649
9655
|
async function getOrganizationRoles(httpClient, organization_id, signal) {
|
|
9650
9656
|
return await httpClient.get(`organizations/${organization_id}/roles`, { signal }).json();
|
|
9651
9657
|
}
|
|
@@ -10607,7 +10613,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10607
10613
|
]))
|
|
10608
10614
|
});
|
|
10609
10615
|
//#endregion
|
|
10610
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10616
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10611
10617
|
async function getInvitations(httpClient, signal) {
|
|
10612
10618
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10613
10619
|
}
|
|
@@ -10624,7 +10630,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10624
10630
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10625
10631
|
}
|
|
10626
10632
|
//#endregion
|
|
10627
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10633
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10628
10634
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
10629
10635
|
const searchParams = new URLSearchParams();
|
|
10630
10636
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10636,7 +10642,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
10636
10642
|
return searchParams;
|
|
10637
10643
|
}
|
|
10638
10644
|
//#endregion
|
|
10639
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10645
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10640
10646
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10641
10647
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10642
10648
|
}
|
|
@@ -10650,7 +10656,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10650
10656
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10651
10657
|
}
|
|
10652
10658
|
//#endregion
|
|
10653
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10659
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10654
10660
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10655
10661
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10656
10662
|
}
|
|
@@ -10679,7 +10685,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10679
10685
|
});
|
|
10680
10686
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10681
10687
|
//#endregion
|
|
10682
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10688
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
10683
10689
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
10684
10690
|
function withResponseMeta(data, headers, status) {
|
|
10685
10691
|
if (!data) return data;
|
|
@@ -10706,7 +10712,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10706
10712
|
return searchParams;
|
|
10707
10713
|
}
|
|
10708
10714
|
//#endregion
|
|
10709
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10715
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
10710
10716
|
async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
10711
10717
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
10712
10718
|
signal,
|
|
@@ -10715,12 +10721,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
|
10715
10721
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
10716
10722
|
}
|
|
10717
10723
|
//#endregion
|
|
10718
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10724
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10719
10725
|
async function getStatus(httpClient, signal) {
|
|
10720
10726
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10721
10727
|
}
|
|
10722
10728
|
//#endregion
|
|
10723
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10729
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10724
10730
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10725
10731
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10726
10732
|
signal,
|
|
@@ -10748,7 +10754,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10748
10754
|
return response.json();
|
|
10749
10755
|
}
|
|
10750
10756
|
//#endregion
|
|
10751
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.
|
|
10757
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.8_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_d53b15a49a0f47b612fb5d5b159551c2/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10752
10758
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10753
10759
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10754
10760
|
}
|
|
@@ -16463,6 +16469,32 @@ const generatedFocusOperations = [
|
|
|
16463
16469
|
]));
|
|
16464
16470
|
}
|
|
16465
16471
|
},
|
|
16472
|
+
{
|
|
16473
|
+
id: "focus.organization.get-member-tags",
|
|
16474
|
+
family: "focus",
|
|
16475
|
+
resource: "organization",
|
|
16476
|
+
action: "get-member-tags",
|
|
16477
|
+
title: "Get Member Tags Organization",
|
|
16478
|
+
description: "Get Member Tags Organization.",
|
|
16479
|
+
safety: "read",
|
|
16480
|
+
destructive: false,
|
|
16481
|
+
cli: {
|
|
16482
|
+
group: ["organization"],
|
|
16483
|
+
command: "get-member-tags",
|
|
16484
|
+
interactive: "available"
|
|
16485
|
+
},
|
|
16486
|
+
mcp: { entityTool: "organization" },
|
|
16487
|
+
inputSchema: /* @__PURE__ */ looseObject({ workspace_id: /* @__PURE__ */ number$2() }),
|
|
16488
|
+
execute: (input, { client }) => {
|
|
16489
|
+
const data = input;
|
|
16490
|
+
return client.runGeneratedRequest("getOrganizationMemberTags", () => callGeneratedRequest(getOrganizationMemberTags, [
|
|
16491
|
+
client.httpClient,
|
|
16492
|
+
client.organizationId,
|
|
16493
|
+
data,
|
|
16494
|
+
void 0
|
|
16495
|
+
]));
|
|
16496
|
+
}
|
|
16497
|
+
},
|
|
16466
16498
|
{
|
|
16467
16499
|
id: "focus.organization.get-my-groups",
|
|
16468
16500
|
family: "focus",
|
|
@@ -25978,4 +26010,4 @@ Common commands:
|
|
|
25978
26010
|
//#endregion
|
|
25979
26011
|
export { CommanderError as n, createProgram as t };
|
|
25980
26012
|
|
|
25981
|
-
//# sourceMappingURL=program-
|
|
26013
|
+
//# sourceMappingURL=program-BnP1XwLR.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-BnP1XwLR.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.69",
|
|
4
4
|
"description": "Toggl CLI for Toggl 2.0 API operations.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@toggl/cli-core": "workspace:^",
|
|
57
57
|
"@toggl/operations": "workspace:^",
|
|
58
|
-
"@toggl/queries": "1.1.
|
|
58
|
+
"@toggl/queries": "1.1.8",
|
|
59
59
|
"@types/node": "22.19.11",
|
|
60
60
|
"tsdown": "0.21.8",
|
|
61
61
|
"typescript": "5.9.3",
|