law-common 10.74.1-beta.6 → 10.74.1-beta.7

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.
@@ -6,6 +6,7 @@ export interface IMovingTimesheetEntity extends IEntityAuditColumn {
6
6
  timesheetId: number;
7
7
  targetProjectId: number;
8
8
  status: MovingTimesheetStatusEnum;
9
+ reason: string;
9
10
  remark?: string;
10
11
  }
11
12
  export interface IMovingTimesheetActionDataDto {
@@ -16,6 +16,7 @@ export declare class MovingTimesheetEntityModel extends BaseEntityModel<EntityEn
16
16
  updatedBy: number;
17
17
  timesheet?: TimesheetEntityModel;
18
18
  targetProject?: ProjectEntityModel;
19
+ reason: string;
19
20
  remark?: string;
20
21
  static fromEntity(entity: IMovingTimesheetEntity): MovingTimesheetEntityModel;
21
22
  static relationConfigs: RelationConfigs<[EntityEnum.TIMESHEET, EntityEnum.PROJECT], EntityEnum.MOVING_TIMESHEET>;
@@ -16,6 +16,7 @@ class MovingTimesheetEntityModel extends base_entity_model_1.BaseEntityModel {
16
16
  this.updatedOn = 0;
17
17
  this.createdBy = 0;
18
18
  this.updatedBy = 0;
19
+ this.reason = "";
19
20
  }
20
21
  static fromEntity(entity) {
21
22
  const result = new MovingTimesheetEntityModel(entity_utils_interface_1.EntityEnum.MOVING_TIMESHEET);
@@ -25,4 +25,5 @@ export declare class TimesheetEntityModel extends BaseEntityModel<EntityEnum.TIM
25
25
  static relationConfigs: RelationConfigs<[EntityEnum.USER], EntityEnum.TIMESHEET>;
26
26
  getTimesheetAmount(projectCurrency: CurrencyEnum): number;
27
27
  get formattedDate(): string;
28
+ get userName(): string | undefined;
28
29
  }
@@ -37,6 +37,10 @@ class TimesheetEntityModel extends base_entity_model_1.BaseEntityModel {
37
37
  get formattedDate() {
38
38
  return new utils_1.DateCodeModel(this.dateCode).getFormattedDate();
39
39
  }
40
+ get userName() {
41
+ var _a;
42
+ return (_a = this.user) === null || _a === void 0 ? void 0 : _a.name;
43
+ }
40
44
  }
41
45
  exports.TimesheetEntityModel = TimesheetEntityModel;
42
46
  TimesheetEntityModel.relationConfigs = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.74.1-beta.6",
3
+ "version": "10.74.1-beta.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [