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