@graph8/sdk 0.5.0 → 0.5.1
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.d.mts +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +26 -0
- package/dist/react.d.ts +26 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -1376,6 +1376,14 @@ interface Task {
|
|
|
1376
1376
|
created_by: string | null;
|
|
1377
1377
|
created_at: string | null;
|
|
1378
1378
|
updated_at: string | null;
|
|
1379
|
+
/** Parent task UUID when this row is a subtask, else null. One level deep. */
|
|
1380
|
+
parent_task_id?: string | null;
|
|
1381
|
+
/** Sort position within the parent's subtasks. 0 when not a subtask. */
|
|
1382
|
+
subtask_sort_order?: number | null;
|
|
1383
|
+
/** Number of subtasks under this task (top-level rows only). */
|
|
1384
|
+
subtask_count?: number | null;
|
|
1385
|
+
/** Subset of subtask_count whose status is "completed". */
|
|
1386
|
+
completed_subtask_count?: number | null;
|
|
1379
1387
|
}
|
|
1380
1388
|
interface TaskCreateParams {
|
|
1381
1389
|
title: string;
|
|
@@ -1385,6 +1393,16 @@ interface TaskCreateParams {
|
|
|
1385
1393
|
assignee_id?: string;
|
|
1386
1394
|
/** 0=none, 1=urgent, 2=high, 3=normal, 4=low */
|
|
1387
1395
|
priority?: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* When set, the new task is created as a subtask of this parent. Parent
|
|
1398
|
+
* must exist and must not itself be a subtask (subtasks are one level
|
|
1399
|
+
* deep).
|
|
1400
|
+
*/
|
|
1401
|
+
parent_task_id?: string;
|
|
1402
|
+
/**
|
|
1403
|
+
* Sort position within the parent's subtasks. Omit to append at the end.
|
|
1404
|
+
*/
|
|
1405
|
+
subtask_sort_order?: number;
|
|
1388
1406
|
}
|
|
1389
1407
|
interface TaskUpdateParams {
|
|
1390
1408
|
title?: string;
|
|
@@ -1394,6 +1412,14 @@ interface TaskUpdateParams {
|
|
|
1394
1412
|
/** "open" | "completed" */
|
|
1395
1413
|
status?: string;
|
|
1396
1414
|
priority?: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* Re-parent this task into a subtask of the given parent. Parent must
|
|
1417
|
+
* exist, must not itself be a subtask, and a task that already has
|
|
1418
|
+
* subtasks of its own cannot be demoted into a subtask.
|
|
1419
|
+
*/
|
|
1420
|
+
parent_task_id?: string;
|
|
1421
|
+
/** Reorder within the parent's subtasks. Can be sent alone. */
|
|
1422
|
+
subtask_sort_order?: number;
|
|
1397
1423
|
}
|
|
1398
1424
|
interface TaskListParams {
|
|
1399
1425
|
/** "open" | "completed" */
|
package/dist/react.d.ts
CHANGED
|
@@ -1376,6 +1376,14 @@ interface Task {
|
|
|
1376
1376
|
created_by: string | null;
|
|
1377
1377
|
created_at: string | null;
|
|
1378
1378
|
updated_at: string | null;
|
|
1379
|
+
/** Parent task UUID when this row is a subtask, else null. One level deep. */
|
|
1380
|
+
parent_task_id?: string | null;
|
|
1381
|
+
/** Sort position within the parent's subtasks. 0 when not a subtask. */
|
|
1382
|
+
subtask_sort_order?: number | null;
|
|
1383
|
+
/** Number of subtasks under this task (top-level rows only). */
|
|
1384
|
+
subtask_count?: number | null;
|
|
1385
|
+
/** Subset of subtask_count whose status is "completed". */
|
|
1386
|
+
completed_subtask_count?: number | null;
|
|
1379
1387
|
}
|
|
1380
1388
|
interface TaskCreateParams {
|
|
1381
1389
|
title: string;
|
|
@@ -1385,6 +1393,16 @@ interface TaskCreateParams {
|
|
|
1385
1393
|
assignee_id?: string;
|
|
1386
1394
|
/** 0=none, 1=urgent, 2=high, 3=normal, 4=low */
|
|
1387
1395
|
priority?: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* When set, the new task is created as a subtask of this parent. Parent
|
|
1398
|
+
* must exist and must not itself be a subtask (subtasks are one level
|
|
1399
|
+
* deep).
|
|
1400
|
+
*/
|
|
1401
|
+
parent_task_id?: string;
|
|
1402
|
+
/**
|
|
1403
|
+
* Sort position within the parent's subtasks. Omit to append at the end.
|
|
1404
|
+
*/
|
|
1405
|
+
subtask_sort_order?: number;
|
|
1388
1406
|
}
|
|
1389
1407
|
interface TaskUpdateParams {
|
|
1390
1408
|
title?: string;
|
|
@@ -1394,6 +1412,14 @@ interface TaskUpdateParams {
|
|
|
1394
1412
|
/** "open" | "completed" */
|
|
1395
1413
|
status?: string;
|
|
1396
1414
|
priority?: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* Re-parent this task into a subtask of the given parent. Parent must
|
|
1417
|
+
* exist, must not itself be a subtask, and a task that already has
|
|
1418
|
+
* subtasks of its own cannot be demoted into a subtask.
|
|
1419
|
+
*/
|
|
1420
|
+
parent_task_id?: string;
|
|
1421
|
+
/** Reorder within the parent's subtasks. Can be sent alone. */
|
|
1422
|
+
subtask_sort_order?: number;
|
|
1397
1423
|
}
|
|
1398
1424
|
interface TaskListParams {
|
|
1399
1425
|
/** "open" | "completed" */
|