@togglhq/cli 1.6.14 → 1.6.16
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-C1BfBI66.js → program-DskwjJUv.js} +30 -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 { n as CommanderError, t as createProgram } from "./program-
|
|
2
|
+
import { n as CommanderError, t as createProgram } from "./program-DskwjJUv.js";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
try {
|
|
5
5
|
await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-DskwjJUv.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10616,7 +10616,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10616
10616
|
]))
|
|
10617
10617
|
});
|
|
10618
10618
|
//#endregion
|
|
10619
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10619
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10620
10620
|
async function getInvitations(httpClient, signal) {
|
|
10621
10621
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10622
10622
|
}
|
|
@@ -10633,7 +10633,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10633
10633
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10634
10634
|
}
|
|
10635
10635
|
//#endregion
|
|
10636
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10636
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10637
10637
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
10638
10638
|
const searchParams = new URLSearchParams();
|
|
10639
10639
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10645,7 +10645,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
10645
10645
|
return searchParams;
|
|
10646
10646
|
}
|
|
10647
10647
|
//#endregion
|
|
10648
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10648
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10649
10649
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10650
10650
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10651
10651
|
}
|
|
@@ -10659,7 +10659,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10659
10659
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10660
10660
|
}
|
|
10661
10661
|
//#endregion
|
|
10662
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10662
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10663
10663
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10664
10664
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10665
10665
|
}
|
|
@@ -10679,7 +10679,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10679
10679
|
});
|
|
10680
10680
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10681
10681
|
//#endregion
|
|
10682
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10682
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
10683
10683
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
10684
10684
|
function withResponseMeta(data, headers, status) {
|
|
10685
10685
|
if (!data) return data;
|
|
@@ -10706,7 +10706,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10706
10706
|
return searchParams;
|
|
10707
10707
|
}
|
|
10708
10708
|
//#endregion
|
|
10709
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10709
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
10710
10710
|
async function getPublicHolidays(httpClient, year, { country, organization_id } = {}, signal) {
|
|
10711
10711
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
10712
10712
|
signal,
|
|
@@ -10718,12 +10718,12 @@ async function getPublicHolidays(httpClient, year, { country, organization_id }
|
|
|
10718
10718
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
10719
10719
|
}
|
|
10720
10720
|
//#endregion
|
|
10721
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10721
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10722
10722
|
async function getStatus(httpClient, signal) {
|
|
10723
10723
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10724
10724
|
}
|
|
10725
10725
|
//#endregion
|
|
10726
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10726
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10727
10727
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10728
10728
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10729
10729
|
signal,
|
|
@@ -10751,7 +10751,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10751
10751
|
return response.json();
|
|
10752
10752
|
}
|
|
10753
10753
|
//#endregion
|
|
10754
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.
|
|
10754
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.1.194_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_cf1b2da807173ec251cc74d839ac4fe6/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10755
10755
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10756
10756
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10757
10757
|
}
|
|
@@ -18183,12 +18183,12 @@ const generatedFocusOperations = [
|
|
|
18183
18183
|
action: "billable-upsert-project",
|
|
18184
18184
|
title: "Billable Upsert Project Rates",
|
|
18185
18185
|
description: "Billable Upsert Project Rates.",
|
|
18186
|
-
safety: "
|
|
18186
|
+
safety: "update",
|
|
18187
18187
|
destructive: false,
|
|
18188
18188
|
cli: {
|
|
18189
18189
|
group: ["rates", "billable"],
|
|
18190
18190
|
command: "upsert-project",
|
|
18191
|
-
interactive: "
|
|
18191
|
+
interactive: "default"
|
|
18192
18192
|
},
|
|
18193
18193
|
mcp: { entityTool: "rates" },
|
|
18194
18194
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -18219,12 +18219,12 @@ const generatedFocusOperations = [
|
|
|
18219
18219
|
action: "billable-upsert-project-user",
|
|
18220
18220
|
title: "Billable Upsert Project User Rates",
|
|
18221
18221
|
description: "Billable Upsert Project User Rates.",
|
|
18222
|
-
safety: "
|
|
18222
|
+
safety: "update",
|
|
18223
18223
|
destructive: false,
|
|
18224
18224
|
cli: {
|
|
18225
18225
|
group: ["rates", "billable"],
|
|
18226
18226
|
command: "upsert-project-user",
|
|
18227
|
-
interactive: "
|
|
18227
|
+
interactive: "default"
|
|
18228
18228
|
},
|
|
18229
18229
|
mcp: { entityTool: "rates" },
|
|
18230
18230
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -18257,12 +18257,12 @@ const generatedFocusOperations = [
|
|
|
18257
18257
|
action: "billable-upsert-workspace",
|
|
18258
18258
|
title: "Billable Upsert Workspace Rates",
|
|
18259
18259
|
description: "Billable Upsert Workspace Rates.",
|
|
18260
|
-
safety: "
|
|
18260
|
+
safety: "update",
|
|
18261
18261
|
destructive: false,
|
|
18262
18262
|
cli: {
|
|
18263
18263
|
group: ["rates", "billable"],
|
|
18264
18264
|
command: "upsert-workspace",
|
|
18265
|
-
interactive: "
|
|
18265
|
+
interactive: "default"
|
|
18266
18266
|
},
|
|
18267
18267
|
mcp: { entityTool: "rates" },
|
|
18268
18268
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
@@ -18289,12 +18289,12 @@ const generatedFocusOperations = [
|
|
|
18289
18289
|
action: "billable-upsert-workspace-user",
|
|
18290
18290
|
title: "Billable Upsert Workspace User Rates",
|
|
18291
18291
|
description: "Billable Upsert Workspace User Rates.",
|
|
18292
|
-
safety: "
|
|
18292
|
+
safety: "update",
|
|
18293
18293
|
destructive: false,
|
|
18294
18294
|
cli: {
|
|
18295
18295
|
group: ["rates", "billable"],
|
|
18296
18296
|
command: "upsert-workspace-user",
|
|
18297
|
-
interactive: "
|
|
18297
|
+
interactive: "default"
|
|
18298
18298
|
},
|
|
18299
18299
|
mcp: { entityTool: "rates" },
|
|
18300
18300
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -19000,12 +19000,12 @@ const generatedFocusOperations = [
|
|
|
19000
19000
|
action: "labor-upsert-project-labor-cost-rate",
|
|
19001
19001
|
title: "Labor Upsert Project Labor Cost Rate Rates",
|
|
19002
19002
|
description: "Labor Upsert Project Labor Cost Rate Rates.",
|
|
19003
|
-
safety: "
|
|
19003
|
+
safety: "update",
|
|
19004
19004
|
destructive: false,
|
|
19005
19005
|
cli: {
|
|
19006
19006
|
group: ["rates", "labor"],
|
|
19007
19007
|
command: "upsert-project-labor-cost-rate",
|
|
19008
|
-
interactive: "
|
|
19008
|
+
interactive: "default"
|
|
19009
19009
|
},
|
|
19010
19010
|
mcp: { entityTool: "rates" },
|
|
19011
19011
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -19036,12 +19036,12 @@ const generatedFocusOperations = [
|
|
|
19036
19036
|
action: "labor-upsert-project-user-labor-cost-rate",
|
|
19037
19037
|
title: "Labor Upsert Project User Labor Cost Rate Rates",
|
|
19038
19038
|
description: "Labor Upsert Project User Labor Cost Rate Rates.",
|
|
19039
|
-
safety: "
|
|
19039
|
+
safety: "update",
|
|
19040
19040
|
destructive: false,
|
|
19041
19041
|
cli: {
|
|
19042
19042
|
group: ["rates", "labor"],
|
|
19043
19043
|
command: "upsert-project-user-labor-cost-rate",
|
|
19044
|
-
interactive: "
|
|
19044
|
+
interactive: "default"
|
|
19045
19045
|
},
|
|
19046
19046
|
mcp: { entityTool: "rates" },
|
|
19047
19047
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -19074,12 +19074,12 @@ const generatedFocusOperations = [
|
|
|
19074
19074
|
action: "labor-upsert-workspace-labor-cost-rate",
|
|
19075
19075
|
title: "Labor Upsert Workspace Labor Cost Rate Rates",
|
|
19076
19076
|
description: "Labor Upsert Workspace Labor Cost Rate Rates.",
|
|
19077
|
-
safety: "
|
|
19077
|
+
safety: "update",
|
|
19078
19078
|
destructive: false,
|
|
19079
19079
|
cli: {
|
|
19080
19080
|
group: ["rates", "labor"],
|
|
19081
19081
|
command: "upsert-workspace-labor-cost-rate",
|
|
19082
|
-
interactive: "
|
|
19082
|
+
interactive: "default"
|
|
19083
19083
|
},
|
|
19084
19084
|
mcp: { entityTool: "rates" },
|
|
19085
19085
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
@@ -19106,12 +19106,12 @@ const generatedFocusOperations = [
|
|
|
19106
19106
|
action: "labor-upsert-workspace-user-labor-cost-rate",
|
|
19107
19107
|
title: "Labor Upsert Workspace User Labor Cost Rate Rates",
|
|
19108
19108
|
description: "Labor Upsert Workspace User Labor Cost Rate Rates.",
|
|
19109
|
-
safety: "
|
|
19109
|
+
safety: "update",
|
|
19110
19110
|
destructive: false,
|
|
19111
19111
|
cli: {
|
|
19112
19112
|
group: ["rates", "labor"],
|
|
19113
19113
|
command: "upsert-workspace-user-labor-cost-rate",
|
|
19114
|
-
interactive: "
|
|
19114
|
+
interactive: "default"
|
|
19115
19115
|
},
|
|
19116
19116
|
mcp: { entityTool: "rates" },
|
|
19117
19117
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
@@ -19712,12 +19712,12 @@ const generatedFocusOperations = [
|
|
|
19712
19712
|
action: "upsert-forced-trial",
|
|
19713
19713
|
title: "Upsert Forced Trial Subscriptions",
|
|
19714
19714
|
description: "Upsert Forced Trial Subscriptions.",
|
|
19715
|
-
safety: "
|
|
19715
|
+
safety: "update",
|
|
19716
19716
|
destructive: false,
|
|
19717
19717
|
cli: {
|
|
19718
19718
|
group: ["subscriptions"],
|
|
19719
19719
|
command: "upsert-forced-trial",
|
|
19720
|
-
interactive: "
|
|
19720
|
+
interactive: "default"
|
|
19721
19721
|
},
|
|
19722
19722
|
mcp: { entityTool: "subscriptions" },
|
|
19723
19723
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ plan_workspace_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()) }) }),
|
|
@@ -20235,7 +20235,7 @@ const generatedFocusOperations = [
|
|
|
20235
20235
|
action: "constraints-upsert",
|
|
20236
20236
|
title: "Constraints Upsert Tasks",
|
|
20237
20237
|
description: "Constraints Upsert Tasks.",
|
|
20238
|
-
safety: "
|
|
20238
|
+
safety: "update",
|
|
20239
20239
|
destructive: false,
|
|
20240
20240
|
cli: {
|
|
20241
20241
|
group: ["tasks", "constraints"],
|
|
@@ -21436,7 +21436,7 @@ const generatedFocusOperations = [
|
|
|
21436
21436
|
action: "constraints-upsert",
|
|
21437
21437
|
title: "Constraints Upsert Time Entries",
|
|
21438
21438
|
description: "Constraints Upsert Time Entries.",
|
|
21439
|
-
safety: "
|
|
21439
|
+
safety: "update",
|
|
21440
21440
|
destructive: false,
|
|
21441
21441
|
cli: {
|
|
21442
21442
|
group: ["time-entries", "constraints"],
|
|
@@ -25094,4 +25094,4 @@ Common commands:
|
|
|
25094
25094
|
//#endregion
|
|
25095
25095
|
export { CommanderError as n, createProgram as t };
|
|
25096
25096
|
|
|
25097
|
-
//# sourceMappingURL=program-
|
|
25097
|
+
//# sourceMappingURL=program-DskwjJUv.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-DskwjJUv.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.16",
|
|
4
4
|
"description": "Toggl CLI for Toggl 2.0 API operations.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@toggl/cli-core": "workspace:^",
|
|
57
57
|
"@toggl/operations": "workspace:^",
|
|
58
|
-
"@toggl/queries": "2.1.
|
|
58
|
+
"@toggl/queries": "2.1.194",
|
|
59
59
|
"@types/node": "22.19.11",
|
|
60
60
|
"tsdown": "0.21.8",
|
|
61
61
|
"typescript": "5.9.3",
|