@platform-modules/foreign-ministry 1.0.18 → 1.0.20

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,7 +6,8 @@ export declare enum workFlowStatus {
6
6
  }
7
7
  export declare class LeaveWorkFlow extends BaseModel {
8
8
  leave_request_id: number;
9
+ leave_approval_details_id: number;
9
10
  content: string;
10
11
  status: workFlowStatus;
11
- constructor(leave_request_id: number, content: string, status: workFlowStatus);
12
+ constructor(leave_request_id: number, leave_approval_details_id: number, content: string, status: workFlowStatus);
12
13
  }
@@ -20,9 +20,10 @@ var workFlowStatus;
20
20
  })(workFlowStatus || (exports.workFlowStatus = workFlowStatus = {}));
21
21
  //This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
22
22
  let LeaveWorkFlow = class LeaveWorkFlow extends BaseModel_1.BaseModel {
23
- constructor(leave_request_id, content, status) {
23
+ constructor(leave_request_id, leave_approval_details_id, content, status) {
24
24
  super();
25
25
  this.leave_request_id = leave_request_id;
26
+ this.leave_approval_details_id = leave_approval_details_id;
26
27
  this.content = content;
27
28
  this.status = status;
28
29
  }
@@ -32,6 +33,10 @@ __decorate([
32
33
  (0, typeorm_1.Column)({ type: 'int', nullable: false }),
33
34
  __metadata("design:type", Number)
34
35
  ], LeaveWorkFlow.prototype, "leave_request_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
38
+ __metadata("design:type", Number)
39
+ ], LeaveWorkFlow.prototype, "leave_approval_details_id", void 0);
35
40
  __decorate([
36
41
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
37
42
  __metadata("design:type", String)
@@ -42,5 +47,5 @@ __decorate([
42
47
  ], LeaveWorkFlow.prototype, "status", void 0);
43
48
  exports.LeaveWorkFlow = LeaveWorkFlow = __decorate([
44
49
  (0, typeorm_1.Entity)({ name: 'leave_work_flows' }),
45
- __metadata("design:paramtypes", [Number, String, String])
50
+ __metadata("design:paramtypes", [Number, Number, String, String])
46
51
  ], LeaveWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -13,15 +13,19 @@ export class LeaveWorkFlow extends BaseModel {
13
13
  @Column({ type: 'int', nullable: false })
14
14
  leave_request_id: number;
15
15
 
16
+ @Column({ type: 'int', nullable: false, default: 0 })
17
+ leave_approval_details_id: number;
18
+
16
19
  @Column({ type: 'varchar', length: 255, nullable: false })
17
20
  content: string;
18
21
 
19
22
  @Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
20
23
  status: workFlowStatus;
21
24
 
22
- constructor(leave_request_id: number, content: string, status: workFlowStatus) {
25
+ constructor(leave_request_id: number, leave_approval_details_id: number, content: string, status: workFlowStatus) {
23
26
  super();
24
27
  this.leave_request_id = leave_request_id;
28
+ this.leave_approval_details_id = leave_approval_details_id;
25
29
  this.content = content;
26
30
  this.status = status;
27
31
  }