@togglhq/cli 1.11.219 → 1.11.221
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-Pj3ieVl-.js → program-BC3JyWrz.js} +19 -12
- 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-BC3JyWrz.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-BC3JyWrz.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7830,6 +7830,10 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
|
|
|
7830
7830
|
workspace_user_id: /* @__PURE__ */ number()
|
|
7831
7831
|
})),
|
|
7832
7832
|
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
7833
|
+
designations: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
7834
|
+
id: /* @__PURE__ */ number(),
|
|
7835
|
+
name: /* @__PURE__ */ string()
|
|
7836
|
+
}))),
|
|
7833
7837
|
has_calendar_integration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("HasCalendarIntegration is true when the member has a calendar connected in Focus. The field is present only when the request sets include_calendar_integration to true and the calendar lookup succeeded. The field is absent when the lookup failed. Absent means unknown. It does not mean false. A member who connected a calendar in another product stays false here until they open the Focus calendar integrations page.")))
|
|
7834
7838
|
});
|
|
7835
7839
|
const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
@@ -9932,7 +9936,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9932
9936
|
})
|
|
9933
9937
|
}).json();
|
|
9934
9938
|
}
|
|
9935
|
-
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration } = {}, signal) {
|
|
9939
|
+
async function getOrganizationUsersClassic(httpClient, organization_id, { workspaces, user_account_ids, org_user_ids, groups, toggl_products, active_status, roles, only_admins, filter, sort_dir, page, per_page, tag_ids, include_working_hours, include_rates, pinned_ids, has_group, track_without_focus, cf_filter, include_custom_fields, include_calendar_integration, include_designations } = {}, signal) {
|
|
9936
9940
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
9937
9941
|
signal,
|
|
9938
9942
|
searchParams: buildSearchParams$2({
|
|
@@ -9956,7 +9960,8 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
9956
9960
|
track_without_focus,
|
|
9957
9961
|
cf_filter,
|
|
9958
9962
|
include_custom_fields,
|
|
9959
|
-
include_calendar_integration
|
|
9963
|
+
include_calendar_integration,
|
|
9964
|
+
include_designations
|
|
9960
9965
|
}, true)
|
|
9961
9966
|
});
|
|
9962
9967
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
@@ -10901,7 +10906,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10901
10906
|
]))
|
|
10902
10907
|
});
|
|
10903
10908
|
//#endregion
|
|
10904
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10909
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10905
10910
|
async function getInvitations(httpClient, signal) {
|
|
10906
10911
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10907
10912
|
}
|
|
@@ -10918,7 +10923,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10918
10923
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10919
10924
|
}
|
|
10920
10925
|
//#endregion
|
|
10921
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10926
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10922
10927
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10923
10928
|
const searchParams = new URLSearchParams();
|
|
10924
10929
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10930,7 +10935,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10930
10935
|
return searchParams;
|
|
10931
10936
|
}
|
|
10932
10937
|
//#endregion
|
|
10933
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10938
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10934
10939
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10935
10940
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10936
10941
|
}
|
|
@@ -10944,7 +10949,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10944
10949
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10945
10950
|
}
|
|
10946
10951
|
//#endregion
|
|
10947
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10952
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10948
10953
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10949
10954
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10950
10955
|
}
|
|
@@ -10964,7 +10969,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10964
10969
|
});
|
|
10965
10970
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10966
10971
|
//#endregion
|
|
10967
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10972
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10968
10973
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10969
10974
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10970
10975
|
signal,
|
|
@@ -10975,12 +10980,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10975
10980
|
})).json();
|
|
10976
10981
|
}
|
|
10977
10982
|
//#endregion
|
|
10978
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10983
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10979
10984
|
async function getStatus(httpClient, signal) {
|
|
10980
10985
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10981
10986
|
}
|
|
10982
10987
|
//#endregion
|
|
10983
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10988
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10984
10989
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10985
10990
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10986
10991
|
signal,
|
|
@@ -11008,7 +11013,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11008
11013
|
return response.json();
|
|
11009
11014
|
}
|
|
11010
11015
|
//#endregion
|
|
11011
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11016
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.182_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3aa63b01d81ec594fa69bb5b96d88726/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11012
11017
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11013
11018
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11014
11019
|
}
|
|
@@ -14878,10 +14883,11 @@ async function patchUserCustomFieldValues(httpClient, organization_id, workspace
|
|
|
14878
14883
|
}
|
|
14879
14884
|
//#endregion
|
|
14880
14885
|
//#region ../focus-queries/dist/designations/requests.ts
|
|
14881
|
-
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { name, page, per_page, order_by } = {}, signal) {
|
|
14886
|
+
async function getWorkspaceDesignationsClassic(httpClient, organization_id, workspace_id, { designation_id, name, page, per_page, order_by } = {}, signal) {
|
|
14882
14887
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/designations`, {
|
|
14883
14888
|
signal,
|
|
14884
14889
|
searchParams: buildSearchParams$2({
|
|
14890
|
+
designation_id,
|
|
14885
14891
|
name,
|
|
14886
14892
|
page,
|
|
14887
14893
|
per_page,
|
|
@@ -17361,6 +17367,7 @@ const generatedFocusOperations = [
|
|
|
17361
17367
|
},
|
|
17362
17368
|
mcp: { entityTool: "designations" },
|
|
17363
17369
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
17370
|
+
designation_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17364
17371
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17365
17372
|
order_by: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17366
17373
|
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -29291,4 +29298,4 @@ Common commands:
|
|
|
29291
29298
|
//#endregion
|
|
29292
29299
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29293
29300
|
|
|
29294
|
-
//# sourceMappingURL=program-
|
|
29301
|
+
//# sourceMappingURL=program-BC3JyWrz.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-BC3JyWrz.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.221",
|
|
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.182",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|