@platform-modules/civil-aviation-authority 2.2.311 → 2.2.312
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 +2 -9
- package/dist/data-source.js +1 -9
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/models/HrServiceApprovalModel.js +1 -1
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +1 -1
- package/src/data-source.ts +1 -9
- package/src/index.ts +0 -4
- package/src/models/HrServiceApprovalModel.ts +1 -1
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/dist/models/TrainingApprovalModel.d.ts +0 -25
- package/dist/models/TrainingApprovalModel.js +0 -107
- package/dist/models/TrainingAttachmentModel.d.ts +0 -13
- package/dist/models/TrainingAttachmentModel.js +0 -69
- package/dist/models/TrainingChatModel.d.ts +0 -28
- package/dist/models/TrainingChatModel.js +0 -96
- package/dist/models/TrainingWorkflowModel.d.ts +0 -19
- package/dist/models/TrainingWorkflowModel.js +0 -81
- package/src/models/TrainingApprovalModel.ts +0 -94
- package/src/models/TrainingAttachmentModel.ts +0 -56
- package/src/models/TrainingChatModel.ts +0 -83
- package/src/models/TrainingWorkflowModel.ts +0 -68
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "training_request_attachments" })
|
|
5
|
-
export class TrainingRequestAttachment extends BaseModel {
|
|
6
|
-
@Column({ type: "integer", nullable: false })
|
|
7
|
-
request_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "integer", nullable: true })
|
|
10
|
-
service_id: number | null;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "integer", nullable: true })
|
|
13
|
-
sub_service_id: number | null;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "integer", nullable: false })
|
|
16
|
-
uploaded_by: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "varchar", length: 500, nullable: false })
|
|
19
|
-
file_url: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
22
|
-
file_name: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
25
|
-
file_type: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: "bigint", nullable: true })
|
|
28
|
-
file_size: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: "text", nullable: true })
|
|
31
|
-
description: string;
|
|
32
|
-
|
|
33
|
-
constructor(
|
|
34
|
-
request_id: number,
|
|
35
|
-
uploaded_by: number,
|
|
36
|
-
file_url: string,
|
|
37
|
-
service_id?: number | null,
|
|
38
|
-
sub_service_id?: number | null,
|
|
39
|
-
file_name?: string,
|
|
40
|
-
file_type?: string,
|
|
41
|
-
file_size?: number,
|
|
42
|
-
description?: string
|
|
43
|
-
) {
|
|
44
|
-
super();
|
|
45
|
-
this.request_id = request_id;
|
|
46
|
-
this.service_id = service_id || null;
|
|
47
|
-
this.sub_service_id = sub_service_id || null;
|
|
48
|
-
this.uploaded_by = uploaded_by;
|
|
49
|
-
this.file_url = file_url;
|
|
50
|
-
this.file_name = file_name || "";
|
|
51
|
-
this.file_type = file_type || "";
|
|
52
|
-
this.file_size = file_size || null;
|
|
53
|
-
this.description = description || "";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum TrainingMessageType {
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
IMAGE = "image",
|
|
7
|
-
VIDEO = "video",
|
|
8
|
-
FILE = "file",
|
|
9
|
-
LINK = "link"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum TrainingChatStatus {
|
|
13
|
-
SUBMITTED = "Submitted",
|
|
14
|
-
COMPLETED = "Completed",
|
|
15
|
-
PENDING = "Pending",
|
|
16
|
-
REJECTED = "Rejected",
|
|
17
|
-
ASSIGNED = "Assigned",
|
|
18
|
-
APPROVED = "Approved"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@Entity({ name: "training_request_chat" })
|
|
22
|
-
export class TrainingRequestChat extends BaseModel {
|
|
23
|
-
@Column({ type: "integer", nullable: false })
|
|
24
|
-
request_id: number;
|
|
25
|
-
|
|
26
|
-
@Column({ type: "integer", nullable: true })
|
|
27
|
-
service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: "integer", nullable: true })
|
|
30
|
-
sub_service_id: number | null;
|
|
31
|
-
|
|
32
|
-
@Column({ type: "integer", nullable: false })
|
|
33
|
-
user_id: number;
|
|
34
|
-
|
|
35
|
-
@Column({ type: "text", nullable: false })
|
|
36
|
-
message: string;
|
|
37
|
-
|
|
38
|
-
@Column({ type: "integer", nullable: true })
|
|
39
|
-
approver_role_id: number | null;
|
|
40
|
-
|
|
41
|
-
@Column({
|
|
42
|
-
type: "enum",
|
|
43
|
-
enum: TrainingMessageType,
|
|
44
|
-
default: TrainingMessageType.TEXT,
|
|
45
|
-
nullable: false
|
|
46
|
-
})
|
|
47
|
-
messageType: TrainingMessageType;
|
|
48
|
-
|
|
49
|
-
@Column({ type: "boolean", default: false })
|
|
50
|
-
is_internal: boolean;
|
|
51
|
-
|
|
52
|
-
@Column({
|
|
53
|
-
type: "enum",
|
|
54
|
-
enum: TrainingChatStatus,
|
|
55
|
-
default: TrainingChatStatus.PENDING,
|
|
56
|
-
nullable: false
|
|
57
|
-
})
|
|
58
|
-
status: TrainingChatStatus;
|
|
59
|
-
|
|
60
|
-
constructor(
|
|
61
|
-
request_id: number,
|
|
62
|
-
user_id: number,
|
|
63
|
-
message: string,
|
|
64
|
-
service_id?: number | null,
|
|
65
|
-
sub_service_id?: number | null,
|
|
66
|
-
messageType?: TrainingMessageType,
|
|
67
|
-
is_internal?: boolean,
|
|
68
|
-
status?: TrainingChatStatus,
|
|
69
|
-
approver_role_id?: number
|
|
70
|
-
) {
|
|
71
|
-
super();
|
|
72
|
-
this.request_id = request_id;
|
|
73
|
-
this.service_id = service_id || null;
|
|
74
|
-
this.sub_service_id = sub_service_id || null;
|
|
75
|
-
this.user_id = user_id;
|
|
76
|
-
this.message = message;
|
|
77
|
-
this.messageType = messageType || TrainingMessageType.TEXT;
|
|
78
|
-
this.is_internal = is_internal || false;
|
|
79
|
-
this.status = status || TrainingChatStatus.PENDING;
|
|
80
|
-
this.approver_role_id = approver_role_id || null;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum TrainingWorkFlowStatus {
|
|
5
|
-
COMPLETED = "Completed",
|
|
6
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
-
PENDING = "Pending",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: "training_workflows" })
|
|
12
|
-
export class TrainingWorkFlow extends BaseModel {
|
|
13
|
-
@Column({ type: "int", nullable: false })
|
|
14
|
-
request_id: number;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "integer", nullable: true })
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: "integer", nullable: true })
|
|
20
|
-
sub_service_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "int", nullable: true })
|
|
23
|
-
order: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
26
|
-
content: string;
|
|
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
|
-
|
|
34
|
-
@Column({ type: "integer", nullable: true })
|
|
35
|
-
approved_by: number | null;
|
|
36
|
-
|
|
37
|
-
@Column({
|
|
38
|
-
type: "enum",
|
|
39
|
-
enum: TrainingWorkFlowStatus,
|
|
40
|
-
default: TrainingWorkFlowStatus.PENDING,
|
|
41
|
-
nullable: false
|
|
42
|
-
})
|
|
43
|
-
status: TrainingWorkFlowStatus;
|
|
44
|
-
|
|
45
|
-
constructor(
|
|
46
|
-
request_id: number,
|
|
47
|
-
content: string,
|
|
48
|
-
status: TrainingWorkFlowStatus,
|
|
49
|
-
service_id?: number | null,
|
|
50
|
-
sub_service_id?: number | null,
|
|
51
|
-
order?: number,
|
|
52
|
-
approver_role_id?: number | null,
|
|
53
|
-
approver_user_id?: number | null,
|
|
54
|
-
approved_by?: number | null
|
|
55
|
-
) {
|
|
56
|
-
super();
|
|
57
|
-
this.request_id = request_id;
|
|
58
|
-
this.service_id = service_id || null;
|
|
59
|
-
this.sub_service_id = sub_service_id || null;
|
|
60
|
-
this.content = content;
|
|
61
|
-
this.status = status;
|
|
62
|
-
this.order = order || null;
|
|
63
|
-
this.approver_role_id = approver_role_id || null;
|
|
64
|
-
this.approver_user_id = approver_user_id || null;
|
|
65
|
-
this.approved_by = approved_by || null;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|