@platform-modules/civil-aviation-authority 2.0.39 → 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);
@@ -107,7 +107,7 @@ __decorate([
107
107
  __metadata("design:type", String)
108
108
  ], VpnRequest.prototype, "phone_number", void 0);
109
109
  __decorate([
110
- (0, typeorm_1.Column)({ type: "enum", enum: VpnReasonForRequest, array: true, default: () => "'{REMOTE_WORK}'", nullable: false }),
110
+ (0, typeorm_1.Column)({ type: "text", array: true, nullable: false }),
111
111
  __metadata("design:type", Array)
112
112
  ], VpnRequest.prototype, "reason_for_request", void 0);
113
113
  __decorate([
@@ -143,7 +143,7 @@ __decorate([
143
143
  __metadata("design:type", String)
144
144
  ], VpnRequest.prototype, "access_type", void 0);
145
145
  __decorate([
146
- (0, typeorm_1.Column)({ type: "enum", enum: VpnDeviceType, array: true, default: () => "'{CAA_LAPTOP}'", nullable: false }),
146
+ (0, typeorm_1.Column)({ type: "text", array: true, nullable: false }),
147
147
  __metadata("design:type", Array)
148
148
  ], VpnRequest.prototype, "device_type", void 0);
149
149
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.39",
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
 
@@ -83,7 +83,7 @@ export class VpnRequest extends BaseModel {
83
83
  @Column({ type: "varchar", length: 50, nullable: false })
84
84
  phone_number: string;
85
85
 
86
- @Column({ type: "enum", enum: VpnReasonForRequest, array: true, default: () => "'{REMOTE_WORK}'", nullable: false })
86
+ @Column({ type: "text", array: true, nullable: false })
87
87
  reason_for_request: VpnReasonForRequest[];
88
88
 
89
89
  @Column({ type: "text", nullable: true })
@@ -110,7 +110,7 @@ export class VpnRequest extends BaseModel {
110
110
  @Column({ type: "enum", enum: VpnAccessType, nullable: false })
111
111
  access_type: VpnAccessType;
112
112
 
113
- @Column({ type: "enum", enum: VpnDeviceType, array: true, default: () => "'{CAA_LAPTOP}'", nullable: false })
113
+ @Column({ type: "text", array: true, nullable: false })
114
114
  device_type: VpnDeviceType[];
115
115
 
116
116
  @Column({ type: "boolean", default: false, nullable: false })