@platform-modules/civil-aviation-authority 2.2.85 → 2.2.87

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.
@@ -10,5 +10,9 @@ export declare class AccessCardWorkflow extends BaseModel {
10
10
  sub_service_id: number | null;
11
11
  content: string;
12
12
  status: AccessCardWorkflowStatus;
13
- constructor(request_id: number, content: string, status: AccessCardWorkflowStatus, service_id?: number, sub_service_id?: number);
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ constructor(request_id: number, content: string, status: AccessCardWorkflowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
14
18
  }
@@ -19,13 +19,17 @@ var AccessCardWorkflowStatus;
19
19
  AccessCardWorkflowStatus["PENDING"] = "Pending";
20
20
  })(AccessCardWorkflowStatus || (exports.AccessCardWorkflowStatus = AccessCardWorkflowStatus = {}));
21
21
  let AccessCardWorkflow = class AccessCardWorkflow extends BaseModel_1.BaseModel {
22
- constructor(request_id, content, status, service_id, sub_service_id) {
22
+ constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
23
23
  super();
24
24
  this.request_id = request_id;
25
25
  this.service_id = service_id ?? null;
26
26
  this.sub_service_id = sub_service_id ?? null;
27
27
  this.content = content;
28
28
  this.status = status;
29
+ this.user_id = user_id ?? null;
30
+ this.role_id = role_id ?? null;
31
+ this.department_id = department_id ?? null;
32
+ this.section_id = section_id ?? null;
29
33
  }
30
34
  };
31
35
  exports.AccessCardWorkflow = AccessCardWorkflow;
@@ -54,7 +58,23 @@ __decorate([
54
58
  }),
55
59
  __metadata("design:type", String)
56
60
  ], AccessCardWorkflow.prototype, "status", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], AccessCardWorkflow.prototype, "user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], AccessCardWorkflow.prototype, "role_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], AccessCardWorkflow.prototype, "department_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], AccessCardWorkflow.prototype, "section_id", void 0);
57
77
  exports.AccessCardWorkflow = AccessCardWorkflow = __decorate([
58
78
  (0, typeorm_1.Entity)({ name: "access_card_workflows" }),
59
- __metadata("design:paramtypes", [Number, String, String, Number, Number])
79
+ __metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
60
80
  ], AccessCardWorkflow);
@@ -10,5 +10,9 @@ export declare class LogisticsWorkFlow extends BaseModel {
10
10
  sub_service_id: number | null;
11
11
  content: string;
12
12
  status: LogisticsWorkFlowStatus;
13
- constructor(request_id: number, content: string, status: LogisticsWorkFlowStatus, service_id?: number, sub_service_id?: number);
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ constructor(request_id: number, content: string, status: LogisticsWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
14
18
  }
@@ -20,13 +20,17 @@ var LogisticsWorkFlowStatus;
20
20
  })(LogisticsWorkFlowStatus || (exports.LogisticsWorkFlowStatus = LogisticsWorkFlowStatus = {}));
21
21
  //This model is used to store the logistics workflow status and activity logs
22
22
  let LogisticsWorkFlow = class LogisticsWorkFlow extends BaseModel_1.BaseModel {
23
- constructor(request_id, content, status, service_id, sub_service_id) {
23
+ constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
24
24
  super();
25
25
  this.request_id = request_id;
26
26
  this.service_id = service_id || null;
27
27
  this.sub_service_id = sub_service_id || null;
28
28
  this.content = content;
29
29
  this.status = status;
30
+ this.user_id = user_id || null;
31
+ this.role_id = role_id || null;
32
+ this.department_id = department_id || null;
33
+ this.section_id = section_id || null;
30
34
  }
31
35
  };
32
36
  exports.LogisticsWorkFlow = LogisticsWorkFlow;
@@ -50,7 +54,23 @@ __decorate([
50
54
  (0, typeorm_1.Column)({ type: 'enum', enum: LogisticsWorkFlowStatus, default: LogisticsWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
51
55
  __metadata("design:type", String)
52
56
  ], LogisticsWorkFlow.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], LogisticsWorkFlow.prototype, "user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], LogisticsWorkFlow.prototype, "role_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], LogisticsWorkFlow.prototype, "department_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], LogisticsWorkFlow.prototype, "section_id", void 0);
53
73
  exports.LogisticsWorkFlow = LogisticsWorkFlow = __decorate([
54
74
  (0, typeorm_1.Entity)({ name: 'logistics_workflows' }),
55
- __metadata("design:paramtypes", [Number, String, String, Number, Number])
75
+ __metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
56
76
  ], LogisticsWorkFlow);
@@ -10,5 +10,9 @@ export declare class SecurityAwarenessWorkFlow extends BaseModel {
10
10
  sub_service_id: number | null;
11
11
  content: string;
12
12
  status: SecurityAwarenessWorkFlowStatus;
13
- constructor(request_id: number, content: string, status: SecurityAwarenessWorkFlowStatus, service_id?: number, sub_service_id?: number);
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ constructor(request_id: number, content: string, status: SecurityAwarenessWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
14
18
  }
@@ -20,13 +20,17 @@ var SecurityAwarenessWorkFlowStatus;
20
20
  })(SecurityAwarenessWorkFlowStatus || (exports.SecurityAwarenessWorkFlowStatus = SecurityAwarenessWorkFlowStatus = {}));
21
21
  //This model is used to store the security awareness workflow status and activity logs
22
22
  let SecurityAwarenessWorkFlow = class SecurityAwarenessWorkFlow extends BaseModel_1.BaseModel {
23
- constructor(request_id, content, status, service_id, sub_service_id) {
23
+ constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
24
24
  super();
25
25
  this.request_id = request_id;
26
26
  this.service_id = service_id || null;
27
27
  this.sub_service_id = sub_service_id || null;
28
28
  this.content = content;
29
29
  this.status = status;
30
+ this.user_id = user_id || null;
31
+ this.role_id = role_id || null;
32
+ this.department_id = department_id || null;
33
+ this.section_id = section_id || null;
30
34
  }
31
35
  };
32
36
  exports.SecurityAwarenessWorkFlow = SecurityAwarenessWorkFlow;
@@ -50,7 +54,23 @@ __decorate([
50
54
  (0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessWorkFlowStatus, default: SecurityAwarenessWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
51
55
  __metadata("design:type", String)
52
56
  ], SecurityAwarenessWorkFlow.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], SecurityAwarenessWorkFlow.prototype, "user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], SecurityAwarenessWorkFlow.prototype, "role_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], SecurityAwarenessWorkFlow.prototype, "department_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], SecurityAwarenessWorkFlow.prototype, "section_id", void 0);
53
73
  exports.SecurityAwarenessWorkFlow = SecurityAwarenessWorkFlow = __decorate([
54
74
  (0, typeorm_1.Entity)({ name: 'security_awareness_workflows' }),
55
- __metadata("design:paramtypes", [Number, String, String, Number, Number])
75
+ __metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
56
76
  ], SecurityAwarenessWorkFlow);
@@ -10,5 +10,9 @@ export declare class SecurityThreatWorkFlow extends BaseModel {
10
10
  sub_service_id: number | null;
11
11
  content: string;
12
12
  status: SecurityThreatWorkFlowStatus;
13
- constructor(request_id: number, content: string, status: SecurityThreatWorkFlowStatus, service_id?: number, sub_service_id?: number);
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ constructor(request_id: number, content: string, status: SecurityThreatWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
14
18
  }
@@ -20,13 +20,17 @@ var SecurityThreatWorkFlowStatus;
20
20
  })(SecurityThreatWorkFlowStatus || (exports.SecurityThreatWorkFlowStatus = SecurityThreatWorkFlowStatus = {}));
21
21
  //This model is used to store the security threat workflow status and activity logs
22
22
  let SecurityThreatWorkFlow = class SecurityThreatWorkFlow extends BaseModel_1.BaseModel {
23
- constructor(request_id, content, status, service_id, sub_service_id) {
23
+ constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
24
24
  super();
25
25
  this.request_id = request_id;
26
26
  this.service_id = service_id || null;
27
27
  this.sub_service_id = sub_service_id || null;
28
28
  this.content = content;
29
29
  this.status = status;
30
+ this.user_id = user_id || null;
31
+ this.role_id = role_id || null;
32
+ this.department_id = department_id || null;
33
+ this.section_id = section_id || null;
30
34
  }
31
35
  };
32
36
  exports.SecurityThreatWorkFlow = SecurityThreatWorkFlow;
@@ -50,7 +54,23 @@ __decorate([
50
54
  (0, typeorm_1.Column)({ type: 'enum', enum: SecurityThreatWorkFlowStatus, default: SecurityThreatWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
51
55
  __metadata("design:type", String)
52
56
  ], SecurityThreatWorkFlow.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], SecurityThreatWorkFlow.prototype, "user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], SecurityThreatWorkFlow.prototype, "role_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], SecurityThreatWorkFlow.prototype, "department_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], SecurityThreatWorkFlow.prototype, "section_id", void 0);
53
73
  exports.SecurityThreatWorkFlow = SecurityThreatWorkFlow = __decorate([
54
74
  (0, typeorm_1.Entity)({ name: 'security_threat_workflows' }),
55
- __metadata("design:paramtypes", [Number, String, String, Number, Number])
75
+ __metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
56
76
  ], SecurityThreatWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.2.85",
3
+ "version": "2.2.87",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -29,12 +29,28 @@ export class AccessCardWorkflow extends BaseModel {
29
29
  })
30
30
  status: AccessCardWorkflowStatus;
31
31
 
32
+ @Column({ type: "integer", nullable: true })
33
+ user_id: number | null;
34
+
35
+ @Column({ type: "integer", nullable: true })
36
+ role_id: number | null;
37
+
38
+ @Column({ type: "integer", nullable: true })
39
+ department_id: number | null;
40
+
41
+ @Column({ type: "integer", nullable: true })
42
+ section_id: number | null;
43
+
32
44
  constructor(
33
45
  request_id: number,
34
46
  content: string,
35
47
  status: AccessCardWorkflowStatus,
36
48
  service_id?: number,
37
- sub_service_id?: number
49
+ sub_service_id?: number,
50
+ user_id?: number,
51
+ role_id?: number,
52
+ department_id?: number,
53
+ section_id?: number
38
54
  ) {
39
55
  super();
40
56
  this.request_id = request_id;
@@ -42,6 +58,10 @@ export class AccessCardWorkflow extends BaseModel {
42
58
  this.sub_service_id = sub_service_id ?? null;
43
59
  this.content = content;
44
60
  this.status = status;
61
+ this.user_id = user_id ?? null;
62
+ this.role_id = role_id ?? null;
63
+ this.department_id = department_id ?? null;
64
+ this.section_id = section_id ?? null;
45
65
  }
46
66
  }
47
67
 
@@ -25,12 +25,28 @@ export class LogisticsWorkFlow extends BaseModel {
25
25
  @Column({ type: 'enum', enum: LogisticsWorkFlowStatus, default: LogisticsWorkFlowStatus.NOT_YET_STARTED, nullable: false })
26
26
  status: LogisticsWorkFlowStatus;
27
27
 
28
+ @Column({ type: 'integer', nullable: true })
29
+ user_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ role_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ department_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ section_id: number | null;
39
+
28
40
  constructor(
29
41
  request_id: number,
30
42
  content: string,
31
43
  status: LogisticsWorkFlowStatus,
32
44
  service_id?: number,
33
- sub_service_id?: number
45
+ sub_service_id?: number,
46
+ user_id?: number,
47
+ role_id?: number,
48
+ department_id?: number,
49
+ section_id?: number
34
50
  ) {
35
51
  super();
36
52
  this.request_id = request_id;
@@ -38,5 +54,9 @@ export class LogisticsWorkFlow extends BaseModel {
38
54
  this.sub_service_id = sub_service_id || null;
39
55
  this.content = content;
40
56
  this.status = status;
57
+ this.user_id = user_id || null;
58
+ this.role_id = role_id || null;
59
+ this.department_id = department_id || null;
60
+ this.section_id = section_id || null;
41
61
  }
42
62
  }
@@ -25,12 +25,28 @@ export class SecurityAwarenessWorkFlow extends BaseModel {
25
25
  @Column({ type: 'enum', enum: SecurityAwarenessWorkFlowStatus, default: SecurityAwarenessWorkFlowStatus.NOT_YET_STARTED, nullable: false })
26
26
  status: SecurityAwarenessWorkFlowStatus;
27
27
 
28
+ @Column({ type: 'integer', nullable: true })
29
+ user_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ role_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ department_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ section_id: number | null;
39
+
28
40
  constructor(
29
41
  request_id: number,
30
42
  content: string,
31
43
  status: SecurityAwarenessWorkFlowStatus,
32
44
  service_id?: number,
33
- sub_service_id?: number
45
+ sub_service_id?: number,
46
+ user_id?: number,
47
+ role_id?: number,
48
+ department_id?: number,
49
+ section_id?: number
34
50
  ) {
35
51
  super();
36
52
  this.request_id = request_id;
@@ -38,6 +54,10 @@ export class SecurityAwarenessWorkFlow extends BaseModel {
38
54
  this.sub_service_id = sub_service_id || null;
39
55
  this.content = content;
40
56
  this.status = status;
57
+ this.user_id = user_id || null;
58
+ this.role_id = role_id || null;
59
+ this.department_id = department_id || null;
60
+ this.section_id = section_id || null;
41
61
  }
42
62
  }
43
63
 
@@ -25,12 +25,28 @@ export class SecurityThreatWorkFlow extends BaseModel {
25
25
  @Column({ type: 'enum', enum: SecurityThreatWorkFlowStatus, default: SecurityThreatWorkFlowStatus.NOT_YET_STARTED, nullable: false })
26
26
  status: SecurityThreatWorkFlowStatus;
27
27
 
28
+ @Column({ type: 'integer', nullable: true })
29
+ user_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ role_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ department_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ section_id: number | null;
39
+
28
40
  constructor(
29
41
  request_id: number,
30
42
  content: string,
31
43
  status: SecurityThreatWorkFlowStatus,
32
44
  service_id?: number,
33
- sub_service_id?: number
45
+ sub_service_id?: number,
46
+ user_id?: number,
47
+ role_id?: number,
48
+ department_id?: number,
49
+ section_id?: number
34
50
  ) {
35
51
  super();
36
52
  this.request_id = request_id;
@@ -38,6 +54,10 @@ export class SecurityThreatWorkFlow extends BaseModel {
38
54
  this.sub_service_id = sub_service_id || null;
39
55
  this.content = content;
40
56
  this.status = status;
57
+ this.user_id = user_id || null;
58
+ this.role_id = role_id || null;
59
+ this.department_id = department_id || null;
60
+ this.section_id = section_id || null;
41
61
  }
42
62
  }
43
63