@togglhq/cli 1.12.6 → 1.12.7

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-CehPS5X3.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-C6Dg7orD.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-CehPS5X3.js";
1
+ import { t as createProgram } from "./program-C6Dg7orD.js";
2
2
  export { createProgram };
@@ -7586,6 +7586,70 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
7586
7586
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7587
7587
  source_template_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7588
7588
  start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7589
+ task_group_counts: /* @__PURE__ */ optional(/* @__PURE__ */ object({
7590
+ eligible_total: /* @__PURE__ */ number(),
7591
+ matching_total: /* @__PURE__ */ number()
7592
+ })),
7593
+ tasks: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ object({
7594
+ allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
7595
+ created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
7596
+ eligible_child_count: /* @__PURE__ */ number(),
7597
+ estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
7598
+ group_id: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("GroupID stays stable when a hidden parent is represented by an eligible child.")),
7599
+ id: /* @__PURE__ */ number(),
7600
+ is_template: /* @__PURE__ */ boolean(),
7601
+ matching_child_count: /* @__PURE__ */ number(),
7602
+ name: /* @__PURE__ */ string(),
7603
+ parent_visible: /* @__PURE__ */ boolean(),
7604
+ pinned: /* @__PURE__ */ boolean(),
7605
+ position: /* @__PURE__ */ number(),
7606
+ priority: /* @__PURE__ */ picklist([
7607
+ "none",
7608
+ "low",
7609
+ "medium",
7610
+ "high"
7611
+ ]),
7612
+ private: /* @__PURE__ */ boolean(),
7613
+ selectable: /* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Selectable is false for ineligible parents and nonmatching context parents under unified_search.")),
7614
+ source: /* @__PURE__ */ string(),
7615
+ status_id: /* @__PURE__ */ number(),
7616
+ subtasks: /* @__PURE__ */ array(TaskSchema),
7617
+ tag_ids: /* @__PURE__ */ array(/* @__PURE__ */ number()),
7618
+ tags: /* @__PURE__ */ array(TagLiteSchema),
7619
+ toggl_user_id: /* @__PURE__ */ number(),
7620
+ workspace_id: /* @__PURE__ */ number(),
7621
+ archived_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7622
+ assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ number())),
7623
+ assignees: /* @__PURE__ */ optional(/* @__PURE__ */ array(TaskAssignmentSchema)),
7624
+ auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7625
+ billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
7626
+ client: /* @__PURE__ */ optional(ClientLiteSchema),
7627
+ color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7628
+ custom_field_values: /* @__PURE__ */ optional(/* @__PURE__ */ array(CustomFieldValueSchema)),
7629
+ deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7630
+ description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7631
+ end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7632
+ estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7633
+ 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."))),
7634
+ metadata: /* @__PURE__ */ optional(TaskMetadataSchema),
7635
+ notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7636
+ parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7637
+ parent_task_name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7638
+ priority_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7639
+ project: /* @__PURE__ */ optional(ProjectLiteSchema),
7640
+ project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7641
+ recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7642
+ recurring_rule: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The rule of the task's series (RRULE with DTSTART); omitted for a normal task and once the series has stopped."))),
7643
+ recurring_series_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("The series this task is an occurrence of; omitted for a normal task. Only the server sets it."))),
7644
+ recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7645
+ rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7646
+ rrule: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7647
+ source_template_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7648
+ start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7649
+ status: /* @__PURE__ */ optional(StatusLiteSchema),
7650
+ status_updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7651
+ updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7652
+ }))),
7589
7653
  total_tasks: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7590
7654
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7591
7655
  });
@@ -9971,12 +10035,14 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
9971
10035
  }
9972
10036
  //#endregion
9973
10037
  //#region ../focus-queries/dist/projects/requests.ts
9974
- 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, task_occurrence_window_date, task_occurrence_window_days, 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) {
10038
+ async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, 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, task_occurrence_window_date, task_occurrence_window_days, 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) {
9975
10039
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
9976
10040
  signal,
9977
10041
  searchParams: buildSearchParams$2({
9978
10042
  member_only,
9979
10043
  include_task_counts,
10044
+ include_tasks,
10045
+ unified_search,
9980
10046
  include_picker_parent_group_counts,
9981
10047
  task_archived,
9982
10048
  task_recurring,
@@ -10371,7 +10437,7 @@ async function putTasksCalendarRange(httpClient, organization_id, workspace_id,
10371
10437
  })
10372
10438
  }).json();
10373
10439
  }
10374
- async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, search, only_me, occurrence_window_date, occurrence_window_days, page, per_page } = {}, signal) {
10440
+ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace_id, { project_id, without_project, pinned_only, include_unassigned, unified_search, search, only_me, occurrence_window_date, occurrence_window_days, page, per_page } = {}, signal) {
10375
10441
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/groups`, {
10376
10442
  signal,
10377
10443
  searchParams: buildSearchParams$2({
@@ -10379,6 +10445,7 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
10379
10445
  without_project,
10380
10446
  pinned_only,
10381
10447
  include_unassigned,
10448
+ unified_search,
10382
10449
  search,
10383
10450
  only_me,
10384
10451
  occurrence_window_date,
@@ -10388,13 +10455,14 @@ async function getPickerTaskGroupsClassic(httpClient, organization_id, workspace
10388
10455
  })
10389
10456
  }).json();
10390
10457
  }
10391
- async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, search, only_me, page, per_page } = {}, signal) {
10458
+ async function getPickerTaskChildrenClassic(httpClient, organization_id, workspace_id, parent_task_id, { project_id, without_project, include_unassigned, unified_search, search, only_me, page, per_page } = {}, signal) {
10392
10459
  return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/picker/parents/${parent_task_id}/children`, {
10393
10460
  signal,
10394
10461
  searchParams: buildSearchParams$2({
10395
10462
  project_id,
10396
10463
  without_project,
10397
10464
  include_unassigned,
10465
+ unified_search,
10398
10466
  search,
10399
10467
  only_me,
10400
10468
  page,
@@ -23877,6 +23945,7 @@ const generatedFocusOperations = [
23877
23945
  per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23878
23946
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23879
23947
  search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23948
+ unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23880
23949
  without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23881
23950
  }),
23882
23951
  execute: (input, { client }) => {
@@ -23916,6 +23985,7 @@ const generatedFocusOperations = [
23916
23985
  pinned_only: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23917
23986
  project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
23918
23987
  search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23988
+ unified_search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
23919
23989
  without_project: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
23920
23990
  }),
23921
23991
  execute: (input, { client }) => {
@@ -29583,4 +29653,4 @@ Common commands:
29583
29653
  //#endregion
29584
29654
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
29585
29655
 
29586
- //# sourceMappingURL=program-CehPS5X3.js.map
29656
+ //# sourceMappingURL=program-C6Dg7orD.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CehPS5X3.js";
1
+ import { t as createProgram } from "./program-C6Dg7orD.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.12.6",
3
+ "version": "1.12.7",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",