@togglhq/cli 1.11.222 → 1.11.224

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-5e7huSjO.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-BWLypjki.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-5e7huSjO.js";
1
+ import { t as createProgram } from "./program-BWLypjki.js";
2
2
  export { createProgram };
@@ -7916,7 +7916,7 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
7916
7916
  color: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7917
7917
  custom_fields: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown())),
7918
7918
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
7919
- end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7919
+ end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
7920
7920
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7921
7921
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0))),
7922
7922
  notes: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -7934,7 +7934,7 @@ const TaskCreatePayloadSchema = /* @__PURE__ */ object({
7934
7934
  project_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7935
7935
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7936
7936
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7937
- start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())),
7937
+ start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()), /* @__PURE__ */ description("Send together with end_date; a date without the other is rejected."))),
7938
7938
  status_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7939
7939
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
7940
7940
  team_assignee_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number())))
@@ -7956,7 +7956,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7956
7956
  color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7957
7957
  custom_fields: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ object({}))),
7958
7958
  description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7959
- end_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
7959
+ end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
7960
7960
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7961
7961
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
7962
7962
  name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -7979,7 +7979,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
7979
7979
  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."))),
7980
7980
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
7981
7981
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7982
- start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
7982
+ start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with end_date; a date without the other is rejected."))),
7983
7983
  status_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
7984
7984
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
7985
7985
  team_assignee_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number())))
@@ -7994,7 +7994,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
7994
7994
  color: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7995
7995
  custom_fields: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ object({}))),
7996
7996
  description: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
7997
- end_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
7997
+ end_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with start_date; must be on or after start_date."))),
7998
7998
  estimate_type: /* @__PURE__ */ optional(/* @__PURE__ */ picklist(["daily", "total"])),
7999
7999
  estimated_mins: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(0)))),
8000
8000
  name: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -8016,7 +8016,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
8016
8016
  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."))),
8017
8017
  rollup_enabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
8018
8018
  rrule: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
8019
- start_date: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate()))),
8019
+ start_date: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoDate())), /* @__PURE__ */ description("Send together with end_date; a date without the other is rejected."))),
8020
8020
  status_id: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
8021
8021
  tag_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number()))),
8022
8022
  team_assignee_ids: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ array(/* @__PURE__ */ number())))
@@ -28191,14 +28191,11 @@ function collectRegexRequirements(schema) {
28191
28191
  visit(n.wrapped);
28192
28192
  return;
28193
28193
  }
28194
- if (n.type === "string" && Array.isArray(n.pipe)) {
28195
- for (const step of n.pipe) {
28196
- const v = step;
28197
- if (v.kind === "validation" && v.type === "regex" && v.requirement instanceof RegExp) found.push(v.requirement);
28198
- }
28199
- return;
28194
+ if (Array.isArray(n.pipe)) for (const step of n.pipe) {
28195
+ visit(step);
28196
+ const v = step;
28197
+ if (v.kind === "validation" && v.type === "regex" && v.requirement instanceof RegExp) found.push(v.requirement);
28200
28198
  }
28201
- if (n.type === "pipe" && Array.isArray(n.pipe)) for (const step of n.pipe) visit(step);
28202
28199
  }
28203
28200
  visit(schema);
28204
28201
  return found;
@@ -28212,14 +28209,7 @@ function collectStringValidationKinds(schema) {
28212
28209
  visit(n.wrapped);
28213
28210
  return;
28214
28211
  }
28215
- if (n.type === "string" && Array.isArray(n.pipe)) {
28216
- for (const step of n.pipe) {
28217
- const v = step;
28218
- if (v.kind === "validation" && typeof v.type === "string") found.add(v.type);
28219
- }
28220
- return;
28221
- }
28222
- if (n.type === "pipe" && Array.isArray(n.pipe)) for (const step of n.pipe) {
28212
+ if (Array.isArray(n.pipe)) for (const step of n.pipe) {
28223
28213
  visit(step);
28224
28214
  const v = step;
28225
28215
  if (v.kind === "validation" && typeof v.type === "string") found.add(v.type);
@@ -29298,4 +29288,4 @@ Common commands:
29298
29288
  //#endregion
29299
29289
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
29300
29290
 
29301
- //# sourceMappingURL=program-5e7huSjO.js.map
29291
+ //# sourceMappingURL=program-BWLypjki.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-5e7huSjO.js";
1
+ import { t as createProgram } from "./program-BWLypjki.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.11.222",
3
+ "version": "1.11.224",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",