@togglhq/cli 1.13.69 → 1.13.71
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-CgO1wpBJ.js → program-CWPPfjpx.js} +78 -18
- 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-CWPPfjpx.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-CWPPfjpx.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7953,7 +7953,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
7953
7953
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7954
7954
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7955
7955
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
7956
|
-
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7956
|
+
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Deprecated: use POST or DELETE .../tasks/{task_id}/pinned. Sets the current user's own pin only."))),
|
|
7957
7957
|
position: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1)))),
|
|
7958
7958
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ picklist([
|
|
7959
7959
|
"none",
|
|
@@ -7991,7 +7991,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
7991
7991
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7992
7992
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7993
7993
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
7994
|
-
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7994
|
+
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Deprecated: use POST or DELETE .../tasks/{task_id}/pinned. Sets the current user's own pin only."))),
|
|
7995
7995
|
position: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1)))),
|
|
7996
7996
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ picklist([
|
|
7997
7997
|
"none",
|
|
@@ -10657,6 +10657,12 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
|
|
|
10657
10657
|
})
|
|
10658
10658
|
}).json();
|
|
10659
10659
|
}
|
|
10660
|
+
async function pinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
10661
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal }).json();
|
|
10662
|
+
}
|
|
10663
|
+
async function unpinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
10664
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal }).json();
|
|
10665
|
+
}
|
|
10660
10666
|
async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
10661
10667
|
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
|
|
10662
10668
|
signal,
|
|
@@ -10929,7 +10935,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10929
10935
|
]))
|
|
10930
10936
|
});
|
|
10931
10937
|
//#endregion
|
|
10932
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10938
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10933
10939
|
async function getInvitations(httpClient, signal) {
|
|
10934
10940
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10935
10941
|
}
|
|
@@ -10946,7 +10952,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10946
10952
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10947
10953
|
}
|
|
10948
10954
|
//#endregion
|
|
10949
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10955
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10950
10956
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10951
10957
|
const searchParams = new URLSearchParams();
|
|
10952
10958
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10958,7 +10964,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10958
10964
|
return searchParams;
|
|
10959
10965
|
}
|
|
10960
10966
|
//#endregion
|
|
10961
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10967
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10962
10968
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10963
10969
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10964
10970
|
}
|
|
@@ -10972,7 +10978,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10972
10978
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10973
10979
|
}
|
|
10974
10980
|
//#endregion
|
|
10975
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10981
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10976
10982
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10977
10983
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10978
10984
|
}
|
|
@@ -10992,7 +10998,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10992
10998
|
});
|
|
10993
10999
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10994
11000
|
//#endregion
|
|
10995
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11001
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10996
11002
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10997
11003
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10998
11004
|
signal,
|
|
@@ -11003,12 +11009,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11003
11009
|
})).json();
|
|
11004
11010
|
}
|
|
11005
11011
|
//#endregion
|
|
11006
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11012
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11007
11013
|
async function getStatus(httpClient, signal) {
|
|
11008
11014
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11009
11015
|
}
|
|
11010
11016
|
//#endregion
|
|
11011
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11017
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11012
11018
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11013
11019
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11014
11020
|
signal,
|
|
@@ -11036,7 +11042,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11036
11042
|
return response.json();
|
|
11037
11043
|
}
|
|
11038
11044
|
//#endregion
|
|
11039
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11045
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11040
11046
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11041
11047
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11042
11048
|
}
|
|
@@ -14929,34 +14935,34 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
14929
14935
|
//#endregion
|
|
14930
14936
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
14931
14937
|
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
14932
|
-
return await httpClient.get(`
|
|
14938
|
+
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
14933
14939
|
signal,
|
|
14934
14940
|
searchParams: buildSearchParams$2({ limit })
|
|
14935
14941
|
}).json();
|
|
14936
14942
|
}
|
|
14937
14943
|
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
14938
|
-
return await httpClient.post(`
|
|
14944
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
14939
14945
|
signal,
|
|
14940
14946
|
json: data
|
|
14941
14947
|
}).json();
|
|
14942
14948
|
}
|
|
14943
14949
|
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14944
|
-
return await httpClient.post(`
|
|
14950
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
14945
14951
|
}
|
|
14946
14952
|
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14947
|
-
return await httpClient.post(`
|
|
14953
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
14948
14954
|
}
|
|
14949
14955
|
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14950
|
-
return await httpClient.post(`
|
|
14956
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
14951
14957
|
}
|
|
14952
14958
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
14953
|
-
return await httpClient.get(`
|
|
14959
|
+
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
14954
14960
|
signal,
|
|
14955
14961
|
searchParams: buildSearchParams$2({ q })
|
|
14956
14962
|
}).json();
|
|
14957
14963
|
}
|
|
14958
14964
|
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
14959
|
-
return await httpClient.post(`
|
|
14965
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
14960
14966
|
signal,
|
|
14961
14967
|
json: data
|
|
14962
14968
|
}).json();
|
|
@@ -25536,6 +25542,33 @@ const generatedFocusOperations = [
|
|
|
25536
25542
|
return client.listTasks(data);
|
|
25537
25543
|
}
|
|
25538
25544
|
},
|
|
25545
|
+
{
|
|
25546
|
+
id: "focus.tasks.pin",
|
|
25547
|
+
family: "focus",
|
|
25548
|
+
resource: "tasks",
|
|
25549
|
+
action: "pin",
|
|
25550
|
+
title: "Pin Tasks",
|
|
25551
|
+
description: "Pin Tasks.",
|
|
25552
|
+
safety: "update",
|
|
25553
|
+
destructive: false,
|
|
25554
|
+
cli: {
|
|
25555
|
+
group: ["tasks"],
|
|
25556
|
+
command: "pin",
|
|
25557
|
+
interactive: "default"
|
|
25558
|
+
},
|
|
25559
|
+
mcp: { entityTool: "tasks" },
|
|
25560
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
25561
|
+
execute: (input, { client }) => {
|
|
25562
|
+
const data = input;
|
|
25563
|
+
return client.runGeneratedRequest("pinTask", () => callGeneratedRequest(pinTask, [
|
|
25564
|
+
client.httpClient,
|
|
25565
|
+
client.organizationId,
|
|
25566
|
+
client.workspaceIdNumber,
|
|
25567
|
+
data.task_id,
|
|
25568
|
+
void 0
|
|
25569
|
+
]));
|
|
25570
|
+
}
|
|
25571
|
+
},
|
|
25539
25572
|
{
|
|
25540
25573
|
id: "focus.tasks.restore",
|
|
25541
25574
|
family: "focus",
|
|
@@ -25660,6 +25693,33 @@ const generatedFocusOperations = [
|
|
|
25660
25693
|
]));
|
|
25661
25694
|
}
|
|
25662
25695
|
},
|
|
25696
|
+
{
|
|
25697
|
+
id: "focus.tasks.unpin",
|
|
25698
|
+
family: "focus",
|
|
25699
|
+
resource: "tasks",
|
|
25700
|
+
action: "unpin",
|
|
25701
|
+
title: "Unpin Tasks",
|
|
25702
|
+
description: "Unpin Tasks.",
|
|
25703
|
+
safety: "delete",
|
|
25704
|
+
destructive: true,
|
|
25705
|
+
cli: {
|
|
25706
|
+
group: ["tasks"],
|
|
25707
|
+
command: "unpin",
|
|
25708
|
+
interactive: "default"
|
|
25709
|
+
},
|
|
25710
|
+
mcp: { entityTool: "tasks" },
|
|
25711
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
25712
|
+
execute: (input, { client }) => {
|
|
25713
|
+
const data = input;
|
|
25714
|
+
return client.runGeneratedRequest("unpinTask", () => callGeneratedRequest(unpinTask, [
|
|
25715
|
+
client.httpClient,
|
|
25716
|
+
client.organizationId,
|
|
25717
|
+
client.workspaceIdNumber,
|
|
25718
|
+
data.task_id,
|
|
25719
|
+
void 0
|
|
25720
|
+
]));
|
|
25721
|
+
}
|
|
25722
|
+
},
|
|
25663
25723
|
{
|
|
25664
25724
|
id: "focus.tasks.update",
|
|
25665
25725
|
family: "focus",
|
|
@@ -30803,4 +30863,4 @@ Common commands:
|
|
|
30803
30863
|
//#endregion
|
|
30804
30864
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
30805
30865
|
|
|
30806
|
-
//# sourceMappingURL=program-
|
|
30866
|
+
//# sourceMappingURL=program-CWPPfjpx.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-CWPPfjpx.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.71",
|
|
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.252",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|