@togglhq/cli 1.13.25 → 1.13.27
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-BptyB8fK.js → program-BtzStZXG.js} +163 -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-BtzStZXG.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-BtzStZXG.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10885,7 +10885,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10885
10885
|
]))
|
|
10886
10886
|
});
|
|
10887
10887
|
//#endregion
|
|
10888
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10888
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10889
10889
|
async function getInvitations(httpClient, signal) {
|
|
10890
10890
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10891
10891
|
}
|
|
@@ -10902,7 +10902,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10902
10902
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10903
10903
|
}
|
|
10904
10904
|
//#endregion
|
|
10905
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10905
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10906
10906
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10907
10907
|
const searchParams = new URLSearchParams();
|
|
10908
10908
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10914,7 +10914,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10914
10914
|
return searchParams;
|
|
10915
10915
|
}
|
|
10916
10916
|
//#endregion
|
|
10917
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10917
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10918
10918
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10919
10919
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10920
10920
|
}
|
|
@@ -10928,7 +10928,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10928
10928
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10929
10929
|
}
|
|
10930
10930
|
//#endregion
|
|
10931
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10931
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10932
10932
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10933
10933
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10934
10934
|
}
|
|
@@ -10948,7 +10948,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10948
10948
|
});
|
|
10949
10949
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10950
10950
|
//#endregion
|
|
10951
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10951
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10952
10952
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10953
10953
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10954
10954
|
signal,
|
|
@@ -10959,12 +10959,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10959
10959
|
})).json();
|
|
10960
10960
|
}
|
|
10961
10961
|
//#endregion
|
|
10962
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10962
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10963
10963
|
async function getStatus(httpClient, signal) {
|
|
10964
10964
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10965
10965
|
}
|
|
10966
10966
|
//#endregion
|
|
10967
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10967
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10968
10968
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10969
10969
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10970
10970
|
signal,
|
|
@@ -10992,7 +10992,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10992
10992
|
return response.json();
|
|
10993
10993
|
}
|
|
10994
10994
|
//#endregion
|
|
10995
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10995
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.224_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_039124ebb3e2d3b7c623c03daacde518/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10996
10996
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10997
10997
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10998
10998
|
}
|
|
@@ -15241,6 +15241,30 @@ async function updateWorkspaceDesignationMembers(httpClient, organization_id, wo
|
|
|
15241
15241
|
json: data
|
|
15242
15242
|
}).json();
|
|
15243
15243
|
}
|
|
15244
|
+
async function getProjectDesignations(httpClient, organization_id, workspace_id, project_id, { order_by } = {}, signal) {
|
|
15245
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15246
|
+
signal,
|
|
15247
|
+
searchParams: buildSearchParams$2({ order_by })
|
|
15248
|
+
}).json();
|
|
15249
|
+
}
|
|
15250
|
+
async function createProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15251
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15252
|
+
signal,
|
|
15253
|
+
json: data
|
|
15254
|
+
}).json();
|
|
15255
|
+
}
|
|
15256
|
+
async function deleteProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15257
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15258
|
+
signal,
|
|
15259
|
+
json: data
|
|
15260
|
+
}).json();
|
|
15261
|
+
}
|
|
15262
|
+
async function updateProjectDesignations(httpClient, organization_id, workspace_id, project_id, data, signal) {
|
|
15263
|
+
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/designations/projects/${project_id}`, {
|
|
15264
|
+
signal,
|
|
15265
|
+
json: data
|
|
15266
|
+
}).json();
|
|
15267
|
+
}
|
|
15244
15268
|
async function deleteWorkspaceDesignation(httpClient, organization_id, workspace_id, designation_id, signal) {
|
|
15245
15269
|
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/designations/${designation_id}`, { signal }).json();
|
|
15246
15270
|
}
|
|
@@ -17748,6 +17772,40 @@ const generatedFocusOperations = [
|
|
|
17748
17772
|
]));
|
|
17749
17773
|
}
|
|
17750
17774
|
},
|
|
17775
|
+
{
|
|
17776
|
+
id: "focus.designations.create-project",
|
|
17777
|
+
family: "focus",
|
|
17778
|
+
resource: "designations",
|
|
17779
|
+
action: "create-project",
|
|
17780
|
+
title: "Create Project Designations",
|
|
17781
|
+
description: "Create Project Designations.",
|
|
17782
|
+
safety: "create",
|
|
17783
|
+
destructive: false,
|
|
17784
|
+
cli: {
|
|
17785
|
+
group: ["designations"],
|
|
17786
|
+
command: "create-project",
|
|
17787
|
+
interactive: "default"
|
|
17788
|
+
},
|
|
17789
|
+
mcp: { entityTool: "designations" },
|
|
17790
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17791
|
+
payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17792
|
+
designation_id: /* @__PURE__ */ number$2(),
|
|
17793
|
+
estimated_mins: /* @__PURE__ */ number$2()
|
|
17794
|
+
})) }),
|
|
17795
|
+
project_id: /* @__PURE__ */ number$2()
|
|
17796
|
+
}),
|
|
17797
|
+
execute: (input, { client }) => {
|
|
17798
|
+
const data = input;
|
|
17799
|
+
return client.runGeneratedRequest("createProjectDesignations", () => callGeneratedRequest(createProjectDesignations, [
|
|
17800
|
+
client.httpClient,
|
|
17801
|
+
client.organizationId,
|
|
17802
|
+
client.workspaceIdNumber,
|
|
17803
|
+
data.project_id,
|
|
17804
|
+
data.payload ?? data.data ?? data,
|
|
17805
|
+
void 0
|
|
17806
|
+
]));
|
|
17807
|
+
}
|
|
17808
|
+
},
|
|
17751
17809
|
{
|
|
17752
17810
|
id: "focus.designations.create-workspace",
|
|
17753
17811
|
family: "focus",
|
|
@@ -17778,6 +17836,37 @@ const generatedFocusOperations = [
|
|
|
17778
17836
|
]));
|
|
17779
17837
|
}
|
|
17780
17838
|
},
|
|
17839
|
+
{
|
|
17840
|
+
id: "focus.designations.delete-project",
|
|
17841
|
+
family: "focus",
|
|
17842
|
+
resource: "designations",
|
|
17843
|
+
action: "delete-project",
|
|
17844
|
+
title: "Delete Project Designations",
|
|
17845
|
+
description: "Delete Project Designations.",
|
|
17846
|
+
safety: "delete",
|
|
17847
|
+
destructive: true,
|
|
17848
|
+
cli: {
|
|
17849
|
+
group: ["designations"],
|
|
17850
|
+
command: "delete-project",
|
|
17851
|
+
interactive: "default"
|
|
17852
|
+
},
|
|
17853
|
+
mcp: { entityTool: "designations" },
|
|
17854
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17855
|
+
payload: /* @__PURE__ */ looseObject({ ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }),
|
|
17856
|
+
project_id: /* @__PURE__ */ number$2()
|
|
17857
|
+
}),
|
|
17858
|
+
execute: (input, { client }) => {
|
|
17859
|
+
const data = input;
|
|
17860
|
+
return client.runGeneratedRequest("deleteProjectDesignations", () => callGeneratedRequest(deleteProjectDesignations, [
|
|
17861
|
+
client.httpClient,
|
|
17862
|
+
client.organizationId,
|
|
17863
|
+
client.workspaceIdNumber,
|
|
17864
|
+
data.project_id,
|
|
17865
|
+
data.payload ?? data.data ?? data,
|
|
17866
|
+
void 0
|
|
17867
|
+
]));
|
|
17868
|
+
}
|
|
17869
|
+
},
|
|
17781
17870
|
{
|
|
17782
17871
|
id: "focus.designations.delete-workspace",
|
|
17783
17872
|
family: "focus",
|
|
@@ -17805,6 +17894,37 @@ const generatedFocusOperations = [
|
|
|
17805
17894
|
]));
|
|
17806
17895
|
}
|
|
17807
17896
|
},
|
|
17897
|
+
{
|
|
17898
|
+
id: "focus.designations.get-project",
|
|
17899
|
+
family: "focus",
|
|
17900
|
+
resource: "designations",
|
|
17901
|
+
action: "get-project",
|
|
17902
|
+
title: "Get Project Designations",
|
|
17903
|
+
description: "Get Project Designations.",
|
|
17904
|
+
safety: "read",
|
|
17905
|
+
destructive: false,
|
|
17906
|
+
cli: {
|
|
17907
|
+
group: ["designations"],
|
|
17908
|
+
command: "get-project",
|
|
17909
|
+
interactive: "hidden"
|
|
17910
|
+
},
|
|
17911
|
+
mcp: { entityTool: "designations" },
|
|
17912
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17913
|
+
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17914
|
+
project_id: /* @__PURE__ */ number$2()
|
|
17915
|
+
}),
|
|
17916
|
+
execute: (input, { client }) => {
|
|
17917
|
+
const data = input;
|
|
17918
|
+
return client.runGeneratedRequest("getProjectDesignations", () => callGeneratedRequest(getProjectDesignations, [
|
|
17919
|
+
client.httpClient,
|
|
17920
|
+
client.organizationId,
|
|
17921
|
+
client.workspaceIdNumber,
|
|
17922
|
+
data.project_id,
|
|
17923
|
+
data,
|
|
17924
|
+
void 0
|
|
17925
|
+
]));
|
|
17926
|
+
}
|
|
17927
|
+
},
|
|
17808
17928
|
{
|
|
17809
17929
|
id: "focus.designations.get-workspace-designations",
|
|
17810
17930
|
family: "focus",
|
|
@@ -17838,6 +17958,40 @@ const generatedFocusOperations = [
|
|
|
17838
17958
|
]));
|
|
17839
17959
|
}
|
|
17840
17960
|
},
|
|
17961
|
+
{
|
|
17962
|
+
id: "focus.designations.update-project",
|
|
17963
|
+
family: "focus",
|
|
17964
|
+
resource: "designations",
|
|
17965
|
+
action: "update-project",
|
|
17966
|
+
title: "Update Project Designations",
|
|
17967
|
+
description: "Update Project Designations.",
|
|
17968
|
+
safety: "update",
|
|
17969
|
+
destructive: false,
|
|
17970
|
+
cli: {
|
|
17971
|
+
group: ["designations"],
|
|
17972
|
+
command: "update-project",
|
|
17973
|
+
interactive: "default"
|
|
17974
|
+
},
|
|
17975
|
+
mcp: { entityTool: "designations" },
|
|
17976
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17977
|
+
payload: /* @__PURE__ */ looseObject({ designations: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
17978
|
+
estimated_mins: /* @__PURE__ */ number$2(),
|
|
17979
|
+
id: /* @__PURE__ */ number$2()
|
|
17980
|
+
})) }),
|
|
17981
|
+
project_id: /* @__PURE__ */ number$2()
|
|
17982
|
+
}),
|
|
17983
|
+
execute: (input, { client }) => {
|
|
17984
|
+
const data = input;
|
|
17985
|
+
return client.runGeneratedRequest("updateProjectDesignations", () => callGeneratedRequest(updateProjectDesignations, [
|
|
17986
|
+
client.httpClient,
|
|
17987
|
+
client.organizationId,
|
|
17988
|
+
client.workspaceIdNumber,
|
|
17989
|
+
data.project_id,
|
|
17990
|
+
data.payload ?? data.data ?? data,
|
|
17991
|
+
void 0
|
|
17992
|
+
]));
|
|
17993
|
+
}
|
|
17994
|
+
},
|
|
17841
17995
|
{
|
|
17842
17996
|
id: "focus.designations.update-workspace",
|
|
17843
17997
|
family: "focus",
|
|
@@ -29858,4 +30012,4 @@ Common commands:
|
|
|
29858
30012
|
//#endregion
|
|
29859
30013
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29860
30014
|
|
|
29861
|
-
//# sourceMappingURL=program-
|
|
30015
|
+
//# sourceMappingURL=program-BtzStZXG.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-BtzStZXG.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.27",
|
|
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.224",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|