@platform-modules/civil-aviation-authority 2.1.3 → 2.1.40
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/package.json +1 -1
- package/src/data-source.ts +1 -11
- package/src/index.ts +0 -5
- package/src/models/ITHelpDeskModel.ts +21 -1
- package/src/models/ITRequestAttachmentModel.ts +11 -1
- package/src/models/ItApprovalsModel.ts +16 -1
- package/src/models/ItWorkflowModel.ts +9 -1
- package/src/models/ServiceTypeModel.ts +21 -1
- package/src/models/VpnApprovalModel.ts +8 -2
- package/src/models/WorkflowTask.ts +16 -1
- package/src/models/user.ts +1 -0
- package/dist/data-source.d.ts +0 -4
- package/dist/data-source.js +0 -116
- package/dist/helpers/utils/enum.d.ts +0 -75
- package/dist/helpers/utils/enum.js +0 -53
- package/dist/index.d.ts +0 -45
- package/dist/index.js +0 -65
- package/dist/models/BaseModel.d.ts +0 -14
- package/dist/models/BaseModel.js +0 -66
- package/dist/models/CAAServices.d.ts +0 -8
- package/dist/models/CAAServices.js +0 -44
- package/dist/models/CAASubServices.d.ts +0 -11
- package/dist/models/CAASubServices.js +0 -55
- package/dist/models/DelegateSettingsModel.d.ts +0 -9
- package/dist/models/DelegateSettingsModel.js +0 -50
- package/dist/models/DepartmentsModel.d.ts +0 -7
- package/dist/models/DepartmentsModel.js +0 -39
- package/dist/models/DirectorateModel.d.ts +0 -7
- package/dist/models/DirectorateModel.js +0 -39
- package/dist/models/HotelApprovalModel.d.ts +0 -22
- package/dist/models/HotelApprovalModel.js +0 -91
- package/dist/models/HotelAttachedModel.d.ts +0 -14
- package/dist/models/HotelAttachedModel.js +0 -74
- package/dist/models/HotelChatModel.d.ts +0 -17
- package/dist/models/HotelChatModel.js +0 -67
- package/dist/models/HotelWorkFlowModel.d.ts +0 -14
- package/dist/models/HotelWorkFlowModel.js +0 -56
- package/dist/models/HotelreservationModal.d.ts +0 -30
- package/dist/models/HotelreservationModal.js +0 -119
- package/dist/models/HotelreservationModel.d.ts +0 -45
- package/dist/models/HotelreservationModel.js +0 -177
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITHelpDeskModel.d.ts +0 -29
- package/dist/models/ITHelpDeskModel.js +0 -116
- package/dist/models/ITRequestAttachmentModel.d.ts +0 -15
- package/dist/models/ITRequestAttachmentModel.js +0 -71
- package/dist/models/ITRequestChatModel.d.ts +0 -12
- package/dist/models/ITRequestChatModel.js +0 -56
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/ItApprovalsModel.d.ts +0 -18
- package/dist/models/ItApprovalsModel.js +0 -75
- package/dist/models/ItWorkflowModel.d.ts +0 -13
- package/dist/models/ItWorkflowModel.js +0 -51
- package/dist/models/LogisticsApprovalModel.d.ts +0 -22
- package/dist/models/LogisticsApprovalModel.js +0 -91
- package/dist/models/LogisticsAttachmentModel.d.ts +0 -12
- package/dist/models/LogisticsAttachmentModel.js +0 -64
- package/dist/models/LogisticsChatModel.d.ts +0 -17
- package/dist/models/LogisticsChatModel.js +0 -67
- package/dist/models/LogisticsForeignVehicleModel.d.ts +0 -42
- package/dist/models/LogisticsForeignVehicleModel.js +0 -153
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +0 -6
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +0 -34
- package/dist/models/LogisticsModel.d.ts +0 -57
- package/dist/models/LogisticsModel.js +0 -195
- package/dist/models/LogisticsWorkflowModel.d.ts +0 -14
- package/dist/models/LogisticsWorkflowModel.js +0 -56
- package/dist/models/NotificationModel.d.ts +0 -23
- package/dist/models/NotificationModel.js +0 -92
- package/dist/models/PortalFeedbackModel.d.ts +0 -8
- package/dist/models/PortalFeedbackModel.js +0 -44
- package/dist/models/PositionModel.d.ts +0 -6
- package/dist/models/PositionModel.js +0 -34
- package/dist/models/SectionModel.d.ts +0 -8
- package/dist/models/SectionModel.js +0 -44
- package/dist/models/ServiceTypeModel.d.ts +0 -14
- package/dist/models/ServiceTypeModel.js +0 -66
- package/dist/models/VpnApprovalModel.d.ts +0 -19
- package/dist/models/VpnApprovalModel.js +0 -81
- package/dist/models/VpnRequestAttachmentModel.d.ts +0 -11
- package/dist/models/VpnRequestAttachmentModel.js +0 -59
- package/dist/models/VpnRequestChatModel.d.ts +0 -16
- package/dist/models/VpnRequestChatModel.js +0 -62
- package/dist/models/VpnRequestModel.d.ts +0 -70
- package/dist/models/VpnRequestModel.js +0 -175
- package/dist/models/VpnWorkflowModel.d.ts +0 -13
- package/dist/models/VpnWorkflowModel.js +0 -55
- package/dist/models/WorkflowDefinitions.d.ts +0 -16
- package/dist/models/WorkflowDefinitions.js +0 -86
- package/dist/models/WorkflowHierarchy.d.ts +0 -17
- package/dist/models/WorkflowHierarchy.js +0 -86
- package/dist/models/WorkflowTask.d.ts +0 -10
- package/dist/models/WorkflowTask.js +0 -63
- package/dist/models/WorkflowTaskNames.d.ts +0 -17
- package/dist/models/WorkflowTaskNames.js +0 -63
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
- package/dist/models/contactInfoModel.d.ts +0 -18
- package/dist/models/contactInfoModel.js +0 -80
- package/dist/models/feedbackModel.d.ts +0 -16
- package/dist/models/feedbackModel.js +0 -61
- package/dist/models/importantLinksModel.d.ts +0 -6
- package/dist/models/importantLinksModel.js +0 -34
- package/dist/models/role.d.ts +0 -16
- package/dist/models/role.js +0 -44
- package/dist/models/roleRightsModel.d.ts +0 -16
- package/dist/models/roleRightsModel.js +0 -44
- package/dist/models/serviceBookmarksModel.d.ts +0 -6
- package/dist/models/serviceBookmarksModel.js +0 -34
- package/dist/models/user-sessions.d.ts +0 -18
- package/dist/models/user-sessions.js +0 -54
- package/dist/models/user.d.ts +0 -47
- package/dist/models/user.js +0 -238
- package/dist/models/userRolesModel.d.ts +0 -19
- package/dist/models/userRolesModel.js +0 -59
- package/dist/scripts.d.ts +0 -1
- package/dist/scripts.js +0 -11
- package/src/models/HotelApprovalModel.ts +0 -79
- package/src/models/HotelAttachedModel.ts +0 -64
- package/src/models/HotelChatModel.ts +0 -55
- package/src/models/HotelWorkFlowModel.ts +0 -42
- package/src/models/HotelreservationModel.ts +0 -166
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -47,11 +47,6 @@ import { VpnWorkFlow } from './models/VpnWorkflowModel';
|
|
|
47
47
|
import { VpnRequestAttachment } from './models/VpnRequestAttachmentModel';
|
|
48
48
|
import { VpnRequestChat } from './models/VpnRequestChatModel';
|
|
49
49
|
|
|
50
|
-
import { HotelReservation } from './models/HotelreservationModel'
|
|
51
|
-
import { HotelApprovalDetails } from './models/HotelApprovalModel';
|
|
52
|
-
import { HotelWorkFlow } from './models/HotelWorkFlowModel';
|
|
53
|
-
import { HotelRequestChat } from './models/HotelChatModel';
|
|
54
|
-
import { HotelRequestAttachment } from './models/HotelAttachedModel';
|
|
55
50
|
|
|
56
51
|
export const AppDataSource = new DataSource({
|
|
57
52
|
type: 'postgres',
|
|
@@ -105,11 +100,6 @@ export const AppDataSource = new DataSource({
|
|
|
105
100
|
VpnApprovalDetails,
|
|
106
101
|
VpnWorkFlow,
|
|
107
102
|
VpnRequestAttachment,
|
|
108
|
-
VpnRequestChat
|
|
109
|
-
HotelReservation,
|
|
110
|
-
HotelApprovalDetails,
|
|
111
|
-
HotelWorkFlow,
|
|
112
|
-
HotelRequestChat,
|
|
113
|
-
HotelRequestAttachment
|
|
103
|
+
VpnRequestChat
|
|
114
104
|
],
|
|
115
105
|
});
|
package/src/index.ts
CHANGED
|
@@ -42,8 +42,3 @@ export * from './models/VpnApprovalModel';
|
|
|
42
42
|
export * from './models/VpnWorkflowModel';
|
|
43
43
|
export * from './models/VpnRequestChatModel';
|
|
44
44
|
export * from './models/VpnRequestAttachmentModel';
|
|
45
|
-
export * from './models/HotelreservationModel';
|
|
46
|
-
export * from './models/HotelApprovalModel';
|
|
47
|
-
export * from './models/HotelWorkFlowModel';
|
|
48
|
-
export * from './models/HotelChatModel';
|
|
49
|
-
export * from './models/HotelAttachedModel';
|
|
@@ -50,6 +50,18 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
50
50
|
@Column({ nullable: false })
|
|
51
51
|
contact_num: string;
|
|
52
52
|
|
|
53
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
|
+
email: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'varchar', length: 30, nullable: true })
|
|
57
|
+
request_type: string;
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
60
|
+
person_name: string | null;
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
63
|
+
person_contact_number: string | null;
|
|
64
|
+
|
|
53
65
|
@Column({ type: "date", nullable: false })
|
|
54
66
|
request_date: Date;
|
|
55
67
|
|
|
@@ -81,7 +93,11 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
81
93
|
workflow_execution_id?: string,
|
|
82
94
|
req_user_department_id?: number | null,
|
|
83
95
|
req_user_section_id?: number | null,
|
|
84
|
-
service_type_id?: number | null
|
|
96
|
+
service_type_id?: number | null,
|
|
97
|
+
person_name?: string | null,
|
|
98
|
+
person_contact_number?: string | null,
|
|
99
|
+
email?: string | null,
|
|
100
|
+
request_type?: string
|
|
85
101
|
) {
|
|
86
102
|
super();
|
|
87
103
|
this.service_id = service_id;
|
|
@@ -91,6 +107,10 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
91
107
|
this.description = description;
|
|
92
108
|
this.extn_num = extn_num;
|
|
93
109
|
this.contact_num = contact_num;
|
|
110
|
+
this.email = email || null;
|
|
111
|
+
this.request_type = request_type || 'internal';
|
|
112
|
+
this.person_name = person_name || null;
|
|
113
|
+
this.person_contact_number = person_contact_number || null;
|
|
94
114
|
this.request_date = request_date;
|
|
95
115
|
this.status = status;
|
|
96
116
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
@@ -13,6 +13,12 @@ export class ITRequestAttachment extends BaseModel {
|
|
|
13
13
|
@JoinColumn({ name: 'request_id' })
|
|
14
14
|
request: ITHelpDeskRequests;
|
|
15
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
|
+
|
|
16
22
|
@Column({ type: 'integer', nullable: false })
|
|
17
23
|
uploaded_by: number;
|
|
18
24
|
|
|
@@ -42,7 +48,9 @@ export class ITRequestAttachment extends BaseModel {
|
|
|
42
48
|
file_name?: string,
|
|
43
49
|
file_type?: string,
|
|
44
50
|
file_size?: number,
|
|
45
|
-
description?: string
|
|
51
|
+
description?: string,
|
|
52
|
+
service_id?: number | null,
|
|
53
|
+
sub_service_id?: number | null
|
|
46
54
|
) {
|
|
47
55
|
super();
|
|
48
56
|
this.request_id = request_id;
|
|
@@ -52,6 +60,8 @@ export class ITRequestAttachment extends BaseModel {
|
|
|
52
60
|
this.file_type = file_type || '';
|
|
53
61
|
this.file_size = file_size || null;
|
|
54
62
|
this.description = description || '';
|
|
63
|
+
this.service_id = service_id ?? null;
|
|
64
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
67
|
|
|
@@ -13,12 +13,21 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
13
13
|
@Column({ type: 'integer', nullable: false })
|
|
14
14
|
request_id: number;
|
|
15
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
|
+
|
|
16
22
|
@Column({ type: 'integer', nullable: false })
|
|
17
23
|
level: number;
|
|
18
24
|
|
|
19
25
|
@Column({ type: 'integer', nullable: true })
|
|
20
26
|
approver_user_id: number | null;
|
|
21
27
|
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
delegation_user_id: number | null;
|
|
30
|
+
|
|
22
31
|
@Column({ type: 'integer', nullable: false })
|
|
23
32
|
approver_role_id: number | null;
|
|
24
33
|
|
|
@@ -46,7 +55,10 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
46
55
|
level: number,
|
|
47
56
|
department_id?: number | null,
|
|
48
57
|
section_id?: number | null,
|
|
49
|
-
approved_by?: number | null
|
|
58
|
+
approved_by?: number | null,
|
|
59
|
+
service_id?: number | null,
|
|
60
|
+
sub_service_id?: number | null,
|
|
61
|
+
delegation_user_id?: number | null
|
|
50
62
|
) {
|
|
51
63
|
super();
|
|
52
64
|
this.request_id = request_id;
|
|
@@ -58,5 +70,8 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
58
70
|
this.department_id = department_id || null;
|
|
59
71
|
this.section_id = section_id || null;
|
|
60
72
|
this.approved_by = approved_by || null;
|
|
73
|
+
this.service_id = service_id ?? null;
|
|
74
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
75
|
+
this.delegation_user_id = delegation_user_id || null;
|
|
61
76
|
}
|
|
62
77
|
}
|
|
@@ -13,6 +13,12 @@ export class ItWorkFlow extends BaseModel {
|
|
|
13
13
|
@Column({ type: 'int', nullable: false })
|
|
14
14
|
request_id: number;
|
|
15
15
|
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
16
22
|
@Column({ type: 'int', nullable: true })
|
|
17
23
|
order: number | null;
|
|
18
24
|
|
|
@@ -22,11 +28,13 @@ export class ItWorkFlow extends BaseModel {
|
|
|
22
28
|
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
23
29
|
status: workFlowStatus;
|
|
24
30
|
|
|
25
|
-
constructor(request_id: number, content: string, status: workFlowStatus, order?: number) {
|
|
31
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null) {
|
|
26
32
|
super();
|
|
27
33
|
this.request_id = request_id;
|
|
28
34
|
this.content = content;
|
|
29
35
|
this.status = status;
|
|
30
36
|
this.order = order || null;
|
|
37
|
+
this.service_id = service_id ?? null;
|
|
38
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
31
39
|
}
|
|
32
40
|
}
|
|
@@ -2,6 +2,8 @@ import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
import { CAAServices } from './CAAServices';
|
|
4
4
|
import { CAASubServices } from './CAASubServices';
|
|
5
|
+
import { Departments } from './DepartmentsModel';
|
|
6
|
+
import { Sections } from './SectionModel';
|
|
5
7
|
|
|
6
8
|
@Entity({ name: 'service_types' })
|
|
7
9
|
export class ServiceType extends BaseModel {
|
|
@@ -26,6 +28,20 @@ export class ServiceType extends BaseModel {
|
|
|
26
28
|
@JoinColumn({ name: 'sub_service_id' })
|
|
27
29
|
sub_service: CAASubServices;
|
|
28
30
|
|
|
31
|
+
@Column({ type: 'bigint', nullable: true })
|
|
32
|
+
department_id: number | null;
|
|
33
|
+
|
|
34
|
+
@ManyToOne(() => Departments)
|
|
35
|
+
@JoinColumn({ name: 'department_id' })
|
|
36
|
+
department: Departments;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'bigint', nullable: true })
|
|
39
|
+
section_id: number | null;
|
|
40
|
+
|
|
41
|
+
@ManyToOne(() => Sections)
|
|
42
|
+
@JoinColumn({ name: 'section_id' })
|
|
43
|
+
section: Sections;
|
|
44
|
+
|
|
29
45
|
@Column({ nullable: true })
|
|
30
46
|
description: string;
|
|
31
47
|
|
|
@@ -38,7 +54,9 @@ export class ServiceType extends BaseModel {
|
|
|
38
54
|
service_id: number,
|
|
39
55
|
sub_service_id: number,
|
|
40
56
|
description?: string,
|
|
41
|
-
is_active?: boolean
|
|
57
|
+
is_active?: boolean,
|
|
58
|
+
department_id?: number | null,
|
|
59
|
+
section_id?: number | null
|
|
42
60
|
) {
|
|
43
61
|
super();
|
|
44
62
|
this.name = name;
|
|
@@ -47,6 +65,8 @@ export class ServiceType extends BaseModel {
|
|
|
47
65
|
this.sub_service_id = sub_service_id;
|
|
48
66
|
this.description = description || '';
|
|
49
67
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
68
|
+
this.department_id = department_id || null;
|
|
69
|
+
this.section_id = section_id || null;
|
|
50
70
|
}
|
|
51
71
|
}
|
|
52
72
|
|
|
@@ -5,7 +5,8 @@ export enum VpnApprovalStatus {
|
|
|
5
5
|
PENDING = "Pending",
|
|
6
6
|
IN_PROGRESS = "In Progress",
|
|
7
7
|
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
ASSIGNED = "Assigned"
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
@Entity({ name: "vpn_approvals" })
|
|
@@ -42,6 +43,9 @@ export class VpnApprovalDetails extends BaseModel {
|
|
|
42
43
|
})
|
|
43
44
|
approval_status: VpnApprovalStatus;
|
|
44
45
|
|
|
46
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
47
|
+
is_manager: boolean;
|
|
48
|
+
|
|
45
49
|
constructor(
|
|
46
50
|
request_id: number,
|
|
47
51
|
approver_user_id: number | null,
|
|
@@ -51,7 +55,8 @@ export class VpnApprovalDetails extends BaseModel {
|
|
|
51
55
|
level: number,
|
|
52
56
|
department_id?: number | null,
|
|
53
57
|
section_id?: number | null,
|
|
54
|
-
approved_by?: number | null
|
|
58
|
+
approved_by?: number | null,
|
|
59
|
+
is_manager?: boolean
|
|
55
60
|
) {
|
|
56
61
|
super();
|
|
57
62
|
this.request_id = request_id;
|
|
@@ -63,6 +68,7 @@ export class VpnApprovalDetails extends BaseModel {
|
|
|
63
68
|
this.department_id = department_id || null;
|
|
64
69
|
this.section_id = section_id || null;
|
|
65
70
|
this.approved_by = approved_by || null;
|
|
71
|
+
this.is_manager = is_manager ?? false;
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -24,6 +24,15 @@ export class WorkflowTask extends BaseModel {
|
|
|
24
24
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
25
25
|
name: string;
|
|
26
26
|
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
service_id?: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'int', nullable: true })
|
|
31
|
+
sub_service_id?: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
34
|
+
service_type?: string | null;
|
|
35
|
+
|
|
27
36
|
@Column({
|
|
28
37
|
type: 'enum',
|
|
29
38
|
enum: TaskType,
|
|
@@ -42,12 +51,18 @@ export class WorkflowTask extends BaseModel {
|
|
|
42
51
|
name: string,
|
|
43
52
|
task_id?: number,
|
|
44
53
|
task_type?: TaskType,
|
|
45
|
-
category?: CategoryType
|
|
54
|
+
category?: CategoryType,
|
|
55
|
+
service_id?: number | null,
|
|
56
|
+
sub_service_id?: number | null,
|
|
57
|
+
service_type?: string | null
|
|
46
58
|
) {
|
|
47
59
|
super();
|
|
48
60
|
this.name = name;
|
|
49
61
|
this.task_id = task_id || 0;
|
|
50
62
|
this.task_type = task_type || TaskType.SIMPLE;
|
|
51
63
|
this.category = category || CategoryType.CREATE;
|
|
64
|
+
this.service_id = service_id ?? null;
|
|
65
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
66
|
+
this.service_type = service_type ?? null;
|
|
52
67
|
}
|
|
53
68
|
}
|
package/src/models/user.ts
CHANGED
package/dist/data-source.d.ts
DELETED
package/dist/data-source.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppDataSource = void 0;
|
|
4
|
-
// src/data-source.ts
|
|
5
|
-
require("reflect-metadata");
|
|
6
|
-
const typeorm_1 = require("typeorm");
|
|
7
|
-
require("dotenv/config");
|
|
8
|
-
const user_1 = require("./models/user"); // import all entities here
|
|
9
|
-
const user_sessions_1 = require("./models/user-sessions");
|
|
10
|
-
const role_1 = require("./models/role");
|
|
11
|
-
const ITHelpDeskModel_1 = require("./models/ITHelpDeskModel");
|
|
12
|
-
// import { ITServicesTypesSalalah } from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
13
|
-
// import { ITServicesTypesMuscat } from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
14
|
-
const ServiceTypeModel_1 = require("./models/ServiceTypeModel");
|
|
15
|
-
const CAAServices_1 = require("./models/CAAServices");
|
|
16
|
-
const CAASubServices_1 = require("./models/CAASubServices");
|
|
17
|
-
// import { ITApprovalSettings } from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
18
|
-
// import { Workflows } from './models/Workflows';
|
|
19
|
-
const ItApprovalsModel_1 = require("./models/ItApprovalsModel");
|
|
20
|
-
const ItWorkflowModel_1 = require("./models/ItWorkflowModel");
|
|
21
|
-
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
22
|
-
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
23
|
-
const DepartmentsModel_1 = require("./models/DepartmentsModel");
|
|
24
|
-
const SectionModel_1 = require("./models/SectionModel");
|
|
25
|
-
const WorkflowHierarchy_1 = require("./models/WorkflowHierarchy");
|
|
26
|
-
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
27
|
-
const DirectorateModel_1 = require("./models/DirectorateModel");
|
|
28
|
-
const PositionModel_1 = require("./models/PositionModel");
|
|
29
|
-
const serviceBookmarksModel_1 = require("./models/serviceBookmarksModel");
|
|
30
|
-
const contactInfoModel_1 = require("./models/contactInfoModel");
|
|
31
|
-
const userRolesModel_1 = require("./models/userRolesModel");
|
|
32
|
-
const roleRightsModel_1 = require("./models/roleRightsModel");
|
|
33
|
-
const NotificationModel_1 = require("./models/NotificationModel");
|
|
34
|
-
const ITRequestChatModel_1 = require("./models/ITRequestChatModel");
|
|
35
|
-
const ITRequestAttachmentModel_1 = require("./models/ITRequestAttachmentModel");
|
|
36
|
-
const LogisticsModel_1 = require("./models/LogisticsModel");
|
|
37
|
-
const LogisticsForeignVehicleModel_1 = require("./models/LogisticsForeignVehicleModel");
|
|
38
|
-
const LogisticsForeignVehiclePassengerModel_1 = require("./models/LogisticsForeignVehiclePassengerModel");
|
|
39
|
-
const LogisticsApprovalModel_1 = require("./models/LogisticsApprovalModel");
|
|
40
|
-
const LogisticsChatModel_1 = require("./models/LogisticsChatModel");
|
|
41
|
-
const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
|
|
42
|
-
const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
|
|
43
|
-
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
44
|
-
const DelegateSettingsModel_1 = require("./models/DelegateSettingsModel");
|
|
45
|
-
const feedbackModel_1 = require("./models/feedbackModel");
|
|
46
|
-
const PortalFeedbackModel_1 = require("./models/PortalFeedbackModel");
|
|
47
|
-
const VpnRequestModel_1 = require("./models/VpnRequestModel");
|
|
48
|
-
const VpnApprovalModel_1 = require("./models/VpnApprovalModel");
|
|
49
|
-
const VpnWorkflowModel_1 = require("./models/VpnWorkflowModel");
|
|
50
|
-
const VpnRequestAttachmentModel_1 = require("./models/VpnRequestAttachmentModel");
|
|
51
|
-
const VpnRequestChatModel_1 = require("./models/VpnRequestChatModel");
|
|
52
|
-
const HotelreservationModel_1 = require("./models/HotelreservationModel");
|
|
53
|
-
const HotelApprovalModel_1 = require("./models/HotelApprovalModel");
|
|
54
|
-
const HotelWorkFlowModel_1 = require("./models/HotelWorkFlowModel");
|
|
55
|
-
const HotelChatModel_1 = require("./models/HotelChatModel");
|
|
56
|
-
const HotelAttachedModel_1 = require("./models/HotelAttachedModel");
|
|
57
|
-
exports.AppDataSource = new typeorm_1.DataSource({
|
|
58
|
-
type: 'postgres',
|
|
59
|
-
host: process.env.DB_HOST || 'localhost',
|
|
60
|
-
port: +(process.env.DB_PORT || 5432),
|
|
61
|
-
username: process.env.DB_USER || 'postgres',
|
|
62
|
-
password: process.env.DB_PASS || 'postgres',
|
|
63
|
-
database: process.env.DB_NAME || 'common_models',
|
|
64
|
-
synchronize: true, // auto-create tables (disable in prod)
|
|
65
|
-
logging: false,
|
|
66
|
-
entities: [
|
|
67
|
-
user_1.User, user_sessions_1.userSessions,
|
|
68
|
-
role_1.Role,
|
|
69
|
-
ITHelpDeskModel_1.ITHelpDeskRequests,
|
|
70
|
-
// ITServicesTypesSalalah, // REMOVED - table no longer used
|
|
71
|
-
// ITServicesTypesMuscat, // REMOVED - table no longer used
|
|
72
|
-
ServiceTypeModel_1.ServiceType,
|
|
73
|
-
CAAServices_1.CAAServices,
|
|
74
|
-
CAASubServices_1.CAASubServices,
|
|
75
|
-
// ITApprovalSettings, // REMOVED - table no longer used
|
|
76
|
-
// Workflows,
|
|
77
|
-
ItApprovalsModel_1.ItApprovalDetails,
|
|
78
|
-
ItWorkflowModel_1.ItWorkFlow,
|
|
79
|
-
WorkflowDefinitions_1.WorkflowDefinitions,
|
|
80
|
-
WorkflowTask_1.WorkflowTask,
|
|
81
|
-
DepartmentsModel_1.Departments,
|
|
82
|
-
SectionModel_1.Sections,
|
|
83
|
-
WorkflowHierarchy_1.WorkflowHierarchy,
|
|
84
|
-
WorkflowTaskNames_1.WorkflowTaskNames,
|
|
85
|
-
DirectorateModel_1.Directorate,
|
|
86
|
-
PositionModel_1.Position,
|
|
87
|
-
serviceBookmarksModel_1.ServiceBookmarks,
|
|
88
|
-
contactInfoModel_1.ContactInfo,
|
|
89
|
-
userRolesModel_1.UserRole,
|
|
90
|
-
roleRightsModel_1.RoleRights,
|
|
91
|
-
NotificationModel_1.Notification,
|
|
92
|
-
ITRequestChatModel_1.ITRequestChat,
|
|
93
|
-
ITRequestAttachmentModel_1.ITRequestAttachment,
|
|
94
|
-
LogisticsModel_1.LogisticsRequests,
|
|
95
|
-
LogisticsForeignVehicleModel_1.LogisticsForeignVehicleRequests,
|
|
96
|
-
LogisticsForeignVehiclePassengerModel_1.LogisticsForeignVehiclePassengers,
|
|
97
|
-
LogisticsApprovalModel_1.LogisticsApprovalDetails,
|
|
98
|
-
LogisticsChatModel_1.LogisticsRequestChat,
|
|
99
|
-
LogisticsAttachmentModel_1.LogisticsRequestAttachment,
|
|
100
|
-
LogisticsWorkflowModel_1.LogisticsWorkFlow,
|
|
101
|
-
importantLinksModel_1.ImportantLinks,
|
|
102
|
-
DelegateSettingsModel_1.DelegateSettings,
|
|
103
|
-
feedbackModel_1.Feedback,
|
|
104
|
-
PortalFeedbackModel_1.PortalFeedback,
|
|
105
|
-
VpnRequestModel_1.VpnRequest,
|
|
106
|
-
VpnApprovalModel_1.VpnApprovalDetails,
|
|
107
|
-
VpnWorkflowModel_1.VpnWorkFlow,
|
|
108
|
-
VpnRequestAttachmentModel_1.VpnRequestAttachment,
|
|
109
|
-
VpnRequestChatModel_1.VpnRequestChat,
|
|
110
|
-
HotelreservationModel_1.HotelReservation,
|
|
111
|
-
HotelApprovalModel_1.HotelApprovalDetails,
|
|
112
|
-
HotelWorkFlowModel_1.HotelWorkFlow,
|
|
113
|
-
HotelChatModel_1.HotelRequestChat,
|
|
114
|
-
HotelAttachedModel_1.HotelRequestAttachment
|
|
115
|
-
],
|
|
116
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export declare enum ImportStatusType {
|
|
2
|
-
NotStarted = 1,
|
|
3
|
-
InProgress = 2,
|
|
4
|
-
Completed = 3,
|
|
5
|
-
Error = 4
|
|
6
|
-
}
|
|
7
|
-
export declare const enum EmployeeType {
|
|
8
|
-
Permanent = "Permanent",
|
|
9
|
-
Contract = "Contract"
|
|
10
|
-
}
|
|
11
|
-
export declare const enum MaritalType {
|
|
12
|
-
Single = "Single",
|
|
13
|
-
Married = "Married"
|
|
14
|
-
}
|
|
15
|
-
export declare const enum genderType {
|
|
16
|
-
Male = "Male",
|
|
17
|
-
Female = "Female",
|
|
18
|
-
Others = "Others"
|
|
19
|
-
}
|
|
20
|
-
export declare const enum ActionItemStatusType {
|
|
21
|
-
Not_Yet_Started = "Not Yet Started",
|
|
22
|
-
InProgress = "InProgress",
|
|
23
|
-
Completed = "Completed",
|
|
24
|
-
Cancelled = "Cancelled"
|
|
25
|
-
}
|
|
26
|
-
export declare const enum CampaignStatusType {
|
|
27
|
-
Not_Yet_Started = "Not Yet Started",
|
|
28
|
-
InProgress = "InProgress",
|
|
29
|
-
Completed = "Completed"
|
|
30
|
-
}
|
|
31
|
-
export declare const enum platformType {
|
|
32
|
-
web = "Web",
|
|
33
|
-
mobile = "Mobile"
|
|
34
|
-
}
|
|
35
|
-
export declare const enum contextType {
|
|
36
|
-
ADMIN = "Admin",
|
|
37
|
-
BUSINESS_PARTNER = "Business Partner",
|
|
38
|
-
CLIENT = "Client"
|
|
39
|
-
}
|
|
40
|
-
export declare enum ImportType {
|
|
41
|
-
admin = 1,
|
|
42
|
-
business_partner = 2,
|
|
43
|
-
client = 3
|
|
44
|
-
}
|
|
45
|
-
export declare enum userType {
|
|
46
|
-
admin = 1,
|
|
47
|
-
business_partner = 2,
|
|
48
|
-
client = 3
|
|
49
|
-
}
|
|
50
|
-
export declare enum ReportColumnDataType {
|
|
51
|
-
Int = 1,
|
|
52
|
-
String = 2,
|
|
53
|
-
Date = 3,
|
|
54
|
-
Time = 4,
|
|
55
|
-
DateTime = 5,
|
|
56
|
-
Money = 6
|
|
57
|
-
}
|
|
58
|
-
export declare enum CONSTANTS {
|
|
59
|
-
READ = "READ",
|
|
60
|
-
DELETE = "DELETE",
|
|
61
|
-
SEND = "SEND"
|
|
62
|
-
}
|
|
63
|
-
export declare enum NotificationRequestType {
|
|
64
|
-
request_raised = "request raised",
|
|
65
|
-
request_approve = "request approve",
|
|
66
|
-
request_reject = "request reject",
|
|
67
|
-
request_withdraw = "request withdraw",
|
|
68
|
-
reminder = "reminder",
|
|
69
|
-
import = "import"
|
|
70
|
-
}
|
|
71
|
-
export declare enum RequestGroup {
|
|
72
|
-
ADMIN = "Admin",
|
|
73
|
-
BUSINESS_PARTNER = "Business Partner",
|
|
74
|
-
CLIENT = "Client"
|
|
75
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//import enums
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.RequestGroup = exports.NotificationRequestType = exports.CONSTANTS = exports.ReportColumnDataType = exports.userType = exports.ImportType = exports.ImportStatusType = void 0;
|
|
5
|
-
var ImportStatusType;
|
|
6
|
-
(function (ImportStatusType) {
|
|
7
|
-
ImportStatusType[ImportStatusType["NotStarted"] = 1] = "NotStarted";
|
|
8
|
-
ImportStatusType[ImportStatusType["InProgress"] = 2] = "InProgress";
|
|
9
|
-
ImportStatusType[ImportStatusType["Completed"] = 3] = "Completed";
|
|
10
|
-
ImportStatusType[ImportStatusType["Error"] = 4] = "Error";
|
|
11
|
-
})(ImportStatusType || (exports.ImportStatusType = ImportStatusType = {}));
|
|
12
|
-
var ImportType;
|
|
13
|
-
(function (ImportType) {
|
|
14
|
-
ImportType[ImportType["admin"] = 1] = "admin";
|
|
15
|
-
ImportType[ImportType["business_partner"] = 2] = "business_partner";
|
|
16
|
-
ImportType[ImportType["client"] = 3] = "client";
|
|
17
|
-
})(ImportType || (exports.ImportType = ImportType = {}));
|
|
18
|
-
var userType;
|
|
19
|
-
(function (userType) {
|
|
20
|
-
userType[userType["admin"] = 1] = "admin";
|
|
21
|
-
userType[userType["business_partner"] = 2] = "business_partner";
|
|
22
|
-
userType[userType["client"] = 3] = "client";
|
|
23
|
-
})(userType || (exports.userType = userType = {}));
|
|
24
|
-
var ReportColumnDataType;
|
|
25
|
-
(function (ReportColumnDataType) {
|
|
26
|
-
ReportColumnDataType[ReportColumnDataType["Int"] = 1] = "Int";
|
|
27
|
-
ReportColumnDataType[ReportColumnDataType["String"] = 2] = "String";
|
|
28
|
-
ReportColumnDataType[ReportColumnDataType["Date"] = 3] = "Date";
|
|
29
|
-
ReportColumnDataType[ReportColumnDataType["Time"] = 4] = "Time";
|
|
30
|
-
ReportColumnDataType[ReportColumnDataType["DateTime"] = 5] = "DateTime";
|
|
31
|
-
ReportColumnDataType[ReportColumnDataType["Money"] = 6] = "Money";
|
|
32
|
-
})(ReportColumnDataType || (exports.ReportColumnDataType = ReportColumnDataType = {}));
|
|
33
|
-
var CONSTANTS;
|
|
34
|
-
(function (CONSTANTS) {
|
|
35
|
-
CONSTANTS["READ"] = "READ";
|
|
36
|
-
CONSTANTS["DELETE"] = "DELETE";
|
|
37
|
-
CONSTANTS["SEND"] = "SEND";
|
|
38
|
-
})(CONSTANTS || (exports.CONSTANTS = CONSTANTS = {}));
|
|
39
|
-
var NotificationRequestType;
|
|
40
|
-
(function (NotificationRequestType) {
|
|
41
|
-
NotificationRequestType["request_raised"] = "request raised";
|
|
42
|
-
NotificationRequestType["request_approve"] = "request approve";
|
|
43
|
-
NotificationRequestType["request_reject"] = "request reject";
|
|
44
|
-
NotificationRequestType["request_withdraw"] = "request withdraw";
|
|
45
|
-
NotificationRequestType["reminder"] = "reminder";
|
|
46
|
-
NotificationRequestType["import"] = "import";
|
|
47
|
-
})(NotificationRequestType || (exports.NotificationRequestType = NotificationRequestType = {}));
|
|
48
|
-
var RequestGroup;
|
|
49
|
-
(function (RequestGroup) {
|
|
50
|
-
RequestGroup["ADMIN"] = "Admin";
|
|
51
|
-
RequestGroup["BUSINESS_PARTNER"] = "Business Partner";
|
|
52
|
-
RequestGroup["CLIENT"] = "Client";
|
|
53
|
-
})(RequestGroup || (exports.RequestGroup = RequestGroup = {}));
|
package/dist/index.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export * from './models/user';
|
|
2
|
-
export * from './models/role';
|
|
3
|
-
export * from './models/user-sessions';
|
|
4
|
-
export * from './models/ITHelpDeskModel';
|
|
5
|
-
export * from './models/ServiceTypeModel';
|
|
6
|
-
export * from './models/CAAServices';
|
|
7
|
-
export * from './models/CAASubServices';
|
|
8
|
-
export * from './models/ItApprovalsModel';
|
|
9
|
-
export * from './models/ItWorkflowModel';
|
|
10
|
-
export * from './models/WorkflowDefinitions';
|
|
11
|
-
export * from './models/WorkflowTask';
|
|
12
|
-
export * from './models/DepartmentsModel';
|
|
13
|
-
export * from './models/SectionModel';
|
|
14
|
-
export * from './models/WorkflowHierarchy';
|
|
15
|
-
export * from './models/WorkflowTaskNames';
|
|
16
|
-
export * from './models/DirectorateModel';
|
|
17
|
-
export * from './models/PositionModel';
|
|
18
|
-
export * from './models/serviceBookmarksModel';
|
|
19
|
-
export * from './models/contactInfoModel';
|
|
20
|
-
export * from './models/userRolesModel';
|
|
21
|
-
export * from './models/roleRightsModel';
|
|
22
|
-
export * from './models/NotificationModel';
|
|
23
|
-
export * from './models/ITRequestChatModel';
|
|
24
|
-
export * from './models/ITRequestAttachmentModel';
|
|
25
|
-
export * from './models/LogisticsModel';
|
|
26
|
-
export * from './models/LogisticsForeignVehicleModel';
|
|
27
|
-
export * from './models/LogisticsForeignVehiclePassengerModel';
|
|
28
|
-
export * from './models/LogisticsApprovalModel';
|
|
29
|
-
export * from './models/LogisticsChatModel';
|
|
30
|
-
export * from './models/LogisticsAttachmentModel';
|
|
31
|
-
export * from './models/importantLinksModel';
|
|
32
|
-
export * from './models/LogisticsWorkflowModel';
|
|
33
|
-
export * from './models/DelegateSettingsModel';
|
|
34
|
-
export * from './models/feedbackModel';
|
|
35
|
-
export * from './models/PortalFeedbackModel';
|
|
36
|
-
export * from './models/VpnRequestModel';
|
|
37
|
-
export * from './models/VpnApprovalModel';
|
|
38
|
-
export * from './models/VpnWorkflowModel';
|
|
39
|
-
export * from './models/VpnRequestChatModel';
|
|
40
|
-
export * from './models/VpnRequestAttachmentModel';
|
|
41
|
-
export * from './models/HotelreservationModel';
|
|
42
|
-
export * from './models/HotelApprovalModel';
|
|
43
|
-
export * from './models/HotelWorkFlowModel';
|
|
44
|
-
export * from './models/HotelChatModel';
|
|
45
|
-
export * from './models/HotelAttachedModel';
|