@managemint-solutions/entities 1.0.23 → 1.0.25
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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type ProjectIdDto = {
|
|
2
|
+
projectId: string;
|
|
3
|
+
};
|
|
4
|
+
export type GetProjectsDto = {
|
|
5
|
+
search?: string | null;
|
|
6
|
+
page: number;
|
|
7
|
+
page_size: number;
|
|
8
|
+
created_after?: string | Date | null;
|
|
9
|
+
created_before?: string | Date | null;
|
|
10
|
+
status_id_in?: string[] | null;
|
|
11
|
+
client_id?: string | null;
|
|
12
|
+
archive: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type CreateProjectDto = {
|
|
15
|
+
name: string;
|
|
16
|
+
specification?: string | null;
|
|
17
|
+
start_date?: Date | null;
|
|
18
|
+
end_date?: Date | null;
|
|
19
|
+
has_budget: boolean;
|
|
20
|
+
status_id?: string | null;
|
|
21
|
+
client_id?: string | null;
|
|
22
|
+
manager_id?: string | null;
|
|
23
|
+
};
|
|
24
|
+
export type UpdateProjectDto = {
|
|
25
|
+
name: string;
|
|
26
|
+
specification?: string | null;
|
|
27
|
+
start_date?: Date | null;
|
|
28
|
+
end_date?: Date | null;
|
|
29
|
+
has_budget: boolean;
|
|
30
|
+
status_id?: string | null;
|
|
31
|
+
client_id?: string | null;
|
|
32
|
+
manager_id?: string | null;
|
|
33
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UUID } from "crypto";
|
|
2
|
+
import { UserIdentity } from "../users";
|
|
3
|
+
import { ClientIdentity } from "../clients";
|
|
4
|
+
import { StatusEntity } from "../status";
|
|
5
|
+
export type ProjectIdentity = {
|
|
6
|
+
mms_id: UUID;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export type ProjectSummary = {
|
|
10
|
+
mms_id: UUID;
|
|
11
|
+
created_at: Date;
|
|
12
|
+
created_by: UserIdentity;
|
|
13
|
+
name: string;
|
|
14
|
+
status: StatusEntity | null;
|
|
15
|
+
manager: UserIdentity | null;
|
|
16
|
+
client: ClientIdentity | null;
|
|
17
|
+
};
|
|
18
|
+
export type ProjectEntity = {
|
|
19
|
+
mms_id: UUID;
|
|
20
|
+
created_at: Date;
|
|
21
|
+
created_by: UserIdentity;
|
|
22
|
+
updated_at: Date | null;
|
|
23
|
+
last_updated_by: UserIdentity | null;
|
|
24
|
+
name: string;
|
|
25
|
+
specification: string | null;
|
|
26
|
+
start_date: Date | null;
|
|
27
|
+
end_date: Date | null;
|
|
28
|
+
has_budget: boolean;
|
|
29
|
+
status: StatusEntity | null;
|
|
30
|
+
client: ClientIdentity | null;
|
|
31
|
+
manager: UserIdentity | null;
|
|
32
|
+
archived: boolean;
|
|
33
|
+
archived_at: Date | null;
|
|
34
|
+
archived_by: UserIdentity | null;
|
|
35
|
+
unarchived_at: Date | null;
|
|
36
|
+
unarchived_by: UserIdentity | null;
|
|
37
|
+
deleted: boolean;
|
|
38
|
+
deleted_at: Date | null;
|
|
39
|
+
deleted_by: UserIdentity | null;
|
|
40
|
+
restored_at: Date | null;
|
|
41
|
+
restored_by: UserIdentity | null;
|
|
42
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managemint-solutions/entities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Entity types used by both the api and portal",
|
|
5
5
|
"homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -128,6 +128,15 @@
|
|
|
128
128
|
"./supporting-files/enum": {
|
|
129
129
|
"types": "./dist/supporting-files/enum/index.d.ts",
|
|
130
130
|
"default": "./dist/supporting-files/enum/index.js"
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
"./projects": {
|
|
134
|
+
"types": "./dist/projects/index.d.ts",
|
|
135
|
+
"default": "./dist/projects/index.js"
|
|
136
|
+
},
|
|
137
|
+
"./projects/dto": {
|
|
138
|
+
"types": "./dist/projects/dto/index.d.ts",
|
|
139
|
+
"default": "./dist/projects/dto/index.js"
|
|
131
140
|
}
|
|
132
141
|
},
|
|
133
142
|
"scripts": {
|