@platform-modules/civil-aviation-authority 2.2.80 → 2.2.82
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.
- package/.env +4 -10
- package/dist/models/VpnRequestChatModel.d.ts +2 -1
- package/dist/models/VpnRequestChatModel.js +7 -2
- package/dist/models/VpnWorkflowModel.d.ts +4 -1
- package/dist/models/VpnWorkflowModel.js +17 -2
- package/dist/models/Workflows.d.ts +9 -0
- package/package.json +1 -1
- package/src/models/VpnRequestChatModel.ts +6 -1
- package/src/models/VpnWorkflowModel.ts +16 -1
package/.env
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
# DB_NAME=CAA
|
|
6
|
-
|
|
7
|
-
DB_HOST=164.52.222.169
|
|
8
|
-
DB_PORT=5432
|
|
9
|
-
DB_USER=postgres_admin_user
|
|
10
|
-
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
1
|
+
DB_HOST=localhost
|
|
2
|
+
DB_PORT=5433
|
|
3
|
+
DB_USER=postgres
|
|
4
|
+
DB_PASS=123
|
|
11
5
|
DB_NAME=CAA
|
|
@@ -18,8 +18,9 @@ export declare class VpnRequestChat extends BaseModel {
|
|
|
18
18
|
request_id: number;
|
|
19
19
|
user_id: number;
|
|
20
20
|
message: string;
|
|
21
|
+
approver_role_id: number | null;
|
|
21
22
|
messageType: VpnMessageType;
|
|
22
23
|
is_internal: boolean;
|
|
23
24
|
status: VpnChatStatus;
|
|
24
|
-
constructor(request_id: number, user_id: number, message: string, messageType?: VpnMessageType, is_internal?: boolean, status?: VpnChatStatus);
|
|
25
|
+
constructor(request_id: number, user_id: number, message: string, messageType?: VpnMessageType, is_internal?: boolean, status?: VpnChatStatus, approver_role_id?: number);
|
|
25
26
|
}
|
|
@@ -30,7 +30,7 @@ var VpnChatStatus;
|
|
|
30
30
|
VpnChatStatus["APPROVED"] = "Approved";
|
|
31
31
|
})(VpnChatStatus || (exports.VpnChatStatus = VpnChatStatus = {}));
|
|
32
32
|
let VpnRequestChat = class VpnRequestChat extends BaseModel_1.BaseModel {
|
|
33
|
-
constructor(request_id, user_id, message, messageType, is_internal, status) {
|
|
33
|
+
constructor(request_id, user_id, message, messageType, is_internal, status, approver_role_id) {
|
|
34
34
|
super();
|
|
35
35
|
this.request_id = request_id;
|
|
36
36
|
this.user_id = user_id;
|
|
@@ -38,6 +38,7 @@ let VpnRequestChat = class VpnRequestChat extends BaseModel_1.BaseModel {
|
|
|
38
38
|
this.messageType = messageType || VpnMessageType.TEXT;
|
|
39
39
|
this.is_internal = is_internal || false;
|
|
40
40
|
this.status = status || VpnChatStatus.PENDING;
|
|
41
|
+
this.approver_role_id = approver_role_id || null;
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
exports.VpnRequestChat = VpnRequestChat;
|
|
@@ -53,6 +54,10 @@ __decorate([
|
|
|
53
54
|
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
54
55
|
__metadata("design:type", String)
|
|
55
56
|
], VpnRequestChat.prototype, "message", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], VpnRequestChat.prototype, "approver_role_id", void 0);
|
|
56
61
|
__decorate([
|
|
57
62
|
(0, typeorm_1.Column)({
|
|
58
63
|
type: "enum",
|
|
@@ -77,5 +82,5 @@ __decorate([
|
|
|
77
82
|
], VpnRequestChat.prototype, "status", void 0);
|
|
78
83
|
exports.VpnRequestChat = VpnRequestChat = __decorate([
|
|
79
84
|
(0, typeorm_1.Entity)({ name: "vpn_request_chat" }),
|
|
80
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Boolean, String])
|
|
85
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Boolean, String, Number])
|
|
81
86
|
], VpnRequestChat);
|
|
@@ -8,6 +8,9 @@ export declare class VpnWorkFlow extends BaseModel {
|
|
|
8
8
|
request_id: number;
|
|
9
9
|
order: number | null;
|
|
10
10
|
content: string;
|
|
11
|
+
approver_role_id: number | null;
|
|
12
|
+
approver_user_id: number | null;
|
|
13
|
+
Approved_by: number | null;
|
|
11
14
|
status: VpnWorkFlowStatus;
|
|
12
|
-
constructor(request_id: number, content: string, status: VpnWorkFlowStatus, order?: number);
|
|
15
|
+
constructor(request_id: number, content: string, status: VpnWorkFlowStatus, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, Approved_by?: number | null);
|
|
13
16
|
}
|
|
@@ -19,12 +19,15 @@ var VpnWorkFlowStatus;
|
|
|
19
19
|
VpnWorkFlowStatus["PENDING"] = "Pending";
|
|
20
20
|
})(VpnWorkFlowStatus || (exports.VpnWorkFlowStatus = VpnWorkFlowStatus = {}));
|
|
21
21
|
let VpnWorkFlow = class VpnWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(request_id, content, status, order) {
|
|
22
|
+
constructor(request_id, content, status, order, approver_role_id, approver_user_id, Approved_by) {
|
|
23
23
|
super();
|
|
24
24
|
this.request_id = request_id;
|
|
25
25
|
this.content = content;
|
|
26
26
|
this.status = status;
|
|
27
27
|
this.order = order || null;
|
|
28
|
+
this.approver_role_id = approver_role_id || null;
|
|
29
|
+
this.approver_user_id = approver_user_id || null;
|
|
30
|
+
this.Approved_by = Approved_by || null;
|
|
28
31
|
}
|
|
29
32
|
};
|
|
30
33
|
exports.VpnWorkFlow = VpnWorkFlow;
|
|
@@ -40,6 +43,18 @@ __decorate([
|
|
|
40
43
|
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
41
44
|
__metadata("design:type", String)
|
|
42
45
|
], VpnWorkFlow.prototype, "content", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], VpnWorkFlow.prototype, "approver_role_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], VpnWorkFlow.prototype, "approver_user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], VpnWorkFlow.prototype, "Approved_by", void 0);
|
|
43
58
|
__decorate([
|
|
44
59
|
(0, typeorm_1.Column)({
|
|
45
60
|
type: "enum",
|
|
@@ -51,5 +66,5 @@ __decorate([
|
|
|
51
66
|
], VpnWorkFlow.prototype, "status", void 0);
|
|
52
67
|
exports.VpnWorkFlow = VpnWorkFlow = __decorate([
|
|
53
68
|
(0, typeorm_1.Entity)({ name: "vpn_work_flows" }),
|
|
54
|
-
__metadata("design:paramtypes", [Number, String, String, Number])
|
|
69
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Object, Object, Object])
|
|
55
70
|
], VpnWorkFlow);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Workflows extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
request_for: string;
|
|
7
|
+
levels: number;
|
|
8
|
+
constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -29,6 +29,9 @@ export class VpnRequestChat extends BaseModel {
|
|
|
29
29
|
@Column({ type: "text", nullable: false })
|
|
30
30
|
message: string;
|
|
31
31
|
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
approver_role_id: number | null;
|
|
34
|
+
|
|
32
35
|
@Column({
|
|
33
36
|
type: "enum",
|
|
34
37
|
enum: VpnMessageType,
|
|
@@ -54,7 +57,8 @@ export class VpnRequestChat extends BaseModel {
|
|
|
54
57
|
message: string,
|
|
55
58
|
messageType?: VpnMessageType,
|
|
56
59
|
is_internal?: boolean,
|
|
57
|
-
status?: VpnChatStatus
|
|
60
|
+
status?: VpnChatStatus,
|
|
61
|
+
approver_role_id?: number
|
|
58
62
|
) {
|
|
59
63
|
super();
|
|
60
64
|
this.request_id = request_id;
|
|
@@ -63,6 +67,7 @@ export class VpnRequestChat extends BaseModel {
|
|
|
63
67
|
this.messageType = messageType || VpnMessageType.TEXT;
|
|
64
68
|
this.is_internal = is_internal || false;
|
|
65
69
|
this.status = status || VpnChatStatus.PENDING;
|
|
70
|
+
this.approver_role_id = approver_role_id || null;
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
|
|
@@ -18,6 +18,15 @@ export class VpnWorkFlow extends BaseModel {
|
|
|
18
18
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
19
19
|
content: string;
|
|
20
20
|
|
|
21
|
+
@Column({ type: "integer", nullable: true })
|
|
22
|
+
approver_role_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "integer", nullable: true })
|
|
25
|
+
approver_user_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
Approved_by: number | null;
|
|
29
|
+
|
|
21
30
|
@Column({
|
|
22
31
|
type: "enum",
|
|
23
32
|
enum: VpnWorkFlowStatus,
|
|
@@ -30,13 +39,19 @@ export class VpnWorkFlow extends BaseModel {
|
|
|
30
39
|
request_id: number,
|
|
31
40
|
content: string,
|
|
32
41
|
status: VpnWorkFlowStatus,
|
|
33
|
-
order?: number
|
|
42
|
+
order?: number,
|
|
43
|
+
approver_role_id?: number | null,
|
|
44
|
+
approver_user_id?: number | null,
|
|
45
|
+
Approved_by?: number | null
|
|
34
46
|
) {
|
|
35
47
|
super();
|
|
36
48
|
this.request_id = request_id;
|
|
37
49
|
this.content = content;
|
|
38
50
|
this.status = status;
|
|
39
51
|
this.order = order || null;
|
|
52
|
+
this.approver_role_id = approver_role_id || null;
|
|
53
|
+
this.approver_user_id = approver_user_id || null;
|
|
54
|
+
this.Approved_by = Approved_by || null;
|
|
40
55
|
}
|
|
41
56
|
}
|
|
42
57
|
|