dart-tools 0.4.6 → 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.
Files changed (46) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1 -1
  4. package/dist/index.umd.js +1 -1
  5. package/dist/models/Attachment.d.ts +4 -0
  6. package/dist/models/Comment.d.ts +2 -4
  7. package/dist/models/CommentId.d.ts +4 -0
  8. package/dist/models/{CustomProperties.js → CommentId.js} +1 -1
  9. package/dist/models/CommentId.js.map +1 -0
  10. package/dist/models/ConciseDoc.d.ts +2 -4
  11. package/dist/models/ConciseTask.d.ts +5 -8
  12. package/dist/models/Dartboard.d.ts +2 -4
  13. package/dist/models/DartboardId.d.ts +4 -0
  14. package/dist/models/DartboardId.js +3 -0
  15. package/dist/models/DartboardId.js.map +1 -0
  16. package/dist/models/Doc.d.ts +2 -4
  17. package/dist/models/DocId.d.ts +4 -0
  18. package/dist/models/DocId.js +3 -0
  19. package/dist/models/DocId.js.map +1 -0
  20. package/dist/models/DocUpdate.d.ts +2 -4
  21. package/dist/models/Folder.d.ts +2 -4
  22. package/dist/models/FolderId.d.ts +4 -0
  23. package/dist/models/FolderId.js +3 -0
  24. package/dist/models/FolderId.js.map +1 -0
  25. package/dist/models/Skill.d.ts +7 -4
  26. package/dist/models/SkillId.d.ts +4 -0
  27. package/dist/models/SkillId.js +3 -0
  28. package/dist/models/SkillId.js.map +1 -0
  29. package/dist/models/Task.d.ts +5 -8
  30. package/dist/models/TaskCreate.d.ts +4 -4
  31. package/dist/models/TaskId.d.ts +4 -0
  32. package/dist/models/TaskId.js +3 -0
  33. package/dist/models/TaskId.js.map +1 -0
  34. package/dist/models/TaskMove.d.ts +3 -2
  35. package/dist/models/TaskRelationships.d.ts +6 -5
  36. package/dist/models/TaskUpdate.d.ts +5 -8
  37. package/dist/models/UserSpaceConfiguration.d.ts +4 -0
  38. package/dist/models/View.d.ts +2 -4
  39. package/dist/models/ViewId.d.ts +4 -0
  40. package/dist/models/ViewId.js +3 -0
  41. package/dist/models/ViewId.js.map +1 -0
  42. package/dist/services/TaskService.d.ts +1 -1
  43. package/dist/services/TaskService.js +1 -1
  44. package/package.json +3 -2
  45. package/dist/models/CustomProperties.d.ts +0 -1
  46. package/dist/models/CustomProperties.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -6,22 +6,27 @@ 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";
25
30
  export type { TaskMove } from "./models/TaskMove";
26
31
  export type { TaskRelationships } from "./models/TaskRelationships";
27
32
  export type { TaskTimeTrackingCreate } from "./models/TaskTimeTrackingCreate";
@@ -31,6 +36,7 @@ export type { TimeTrackingEntry } from "./models/TimeTrackingEntry";
31
36
  export type { User } from "./models/User";
32
37
  export type { UserSpaceConfiguration } from "./models/UserSpaceConfiguration";
33
38
  export type { View } from "./models/View";
39
+ export type { ViewId } from "./models/ViewId";
34
40
  export type { WrappedComment } from "./models/WrappedComment";
35
41
  export type { WrappedCommentCreate } from "./models/WrappedCommentCreate";
36
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;AAmBhB,8CAA6C;AAApC,oGAAA,QAAQ,OAAA;AA2BjB,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"}
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 certain properties of an existing task. This will save the task in Dart for later access, search, etc. Any properties that are not specified will not be changed.
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
package/dist/index.umd.js CHANGED
@@ -772,7 +772,7 @@
772
772
  }
773
773
  /**
774
774
  * Update an existing task
775
- * Update certain properties of an existing task. This will save the task in Dart for later access, search, etc. Any properties that are not specified will not be changed.
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
@@ -7,4 +7,8 @@ export type Attachment = {
7
7
  * The link to access the attachment.
8
8
  */
9
9
  url: string;
10
+ /**
11
+ * The MIME type of the attachment
12
+ */
13
+ kind: string;
10
14
  };
@@ -1,8 +1,6 @@
1
+ import type { CommentId } from "./CommentId";
1
2
  export type Comment = {
2
- /**
3
- * The universal, unique ID of the comment.
4
- */
5
- id: string;
3
+ id: CommentId;
6
4
  /**
7
5
  * The universal, unique ID of the parent comment, if any.
8
6
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The universal, unique ID of the comment.
3
+ */
4
+ export type CommentId = string;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=CustomProperties.js.map
3
+ //# sourceMappingURL=CommentId.js.map
@@ -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: string | null;
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
- * The custom properties, which is a dict of custom properties that are associated with the task.
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?: CustomProperties | null;
67
+ customProperties?: any | null;
71
68
  /**
72
69
  * The name or email (moniker) of the user that created the task.
73
70
  */
@@ -1,8 +1,6 @@
1
+ import type { DartboardId } from "./DartboardId";
1
2
  export type Dartboard = {
2
- /**
3
- * The universal, unique ID of the dartboard.
4
- */
5
- id: string;
3
+ id: DartboardId;
6
4
  /**
7
5
  * The URL that can be used to open the dartboard in the Dart web UI.
8
6
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The universal, unique ID of the dartboard.
3
+ */
4
+ export type DartboardId = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DartboardId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DartboardId.js","sourceRoot":"","sources":["../../dart/generated/models/DartboardId.ts"],"names":[],"mappings":""}
@@ -1,8 +1,6 @@
1
+ import type { DocId } from "./DocId";
1
2
  export type Doc = {
2
- /**
3
- * The universal, unique ID of the doc.
4
- */
5
- id: string;
3
+ id: DocId;
6
4
  /**
7
5
  * The URL that can be used to open the doc in the Dart web UI.
8
6
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The universal, unique ID of the doc.
3
+ */
4
+ export type DocId = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DocId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocId.js","sourceRoot":"","sources":["../../dart/generated/models/DocId.ts"],"names":[],"mappings":""}
@@ -1,8 +1,6 @@
1
+ import type { DocId } from "./DocId";
1
2
  export type DocUpdate = {
2
- /**
3
- * The universal, unique ID of the doc.
4
- */
5
- id: string;
3
+ id: DocId;
6
4
  /**
7
5
  * The title, which is a short description of the doc.
8
6
  */
@@ -1,8 +1,6 @@
1
+ import type { FolderId } from "./FolderId";
1
2
  export type Folder = {
2
- /**
3
- * The universal, unique ID of the folder.
4
- */
5
- id: string;
3
+ id: FolderId;
6
4
  /**
7
5
  * The URL that can be used to open the folder in the Dart web UI.
8
6
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The universal, unique ID of the folder.
3
+ */
4
+ export type FolderId = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FolderId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderId.js","sourceRoot":"","sources":["../../dart/generated/models/FolderId.ts"],"names":[],"mappings":""}
@@ -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,4 @@
1
+ /**
2
+ * The universal, unique ID of the skill.
3
+ */
4
+ export type SkillId = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SkillId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkillId.js","sourceRoot":"","sources":["../../dart/generated/models/SkillId.ts"],"names":[],"mappings":""}
@@ -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: string | null;
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
- * The custom properties, which is a dict of custom properties that are associated with the task.
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?: CustomProperties | null;
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?: string | null;
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
- * The custom properties, which is a dict of custom properties that are associated with the task.
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?: CustomProperties | null;
60
+ customProperties?: any | null;
61
61
  /**
62
62
  * The relationships associated with the task.
63
63
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The universal, unique ID of the task.
3
+ */
4
+ export type TaskId = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TaskId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskId.js","sourceRoot":"","sources":["../../dart/generated/models/TaskId.ts"],"names":[],"mappings":""}
@@ -1,10 +1,11 @@
1
+ import type { TaskId } from "./TaskId";
1
2
  export type TaskMove = {
2
3
  /**
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).
4
5
  */
5
- beforeTaskId?: string | null;
6
+ beforeTaskId?: TaskId | null;
6
7
  /**
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).
8
9
  */
9
- afterTaskId?: string | null;
10
+ afterTaskId?: TaskId | null;
10
11
  };
@@ -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<string>;
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<string>;
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<string>;
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<string>;
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<string>;
22
+ relatedIds?: Array<TaskId>;
22
23
  };
@@ -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?: string | null;
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
- * The custom properties, which is a dict of custom properties that are associated with the task.
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?: CustomProperties | null;
61
+ customProperties?: any | null;
65
62
  /**
66
63
  * The relationships associated with the task.
67
64
  */
@@ -26,6 +26,10 @@ export type UserSpaceConfiguration = {
26
26
  name: string;
27
27
  type: string;
28
28
  format: "Dollars" | "Integer" | "Percentage";
29
+ } | {
30
+ name: string;
31
+ type: string;
32
+ statuses?: Array<string>;
29
33
  } | {
30
34
  name: string;
31
35
  type: string;
@@ -1,8 +1,6 @@
1
+ import type { ViewId } from "./ViewId";
1
2
  export type View = {
2
- /**
3
- * The universal, unique ID of the view.
4
- */
5
- id: string;
3
+ id: ViewId;
6
4
  /**
7
5
  * The URL that can be used to open the view in the Dart web UI.
8
6
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The universal, unique ID of the view.
3
+ */
4
+ export type ViewId = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ViewId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewId.js","sourceRoot":"","sources":["../../dart/generated/models/ViewId.ts"],"names":[],"mappings":""}
@@ -24,7 +24,7 @@ export declare class TaskService {
24
24
  static getTask(id: string): CancelablePromise<WrappedTask>;
25
25
  /**
26
26
  * Update an existing task
27
- * Update certain properties of an existing task. This will save the task in Dart for later access, search, etc. Any properties that are not specified will not be changed.
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.
28
28
  * @param id
29
29
  * @param requestBody
30
30
  * @returns WrappedTask Success, including the updated task
@@ -41,7 +41,7 @@ class TaskService {
41
41
  }
42
42
  /**
43
43
  * Update an existing task
44
- * Update certain properties of an existing task. This will save the task in Dart for later access, search, etc. Any properties that are not specified will not be changed.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dart-tools",
3
- "version": "0.4.6",
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":""}