@togglhq/cli 1.11.200 → 1.11.202
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-BRq-um7E.js → program-CaSr19J7.js} +20 -12
- 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-CaSr19J7.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-CaSr19J7.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7503,6 +7503,7 @@ const ProjectPayloadSchema = /* @__PURE__ */ object({
|
|
|
7503
7503
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
7504
7504
|
draft: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7505
7505
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7506
|
+
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["manual", "tasks"]))),
|
|
7506
7507
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
|
|
7507
7508
|
fixed_fee: /* @__PURE__ */ optional(ProjectFixedFeePayloadSchema),
|
|
7508
7509
|
is_template: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -7518,6 +7519,7 @@ const ProjectPayloadSchema = /* @__PURE__ */ object({
|
|
|
7518
7519
|
start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
|
|
7519
7520
|
tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number())))
|
|
7520
7521
|
});
|
|
7522
|
+
const ProjectEstimateSourceSchema = /* @__PURE__ */ picklist(["manual", "tasks"]);
|
|
7521
7523
|
const ProjectFixedFeeSchema = /* @__PURE__ */ object({
|
|
7522
7524
|
amount: /* @__PURE__ */ number(),
|
|
7523
7525
|
currency: /* @__PURE__ */ string()
|
|
@@ -7529,6 +7531,7 @@ const ProjectSchema = /* @__PURE__ */ object({
|
|
|
7529
7531
|
completion_mode: /* @__PURE__ */ picklist(["manual", "automatic"]),
|
|
7530
7532
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
7531
7533
|
draft: /* @__PURE__ */ boolean(),
|
|
7534
|
+
estimate_source: ProjectEstimateSourceSchema,
|
|
7532
7535
|
id: /* @__PURE__ */ number(),
|
|
7533
7536
|
is_template: /* @__PURE__ */ boolean(),
|
|
7534
7537
|
name: /* @__PURE__ */ string(),
|
|
@@ -7634,6 +7637,7 @@ const ProjectWithAggregationsSchema = /* @__PURE__ */ object({
|
|
|
7634
7637
|
completion_mode: /* @__PURE__ */ picklist(["manual", "automatic"]),
|
|
7635
7638
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
7636
7639
|
draft: /* @__PURE__ */ boolean(),
|
|
7640
|
+
estimate_source: ProjectEstimateSourceSchema,
|
|
7637
7641
|
id: /* @__PURE__ */ number(),
|
|
7638
7642
|
is_template: /* @__PURE__ */ boolean(),
|
|
7639
7643
|
name: /* @__PURE__ */ string(),
|
|
@@ -7836,7 +7840,7 @@ const ProjectBulkUserEntrySchema = /* @__PURE__ */ object({
|
|
|
7836
7840
|
user_id: /* @__PURE__ */ number()
|
|
7837
7841
|
});
|
|
7838
7842
|
const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
7839
|
-
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7843
|
+
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
7840
7844
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7841
7845
|
client_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
7842
7846
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
@@ -7845,6 +7849,7 @@ const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
7845
7849
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7846
7850
|
draft: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7847
7851
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
7852
|
+
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["manual", "tasks"])),
|
|
7848
7853
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
7849
7854
|
fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
|
|
7850
7855
|
name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
@@ -7862,7 +7867,7 @@ const ProjectPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
7862
7867
|
});
|
|
7863
7868
|
const ProjectPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
7864
7869
|
id: /* @__PURE__ */ number(),
|
|
7865
|
-
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7870
|
+
auto_compute_estimates: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
7866
7871
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7867
7872
|
client_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
7868
7873
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
@@ -7871,6 +7876,7 @@ const ProjectPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
7871
7876
|
description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7872
7877
|
draft: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7873
7878
|
end_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
|
|
7879
|
+
estimate_source: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["manual", "tasks"])),
|
|
7874
7880
|
estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
|
|
7875
7881
|
fixed_fee: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(ProjectFixedFeePayloadSchema)),
|
|
7876
7882
|
groups: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(ProjectBulkGroupEntrySchema))),
|
|
@@ -10887,7 +10893,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10887
10893
|
]))
|
|
10888
10894
|
});
|
|
10889
10895
|
//#endregion
|
|
10890
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10896
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10891
10897
|
async function getInvitations(httpClient, signal) {
|
|
10892
10898
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10893
10899
|
}
|
|
@@ -10904,7 +10910,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10904
10910
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10905
10911
|
}
|
|
10906
10912
|
//#endregion
|
|
10907
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10913
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10908
10914
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10909
10915
|
const searchParams = new URLSearchParams();
|
|
10910
10916
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10916,7 +10922,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10916
10922
|
return searchParams;
|
|
10917
10923
|
}
|
|
10918
10924
|
//#endregion
|
|
10919
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10925
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10920
10926
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10921
10927
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10922
10928
|
}
|
|
@@ -10930,7 +10936,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10930
10936
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10931
10937
|
}
|
|
10932
10938
|
//#endregion
|
|
10933
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10939
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10934
10940
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10935
10941
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10936
10942
|
}
|
|
@@ -10950,7 +10956,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10950
10956
|
});
|
|
10951
10957
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10952
10958
|
//#endregion
|
|
10953
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10959
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10954
10960
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10955
10961
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10956
10962
|
signal,
|
|
@@ -10961,12 +10967,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
10961
10967
|
})).json();
|
|
10962
10968
|
}
|
|
10963
10969
|
//#endregion
|
|
10964
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10970
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
10965
10971
|
async function getStatus(httpClient, signal) {
|
|
10966
10972
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
10967
10973
|
}
|
|
10968
10974
|
//#endregion
|
|
10969
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10975
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
10970
10976
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
10971
10977
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
10972
10978
|
signal,
|
|
@@ -10994,7 +11000,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
10994
11000
|
return response.json();
|
|
10995
11001
|
}
|
|
10996
11002
|
//#endregion
|
|
10997
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11003
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.172_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_72aa2d7f8c76e90b08aceb247e1c8e7b/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
10998
11004
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
10999
11005
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11000
11006
|
}
|
|
@@ -18552,6 +18558,7 @@ const generatedFocusOperations = [
|
|
|
18552
18558
|
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18553
18559
|
completion_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "automatic"])),
|
|
18554
18560
|
end_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
18561
|
+
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "tasks"])),
|
|
18555
18562
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18556
18563
|
pinned: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18557
18564
|
rollover_mode: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1([
|
|
@@ -18594,8 +18601,8 @@ const generatedFocusOperations = [
|
|
|
18594
18601
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
18595
18602
|
date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
18596
18603
|
payload: /* @__PURE__ */ looseObject({
|
|
18597
|
-
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18598
18604
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18605
|
+
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "tasks"])),
|
|
18599
18606
|
private: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
18600
18607
|
}),
|
|
18601
18608
|
project_id: /* @__PURE__ */ number$2()
|
|
@@ -18631,6 +18638,7 @@ const generatedFocusOperations = [
|
|
|
18631
18638
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
18632
18639
|
payload: /* @__PURE__ */ looseObject({
|
|
18633
18640
|
auto_compute_estimates: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
18641
|
+
estimate_source: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["manual", "tasks"])),
|
|
18634
18642
|
estimated_mins: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
18635
18643
|
fixed_fee: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
18636
18644
|
amount: /* @__PURE__ */ number$2(),
|
|
@@ -29193,4 +29201,4 @@ Common commands:
|
|
|
29193
29201
|
//#endregion
|
|
29194
29202
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29195
29203
|
|
|
29196
|
-
//# sourceMappingURL=program-
|
|
29204
|
+
//# sourceMappingURL=program-CaSr19J7.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-CaSr19J7.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.202",
|
|
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.172",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|