@togglhq/cli 1.12.4 → 1.12.6

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-DPMUKfI3.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-CehPS5X3.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-DPMUKfI3.js";
1
+ import { t as createProgram } from "./program-CehPS5X3.js";
2
2
  export { createProgram };
@@ -7762,7 +7762,7 @@ const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7762
7762
  estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["manual", "tasks"])),
7763
7763
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
7764
7764
  fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
7765
- name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7765
+ name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
7766
7766
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7767
7767
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7768
7768
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7790,7 +7790,7 @@ const ProjectPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7790
7790
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
7791
7791
  fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
7792
7792
  groups: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(ProjectBulkGroupEntrySchema))),
7793
- name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7793
+ name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
7794
7794
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7795
7795
  pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7796
7796
  private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7851,7 +7851,7 @@ const TaskBulkRestorePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PU
7851
7851
  const TaskBulkUnarchivePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
7852
7852
  const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7853
7853
  after_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7854
- allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["percent", "flat"]))),
7854
+ allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["percent", "flat"])),
7855
7855
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
7856
7856
  auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
7857
7857
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
@@ -7861,7 +7861,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7861
7861
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
7862
7862
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7863
7863
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
7864
- name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7864
+ name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
7865
7865
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7866
7866
  outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7867
7867
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
@@ -7889,7 +7889,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7889
7889
  const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7890
7890
  id: /* @__PURE__ */ number(),
7891
7891
  after_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
7892
- allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["percent", "flat"]))),
7892
+ allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["percent", "flat"])),
7893
7893
  assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
7894
7894
  auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
7895
7895
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
@@ -7899,7 +7899,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7899
7899
  end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
7900
7900
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7901
7901
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
7902
- name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7902
+ name: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ minLength(1))),
7903
7903
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7904
7904
  outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7905
7905
  parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
@@ -10804,7 +10804,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10804
10804
  ]))
10805
10805
  });
10806
10806
  //#endregion
10807
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10807
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10808
10808
  async function getInvitations(httpClient, signal) {
10809
10809
  return (await httpClient.get(`invitations`, { signal })).json();
10810
10810
  }
@@ -10821,7 +10821,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10821
10821
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10822
10822
  }
10823
10823
  //#endregion
10824
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10824
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10825
10825
  function buildSearchParams(params, flattenArrays = false) {
10826
10826
  const searchParams = new URLSearchParams();
10827
10827
  Object.entries(params).forEach(([key, value]) => {
@@ -10833,7 +10833,7 @@ function buildSearchParams(params, flattenArrays = false) {
10833
10833
  return searchParams;
10834
10834
  }
10835
10835
  //#endregion
10836
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10836
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10837
10837
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10838
10838
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10839
10839
  }
@@ -10847,7 +10847,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10847
10847
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10848
10848
  }
10849
10849
  //#endregion
10850
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10850
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10851
10851
  async function getWorkspaces(httpClient, organization_id, signal) {
10852
10852
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10853
10853
  }
@@ -10867,7 +10867,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10867
10867
  });
10868
10868
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10869
10869
  //#endregion
10870
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10870
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10871
10871
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
10872
10872
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
10873
10873
  signal,
@@ -10878,12 +10878,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
10878
10878
  })).json();
10879
10879
  }
10880
10880
  //#endregion
10881
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10881
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10882
10882
  async function getStatus(httpClient, signal) {
10883
10883
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10884
10884
  }
10885
10885
  //#endregion
10886
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10886
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10887
10887
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10888
10888
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10889
10889
  signal,
@@ -10911,7 +10911,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10911
10911
  return response.json();
10912
10912
  }
10913
10913
  //#endregion
10914
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.184_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_82f947175013b808696933604b43df1e/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10914
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.189_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_23c5c16ba6d2faa2d3cacd6024289848/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10915
10915
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10916
10916
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10917
10917
  }
@@ -18073,6 +18073,7 @@ const generatedFocusOperations = [
18073
18073
  inputSchema: /* @__PURE__ */ looseObject({
18074
18074
  milestone_id: /* @__PURE__ */ number$2(),
18075
18075
  payload: /* @__PURE__ */ looseObject({
18076
+ color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
18076
18077
  due_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
18077
18078
  name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
18078
18079
  project_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2())),
@@ -29582,4 +29583,4 @@ Common commands:
29582
29583
  //#endregion
29583
29584
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
29584
29585
 
29585
- //# sourceMappingURL=program-DPMUKfI3.js.map
29586
+ //# sourceMappingURL=program-CehPS5X3.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DPMUKfI3.js";
1
+ import { t as createProgram } from "./program-CehPS5X3.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.12.4",
3
+ "version": "1.12.6",
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.184",
59
+ "@toggl/queries": "2.2.189",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",