@togglhq/cli 1.5.53 → 1.5.54
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 { n as CommanderError, t as createProgram } from "./program-
|
|
2
|
+
import { n as CommanderError, t as createProgram } from "./program-CUO6ODOB.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-CUO6ODOB.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -8314,6 +8314,31 @@ function getFallback(schema, dataset, config$1) {
|
|
|
8314
8314
|
return typeof schema.fallback === "function" ? schema.fallback(dataset, config$1) : schema.fallback;
|
|
8315
8315
|
}
|
|
8316
8316
|
/**
|
|
8317
|
+
* Returns a fallback value as output if the input does not match the schema.
|
|
8318
|
+
*
|
|
8319
|
+
* @param schema The schema to catch.
|
|
8320
|
+
* @param fallback The fallback value.
|
|
8321
|
+
*
|
|
8322
|
+
* @returns The passed schema.
|
|
8323
|
+
*/
|
|
8324
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
8325
|
+
function fallback(schema, fallback$1) {
|
|
8326
|
+
return {
|
|
8327
|
+
...schema,
|
|
8328
|
+
fallback: fallback$1,
|
|
8329
|
+
get "~standard"() {
|
|
8330
|
+
return /* @__PURE__ */ _getStandardProps(this);
|
|
8331
|
+
},
|
|
8332
|
+
"~run"(dataset, config$1) {
|
|
8333
|
+
const outputDataset = schema["~run"](dataset, config$1);
|
|
8334
|
+
return outputDataset.issues ? {
|
|
8335
|
+
typed: true,
|
|
8336
|
+
value: /* @__PURE__ */ getFallback(this, outputDataset, config$1)
|
|
8337
|
+
} : outputDataset;
|
|
8338
|
+
}
|
|
8339
|
+
};
|
|
8340
|
+
}
|
|
8341
|
+
/**
|
|
8317
8342
|
* Returns the default value of the schema.
|
|
8318
8343
|
*
|
|
8319
8344
|
* @param schema The schema to get it from.
|
|
@@ -8795,6 +8820,7 @@ const TagLiteSchema = /* @__PURE__ */ object({
|
|
|
8795
8820
|
color: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
8796
8821
|
});
|
|
8797
8822
|
const TaskSchema = /* @__PURE__ */ object({
|
|
8823
|
+
allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
|
|
8798
8824
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
8799
8825
|
estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
|
|
8800
8826
|
id: /* @__PURE__ */ number(),
|
|
@@ -8845,6 +8871,7 @@ const TaskSchema = /* @__PURE__ */ object({
|
|
|
8845
8871
|
updated_at: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()))
|
|
8846
8872
|
});
|
|
8847
8873
|
const TaskWithParentAndAggregationsSchema = /* @__PURE__ */ object({
|
|
8874
|
+
allocation_unit: /* @__PURE__ */ picklist(["percent", "flat"]),
|
|
8848
8875
|
created_at: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDateTime()),
|
|
8849
8876
|
estimate_type: /* @__PURE__ */ picklist(["daily", "total"]),
|
|
8850
8877
|
id: /* @__PURE__ */ number(),
|
|
@@ -9383,6 +9410,7 @@ const TagPayloadSchema = /* @__PURE__ */ object({
|
|
|
9383
9410
|
const TaskBulkArchivePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
9384
9411
|
const TaskCreatePayloadSchema = /* @__PURE__ */ object({
|
|
9385
9412
|
name: /* @__PURE__ */ string(),
|
|
9413
|
+
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ fallback(/* @__PURE__ */ picklist(["percent", "flat"]), "flat")),
|
|
9386
9414
|
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
9387
9415
|
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
9388
9416
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -9422,6 +9450,7 @@ const TaskBulkDuplicatePayloadSchema = /* @__PURE__ */ object({
|
|
|
9422
9450
|
const TaskBulkRestorePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
9423
9451
|
const TaskBulkUnarchivePayloadSchema = /* @__PURE__ */ object({ task_ids: /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ number()), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(100)) });
|
|
9424
9452
|
const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
9453
|
+
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["percent", "flat"]))),
|
|
9425
9454
|
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
9426
9455
|
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
9427
9456
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -9456,6 +9485,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
9456
9485
|
});
|
|
9457
9486
|
const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
9458
9487
|
id: /* @__PURE__ */ number(),
|
|
9488
|
+
allocation_unit: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ picklist(["percent", "flat"]))),
|
|
9459
9489
|
assignee_user_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
|
|
9460
9490
|
auto_log_time: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ boolean())),
|
|
9461
9491
|
billable: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -15462,6 +15492,7 @@ const generatedFocusOperations = [
|
|
|
15462
15492
|
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
15463
15493
|
task: /* @__PURE__ */ looseObject({
|
|
15464
15494
|
name: /* @__PURE__ */ string$1(),
|
|
15495
|
+
allocation_unit: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["percent", "flat"])),
|
|
15465
15496
|
auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
15466
15497
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
15467
15498
|
color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
@@ -15490,6 +15521,7 @@ const generatedFocusOperations = [
|
|
|
15490
15521
|
}),
|
|
15491
15522
|
subtasks: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
15492
15523
|
name: /* @__PURE__ */ string$1(),
|
|
15524
|
+
allocation_unit: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["percent", "flat"])),
|
|
15493
15525
|
auto_log_time: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
15494
15526
|
billable: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1()),
|
|
15495
15527
|
color: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
@@ -25912,4 +25944,4 @@ Common commands:
|
|
|
25912
25944
|
//#endregion
|
|
25913
25945
|
export { CommanderError as n, createProgram as t };
|
|
25914
25946
|
|
|
25915
|
-
//# sourceMappingURL=program-
|
|
25947
|
+
//# sourceMappingURL=program-CUO6ODOB.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-CUO6ODOB.js";
|
|
2
2
|
export { createProgram };
|