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