@togglhq/cli 1.13.176 → 1.13.178
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-sMTn_NfH.js → program-B4D311ID.js} +91 -11
- 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 { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-B4D311ID.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-
|
|
1
|
+
import { t as createProgram } from "./program-B4D311ID.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -11117,7 +11117,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11117
11117
|
]))
|
|
11118
11118
|
});
|
|
11119
11119
|
//#endregion
|
|
11120
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11120
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11121
11121
|
async function getInvitations(httpClient, signal) {
|
|
11122
11122
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11123
11123
|
}
|
|
@@ -11134,7 +11134,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11134
11134
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11135
11135
|
}
|
|
11136
11136
|
//#endregion
|
|
11137
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11137
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11138
11138
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11139
11139
|
const searchParams = new URLSearchParams();
|
|
11140
11140
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11146,7 +11146,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11146
11146
|
return searchParams;
|
|
11147
11147
|
}
|
|
11148
11148
|
//#endregion
|
|
11149
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11149
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11150
11150
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11151
11151
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11152
11152
|
}
|
|
@@ -11161,7 +11161,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11161
11161
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11162
11162
|
}
|
|
11163
11163
|
//#endregion
|
|
11164
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11164
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11165
11165
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11166
11166
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11167
11167
|
}
|
|
@@ -11181,7 +11181,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11181
11181
|
});
|
|
11182
11182
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11183
11183
|
//#endregion
|
|
11184
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11184
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11185
11185
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11186
11186
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11187
11187
|
signal,
|
|
@@ -11192,12 +11192,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11192
11192
|
})).json();
|
|
11193
11193
|
}
|
|
11194
11194
|
//#endregion
|
|
11195
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11195
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11196
11196
|
async function getStatus(httpClient, signal) {
|
|
11197
11197
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11198
11198
|
}
|
|
11199
11199
|
//#endregion
|
|
11200
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11200
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11201
11201
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11202
11202
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11203
11203
|
signal,
|
|
@@ -11225,7 +11225,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11225
11225
|
return response.json();
|
|
11226
11226
|
}
|
|
11227
11227
|
//#endregion
|
|
11228
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11228
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.314_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_6d0f504981d1a5d6fbec7c1fc64e1b47/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11229
11229
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11230
11230
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11231
11231
|
}
|
|
@@ -17093,6 +17093,17 @@ async function discontinueTimesheetSetupMember(httpClient, organization_id, work
|
|
|
17093
17093
|
if ([204, 205].includes(response.status)) return null;
|
|
17094
17094
|
return response.json();
|
|
17095
17095
|
}
|
|
17096
|
+
async function moveTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, data, signal) {
|
|
17097
|
+
return (await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/move`, {
|
|
17098
|
+
signal,
|
|
17099
|
+
json: data
|
|
17100
|
+
})).json();
|
|
17101
|
+
}
|
|
17102
|
+
async function cancelTimesheetSetupMemberMove(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
17103
|
+
const response = await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/move`, { signal });
|
|
17104
|
+
if ([204, 205].includes(response.status)) return null;
|
|
17105
|
+
return response.json();
|
|
17106
|
+
}
|
|
17096
17107
|
async function reactivateTimesheetSetupMember(httpClient, organization_id, workspace_id, setup_id, user_account_id, signal) {
|
|
17097
17108
|
const response = await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheet-setups/${setup_id}/members/${user_account_id}/reactivate`, { signal });
|
|
17098
17109
|
if ([204, 205].includes(response.status)) return null;
|
|
@@ -19435,7 +19446,8 @@ const generatedFocusOperations = [
|
|
|
19435
19446
|
"table",
|
|
19436
19447
|
"pivot_table"
|
|
19437
19448
|
]),
|
|
19438
|
-
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
|
|
19449
|
+
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
19450
|
+
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
19439
19451
|
})),
|
|
19440
19452
|
period: /* @__PURE__ */ unknown$1(),
|
|
19441
19453
|
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
@@ -19590,7 +19602,8 @@ const generatedFocusOperations = [
|
|
|
19590
19602
|
"table",
|
|
19591
19603
|
"pivot_table"
|
|
19592
19604
|
]),
|
|
19593
|
-
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()))
|
|
19605
|
+
filters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
19606
|
+
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
19594
19607
|
})),
|
|
19595
19608
|
period: /* @__PURE__ */ unknown$1(),
|
|
19596
19609
|
flexqFilters: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1())),
|
|
@@ -29659,6 +29672,37 @@ const generatedFocusOperations = [
|
|
|
29659
29672
|
]));
|
|
29660
29673
|
}
|
|
29661
29674
|
},
|
|
29675
|
+
{
|
|
29676
|
+
id: "focus.timesheets.setups-cancel-timesheet-setup-member-move",
|
|
29677
|
+
family: "focus",
|
|
29678
|
+
resource: "timesheets",
|
|
29679
|
+
action: "setups-cancel-timesheet-setup-member-move",
|
|
29680
|
+
title: "Setups Cancel Timesheet Setup Member Move Timesheets",
|
|
29681
|
+
description: "Setups Cancel Timesheet Setup Member Move Timesheets.",
|
|
29682
|
+
safety: "delete",
|
|
29683
|
+
destructive: true,
|
|
29684
|
+
cli: {
|
|
29685
|
+
group: ["timesheets", "setups"],
|
|
29686
|
+
command: "cancel-timesheet-setup-member-move",
|
|
29687
|
+
interactive: "default"
|
|
29688
|
+
},
|
|
29689
|
+
mcp: { entityTool: "timesheets" },
|
|
29690
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
29691
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
29692
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
29693
|
+
}),
|
|
29694
|
+
execute: (input, { client }) => {
|
|
29695
|
+
const data = input;
|
|
29696
|
+
return client.runGeneratedRequest("cancelTimesheetSetupMemberMove", () => callGeneratedRequest(cancelTimesheetSetupMemberMove, [
|
|
29697
|
+
client.httpClient,
|
|
29698
|
+
client.organizationId,
|
|
29699
|
+
client.workspaceIdNumber,
|
|
29700
|
+
data.setup_id,
|
|
29701
|
+
data.user_account_id,
|
|
29702
|
+
void 0
|
|
29703
|
+
]));
|
|
29704
|
+
}
|
|
29705
|
+
},
|
|
29662
29706
|
{
|
|
29663
29707
|
id: "focus.timesheets.setups-create",
|
|
29664
29708
|
family: "focus",
|
|
@@ -29940,6 +29984,42 @@ const generatedFocusOperations = [
|
|
|
29940
29984
|
]));
|
|
29941
29985
|
}
|
|
29942
29986
|
},
|
|
29987
|
+
{
|
|
29988
|
+
id: "focus.timesheets.setups-move-timesheet-setup-member",
|
|
29989
|
+
family: "focus",
|
|
29990
|
+
resource: "timesheets",
|
|
29991
|
+
action: "setups-move-timesheet-setup-member",
|
|
29992
|
+
title: "Setups Move Timesheet Setup Member Timesheets",
|
|
29993
|
+
description: "Setups Move Timesheet Setup Member Timesheets.",
|
|
29994
|
+
safety: "update",
|
|
29995
|
+
destructive: false,
|
|
29996
|
+
cli: {
|
|
29997
|
+
group: ["timesheets", "setups"],
|
|
29998
|
+
command: "move-timesheet-setup-member",
|
|
29999
|
+
interactive: "default"
|
|
30000
|
+
},
|
|
30001
|
+
mcp: { entityTool: "timesheets" },
|
|
30002
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
30003
|
+
payload: /* @__PURE__ */ looseObject({
|
|
30004
|
+
started_at: apiDateTimeString,
|
|
30005
|
+
target_setup_id: /* @__PURE__ */ number$2()
|
|
30006
|
+
}),
|
|
30007
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
30008
|
+
user_account_id: /* @__PURE__ */ number$2()
|
|
30009
|
+
}),
|
|
30010
|
+
execute: (input, { client }) => {
|
|
30011
|
+
const data = input;
|
|
30012
|
+
return client.runGeneratedRequest("moveTimesheetSetupMember", () => callGeneratedRequest(moveTimesheetSetupMember, [
|
|
30013
|
+
client.httpClient,
|
|
30014
|
+
client.organizationId,
|
|
30015
|
+
client.workspaceIdNumber,
|
|
30016
|
+
data.setup_id,
|
|
30017
|
+
data.user_account_id,
|
|
30018
|
+
data.payload ?? data.data ?? data,
|
|
30019
|
+
void 0
|
|
30020
|
+
]));
|
|
30021
|
+
}
|
|
30022
|
+
},
|
|
29943
30023
|
{
|
|
29944
30024
|
id: "focus.timesheets.setups-reactivate-timesheet-setup-member",
|
|
29945
30025
|
family: "focus",
|
|
@@ -32522,4 +32602,4 @@ Common commands:
|
|
|
32522
32602
|
//#endregion
|
|
32523
32603
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
32524
32604
|
|
|
32525
|
-
//# sourceMappingURL=program-
|
|
32605
|
+
//# sourceMappingURL=program-B4D311ID.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-B4D311ID.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.178",
|
|
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.
|
|
59
|
+
"@toggl/queries": "2.2.314",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|