@platform-modules/civil-aviation-authority 2.2.306 → 2.2.307
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,6 +10,8 @@ export declare class HotelWorkFlow extends BaseModel {
|
|
|
10
10
|
sub_service_id: number | null;
|
|
11
11
|
content: string;
|
|
12
12
|
level: number | null;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
|
+
approver_user_id: number | null;
|
|
13
15
|
status: HotelWorkFlowStatus;
|
|
14
|
-
constructor(request_id: number, content: string, status: HotelWorkFlowStatus, service_id?: number, sub_service_id?: number, level?: number | null);
|
|
16
|
+
constructor(request_id: number, content: string, status: HotelWorkFlowStatus, service_id?: number, sub_service_id?: number, level?: number | null, approver_role_id?: number | null, approver_user_id?: number | null);
|
|
15
17
|
}
|
|
@@ -20,13 +20,15 @@ var HotelWorkFlowStatus;
|
|
|
20
20
|
})(HotelWorkFlowStatus || (exports.HotelWorkFlowStatus = HotelWorkFlowStatus = {}));
|
|
21
21
|
//This model is used to store the logistics workflow status and activity logs
|
|
22
22
|
let HotelWorkFlow = class HotelWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status, service_id, sub_service_id, level) {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, level, approver_role_id, approver_user_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.level = level || null;
|
|
30
|
+
this.approver_role_id = approver_role_id || null;
|
|
31
|
+
this.approver_user_id = approver_user_id || null;
|
|
30
32
|
this.status = status;
|
|
31
33
|
}
|
|
32
34
|
};
|
|
@@ -51,11 +53,19 @@ __decorate([
|
|
|
51
53
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
52
54
|
__metadata("design:type", Object)
|
|
53
55
|
], HotelWorkFlow.prototype, "level", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], HotelWorkFlow.prototype, "approver_role_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], HotelWorkFlow.prototype, "approver_user_id", void 0);
|
|
54
64
|
__decorate([
|
|
55
65
|
(0, typeorm_1.Column)({ type: 'enum', enum: HotelWorkFlowStatus, default: HotelWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
56
66
|
__metadata("design:type", String)
|
|
57
67
|
], HotelWorkFlow.prototype, "status", void 0);
|
|
58
68
|
exports.HotelWorkFlow = HotelWorkFlow = __decorate([
|
|
59
69
|
(0, typeorm_1.Entity)({ name: 'hotel_workflows' }),
|
|
60
|
-
__metadata("design:paramtypes", [Number, String, String, Number, Number, Object])
|
|
70
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Number, Object, Object, Object])
|
|
61
71
|
], HotelWorkFlow);
|
package/package.json
CHANGED
|
@@ -25,6 +25,12 @@ export class HotelWorkFlow extends BaseModel {
|
|
|
25
25
|
@Column({ type: 'integer', nullable: true })
|
|
26
26
|
level: number | null;
|
|
27
27
|
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
approver_role_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
approver_user_id: number | null;
|
|
33
|
+
|
|
28
34
|
@Column({ type: 'enum', enum: HotelWorkFlowStatus, default: HotelWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
29
35
|
status: HotelWorkFlowStatus;
|
|
30
36
|
|
|
@@ -34,7 +40,9 @@ export class HotelWorkFlow extends BaseModel {
|
|
|
34
40
|
status: HotelWorkFlowStatus,
|
|
35
41
|
service_id?: number,
|
|
36
42
|
sub_service_id?: number,
|
|
37
|
-
level?: number | null
|
|
43
|
+
level?: number | null,
|
|
44
|
+
approver_role_id?: number | null,
|
|
45
|
+
approver_user_id?: number | null
|
|
38
46
|
) {
|
|
39
47
|
super();
|
|
40
48
|
this.request_id = request_id;
|
|
@@ -42,6 +50,8 @@ export class HotelWorkFlow extends BaseModel {
|
|
|
42
50
|
this.sub_service_id = sub_service_id || null;
|
|
43
51
|
this.content = content;
|
|
44
52
|
this.level = level || null;
|
|
53
|
+
this.approver_role_id = approver_role_id || null;
|
|
54
|
+
this.approver_user_id = approver_user_id || null;
|
|
45
55
|
this.status = status;
|
|
46
56
|
}
|
|
47
57
|
}
|