@togglhq/cli 1.5.72 → 1.5.73
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-BZvMwzzd.js → program-CdCJcMAD.js} +35 -11
- package/build/program.js +1 -1
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as CommanderError, t as createProgram } from "./program-
|
|
2
|
+
import { n as CommanderError, t as createProgram } from "./program-CdCJcMAD.js";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
try {
|
|
5
5
|
await createProgram({ enableUpdateNotification: true }).parseAsync(process.argv);
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-CdCJcMAD.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -5643,6 +5643,27 @@ function regex(requirement, message$1) {
|
|
|
5643
5643
|
};
|
|
5644
5644
|
}
|
|
5645
5645
|
/**
|
|
5646
|
+
* Creates a custom transformation action.
|
|
5647
|
+
*
|
|
5648
|
+
* @param operation The transformation operation.
|
|
5649
|
+
*
|
|
5650
|
+
* @returns A transform action.
|
|
5651
|
+
*/
|
|
5652
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
5653
|
+
function transform(operation) {
|
|
5654
|
+
return {
|
|
5655
|
+
kind: "transformation",
|
|
5656
|
+
type: "transform",
|
|
5657
|
+
reference: transform,
|
|
5658
|
+
async: false,
|
|
5659
|
+
operation,
|
|
5660
|
+
"~run"(dataset) {
|
|
5661
|
+
dataset.value = this.operation(dataset.value);
|
|
5662
|
+
return dataset;
|
|
5663
|
+
}
|
|
5664
|
+
};
|
|
5665
|
+
}
|
|
5666
|
+
/**
|
|
5646
5667
|
* Returns the fallback value of the schema.
|
|
5647
5668
|
*
|
|
5648
5669
|
* @param schema The schema to get it from.
|
|
@@ -10889,8 +10910,8 @@ function parseOptionalInt(value) {
|
|
|
10889
10910
|
return Number.isFinite(n) ? n : void 0;
|
|
10890
10911
|
}
|
|
10891
10912
|
function toNumberArray(value) {
|
|
10892
|
-
const
|
|
10893
|
-
return
|
|
10913
|
+
const parsed = (Array.isArray(value) ? value : [value]).map(parseOptionalInt).filter((parsedValue) => parsedValue !== void 0);
|
|
10914
|
+
return parsed.length > 0 ? parsed : void 0;
|
|
10894
10915
|
}
|
|
10895
10916
|
function validationErrorMessage(issues) {
|
|
10896
10917
|
return issues.map((issue) => issue.message ?? "invalid").join("; ");
|
|
@@ -11088,16 +11109,17 @@ var FocusClient = class {
|
|
|
11088
11109
|
const page = parseOptionalInt(params.page);
|
|
11089
11110
|
const per_page = parseOptionalInt(params.per_page);
|
|
11090
11111
|
const project_id = toNumberArray(params.project_id);
|
|
11112
|
+
const tag_id = toNumberArray(params.tag_id);
|
|
11091
11113
|
const status_id = toNumberArray(params.status_id);
|
|
11092
11114
|
const parent_task_id = toNumberArray(params.parent_task_id);
|
|
11093
11115
|
const assigneeUserId = parseOptionalInt(params.assignee_user_id);
|
|
11094
11116
|
const assignee_user_id = assigneeUserId === void 0 ? void 0 : [assigneeUserId];
|
|
11095
|
-
const
|
|
11096
|
-
const priority = priorityValue === void 0 ? void 0 : [priorityValue];
|
|
11117
|
+
const priority = params.priority === void 0 ? void 0 : [params.priority];
|
|
11097
11118
|
const response = await this.run("listTasks", () => getTasksClassic(this.http, this.organizationIdNum, this.workspaceIdNum, {
|
|
11098
11119
|
page,
|
|
11099
11120
|
per_page,
|
|
11100
11121
|
project_id,
|
|
11122
|
+
tag_id,
|
|
11101
11123
|
status_id,
|
|
11102
11124
|
parent_task_id,
|
|
11103
11125
|
name: typeof params.name === "string" ? params.name : void 0,
|
|
@@ -12474,11 +12496,12 @@ async function runSkillSetup(options) {
|
|
|
12474
12496
|
});
|
|
12475
12497
|
}
|
|
12476
12498
|
//#endregion
|
|
12477
|
-
//#region ../operations/build/safety-
|
|
12499
|
+
//#region ../operations/build/safety-PA22Wppt.js
|
|
12478
12500
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
12479
12501
|
const DATE_FIELD_RE = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$/;
|
|
12480
12502
|
const dateField = (description) => /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ regex(DATE_FIELD_RE, "must be YYYY-MM-DD or RFC3339 datetime (e.g. '2025-01-01' or '2025-01-01T00:00:00Z')"), /* @__PURE__ */ description$1(description));
|
|
12481
12503
|
const apiDateTimeString = /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoTimestamp());
|
|
12504
|
+
const tagIdFilterSchema = /* @__PURE__ */ union([/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ transform((tagId) => [tagId])), /* @__PURE__ */ pipe$2(/* @__PURE__ */ array$1(/* @__PURE__ */ number$2()), /* @__PURE__ */ minLength$1(1))]);
|
|
12482
12505
|
const timeBlockListSchema = /* @__PURE__ */ object$2({
|
|
12483
12506
|
date_from: dateField("Range start — date-only (e.g. '2025-01-01') or RFC3339 datetime. Date-only is expanded to T00:00:00Z."),
|
|
12484
12507
|
date_to: dateField("Range end — date-only (e.g. '2025-01-07') or RFC3339 datetime. Date-only is expanded to T23:59:59Z."),
|
|
@@ -12507,6 +12530,7 @@ const taskListSchema = /* @__PURE__ */ object$2({
|
|
|
12507
12530
|
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ description$1("Filter by task name (partial match)"))),
|
|
12508
12531
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by status ID"))),
|
|
12509
12532
|
project_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by project ID"))),
|
|
12533
|
+
tag_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(tagIdFilterSchema, /* @__PURE__ */ description$1("Filter by tag IDs"))),
|
|
12510
12534
|
assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ description$1("Filter by assignee user ID"))),
|
|
12511
12535
|
priority: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ picklist$1([
|
|
12512
12536
|
"none",
|
|
@@ -20446,7 +20470,7 @@ const generatedFocusOperations = [
|
|
|
20446
20470
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20447
20471
|
recurring_task_ids: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20448
20472
|
start_date: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1())),
|
|
20449
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
20473
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
20450
20474
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20451
20475
|
}),
|
|
20452
20476
|
execute: (input, { client }) => {
|
|
@@ -20512,7 +20536,7 @@ const generatedFocusOperations = [
|
|
|
20512
20536
|
start_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20513
20537
|
state: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20514
20538
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20515
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
20539
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
20516
20540
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20517
20541
|
time_block_completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20518
20542
|
time_block_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
@@ -20555,7 +20579,7 @@ const generatedFocusOperations = [
|
|
|
20555
20579
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20556
20580
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20557
20581
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20558
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
20582
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
20559
20583
|
task_id: /* @__PURE__ */ number$2(),
|
|
20560
20584
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20561
20585
|
}),
|
|
@@ -20596,7 +20620,7 @@ const generatedFocusOperations = [
|
|
|
20596
20620
|
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20597
20621
|
source: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20598
20622
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20599
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
20623
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
20600
20624
|
task_id: /* @__PURE__ */ number$2(),
|
|
20601
20625
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20602
20626
|
}),
|
|
@@ -20654,7 +20678,7 @@ const generatedFocusOperations = [
|
|
|
20654
20678
|
start_date_from: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20655
20679
|
start_date_to: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20656
20680
|
status_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
20657
|
-
tag_id: /* @__PURE__ */ optional$1(
|
|
20681
|
+
tag_id: /* @__PURE__ */ optional$1(tagIdFilterSchema),
|
|
20658
20682
|
tasks_per_group: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
20659
20683
|
team_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2())
|
|
20660
20684
|
}),
|
|
@@ -25119,4 +25143,4 @@ Common commands:
|
|
|
25119
25143
|
//#endregion
|
|
25120
25144
|
export { CommanderError as n, createProgram as t };
|
|
25121
25145
|
|
|
25122
|
-
//# sourceMappingURL=program-
|
|
25146
|
+
//# sourceMappingURL=program-CdCJcMAD.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-CdCJcMAD.js";
|
|
2
2
|
export { createProgram };
|