law-common 2.7.0 → 2.7.1-beta.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/src/entities/enums/project_resource_status.enum.d.ts +4 -0
- package/dist/src/entities/enums/project_resource_status.enum.js +8 -0
- package/dist/src/entities/index.d.ts +1 -0
- package/dist/src/entities/index.js +1 -0
- package/dist/src/entities/interface/project.entity.interface.d.ts +8 -4
- package/package.json +35 -35
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectUserStatusEnum = void 0;
|
|
4
|
+
var ProjectUserStatusEnum;
|
|
5
|
+
(function (ProjectUserStatusEnum) {
|
|
6
|
+
ProjectUserStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ProjectUserStatusEnum["INACTIVE"] = "INACTIVE";
|
|
8
|
+
})(ProjectUserStatusEnum || (exports.ProjectUserStatusEnum = ProjectUserStatusEnum = {}));
|
|
@@ -59,3 +59,4 @@ __exportStar(require("./enums/timesheet.status.enum"), exports);
|
|
|
59
59
|
__exportStar(require("./enums/timesheet.action.enum"), exports);
|
|
60
60
|
__exportStar(require("./enums/billing.action.enum"), exports);
|
|
61
61
|
__exportStar(require("./enums/configuration.type.enum"), exports);
|
|
62
|
+
__exportStar(require("./enums/project_resource_status.enum"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CurrencyEnum, TimeUnitEnum } from "../../enums";
|
|
2
2
|
import { ProjectBillingTypeEnum, ProjectStatusEnum } from "../enums/project.entity.enum";
|
|
3
|
+
import { ProjectUserStatusEnum } from "../enums/project_resource_status.enum";
|
|
3
4
|
import { UserRoleEnum } from "../enums/user.entity.enum";
|
|
4
5
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
5
6
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
@@ -17,10 +18,13 @@ export interface IProjectEntity extends IAuditColumnEntity {
|
|
|
17
18
|
expectedEndDate?: string;
|
|
18
19
|
actualEndDate?: string;
|
|
19
20
|
}
|
|
21
|
+
export interface IProjectUserDto {
|
|
22
|
+
id: number;
|
|
23
|
+
role: UserRoleEnum;
|
|
24
|
+
status?: ProjectUserStatusEnum;
|
|
25
|
+
}
|
|
20
26
|
export interface IProjectEntityDependent {
|
|
21
|
-
|
|
22
|
-
resourceIds: number[];
|
|
23
|
-
ownerIds: number[];
|
|
27
|
+
users: IProjectUserDto[];
|
|
24
28
|
}
|
|
25
29
|
export type IProjectExclude = "organizationId" | "billingRate";
|
|
26
30
|
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
@@ -52,7 +56,7 @@ export interface IProjectUserMappingEntity extends IAuditColumnEntity {
|
|
|
52
56
|
id: number;
|
|
53
57
|
projectId: number;
|
|
54
58
|
userId: number;
|
|
55
|
-
|
|
59
|
+
status: ProjectUserStatusEnum;
|
|
56
60
|
}
|
|
57
61
|
export interface IProjectUserMappingCreateDto extends IEntityCreateDto<IProjectUserMappingEntity> {
|
|
58
62
|
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "2.7.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist/**/*"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"clean": "rm -rf dist",
|
|
11
|
-
"build": "npm run clean && tsc",
|
|
12
|
-
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
13
|
-
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
-
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
-
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
-
"link": "npm run build && npm link",
|
|
17
|
-
"test": "jest"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@types/jest": "^29.5.13",
|
|
24
|
-
"@types/node": "^22.6.1",
|
|
25
|
-
"jest": "^29.7.0",
|
|
26
|
-
"ts-jest": "^29.2.5",
|
|
27
|
-
"ts-node": "^10.9.2",
|
|
28
|
-
"typescript": "^5.6.2"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@types/express": "^5.0.0",
|
|
32
|
-
"@types/multer": "^1.4.12",
|
|
33
|
-
"date-fns": "^4.1.0"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "law-common",
|
|
3
|
+
"version": "2.7.1-beta.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/**/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"build": "npm run clean && tsc",
|
|
12
|
+
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
13
|
+
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
+
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
+
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
+
"link": "npm run build && npm link",
|
|
17
|
+
"test": "jest"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/jest": "^29.5.13",
|
|
24
|
+
"@types/node": "^22.6.1",
|
|
25
|
+
"jest": "^29.7.0",
|
|
26
|
+
"ts-jest": "^29.2.5",
|
|
27
|
+
"ts-node": "^10.9.2",
|
|
28
|
+
"typescript": "^5.6.2"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/express": "^5.0.0",
|
|
32
|
+
"@types/multer": "^1.4.12",
|
|
33
|
+
"date-fns": "^4.1.0"
|
|
34
|
+
}
|
|
35
|
+
}
|