@togglhq/cli 1.13.236 → 1.13.238

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-C9UaH9Wv.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-BexFgphc.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-C9UaH9Wv.js";
1
+ import { t as createProgram } from "./program-BexFgphc.js";
2
2
  export { createProgram };
@@ -7224,6 +7224,11 @@ const TaskMetadataSchema = /* @__PURE__ */ object({
7224
7224
  })),
7225
7225
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7226
7226
  });
7227
+ const RecurringPatternSchema = /* @__PURE__ */ object({
7228
+ duration_mins: /* @__PURE__ */ number(),
7229
+ start_time: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The local time in timezone, HH:MM.")),
7230
+ timezone: /* @__PURE__ */ string()
7231
+ });
7227
7232
  const StatusTypeSchema = /* @__PURE__ */ picklist([
7228
7233
  "todo",
7229
7234
  "done",
@@ -7284,7 +7289,8 @@ const TaskSchema = /* @__PURE__ */ object({
7284
7289
  project: /* @__PURE__ */ optional(ProjectLiteSchema),
7285
7290
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7286
7291
  recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7287
- 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."))),
7292
+ recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(RecurringPatternSchema, /* @__PURE__ */ description("The planned time of the task's series; omitted for a normal task, a deleted series and a series without one."))),
7293
+ 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 or is deleted."))),
7288
7294
  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."))),
7289
7295
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7290
7296
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7343,7 +7349,8 @@ const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
7343
7349
  project: /* @__PURE__ */ optional(ProjectLiteSchema),
7344
7350
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7345
7351
  recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7346
- 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."))),
7352
+ recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(RecurringPatternSchema, /* @__PURE__ */ description("The planned time of the task's series; omitted for a normal task, a deleted series and a series without one."))),
7353
+ 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 or is deleted."))),
7347
7354
  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."))),
7348
7355
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7349
7356
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -7673,7 +7680,8 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
7673
7680
  project: /* @__PURE__ */ optional(ProjectLiteSchema),
7674
7681
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7675
7682
  recurrence_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7676
- 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."))),
7683
+ recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(RecurringPatternSchema, /* @__PURE__ */ description("The planned time of the task's series; omitted for a normal task, a deleted series and a series without one."))),
7684
+ 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 or is deleted."))),
7677
7685
  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."))),
7678
7686
  recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7679
7687
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -11131,7 +11139,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
11131
11139
  ]))
11132
11140
  });
11133
11141
  //#endregion
11134
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
11142
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
11135
11143
  async function getInvitations(httpClient, signal) {
11136
11144
  return (await httpClient.get(`invitations`, { signal })).json();
11137
11145
  }
@@ -11148,7 +11156,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
11148
11156
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
11149
11157
  }
11150
11158
  //#endregion
11151
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/org/utils/requests.mjs
11159
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/org/utils/requests.mjs
11152
11160
  function buildSearchParams(params, flattenArrays = false) {
11153
11161
  const searchParams = new URLSearchParams();
11154
11162
  Object.entries(params).forEach(([key, value]) => {
@@ -11160,7 +11168,7 @@ function buildSearchParams(params, flattenArrays = false) {
11160
11168
  return searchParams;
11161
11169
  }
11162
11170
  //#endregion
11163
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
11171
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
11164
11172
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
11165
11173
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
11166
11174
  }
@@ -11175,7 +11183,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
11175
11183
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
11176
11184
  }
11177
11185
  //#endregion
11178
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
11186
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
11179
11187
  async function getWorkspaces(httpClient, organization_id, signal) {
11180
11188
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
11181
11189
  }
@@ -11195,7 +11203,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
11195
11203
  });
11196
11204
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
11197
11205
  //#endregion
11198
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11206
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11199
11207
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
11200
11208
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
11201
11209
  signal,
@@ -11206,12 +11214,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
11206
11214
  })).json();
11207
11215
  }
11208
11216
  //#endregion
11209
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11217
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11210
11218
  async function getStatus(httpClient, signal) {
11211
11219
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
11212
11220
  }
11213
11221
  //#endregion
11214
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11222
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11215
11223
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
11216
11224
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
11217
11225
  signal,
@@ -11239,7 +11247,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
11239
11247
  return response.json();
11240
11248
  }
11241
11249
  //#endregion
11242
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.348_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_07243c86356592cda7b13f44320471fb/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11250
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.349_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_9af9d1fb1e506beb857eb63aedc01772/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11243
11251
  async function getMyWorkingHours(httpClient, organization_id, signal) {
11244
11252
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
11245
11253
  }
@@ -33945,4 +33953,4 @@ Common commands:
33945
33953
  //#endregion
33946
33954
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
33947
33955
 
33948
- //# sourceMappingURL=program-C9UaH9Wv.js.map
33956
+ //# sourceMappingURL=program-BexFgphc.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-C9UaH9Wv.js";
1
+ import { t as createProgram } from "./program-BexFgphc.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.236",
3
+ "version": "1.13.238",
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.348",
59
+ "@toggl/queries": "2.2.349",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",