@togglhq/cli 1.13.237 → 1.13.239
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 +1 -1
- package/build/index.js +1 -1
- package/build/{program-HauOpmPY.js → program-Cg-1tTpd.js} +26 -13
- package/build/program.js +1 -1
- package/package.json +2 -2
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-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-Cg-1tTpd.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-
|
|
1
|
+
import { t as createProgram } from "./program-Cg-1tTpd.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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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()),
|
|
@@ -7997,7 +8005,12 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
7997
8005
|
priority_at: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
7998
8006
|
private: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7999
8007
|
project_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
8000
|
-
|
|
8008
|
+
recurring_pattern: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
|
|
8009
|
+
duration_mins: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1), /* @__PURE__ */ maxValue(1440)),
|
|
8010
|
+
start_time: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The local time in timezone, HH:MM.")),
|
|
8011
|
+
timezone: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ maxLength(64))
|
|
8012
|
+
}), /* @__PURE__ */ description("The planned time of the series, sent only with a recurring_rule that makes the task repeat."))),
|
|
8013
|
+
recurring_rule: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), /* @__PURE__ */ description("Makes the task repeat (PATCH /tasks/{id} only, sent alone or with recurring_pattern): an RRULE whose DTSTART gives the dates if none are set. On an occurrence, a rule sent with scope=following or all changes the series' rule, or starts a stopped series again, and null stops the series; an empty string is invalid."))),
|
|
8001
8014
|
recurring_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
8002
8015
|
repeat_planned_time_entry_id: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ number()), /* @__PURE__ */ description("RepeatPlannedTimeEntryID is the declared initial-selection input that will start a series from an existing planned entry (PR 11). Any supplied value — an ID or JSON null — is rejected until then; the contract is declared in docs/recurring-pr2a-additive-schema.md. json.RawMessage keeps absent distinguishable from explicit null on decode and is omitted on marshal when never set."))),
|
|
8003
8016
|
rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -11131,7 +11144,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
11131
11144
|
]))
|
|
11132
11145
|
});
|
|
11133
11146
|
//#endregion
|
|
11134
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11147
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
11135
11148
|
async function getInvitations(httpClient, signal) {
|
|
11136
11149
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
11137
11150
|
}
|
|
@@ -11148,7 +11161,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
11148
11161
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
11149
11162
|
}
|
|
11150
11163
|
//#endregion
|
|
11151
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11164
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11152
11165
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11153
11166
|
const searchParams = new URLSearchParams();
|
|
11154
11167
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11160,7 +11173,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11160
11173
|
return searchParams;
|
|
11161
11174
|
}
|
|
11162
11175
|
//#endregion
|
|
11163
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11176
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11164
11177
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11165
11178
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11166
11179
|
}
|
|
@@ -11175,7 +11188,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11175
11188
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11176
11189
|
}
|
|
11177
11190
|
//#endregion
|
|
11178
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11191
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11179
11192
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11180
11193
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11181
11194
|
}
|
|
@@ -11195,7 +11208,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11195
11208
|
});
|
|
11196
11209
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11197
11210
|
//#endregion
|
|
11198
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11211
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11199
11212
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11200
11213
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11201
11214
|
signal,
|
|
@@ -11206,12 +11219,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11206
11219
|
})).json();
|
|
11207
11220
|
}
|
|
11208
11221
|
//#endregion
|
|
11209
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11222
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11210
11223
|
async function getStatus(httpClient, signal) {
|
|
11211
11224
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11212
11225
|
}
|
|
11213
11226
|
//#endregion
|
|
11214
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11227
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11215
11228
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11216
11229
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11217
11230
|
signal,
|
|
@@ -11239,7 +11252,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11239
11252
|
return response.json();
|
|
11240
11253
|
}
|
|
11241
11254
|
//#endregion
|
|
11242
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11255
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.351_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_7b62aef69cade02cab3a09c36c351cbb/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11243
11256
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11244
11257
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11245
11258
|
}
|
|
@@ -33945,4 +33958,4 @@ Common commands:
|
|
|
33945
33958
|
//#endregion
|
|
33946
33959
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
33947
33960
|
|
|
33948
|
-
//# sourceMappingURL=program-
|
|
33961
|
+
//# sourceMappingURL=program-Cg-1tTpd.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-Cg-1tTpd.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.239",
|
|
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.
|
|
59
|
+
"@toggl/queries": "2.2.351",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|