@togglhq/cli 1.13.16 → 1.13.18

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-DQCfoPCC.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-Nf28I2o2.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-DQCfoPCC.js";
1
+ import { t as createProgram } from "./program-Nf28I2o2.js";
2
2
  export { createProgram };
@@ -7487,6 +7487,7 @@ const TimeEntrySchema = /* @__PURE__ */ object({
7487
7487
  calendar_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("CalendarID is the calendar service's calendar PK. It stays set after a calendar deselect clears calendar_event_id."))),
7488
7488
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7489
7489
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7490
+ designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
7490
7491
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Tracked duration in seconds; omitted while the timer is running and for an entry that is only planned."))),
7491
7492
  pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
7492
7493
  pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
@@ -7699,6 +7700,7 @@ const PaginatedTimeEntryWithTasksSchema = /* @__PURE__ */ object({
7699
7700
  calendar_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("CalendarID is the calendar service's calendar PK. It stays set after a calendar deselect clears calendar_event_id."))),
7700
7701
  deleted_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7701
7702
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7703
+ designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
7702
7704
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ description("Tracked duration in seconds; omitted while the timer is running and for an entry that is only planned."))),
7703
7705
  pattern_generated: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternGenerated is the response-facing derivative of GeneratedByTaskID: true when the entry was materialized by a series pattern."))),
7704
7706
  pattern_managed: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("PatternManaged reports that the pattern engine owns this entry. Server-owned; present in responses, never bindable from a payload."))),
@@ -7992,6 +7994,7 @@ const TimeEntryBulkCreatePayloadSchema = /* @__PURE__ */ object({
7992
7994
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7993
7995
  calendar_event_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7994
7996
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7997
+ designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
7995
7998
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
7996
7999
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
7997
8000
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
@@ -8007,6 +8010,7 @@ const TimeEntryPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
8007
8010
  id: /* @__PURE__ */ number(),
8008
8011
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
8009
8012
  description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
8013
+ designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
8010
8014
  duration: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
8011
8015
  planned_at: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))),
8012
8016
  planned_duration: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
@@ -8025,6 +8029,7 @@ const TimeEntryStartTrackingPayloadSchema = /* @__PURE__ */ object({
8025
8029
  billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
8026
8030
  calendar_event_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8027
8031
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
8032
+ designation_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("The workspace designation this entry belongs to."))),
8028
8033
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8029
8034
  start: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime())),
8030
8035
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
@@ -10880,7 +10885,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
10880
10885
  ]))
10881
10886
  });
10882
10887
  //#endregion
10883
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10888
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
10884
10889
  async function getInvitations(httpClient, signal) {
10885
10890
  return (await httpClient.get(`invitations`, { signal })).json();
10886
10891
  }
@@ -10897,7 +10902,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
10897
10902
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
10898
10903
  }
10899
10904
  //#endregion
10900
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10905
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/org/utils/requests.mjs
10901
10906
  function buildSearchParams(params, flattenArrays = false) {
10902
10907
  const searchParams = new URLSearchParams();
10903
10908
  Object.entries(params).forEach(([key, value]) => {
@@ -10909,7 +10914,7 @@ function buildSearchParams(params, flattenArrays = false) {
10909
10914
  return searchParams;
10910
10915
  }
10911
10916
  //#endregion
10912
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10917
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
10913
10918
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
10914
10919
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
10915
10920
  }
@@ -10923,7 +10928,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
10923
10928
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
10924
10929
  }
10925
10930
  //#endregion
10926
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10931
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
10927
10932
  async function getWorkspaces(httpClient, organization_id, signal) {
10928
10933
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
10929
10934
  }
@@ -10943,7 +10948,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
10943
10948
  });
10944
10949
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
10945
10950
  //#endregion
10946
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10951
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
10947
10952
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
10948
10953
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
10949
10954
  signal,
@@ -10954,12 +10959,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
10954
10959
  })).json();
10955
10960
  }
10956
10961
  //#endregion
10957
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10962
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
10958
10963
  async function getStatus(httpClient, signal) {
10959
10964
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
10960
10965
  }
10961
10966
  //#endregion
10962
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10967
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
10963
10968
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
10964
10969
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
10965
10970
  signal,
@@ -10987,7 +10992,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
10987
10992
  return response.json();
10988
10993
  }
10989
10994
  //#endregion
10990
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.214_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9064d30886d89a9da74fb6c4f28afc30/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10995
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.216_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_a280eb28ec35ad385a37ea4f164354cc/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
10991
10996
  async function getMyWorkingHours(httpClient, organization_id, signal) {
10992
10997
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
10993
10998
  }
@@ -29689,4 +29694,4 @@ Common commands:
29689
29694
  //#endregion
29690
29695
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
29691
29696
 
29692
- //# sourceMappingURL=program-DQCfoPCC.js.map
29697
+ //# sourceMappingURL=program-Nf28I2o2.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DQCfoPCC.js";
1
+ import { t as createProgram } from "./program-Nf28I2o2.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.16",
3
+ "version": "1.13.18",
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.214",
59
+ "@toggl/queries": "2.2.216",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",