@managemint-solutions/entities 1.25.0 → 1.26.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.
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { TaskLinkType } from "../enum";
|
|
1
2
|
export type TaskIdDto = {
|
|
2
3
|
taskId: string;
|
|
3
4
|
};
|
|
5
|
+
export type TaskLinkIdDto = {
|
|
6
|
+
taskId: string;
|
|
7
|
+
linkedTaskId: string;
|
|
8
|
+
};
|
|
9
|
+
export type AddTaskLinkDto = {
|
|
10
|
+
linked_task_id: string;
|
|
11
|
+
link_type: TaskLinkType;
|
|
12
|
+
};
|
|
4
13
|
export type GetTasksDto = {
|
|
5
14
|
search?: string | null;
|
|
6
15
|
page: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How one task is linked to another. A `child` link makes the linked task a subtask of the
|
|
3
|
+
* task it hangs off (a task has one parent at most); a `related` link has no direction and
|
|
4
|
+
* shows on both tasks.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum TaskLinkType {
|
|
7
|
+
CHILD = "child",
|
|
8
|
+
RELATED = "related"
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskLinkType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* How one task is linked to another. A `child` link makes the linked task a subtask of the
|
|
6
|
+
* task it hangs off (a task has one parent at most); a `related` link has no direction and
|
|
7
|
+
* shows on both tasks.
|
|
8
|
+
*/
|
|
9
|
+
var TaskLinkType;
|
|
10
|
+
(function (TaskLinkType) {
|
|
11
|
+
TaskLinkType["CHILD"] = "child";
|
|
12
|
+
TaskLinkType["RELATED"] = "related";
|
|
13
|
+
})(TaskLinkType || (exports.TaskLinkType = TaskLinkType = {}));
|
|
14
|
+
;
|
package/dist/tasks/index.d.ts
CHANGED
|
@@ -7,6 +7,17 @@ export type TaskIdentity = {
|
|
|
7
7
|
mms_id: string;
|
|
8
8
|
name: string;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* A task as another task's link shows it: enough for a row with its reference, name, priority
|
|
12
|
+
* and status, and a click through to it.
|
|
13
|
+
*/
|
|
14
|
+
export type LinkedTask = {
|
|
15
|
+
mms_id: string;
|
|
16
|
+
task_number: number;
|
|
17
|
+
name: string;
|
|
18
|
+
status: StatusEntity | null;
|
|
19
|
+
priority: number;
|
|
20
|
+
};
|
|
10
21
|
export type TaskSummary = {
|
|
11
22
|
mms_id: string;
|
|
12
23
|
/** Sequential per organization, starting at 1; the human and integration-facing reference. */
|
|
@@ -39,6 +50,12 @@ export type TaskEntity = {
|
|
|
39
50
|
assigned_to: UserIdentity | null;
|
|
40
51
|
project: ProjectIdentity | null;
|
|
41
52
|
client: ClientIdentity | null;
|
|
53
|
+
/** The task this one is a subtask of; null when it has none. */
|
|
54
|
+
parent: LinkedTask | null;
|
|
55
|
+
/** The tasks linked to this one as its subtasks. */
|
|
56
|
+
subtasks: LinkedTask[];
|
|
57
|
+
/** The tasks linked to this one as related, whichever task the link was made from. */
|
|
58
|
+
related: LinkedTask[];
|
|
42
59
|
archived: boolean;
|
|
43
60
|
archived_at: Date | null;
|
|
44
61
|
archived_by: UserIdentity | null;
|
package/package.json
CHANGED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|