@togglhq/cli 1.11.86 → 1.11.87
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-C2DB7NCd.js → program-Cgzj1q4d.js} +315 -30
- 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-Cgzj1q4d.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-Cgzj1q4d.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -5495,10 +5495,6 @@ function _joinExpects$1(values$1, separator) {
|
|
|
5495
5495
|
*/
|
|
5496
5496
|
const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
5497
5497
|
/**
|
|
5498
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
|
|
5499
|
-
*/
|
|
5500
|
-
const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
|
|
5501
|
-
/**
|
|
5502
5498
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
|
|
5503
5499
|
* space as a date/time separator and an optional space before the UTC offset.
|
|
5504
5500
|
*/
|
|
@@ -5552,22 +5548,6 @@ function isoDate$1(message$1) {
|
|
|
5552
5548
|
};
|
|
5553
5549
|
}
|
|
5554
5550
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5555
|
-
function isoDateTime$1(message$1) {
|
|
5556
|
-
return {
|
|
5557
|
-
kind: "validation",
|
|
5558
|
-
type: "iso_date_time",
|
|
5559
|
-
reference: isoDateTime$1,
|
|
5560
|
-
async: false,
|
|
5561
|
-
expects: null,
|
|
5562
|
-
requirement: ISO_DATE_TIME_REGEX$1,
|
|
5563
|
-
message: message$1,
|
|
5564
|
-
"~run"(dataset, config$1) {
|
|
5565
|
-
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
|
|
5566
|
-
return dataset;
|
|
5567
|
-
}
|
|
5568
|
-
};
|
|
5569
|
-
}
|
|
5570
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
5571
5551
|
function isoTimestamp(message$1) {
|
|
5572
5552
|
return {
|
|
5573
5553
|
kind: "validation",
|
|
@@ -10873,7 +10853,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10873
10853
|
]))
|
|
10874
10854
|
});
|
|
10875
10855
|
//#endregion
|
|
10876
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10856
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10877
10857
|
async function getInvitations(httpClient, signal) {
|
|
10878
10858
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10879
10859
|
}
|
|
@@ -10890,7 +10870,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10890
10870
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10891
10871
|
}
|
|
10892
10872
|
//#endregion
|
|
10893
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10873
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10894
10874
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10895
10875
|
const searchParams = new URLSearchParams();
|
|
10896
10876
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10902,7 +10882,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10902
10882
|
return searchParams;
|
|
10903
10883
|
}
|
|
10904
10884
|
//#endregion
|
|
10905
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10885
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10906
10886
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10907
10887
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10908
10888
|
}
|
|
@@ -10916,7 +10896,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10916
10896
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10917
10897
|
}
|
|
10918
10898
|
//#endregion
|
|
10919
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10899
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10920
10900
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10921
10901
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10922
10902
|
}
|
|
@@ -10925,7 +10905,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
|
|
|
10925
10905
|
}
|
|
10926
10906
|
const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
|
|
10927
10907
|
working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
|
|
10928
|
-
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */
|
|
10908
|
+
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
|
|
10929
10909
|
weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
|
|
10930
10910
|
});
|
|
10931
10911
|
const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
@@ -10936,7 +10916,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10936
10916
|
});
|
|
10937
10917
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10938
10918
|
//#endregion
|
|
10939
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10919
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10940
10920
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10941
10921
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10942
10922
|
signal,
|
|
@@ -10947,12 +10927,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10947
10927
|
})).json();
|
|
10948
10928
|
}
|
|
10949
10929
|
//#endregion
|
|
10950
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10930
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10951
10931
|
async function getStatus(httpClient, signal) {
|
|
10952
10932
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10953
10933
|
}
|
|
10954
10934
|
//#endregion
|
|
10955
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10935
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10956
10936
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10957
10937
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10958
10938
|
signal,
|
|
@@ -10980,7 +10960,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10980
10960
|
return response.json();
|
|
10981
10961
|
}
|
|
10982
10962
|
//#endregion
|
|
10983
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10963
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.88_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_7700fb0907da30fddd69f8a9c0218b42/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10984
10964
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10985
10965
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10986
10966
|
}
|
|
@@ -14849,6 +14829,61 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
|
|
|
14849
14829
|
}).json();
|
|
14850
14830
|
}
|
|
14851
14831
|
//#endregion
|
|
14832
|
+
//#region ../focus-queries/dist/designations/requests.ts
|
|
14833
|
+
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
|
|
14834
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
14835
|
+
signal,
|
|
14836
|
+
searchParams: buildSearchParams$2({
|
|
14837
|
+
name,
|
|
14838
|
+
page,
|
|
14839
|
+
per_page,
|
|
14840
|
+
order_by
|
|
14841
|
+
})
|
|
14842
|
+
}).json();
|
|
14843
|
+
}
|
|
14844
|
+
async function createWorkspaceDesignation(httpClient, organization_id, workspace_id, data, signal) {
|
|
14845
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
14846
|
+
signal,
|
|
14847
|
+
json: data
|
|
14848
|
+
}).json();
|
|
14849
|
+
}
|
|
14850
|
+
async function bulkCreateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
14851
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
14852
|
+
signal,
|
|
14853
|
+
json: data
|
|
14854
|
+
}).json();
|
|
14855
|
+
}
|
|
14856
|
+
async function bulkDeleteWorkspaceDesignations(httpClient, organization_id, workspace_id, ids, all_or_none, signal) {
|
|
14857
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
14858
|
+
signal,
|
|
14859
|
+
searchParams: buildSearchParams$2({
|
|
14860
|
+
ids,
|
|
14861
|
+
all_or_none
|
|
14862
|
+
})
|
|
14863
|
+
}).json();
|
|
14864
|
+
}
|
|
14865
|
+
async function bulkUpdateWorkspaceDesignations(httpClient, organization_id, workspace_id, data, signal) {
|
|
14866
|
+
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/bulk`, {
|
|
14867
|
+
signal,
|
|
14868
|
+
json: data
|
|
14869
|
+
}).json();
|
|
14870
|
+
}
|
|
14871
|
+
async function updateWorkspaceDesignationMembers(httpClient, organization_id, workspace_id, data, signal) {
|
|
14872
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/members`, {
|
|
14873
|
+
signal,
|
|
14874
|
+
json: data
|
|
14875
|
+
}).json();
|
|
14876
|
+
}
|
|
14877
|
+
async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
|
|
14878
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
|
|
14879
|
+
}
|
|
14880
|
+
async function updateWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, data, signal) {
|
|
14881
|
+
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, {
|
|
14882
|
+
signal,
|
|
14883
|
+
json: data
|
|
14884
|
+
}).json();
|
|
14885
|
+
}
|
|
14886
|
+
//#endregion
|
|
14852
14887
|
//#region ../focus-queries/dist/goals/requests.ts
|
|
14853
14888
|
async function createGoal(httpClient, organization_id, workspace_id, data, signal) {
|
|
14854
14889
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals`, {
|
|
@@ -16995,6 +17030,256 @@ const generatedFocusOperations = [
|
|
|
16995
17030
|
]));
|
|
16996
17031
|
}
|
|
16997
17032
|
},
|
|
17033
|
+
{
|
|
17034
|
+
id: "focus.designations.bulk-create-workspace",
|
|
17035
|
+
family: "focus",
|
|
17036
|
+
resource: "designations",
|
|
17037
|
+
action: "bulk-create-workspace",
|
|
17038
|
+
title: "Bulk Create Workspace Designations",
|
|
17039
|
+
description: "Bulk Create Workspace Designations.",
|
|
17040
|
+
safety: "create",
|
|
17041
|
+
destructive: false,
|
|
17042
|
+
cli: {
|
|
17043
|
+
group: ["designations", "bulk"],
|
|
17044
|
+
command: "create-workspace",
|
|
17045
|
+
interactive: "default"
|
|
17046
|
+
},
|
|
17047
|
+
mcp: { entityTool: "designations" },
|
|
17048
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17049
|
+
name: /* @__PURE__ */ string$1(),
|
|
17050
|
+
member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
17051
|
+
})) }) }),
|
|
17052
|
+
execute: (input, { client }) => {
|
|
17053
|
+
const data = input;
|
|
17054
|
+
return client.runGeneratedRequest("bulkCreateWorkspaceDesignations", () => callGeneratedRequest(bulkCreateWorkspaceDesignations, [
|
|
17055
|
+
client.httpClient,
|
|
17056
|
+
client.organizationId,
|
|
17057
|
+
client.workspaceIdNumber,
|
|
17058
|
+
data.payload ?? data.data ?? data,
|
|
17059
|
+
void 0
|
|
17060
|
+
]));
|
|
17061
|
+
}
|
|
17062
|
+
},
|
|
17063
|
+
{
|
|
17064
|
+
id: "focus.designations.bulk-delete-workspace",
|
|
17065
|
+
family: "focus",
|
|
17066
|
+
resource: "designations",
|
|
17067
|
+
action: "bulk-delete-workspace",
|
|
17068
|
+
title: "Bulk Delete Workspace Designations",
|
|
17069
|
+
description: "Bulk Delete Workspace Designations.",
|
|
17070
|
+
safety: "delete",
|
|
17071
|
+
destructive: true,
|
|
17072
|
+
cli: {
|
|
17073
|
+
group: ["designations", "bulk"],
|
|
17074
|
+
command: "delete-workspace",
|
|
17075
|
+
interactive: "default"
|
|
17076
|
+
},
|
|
17077
|
+
mcp: { entityTool: "designations" },
|
|
17078
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17079
|
+
all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
17080
|
+
ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
|
|
17081
|
+
}),
|
|
17082
|
+
execute: (input, { client }) => {
|
|
17083
|
+
const data = input;
|
|
17084
|
+
return client.runGeneratedRequest("bulkDeleteWorkspaceDesignations", () => callGeneratedRequest(bulkDeleteWorkspaceDesignations, [
|
|
17085
|
+
client.httpClient,
|
|
17086
|
+
client.organizationId,
|
|
17087
|
+
client.workspaceIdNumber,
|
|
17088
|
+
data.ids,
|
|
17089
|
+
data.all_or_none,
|
|
17090
|
+
void 0
|
|
17091
|
+
]));
|
|
17092
|
+
}
|
|
17093
|
+
},
|
|
17094
|
+
{
|
|
17095
|
+
id: "focus.designations.bulk-update-workspace",
|
|
17096
|
+
family: "focus",
|
|
17097
|
+
resource: "designations",
|
|
17098
|
+
action: "bulk-update-workspace",
|
|
17099
|
+
title: "Bulk Update Workspace Designations",
|
|
17100
|
+
description: "Bulk Update Workspace Designations.",
|
|
17101
|
+
safety: "update",
|
|
17102
|
+
destructive: false,
|
|
17103
|
+
cli: {
|
|
17104
|
+
group: ["designations", "bulk"],
|
|
17105
|
+
command: "update-workspace",
|
|
17106
|
+
interactive: "default"
|
|
17107
|
+
},
|
|
17108
|
+
mcp: { entityTool: "designations" },
|
|
17109
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
17110
|
+
designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17111
|
+
id: /* @__PURE__ */ number$2(),
|
|
17112
|
+
name: /* @__PURE__ */ string$1()
|
|
17113
|
+
})),
|
|
17114
|
+
all_or_none: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
17115
|
+
}) }),
|
|
17116
|
+
execute: (input, { client }) => {
|
|
17117
|
+
const data = input;
|
|
17118
|
+
return client.runGeneratedRequest("bulkUpdateWorkspaceDesignations", () => callGeneratedRequest(bulkUpdateWorkspaceDesignations, [
|
|
17119
|
+
client.httpClient,
|
|
17120
|
+
client.organizationId,
|
|
17121
|
+
client.workspaceIdNumber,
|
|
17122
|
+
data.payload ?? data.data ?? data,
|
|
17123
|
+
void 0
|
|
17124
|
+
]));
|
|
17125
|
+
}
|
|
17126
|
+
},
|
|
17127
|
+
{
|
|
17128
|
+
id: "focus.designations.create-workspace",
|
|
17129
|
+
family: "focus",
|
|
17130
|
+
resource: "designations",
|
|
17131
|
+
action: "create-workspace",
|
|
17132
|
+
title: "Create Workspace Designations",
|
|
17133
|
+
description: "Create Workspace Designations.",
|
|
17134
|
+
safety: "create",
|
|
17135
|
+
destructive: false,
|
|
17136
|
+
cli: {
|
|
17137
|
+
group: ["designations"],
|
|
17138
|
+
command: "create-workspace",
|
|
17139
|
+
interactive: "default"
|
|
17140
|
+
},
|
|
17141
|
+
mcp: { entityTool: "designations" },
|
|
17142
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
17143
|
+
name: /* @__PURE__ */ string$1(),
|
|
17144
|
+
member_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()))
|
|
17145
|
+
}) }),
|
|
17146
|
+
execute: (input, { client }) => {
|
|
17147
|
+
const data = input;
|
|
17148
|
+
return client.runGeneratedRequest("createWorkspaceDesignation", () => callGeneratedRequest(createWorkspaceDesignation, [
|
|
17149
|
+
client.httpClient,
|
|
17150
|
+
client.organizationId,
|
|
17151
|
+
client.workspaceIdNumber,
|
|
17152
|
+
data.payload ?? data.data ?? data,
|
|
17153
|
+
void 0
|
|
17154
|
+
]));
|
|
17155
|
+
}
|
|
17156
|
+
},
|
|
17157
|
+
{
|
|
17158
|
+
id: "focus.designations.delete-workspace",
|
|
17159
|
+
family: "focus",
|
|
17160
|
+
resource: "designations",
|
|
17161
|
+
action: "delete-workspace",
|
|
17162
|
+
title: "Delete Workspace Designations",
|
|
17163
|
+
description: "Delete Workspace Designations.",
|
|
17164
|
+
safety: "delete",
|
|
17165
|
+
destructive: true,
|
|
17166
|
+
cli: {
|
|
17167
|
+
group: ["designations"],
|
|
17168
|
+
command: "delete-workspace",
|
|
17169
|
+
interactive: "default"
|
|
17170
|
+
},
|
|
17171
|
+
mcp: { entityTool: "designations" },
|
|
17172
|
+
inputSchema: /* @__PURE__ */ looseObject({ designation_id: /* @__PURE__ */ number$2() }),
|
|
17173
|
+
execute: (input, { client }) => {
|
|
17174
|
+
const data = input;
|
|
17175
|
+
return client.runGeneratedRequest("deleteWorkspaceDesignation", () => callGeneratedRequest(deleteWorkspaceDesignation, [
|
|
17176
|
+
client.httpClient,
|
|
17177
|
+
client.organizationId,
|
|
17178
|
+
client.workspaceIdNumber,
|
|
17179
|
+
data.designation_id,
|
|
17180
|
+
void 0
|
|
17181
|
+
]));
|
|
17182
|
+
}
|
|
17183
|
+
},
|
|
17184
|
+
{
|
|
17185
|
+
id: "focus.designations.get-workspace-designations",
|
|
17186
|
+
family: "focus",
|
|
17187
|
+
resource: "designations",
|
|
17188
|
+
action: "get-workspace-designations",
|
|
17189
|
+
title: "Get Workspace Designations Designations",
|
|
17190
|
+
description: "Get Workspace Designations Designations.",
|
|
17191
|
+
safety: "read",
|
|
17192
|
+
destructive: false,
|
|
17193
|
+
cli: {
|
|
17194
|
+
group: ["designations"],
|
|
17195
|
+
command: "get-workspace-designations",
|
|
17196
|
+
interactive: "hidden"
|
|
17197
|
+
},
|
|
17198
|
+
mcp: { entityTool: "designations" },
|
|
17199
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17200
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17201
|
+
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17202
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17203
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17204
|
+
}),
|
|
17205
|
+
execute: (input, { client }) => {
|
|
17206
|
+
const data = input;
|
|
17207
|
+
return client.runGeneratedRequest("getWorkspaceDesignationsClassic", () => callGeneratedRequest(getWorkspaceDesignationsClassic, [
|
|
17208
|
+
client.httpClient,
|
|
17209
|
+
client.organizationId,
|
|
17210
|
+
client.workspaceIdNumber,
|
|
17211
|
+
data,
|
|
17212
|
+
void 0
|
|
17213
|
+
]));
|
|
17214
|
+
}
|
|
17215
|
+
},
|
|
17216
|
+
{
|
|
17217
|
+
id: "focus.designations.update-workspace",
|
|
17218
|
+
family: "focus",
|
|
17219
|
+
resource: "designations",
|
|
17220
|
+
action: "update-workspace",
|
|
17221
|
+
title: "Update Workspace Designations",
|
|
17222
|
+
description: "Update Workspace Designations.",
|
|
17223
|
+
safety: "update",
|
|
17224
|
+
destructive: false,
|
|
17225
|
+
cli: {
|
|
17226
|
+
group: ["designations"],
|
|
17227
|
+
command: "update-workspace",
|
|
17228
|
+
interactive: "default"
|
|
17229
|
+
},
|
|
17230
|
+
mcp: { entityTool: "designations" },
|
|
17231
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17232
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
17233
|
+
payload: /* @__PURE__ */ looseObject({ name: /* @__PURE__ */ string$1() })
|
|
17234
|
+
}),
|
|
17235
|
+
execute: (input, { client }) => {
|
|
17236
|
+
const data = input;
|
|
17237
|
+
return client.runGeneratedRequest("updateWorkspaceDesignation", () => callGeneratedRequest(updateWorkspaceDesignation, [
|
|
17238
|
+
client.httpClient,
|
|
17239
|
+
client.organizationId,
|
|
17240
|
+
client.workspaceIdNumber,
|
|
17241
|
+
data.designation_id,
|
|
17242
|
+
data.payload ?? data.data ?? data,
|
|
17243
|
+
void 0
|
|
17244
|
+
]));
|
|
17245
|
+
}
|
|
17246
|
+
},
|
|
17247
|
+
{
|
|
17248
|
+
id: "focus.designations.update-workspace-designation-members",
|
|
17249
|
+
family: "focus",
|
|
17250
|
+
resource: "designations",
|
|
17251
|
+
action: "update-workspace-designation-members",
|
|
17252
|
+
title: "Update Workspace Designation Members Designations",
|
|
17253
|
+
description: "Update Workspace Designation Members Designations.",
|
|
17254
|
+
safety: "update",
|
|
17255
|
+
destructive: false,
|
|
17256
|
+
cli: {
|
|
17257
|
+
group: ["designations"],
|
|
17258
|
+
command: "update-workspace-designation-members",
|
|
17259
|
+
interactive: "default"
|
|
17260
|
+
},
|
|
17261
|
+
mcp: { entityTool: "designations" },
|
|
17262
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
17263
|
+
add: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17264
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
17265
|
+
toggl_user_id: /* @__PURE__ */ number$2()
|
|
17266
|
+
}))),
|
|
17267
|
+
remove: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17268
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
17269
|
+
toggl_user_id: /* @__PURE__ */ number$2()
|
|
17270
|
+
})))
|
|
17271
|
+
}) }),
|
|
17272
|
+
execute: (input, { client }) => {
|
|
17273
|
+
const data = input;
|
|
17274
|
+
return client.runGeneratedRequest("updateWorkspaceDesignationMembers", () => callGeneratedRequest(updateWorkspaceDesignationMembers, [
|
|
17275
|
+
client.httpClient,
|
|
17276
|
+
client.organizationId,
|
|
17277
|
+
client.workspaceIdNumber,
|
|
17278
|
+
data.payload ?? data.data ?? data,
|
|
17279
|
+
void 0
|
|
17280
|
+
]));
|
|
17281
|
+
}
|
|
17282
|
+
},
|
|
16998
17283
|
{
|
|
16999
17284
|
id: "focus.goals.create",
|
|
17000
17285
|
family: "focus",
|
|
@@ -28239,4 +28524,4 @@ Common commands:
|
|
|
28239
28524
|
//#endregion
|
|
28240
28525
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
28241
28526
|
|
|
28242
|
-
//# sourceMappingURL=program-
|
|
28527
|
+
//# sourceMappingURL=program-Cgzj1q4d.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-Cgzj1q4d.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.87",
|
|
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.88",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|