@platform-modules/civil-aviation-authority 2.0.40 → 2.0.41

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.
@@ -15,5 +15,6 @@ export declare class VpnApprovalDetails extends BaseModel {
15
15
  approved_by: number | null;
16
16
  comment: string;
17
17
  approval_status: VpnApprovalStatus;
18
- constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null);
18
+ is_manager: boolean;
19
+ constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null, is_manager?: boolean);
19
20
  }
@@ -20,7 +20,7 @@ var VpnApprovalStatus;
20
20
  VpnApprovalStatus["REJECTED"] = "Rejected";
21
21
  })(VpnApprovalStatus || (exports.VpnApprovalStatus = VpnApprovalStatus = {}));
22
22
  let VpnApprovalDetails = class VpnApprovalDetails extends BaseModel_1.BaseModel {
23
- constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by) {
23
+ constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by, is_manager) {
24
24
  super();
25
25
  this.request_id = request_id;
26
26
  this.approver_user_id = approver_user_id;
@@ -31,6 +31,7 @@ let VpnApprovalDetails = class VpnApprovalDetails extends BaseModel_1.BaseModel
31
31
  this.department_id = department_id || null;
32
32
  this.section_id = section_id || null;
33
33
  this.approved_by = approved_by || null;
34
+ this.is_manager = is_manager ?? false;
34
35
  }
35
36
  };
36
37
  exports.VpnApprovalDetails = VpnApprovalDetails;
@@ -75,7 +76,11 @@ __decorate([
75
76
  }),
76
77
  __metadata("design:type", String)
77
78
  ], VpnApprovalDetails.prototype, "approval_status", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
81
+ __metadata("design:type", Boolean)
82
+ ], VpnApprovalDetails.prototype, "is_manager", void 0);
78
83
  exports.VpnApprovalDetails = VpnApprovalDetails = __decorate([
79
84
  (0, typeorm_1.Entity)({ name: "vpn_approvals" }),
80
- __metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object])
85
+ __metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Boolean])
81
86
  ], VpnApprovalDetails);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.40",
3
+ "version": "2.0.41",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -42,6 +42,9 @@ export class VpnApprovalDetails extends BaseModel {
42
42
  })
43
43
  approval_status: VpnApprovalStatus;
44
44
 
45
+ @Column({ type: "boolean", default: false, nullable: false })
46
+ is_manager: boolean;
47
+
45
48
  constructor(
46
49
  request_id: number,
47
50
  approver_user_id: number | null,
@@ -51,7 +54,8 @@ export class VpnApprovalDetails extends BaseModel {
51
54
  level: number,
52
55
  department_id?: number | null,
53
56
  section_id?: number | null,
54
- approved_by?: number | null
57
+ approved_by?: number | null,
58
+ is_manager?: boolean
55
59
  ) {
56
60
  super();
57
61
  this.request_id = request_id;
@@ -63,6 +67,7 @@ export class VpnApprovalDetails extends BaseModel {
63
67
  this.department_id = department_id || null;
64
68
  this.section_id = section_id || null;
65
69
  this.approved_by = approved_by || null;
70
+ this.is_manager = is_manager ?? false;
66
71
  }
67
72
  }
68
73