@togglhq/cli 1.11.37 → 1.11.39
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-BJh35e-q.js → program-CTc8Pv0t.js} +93 -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 { 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-CTc8Pv0t.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-CTc8Pv0t.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -9988,7 +9988,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9988
9988
|
})
|
|
9989
9989
|
}).json();
|
|
9990
9990
|
}
|
|
9991
|
-
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
|
|
9991
|
+
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
|
|
9992
9992
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
9993
9993
|
signal,
|
|
9994
9994
|
searchParams: buildSearchParams$2({
|
|
@@ -10009,6 +10009,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
10009
10009
|
include_rates,
|
|
10010
10010
|
pinned_ids,
|
|
10011
10011
|
has_group,
|
|
10012
|
+
track_without_focus,
|
|
10012
10013
|
cf_filter,
|
|
10013
10014
|
include_custom_fields,
|
|
10014
10015
|
include_calendar_integration
|
|
@@ -11022,7 +11023,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11022
11023
|
]))
|
|
11023
11024
|
});
|
|
11024
11025
|
//#endregion
|
|
11025
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11026
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11026
11027
|
async function getInvitations(httpClient, signal) {
|
|
11027
11028
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11028
11029
|
}
|
|
@@ -11039,7 +11040,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11039
11040
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11040
11041
|
}
|
|
11041
11042
|
//#endregion
|
|
11042
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11043
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11043
11044
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11044
11045
|
const searchParams = new URLSearchParams();
|
|
11045
11046
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11051,7 +11052,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11051
11052
|
return searchParams;
|
|
11052
11053
|
}
|
|
11053
11054
|
//#endregion
|
|
11054
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11055
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11055
11056
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11056
11057
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11057
11058
|
}
|
|
@@ -11065,7 +11066,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11065
11066
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11066
11067
|
}
|
|
11067
11068
|
//#endregion
|
|
11068
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11069
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11069
11070
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11070
11071
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11071
11072
|
}
|
|
@@ -11085,7 +11086,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11085
11086
|
});
|
|
11086
11087
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11087
11088
|
//#endregion
|
|
11088
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11089
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11089
11090
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11090
11091
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11091
11092
|
signal,
|
|
@@ -11096,12 +11097,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11096
11097
|
})).json();
|
|
11097
11098
|
}
|
|
11098
11099
|
//#endregion
|
|
11099
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11100
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11100
11101
|
async function getStatus(httpClient, signal) {
|
|
11101
11102
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11102
11103
|
}
|
|
11103
11104
|
//#endregion
|
|
11104
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11105
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11105
11106
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11106
11107
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11107
11108
|
signal,
|
|
@@ -11129,7 +11130,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11129
11130
|
return response.json();
|
|
11130
11131
|
}
|
|
11131
11132
|
//#endregion
|
|
11132
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11133
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.45_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_a185386769bcd1201cf70b5733dd4876/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11133
11134
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11134
11135
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11135
11136
|
}
|
|
@@ -15925,6 +15926,19 @@ async function bulkWithdrawTimesheets(httpClient, organization_id, workspace_id,
|
|
|
15925
15926
|
json: data
|
|
15926
15927
|
}).json();
|
|
15927
15928
|
}
|
|
15929
|
+
async function getTimesheetStatusCounts(httpClient, organization_id, workspace_id, { date_from, date_to, setup_id, user_account_ids, approver_user_account_ids, team_ids }, signal) {
|
|
15930
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/counts`, {
|
|
15931
|
+
signal,
|
|
15932
|
+
searchParams: buildSearchParams$2({
|
|
15933
|
+
date_from,
|
|
15934
|
+
date_to,
|
|
15935
|
+
setup_id,
|
|
15936
|
+
user_account_ids,
|
|
15937
|
+
approver_user_account_ids,
|
|
15938
|
+
team_ids
|
|
15939
|
+
})
|
|
15940
|
+
}).json();
|
|
15941
|
+
}
|
|
15928
15942
|
async function removeTimesheetFlag(httpClient, organization_id, workspace_id, flag_id, signal) {
|
|
15929
15943
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/flags/${flag_id}`, { signal }).json();
|
|
15930
15944
|
}
|
|
@@ -15968,6 +15982,14 @@ async function withdrawTimesheet(httpClient, organization_id, workspace_id, setu
|
|
|
15968
15982
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/timesheets/${setup_id}/${start_date}/${user_account_id}/withdraw`, { signal }).json();
|
|
15969
15983
|
}
|
|
15970
15984
|
//#endregion
|
|
15985
|
+
//#region ../focus-queries/dist/track-team-invites/requests.ts
|
|
15986
|
+
async function postTrackTeamInvites(httpClient, organization_id, workspace_id, data, signal) {
|
|
15987
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/track-team-invites`, {
|
|
15988
|
+
signal,
|
|
15989
|
+
json: data
|
|
15990
|
+
}).json();
|
|
15991
|
+
}
|
|
15992
|
+
//#endregion
|
|
15971
15993
|
//#region ../focus-queries/dist/user-settings/requests.ts
|
|
15972
15994
|
async function emailUnsubscribePage(httpClient, token, signal) {
|
|
15973
15995
|
return await httpClient.get(`email/unsubscribe/${token}`, { signal }).json();
|
|
@@ -25470,6 +25492,40 @@ const generatedFocusOperations = [
|
|
|
25470
25492
|
]));
|
|
25471
25493
|
}
|
|
25472
25494
|
},
|
|
25495
|
+
{
|
|
25496
|
+
id: "focus.timesheets.get-status-counts",
|
|
25497
|
+
family: "focus",
|
|
25498
|
+
resource: "timesheets",
|
|
25499
|
+
action: "get-status-counts",
|
|
25500
|
+
title: "Get Status Counts Timesheets",
|
|
25501
|
+
description: "Get Status Counts Timesheets.",
|
|
25502
|
+
safety: "read",
|
|
25503
|
+
destructive: false,
|
|
25504
|
+
cli: {
|
|
25505
|
+
group: ["timesheets"],
|
|
25506
|
+
command: "get-status-counts",
|
|
25507
|
+
interactive: "hidden"
|
|
25508
|
+
},
|
|
25509
|
+
mcp: { entityTool: "timesheets" },
|
|
25510
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
25511
|
+
approver_user_account_ids: /* @__PURE__ */ unknown$1(),
|
|
25512
|
+
date_from: /* @__PURE__ */ unknown$1(),
|
|
25513
|
+
date_to: /* @__PURE__ */ unknown$1(),
|
|
25514
|
+
setup_id: /* @__PURE__ */ number$2(),
|
|
25515
|
+
team_ids: /* @__PURE__ */ unknown$1(),
|
|
25516
|
+
user_account_ids: /* @__PURE__ */ unknown$1()
|
|
25517
|
+
}),
|
|
25518
|
+
execute: (input, { client }) => {
|
|
25519
|
+
const data = input;
|
|
25520
|
+
return client.runGeneratedRequest("getTimesheetStatusCounts", () => callGeneratedRequest(getTimesheetStatusCounts, [
|
|
25521
|
+
client.httpClient,
|
|
25522
|
+
client.organizationId,
|
|
25523
|
+
client.workspaceIdNumber,
|
|
25524
|
+
data,
|
|
25525
|
+
void 0
|
|
25526
|
+
]));
|
|
25527
|
+
}
|
|
25528
|
+
},
|
|
25473
25529
|
{
|
|
25474
25530
|
id: "focus.timesheets.remove-timesheet-flag",
|
|
25475
25531
|
family: "focus",
|
|
@@ -26019,6 +26075,33 @@ const generatedFocusOperations = [
|
|
|
26019
26075
|
]));
|
|
26020
26076
|
}
|
|
26021
26077
|
},
|
|
26078
|
+
{
|
|
26079
|
+
id: "focus.track-team-invites.post",
|
|
26080
|
+
family: "focus",
|
|
26081
|
+
resource: "track-team-invites",
|
|
26082
|
+
action: "post",
|
|
26083
|
+
title: "Post Track Team Invites",
|
|
26084
|
+
description: "Post Track Team Invites.",
|
|
26085
|
+
safety: "create",
|
|
26086
|
+
destructive: false,
|
|
26087
|
+
cli: {
|
|
26088
|
+
group: ["track-team-invites"],
|
|
26089
|
+
command: "post",
|
|
26090
|
+
interactive: "default"
|
|
26091
|
+
},
|
|
26092
|
+
mcp: { entityTool: "track-team-invites" },
|
|
26093
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ organization_user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
|
|
26094
|
+
execute: (input, { client }) => {
|
|
26095
|
+
const data = input;
|
|
26096
|
+
return client.runGeneratedRequest("postTrackTeamInvites", () => callGeneratedRequest(postTrackTeamInvites, [
|
|
26097
|
+
client.httpClient,
|
|
26098
|
+
client.organizationId,
|
|
26099
|
+
client.workspaceIdNumber,
|
|
26100
|
+
data.payload ?? data.data ?? data,
|
|
26101
|
+
void 0
|
|
26102
|
+
]));
|
|
26103
|
+
}
|
|
26104
|
+
},
|
|
26022
26105
|
{
|
|
26023
26106
|
id: "focus.users.list",
|
|
26024
26107
|
family: "focus",
|
|
@@ -28200,4 +28283,4 @@ Common commands:
|
|
|
28200
28283
|
//#endregion
|
|
28201
28284
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
28202
28285
|
|
|
28203
|
-
//# sourceMappingURL=program-
|
|
28286
|
+
//# sourceMappingURL=program-CTc8Pv0t.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-CTc8Pv0t.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.39",
|
|
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.45",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|