@togglhq/mcp 1.5.56 → 1.5.58
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/{src-gryeVbKP.js → src-pcrY_eSf.js} +50 -21
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -30729,7 +30729,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
30729
30729
|
]))
|
|
30730
30730
|
});
|
|
30731
30731
|
//#endregion
|
|
30732
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30732
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
30733
30733
|
async function getInvitations(httpClient, signal) {
|
|
30734
30734
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
30735
30735
|
}
|
|
@@ -30746,7 +30746,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
30746
30746
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
30747
30747
|
}
|
|
30748
30748
|
//#endregion
|
|
30749
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30749
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
30750
30750
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
30751
30751
|
const searchParams = new URLSearchParams();
|
|
30752
30752
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -30758,7 +30758,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
30758
30758
|
return searchParams;
|
|
30759
30759
|
}
|
|
30760
30760
|
//#endregion
|
|
30761
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30761
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
30762
30762
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
30763
30763
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
30764
30764
|
}
|
|
@@ -30772,7 +30772,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
30772
30772
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
30773
30773
|
}
|
|
30774
30774
|
//#endregion
|
|
30775
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30775
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
30776
30776
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
30777
30777
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
30778
30778
|
}
|
|
@@ -30801,7 +30801,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
30801
30801
|
});
|
|
30802
30802
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
30803
30803
|
//#endregion
|
|
30804
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30804
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
30805
30805
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
30806
30806
|
function withResponseMeta(data, headers, status) {
|
|
30807
30807
|
if (!data) return data;
|
|
@@ -30828,7 +30828,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
30828
30828
|
return searchParams;
|
|
30829
30829
|
}
|
|
30830
30830
|
//#endregion
|
|
30831
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30831
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
30832
30832
|
async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
30833
30833
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
30834
30834
|
signal,
|
|
@@ -30837,12 +30837,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
|
30837
30837
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
30838
30838
|
}
|
|
30839
30839
|
//#endregion
|
|
30840
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30840
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
30841
30841
|
async function getStatus(httpClient, signal) {
|
|
30842
30842
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
30843
30843
|
}
|
|
30844
30844
|
//#endregion
|
|
30845
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30845
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
30846
30846
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
30847
30847
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
30848
30848
|
signal,
|
|
@@ -30870,7 +30870,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
30870
30870
|
return response.json();
|
|
30871
30871
|
}
|
|
30872
30872
|
//#endregion
|
|
30873
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
30873
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@1.1.0_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_react_59c8dd09211a4199ae98158ed8b48c86/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
30874
30874
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
30875
30875
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
30876
30876
|
}
|
|
@@ -35009,6 +35009,12 @@ async function bulkRequestChangesTimesheets(httpClient, organization_id, workspa
|
|
|
35009
35009
|
json: data
|
|
35010
35010
|
}).json();
|
|
35011
35011
|
}
|
|
35012
|
+
async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
35013
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
35014
|
+
signal,
|
|
35015
|
+
json: data
|
|
35016
|
+
}).json();
|
|
35017
|
+
}
|
|
35012
35018
|
async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
|
|
35013
35019
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
|
|
35014
35020
|
}
|
|
@@ -36077,11 +36083,7 @@ const generatedFocusOperations = [
|
|
|
36077
36083
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
36078
36084
|
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
36079
36085
|
icon: /* @__PURE__ */ string$1(),
|
|
36080
|
-
monthly_anchor: /* @__PURE__ */ picklist$1([
|
|
36081
|
-
"calendar",
|
|
36082
|
-
"month_end",
|
|
36083
|
-
"first_workday"
|
|
36084
|
-
]),
|
|
36086
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
36085
36087
|
name: /* @__PURE__ */ string$1(),
|
|
36086
36088
|
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36087
36089
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
@@ -36206,11 +36208,7 @@ const generatedFocusOperations = [
|
|
|
36206
36208
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
36207
36209
|
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
36208
36210
|
icon: /* @__PURE__ */ string$1(),
|
|
36209
|
-
monthly_anchor: /* @__PURE__ */ picklist$1([
|
|
36210
|
-
"calendar",
|
|
36211
|
-
"month_end",
|
|
36212
|
-
"first_workday"
|
|
36213
|
-
]),
|
|
36211
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
36214
36212
|
name: /* @__PURE__ */ string$1(),
|
|
36215
36213
|
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36216
36214
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
@@ -43314,6 +43312,37 @@ const generatedFocusOperations = [
|
|
|
43314
43312
|
]));
|
|
43315
43313
|
}
|
|
43316
43314
|
},
|
|
43315
|
+
{
|
|
43316
|
+
id: "focus.timesheets.bulk-withdraw",
|
|
43317
|
+
family: "focus",
|
|
43318
|
+
resource: "timesheets",
|
|
43319
|
+
action: "bulk-withdraw",
|
|
43320
|
+
title: "Bulk Withdraw Timesheets",
|
|
43321
|
+
description: "Bulk Withdraw Timesheets.",
|
|
43322
|
+
safety: "read",
|
|
43323
|
+
destructive: false,
|
|
43324
|
+
cli: {
|
|
43325
|
+
group: ["timesheets", "bulk"],
|
|
43326
|
+
command: "withdraw",
|
|
43327
|
+
interactive: "available"
|
|
43328
|
+
},
|
|
43329
|
+
mcp: { entityTool: "timesheets" },
|
|
43330
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ keys: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
43331
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
43332
|
+
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
43333
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
43334
|
+
})) }) }),
|
|
43335
|
+
execute: (input, { client }) => {
|
|
43336
|
+
const data = input;
|
|
43337
|
+
return client.runGeneratedRequest("bulkWithdrawTimesheets", () => callGeneratedRequest(bulkWithdrawTimesheets, [
|
|
43338
|
+
client.httpClient,
|
|
43339
|
+
client.organizationId,
|
|
43340
|
+
client.workspaceIdNumber,
|
|
43341
|
+
data.payload ?? data.data ?? data,
|
|
43342
|
+
void 0
|
|
43343
|
+
]));
|
|
43344
|
+
}
|
|
43345
|
+
},
|
|
43317
43346
|
{
|
|
43318
43347
|
id: "focus.timesheets.get",
|
|
43319
43348
|
family: "focus",
|
|
@@ -45822,7 +45851,7 @@ import_main.default.config({
|
|
|
45822
45851
|
quiet: true,
|
|
45823
45852
|
ignore: ["MISSING_ENV_FILE"]
|
|
45824
45853
|
});
|
|
45825
|
-
const packageVersion = "1.5.
|
|
45854
|
+
const packageVersion = "1.5.58";
|
|
45826
45855
|
function resolvePublicUrls() {
|
|
45827
45856
|
return {
|
|
45828
45857
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45887,4 +45916,4 @@ function bootstrapServer(options = {}) {
|
|
|
45887
45916
|
//#endregion
|
|
45888
45917
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45889
45918
|
|
|
45890
|
-
//# sourceMappingURL=src-
|
|
45919
|
+
//# sourceMappingURL=src-pcrY_eSf.js.map
|