@perspectask/sdk 1.2.0 → 1.3.0

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/dist/index.cjs CHANGED
@@ -1489,9 +1489,7 @@ var zGetTaskResponse = zTask;
1489
1489
  var zUpdateTaskBody = z.object({
1490
1490
  title: z.optional(z.string()),
1491
1491
  description: z.optional(z.string()),
1492
- deadline: z.optional(z.string().register(z.globalRegistry, {
1493
- description: "When this task is due \u2014 same shorthand grammar as on create (today, lifetime, q-2-2026, q2, d-20-11, \u2026)."
1494
- })),
1492
+ deadline: z.nullish(z.string()),
1495
1493
  status: z.optional(z.enum([
1496
1494
  "ACTIVE",
1497
1495
  "COMPLETED",
@@ -1704,7 +1702,11 @@ function createTasksNamespace(client2) {
1704
1702
  /** List the task's linked PRs (state, checks, review, preview). Wraps `PullRequests.listTaskPullRequests`. */
1705
1703
  list: (id) => PullRequests.listTaskPullRequests({ client: client2, path: { id } }),
1706
1704
  /** Link a PR by URL (`https://github.com/o/r/pull/12` or `o/r#12`). Wraps `PullRequests.linkTaskPullRequest`. */
1707
- link: (id, url) => PullRequests.linkTaskPullRequest({ client: client2, path: { id }, body: { url } }),
1705
+ link: (id, url) => PullRequests.linkTaskPullRequest({
1706
+ client: client2,
1707
+ path: { id },
1708
+ body: { url }
1709
+ }),
1708
1710
  /** Unlink by the link `id` from `list`. Wraps `PullRequests.unlinkTaskPullRequest`. */
1709
1711
  unlink: (id, prId) => PullRequests.unlinkTaskPullRequest({ client: client2, path: { id, prId } })
1710
1712
  },