@managemint-solutions/entities 1.24.0 → 1.25.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.
- package/dist/audit-trail/enum/index.d.ts +1 -0
- package/dist/audit-trail/enum/index.js +1 -0
- package/dist/labels/dto/index.d.ts +18 -0
- package/dist/labels/dto/index.js +2 -0
- package/dist/labels/enum/index.d.ts +4 -0
- package/dist/labels/enum/index.js +9 -0
- package/dist/labels/index.d.ts +13 -0
- package/dist/labels/index.js +2 -0
- package/dist/tasks/dto/index.d.ts +3 -0
- package/dist/tasks/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ var AuditTrailEntityType;
|
|
|
16
16
|
AuditTrailEntityType["USER"] = "users";
|
|
17
17
|
AuditTrailEntityType["PERMISSION"] = "permissions";
|
|
18
18
|
AuditTrailEntityType["STATUS"] = "statuses";
|
|
19
|
+
AuditTrailEntityType["LABEL"] = "labels";
|
|
19
20
|
AuditTrailEntityType["ADDITIONAL_DETAILS"] = "additional_details";
|
|
20
21
|
AuditTrailEntityType["SUPPORTING_FILES"] = "supporting_files";
|
|
21
22
|
AuditTrailEntityType["NOTES"] = "notes";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LabelEntityTypes } from "../enum";
|
|
2
|
+
export type LabelIdDto = {
|
|
3
|
+
labelId: string;
|
|
4
|
+
};
|
|
5
|
+
export type GetLabelsDto = {
|
|
6
|
+
entity: LabelEntityTypes;
|
|
7
|
+
};
|
|
8
|
+
export type AddLabelDto = {
|
|
9
|
+
name: string;
|
|
10
|
+
colour: string;
|
|
11
|
+
entity: LabelEntityTypes;
|
|
12
|
+
description?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export type UpdateLabelDto = {
|
|
15
|
+
name: string;
|
|
16
|
+
colour: string;
|
|
17
|
+
description?: string | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LabelEntityTypes = void 0;
|
|
4
|
+
/** The entities a label catalogue exists for. Tasks only for now; a later entity adds a value. */
|
|
5
|
+
var LabelEntityTypes;
|
|
6
|
+
(function (LabelEntityTypes) {
|
|
7
|
+
LabelEntityTypes["TASK"] = "tasks";
|
|
8
|
+
})(LabelEntityTypes || (exports.LabelEntityTypes = LabelEntityTypes = {}));
|
|
9
|
+
;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UUID } from 'crypto';
|
|
2
|
+
/**
|
|
3
|
+
* A small coloured tag an organization defines for one entity type and pins to its rows -
|
|
4
|
+
* tasks for now. Like a status, a label is the organization's own catalogue entry: the
|
|
5
|
+
* row it is pinned to only references it.
|
|
6
|
+
*/
|
|
7
|
+
export type LabelEntity = {
|
|
8
|
+
mms_id: UUID;
|
|
9
|
+
name: string;
|
|
10
|
+
colour: string;
|
|
11
|
+
/** What the label is for, shown when hovering the chip; null when none was given. */
|
|
12
|
+
description: string | null;
|
|
13
|
+
};
|
|
@@ -18,6 +18,7 @@ export type GetTasksDto = {
|
|
|
18
18
|
status_id_not_in?: string | null;
|
|
19
19
|
completed?: boolean | null;
|
|
20
20
|
priority_in?: string | null;
|
|
21
|
+
label_id_in?: string | null;
|
|
21
22
|
archive: boolean;
|
|
22
23
|
};
|
|
23
24
|
export type CreateTaskDto = {
|
|
@@ -30,6 +31,7 @@ export type CreateTaskDto = {
|
|
|
30
31
|
assigned_to_id?: string | null;
|
|
31
32
|
project_id?: string | null;
|
|
32
33
|
client_id?: string | null;
|
|
34
|
+
label_ids?: string[] | null;
|
|
33
35
|
};
|
|
34
36
|
export type UpdateTaskDto = {
|
|
35
37
|
name: string;
|
|
@@ -41,4 +43,5 @@ export type UpdateTaskDto = {
|
|
|
41
43
|
assigned_to_id?: string | null;
|
|
42
44
|
project_id?: string | null;
|
|
43
45
|
client_id?: string | null;
|
|
46
|
+
label_ids?: string[] | null;
|
|
44
47
|
};
|
package/dist/tasks/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientIdentity } from "../clients";
|
|
2
|
+
import { LabelEntity } from "../labels";
|
|
2
3
|
import { ProjectIdentity } from "../projects";
|
|
3
4
|
import { StatusEntity } from "../status";
|
|
4
5
|
import { UserIdentity } from "../users";
|
|
@@ -14,6 +15,8 @@ export type TaskSummary = {
|
|
|
14
15
|
start_date: Date;
|
|
15
16
|
end_date: Date | null;
|
|
16
17
|
status: StatusEntity | null;
|
|
18
|
+
/** The task's labels; empty when it has none. */
|
|
19
|
+
labels: LabelEntity[];
|
|
17
20
|
priority: number;
|
|
18
21
|
assigned_to: UserIdentity | null;
|
|
19
22
|
project: ProjectIdentity | null;
|
|
@@ -31,6 +34,7 @@ export type TaskEntity = {
|
|
|
31
34
|
start_date: Date;
|
|
32
35
|
end_date: Date | null;
|
|
33
36
|
status: StatusEntity | null;
|
|
37
|
+
labels: LabelEntity[];
|
|
34
38
|
priority: number;
|
|
35
39
|
assigned_to: UserIdentity | null;
|
|
36
40
|
project: ProjectIdentity | null;
|
package/package.json
CHANGED