@togglhq/cli 1.11.159 → 1.11.160
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-q_P5Km6C.js → program-BQhS6-UT.js} +95 -12
- 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-BQhS6-UT.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-BQhS6-UT.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7816,7 +7816,8 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
|
|
|
7816
7816
|
work_role_id: /* @__PURE__ */ number(),
|
|
7817
7817
|
workspace_user_id: /* @__PURE__ */ number()
|
|
7818
7818
|
})),
|
|
7819
|
-
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema))
|
|
7819
|
+
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
7820
|
+
has_calendar_integration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("HasCalendarIntegration is true when the member has a calendar connected in Focus. The field is present only when the request sets include_calendar_integration to true and the calendar lookup succeeded. The field is absent when the lookup failed. Absent means unknown. It does not mean false. A member who connected a calendar in another product stays false here until they open the Focus calendar integrations page.")))
|
|
7820
7821
|
});
|
|
7821
7822
|
const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
7822
7823
|
const ProjectBulkRestorePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
@@ -9912,7 +9913,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9912
9913
|
})
|
|
9913
9914
|
}).json();
|
|
9914
9915
|
}
|
|
9915
|
-
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 } = {}, signal) {
|
|
9916
|
+
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) {
|
|
9916
9917
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
9917
9918
|
signal,
|
|
9918
9919
|
searchParams: buildSearchParams$2({
|
|
@@ -9934,7 +9935,8 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
9934
9935
|
pinned_ids,
|
|
9935
9936
|
has_group,
|
|
9936
9937
|
cf_filter,
|
|
9937
|
-
include_custom_fields
|
|
9938
|
+
include_custom_fields,
|
|
9939
|
+
include_calendar_integration
|
|
9938
9940
|
}, true)
|
|
9939
9941
|
});
|
|
9940
9942
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
@@ -10797,7 +10799,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10797
10799
|
]))
|
|
10798
10800
|
});
|
|
10799
10801
|
//#endregion
|
|
10800
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10802
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10801
10803
|
async function getInvitations(httpClient, signal) {
|
|
10802
10804
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10803
10805
|
}
|
|
@@ -10814,7 +10816,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10814
10816
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10815
10817
|
}
|
|
10816
10818
|
//#endregion
|
|
10817
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10819
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10818
10820
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10819
10821
|
const searchParams = new URLSearchParams();
|
|
10820
10822
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10826,7 +10828,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10826
10828
|
return searchParams;
|
|
10827
10829
|
}
|
|
10828
10830
|
//#endregion
|
|
10829
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10831
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10830
10832
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10831
10833
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10832
10834
|
}
|
|
@@ -10840,7 +10842,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10840
10842
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10841
10843
|
}
|
|
10842
10844
|
//#endregion
|
|
10843
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10845
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10844
10846
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10845
10847
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10846
10848
|
}
|
|
@@ -10860,7 +10862,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10860
10862
|
});
|
|
10861
10863
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10862
10864
|
//#endregion
|
|
10863
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10865
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10864
10866
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10865
10867
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10866
10868
|
signal,
|
|
@@ -10871,12 +10873,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10871
10873
|
})).json();
|
|
10872
10874
|
}
|
|
10873
10875
|
//#endregion
|
|
10874
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10876
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10875
10877
|
async function getStatus(httpClient, signal) {
|
|
10876
10878
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10877
10879
|
}
|
|
10878
10880
|
//#endregion
|
|
10879
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10881
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10880
10882
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10881
10883
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10882
10884
|
signal,
|
|
@@ -10904,7 +10906,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10904
10906
|
return response.json();
|
|
10905
10907
|
}
|
|
10906
10908
|
//#endregion
|
|
10907
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10909
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.144_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_5591596a5951128a01d17dfee9a3fece/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10908
10910
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10909
10911
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10910
10912
|
}
|
|
@@ -15123,6 +15125,9 @@ async function dismissATemplateEstimateSuggestion(httpClient, organization_id, w
|
|
|
15123
15125
|
}
|
|
15124
15126
|
//#endregion
|
|
15125
15127
|
//#region ../focus-queries/dist/reports/requests.ts
|
|
15128
|
+
async function getForecastAvailability(httpClient, workspace_id, signal) {
|
|
15129
|
+
return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
|
|
15130
|
+
}
|
|
15126
15131
|
async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
|
|
15127
15132
|
return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
|
|
15128
15133
|
signal,
|
|
@@ -15568,6 +15573,21 @@ async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal
|
|
|
15568
15573
|
}).json();
|
|
15569
15574
|
}
|
|
15570
15575
|
//#endregion
|
|
15576
|
+
//#region ../focus-queries/dist/time-entry-groups/requests.ts
|
|
15577
|
+
async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
|
|
15578
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
15579
|
+
signal,
|
|
15580
|
+
searchParams: buildSearchParams$2({
|
|
15581
|
+
start_date,
|
|
15582
|
+
end_date,
|
|
15583
|
+
user_id,
|
|
15584
|
+
page,
|
|
15585
|
+
per_page,
|
|
15586
|
+
order_by
|
|
15587
|
+
})
|
|
15588
|
+
}).json();
|
|
15589
|
+
}
|
|
15590
|
+
//#endregion
|
|
15571
15591
|
//#region ../focus-queries/dist/time-off/requests.ts
|
|
15572
15592
|
async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
15573
15593
|
return await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
@@ -17038,6 +17058,13 @@ const generatedFocusOperations = [
|
|
|
17038
17058
|
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17039
17059
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17040
17060
|
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17061
|
+
recurrence: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
17062
|
+
"daily",
|
|
17063
|
+
"weekly",
|
|
17064
|
+
"daily_workdays",
|
|
17065
|
+
"monthly"
|
|
17066
|
+
])),
|
|
17067
|
+
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
17041
17068
|
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17042
17069
|
target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17043
17070
|
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
@@ -20611,6 +20638,28 @@ const generatedFocusOperations = [
|
|
|
20611
20638
|
]));
|
|
20612
20639
|
}
|
|
20613
20640
|
},
|
|
20641
|
+
{
|
|
20642
|
+
id: "focus.reports.get-forecast-availability",
|
|
20643
|
+
family: "focus",
|
|
20644
|
+
resource: "reports",
|
|
20645
|
+
action: "get-forecast-availability",
|
|
20646
|
+
title: "Get Forecast Availability Reports",
|
|
20647
|
+
description: "Get Forecast Availability Reports.",
|
|
20648
|
+
safety: "read",
|
|
20649
|
+
destructive: false,
|
|
20650
|
+
cli: {
|
|
20651
|
+
group: ["reports"],
|
|
20652
|
+
command: "get-forecast-availability",
|
|
20653
|
+
interactive: "hidden"
|
|
20654
|
+
},
|
|
20655
|
+
mcp: { entityTool: "reports" },
|
|
20656
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
20657
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getForecastAvailability", () => callGeneratedRequest(getForecastAvailability, [
|
|
20658
|
+
client.httpClient,
|
|
20659
|
+
client.workspaceIdNumber,
|
|
20660
|
+
void 0
|
|
20661
|
+
]))
|
|
20662
|
+
},
|
|
20614
20663
|
{
|
|
20615
20664
|
id: "focus.reports.get-profitability",
|
|
20616
20665
|
family: "focus",
|
|
@@ -24271,6 +24320,40 @@ const generatedFocusOperations = [
|
|
|
24271
24320
|
]));
|
|
24272
24321
|
}
|
|
24273
24322
|
},
|
|
24323
|
+
{
|
|
24324
|
+
id: "focus.time-entries.groups-get-users",
|
|
24325
|
+
family: "focus",
|
|
24326
|
+
resource: "time-entries",
|
|
24327
|
+
action: "groups-get-users",
|
|
24328
|
+
title: "Groups Get Users Time Entries",
|
|
24329
|
+
description: "Groups Get Users Time Entries.",
|
|
24330
|
+
safety: "read",
|
|
24331
|
+
destructive: false,
|
|
24332
|
+
cli: {
|
|
24333
|
+
group: ["time-entries", "groups"],
|
|
24334
|
+
command: "get-users",
|
|
24335
|
+
interactive: "hidden"
|
|
24336
|
+
},
|
|
24337
|
+
mcp: { entityTool: "time-entries" },
|
|
24338
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
24339
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
24340
|
+
order_by: /* @__PURE__ */ unknown$1(),
|
|
24341
|
+
page: /* @__PURE__ */ number$2(),
|
|
24342
|
+
per_page: /* @__PURE__ */ unknown$1(),
|
|
24343
|
+
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
24344
|
+
user_id: /* @__PURE__ */ number$2()
|
|
24345
|
+
}),
|
|
24346
|
+
execute: (input, { client }) => {
|
|
24347
|
+
const data = input;
|
|
24348
|
+
return client.runGeneratedRequest("getTimeEntryGroupsUsersClassic", () => callGeneratedRequest(getTimeEntryGroupsUsersClassic, [
|
|
24349
|
+
client.httpClient,
|
|
24350
|
+
client.organizationId,
|
|
24351
|
+
client.workspaceIdNumber,
|
|
24352
|
+
data,
|
|
24353
|
+
void 0
|
|
24354
|
+
]));
|
|
24355
|
+
}
|
|
24356
|
+
},
|
|
24274
24357
|
{
|
|
24275
24358
|
id: "focus.time-entries.list",
|
|
24276
24359
|
family: "focus",
|
|
@@ -27831,4 +27914,4 @@ Common commands:
|
|
|
27831
27914
|
//#endregion
|
|
27832
27915
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
27833
27916
|
|
|
27834
|
-
//# sourceMappingURL=program-
|
|
27917
|
+
//# sourceMappingURL=program-BQhS6-UT.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-BQhS6-UT.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.160",
|
|
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.144",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|