@togglhq/cli 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/{program-CosX-E05.js → program-DgWZLN1f.js} +49 -20
- 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-DgWZLN1f.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-DgWZLN1f.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10607,7 +10607,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10607
10607
|
]))
|
|
10608
10608
|
});
|
|
10609
10609
|
//#endregion
|
|
10610
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10610
|
+
//#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
|
|
10611
10611
|
async function getInvitations(httpClient, signal) {
|
|
10612
10612
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10613
10613
|
}
|
|
@@ -10624,7 +10624,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10624
10624
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10625
10625
|
}
|
|
10626
10626
|
//#endregion
|
|
10627
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10627
|
+
//#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
|
|
10628
10628
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
10629
10629
|
const searchParams = new URLSearchParams();
|
|
10630
10630
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10636,7 +10636,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
10636
10636
|
return searchParams;
|
|
10637
10637
|
}
|
|
10638
10638
|
//#endregion
|
|
10639
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10639
|
+
//#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
|
|
10640
10640
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10641
10641
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10642
10642
|
}
|
|
@@ -10650,7 +10650,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10650
10650
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10651
10651
|
}
|
|
10652
10652
|
//#endregion
|
|
10653
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10653
|
+
//#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
|
|
10654
10654
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10655
10655
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10656
10656
|
}
|
|
@@ -10679,7 +10679,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10679
10679
|
});
|
|
10680
10680
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10681
10681
|
//#endregion
|
|
10682
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10682
|
+
//#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
|
|
10683
10683
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
10684
10684
|
function withResponseMeta(data, headers, status) {
|
|
10685
10685
|
if (!data) return data;
|
|
@@ -10706,7 +10706,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10706
10706
|
return searchParams;
|
|
10707
10707
|
}
|
|
10708
10708
|
//#endregion
|
|
10709
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10709
|
+
//#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
|
|
10710
10710
|
async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
10711
10711
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
10712
10712
|
signal,
|
|
@@ -10715,12 +10715,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
|
10715
10715
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
10716
10716
|
}
|
|
10717
10717
|
//#endregion
|
|
10718
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10718
|
+
//#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
|
|
10719
10719
|
async function getStatus(httpClient, signal) {
|
|
10720
10720
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10721
10721
|
}
|
|
10722
10722
|
//#endregion
|
|
10723
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10723
|
+
//#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
|
|
10724
10724
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10725
10725
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10726
10726
|
signal,
|
|
@@ -10748,7 +10748,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10748
10748
|
return response.json();
|
|
10749
10749
|
}
|
|
10750
10750
|
//#endregion
|
|
10751
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@1.
|
|
10751
|
+
//#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
|
|
10752
10752
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10753
10753
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10754
10754
|
}
|
|
@@ -14865,6 +14865,12 @@ async function bulkRequestChangesTimesheets(httpClient, organization_id, workspa
|
|
|
14865
14865
|
json: data
|
|
14866
14866
|
}).json();
|
|
14867
14867
|
}
|
|
14868
|
+
async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id, data, signal) {
|
|
14869
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/bulk/withdraw`, {
|
|
14870
|
+
signal,
|
|
14871
|
+
json: data
|
|
14872
|
+
}).json();
|
|
14873
|
+
}
|
|
14868
14874
|
async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
|
|
14869
14875
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
|
|
14870
14876
|
}
|
|
@@ -15933,11 +15939,7 @@ const generatedFocusOperations = [
|
|
|
15933
15939
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
15934
15940
|
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
15935
15941
|
icon: /* @__PURE__ */ string$1(),
|
|
15936
|
-
monthly_anchor: /* @__PURE__ */ picklist$1([
|
|
15937
|
-
"calendar",
|
|
15938
|
-
"month_end",
|
|
15939
|
-
"first_workday"
|
|
15940
|
-
]),
|
|
15942
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
15941
15943
|
name: /* @__PURE__ */ string$1(),
|
|
15942
15944
|
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
15943
15945
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
@@ -16062,11 +16064,7 @@ const generatedFocusOperations = [
|
|
|
16062
16064
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
16063
16065
|
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16064
16066
|
icon: /* @__PURE__ */ string$1(),
|
|
16065
|
-
monthly_anchor: /* @__PURE__ */ picklist$1([
|
|
16066
|
-
"calendar",
|
|
16067
|
-
"month_end",
|
|
16068
|
-
"first_workday"
|
|
16069
|
-
]),
|
|
16067
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
16070
16068
|
name: /* @__PURE__ */ string$1(),
|
|
16071
16069
|
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16072
16070
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
@@ -23170,6 +23168,37 @@ const generatedFocusOperations = [
|
|
|
23170
23168
|
]));
|
|
23171
23169
|
}
|
|
23172
23170
|
},
|
|
23171
|
+
{
|
|
23172
|
+
id: "focus.timesheets.bulk-withdraw",
|
|
23173
|
+
family: "focus",
|
|
23174
|
+
resource: "timesheets",
|
|
23175
|
+
action: "bulk-withdraw",
|
|
23176
|
+
title: "Bulk Withdraw Timesheets",
|
|
23177
|
+
description: "Bulk Withdraw Timesheets.",
|
|
23178
|
+
safety: "read",
|
|
23179
|
+
destructive: false,
|
|
23180
|
+
cli: {
|
|
23181
|
+
group: ["timesheets", "bulk"],
|
|
23182
|
+
command: "withdraw",
|
|
23183
|
+
interactive: "available"
|
|
23184
|
+
},
|
|
23185
|
+
mcp: { entityTool: "timesheets" },
|
|
23186
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ keys: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
23187
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
23188
|
+
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
23189
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
23190
|
+
})) }) }),
|
|
23191
|
+
execute: (input, { client }) => {
|
|
23192
|
+
const data = input;
|
|
23193
|
+
return client.runGeneratedRequest("bulkWithdrawTimesheets", () => callGeneratedRequest(bulkWithdrawTimesheets, [
|
|
23194
|
+
client.httpClient,
|
|
23195
|
+
client.organizationId,
|
|
23196
|
+
client.workspaceIdNumber,
|
|
23197
|
+
data.payload ?? data.data ?? data,
|
|
23198
|
+
void 0
|
|
23199
|
+
]));
|
|
23200
|
+
}
|
|
23201
|
+
},
|
|
23173
23202
|
{
|
|
23174
23203
|
id: "focus.timesheets.get",
|
|
23175
23204
|
family: "focus",
|
|
@@ -25949,4 +25978,4 @@ Common commands:
|
|
|
25949
25978
|
//#endregion
|
|
25950
25979
|
export { CommanderError as n, createProgram as t };
|
|
25951
25980
|
|
|
25952
|
-
//# sourceMappingURL=program-
|
|
25981
|
+
//# sourceMappingURL=program-DgWZLN1f.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-DgWZLN1f.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.58",
|
|
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.
|
|
58
|
+
"@toggl/queries": "1.1.0",
|
|
59
59
|
"@types/node": "22.19.11",
|
|
60
60
|
"tsdown": "0.21.8",
|
|
61
61
|
"typescript": "5.9.3",
|