@togglhq/cli 1.11.162 → 1.11.163
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-C6cl2Gsa.js → program-DxdyFEgc.js} +68 -125
- 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-DxdyFEgc.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-DxdyFEgc.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10641,7 +10641,7 @@ async function bulkSetDayDurationWithOrg(httpClient, organization_id, workspace_
|
|
|
10641
10641
|
json: data
|
|
10642
10642
|
}).json();
|
|
10643
10643
|
}
|
|
10644
|
-
async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, workspace_id, { date_from, date_to, task_id, status_id,
|
|
10644
|
+
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
10645
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/stream`, {
|
|
10646
10646
|
signal,
|
|
10647
10647
|
searchParams: buildSearchParams$2({
|
|
@@ -10649,7 +10649,6 @@ async function getStreamTimeEntriesRangeWithOrg(httpClient, organization_id, wor
|
|
|
10649
10649
|
date_to,
|
|
10650
10650
|
task_id,
|
|
10651
10651
|
status_id,
|
|
10652
|
-
project_id,
|
|
10653
10652
|
type,
|
|
10654
10653
|
order_by,
|
|
10655
10654
|
archived,
|
|
@@ -10800,7 +10799,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10800
10799
|
]))
|
|
10801
10800
|
});
|
|
10802
10801
|
//#endregion
|
|
10803
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10802
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10804
10803
|
async function getInvitations(httpClient, signal) {
|
|
10805
10804
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10806
10805
|
}
|
|
@@ -10817,7 +10816,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10817
10816
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10818
10817
|
}
|
|
10819
10818
|
//#endregion
|
|
10820
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10819
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10821
10820
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10822
10821
|
const searchParams = new URLSearchParams();
|
|
10823
10822
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10829,7 +10828,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10829
10828
|
return searchParams;
|
|
10830
10829
|
}
|
|
10831
10830
|
//#endregion
|
|
10832
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10831
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10833
10832
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10834
10833
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10835
10834
|
}
|
|
@@ -10843,7 +10842,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10843
10842
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10844
10843
|
}
|
|
10845
10844
|
//#endregion
|
|
10846
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10845
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10847
10846
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10848
10847
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10849
10848
|
}
|
|
@@ -10863,7 +10862,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10863
10862
|
});
|
|
10864
10863
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10865
10864
|
//#endregion
|
|
10866
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10865
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10867
10866
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10868
10867
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10869
10868
|
signal,
|
|
@@ -10874,12 +10873,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10874
10873
|
})).json();
|
|
10875
10874
|
}
|
|
10876
10875
|
//#endregion
|
|
10877
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10876
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10878
10877
|
async function getStatus(httpClient, signal) {
|
|
10879
10878
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10880
10879
|
}
|
|
10881
10880
|
//#endregion
|
|
10882
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10881
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10883
10882
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10884
10883
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10885
10884
|
signal,
|
|
@@ -10907,7 +10906,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10907
10906
|
return response.json();
|
|
10908
10907
|
}
|
|
10909
10908
|
//#endregion
|
|
10910
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10909
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.146_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_aa195945e93b6d8fd237e53563aa69b2/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10911
10910
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10912
10911
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10913
10912
|
}
|
|
@@ -14657,14 +14656,13 @@ async function checkWorkspaceBillableRateConflicts(httpClient, organization_id,
|
|
|
14657
14656
|
}
|
|
14658
14657
|
//#endregion
|
|
14659
14658
|
//#region ../focus-queries/dist/capacities/requests.ts
|
|
14660
|
-
async function capacityGetComputations(httpClient, organization_id, workspace_id, group, { start_date, end_date,
|
|
14659
|
+
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
14660
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/capacities/${group}`, {
|
|
14662
14661
|
signal,
|
|
14663
14662
|
searchParams: buildSearchParams$2({
|
|
14663
|
+
user_id,
|
|
14664
14664
|
start_date,
|
|
14665
14665
|
end_date,
|
|
14666
|
-
user_id,
|
|
14667
|
-
team_id,
|
|
14668
14666
|
private: private_,
|
|
14669
14667
|
task_source,
|
|
14670
14668
|
unit,
|
|
@@ -14724,15 +14722,6 @@ async function updateCustomField(httpClient, organization_id, workspace_id, cust
|
|
|
14724
14722
|
async function deleteCustomField(httpClient, organization_id, workspace_id, custom_field_id, signal) {
|
|
14725
14723
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}`, { signal }).json();
|
|
14726
14724
|
}
|
|
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
14725
|
async function getCustomFieldOptionsClassic(httpClient, organization_id, workspace_id, custom_field_id, { name, page, per_page, order_by } = {}, signal) {
|
|
14737
14726
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/custom-fields/${custom_field_id}/options`, {
|
|
14738
14727
|
signal,
|
|
@@ -15040,6 +15029,9 @@ async function setWorkspaceProjectMarginTarget(httpClient, organization_id, work
|
|
|
15040
15029
|
json: data
|
|
15041
15030
|
}).json();
|
|
15042
15031
|
}
|
|
15032
|
+
async function clearWorkspaceProjectMarginTarget(httpClient, organization_id, workspace_id, signal) {
|
|
15033
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/workspace`, { signal }).json();
|
|
15034
|
+
}
|
|
15043
15035
|
async function getProjectMarginTarget(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
15044
15036
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/project-margin-targets/${project_id}`, { signal }).json();
|
|
15045
15037
|
}
|
|
@@ -15343,10 +15335,9 @@ async function updateTaskEstimateAllocations(httpClient, organization_id, worksp
|
|
|
15343
15335
|
}
|
|
15344
15336
|
//#endregion
|
|
15345
15337
|
//#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
|
|
15338
|
+
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
15339
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-project`, {
|
|
15348
15340
|
signal,
|
|
15349
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15350
15341
|
searchParams: buildSearchParams$2({
|
|
15351
15342
|
project_id,
|
|
15352
15343
|
source,
|
|
@@ -15379,10 +15370,9 @@ async function getUserTaskGroupsByProject(httpClient, organization_id, workspace
|
|
|
15379
15370
|
})
|
|
15380
15371
|
}).json();
|
|
15381
15372
|
}
|
|
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
|
|
15373
|
+
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
15374
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/users/by-team`, {
|
|
15384
15375
|
signal,
|
|
15385
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15386
15376
|
searchParams: buildSearchParams$2({
|
|
15387
15377
|
team_id,
|
|
15388
15378
|
project_id,
|
|
@@ -15415,10 +15405,9 @@ async function getUserTaskGroupsByTeam(httpClient, organization_id, workspace_id
|
|
|
15415
15405
|
})
|
|
15416
15406
|
}).json();
|
|
15417
15407
|
}
|
|
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
|
|
15408
|
+
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
15409
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/groups/${group}`, {
|
|
15420
15410
|
signal,
|
|
15421
|
-
headers: { "X-Timeline-Fetch-Trigger": xTimelineFetchTrigger },
|
|
15422
15411
|
searchParams: buildSearchParams$2({
|
|
15423
15412
|
source,
|
|
15424
15413
|
priority,
|
|
@@ -16106,7 +16095,6 @@ const generatedFocusOperations = [
|
|
|
16106
16095
|
private_: /* @__PURE__ */ unknown$1(),
|
|
16107
16096
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16108
16097
|
task_source: /* @__PURE__ */ unknown$1(),
|
|
16109
|
-
team_id: /* @__PURE__ */ number$2(),
|
|
16110
16098
|
unit: /* @__PURE__ */ unknown$1(),
|
|
16111
16099
|
user_id: /* @__PURE__ */ number$2()
|
|
16112
16100
|
}),
|
|
@@ -16547,33 +16535,6 @@ const generatedFocusOperations = [
|
|
|
16547
16535
|
]));
|
|
16548
16536
|
}
|
|
16549
16537
|
},
|
|
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
16538
|
{
|
|
16578
16539
|
id: "focus.custom-fields.list",
|
|
16579
16540
|
family: "focus",
|
|
@@ -16743,37 +16704,6 @@ const generatedFocusOperations = [
|
|
|
16743
16704
|
]));
|
|
16744
16705
|
}
|
|
16745
16706
|
},
|
|
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
16707
|
{
|
|
16778
16708
|
id: "focus.custom-fields.update",
|
|
16779
16709
|
family: "focus",
|
|
@@ -16920,7 +16850,13 @@ const generatedFocusOperations = [
|
|
|
16920
16850
|
},
|
|
16921
16851
|
mcp: { entityTool: "goals" },
|
|
16922
16852
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16853
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
16923
16854
|
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
16855
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16856
|
+
icon: /* @__PURE__ */ string$1(),
|
|
16857
|
+
monthly_anchor: /* @__PURE__ */ picklist$1(["calendar", "first_workday"]),
|
|
16858
|
+
name: /* @__PURE__ */ string$1(),
|
|
16859
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16924
16860
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
16925
16861
|
"daily",
|
|
16926
16862
|
"weekly",
|
|
@@ -16928,18 +16864,12 @@ const generatedFocusOperations = [
|
|
|
16928
16864
|
"monthly"
|
|
16929
16865
|
]),
|
|
16930
16866
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
16867
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16931
16868
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
16932
|
-
|
|
16869
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16870
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16933
16871
|
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()))
|
|
16872
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
16943
16873
|
}) }),
|
|
16944
16874
|
execute: (input, { client }) => {
|
|
16945
16875
|
const data = input;
|
|
@@ -17045,6 +16975,13 @@ const generatedFocusOperations = [
|
|
|
17045
16975
|
},
|
|
17046
16976
|
mcp: { entityTool: "goals" },
|
|
17047
16977
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16978
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
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()),
|
|
17048
16985
|
recurrence: /* @__PURE__ */ picklist$1([
|
|
17049
16986
|
"daily",
|
|
17050
16987
|
"weekly",
|
|
@@ -17052,19 +16989,12 @@ const generatedFocusOperations = [
|
|
|
17052
16989
|
"monthly"
|
|
17053
16990
|
]),
|
|
17054
16991
|
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
17055
|
-
|
|
16992
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16993
|
+
target_seconds: /* @__PURE__ */ number$2(),
|
|
16994
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16995
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
17056
16996
|
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()))
|
|
16997
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
17068
16998
|
}) }),
|
|
17069
16999
|
execute: (input, { client }) => {
|
|
17070
17000
|
const data = input;
|
|
@@ -18579,6 +18509,29 @@ const generatedFocusOperations = [
|
|
|
18579
18509
|
]));
|
|
18580
18510
|
}
|
|
18581
18511
|
},
|
|
18512
|
+
{
|
|
18513
|
+
id: "focus.projects.margin-targets-clear-workspace",
|
|
18514
|
+
family: "focus",
|
|
18515
|
+
resource: "projects",
|
|
18516
|
+
action: "margin-targets-clear-workspace",
|
|
18517
|
+
title: "Margin Targets Clear Workspace Projects",
|
|
18518
|
+
description: "Margin Targets Clear Workspace Projects.",
|
|
18519
|
+
safety: "delete",
|
|
18520
|
+
destructive: true,
|
|
18521
|
+
cli: {
|
|
18522
|
+
group: ["projects", "margin-targets"],
|
|
18523
|
+
command: "clear-workspace",
|
|
18524
|
+
interactive: "default"
|
|
18525
|
+
},
|
|
18526
|
+
mcp: { entityTool: "projects" },
|
|
18527
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
18528
|
+
execute: (_input, { client }) => client.runGeneratedRequest("clearWorkspaceProjectMarginTarget", () => callGeneratedRequest(clearWorkspaceProjectMarginTarget, [
|
|
18529
|
+
client.httpClient,
|
|
18530
|
+
client.organizationId,
|
|
18531
|
+
client.workspaceIdNumber,
|
|
18532
|
+
void 0
|
|
18533
|
+
]))
|
|
18534
|
+
},
|
|
18582
18535
|
{
|
|
18583
18536
|
id: "focus.projects.margin-targets-get",
|
|
18584
18537
|
family: "focus",
|
|
@@ -20981,7 +20934,7 @@ const generatedFocusOperations = [
|
|
|
20981
20934
|
cli: {
|
|
20982
20935
|
group: ["reportschedules"],
|
|
20983
20936
|
command: "upsert-saved-view-schedule",
|
|
20984
|
-
interactive: "
|
|
20937
|
+
interactive: "default"
|
|
20985
20938
|
},
|
|
20986
20939
|
mcp: { entityTool: "reportschedules" },
|
|
20987
20940
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -20992,10 +20945,8 @@ const generatedFocusOperations = [
|
|
|
20992
20945
|
"weekly",
|
|
20993
20946
|
"monthly"
|
|
20994
20947
|
]),
|
|
20995
|
-
charts: /* @__PURE__ */ unknown$1(),
|
|
20996
20948
|
time: /* @__PURE__ */ string$1(),
|
|
20997
20949
|
day: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20998
|
-
period: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20999
20950
|
recipient_team_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21000
20951
|
recipient_user_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
|
|
21001
20952
|
recipient_workspace_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
@@ -23010,8 +22961,7 @@ const generatedFocusOperations = [
|
|
|
23010
22961
|
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
23011
22962
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23012
22963
|
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())
|
|
22964
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23015
22965
|
}),
|
|
23016
22966
|
execute: (input, { client }) => {
|
|
23017
22967
|
const data = input;
|
|
@@ -23068,8 +23018,7 @@ const generatedFocusOperations = [
|
|
|
23068
23018
|
tag_id: /* @__PURE__ */ number$2(),
|
|
23069
23019
|
team_id: /* @__PURE__ */ number$2(),
|
|
23070
23020
|
user_cf_filter: /* @__PURE__ */ unknown$1(),
|
|
23071
|
-
user_tag_id: /* @__PURE__ */ number$2()
|
|
23072
|
-
xTimelineFetchTrigger: /* @__PURE__ */ unknown$1()
|
|
23021
|
+
user_tag_id: /* @__PURE__ */ number$2()
|
|
23073
23022
|
}),
|
|
23074
23023
|
execute: (input, { client }) => {
|
|
23075
23024
|
const data = input;
|
|
@@ -23125,8 +23074,7 @@ const generatedFocusOperations = [
|
|
|
23125
23074
|
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23126
23075
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23127
23076
|
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())
|
|
23077
|
+
user_tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
23130
23078
|
}),
|
|
23131
23079
|
execute: (input, { client }) => {
|
|
23132
23080
|
const data = input;
|
|
@@ -24091,8 +24039,7 @@ const generatedFocusOperations = [
|
|
|
24091
24039
|
required_fields: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({ kind: /* @__PURE__ */ picklist$1([
|
|
24092
24040
|
"project",
|
|
24093
24041
|
"task",
|
|
24094
|
-
"description"
|
|
24095
|
-
"tags"
|
|
24042
|
+
"description"
|
|
24096
24043
|
]) })),
|
|
24097
24044
|
disallow_billable_override: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
24098
24045
|
}) }),
|
|
@@ -24295,7 +24242,6 @@ const generatedFocusOperations = [
|
|
|
24295
24242
|
expand_calendar_event: /* @__PURE__ */ unknown$1(),
|
|
24296
24243
|
include_taskless: /* @__PURE__ */ unknown$1(),
|
|
24297
24244
|
order_by: /* @__PURE__ */ unknown$1(),
|
|
24298
|
-
project_id: /* @__PURE__ */ number$2(),
|
|
24299
24245
|
status_id: /* @__PURE__ */ number$2(),
|
|
24300
24246
|
task_id: /* @__PURE__ */ number$2(),
|
|
24301
24247
|
type: /* @__PURE__ */ unknown$1()
|
|
@@ -25913,9 +25859,6 @@ const generatedFocusOperations = [
|
|
|
25913
25859
|
has_reached_task_threshold: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25914
25860
|
import_data_banner_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25915
25861
|
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
25862
|
onboarding_checklist_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25920
25863
|
onboarding_flow_dismissed: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
25921
25864
|
onboarding_multi_day_task_created: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
@@ -27971,4 +27914,4 @@ Common commands:
|
|
|
27971
27914
|
//#endregion
|
|
27972
27915
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
27973
27916
|
|
|
27974
|
-
//# sourceMappingURL=program-
|
|
27917
|
+
//# sourceMappingURL=program-DxdyFEgc.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-DxdyFEgc.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.163",
|
|
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.146",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|