@togglhq/cli 1.10.0 → 1.11.1
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-DPg8sMeD.js → program-D8ebslOU.js} +70 -138
- 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-D8ebslOU.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-D8ebslOU.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10480,13 +10480,12 @@ async function getTasksCalendarEvents(httpClient, organization_id, workspace_id,
|
|
|
10480
10480
|
})
|
|
10481
10481
|
}).json();
|
|
10482
10482
|
}
|
|
10483
|
-
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to,
|
|
10483
|
+
async function putTasksCalendarRange(httpClient, organization_id, workspace_id, date_from, date_to, signal) {
|
|
10484
10484
|
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/calendar`, {
|
|
10485
10485
|
signal,
|
|
10486
10486
|
searchParams: buildSearchParams$2({
|
|
10487
10487
|
date_from,
|
|
10488
|
-
date_to
|
|
10489
|
-
skip_provider_refresh
|
|
10488
|
+
date_to
|
|
10490
10489
|
})
|
|
10491
10490
|
}).json();
|
|
10492
10491
|
}
|
|
@@ -10806,7 +10805,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
10806
10805
|
json: data
|
|
10807
10806
|
}).json();
|
|
10808
10807
|
}
|
|
10809
|
-
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id,
|
|
10808
|
+
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) {
|
|
10810
10809
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
10811
10810
|
signal,
|
|
10812
10811
|
searchParams: buildSearchParams$2({
|
|
@@ -10814,7 +10813,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
10814
10813
|
date_to,
|
|
10815
10814
|
task_id,
|
|
10816
10815
|
status_id,
|
|
10817
|
-
project_id,
|
|
10818
10816
|
type,
|
|
10819
10817
|
order_by,
|
|
10820
10818
|
archived,
|
|
@@ -10965,7 +10963,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10965
10963
|
]))
|
|
10966
10964
|
});
|
|
10967
10965
|
//#endregion
|
|
10968
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10966
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10969
10967
|
async function getInvitations(httpClient, signal) {
|
|
10970
10968
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10971
10969
|
}
|
|
@@ -10982,7 +10980,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10982
10980
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10983
10981
|
}
|
|
10984
10982
|
//#endregion
|
|
10985
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10983
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10986
10984
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
10987
10985
|
function withResponseMeta(data, headers, status) {
|
|
10988
10986
|
if (!data) return data;
|
|
@@ -11009,7 +11007,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11009
11007
|
return searchParams;
|
|
11010
11008
|
}
|
|
11011
11009
|
//#endregion
|
|
11012
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11010
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11013
11011
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11014
11012
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11015
11013
|
}
|
|
@@ -11023,7 +11021,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11023
11021
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11024
11022
|
}
|
|
11025
11023
|
//#endregion
|
|
11026
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11024
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11027
11025
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11028
11026
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11029
11027
|
}
|
|
@@ -11043,7 +11041,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11043
11041
|
});
|
|
11044
11042
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11045
11043
|
//#endregion
|
|
11046
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11044
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/org/public-holidays/requests.mjs
|
|
11047
11045
|
async function getPublicHolidaysHolidayDomain(httpClient, year, { country, organization_id } = {}, signal) {
|
|
11048
11046
|
const response = await httpClient.get(`holidays/publicholidays/${year}`, {
|
|
11049
11047
|
signal,
|
|
@@ -11055,12 +11053,12 @@ async function getPublicHolidaysHolidayDomain(httpClient, year, { country, organ
|
|
|
11055
11053
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
11056
11054
|
}
|
|
11057
11055
|
//#endregion
|
|
11058
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11056
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11059
11057
|
async function getStatus(httpClient, signal) {
|
|
11060
11058
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11061
11059
|
}
|
|
11062
11060
|
//#endregion
|
|
11063
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11061
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11064
11062
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11065
11063
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11066
11064
|
signal,
|
|
@@ -11088,7 +11086,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11088
11086
|
return response.json();
|
|
11089
11087
|
}
|
|
11090
11088
|
//#endregion
|
|
11091
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11089
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.16_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_0363f3d3d2293d615c4ef5fe01209159/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11092
11090
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11093
11091
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11094
11092
|
}
|
|
@@ -14881,14 +14879,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
|
|
|
14881
14879
|
}
|
|
14882
14880
|
//#endregion
|
|
14883
14881
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
14884
|
-
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date,
|
|
14882
|
+
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) {
|
|
14885
14883
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
14886
14884
|
signal,
|
|
14887
14885
|
searchParams: buildSearchParams$2({
|
|
14886
|
+
user_id,
|
|
14888
14887
|
start_date,
|
|
14889
14888
|
end_date,
|
|
14890
|
-
user_id,
|
|
14891
|
-
team_id,
|
|
14892
14889
|
private: private_,
|
|
14893
14890
|
task_source,
|
|
14894
14891
|
unit,
|
|
@@ -14948,15 +14945,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
|
|
|
14948
14945
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
14949
14946
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
14950
14947
|
}
|
|
14951
|
-
async function getCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
14952
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, { signal }).json();
|
|
14953
|
-
}
|
|
14954
|
-
async function replaceCustomFieldAllowedUsers(httpClient, organization_id, workspace_id, custom_field_id, data, signal) {
|
|
14955
|
-
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/allowed-users`, {
|
|
14956
|
-
signal,
|
|
14957
|
-
json: data
|
|
14958
|
-
}).json();
|
|
14959
|
-
}
|
|
14960
14948
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
14961
14949
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
14962
14950
|
signal,
|
|
@@ -15264,6 +15252,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
|
|
|
15264
15252
|
json: data
|
|
15265
15253
|
}).json();
|
|
15266
15254
|
}
|
|
15255
|
+
async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
15256
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
15257
|
+
}
|
|
15267
15258
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
15268
15259
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
15269
15260
|
}
|
|
@@ -15567,10 +15558,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
15567
15558
|
}
|
|
15568
15559
|
//#endregion
|
|
15569
15560
|
//#region ../focus-queries/dist/task-groups/requests.ts
|
|
15570
|
-
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
|
|
15561
|
+
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) {
|
|
15571
15562
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
15572
15563
|
signal,
|
|
15573
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15574
15564
|
searchParams: buildSearchParams$2({
|
|
15575
15565
|
project_id,
|
|
15576
15566
|
source,
|
|
@@ -15603,10 +15593,9 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
15603
15593
|
})
|
|
15604
15594
|
}).json();
|
|
15605
15595
|
}
|
|
15606
|
-
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
|
|
15596
|
+
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) {
|
|
15607
15597
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
15608
15598
|
signal,
|
|
15609
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15610
15599
|
searchParams: buildSearchParams$2({
|
|
15611
15600
|
team_id,
|
|
15612
15601
|
project_id,
|
|
@@ -15639,10 +15628,9 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
15639
15628
|
})
|
|
15640
15629
|
}).json();
|
|
15641
15630
|
}
|
|
15642
|
-
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
|
|
15631
|
+
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) {
|
|
15643
15632
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
15644
15633
|
signal,
|
|
15645
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15646
15634
|
searchParams: buildSearchParams$2({
|
|
15647
15635
|
source,
|
|
15648
15636
|
priority,
|
|
@@ -16232,7 +16220,6 @@ const generatedFocusOperations = [
|
|
|
16232
16220
|
private_: /* @__PURE__ */ unknown$1(),
|
|
16233
16221
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16234
16222
|
task_source: /* @__PURE__ */ unknown$1(),
|
|
16235
|
-
team_id: /* @__PURE__ */ number$2(),
|
|
16236
16223
|
unit: /* @__PURE__ */ unknown$1(),
|
|
16237
16224
|
user_id: /* @__PURE__ */ number$2()
|
|
16238
16225
|
}),
|
|
@@ -16673,33 +16660,6 @@ const generatedFocusOperations = [
|
|
|
16673
16660
|
]));
|
|
16674
16661
|
}
|
|
16675
16662
|
},
|
|
16676
|
-
{
|
|
16677
|
-
id: "focus.custom-fields.get-allowed-users",
|
|
16678
|
-
family: "focus",
|
|
16679
|
-
resource: "custom-fields",
|
|
16680
|
-
action: "get-allowed-users",
|
|
16681
|
-
title: "Get Allowed Users Custom Fields",
|
|
16682
|
-
description: "Get Allowed Users Custom Fields.",
|
|
16683
|
-
safety: "read",
|
|
16684
|
-
destructive: false,
|
|
16685
|
-
cli: {
|
|
16686
|
-
group: ["custom-fields"],
|
|
16687
|
-
command: "get-allowed-users",
|
|
16688
|
-
interactive: "available"
|
|
16689
|
-
},
|
|
16690
|
-
mcp: { entityTool: "custom-fields" },
|
|
16691
|
-
inputSchema: /* @__PURE__ */ looseObject({ custom_field_id: /* @__PURE__ */ number$2() }),
|
|
16692
|
-
execute: (input, { client }) => {
|
|
16693
|
-
const data = input;
|
|
16694
|
-
return client.runGeneratedRequest("getCustomFieldAllowedUsers", () => callGeneratedRequest(getCustomFieldAllowedUsers, [
|
|
16695
|
-
client.httpClient,
|
|
16696
|
-
client.organizationId,
|
|
16697
|
-
client.workspaceIdNumber,
|
|
16698
|
-
data.custom_field_id,
|
|
16699
|
-
void 0
|
|
16700
|
-
]));
|
|
16701
|
-
}
|
|
16702
|
-
},
|
|
16703
16663
|
{
|
|
16704
16664
|
id: "focus.custom-fields.list",
|
|
16705
16665
|
family: "focus",
|
|
@@ -16869,37 +16829,6 @@ const generatedFocusOperations = [
|
|
|
16869
16829
|
]));
|
|
16870
16830
|
}
|
|
16871
16831
|
},
|
|
16872
|
-
{
|
|
16873
|
-
id: "focus.custom-fields.replace-custom-field-allowed-users",
|
|
16874
|
-
family: "focus",
|
|
16875
|
-
resource: "custom-fields",
|
|
16876
|
-
action: "replace-custom-field-allowed-users",
|
|
16877
|
-
title: "Replace Custom Field Allowed Users Custom Fields",
|
|
16878
|
-
description: "Replace Custom Field Allowed Users Custom Fields.",
|
|
16879
|
-
safety: "update",
|
|
16880
|
-
destructive: false,
|
|
16881
|
-
cli: {
|
|
16882
|
-
group: ["custom-fields"],
|
|
16883
|
-
command: "replace-custom-field-allowed-users",
|
|
16884
|
-
interactive: "default"
|
|
16885
|
-
},
|
|
16886
|
-
mcp: { entityTool: "custom-fields" },
|
|
16887
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
16888
|
-
custom_field_id: /* @__PURE__ */ number$2(),
|
|
16889
|
-
payload: /* @__PURE__ */ looseObject({ user_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) })
|
|
16890
|
-
}),
|
|
16891
|
-
execute: (input, { client }) => {
|
|
16892
|
-
const data = input;
|
|
16893
|
-
return client.runGeneratedRequest("replaceCustomFieldAllowedUsers", () => callGeneratedRequest(replaceCustomFieldAllowedUsers, [
|
|
16894
|
-
client.httpClient,
|
|
16895
|
-
client.organizationId,
|
|
16896
|
-
client.workspaceIdNumber,
|
|
16897
|
-
data.custom_field_id,
|
|
16898
|
-
data.payload ?? data.data ?? data,
|
|
16899
|
-
void 0
|
|
16900
|
-
]));
|
|
16901
|
-
}
|
|
16902
|
-
},
|
|
16903
16832
|
{
|
|
16904
16833
|
id: "focus.custom-fields.update",
|
|
16905
16834
|
family: "focus",
|
|
@@ -17046,7 +16975,13 @@ const generatedFocusOperations = [
|
|
|
17046
16975
|
},
|
|
17047
16976
|
mcp: { entityTool: "goals" },
|
|
17048
16977
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16978
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
17049
16979
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
16980
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16981
|
+
icon: /* @__PURE__ */ string$1(),
|
|
16982
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
16983
|
+
name: /* @__PURE__ */ string$1(),
|
|
16984
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17050
16985
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
17051
16986
|
"daily",
|
|
17052
16987
|
"weekly",
|
|
@@ -17054,18 +16989,12 @@ const generatedFocusOperations = [
|
|
|
17054
16989
|
"monthly"
|
|
17055
16990
|
]),
|
|
17056
16991
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16992
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17057
16993
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
17058
|
-
|
|
16994
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16995
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17059
16996
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17060
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
17061
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
17062
|
-
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17063
|
-
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
17064
|
-
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17065
|
-
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17066
|
-
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17067
|
-
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17068
|
-
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
16997
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
17069
16998
|
}) }),
|
|
17070
16999
|
execute: (input, { client }) => {
|
|
17071
17000
|
const data = input;
|
|
@@ -17171,6 +17100,13 @@ const generatedFocusOperations = [
|
|
|
17171
17100
|
},
|
|
17172
17101
|
mcp: { entityTool: "goals" },
|
|
17173
17102
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
17103
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
17104
|
+
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
17105
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
17106
|
+
icon: /* @__PURE__ */ string$1(),
|
|
17107
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
17108
|
+
name: /* @__PURE__ */ string$1(),
|
|
17109
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17174
17110
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
17175
17111
|
"daily",
|
|
17176
17112
|
"weekly",
|
|
@@ -17178,19 +17114,12 @@ const generatedFocusOperations = [
|
|
|
17178
17114
|
"monthly"
|
|
17179
17115
|
]),
|
|
17180
17116
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
17181
|
-
|
|
17117
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17118
|
+
target_seconds: /* @__PURE__ */ number$2(),
|
|
17119
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17120
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17182
17121
|
client_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17183
|
-
|
|
17184
|
-
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17185
|
-
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
17186
|
-
icon: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17187
|
-
monthly_anchor: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["calendar", "first_workday"])),
|
|
17188
|
-
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
17189
|
-
project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17190
|
-
tag_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17191
|
-
target_seconds: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17192
|
-
task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
17193
|
-
weekdays: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
17122
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
17194
17123
|
}) }),
|
|
17195
17124
|
execute: (input, { client }) => {
|
|
17196
17125
|
const data = input;
|
|
@@ -18157,17 +18086,9 @@ const generatedFocusOperations = [
|
|
|
18157
18086
|
mcp: { entityTool: "projects" },
|
|
18158
18087
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
18159
18088
|
payload: /* @__PURE__ */ looseObject({
|
|
18160
|
-
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18161
|
-
completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
|
|
18162
18089
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
18163
18090
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18164
18091
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18165
|
-
rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
18166
|
-
"expire",
|
|
18167
|
-
"carry_all",
|
|
18168
|
-
"carry_over"
|
|
18169
|
-
])),
|
|
18170
|
-
rrule: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18171
18092
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()))
|
|
18172
18093
|
}),
|
|
18173
18094
|
project_id: /* @__PURE__ */ number$2()
|
|
@@ -18713,6 +18634,29 @@ const generatedFocusOperations = [
|
|
|
18713
18634
|
]));
|
|
18714
18635
|
}
|
|
18715
18636
|
},
|
|
18637
|
+
{
|
|
18638
|
+
id: "focus.projects.margin-targets-clear-workspace",
|
|
18639
|
+
family: "focus",
|
|
18640
|
+
resource: "projects",
|
|
18641
|
+
action: "margin-targets-clear-workspace",
|
|
18642
|
+
title: "Margin Targets Clear Workspace Projects",
|
|
18643
|
+
description: "Margin Targets Clear Workspace Projects.",
|
|
18644
|
+
safety: "delete",
|
|
18645
|
+
destructive: true,
|
|
18646
|
+
cli: {
|
|
18647
|
+
group: ["projects", "margin-targets"],
|
|
18648
|
+
command: "clear-workspace",
|
|
18649
|
+
interactive: "default"
|
|
18650
|
+
},
|
|
18651
|
+
mcp: { entityTool: "projects" },
|
|
18652
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
18653
|
+
execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
|
|
18654
|
+
client.httpClient,
|
|
18655
|
+
client.organizationId,
|
|
18656
|
+
client.workspaceIdNumber,
|
|
18657
|
+
void 0
|
|
18658
|
+
]))
|
|
18659
|
+
},
|
|
18716
18660
|
{
|
|
18717
18661
|
id: "focus.projects.margin-targets-get",
|
|
18718
18662
|
family: "focus",
|
|
@@ -21118,10 +21062,8 @@ const generatedFocusOperations = [
|
|
|
21118
21062
|
"weekly",
|
|
21119
21063
|
"monthly"
|
|
21120
21064
|
]),
|
|
21121
|
-
charts: /* @__PURE__ */ unknown$1(),
|
|
21122
21065
|
time: /* @__PURE__ */ string$1(),
|
|
21123
21066
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
21124
|
-
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
21125
21067
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21126
21068
|
recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21127
21069
|
recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
@@ -23132,8 +23074,7 @@ const generatedFocusOperations = [
|
|
|
23132
23074
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
23133
23075
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23134
23076
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23135
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23136
|
-
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23077
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23137
23078
|
}),
|
|
23138
23079
|
execute: (input, { client }) => {
|
|
23139
23080
|
const data = input;
|
|
@@ -23190,8 +23131,7 @@ const generatedFocusOperations = [
|
|
|
23190
23131
|
tag_id: /* @__PURE__ */ number$2(),
|
|
23191
23132
|
team_id: /* @__PURE__ */ number$2(),
|
|
23192
23133
|
user_cf_filter: /* @__PURE__ */ unknown$1(),
|
|
23193
|
-
user_tag_id: /* @__PURE__ */ number$2()
|
|
23194
|
-
xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
|
|
23134
|
+
user_tag_id: /* @__PURE__ */ number$2()
|
|
23195
23135
|
}),
|
|
23196
23136
|
execute: (input, { client }) => {
|
|
23197
23137
|
const data = input;
|
|
@@ -23247,8 +23187,7 @@ const generatedFocusOperations = [
|
|
|
23247
23187
|
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23248
23188
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23249
23189
|
user_cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23250
|
-
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23251
|
-
xTimelineFetchTrigger: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23190
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23252
23191
|
}),
|
|
23253
23192
|
execute: (input, { client }) => {
|
|
23254
23193
|
const data = input;
|
|
@@ -23515,8 +23454,7 @@ const generatedFocusOperations = [
|
|
|
23515
23454
|
mcp: { entityTool: "tasks" },
|
|
23516
23455
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
23517
23456
|
date_from: /* @__PURE__ */ unknown$1(),
|
|
23518
|
-
date_to: /* @__PURE__ */ unknown$1()
|
|
23519
|
-
skip_provider_refresh: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23457
|
+
date_to: /* @__PURE__ */ unknown$1()
|
|
23520
23458
|
}),
|
|
23521
23459
|
execute: (input, { client }) => {
|
|
23522
23460
|
const data = input;
|
|
@@ -23526,7 +23464,6 @@ const generatedFocusOperations = [
|
|
|
23526
23464
|
client.workspaceIdNumber,
|
|
23527
23465
|
data.date_from,
|
|
23528
23466
|
data.date_to,
|
|
23529
|
-
data.skip_provider_refresh,
|
|
23530
23467
|
void 0
|
|
23531
23468
|
]));
|
|
23532
23469
|
}
|
|
@@ -24113,8 +24050,7 @@ const generatedFocusOperations = [
|
|
|
24113
24050
|
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
24114
24051
|
"project",
|
|
24115
24052
|
"task",
|
|
24116
|
-
"description"
|
|
24117
|
-
"tags"
|
|
24053
|
+
"description"
|
|
24118
24054
|
]) })),
|
|
24119
24055
|
disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
24120
24056
|
}) }),
|
|
@@ -24317,7 +24253,6 @@ const generatedFocusOperations = [
|
|
|
24317
24253
|
expand_calendar_event: /* @__PURE__ */ unknown$1(),
|
|
24318
24254
|
include_taskless: /* @__PURE__ */ unknown$1(),
|
|
24319
24255
|
order_by: /* @__PURE__ */ unknown$1(),
|
|
24320
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
24321
24256
|
status_id: /* @__PURE__ */ number$2(),
|
|
24322
24257
|
task_id: /* @__PURE__ */ number$2(),
|
|
24323
24258
|
type: /* @__PURE__ */ unknown$1()
|
|
@@ -25935,9 +25870,6 @@ const generatedFocusOperations = [
|
|
|
25935
25870
|
has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25936
25871
|
import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25937
25872
|
new_users_trial_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25938
|
-
notify_project_alerts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25939
|
-
notify_project_member_added: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25940
|
-
notify_task_assigned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25941
25873
|
onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25942
25874
|
onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25943
25875
|
onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -27984,4 +27916,4 @@ Common commands:
|
|
|
27984
27916
|
//#endregion
|
|
27985
27917
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
27986
27918
|
|
|
27987
|
-
//# sourceMappingURL=program-
|
|
27919
|
+
//# sourceMappingURL=program-D8ebslOU.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-D8ebslOU.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
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.16",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|