@togglhq/cli 1.11.216 → 1.11.218
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-cGkhalzS.js → program-CHjGm6J2.js} +12 -80
- 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-CHjGm6J2.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-CHjGm6J2.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7680,68 +7680,6 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
7680
7680
|
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7681
7681
|
source_template_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7682
7682
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7683
|
-
task_group_counts: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
7684
|
-
eligible_total: /* @__PURE__ */ number(),
|
|
7685
|
-
matching_total: /* @__PURE__ */ number()
|
|
7686
|
-
})),
|
|
7687
|
-
tasks: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ object({
|
|
7688
|
-
allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
|
|
7689
|
-
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
7690
|
-
eligible_child_count: /* @__PURE__ */ number(),
|
|
7691
|
-
estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
|
|
7692
|
-
group_id: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("GroupID stays stable when a hidden parent is represented by an eligible child.")),
|
|
7693
|
-
id: /* @__PURE__ */ number(),
|
|
7694
|
-
is_template: /* @__PURE__ */ boolean(),
|
|
7695
|
-
matching_child_count: /* @__PURE__ */ number(),
|
|
7696
|
-
name: /* @__PURE__ */ string(),
|
|
7697
|
-
parent_visible: /* @__PURE__ */ boolean(),
|
|
7698
|
-
pinned: /* @__PURE__ */ boolean(),
|
|
7699
|
-
position: /* @__PURE__ */ number(),
|
|
7700
|
-
priority: /* @__PURE__ */ picklist([
|
|
7701
|
-
"none",
|
|
7702
|
-
"low",
|
|
7703
|
-
"medium",
|
|
7704
|
-
"high"
|
|
7705
|
-
]),
|
|
7706
|
-
private: /* @__PURE__ */ boolean(),
|
|
7707
|
-
selectable: /* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Selectable is false for ineligible parents and nonmatching context parents under unified_search.")),
|
|
7708
|
-
source: /* @__PURE__ */ string(),
|
|
7709
|
-
status_id: /* @__PURE__ */ number(),
|
|
7710
|
-
subtasks: /* @__PURE__ */ array(TaskSchema),
|
|
7711
|
-
tag_ids: /* @__PURE__ */ array(/* @__PURE__ */ number()),
|
|
7712
|
-
tags: /* @__PURE__ */ array(TagLiteSchema),
|
|
7713
|
-
toggl_user_id: /* @__PURE__ */ number(),
|
|
7714
|
-
workspace_id: /* @__PURE__ */ number(),
|
|
7715
|
-
archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
7716
|
-
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ number())),
|
|
7717
|
-
assignees: /* @__PURE__ */ optional(/* @__PURE__ */ array(TaskAssignmentSchema)),
|
|
7718
|
-
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7719
|
-
billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
7720
|
-
client: /* @__PURE__ */ optional(ClientLiteSchema),
|
|
7721
|
-
color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7722
|
-
custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
|
|
7723
|
-
deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
|
|
7724
|
-
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7725
|
-
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7726
|
-
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7727
|
-
is_recurring_series: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("IsRecurringSeries marks a canonical series root (S). Server-owned and read-only: no current API path can set it, and the response only exposes the marker while series behavior stays disabled."))),
|
|
7728
|
-
metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
|
|
7729
|
-
notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7730
|
-
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7731
|
-
parent_task_name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7732
|
-
priority_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7733
|
-
project: /* @__PURE__ */ optional(ProjectLiteSchema),
|
|
7734
|
-
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7735
|
-
recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7736
|
-
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7737
|
-
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7738
|
-
rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7739
|
-
source_template_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7740
|
-
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7741
|
-
status: /* @__PURE__ */ optional(StatusLiteSchema),
|
|
7742
|
-
status_updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7743
|
-
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
7744
|
-
}))),
|
|
7745
7683
|
total_tasks: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
7746
7684
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
7747
7685
|
});
|
|
@@ -10122,14 +10060,12 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
10122
10060
|
}
|
|
10123
10061
|
//#endregion
|
|
10124
10062
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
10125
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts,
|
|
10063
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, assignee_user_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
10126
10064
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10127
10065
|
signal,
|
|
10128
10066
|
searchParams: buildSearchParams$2({
|
|
10129
10067
|
member_only,
|
|
10130
10068
|
include_task_counts,
|
|
10131
|
-
include_tasks,
|
|
10132
|
-
unified_search,
|
|
10133
10069
|
include_picker_parent_group_counts,
|
|
10134
10070
|
task_archived,
|
|
10135
10071
|
task_recurring,
|
|
@@ -10524,7 +10460,7 @@ async function putTasksCalendarRange(httpClient, organization_id, workspace_id,
|
|
|
10524
10460
|
})
|
|
10525
10461
|
}).json();
|
|
10526
10462
|
}
|
|
10527
|
-
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned,
|
|
10463
|
+
async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, page, per_page } = {}, signal) {
|
|
10528
10464
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
|
|
10529
10465
|
signal,
|
|
10530
10466
|
searchParams: buildSearchParams$2({
|
|
@@ -10532,7 +10468,6 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
10532
10468
|
without_project,
|
|
10533
10469
|
pinned_only,
|
|
10534
10470
|
include_unassigned,
|
|
10535
|
-
unified_search,
|
|
10536
10471
|
search,
|
|
10537
10472
|
only_me,
|
|
10538
10473
|
page,
|
|
@@ -10540,14 +10475,13 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
|
|
|
10540
10475
|
})
|
|
10541
10476
|
}).json();
|
|
10542
10477
|
}
|
|
10543
|
-
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned,
|
|
10478
|
+
async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
|
|
10544
10479
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
|
|
10545
10480
|
signal,
|
|
10546
10481
|
searchParams: buildSearchParams$2({
|
|
10547
10482
|
project_id,
|
|
10548
10483
|
without_project,
|
|
10549
10484
|
include_unassigned,
|
|
10550
|
-
unified_search,
|
|
10551
10485
|
search,
|
|
10552
10486
|
only_me,
|
|
10553
10487
|
page,
|
|
@@ -10963,7 +10897,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10963
10897
|
]))
|
|
10964
10898
|
});
|
|
10965
10899
|
//#endregion
|
|
10966
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10900
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10967
10901
|
async function getInvitations(httpClient, signal) {
|
|
10968
10902
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10969
10903
|
}
|
|
@@ -10980,7 +10914,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10980
10914
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10981
10915
|
}
|
|
10982
10916
|
//#endregion
|
|
10983
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10917
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10984
10918
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10985
10919
|
const searchParams = new URLSearchParams();
|
|
10986
10920
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10992,7 +10926,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10992
10926
|
return searchParams;
|
|
10993
10927
|
}
|
|
10994
10928
|
//#endregion
|
|
10995
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10929
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10996
10930
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10997
10931
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10998
10932
|
}
|
|
@@ -11006,7 +10940,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11006
10940
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11007
10941
|
}
|
|
11008
10942
|
//#endregion
|
|
11009
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10943
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11010
10944
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11011
10945
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11012
10946
|
}
|
|
@@ -11026,7 +10960,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11026
10960
|
});
|
|
11027
10961
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11028
10962
|
//#endregion
|
|
11029
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10963
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11030
10964
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11031
10965
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11032
10966
|
signal,
|
|
@@ -11037,12 +10971,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11037
10971
|
})).json();
|
|
11038
10972
|
}
|
|
11039
10973
|
//#endregion
|
|
11040
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10974
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11041
10975
|
async function getStatus(httpClient, signal) {
|
|
11042
10976
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11043
10977
|
}
|
|
11044
10978
|
//#endregion
|
|
11045
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10979
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11046
10980
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11047
10981
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11048
10982
|
signal,
|
|
@@ -11070,7 +11004,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11070
11004
|
return response.json();
|
|
11071
11005
|
}
|
|
11072
11006
|
//#endregion
|
|
11073
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11007
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.180_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4a7a94858689ab400768677422caabea/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11074
11008
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11075
11009
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11076
11010
|
}
|
|
@@ -23725,7 +23659,6 @@ const generatedFocusOperations = [
|
|
|
23725
23659
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23726
23660
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23727
23661
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23728
|
-
unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23729
23662
|
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23730
23663
|
}),
|
|
23731
23664
|
execute: (input, { client }) => {
|
|
@@ -23763,7 +23696,6 @@ const generatedFocusOperations = [
|
|
|
23763
23696
|
pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23764
23697
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
23765
23698
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23766
|
-
unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
23767
23699
|
without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
23768
23700
|
}),
|
|
23769
23701
|
execute: (input, { client }) => {
|
|
@@ -29355,4 +29287,4 @@ Common commands:
|
|
|
29355
29287
|
//#endregion
|
|
29356
29288
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29357
29289
|
|
|
29358
|
-
//# sourceMappingURL=program-
|
|
29290
|
+
//# sourceMappingURL=program-CHjGm6J2.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-CHjGm6J2.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.218",
|
|
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.180",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|