@togglhq/cli 1.5.23 → 1.5.25
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/index.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-CMtkxDg-.js";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
try {
|
|
5
5
|
await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
|
|
@@ -10545,7 +10545,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10545
10545
|
]))
|
|
10546
10546
|
});
|
|
10547
10547
|
//#endregion
|
|
10548
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10548
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10549
10549
|
async function getInvitations(httpClient, signal) {
|
|
10550
10550
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10551
10551
|
}
|
|
@@ -10562,7 +10562,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10562
10562
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10563
10563
|
}
|
|
10564
10564
|
//#endregion
|
|
10565
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10565
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10566
10566
|
function buildSearchParams$1(params, flattenArrays = false) {
|
|
10567
10567
|
const searchParams = new URLSearchParams();
|
|
10568
10568
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10574,7 +10574,7 @@ function buildSearchParams$1(params, flattenArrays = false) {
|
|
|
10574
10574
|
return searchParams;
|
|
10575
10575
|
}
|
|
10576
10576
|
//#endregion
|
|
10577
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10577
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10578
10578
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10579
10579
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10580
10580
|
}
|
|
@@ -10588,7 +10588,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10588
10588
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10589
10589
|
}
|
|
10590
10590
|
//#endregion
|
|
10591
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10591
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10592
10592
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10593
10593
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10594
10594
|
}
|
|
@@ -10608,7 +10608,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10608
10608
|
});
|
|
10609
10609
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10610
10610
|
//#endregion
|
|
10611
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10611
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/utils/requests.mjs
|
|
10612
10612
|
const META_SYMBOL = Symbol.for("querygen:response:meta");
|
|
10613
10613
|
function withResponseMeta(data, headers, status) {
|
|
10614
10614
|
if (!data) return data;
|
|
@@ -10635,7 +10635,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10635
10635
|
return searchParams;
|
|
10636
10636
|
}
|
|
10637
10637
|
//#endregion
|
|
10638
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10638
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/public-holidays/requests.mjs
|
|
10639
10639
|
async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
10640
10640
|
const response = await httpClient.get(`shared_data/api/publicholidays/${year}`, {
|
|
10641
10641
|
signal,
|
|
@@ -10644,12 +10644,12 @@ async function getPublicHolidays(httpClient, year, { country } = {}, signal) {
|
|
|
10644
10644
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
10645
10645
|
}
|
|
10646
10646
|
//#endregion
|
|
10647
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10647
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10648
10648
|
async function getStatus(httpClient, signal) {
|
|
10649
10649
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10650
10650
|
}
|
|
10651
10651
|
//#endregion
|
|
10652
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10652
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10653
10653
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10654
10654
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10655
10655
|
signal,
|
|
@@ -10677,7 +10677,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10677
10677
|
return response.json();
|
|
10678
10678
|
}
|
|
10679
10679
|
//#endregion
|
|
10680
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.
|
|
10680
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@0.15.21_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_e185795a21ccf0053f35bb3174ff9cd2/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10681
10681
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10682
10682
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
10683
10683
|
}
|
|
@@ -26082,4 +26082,4 @@ Common commands:
|
|
|
26082
26082
|
//#endregion
|
|
26083
26083
|
export { CommanderError as n, createProgram as t };
|
|
26084
26084
|
|
|
26085
|
-
//# sourceMappingURL=program-
|
|
26085
|
+
//# sourceMappingURL=program-CMtkxDg-.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-CMtkxDg-.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.25",
|
|
4
4
|
"description": "Toggl CLI for Toggl 2.0 API operations.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@toggl/cli-core": "workspace:^",
|
|
55
55
|
"@toggl/operations": "workspace:^",
|
|
56
|
-
"@toggl/queries": "0.15.
|
|
56
|
+
"@toggl/queries": "0.15.21",
|
|
57
57
|
"@types/node": "22.19.11",
|
|
58
58
|
"tsdown": "0.21.8",
|
|
59
59
|
"typescript": "5.9.3",
|