@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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -618,9 +618,9 @@ type UpdateTaskData = {
|
|
|
618
618
|
title?: string;
|
|
619
619
|
description?: string;
|
|
620
620
|
/**
|
|
621
|
-
* When this task is due — same shorthand grammar as on create (today, lifetime, q-2-2026, q2, d-20-11, …).
|
|
621
|
+
* When this task is due — same shorthand grammar as on create (today, lifetime, q-2-2026, q2, d-20-11, …). `null` removes the deadline.
|
|
622
622
|
*/
|
|
623
|
-
deadline?: string;
|
|
623
|
+
deadline?: string | null;
|
|
624
624
|
status?: 'ACTIVE' | 'COMPLETED' | 'CANCELLED' | 'READY' | 'IN_PROGRESS' | 'WAITING' | 'DELEGATED';
|
|
625
625
|
priority?: 0 | 1 | 2 | 3;
|
|
626
626
|
/**
|
|
@@ -1448,7 +1448,7 @@ declare const zGetTaskResponse: z.ZodMiniObject<{
|
|
|
1448
1448
|
declare const zUpdateTaskBody: z.ZodMiniObject<{
|
|
1449
1449
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1450
1450
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1451
|
-
deadline: z.ZodMiniOptional<z.ZodMiniString<string
|
|
1451
|
+
deadline: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1452
1452
|
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1453
1453
|
ACTIVE: "ACTIVE";
|
|
1454
1454
|
COMPLETED: "COMPLETED";
|
package/dist/index.d.ts
CHANGED
|
@@ -618,9 +618,9 @@ type UpdateTaskData = {
|
|
|
618
618
|
title?: string;
|
|
619
619
|
description?: string;
|
|
620
620
|
/**
|
|
621
|
-
* When this task is due — same shorthand grammar as on create (today, lifetime, q-2-2026, q2, d-20-11, …).
|
|
621
|
+
* When this task is due — same shorthand grammar as on create (today, lifetime, q-2-2026, q2, d-20-11, …). `null` removes the deadline.
|
|
622
622
|
*/
|
|
623
|
-
deadline?: string;
|
|
623
|
+
deadline?: string | null;
|
|
624
624
|
status?: 'ACTIVE' | 'COMPLETED' | 'CANCELLED' | 'READY' | 'IN_PROGRESS' | 'WAITING' | 'DELEGATED';
|
|
625
625
|
priority?: 0 | 1 | 2 | 3;
|
|
626
626
|
/**
|
|
@@ -1448,7 +1448,7 @@ declare const zGetTaskResponse: z.ZodMiniObject<{
|
|
|
1448
1448
|
declare const zUpdateTaskBody: z.ZodMiniObject<{
|
|
1449
1449
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1450
1450
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1451
|
-
deadline: z.ZodMiniOptional<z.ZodMiniString<string
|
|
1451
|
+
deadline: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1452
1452
|
status: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1453
1453
|
ACTIVE: "ACTIVE";
|
|
1454
1454
|
COMPLETED: "COMPLETED";
|
package/dist/index.js
CHANGED
|
@@ -1291,9 +1291,7 @@ var zGetTaskResponse = zTask;
|
|
|
1291
1291
|
var zUpdateTaskBody = z.object({
|
|
1292
1292
|
title: z.optional(z.string()),
|
|
1293
1293
|
description: z.optional(z.string()),
|
|
1294
|
-
deadline: z.
|
|
1295
|
-
description: "When this task is due \u2014 same shorthand grammar as on create (today, lifetime, q-2-2026, q2, d-20-11, \u2026)."
|
|
1296
|
-
})),
|
|
1294
|
+
deadline: z.nullish(z.string()),
|
|
1297
1295
|
status: z.optional(z.enum([
|
|
1298
1296
|
"ACTIVE",
|
|
1299
1297
|
"COMPLETED",
|
|
@@ -1506,7 +1504,11 @@ function createTasksNamespace(client2) {
|
|
|
1506
1504
|
/** List the task's linked PRs (state, checks, review, preview). Wraps `PullRequests.listTaskPullRequests`. */
|
|
1507
1505
|
list: (id) => PullRequests.listTaskPullRequests({ client: client2, path: { id } }),
|
|
1508
1506
|
/** Link a PR by URL (`https://github.com/o/r/pull/12` or `o/r#12`). Wraps `PullRequests.linkTaskPullRequest`. */
|
|
1509
|
-
link: (id, url) => PullRequests.linkTaskPullRequest({
|
|
1507
|
+
link: (id, url) => PullRequests.linkTaskPullRequest({
|
|
1508
|
+
client: client2,
|
|
1509
|
+
path: { id },
|
|
1510
|
+
body: { url }
|
|
1511
|
+
}),
|
|
1510
1512
|
/** Unlink by the link `id` from `list`. Wraps `PullRequests.unlinkTaskPullRequest`. */
|
|
1511
1513
|
unlink: (id, prId) => PullRequests.unlinkTaskPullRequest({ client: client2, path: { id, prId } })
|
|
1512
1514
|
},
|