@togglhq/cli 1.11.135 → 1.11.137
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
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-C_IBJnPe.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-C_IBJnPe.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7796,8 +7796,7 @@ const OrganizationUserResponseSchema = /* @__PURE__ */ object({
|
|
|
7796
7796
|
work_role_id: /* @__PURE__ */ number(),
|
|
7797
7797
|
workspace_user_id: /* @__PURE__ */ number()
|
|
7798
7798
|
})),
|
|
7799
|
-
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema))
|
|
7800
|
-
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.")))
|
|
7799
|
+
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema))
|
|
7801
7800
|
});
|
|
7802
7801
|
const ProjectBulkArchivePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
7803
7802
|
const ProjectBulkRestorePayloadSchema = /* @__PURE__ */ object({ project_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
@@ -9893,7 +9892,7 @@ async function getOrganizationTeamsClassic(httpClient, organization_id, { worksp
|
|
|
9893
9892
|
})
|
|
9894
9893
|
}).json();
|
|
9895
9894
|
}
|
|
9896
|
-
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, cf_filter, include_custom_fields
|
|
9895
|
+
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, cf_filter, include_custom_fields } = {}, signal) {
|
|
9897
9896
|
const response = await httpClient.get(`organizations/${organization_id}/users`, {
|
|
9898
9897
|
signal,
|
|
9899
9898
|
searchParams: buildSearchParams$2({
|
|
@@ -9915,8 +9914,7 @@ async function getOrganizationUsersClassic(httpClient, organization_id, { worksp
|
|
|
9915
9914
|
pinned_ids,
|
|
9916
9915
|
has_group,
|
|
9917
9916
|
cf_filter,
|
|
9918
|
-
include_custom_fields
|
|
9919
|
-
include_calendar_integration
|
|
9917
|
+
include_custom_fields
|
|
9920
9918
|
}, true)
|
|
9921
9919
|
});
|
|
9922
9920
|
return withResponseMeta(await response.json(), response.headers, response.status);
|
|
@@ -15105,9 +15103,6 @@ async function dismissATemplateEstimateSuggestion(httpClient, organization_id, w
|
|
|
15105
15103
|
}
|
|
15106
15104
|
//#endregion
|
|
15107
15105
|
//#region ../focus-queries/dist/reports/requests.ts
|
|
15108
|
-
async function getForecastAvailability(httpClient, workspace_id, signal) {
|
|
15109
|
-
return await httpClient.get(`reports/workspaces/${workspace_id}/forecast-availability`, { signal }).json();
|
|
15110
|
-
}
|
|
15111
15106
|
async function getProfitabilityReport(httpClient, workspace_id, data, response_format, include_dicts, xTogglReportExport, signal) {
|
|
15112
15107
|
return await httpClient.post(`reports/workspaces/${workspace_id}/profitability`, {
|
|
15113
15108
|
signal,
|
|
@@ -15553,21 +15548,6 @@ async function upsertTimeEntryConstraints(httpClient, workspace_id, data, signal
|
|
|
15553
15548
|
}).json();
|
|
15554
15549
|
}
|
|
15555
15550
|
//#endregion
|
|
15556
|
-
//#region ../focus-queries/dist/time-entry-groups/requests.ts
|
|
15557
|
-
async function getTimeEntryGroupsUsersClassic(httpClient, organization_id, workspace_id, { start_date, end_date, user_id, page, per_page, order_by }, signal) {
|
|
15558
|
-
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/groups/users`, {
|
|
15559
|
-
signal,
|
|
15560
|
-
searchParams: buildSearchParams$2({
|
|
15561
|
-
start_date,
|
|
15562
|
-
end_date,
|
|
15563
|
-
user_id,
|
|
15564
|
-
page,
|
|
15565
|
-
per_page,
|
|
15566
|
-
order_by
|
|
15567
|
-
})
|
|
15568
|
-
}).json();
|
|
15569
|
-
}
|
|
15570
|
-
//#endregion
|
|
15571
15551
|
//#region ../focus-queries/dist/time-off/requests.ts
|
|
15572
15552
|
async function getTimeoffsByUserIds(httpClient, organization_id, { user_id, start_date, end_date }, signal) {
|
|
15573
15553
|
return await httpClient.get(`organizations/${organization_id}/timeoff`, {
|
|
@@ -20618,28 +20598,6 @@ const generatedFocusOperations = [
|
|
|
20618
20598
|
]));
|
|
20619
20599
|
}
|
|
20620
20600
|
},
|
|
20621
|
-
{
|
|
20622
|
-
id: "focus.reports.get-forecast-availability",
|
|
20623
|
-
family: "focus",
|
|
20624
|
-
resource: "reports",
|
|
20625
|
-
action: "get-forecast-availability",
|
|
20626
|
-
title: "Get Forecast Availability Reports",
|
|
20627
|
-
description: "Get Forecast Availability Reports.",
|
|
20628
|
-
safety: "read",
|
|
20629
|
-
destructive: false,
|
|
20630
|
-
cli: {
|
|
20631
|
-
group: ["reports"],
|
|
20632
|
-
command: "get-forecast-availability",
|
|
20633
|
-
interactive: "hidden"
|
|
20634
|
-
},
|
|
20635
|
-
mcp: { entityTool: "reports" },
|
|
20636
|
-
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
20637
|
-
execute: (_input, { client }) => client.runGeneratedRequest("getForecastAvailability", () => callGeneratedRequest(getForecastAvailability, [
|
|
20638
|
-
client.httpClient,
|
|
20639
|
-
client.workspaceIdNumber,
|
|
20640
|
-
void 0
|
|
20641
|
-
]))
|
|
20642
|
-
},
|
|
20643
20601
|
{
|
|
20644
20602
|
id: "focus.reports.get-profitability",
|
|
20645
20603
|
family: "focus",
|
|
@@ -24300,40 +24258,6 @@ const generatedFocusOperations = [
|
|
|
24300
24258
|
]));
|
|
24301
24259
|
}
|
|
24302
24260
|
},
|
|
24303
|
-
{
|
|
24304
|
-
id: "focus.time-entries.groups-get-users",
|
|
24305
|
-
family: "focus",
|
|
24306
|
-
resource: "time-entries",
|
|
24307
|
-
action: "groups-get-users",
|
|
24308
|
-
title: "Groups Get Users Time Entries",
|
|
24309
|
-
description: "Groups Get Users Time Entries.",
|
|
24310
|
-
safety: "read",
|
|
24311
|
-
destructive: false,
|
|
24312
|
-
cli: {
|
|
24313
|
-
group: ["time-entries", "groups"],
|
|
24314
|
-
command: "get-users",
|
|
24315
|
-
interactive: "hidden"
|
|
24316
|
-
},
|
|
24317
|
-
mcp: { entityTool: "time-entries" },
|
|
24318
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
24319
|
-
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
24320
|
-
order_by: /* @__PURE__ */ unknown$1(),
|
|
24321
|
-
page: /* @__PURE__ */ number$2(),
|
|
24322
|
-
per_page: /* @__PURE__ */ unknown$1(),
|
|
24323
|
-
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
24324
|
-
user_id: /* @__PURE__ */ number$2()
|
|
24325
|
-
}),
|
|
24326
|
-
execute: (input, { client }) => {
|
|
24327
|
-
const data = input;
|
|
24328
|
-
return client.runGeneratedRequest("getTimeEntryGroupsUsersClassic", () => callGeneratedRequest(getTimeEntryGroupsUsersClassic, [
|
|
24329
|
-
client.httpClient,
|
|
24330
|
-
client.organizationId,
|
|
24331
|
-
client.workspaceIdNumber,
|
|
24332
|
-
data,
|
|
24333
|
-
void 0
|
|
24334
|
-
]));
|
|
24335
|
-
}
|
|
24336
|
-
},
|
|
24337
24261
|
{
|
|
24338
24262
|
id: "focus.time-entries.list",
|
|
24339
24263
|
family: "focus",
|
|
@@ -27894,4 +27818,4 @@ Common commands:
|
|
|
27894
27818
|
//#endregion
|
|
27895
27819
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
27896
27820
|
|
|
27897
|
-
//# sourceMappingURL=program-
|
|
27821
|
+
//# sourceMappingURL=program-C_IBJnPe.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-C_IBJnPe.js";
|
|
2
2
|
export { createProgram };
|