@togglhq/cli 1.13.203 → 1.13.205

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-DOHKX6oy.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-CQoemClO.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-DOHKX6oy.js";
1
+ import { t as createProgram } from "./program-CQoemClO.js";
2
2
  export { createProgram };
@@ -7554,6 +7554,10 @@ const ClientSchema = /* @__PURE__ */ object({
7554
7554
  toggl_user_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7555
7555
  updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
7556
7556
  });
7557
+ const InvoicedAmountSchema = /* @__PURE__ */ object({
7558
+ amount_minor: /* @__PURE__ */ number(),
7559
+ currency: /* @__PURE__ */ string()
7560
+ });
7557
7561
  const PaginatedClientsSchema = /* @__PURE__ */ object({
7558
7562
  data: /* @__PURE__ */ array(ClientSchema),
7559
7563
  page: /* @__PURE__ */ number(),
@@ -7602,6 +7606,10 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
7602
7606
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7603
7607
  filtered_task_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7604
7608
  fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeeSchema),
7609
+ invoicing: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
7610
+ agreement: /* @__PURE__ */ picklist(["hourly", "fixed_fee"]),
7611
+ invoiced: /* @__PURE__ */ nullable(/* @__PURE__ */ array(InvoicedAmountSchema))
7612
+ }), /* @__PURE__ */ description("Invoicing is set only with include_invoicing, under the invoices_v2 beta flag, on an unlocked project that invoicing knows."))),
7605
7613
  parent_project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7606
7614
  picker_parent_group_count: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7607
7615
  rate: /* @__PURE__ */ optional(EffectiveProjectRatesSummarySchema),
@@ -10147,7 +10155,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
10147
10155
  }
10148
10156
  //#endregion
10149
10157
  //#region ../focus-queries/dist/projects/requests.ts
10150
- async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, 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, project_id, estimate_source, 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) {
10158
+ async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, include_picker_pinned_tasks, 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, project_id, estimate_source, user_id, only_me, include_rates, include_rollover, include_invoicing, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
10151
10159
  return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
10152
10160
  signal,
10153
10161
  searchParams: buildSearchParams$2({
@@ -10184,6 +10192,7 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
10184
10192
  only_me,
10185
10193
  include_rates,
10186
10194
  include_rollover,
10195
+ include_invoicing,
10187
10196
  include_idle_recurring_templates,
10188
10197
  collapse_recurring,
10189
10198
  include_drafts,
@@ -11117,7 +11126,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
11117
11126
  ]))
11118
11127
  });
11119
11128
  //#endregion
11120
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
11129
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
11121
11130
  async function getInvitations(httpClient, signal) {
11122
11131
  return (await httpClient.get(`invitations`, { signal })).json();
11123
11132
  }
@@ -11134,7 +11143,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
11134
11143
  return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
11135
11144
  }
11136
11145
  //#endregion
11137
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/org/utils/requests.mjs
11146
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/utils/requests.mjs
11138
11147
  function buildSearchParams(params, flattenArrays = false) {
11139
11148
  const searchParams = new URLSearchParams();
11140
11149
  Object.entries(params).forEach(([key, value]) => {
@@ -11146,7 +11155,7 @@ function buildSearchParams(params, flattenArrays = false) {
11146
11155
  return searchParams;
11147
11156
  }
11148
11157
  //#endregion
11149
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
11158
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
11150
11159
  async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
11151
11160
  return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
11152
11161
  }
@@ -11161,7 +11170,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
11161
11170
  return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
11162
11171
  }
11163
11172
  //#endregion
11164
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
11173
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
11165
11174
  async function getWorkspaces(httpClient, organization_id, signal) {
11166
11175
  return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
11167
11176
  }
@@ -11181,7 +11190,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
11181
11190
  });
11182
11191
  const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
11183
11192
  //#endregion
11184
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11193
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
11185
11194
  async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
11186
11195
  return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
11187
11196
  signal,
@@ -11192,12 +11201,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
11192
11201
  })).json();
11193
11202
  }
11194
11203
  //#endregion
11195
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11204
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
11196
11205
  async function getStatus(httpClient, signal) {
11197
11206
  return (await httpClient.get(`shared_data/api/status`, { signal })).json();
11198
11207
  }
11199
11208
  //#endregion
11200
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11209
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
11201
11210
  async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
11202
11211
  return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
11203
11212
  signal,
@@ -11225,7 +11234,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
11225
11234
  return response.json();
11226
11235
  }
11227
11236
  //#endregion
11228
- //#region ../../node_modules/.pnpm/@toggl+queries@2.2.330_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_b2194c0cfcc3d419a840d45ecbef9523/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11237
+ //#region ../../node_modules/.pnpm/@toggl+queries@2.2.331_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_18caac3eb5a510e9457f2357f3a8d782/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
11229
11238
  async function getMyWorkingHours(httpClient, organization_id, signal) {
11230
11239
  return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
11231
11240
  }
@@ -33678,4 +33687,4 @@ Common commands:
33678
33687
  //#endregion
33679
33688
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
33680
33689
 
33681
- //# sourceMappingURL=program-DOHKX6oy.js.map
33690
+ //# sourceMappingURL=program-CQoemClO.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-DOHKX6oy.js";
1
+ import { t as createProgram } from "./program-CQoemClO.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.203",
3
+ "version": "1.13.205",
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.330",
59
+ "@toggl/queries": "2.2.331",
60
60
  "@types/node": "22.19.11",
61
61
  "tsdown": "0.21.8",
62
62
  "typescript": "5.9.3",