@togglhq/cli 1.11.47 → 1.11.49
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-BceH6fbq.js → program-BgARFH73.js} +298 -11
- 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-BgARFH73.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-BgARFH73.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10110,7 +10110,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
10110
10110
|
}
|
|
10111
10111
|
//#endregion
|
|
10112
10112
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
10113
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
10113
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { include_task_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
10114
10114
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10115
10115
|
signal,
|
|
10116
10116
|
searchParams: buildSearchParams$2({
|
|
@@ -10121,6 +10121,7 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { i
|
|
|
10121
10121
|
task_source,
|
|
10122
10122
|
task_assignee_user_id,
|
|
10123
10123
|
task_assignee_team_id,
|
|
10124
|
+
task_include_unassigned,
|
|
10124
10125
|
task_name,
|
|
10125
10126
|
page,
|
|
10126
10127
|
per_page,
|
|
@@ -11022,7 +11023,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11022
11023
|
]))
|
|
11023
11024
|
});
|
|
11024
11025
|
//#endregion
|
|
11025
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11026
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11026
11027
|
async function getInvitations(httpClient, signal) {
|
|
11027
11028
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11028
11029
|
}
|
|
@@ -11039,7 +11040,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11039
11040
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11040
11041
|
}
|
|
11041
11042
|
//#endregion
|
|
11042
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11043
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11043
11044
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11044
11045
|
const searchParams = new URLSearchParams();
|
|
11045
11046
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11051,7 +11052,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11051
11052
|
return searchParams;
|
|
11052
11053
|
}
|
|
11053
11054
|
//#endregion
|
|
11054
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11055
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11055
11056
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11056
11057
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11057
11058
|
}
|
|
@@ -11065,7 +11066,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11065
11066
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11066
11067
|
}
|
|
11067
11068
|
//#endregion
|
|
11068
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11069
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11069
11070
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11070
11071
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11071
11072
|
}
|
|
@@ -11085,7 +11086,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11085
11086
|
});
|
|
11086
11087
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11087
11088
|
//#endregion
|
|
11088
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11089
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11089
11090
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11090
11091
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11091
11092
|
signal,
|
|
@@ -11096,12 +11097,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11096
11097
|
})).json();
|
|
11097
11098
|
}
|
|
11098
11099
|
//#endregion
|
|
11099
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11100
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11100
11101
|
async function getStatus(httpClient, signal) {
|
|
11101
11102
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11102
11103
|
}
|
|
11103
11104
|
//#endregion
|
|
11104
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11105
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11105
11106
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11106
11107
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11107
11108
|
signal,
|
|
@@ -11129,7 +11130,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11129
11130
|
return response.json();
|
|
11130
11131
|
}
|
|
11131
11132
|
//#endregion
|
|
11132
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11133
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.48_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_db6cca446d82454632a13c76eb0f4f1f/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11133
11134
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11134
11135
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11135
11136
|
}
|
|
@@ -15363,6 +15364,37 @@ async function getPublicHolidaysByUserIds(httpClient, organization_id, { user_id
|
|
|
15363
15364
|
}).json();
|
|
15364
15365
|
}
|
|
15365
15366
|
//#endregion
|
|
15367
|
+
//#region ../focus-queries/dist/publicsharedreports/requests.ts
|
|
15368
|
+
async function openPublicSharedReport(httpClient, token, signal) {
|
|
15369
|
+
return await httpClient.get(`shared/${token}`, { signal }).json();
|
|
15370
|
+
}
|
|
15371
|
+
async function profitabilityPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
15372
|
+
return await httpClient.post(`shared/${token}/profitability`, {
|
|
15373
|
+
signal,
|
|
15374
|
+
json: data,
|
|
15375
|
+
searchParams: buildSearchParams$2({
|
|
15376
|
+
response_format,
|
|
15377
|
+
include_dicts
|
|
15378
|
+
})
|
|
15379
|
+
}).json();
|
|
15380
|
+
}
|
|
15381
|
+
async function queryPublicSharedReport(httpClient, token, data, response_format, include_dicts, signal) {
|
|
15382
|
+
return await httpClient.post(`shared/${token}/query`, {
|
|
15383
|
+
signal,
|
|
15384
|
+
json: data,
|
|
15385
|
+
searchParams: buildSearchParams$2({
|
|
15386
|
+
response_format,
|
|
15387
|
+
include_dicts
|
|
15388
|
+
})
|
|
15389
|
+
}).json();
|
|
15390
|
+
}
|
|
15391
|
+
async function workloadPublicSharedReport(httpClient, token, data, signal) {
|
|
15392
|
+
return await httpClient.post(`shared/${token}/workload`, {
|
|
15393
|
+
signal,
|
|
15394
|
+
json: data
|
|
15395
|
+
}).json();
|
|
15396
|
+
}
|
|
15397
|
+
//#endregion
|
|
15366
15398
|
//#region ../focus-queries/dist/rates/requests.ts
|
|
15367
15399
|
async function getProjectRatesSummary(httpClient, organization_id, workspace_id, { page, rows, order_by, search } = {}, signal) {
|
|
15368
15400
|
const response = await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/rates`, {
|
|
@@ -15524,7 +15556,7 @@ async function updateASavedView(httpClient, workspace_id, id, data, signal) {
|
|
|
15524
15556
|
}
|
|
15525
15557
|
//#endregion
|
|
15526
15558
|
//#region ../focus-queries/dist/search/requests.ts
|
|
15527
|
-
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
|
|
15559
|
+
async function search(httpClient, organization_id, workspace_id, { keyword, per_group, assignee_user_id, assignee_team_id, include_unassigned, project_id, task_id, include_drafts, exclude_calendar_events, group_by_tags, only_me }, signal) {
|
|
15528
15560
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
15529
15561
|
signal,
|
|
15530
15562
|
searchParams: buildSearchParams$2({
|
|
@@ -15532,6 +15564,7 @@ async function search(httpClient, organization_id, workspace_id, { keyword, per_
|
|
|
15532
15564
|
per_group,
|
|
15533
15565
|
assignee_user_id,
|
|
15534
15566
|
assignee_team_id,
|
|
15567
|
+
include_unassigned,
|
|
15535
15568
|
project_id,
|
|
15536
15569
|
task_id,
|
|
15537
15570
|
include_drafts,
|
|
@@ -15576,6 +15609,9 @@ async function getSharedReportsSharedWithMe(httpClient, workspace_id, signal) {
|
|
|
15576
15609
|
async function getSharedReportForViewer(httpClient, workspace_id, id, signal) {
|
|
15577
15610
|
return await httpClient.get(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
15578
15611
|
}
|
|
15612
|
+
async function unshareSharedReport(httpClient, workspace_id, id, signal) {
|
|
15613
|
+
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}`, { signal }).json();
|
|
15614
|
+
}
|
|
15579
15615
|
async function addSharedReportGrants(httpClient, workspace_id, id, data, signal) {
|
|
15580
15616
|
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/grants`, {
|
|
15581
15617
|
signal,
|
|
@@ -15585,6 +15621,21 @@ async function addSharedReportGrants(httpClient, workspace_id, id, data, signal)
|
|
|
15585
15621
|
async function revokeSharedReportGrant(httpClient, workspace_id, id, grant_id, signal) {
|
|
15586
15622
|
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/grants/${grant_id}`, { signal }).json();
|
|
15587
15623
|
}
|
|
15624
|
+
async function mintSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
15625
|
+
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link`, {
|
|
15626
|
+
signal,
|
|
15627
|
+
json: data
|
|
15628
|
+
}).json();
|
|
15629
|
+
}
|
|
15630
|
+
async function revokeSharedReportLink(httpClient, workspace_id, id, signal) {
|
|
15631
|
+
return await httpClient.delete(`workspaces/${workspace_id}/shared-reports/${id}/link`, { signal }).json();
|
|
15632
|
+
}
|
|
15633
|
+
async function rotateSharedReportLink(httpClient, workspace_id, id, data, signal) {
|
|
15634
|
+
return await httpClient.post(`workspaces/${workspace_id}/shared-reports/${id}/link/rotate`, {
|
|
15635
|
+
signal,
|
|
15636
|
+
json: data
|
|
15637
|
+
}).json();
|
|
15638
|
+
}
|
|
15588
15639
|
//#endregion
|
|
15589
15640
|
//#region ../focus-queries/dist/subscriptions/requests.ts
|
|
15590
15641
|
async function getCurrentSubscription(httpClient, organization_id, signal) {
|
|
@@ -19271,6 +19322,130 @@ const generatedFocusOperations = [
|
|
|
19271
19322
|
]));
|
|
19272
19323
|
}
|
|
19273
19324
|
},
|
|
19325
|
+
{
|
|
19326
|
+
id: "focus.publicsharedreports.open-public-shared-report",
|
|
19327
|
+
family: "focus",
|
|
19328
|
+
resource: "publicsharedreports",
|
|
19329
|
+
action: "open-public-shared-report",
|
|
19330
|
+
title: "Open Public Shared Report Publicsharedreports",
|
|
19331
|
+
description: "Open Public Shared Report Publicsharedreports.",
|
|
19332
|
+
safety: "read",
|
|
19333
|
+
destructive: false,
|
|
19334
|
+
cli: {
|
|
19335
|
+
group: ["publicsharedreports"],
|
|
19336
|
+
command: "open-public-shared-report",
|
|
19337
|
+
interactive: "available"
|
|
19338
|
+
},
|
|
19339
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
19340
|
+
inputSchema: /* @__PURE__ */ looseObject({ token: /* @__PURE__ */ string$1() }),
|
|
19341
|
+
execute: (input, { client }) => {
|
|
19342
|
+
const data = input;
|
|
19343
|
+
return client.runGeneratedRequest("openPublicSharedReport", () => callGeneratedRequest(openPublicSharedReport, [
|
|
19344
|
+
client.httpClient,
|
|
19345
|
+
data.token,
|
|
19346
|
+
void 0
|
|
19347
|
+
]));
|
|
19348
|
+
}
|
|
19349
|
+
},
|
|
19350
|
+
{
|
|
19351
|
+
id: "focus.publicsharedreports.profitability-public-shared-report",
|
|
19352
|
+
family: "focus",
|
|
19353
|
+
resource: "publicsharedreports",
|
|
19354
|
+
action: "profitability-public-shared-report",
|
|
19355
|
+
title: "Profitability Public Shared Report Publicsharedreports",
|
|
19356
|
+
description: "Profitability Public Shared Report Publicsharedreports.",
|
|
19357
|
+
safety: "update",
|
|
19358
|
+
destructive: false,
|
|
19359
|
+
cli: {
|
|
19360
|
+
group: ["publicsharedreports"],
|
|
19361
|
+
command: "profitability-public-shared-report",
|
|
19362
|
+
interactive: "default"
|
|
19363
|
+
},
|
|
19364
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
19365
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
19366
|
+
include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
19367
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
19368
|
+
response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["json_row", "hierarchical"])),
|
|
19369
|
+
token: /* @__PURE__ */ string$1()
|
|
19370
|
+
}),
|
|
19371
|
+
execute: (input, { client }) => {
|
|
19372
|
+
const data = input;
|
|
19373
|
+
return client.runGeneratedRequest("profitabilityPublicSharedReport", () => callGeneratedRequest(profitabilityPublicSharedReport, [
|
|
19374
|
+
client.httpClient,
|
|
19375
|
+
data.token,
|
|
19376
|
+
data.payload ?? data.data ?? data,
|
|
19377
|
+
data.response_format,
|
|
19378
|
+
data.include_dicts,
|
|
19379
|
+
void 0
|
|
19380
|
+
]));
|
|
19381
|
+
}
|
|
19382
|
+
},
|
|
19383
|
+
{
|
|
19384
|
+
id: "focus.publicsharedreports.query-public-shared-report",
|
|
19385
|
+
family: "focus",
|
|
19386
|
+
resource: "publicsharedreports",
|
|
19387
|
+
action: "query-public-shared-report",
|
|
19388
|
+
title: "Query Public Shared Report Publicsharedreports",
|
|
19389
|
+
description: "Query Public Shared Report Publicsharedreports.",
|
|
19390
|
+
safety: "update",
|
|
19391
|
+
destructive: false,
|
|
19392
|
+
cli: {
|
|
19393
|
+
group: ["publicsharedreports"],
|
|
19394
|
+
command: "query-public-shared-report",
|
|
19395
|
+
interactive: "default"
|
|
19396
|
+
},
|
|
19397
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
19398
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
19399
|
+
include_dicts: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
19400
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
19401
|
+
response_format: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
19402
|
+
"json_row",
|
|
19403
|
+
"table",
|
|
19404
|
+
"hierarchical"
|
|
19405
|
+
])),
|
|
19406
|
+
token: /* @__PURE__ */ string$1()
|
|
19407
|
+
}),
|
|
19408
|
+
execute: (input, { client }) => {
|
|
19409
|
+
const data = input;
|
|
19410
|
+
return client.runGeneratedRequest("queryPublicSharedReport", () => callGeneratedRequest(queryPublicSharedReport, [
|
|
19411
|
+
client.httpClient,
|
|
19412
|
+
data.token,
|
|
19413
|
+
data.payload ?? data.data ?? data,
|
|
19414
|
+
data.response_format,
|
|
19415
|
+
data.include_dicts,
|
|
19416
|
+
void 0
|
|
19417
|
+
]));
|
|
19418
|
+
}
|
|
19419
|
+
},
|
|
19420
|
+
{
|
|
19421
|
+
id: "focus.publicsharedreports.workload-public-shared-report",
|
|
19422
|
+
family: "focus",
|
|
19423
|
+
resource: "publicsharedreports",
|
|
19424
|
+
action: "workload-public-shared-report",
|
|
19425
|
+
title: "Workload Public Shared Report Publicsharedreports",
|
|
19426
|
+
description: "Workload Public Shared Report Publicsharedreports.",
|
|
19427
|
+
safety: "update",
|
|
19428
|
+
destructive: false,
|
|
19429
|
+
cli: {
|
|
19430
|
+
group: ["publicsharedreports"],
|
|
19431
|
+
command: "workload-public-shared-report",
|
|
19432
|
+
interactive: "default"
|
|
19433
|
+
},
|
|
19434
|
+
mcp: { entityTool: "publicsharedreports" },
|
|
19435
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
19436
|
+
payload: /* @__PURE__ */ looseObject({ chart_key: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()) }),
|
|
19437
|
+
token: /* @__PURE__ */ string$1()
|
|
19438
|
+
}),
|
|
19439
|
+
execute: (input, { client }) => {
|
|
19440
|
+
const data = input;
|
|
19441
|
+
return client.runGeneratedRequest("workloadPublicSharedReport", () => callGeneratedRequest(workloadPublicSharedReport, [
|
|
19442
|
+
client.httpClient,
|
|
19443
|
+
data.token,
|
|
19444
|
+
data.payload ?? data.data ?? data,
|
|
19445
|
+
void 0
|
|
19446
|
+
]));
|
|
19447
|
+
}
|
|
19448
|
+
},
|
|
19274
19449
|
{
|
|
19275
19450
|
id: "focus.rates.billable-check-project-billable-rate-conflicts",
|
|
19276
19451
|
family: "focus",
|
|
@@ -21646,6 +21821,36 @@ const generatedFocusOperations = [
|
|
|
21646
21821
|
void 0
|
|
21647
21822
|
]))
|
|
21648
21823
|
},
|
|
21824
|
+
{
|
|
21825
|
+
id: "focus.sharedreports.mint-shared-report-link",
|
|
21826
|
+
family: "focus",
|
|
21827
|
+
resource: "sharedreports",
|
|
21828
|
+
action: "mint-shared-report-link",
|
|
21829
|
+
title: "Mint Shared Report Link Sharedreports",
|
|
21830
|
+
description: "Mint Shared Report Link Sharedreports.",
|
|
21831
|
+
safety: "update",
|
|
21832
|
+
destructive: false,
|
|
21833
|
+
cli: {
|
|
21834
|
+
group: ["sharedreports"],
|
|
21835
|
+
command: "mint-shared-report-link",
|
|
21836
|
+
interactive: "default"
|
|
21837
|
+
},
|
|
21838
|
+
mcp: { entityTool: "sharedreports" },
|
|
21839
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
21840
|
+
id: /* @__PURE__ */ number$2(),
|
|
21841
|
+
payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
|
|
21842
|
+
}),
|
|
21843
|
+
execute: (input, { client }) => {
|
|
21844
|
+
const data = input;
|
|
21845
|
+
return client.runGeneratedRequest("mintSharedReportLink", () => callGeneratedRequest(mintSharedReportLink, [
|
|
21846
|
+
client.httpClient,
|
|
21847
|
+
client.workspaceIdNumber,
|
|
21848
|
+
data.id,
|
|
21849
|
+
data.payload ?? data.data ?? data,
|
|
21850
|
+
void 0
|
|
21851
|
+
]));
|
|
21852
|
+
}
|
|
21853
|
+
},
|
|
21649
21854
|
{
|
|
21650
21855
|
id: "focus.sharedreports.revoke-shared-report-grant",
|
|
21651
21856
|
family: "focus",
|
|
@@ -21676,6 +21881,62 @@ const generatedFocusOperations = [
|
|
|
21676
21881
|
]));
|
|
21677
21882
|
}
|
|
21678
21883
|
},
|
|
21884
|
+
{
|
|
21885
|
+
id: "focus.sharedreports.revoke-shared-report-link",
|
|
21886
|
+
family: "focus",
|
|
21887
|
+
resource: "sharedreports",
|
|
21888
|
+
action: "revoke-shared-report-link",
|
|
21889
|
+
title: "Revoke Shared Report Link Sharedreports",
|
|
21890
|
+
description: "Revoke Shared Report Link Sharedreports.",
|
|
21891
|
+
safety: "delete",
|
|
21892
|
+
destructive: true,
|
|
21893
|
+
cli: {
|
|
21894
|
+
group: ["sharedreports"],
|
|
21895
|
+
command: "revoke-shared-report-link",
|
|
21896
|
+
interactive: "default"
|
|
21897
|
+
},
|
|
21898
|
+
mcp: { entityTool: "sharedreports" },
|
|
21899
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
21900
|
+
execute: (input, { client }) => {
|
|
21901
|
+
const data = input;
|
|
21902
|
+
return client.runGeneratedRequest("revokeSharedReportLink", () => callGeneratedRequest(revokeSharedReportLink, [
|
|
21903
|
+
client.httpClient,
|
|
21904
|
+
client.workspaceIdNumber,
|
|
21905
|
+
data.id,
|
|
21906
|
+
void 0
|
|
21907
|
+
]));
|
|
21908
|
+
}
|
|
21909
|
+
},
|
|
21910
|
+
{
|
|
21911
|
+
id: "focus.sharedreports.rotate-shared-report-link",
|
|
21912
|
+
family: "focus",
|
|
21913
|
+
resource: "sharedreports",
|
|
21914
|
+
action: "rotate-shared-report-link",
|
|
21915
|
+
title: "Rotate Shared Report Link Sharedreports",
|
|
21916
|
+
description: "Rotate Shared Report Link Sharedreports.",
|
|
21917
|
+
safety: "update",
|
|
21918
|
+
destructive: false,
|
|
21919
|
+
cli: {
|
|
21920
|
+
group: ["sharedreports"],
|
|
21921
|
+
command: "rotate-shared-report-link",
|
|
21922
|
+
interactive: "default"
|
|
21923
|
+
},
|
|
21924
|
+
mcp: { entityTool: "sharedreports" },
|
|
21925
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
21926
|
+
id: /* @__PURE__ */ number$2(),
|
|
21927
|
+
payload: /* @__PURE__ */ looseObject({ expires_at: /* @__PURE__ */ optional$1(apiDateTimeString) })
|
|
21928
|
+
}),
|
|
21929
|
+
execute: (input, { client }) => {
|
|
21930
|
+
const data = input;
|
|
21931
|
+
return client.runGeneratedRequest("rotateSharedReportLink", () => callGeneratedRequest(rotateSharedReportLink, [
|
|
21932
|
+
client.httpClient,
|
|
21933
|
+
client.workspaceIdNumber,
|
|
21934
|
+
data.id,
|
|
21935
|
+
data.payload ?? data.data ?? data,
|
|
21936
|
+
void 0
|
|
21937
|
+
]));
|
|
21938
|
+
}
|
|
21939
|
+
},
|
|
21679
21940
|
{
|
|
21680
21941
|
id: "focus.sharedreports.share-saved-view",
|
|
21681
21942
|
family: "focus",
|
|
@@ -21750,6 +22011,32 @@ const generatedFocusOperations = [
|
|
|
21750
22011
|
]));
|
|
21751
22012
|
}
|
|
21752
22013
|
},
|
|
22014
|
+
{
|
|
22015
|
+
id: "focus.sharedreports.unshare-shared-report",
|
|
22016
|
+
family: "focus",
|
|
22017
|
+
resource: "sharedreports",
|
|
22018
|
+
action: "unshare-shared-report",
|
|
22019
|
+
title: "Unshare Shared Report Sharedreports",
|
|
22020
|
+
description: "Unshare Shared Report Sharedreports.",
|
|
22021
|
+
safety: "delete",
|
|
22022
|
+
destructive: true,
|
|
22023
|
+
cli: {
|
|
22024
|
+
group: ["sharedreports"],
|
|
22025
|
+
command: "unshare-shared-report",
|
|
22026
|
+
interactive: "default"
|
|
22027
|
+
},
|
|
22028
|
+
mcp: { entityTool: "sharedreports" },
|
|
22029
|
+
inputSchema: /* @__PURE__ */ looseObject({ id: /* @__PURE__ */ number$2() }),
|
|
22030
|
+
execute: (input, { client }) => {
|
|
22031
|
+
const data = input;
|
|
22032
|
+
return client.runGeneratedRequest("unshareSharedReport", () => callGeneratedRequest(unshareSharedReport, [
|
|
22033
|
+
client.httpClient,
|
|
22034
|
+
client.workspaceIdNumber,
|
|
22035
|
+
data.id,
|
|
22036
|
+
void 0
|
|
22037
|
+
]));
|
|
22038
|
+
}
|
|
22039
|
+
},
|
|
21753
22040
|
{
|
|
21754
22041
|
id: "focus.statuses.create-status",
|
|
21755
22042
|
family: "focus",
|
|
@@ -28318,4 +28605,4 @@ Common commands:
|
|
|
28318
28605
|
//#endregion
|
|
28319
28606
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
28320
28607
|
|
|
28321
|
-
//# sourceMappingURL=program-
|
|
28608
|
+
//# sourceMappingURL=program-BgARFH73.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-BgARFH73.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.49",
|
|
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.48",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|