dart-tools 0.4.5 → 0.4.7
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.ts +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -1
- package/dist/index.umd.js +45 -1
- package/dist/models/Attachment.d.ts +4 -0
- package/dist/models/Comment.d.ts +2 -4
- package/dist/models/CommentId.d.ts +4 -0
- package/dist/models/{CustomProperties.js → CommentId.js} +1 -1
- package/dist/models/CommentId.js.map +1 -0
- package/dist/models/ConciseDoc.d.ts +2 -4
- package/dist/models/ConciseTask.d.ts +5 -8
- package/dist/models/Dartboard.d.ts +2 -4
- package/dist/models/DartboardId.d.ts +4 -0
- package/dist/models/DartboardId.js +3 -0
- package/dist/models/DartboardId.js.map +1 -0
- package/dist/models/Doc.d.ts +2 -4
- package/dist/models/DocId.d.ts +4 -0
- package/dist/models/DocId.js +3 -0
- package/dist/models/DocId.js.map +1 -0
- package/dist/models/DocUpdate.d.ts +2 -4
- package/dist/models/Folder.d.ts +2 -4
- package/dist/models/FolderId.d.ts +4 -0
- package/dist/models/FolderId.js +3 -0
- package/dist/models/FolderId.js.map +1 -0
- package/dist/models/PaginatedCommentList.d.ts +18 -0
- package/dist/models/PaginatedConciseDocList.d.ts +18 -0
- package/dist/models/PaginatedConciseTaskList.d.ts +18 -0
- package/dist/models/Skill.d.ts +7 -4
- package/dist/models/SkillId.d.ts +4 -0
- package/dist/models/SkillId.js +3 -0
- package/dist/models/SkillId.js.map +1 -0
- package/dist/models/Task.d.ts +5 -8
- package/dist/models/TaskCreate.d.ts +4 -4
- package/dist/models/TaskId.d.ts +4 -0
- package/dist/models/TaskId.js +3 -0
- package/dist/models/TaskId.js.map +1 -0
- package/dist/models/TaskMove.d.ts +11 -0
- package/dist/models/TaskMove.js +3 -0
- package/dist/models/TaskMove.js.map +1 -0
- package/dist/models/TaskRelationships.d.ts +6 -5
- package/dist/models/TaskTimeTrackingCreate.d.ts +14 -0
- package/dist/models/TaskTimeTrackingCreate.js +3 -0
- package/dist/models/TaskTimeTrackingCreate.js.map +1 -0
- package/dist/models/TaskUpdate.d.ts +5 -8
- package/dist/models/UserSpaceConfiguration.d.ts +4 -0
- package/dist/models/View.d.ts +2 -4
- package/dist/models/ViewId.d.ts +4 -0
- package/dist/models/ViewId.js +3 -0
- package/dist/models/ViewId.js.map +1 -0
- package/dist/services/TaskService.d.ts +21 -1
- package/dist/services/TaskService.js +45 -1
- package/dist/services/TaskService.js.map +1 -1
- package/package.json +3 -2
- package/dist/models/CustomProperties.d.ts +0 -1
- package/dist/models/CustomProperties.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,29 +6,37 @@ export type { Attachment } from "./models/Attachment";
|
|
|
6
6
|
export type { AttachmentCreateFromUrl } from "./models/AttachmentCreateFromUrl";
|
|
7
7
|
export type { Comment } from "./models/Comment";
|
|
8
8
|
export type { CommentCreate } from "./models/CommentCreate";
|
|
9
|
+
export type { CommentId } from "./models/CommentId";
|
|
9
10
|
export type { ConciseDoc } from "./models/ConciseDoc";
|
|
10
11
|
export type { ConciseTask } from "./models/ConciseTask";
|
|
11
|
-
export type { CustomProperties } from "./models/CustomProperties";
|
|
12
12
|
export type { Dartboard } from "./models/Dartboard";
|
|
13
|
+
export type { DartboardId } from "./models/DartboardId";
|
|
13
14
|
export type { DateRange } from "./models/DateRange";
|
|
14
15
|
export type { Doc } from "./models/Doc";
|
|
15
16
|
export type { DocCreate } from "./models/DocCreate";
|
|
17
|
+
export type { DocId } from "./models/DocId";
|
|
16
18
|
export type { DocUpdate } from "./models/DocUpdate";
|
|
17
19
|
export type { Folder } from "./models/Folder";
|
|
20
|
+
export type { FolderId } from "./models/FolderId";
|
|
18
21
|
export type { PaginatedCommentList } from "./models/PaginatedCommentList";
|
|
19
22
|
export type { PaginatedConciseDocList } from "./models/PaginatedConciseDocList";
|
|
20
23
|
export type { PaginatedConciseTaskList } from "./models/PaginatedConciseTaskList";
|
|
21
24
|
export { Priority } from "./models/Priority";
|
|
22
25
|
export type { Skill } from "./models/Skill";
|
|
26
|
+
export type { SkillId } from "./models/SkillId";
|
|
23
27
|
export type { Task } from "./models/Task";
|
|
24
28
|
export type { TaskCreate } from "./models/TaskCreate";
|
|
29
|
+
export type { TaskId } from "./models/TaskId";
|
|
30
|
+
export type { TaskMove } from "./models/TaskMove";
|
|
25
31
|
export type { TaskRelationships } from "./models/TaskRelationships";
|
|
32
|
+
export type { TaskTimeTrackingCreate } from "./models/TaskTimeTrackingCreate";
|
|
26
33
|
export type { TaskUpdate } from "./models/TaskUpdate";
|
|
27
34
|
export type { TimeTracking } from "./models/TimeTracking";
|
|
28
35
|
export type { TimeTrackingEntry } from "./models/TimeTrackingEntry";
|
|
29
36
|
export type { User } from "./models/User";
|
|
30
37
|
export type { UserSpaceConfiguration } from "./models/UserSpaceConfiguration";
|
|
31
38
|
export type { View } from "./models/View";
|
|
39
|
+
export type { ViewId } from "./models/ViewId";
|
|
32
40
|
export type { WrappedComment } from "./models/WrappedComment";
|
|
33
41
|
export type { WrappedCommentCreate } from "./models/WrappedCommentCreate";
|
|
34
42
|
export type { WrappedDartboard } from "./models/WrappedDartboard";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../dart/generated/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../dart/generated/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,4CAA2C;AAAlC,oGAAA,QAAQ,OAAA;AACjB,8DAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,gHAAA,WAAW,OAAA;AACvC,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAsBhB,8CAA6C;AAApC,oGAAA,QAAQ,OAAA;AA8BjB,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,4DAA2D;AAAlD,gHAAA,cAAc,OAAA;AACvB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,gEAA+D;AAAtD,oHAAA,gBAAgB,OAAA;AACzB,oDAAmD;AAA1C,wGAAA,UAAU,OAAA;AACnB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,gFAA+E;AAAtE,oIAAA,wBAAwB,OAAA;AACjC,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,sDAAqD;AAA5C,0GAAA,WAAW,OAAA;AACpB,sDAAqD;AAA5C,0GAAA,WAAW,OAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -769,7 +769,7 @@ class TaskService {
|
|
|
769
769
|
}
|
|
770
770
|
/**
|
|
771
771
|
* Update an existing task
|
|
772
|
-
* Update
|
|
772
|
+
* Update properties of an existing task. For customProperties, use property NAME (not ID) as key. Get property names from workspace config. Example: {"customTextProperty": "Some text"}. Fields not provided are unchanged.
|
|
773
773
|
* @param id
|
|
774
774
|
* @param requestBody
|
|
775
775
|
* @returns WrappedTask Success, including the updated task
|
|
@@ -810,6 +810,50 @@ class TaskService {
|
|
|
810
810
|
},
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* Move a task within its dartboard
|
|
815
|
+
* Move a task to a specific position within results sorted by the order field. Use afterTaskId to place the task after a specific task, or beforeTaskId to place it before one.
|
|
816
|
+
* @param id
|
|
817
|
+
* @param requestBody
|
|
818
|
+
* @returns WrappedTask Success, including the updated task with its new ordering
|
|
819
|
+
* @throws ApiError
|
|
820
|
+
*/
|
|
821
|
+
static moveTask(id, requestBody) {
|
|
822
|
+
return request(OpenAPI, {
|
|
823
|
+
method: "POST",
|
|
824
|
+
url: "/tasks/{id}/move",
|
|
825
|
+
path: {
|
|
826
|
+
id: id,
|
|
827
|
+
},
|
|
828
|
+
body: requestBody,
|
|
829
|
+
mediaType: "application/json",
|
|
830
|
+
errors: {
|
|
831
|
+
400: `Invalid request, including the errors`,
|
|
832
|
+
},
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Add a time tracking entry to a task
|
|
837
|
+
* Record an additional time tracking entry on a task and return the updated task with refreshed time tracking.
|
|
838
|
+
* @param id
|
|
839
|
+
* @param requestBody
|
|
840
|
+
* @returns WrappedTask Success, including the updated task with refreshed time tracking
|
|
841
|
+
* @throws ApiError
|
|
842
|
+
*/
|
|
843
|
+
static addTaskTimeTracking(id, requestBody) {
|
|
844
|
+
return request(OpenAPI, {
|
|
845
|
+
method: "POST",
|
|
846
|
+
url: "/tasks/{id}/time-tracking",
|
|
847
|
+
path: {
|
|
848
|
+
id: id,
|
|
849
|
+
},
|
|
850
|
+
body: requestBody,
|
|
851
|
+
mediaType: "application/json",
|
|
852
|
+
errors: {
|
|
853
|
+
400: `Invalid request, including the errors`,
|
|
854
|
+
},
|
|
855
|
+
});
|
|
856
|
+
}
|
|
813
857
|
/**
|
|
814
858
|
* List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority, dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
815
859
|
* @returns PaginatedConciseTaskList
|
package/dist/index.umd.js
CHANGED
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* Update an existing task
|
|
775
|
-
* Update
|
|
775
|
+
* Update properties of an existing task. For customProperties, use property NAME (not ID) as key. Get property names from workspace config. Example: {"customTextProperty": "Some text"}. Fields not provided are unchanged.
|
|
776
776
|
* @param id
|
|
777
777
|
* @param requestBody
|
|
778
778
|
* @returns WrappedTask Success, including the updated task
|
|
@@ -813,6 +813,50 @@
|
|
|
813
813
|
},
|
|
814
814
|
});
|
|
815
815
|
}
|
|
816
|
+
/**
|
|
817
|
+
* Move a task within its dartboard
|
|
818
|
+
* Move a task to a specific position within results sorted by the order field. Use afterTaskId to place the task after a specific task, or beforeTaskId to place it before one.
|
|
819
|
+
* @param id
|
|
820
|
+
* @param requestBody
|
|
821
|
+
* @returns WrappedTask Success, including the updated task with its new ordering
|
|
822
|
+
* @throws ApiError
|
|
823
|
+
*/
|
|
824
|
+
static moveTask(id, requestBody) {
|
|
825
|
+
return request(OpenAPI, {
|
|
826
|
+
method: "POST",
|
|
827
|
+
url: "/tasks/{id}/move",
|
|
828
|
+
path: {
|
|
829
|
+
id: id,
|
|
830
|
+
},
|
|
831
|
+
body: requestBody,
|
|
832
|
+
mediaType: "application/json",
|
|
833
|
+
errors: {
|
|
834
|
+
400: `Invalid request, including the errors`,
|
|
835
|
+
},
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Add a time tracking entry to a task
|
|
840
|
+
* Record an additional time tracking entry on a task and return the updated task with refreshed time tracking.
|
|
841
|
+
* @param id
|
|
842
|
+
* @param requestBody
|
|
843
|
+
* @returns WrappedTask Success, including the updated task with refreshed time tracking
|
|
844
|
+
* @throws ApiError
|
|
845
|
+
*/
|
|
846
|
+
static addTaskTimeTracking(id, requestBody) {
|
|
847
|
+
return request(OpenAPI, {
|
|
848
|
+
method: "POST",
|
|
849
|
+
url: "/tasks/{id}/time-tracking",
|
|
850
|
+
path: {
|
|
851
|
+
id: id,
|
|
852
|
+
},
|
|
853
|
+
body: requestBody,
|
|
854
|
+
mediaType: "application/json",
|
|
855
|
+
errors: {
|
|
856
|
+
400: `Invalid request, including the errors`,
|
|
857
|
+
},
|
|
858
|
+
});
|
|
859
|
+
}
|
|
816
860
|
/**
|
|
817
861
|
* List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority, dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
818
862
|
* @returns PaginatedConciseTaskList
|
package/dist/models/Comment.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentId.js","sourceRoot":"","sources":["../../dart/generated/models/CommentId.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { DocId } from "./DocId";
|
|
1
2
|
/**
|
|
2
3
|
* This concise doc serializer is going to be used in docs listing view only.
|
|
3
4
|
*/
|
|
4
5
|
export type ConciseDoc = {
|
|
5
|
-
|
|
6
|
-
* The universal, unique ID of the doc.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
6
|
+
id: DocId;
|
|
9
7
|
/**
|
|
10
8
|
* The URL that can be used to open the doc in the Dart web UI.
|
|
11
9
|
*/
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type { CustomProperties } from "./CustomProperties";
|
|
2
1
|
import type { Priority } from "./Priority";
|
|
2
|
+
import type { TaskId } from "./TaskId";
|
|
3
3
|
/**
|
|
4
4
|
* This concise task serializer is going to be used in tasks listing view only.
|
|
5
5
|
*/
|
|
6
6
|
export type ConciseTask = {
|
|
7
|
-
|
|
8
|
-
* The universal, unique ID of the task.
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
7
|
+
id: TaskId;
|
|
11
8
|
/**
|
|
12
9
|
* The URL that can be used to open the task in the Dart web UI.
|
|
13
10
|
*/
|
|
@@ -19,7 +16,7 @@ export type ConciseTask = {
|
|
|
19
16
|
/**
|
|
20
17
|
* The universal, unique ID of the parent task. This can be null. These tasks have a parent-child relationship where the current task is the child and this task ID corresponds to the parent. Subtasks inherit context from their parent and are typically smaller units of work.
|
|
21
18
|
*/
|
|
22
|
-
parentId:
|
|
19
|
+
parentId: TaskId | null;
|
|
23
20
|
/**
|
|
24
21
|
* The full title of the dartboard, which is a project or list of tasks.
|
|
25
22
|
*/
|
|
@@ -65,9 +62,9 @@ export type ConciseTask = {
|
|
|
65
62
|
*/
|
|
66
63
|
timeTracking?: string;
|
|
67
64
|
/**
|
|
68
|
-
*
|
|
65
|
+
* Custom properties as a dict mapping property NAME to value. Use exact property names from workspace config (e.g., {"customCheckboxProperty": true, "customTextProperty": "Some text"}). Property names are case-sensitive.
|
|
69
66
|
*/
|
|
70
|
-
customProperties?:
|
|
67
|
+
customProperties?: any | null;
|
|
71
68
|
/**
|
|
72
69
|
* The name or email (moniker) of the user that created the task.
|
|
73
70
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DartboardId.js","sourceRoot":"","sources":["../../dart/generated/models/DartboardId.ts"],"names":[],"mappings":""}
|
package/dist/models/Doc.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocId.js","sourceRoot":"","sources":["../../dart/generated/models/DocId.ts"],"names":[],"mappings":""}
|
package/dist/models/Folder.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FolderId.js","sourceRoot":"","sources":["../../dart/generated/models/FolderId.ts"],"names":[],"mappings":""}
|
|
@@ -4,4 +4,22 @@ export type PaginatedCommentList = {
|
|
|
4
4
|
next?: string | null;
|
|
5
5
|
previous?: string | null;
|
|
6
6
|
results: Array<Comment>;
|
|
7
|
+
meta?: {
|
|
8
|
+
/**
|
|
9
|
+
* Whether default filters or ordering were applied to the response.
|
|
10
|
+
*/
|
|
11
|
+
defaultsApplied?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The default filters that were applied automatically, if any.
|
|
14
|
+
*/
|
|
15
|
+
appliedDefaultFilters?: Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The default ordering fields that were applied automatically, if any.
|
|
18
|
+
*/
|
|
19
|
+
appliedDefaultSorts?: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Guidance on how to disable or override default filters and ordering.
|
|
22
|
+
*/
|
|
23
|
+
instructions?: string;
|
|
24
|
+
} | null;
|
|
7
25
|
};
|
|
@@ -4,4 +4,22 @@ export type PaginatedConciseDocList = {
|
|
|
4
4
|
next?: string | null;
|
|
5
5
|
previous?: string | null;
|
|
6
6
|
results: Array<ConciseDoc>;
|
|
7
|
+
meta?: {
|
|
8
|
+
/**
|
|
9
|
+
* Whether default filters or ordering were applied to the response.
|
|
10
|
+
*/
|
|
11
|
+
defaultsApplied?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The default filters that were applied automatically, if any.
|
|
14
|
+
*/
|
|
15
|
+
appliedDefaultFilters?: Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The default ordering fields that were applied automatically, if any.
|
|
18
|
+
*/
|
|
19
|
+
appliedDefaultSorts?: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Guidance on how to disable or override default filters and ordering.
|
|
22
|
+
*/
|
|
23
|
+
instructions?: string;
|
|
24
|
+
} | null;
|
|
7
25
|
};
|
|
@@ -4,4 +4,22 @@ export type PaginatedConciseTaskList = {
|
|
|
4
4
|
next?: string | null;
|
|
5
5
|
previous?: string | null;
|
|
6
6
|
results: Array<ConciseTask>;
|
|
7
|
+
meta?: {
|
|
8
|
+
/**
|
|
9
|
+
* Whether default filters or ordering were applied to the response.
|
|
10
|
+
*/
|
|
11
|
+
defaultsApplied?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The default filters that were applied automatically, if any.
|
|
14
|
+
*/
|
|
15
|
+
appliedDefaultFilters?: Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The default ordering fields that were applied automatically, if any.
|
|
18
|
+
*/
|
|
19
|
+
appliedDefaultSorts?: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Guidance on how to disable or override default filters and ordering.
|
|
22
|
+
*/
|
|
23
|
+
instructions?: string;
|
|
24
|
+
} | null;
|
|
7
25
|
};
|
package/dist/models/Skill.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { Attachment } from "./Attachment";
|
|
2
|
+
import type { SkillId } from "./SkillId";
|
|
1
3
|
export type Skill = {
|
|
2
|
-
|
|
3
|
-
* The universal, unique ID of the skill.
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
4
|
+
id: SkillId;
|
|
6
5
|
/**
|
|
7
6
|
* The title of the skill, describing the task type.
|
|
8
7
|
*/
|
|
@@ -11,4 +10,8 @@ export type Skill = {
|
|
|
11
10
|
* User-defined instructions for performing this skill in markdown format.
|
|
12
11
|
*/
|
|
13
12
|
promptMarkdown: string;
|
|
13
|
+
/**
|
|
14
|
+
* Attachments linked to the skill, including their accessible URLs.
|
|
15
|
+
*/
|
|
16
|
+
attachments: Array<Attachment>;
|
|
14
17
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillId.js","sourceRoot":"","sources":["../../dart/generated/models/SkillId.ts"],"names":[],"mappings":""}
|
package/dist/models/Task.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { Attachment } from "./Attachment";
|
|
2
|
-
import type { CustomProperties } from "./CustomProperties";
|
|
3
2
|
import type { Priority } from "./Priority";
|
|
3
|
+
import type { TaskId } from "./TaskId";
|
|
4
4
|
import type { TaskRelationships } from "./TaskRelationships";
|
|
5
5
|
export type Task = {
|
|
6
|
-
|
|
7
|
-
* The universal, unique ID of the task.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
6
|
+
id: TaskId;
|
|
10
7
|
/**
|
|
11
8
|
* The URL that can be used to open the task in the Dart web UI.
|
|
12
9
|
*/
|
|
@@ -18,7 +15,7 @@ export type Task = {
|
|
|
18
15
|
/**
|
|
19
16
|
* The universal, unique ID of the parent task. This can be null. These tasks have a parent-child relationship where the current task is the child and this task ID corresponds to the parent. Subtasks inherit context from their parent and are typically smaller units of work.
|
|
20
17
|
*/
|
|
21
|
-
parentId:
|
|
18
|
+
parentId: TaskId | null;
|
|
22
19
|
/**
|
|
23
20
|
* The full title of the dartboard, which is a project or list of tasks.
|
|
24
21
|
*/
|
|
@@ -72,9 +69,9 @@ export type Task = {
|
|
|
72
69
|
*/
|
|
73
70
|
attachments: Array<Attachment>;
|
|
74
71
|
/**
|
|
75
|
-
*
|
|
72
|
+
* Custom properties as a dict mapping property NAME to value. Use exact property names from workspace config (e.g., {"customCheckboxProperty": true, "customTextProperty": "Some text"}). Property names are case-sensitive.
|
|
76
73
|
*/
|
|
77
|
-
customProperties?:
|
|
74
|
+
customProperties?: any | null;
|
|
78
75
|
/**
|
|
79
76
|
* The relationships associated with the task.
|
|
80
77
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CustomProperties } from "./CustomProperties";
|
|
2
1
|
import type { Priority } from "./Priority";
|
|
2
|
+
import type { TaskId } from "./TaskId";
|
|
3
3
|
import type { TaskRelationships } from "./TaskRelationships";
|
|
4
4
|
export type TaskCreate = {
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export type TaskCreate = {
|
|
|
9
9
|
/**
|
|
10
10
|
* The universal, unique ID of the parent task. This can be null. These tasks have a parent-child relationship where the current task is the child and this task ID corresponds to the parent. Subtasks inherit context from their parent and are typically smaller units of work.
|
|
11
11
|
*/
|
|
12
|
-
parentId?:
|
|
12
|
+
parentId?: TaskId | null;
|
|
13
13
|
/**
|
|
14
14
|
* The full title of the dartboard, which is a project or list of tasks.
|
|
15
15
|
*/
|
|
@@ -55,9 +55,9 @@ export type TaskCreate = {
|
|
|
55
55
|
*/
|
|
56
56
|
size?: string | number | null;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Custom properties as a dict mapping property NAME to value. Use exact property names from workspace config (e.g., {"customCheckboxProperty": true, "customTextProperty": "Some text"}). Property names are case-sensitive.
|
|
59
59
|
*/
|
|
60
|
-
customProperties?:
|
|
60
|
+
customProperties?: any | null;
|
|
61
61
|
/**
|
|
62
62
|
* The relationships associated with the task.
|
|
63
63
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskId.js","sourceRoot":"","sources":["../../dart/generated/models/TaskId.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TaskId } from "./TaskId";
|
|
2
|
+
export type TaskMove = {
|
|
3
|
+
/**
|
|
4
|
+
* Move the task immediately before this task. For example: if tasks are [A, B, C], then beforeTaskId=B produces [A, moved_task, B, C]. Use null to move to the beginning (first position).
|
|
5
|
+
*/
|
|
6
|
+
beforeTaskId?: TaskId | null;
|
|
7
|
+
/**
|
|
8
|
+
* Move the task immediately after this task. For example: if tasks are [A, B, C], then afterTaskId=B produces [A, B, moved_task, C]. Use null to move to the end (last position).
|
|
9
|
+
*/
|
|
10
|
+
afterTaskId?: TaskId | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskMove.js","sourceRoot":"","sources":["../../dart/generated/models/TaskMove.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
import type { TaskId } from "./TaskId";
|
|
1
2
|
export type TaskRelationships = {
|
|
2
3
|
/**
|
|
3
4
|
* Array of task IDs that are subtasks of this task. These tasks have a parent-child relationship where this task is the parent. Subtasks inherit context from their parent and are typically smaller units of work.
|
|
4
5
|
*/
|
|
5
|
-
subtaskIds?: Array<
|
|
6
|
+
subtaskIds?: Array<TaskId>;
|
|
6
7
|
/**
|
|
7
8
|
* Array of task IDs that block this task from being completed. These are dependencies that must be resolved/completed before this task can proceed. The blocking tasks have priority over this task.
|
|
8
9
|
*/
|
|
9
|
-
blockerIds?: Array<
|
|
10
|
+
blockerIds?: Array<TaskId>;
|
|
10
11
|
/**
|
|
11
12
|
* Array of task IDs that are blocked by this task. This task must be completed before the blocked tasks can proceed. This task is a dependency for the blocked tasks and has priority over them.
|
|
12
13
|
*/
|
|
13
|
-
blockingIds?: Array<
|
|
14
|
+
blockingIds?: Array<TaskId>;
|
|
14
15
|
/**
|
|
15
16
|
* Array of task IDs that are duplicates of this task. These represent the same work item and should typically be consolidated to avoid duplicate effort. Only one of the duplicates should be completed.
|
|
16
17
|
*/
|
|
17
|
-
duplicateIds?: Array<
|
|
18
|
+
duplicateIds?: Array<TaskId>;
|
|
18
19
|
/**
|
|
19
20
|
* Array of task IDs that are related to this task. These tasks have some contextual relationship but no direct dependency. They may share similar goals, components, or be part of the same feature/epic.
|
|
20
21
|
*/
|
|
21
|
-
relatedIds?: Array<
|
|
22
|
+
relatedIds?: Array<TaskId>;
|
|
22
23
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TaskTimeTrackingCreate = {
|
|
2
|
+
/**
|
|
3
|
+
* The name or email of the user to attribute the tracked time to or null to use the current user.
|
|
4
|
+
*/
|
|
5
|
+
user: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* The start timestamp for the tracked time entry in ISO 8601 format.
|
|
8
|
+
*/
|
|
9
|
+
startedAt: string;
|
|
10
|
+
/**
|
|
11
|
+
* The end timestamp for the tracked time entry in ISO 8601 format. Must be after the start time.
|
|
12
|
+
*/
|
|
13
|
+
finishedAt: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskTimeTrackingCreate.js","sourceRoot":"","sources":["../../dart/generated/models/TaskTimeTrackingCreate.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { CustomProperties } from "./CustomProperties";
|
|
2
1
|
import type { Priority } from "./Priority";
|
|
2
|
+
import type { TaskId } from "./TaskId";
|
|
3
3
|
import type { TaskRelationships } from "./TaskRelationships";
|
|
4
4
|
export type TaskUpdate = {
|
|
5
|
-
|
|
6
|
-
* The universal, unique ID of the task.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
5
|
+
id: TaskId;
|
|
9
6
|
/**
|
|
10
7
|
* The title, which is a short description of what needs to be done.
|
|
11
8
|
*/
|
|
@@ -13,7 +10,7 @@ export type TaskUpdate = {
|
|
|
13
10
|
/**
|
|
14
11
|
* The universal, unique ID of the parent task. This can be null. These tasks have a parent-child relationship where the current task is the child and this task ID corresponds to the parent. Subtasks inherit context from their parent and are typically smaller units of work.
|
|
15
12
|
*/
|
|
16
|
-
parentId?:
|
|
13
|
+
parentId?: TaskId | null;
|
|
17
14
|
/**
|
|
18
15
|
* The full title of the dartboard, which is a project or list of tasks.
|
|
19
16
|
*/
|
|
@@ -59,9 +56,9 @@ export type TaskUpdate = {
|
|
|
59
56
|
*/
|
|
60
57
|
size?: string | number | null;
|
|
61
58
|
/**
|
|
62
|
-
*
|
|
59
|
+
* Custom properties as a dict mapping property NAME to value. Use exact property names from workspace config (e.g., {"customCheckboxProperty": true, "customTextProperty": "Some text"}). Property names are case-sensitive.
|
|
63
60
|
*/
|
|
64
|
-
customProperties?:
|
|
61
|
+
customProperties?: any | null;
|
|
65
62
|
/**
|
|
66
63
|
* The relationships associated with the task.
|
|
67
64
|
*/
|
package/dist/models/View.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewId.js","sourceRoot":"","sources":["../../dart/generated/models/ViewId.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { PaginatedConciseTaskList } from "../models/PaginatedConciseTaskList";
|
|
2
|
+
import type { TaskMove } from "../models/TaskMove";
|
|
3
|
+
import type { TaskTimeTrackingCreate } from "../models/TaskTimeTrackingCreate";
|
|
2
4
|
import type { WrappedTask } from "../models/WrappedTask";
|
|
3
5
|
import type { WrappedTaskCreate } from "../models/WrappedTaskCreate";
|
|
4
6
|
import type { WrappedTaskUpdate } from "../models/WrappedTaskUpdate";
|
|
@@ -22,7 +24,7 @@ export declare class TaskService {
|
|
|
22
24
|
static getTask(id: string): CancelablePromise<WrappedTask>;
|
|
23
25
|
/**
|
|
24
26
|
* Update an existing task
|
|
25
|
-
* Update
|
|
27
|
+
* Update properties of an existing task. For customProperties, use property NAME (not ID) as key. Get property names from workspace config. Example: {"customTextProperty": "Some text"}. Fields not provided are unchanged.
|
|
26
28
|
* @param id
|
|
27
29
|
* @param requestBody
|
|
28
30
|
* @returns WrappedTask Success, including the updated task
|
|
@@ -37,6 +39,24 @@ export declare class TaskService {
|
|
|
37
39
|
* @throws ApiError
|
|
38
40
|
*/
|
|
39
41
|
static deleteTask(id: string): CancelablePromise<WrappedTask>;
|
|
42
|
+
/**
|
|
43
|
+
* Move a task within its dartboard
|
|
44
|
+
* Move a task to a specific position within results sorted by the order field. Use afterTaskId to place the task after a specific task, or beforeTaskId to place it before one.
|
|
45
|
+
* @param id
|
|
46
|
+
* @param requestBody
|
|
47
|
+
* @returns WrappedTask Success, including the updated task with its new ordering
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static moveTask(id: string, requestBody?: TaskMove): CancelablePromise<WrappedTask>;
|
|
51
|
+
/**
|
|
52
|
+
* Add a time tracking entry to a task
|
|
53
|
+
* Record an additional time tracking entry on a task and return the updated task with refreshed time tracking.
|
|
54
|
+
* @param id
|
|
55
|
+
* @param requestBody
|
|
56
|
+
* @returns WrappedTask Success, including the updated task with refreshed time tracking
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static addTaskTimeTracking(id: string, requestBody: TaskTimeTrackingCreate): CancelablePromise<WrappedTask>;
|
|
40
60
|
/**
|
|
41
61
|
* List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority, dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
42
62
|
* @returns PaginatedConciseTaskList
|
|
@@ -41,7 +41,7 @@ class TaskService {
|
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Update an existing task
|
|
44
|
-
* Update
|
|
44
|
+
* Update properties of an existing task. For customProperties, use property NAME (not ID) as key. Get property names from workspace config. Example: {"customTextProperty": "Some text"}. Fields not provided are unchanged.
|
|
45
45
|
* @param id
|
|
46
46
|
* @param requestBody
|
|
47
47
|
* @returns WrappedTask Success, including the updated task
|
|
@@ -82,6 +82,50 @@ class TaskService {
|
|
|
82
82
|
},
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Move a task within its dartboard
|
|
87
|
+
* Move a task to a specific position within results sorted by the order field. Use afterTaskId to place the task after a specific task, or beforeTaskId to place it before one.
|
|
88
|
+
* @param id
|
|
89
|
+
* @param requestBody
|
|
90
|
+
* @returns WrappedTask Success, including the updated task with its new ordering
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
static moveTask(id, requestBody) {
|
|
94
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
95
|
+
method: "POST",
|
|
96
|
+
url: "/tasks/{id}/move",
|
|
97
|
+
path: {
|
|
98
|
+
id: id,
|
|
99
|
+
},
|
|
100
|
+
body: requestBody,
|
|
101
|
+
mediaType: "application/json",
|
|
102
|
+
errors: {
|
|
103
|
+
400: `Invalid request, including the errors`,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Add a time tracking entry to a task
|
|
109
|
+
* Record an additional time tracking entry on a task and return the updated task with refreshed time tracking.
|
|
110
|
+
* @param id
|
|
111
|
+
* @param requestBody
|
|
112
|
+
* @returns WrappedTask Success, including the updated task with refreshed time tracking
|
|
113
|
+
* @throws ApiError
|
|
114
|
+
*/
|
|
115
|
+
static addTaskTimeTracking(id, requestBody) {
|
|
116
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
117
|
+
method: "POST",
|
|
118
|
+
url: "/tasks/{id}/time-tracking",
|
|
119
|
+
path: {
|
|
120
|
+
id: id,
|
|
121
|
+
},
|
|
122
|
+
body: requestBody,
|
|
123
|
+
mediaType: "application/json",
|
|
124
|
+
errors: {
|
|
125
|
+
400: `Invalid request, including the errors`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
85
129
|
/**
|
|
86
130
|
* List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority, dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
87
131
|
* @returns PaginatedConciseTaskList
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskService.js","sourceRoot":"","sources":["../../dart/generated/services/TaskService.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TaskService.js","sourceRoot":"","sources":["../../dart/generated/services/TaskService.ts"],"names":[],"mappings":";;;AAWA,6CAA0C;AAC1C,6CAAuD;AACvD,MAAa,WAAW;IACtB;;;;;;OAMG;IACI,MAAM,CAAC,UAAU,CAAC,WAA8B;QACrD,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,QAAQ;YACb,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAC9B,CAAC,CAAC;IACL,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,OAAO,CAAC,EAAU;QAC9B,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,aAAa;YAClB,IAAI,EAAE;gBACJ,EAAE,EAAE,EAAE;aACP;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,uCAAuC;gBAC5C,GAAG,EAAE,sCAAsC;aAC5C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU,CAAC,EAAU,EAAE,WAA8B;QACjE,OAAO,IAAA,iBAAS,EAAC,iBAAO,EAAE;YACxB,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,aAAa;YAClB,IAAI,EAAE;gBACJ,EAAE,EAAE,EAAE;aACP;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE;gBACN,GAAG,EAAE,uCAAuC;gBAC5C,GAAG,EAAE,sCAAsC;aAC5C;SACF,CAAC,CAAC;IACL,CAAC;IACD;;;;;;OAMG;IACI,MAAM,CAAC,UAAU,CAAC,EAAU;QACjC,OAAO,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AAU,EAAE,SAAS;gBACrB,aAAa,EAAE,WAAW;gBAC1B,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAvSD,kCAuSC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dart-tools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "The Dart TypeScript/JavaScript client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dart",
|
|
@@ -68,5 +68,6 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public",
|
|
70
70
|
"registry": "https://registry.npmjs.org/"
|
|
71
|
-
}
|
|
71
|
+
},
|
|
72
|
+
"packageManager": "yarn@4.12.0+sha512.f45ab632439a67f8bc759bf32ead036a1f413287b9042726b7cc4818b7b49e14e9423ba49b18f9e06ea4941c1ad062385b1d8760a8d5091a1a31e5f6219afca8"
|
|
72
73
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CustomProperties = Record<string, boolean | any[] | null | string | null | Array<string> | number | null | string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomProperties.js","sourceRoot":"","sources":["../../dart/generated/models/CustomProperties.ts"],"names":[],"mappings":""}
|