law-common 14.0.3-beta.0 → 14.0.3-beta.2
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.
|
@@ -9,3 +9,10 @@ export interface ITimesheetUpdateDto extends IEntityUpdateDto<ITimesheetEntity>
|
|
|
9
9
|
}
|
|
10
10
|
export interface ITimesheetUpdateDtoValidationData extends ITimesheetCreateDtoValidationData {
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Fields on a timesheet that, when changed via an UPDATE, reset the timesheet's
|
|
14
|
+
* `classificationStatus` back to `PENDING`. Shared by backend (toUpdateDto) and frontend
|
|
15
|
+
* (edit warning). `billingId` intentionally NOT included — a billing change does not reset
|
|
16
|
+
* classification. Anything not listed here is by definition "non-reset".
|
|
17
|
+
*/
|
|
18
|
+
export declare const TIMESHEET_CLASSIFICATION_RESET_FIELDS: (keyof ITimesheetEntity)[];
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESHEET_CLASSIFICATION_RESET_FIELDS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Fields on a timesheet that, when changed via an UPDATE, reset the timesheet's
|
|
6
|
+
* `classificationStatus` back to `PENDING`. Shared by backend (toUpdateDto) and frontend
|
|
7
|
+
* (edit warning). `billingId` intentionally NOT included — a billing change does not reset
|
|
8
|
+
* classification. Anything not listed here is by definition "non-reset".
|
|
9
|
+
*/
|
|
10
|
+
exports.TIMESHEET_CLASSIFICATION_RESET_FIELDS = ["userId", "projectId", "task", "description", "dateCode", "totalDuration"];
|
|
@@ -84,8 +84,10 @@ class TimesheetEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
84
84
|
return false;
|
|
85
85
|
if (actionKey === timesheet_action_enum_1.TimesheetActionEnum.CLASSIFY)
|
|
86
86
|
return false;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
// LW-842: allow UPDATE regardless of classification status — the backend now resets
|
|
88
|
+
// classificationStatus to PENDING in toUpdateDto when a reset-field changes.
|
|
89
|
+
// if (actionKey === TimesheetActionEnum.UPDATE && this.classificationStatus && this.classificationStatus !== TimesheetClassificationStatusEnum.PENDING)
|
|
90
|
+
// return false;
|
|
89
91
|
return true;
|
|
90
92
|
})
|
|
91
93
|
.map(([actionKey, actionConfig]) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "law-common",
|
|
3
|
-
"version": "14.0.3-beta.
|
|
3
|
+
"version": "14.0.3-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"script:publish:install:patch": "node scripts/publish-and-install.js patch",
|
|
36
36
|
"script:publish:install:minor": "node scripts/publish-and-install.js minor",
|
|
37
37
|
"script:publish:install:major": "node scripts/publish-and-install.js major",
|
|
38
|
-
"build:link": "bash scripts/build-link.sh"
|
|
38
|
+
"build:link": "bash scripts/build-link.sh",
|
|
39
|
+
"script:deploy:prod": "bash scripts/deploy-prod.sh"
|
|
39
40
|
},
|
|
40
41
|
"keywords": [],
|
|
41
42
|
"author": "",
|