@togglhq/cli 1.11.128 → 1.11.129
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-s--GphDk.js → program-C-_WJ75R.js} +69 -146
- 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-C-_WJ75R.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-C-_WJ75R.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -5495,10 +5495,6 @@ function _joinExpects$1(values$1, separator) {
|
|
|
5495
5495
|
*/
|
|
5496
5496
|
const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
5497
5497
|
/**
|
|
5498
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
|
|
5499
|
-
*/
|
|
5500
|
-
const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
|
|
5501
|
-
/**
|
|
5502
5498
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
|
|
5503
5499
|
* space as a date/time separator and an optional space before the UTC offset.
|
|
5504
5500
|
*/
|
|
@@ -5552,22 +5548,6 @@ function isoDate$1(message$1) {
|
|
|
5552
5548
|
};
|
|
5553
5549
|
}
|
|
5554
5550
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5555
|
-
function isoDateTime$1(message$1) {
|
|
5556
|
-
return {
|
|
5557
|
-
kind: "validation",
|
|
5558
|
-
type: "iso_date_time",
|
|
5559
|
-
reference: isoDateTime$1,
|
|
5560
|
-
async: false,
|
|
5561
|
-
expects: null,
|
|
5562
|
-
requirement: ISO_DATE_TIME_REGEX$1,
|
|
5563
|
-
message: message$1,
|
|
5564
|
-
"~run"(dataset, config$1) {
|
|
5565
|
-
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
|
|
5566
|
-
return dataset;
|
|
5567
|
-
}
|
|
5568
|
-
};
|
|
5569
|
-
}
|
|
5570
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
5571
5551
|
function isoTimestamp(message$1) {
|
|
5572
5552
|
return {
|
|
5573
5553
|
kind: "validation",
|
|
@@ -10641,7 +10621,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
10641
10621
|
json: data
|
|
10642
10622
|
}).json();
|
|
10643
10623
|
}
|
|
10644
|
-
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id,
|
|
10624
|
+
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id, type, order_by, archived, include_taskless, expand_calendar_event }, signal) {
|
|
10645
10625
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
10646
10626
|
signal,
|
|
10647
10627
|
searchParams: buildSearchParams$2({
|
|
@@ -10649,7 +10629,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
10649
10629
|
date_to,
|
|
10650
10630
|
task_id,
|
|
10651
10631
|
status_id,
|
|
10652
|
-
project_id,
|
|
10653
10632
|
type,
|
|
10654
10633
|
order_by,
|
|
10655
10634
|
archived,
|
|
@@ -10800,7 +10779,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10800
10779
|
]))
|
|
10801
10780
|
});
|
|
10802
10781
|
//#endregion
|
|
10803
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10782
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10804
10783
|
async function getInvitations(httpClient, signal) {
|
|
10805
10784
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10806
10785
|
}
|
|
@@ -10817,7 +10796,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10817
10796
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10818
10797
|
}
|
|
10819
10798
|
//#endregion
|
|
10820
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10799
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10821
10800
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10822
10801
|
const searchParams = new URLSearchParams();
|
|
10823
10802
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10829,7 +10808,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10829
10808
|
return searchParams;
|
|
10830
10809
|
}
|
|
10831
10810
|
//#endregion
|
|
10832
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10811
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10833
10812
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10834
10813
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10835
10814
|
}
|
|
@@ -10843,7 +10822,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10843
10822
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10844
10823
|
}
|
|
10845
10824
|
//#endregion
|
|
10846
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10825
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10847
10826
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10848
10827
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10849
10828
|
}
|
|
@@ -10852,7 +10831,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
|
|
|
10852
10831
|
}
|
|
10853
10832
|
const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
|
|
10854
10833
|
working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
|
|
10855
|
-
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */
|
|
10834
|
+
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
|
|
10856
10835
|
weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
|
|
10857
10836
|
});
|
|
10858
10837
|
const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
@@ -10863,7 +10842,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10863
10842
|
});
|
|
10864
10843
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10865
10844
|
//#endregion
|
|
10866
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10845
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10867
10846
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10868
10847
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10869
10848
|
signal,
|
|
@@ -10874,12 +10853,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10874
10853
|
})).json();
|
|
10875
10854
|
}
|
|
10876
10855
|
//#endregion
|
|
10877
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10856
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10878
10857
|
async function getStatus(httpClient, signal) {
|
|
10879
10858
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10880
10859
|
}
|
|
10881
10860
|
//#endregion
|
|
10882
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10861
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10883
10862
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10884
10863
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10885
10864
|
signal,
|
|
@@ -10907,7 +10886,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10907
10886
|
return response.json();
|
|
10908
10887
|
}
|
|
10909
10888
|
//#endregion
|
|
10910
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10889
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.111_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b6ed69ca42d94f6be51af28d9d4a79ce/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10911
10890
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10912
10891
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10913
10892
|
}
|
|
@@ -14657,14 +14636,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
|
|
|
14657
14636
|
}
|
|
14658
14637
|
//#endregion
|
|
14659
14638
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
14660
|
-
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date,
|
|
14639
|
+
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { user_id, start_date, end_date, private: private_, task_source, unit, include_drafts, include_task_estimates }, signal) {
|
|
14661
14640
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
14662
14641
|
signal,
|
|
14663
14642
|
searchParams: buildSearchParams$2({
|
|
14643
|
+
user_id,
|
|
14664
14644
|
start_date,
|
|
14665
14645
|
end_date,
|
|
14666
|
-
user_id,
|
|
14667
|
-
team_id,
|
|
14668
14646
|
private: private_,
|
|
14669
14647
|
task_source,
|
|
14670
14648
|
unit,
|
|
@@ -14724,15 +14702,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
|
|
|
14724
14702
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
14725
14703
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
14726
14704
|
}
|
|
14727
|
-
async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
14728
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
|
|
14729
|
-
}
|
|
14730
|
-
async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
14731
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
14732
|
-
signal,
|
|
14733
|
-
json: data
|
|
14734
|
-
}).json();
|
|
14735
|
-
}
|
|
14736
14705
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
14737
14706
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
14738
14707
|
signal,
|
|
@@ -15040,6 +15009,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
|
|
|
15040
15009
|
json: data
|
|
15041
15010
|
}).json();
|
|
15042
15011
|
}
|
|
15012
|
+
async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
15013
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
15014
|
+
}
|
|
15043
15015
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
15044
15016
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
15045
15017
|
}
|
|
@@ -15343,10 +15315,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
15343
15315
|
}
|
|
15344
15316
|
//#endregion
|
|
15345
15317
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
15346
|
-
async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter
|
|
15318
|
+
async function getUserTaskGroupsByProject(httpClient, organization_id, workspace_id, { project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter }, signal) {
|
|
15347
15319
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
15348
15320
|
signal,
|
|
15349
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15350
15321
|
searchParams: buildSearchParams$2({
|
|
15351
15322
|
project_id,
|
|
15352
15323
|
source,
|
|
@@ -15379,10 +15350,9 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
15379
15350
|
})
|
|
15380
15351
|
}).json();
|
|
15381
15352
|
}
|
|
15382
|
-
async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter
|
|
15353
|
+
async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id, { team_id, project_id, source, priority, status_id, client_id, assignee_user_id, tag_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter } = {}, signal) {
|
|
15383
15354
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
15384
15355
|
signal,
|
|
15385
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15386
15356
|
searchParams: buildSearchParams$2({
|
|
15387
15357
|
team_id,
|
|
15388
15358
|
project_id,
|
|
@@ -15415,10 +15385,9 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
15415
15385
|
})
|
|
15416
15386
|
}).json();
|
|
15417
15387
|
}
|
|
15418
|
-
async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by
|
|
15388
|
+
async function getTaskGroupsClassic(httpClient, organization_id, workspace_id, group, { source, priority, status_id, project_id, client_id, assignee_user_id, tag_id, team_id, user_tag_id, group_id, creator_id, name, start_date, end_date, start_date_from, start_date_to, end_date_from, end_date_to, private: private_, exclude_empty, include_unassigned, include_unmaterialized, collapse_recurring, include_assignees, min_days, include_drafts, cf_filter, user_cf_filter, page, per_page, order_by } = {}, signal) {
|
|
15419
15389
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
15420
15390
|
signal,
|
|
15421
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15422
15391
|
searchParams: buildSearchParams$2({
|
|
15423
15392
|
source,
|
|
15424
15393
|
priority,
|
|
@@ -16106,7 +16075,6 @@ const generatedFocusOperations = [
|
|
|
16106
16075
|
private_: /* @__PURE__ */ unknown$1(),
|
|
16107
16076
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16108
16077
|
task_source: /* @__PURE__ */ unknown$1(),
|
|
16109
|
-
team_id: /* @__PURE__ */ number$2(),
|
|
16110
16078
|
unit: /* @__PURE__ */ unknown$1(),
|
|
16111
16079
|
user_id: /* @__PURE__ */ number$2()
|
|
16112
16080
|
}),
|
|
@@ -16547,33 +16515,6 @@ const generatedFocusOperations = [
|
|
|
16547
16515
|
]));
|
|
16548
16516
|
}
|
|
16549
16517
|
},
|
|
16550
|
-
{
|
|
16551
|
-
id: "focus.custom-fields.get-allowed-users",
|
|
16552
|
-
family: "focus",
|
|
16553
|
-
resource: "custom-fields",
|
|
16554
|
-
action: "get-allowed-users",
|
|
16555
|
-
title: "Get Allowed Users Custom Fields",
|
|
16556
|
-
description: "Get Allowed Users Custom Fields.",
|
|
16557
|
-
safety: "read",
|
|
16558
|
-
destructive: false,
|
|
16559
|
-
cli: {
|
|
16560
|
-
group: ["custom-fields"],
|
|
16561
|
-
command: "get-allowed-users",
|
|
16562
|
-
interactive: "available"
|
|
16563
|
-
},
|
|
16564
|
-
mcp: { entityTool: "custom-fields" },
|
|
16565
|
-
inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
|
|
16566
|
-
execute: (input, { client }) => {
|
|
16567
|
-
const data = input;
|
|
16568
|
-
return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
|
|
16569
|
-
client.httpClient,
|
|
16570
|
-
client.organizationId,
|
|
16571
|
-
client.workspaceIdNumber,
|
|
16572
|
-
data.custom_field_id,
|
|
16573
|
-
void 0
|
|
16574
|
-
]));
|
|
16575
|
-
}
|
|
16576
|
-
},
|
|
16577
16518
|
{
|
|
16578
16519
|
id: "focus.custom-fields.list",
|
|
16579
16520
|
family: "focus",
|
|
@@ -16743,37 +16684,6 @@ const generatedFocusOperations = [
|
|
|
16743
16684
|
]));
|
|
16744
16685
|
}
|
|
16745
16686
|
},
|
|
16746
|
-
{
|
|
16747
|
-
id: "focus.custom-fields.replace-custom-field-allowed-users",
|
|
16748
|
-
family: "focus",
|
|
16749
|
-
resource: "custom-fields",
|
|
16750
|
-
action: "replace-custom-field-allowed-users",
|
|
16751
|
-
title: "Replace Custom Field Allowed Users Custom Fields",
|
|
16752
|
-
description: "Replace Custom Field Allowed Users Custom Fields.",
|
|
16753
|
-
safety: "update",
|
|
16754
|
-
destructive: false,
|
|
16755
|
-
cli: {
|
|
16756
|
-
group: ["custom-fields"],
|
|
16757
|
-
command: "replace-custom-field-allowed-users",
|
|
16758
|
-
interactive: "default"
|
|
16759
|
-
},
|
|
16760
|
-
mcp: { entityTool: "custom-fields" },
|
|
16761
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
16762
|
-
custom_field_id: /* @__PURE__ */ number$2(),
|
|
16763
|
-
payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
|
|
16764
|
-
}),
|
|
16765
|
-
execute: (input, { client }) => {
|
|
16766
|
-
const data = input;
|
|
16767
|
-
return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
|
|
16768
|
-
client.httpClient,
|
|
16769
|
-
client.organizationId,
|
|
16770
|
-
client.workspaceIdNumber,
|
|
16771
|
-
data.custom_field_id,
|
|
16772
|
-
data.payload ?? data.data ?? data,
|
|
16773
|
-
void 0
|
|
16774
|
-
]));
|
|
16775
|
-
}
|
|
16776
|
-
},
|
|
16777
16687
|
{
|
|
16778
16688
|
id: "focus.custom-fields.update",
|
|
16779
16689
|
family: "focus",
|
|
@@ -16920,7 +16830,13 @@ const generatedFocusOperations = [
|
|
|
16920
16830
|
},
|
|
16921
16831
|
mcp: { entityTool: "goals" },
|
|
16922
16832
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16833
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
16923
16834
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
16835
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16836
|
+
icon: /* @__PURE__ */ string$1(),
|
|
16837
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
16838
|
+
name: /* @__PURE__ */ string$1(),
|
|
16839
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16924
16840
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
16925
16841
|
"daily",
|
|
16926
16842
|
"weekly",
|
|
@@ -16928,18 +16844,12 @@ const generatedFocusOperations = [
|
|
|
16928
16844
|
"monthly"
|
|
16929
16845
|
]),
|
|
16930
16846
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16847
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16931
16848
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
16932
|
-
|
|
16849
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16850
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16933
16851
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
16934
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
16935
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
16936
|
-
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
16937
|
-
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
16938
|
-
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
16939
|
-
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
16940
|
-
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
16941
|
-
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
16942
|
-
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
16852
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
16943
16853
|
}) }),
|
|
16944
16854
|
execute: (input, { client }) => {
|
|
16945
16855
|
const data = input;
|
|
@@ -17045,6 +16955,13 @@ const generatedFocusOperations = [
|
|
|
17045
16955
|
},
|
|
17046
16956
|
mcp: { entityTool: "goals" },
|
|
17047
16957
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16958
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
16959
|
+
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
16960
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16961
|
+
icon: /* @__PURE__ */ string$1(),
|
|
16962
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
16963
|
+
name: /* @__PURE__ */ string$1(),
|
|
16964
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17048
16965
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
17049
16966
|
"daily",
|
|
17050
16967
|
"weekly",
|
|
@@ -17052,19 +16969,12 @@ const generatedFocusOperations = [
|
|
|
17052
16969
|
"monthly"
|
|
17053
16970
|
]),
|
|
17054
16971
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
17055
|
-
|
|
16972
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16973
|
+
target_seconds: /* @__PURE__ */ number$2(),
|
|
16974
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16975
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17056
16976
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17057
|
-
|
|
17058
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17059
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
17060
|
-
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17061
|
-
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
17062
|
-
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17063
|
-
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17064
|
-
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17065
|
-
target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17066
|
-
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17067
|
-
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
16977
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
17068
16978
|
}) }),
|
|
17069
16979
|
execute: (input, { client }) => {
|
|
17070
16980
|
const data = input;
|
|
@@ -18579,6 +18489,29 @@ const generatedFocusOperations = [
|
|
|
18579
18489
|
]));
|
|
18580
18490
|
}
|
|
18581
18491
|
},
|
|
18492
|
+
{
|
|
18493
|
+
id: "focus.projects.margin-targets-clear-workspace",
|
|
18494
|
+
family: "focus",
|
|
18495
|
+
resource: "projects",
|
|
18496
|
+
action: "margin-targets-clear-workspace",
|
|
18497
|
+
title: "Margin Targets Clear Workspace Projects",
|
|
18498
|
+
description: "Margin Targets Clear Workspace Projects.",
|
|
18499
|
+
safety: "delete",
|
|
18500
|
+
destructive: true,
|
|
18501
|
+
cli: {
|
|
18502
|
+
group: ["projects", "margin-targets"],
|
|
18503
|
+
command: "clear-workspace",
|
|
18504
|
+
interactive: "default"
|
|
18505
|
+
},
|
|
18506
|
+
mcp: { entityTool: "projects" },
|
|
18507
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
18508
|
+
execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
|
|
18509
|
+
client.httpClient,
|
|
18510
|
+
client.organizationId,
|
|
18511
|
+
client.workspaceIdNumber,
|
|
18512
|
+
void 0
|
|
18513
|
+
]))
|
|
18514
|
+
},
|
|
18582
18515
|
{
|
|
18583
18516
|
id: "focus.projects.margin-targets-get",
|
|
18584
18517
|
family: "focus",
|
|
@@ -20981,7 +20914,7 @@ const generatedFocusOperations = [
|
|
|
20981
20914
|
cli: {
|
|
20982
20915
|
group: ["reportschedules"],
|
|
20983
20916
|
command: "upsert-saved-view-schedule",
|
|
20984
|
-
interactive: "
|
|
20917
|
+
interactive: "default"
|
|
20985
20918
|
},
|
|
20986
20919
|
mcp: { entityTool: "reportschedules" },
|
|
20987
20920
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -20992,10 +20925,8 @@ const generatedFocusOperations = [
|
|
|
20992
20925
|
"weekly",
|
|
20993
20926
|
"monthly"
|
|
20994
20927
|
]),
|
|
20995
|
-
charts: /* @__PURE__ */ unknown$1(),
|
|
20996
20928
|
time: /* @__PURE__ */ string$1(),
|
|
20997
20929
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20998
|
-
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20999
20930
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21000
20931
|
recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21001
20932
|
recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
@@ -23010,8 +22941,7 @@ const generatedFocusOperations = [
|
|
|
23010
22941
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
23011
22942
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23012
22943
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23013
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23014
|
-
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
22944
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23015
22945
|
}),
|
|
23016
22946
|
execute: (input, { client }) => {
|
|
23017
22947
|
const data = input;
|
|
@@ -23068,8 +22998,7 @@ const generatedFocusOperations = [
|
|
|
23068
22998
|
tag_id: /* @__PURE__ */ number$2(),
|
|
23069
22999
|
team_id: /* @__PURE__ */ number$2(),
|
|
23070
23000
|
user_cf_filter: /* @__PURE__ */ unknown$1(),
|
|
23071
|
-
user_tag_id: /* @__PURE__ */ number$2()
|
|
23072
|
-
xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
|
|
23001
|
+
user_tag_id: /* @__PURE__ */ number$2()
|
|
23073
23002
|
}),
|
|
23074
23003
|
execute: (input, { client }) => {
|
|
23075
23004
|
const data = input;
|
|
@@ -23125,8 +23054,7 @@ const generatedFocusOperations = [
|
|
|
23125
23054
|
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23126
23055
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23127
23056
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23128
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23129
|
-
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23057
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23130
23058
|
}),
|
|
23131
23059
|
execute: (input, { client }) => {
|
|
23132
23060
|
const data = input;
|
|
@@ -24091,8 +24019,7 @@ const generatedFocusOperations = [
|
|
|
24091
24019
|
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
24092
24020
|
"project",
|
|
24093
24021
|
"task",
|
|
24094
|
-
"description"
|
|
24095
|
-
"tags"
|
|
24022
|
+
"description"
|
|
24096
24023
|
]) })),
|
|
24097
24024
|
disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
24098
24025
|
}) }),
|
|
@@ -24295,7 +24222,6 @@ const generatedFocusOperations = [
|
|
|
24295
24222
|
expand_calendar_event: /* @__PURE__ */ unknown$1(),
|
|
24296
24223
|
include_taskless: /* @__PURE__ */ unknown$1(),
|
|
24297
24224
|
order_by: /* @__PURE__ */ unknown$1(),
|
|
24298
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
24299
24225
|
status_id: /* @__PURE__ */ number$2(),
|
|
24300
24226
|
task_id: /* @__PURE__ */ number$2(),
|
|
24301
24227
|
type: /* @__PURE__ */ unknown$1()
|
|
@@ -25913,9 +25839,6 @@ const generatedFocusOperations = [
|
|
|
25913
25839
|
has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25914
25840
|
import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25915
25841
|
new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25916
|
-
notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25917
|
-
notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25918
|
-
notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25919
25842
|
onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25920
25843
|
onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25921
25844
|
onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -27971,4 +27894,4 @@ Common commands:
|
|
|
27971
27894
|
//#endregion
|
|
27972
27895
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
27973
27896
|
|
|
27974
|
-
//# sourceMappingURL=program-
|
|
27897
|
+
//# sourceMappingURL=program-C-_WJ75R.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-C-_WJ75R.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.129",
|
|
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.111",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|