law-common 10.9.1-beta.0 → 10.11.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/api/interface/task.create.dto.interface.d.ts +3 -5
- package/dist/src/api/interface/task.update.dto.interface.d.ts +2 -5
- package/dist/src/api/interface/timesheet.entity.response.interface.d.ts +7 -0
- package/dist/src/constants/entity_constants.d.ts +1 -1
- package/dist/src/constants/entity_constants.js +3 -3
- package/package.json +35 -35
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
description?: string;
|
|
5
|
-
type: TaskTypeEnum;
|
|
1
|
+
import { IEntityCreateDto, ITaskEntity } from "../../entities";
|
|
2
|
+
export type ITaskCreateDtoExculde = "status";
|
|
3
|
+
export interface ITaskCreateDto extends Omit<IEntityCreateDto<ITaskEntity>, ITaskCreateDtoExculde> {
|
|
6
4
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ITaskUpdateDto {
|
|
3
|
-
name?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
status?: TaskStatusEnum;
|
|
1
|
+
import { IEntityUpdateDto, ITaskEntity } from "../../entities";
|
|
2
|
+
export interface ITaskUpdateDto extends IEntityUpdateDto<ITaskEntity> {
|
|
6
3
|
}
|
|
@@ -25,6 +25,7 @@ export type ITimesheetFlowConfig = {
|
|
|
25
25
|
actions: {
|
|
26
26
|
[key in TimesheetActionEnum]?: {
|
|
27
27
|
permissions: string[];
|
|
28
|
+
isApplicable?: (data: ITimesheetFlowContextData) => boolean;
|
|
28
29
|
next: (data: ITimesheetFlowContextData) => TimesheetStatusEnum;
|
|
29
30
|
};
|
|
30
31
|
};
|
|
@@ -35,4 +36,10 @@ export type ITimesheetFlowContextData = {
|
|
|
35
36
|
projectUserMapping: IProjectUserMappingEntity;
|
|
36
37
|
buffer: number;
|
|
37
38
|
dto: ITimesheetEntityUpdateDto;
|
|
39
|
+
timesheetEnterThresholdValue: number;
|
|
40
|
+
};
|
|
41
|
+
export type ITimesheetFlowAfterTimesheetEnterThreshold = {
|
|
42
|
+
[key in TimesheetStatusEnum]?: {
|
|
43
|
+
validActions: TimesheetActionEnum[];
|
|
44
|
+
};
|
|
38
45
|
};
|
|
@@ -6,6 +6,6 @@ export declare const timesheetMinimumTotalDuration = 15;
|
|
|
6
6
|
export declare const toDoListMinimumEstimatedDuration = 15;
|
|
7
7
|
export declare const reimbursementPaymentProcessorPermissionName = "REIMBURSEMENT_PAYMENT_PROCESSOR";
|
|
8
8
|
export declare const leaveImplicitDays: string[];
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const freezeTimesheetAfterBillingStatus: BillingStatusEnum;
|
|
10
10
|
export declare const usersToExcludeFromSearchResponse: string[];
|
|
11
11
|
export declare const systemUsers: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.systemUsers = exports.usersToExcludeFromSearchResponse = exports.
|
|
3
|
+
exports.systemUsers = exports.usersToExcludeFromSearchResponse = exports.freezeTimesheetAfterBillingStatus = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.toDoListMinimumEstimatedDuration = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
|
|
4
4
|
const entities_1 = require("../entities");
|
|
5
5
|
exports.timesheetViewThreshold = "timesheetViewThreshold";
|
|
6
6
|
exports.timesheetThreshold = "timesheetThreshold";
|
|
@@ -9,6 +9,6 @@ exports.timesheetMinimumTotalDuration = 15;
|
|
|
9
9
|
exports.toDoListMinimumEstimatedDuration = 15;
|
|
10
10
|
exports.reimbursementPaymentProcessorPermissionName = "REIMBURSEMENT_PAYMENT_PROCESSOR";
|
|
11
11
|
exports.leaveImplicitDays = ["Saturday", "Sunday"];
|
|
12
|
-
exports.
|
|
12
|
+
exports.freezeTimesheetAfterBillingStatus = entities_1.BillingStatusEnum.PENDING_CLIENT_REVIEW;
|
|
13
13
|
exports.usersToExcludeFromSearchResponse = ["DB migration"];
|
|
14
|
-
exports.systemUsers = ["DB migration"
|
|
14
|
+
exports.systemUsers = ["DB migration"];
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "10.
|
|
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": "10.11.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
|
+
}
|