@platform-modules/civil-aviation-authority 2.2.325 → 2.2.999
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 +10 -10
- package/dist/data-source.js +1 -3
- package/dist/index.d.ts +0 -8
- package/dist/index.js +1 -16
- package/dist/models/HrServiceApprovalModel.d.ts +1 -3
- package/dist/models/HrServiceApprovalModel.js +2 -12
- package/package.json +1 -1
- package/src/data-source.ts +189 -181
- package/src/index.ts +106 -96
- package/src/models/HrServiceApprovalModel.ts +0 -10
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/StudyLeaveApprovalModel.ts +94 -0
- package/src/models/StudyLeaveAttachmentModel.ts +56 -0
- package/src/models/StudyLeaveChatModel.ts +76 -0
- package/src/models/StudyLeaveRequestModel.ts +114 -0
- package/src/models/StudyLeaveWorkflowModel.ts +68 -0
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- 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/SecondmentRequestModel.d.ts +0 -40
- package/dist/models/SecondmentRequestModel.js +0 -174
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
- package/src/models/SecondmentRequestModel.ts +0 -163
package/.env
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
DB_HOST=164.52.222.169
|
|
2
|
+
DB_PORT=5432
|
|
3
|
+
DB_USER=postgres_admin_user
|
|
4
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
DB_NAME=CAA
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
DB_HOST=localhost
|
|
9
|
-
DB_PORT=5432
|
|
10
|
-
DB_USER=postgres
|
|
11
|
-
DB_PASS=stevejobs
|
|
12
|
-
DB_NAME=CAA
|
|
8
|
+
# DB_HOST=localhost
|
|
9
|
+
# DB_PORT=5432
|
|
10
|
+
# DB_USER=postgres
|
|
11
|
+
# DB_PASS=stevejobs
|
|
12
|
+
# DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -86,7 +86,6 @@ const TrainingWorkflowModel_1 = require("./models/TrainingWorkflowModel");
|
|
|
86
86
|
const TrainingApprovalModel_1 = require("./models/TrainingApprovalModel");
|
|
87
87
|
const TrainingChatModel_1 = require("./models/TrainingChatModel");
|
|
88
88
|
const TrainingAttachmentModel_1 = require("./models/TrainingAttachmentModel");
|
|
89
|
-
const SecondmentRequestModel_1 = require("./models/SecondmentRequestModel");
|
|
90
89
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
91
90
|
type: 'postgres',
|
|
92
91
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -176,7 +175,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
176
175
|
TrainingWorkflowModel_1.TrainingWorkFlow,
|
|
177
176
|
TrainingApprovalModel_1.TrainingApprovalDetails,
|
|
178
177
|
TrainingChatModel_1.TrainingRequestChat,
|
|
179
|
-
TrainingAttachmentModel_1.TrainingRequestAttachment
|
|
180
|
-
SecondmentRequestModel_1.SecondmentRequest
|
|
178
|
+
TrainingAttachmentModel_1.TrainingRequestAttachment
|
|
181
179
|
],
|
|
182
180
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -82,11 +82,3 @@ export { HrServiceRequestAttachment } from './models/HrServiceAttachmentModel';
|
|
|
82
82
|
export { HrServiceRequestChat } from './models/HrServiceChatModel';
|
|
83
83
|
export { HrServiceMessageType } from './models/HrServiceChatModel';
|
|
84
84
|
export { HrServiceChatStatus } from './models/HrServiceChatModel';
|
|
85
|
-
export { TrainingRequestStatus } from './models/TrainingRequestModel';
|
|
86
|
-
export { TrainingApprovalStatus } from './models/TrainingApprovalModel';
|
|
87
|
-
export { TrainingWorkFlowStatus } from './models/TrainingWorkflowModel';
|
|
88
|
-
export { TrainingRequestAttachment } from './models/TrainingAttachmentModel';
|
|
89
|
-
export { TrainingRequestChat } from './models/TrainingChatModel';
|
|
90
|
-
export { TrainingMessageType } from './models/TrainingChatModel';
|
|
91
|
-
export * from './models/SecondmentRequestModel';
|
|
92
|
-
export { SecondmentRequestStatus } from './models/SecondmentRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = void 0;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -110,18 +110,3 @@ var HrServiceChatModel_2 = require("./models/HrServiceChatModel");
|
|
|
110
110
|
Object.defineProperty(exports, "HrServiceMessageType", { enumerable: true, get: function () { return HrServiceChatModel_2.HrServiceMessageType; } });
|
|
111
111
|
var HrServiceChatModel_3 = require("./models/HrServiceChatModel");
|
|
112
112
|
Object.defineProperty(exports, "HrServiceChatStatus", { enumerable: true, get: function () { return HrServiceChatModel_3.HrServiceChatStatus; } });
|
|
113
|
-
var TrainingRequestModel_1 = require("./models/TrainingRequestModel");
|
|
114
|
-
Object.defineProperty(exports, "TrainingRequestStatus", { enumerable: true, get: function () { return TrainingRequestModel_1.TrainingRequestStatus; } });
|
|
115
|
-
var TrainingApprovalModel_1 = require("./models/TrainingApprovalModel");
|
|
116
|
-
Object.defineProperty(exports, "TrainingApprovalStatus", { enumerable: true, get: function () { return TrainingApprovalModel_1.TrainingApprovalStatus; } });
|
|
117
|
-
var TrainingWorkflowModel_1 = require("./models/TrainingWorkflowModel");
|
|
118
|
-
Object.defineProperty(exports, "TrainingWorkFlowStatus", { enumerable: true, get: function () { return TrainingWorkflowModel_1.TrainingWorkFlowStatus; } });
|
|
119
|
-
var TrainingAttachmentModel_1 = require("./models/TrainingAttachmentModel");
|
|
120
|
-
Object.defineProperty(exports, "TrainingRequestAttachment", { enumerable: true, get: function () { return TrainingAttachmentModel_1.TrainingRequestAttachment; } });
|
|
121
|
-
var TrainingChatModel_1 = require("./models/TrainingChatModel");
|
|
122
|
-
Object.defineProperty(exports, "TrainingRequestChat", { enumerable: true, get: function () { return TrainingChatModel_1.TrainingRequestChat; } });
|
|
123
|
-
var TrainingChatModel_2 = require("./models/TrainingChatModel");
|
|
124
|
-
Object.defineProperty(exports, "TrainingMessageType", { enumerable: true, get: function () { return TrainingChatModel_2.TrainingMessageType; } });
|
|
125
|
-
__exportStar(require("./models/SecondmentRequestModel"), exports);
|
|
126
|
-
var SecondmentRequestModel_1 = require("./models/SecondmentRequestModel");
|
|
127
|
-
Object.defineProperty(exports, "SecondmentRequestStatus", { enumerable: true, get: function () { return SecondmentRequestModel_1.SecondmentRequestStatus; } });
|
|
@@ -20,8 +20,6 @@ export declare class HrServiceApprovalDetails extends BaseModel {
|
|
|
20
20
|
comment: string;
|
|
21
21
|
approval_status: HrServiceApprovalStatus;
|
|
22
22
|
is_manager: boolean;
|
|
23
|
-
is_president: boolean;
|
|
24
|
-
is_replace: boolean;
|
|
25
23
|
is_allowed: boolean;
|
|
26
|
-
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: HrServiceApprovalStatus, level: number, service_id?: number | null, sub_service_id?: number | null, department_id?: number | null, section_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_manager?: boolean,
|
|
24
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: HrServiceApprovalStatus, level: number, service_id?: number | null, sub_service_id?: number | null, department_id?: number | null, section_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_manager?: boolean, is_allowed?: boolean);
|
|
27
25
|
}
|
|
@@ -21,7 +21,7 @@ var HrServiceApprovalStatus;
|
|
|
21
21
|
HrServiceApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
22
|
})(HrServiceApprovalStatus || (exports.HrServiceApprovalStatus = HrServiceApprovalStatus = {}));
|
|
23
23
|
let HrServiceApprovalDetails = class HrServiceApprovalDetails extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, service_id, sub_service_id, department_id, section_id, delegate_user_id, approved_by, is_manager,
|
|
24
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, service_id, sub_service_id, department_id, section_id, delegate_user_id, approved_by, is_manager, is_allowed) {
|
|
25
25
|
super();
|
|
26
26
|
this.request_id = request_id;
|
|
27
27
|
this.service_id = service_id || null;
|
|
@@ -36,8 +36,6 @@ let HrServiceApprovalDetails = class HrServiceApprovalDetails extends BaseModel_
|
|
|
36
36
|
this.delegate_user_id = delegate_user_id || null;
|
|
37
37
|
this.approved_by = approved_by || null;
|
|
38
38
|
this.is_manager = is_manager ?? false;
|
|
39
|
-
this.is_president = is_president ?? false;
|
|
40
|
-
this.is_replace = is_replace ?? false;
|
|
41
39
|
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
42
40
|
}
|
|
43
41
|
};
|
|
@@ -99,19 +97,11 @@ __decorate([
|
|
|
99
97
|
(0, typeorm_1.Column)({ type: "boolean", default: null, nullable: true }),
|
|
100
98
|
__metadata("design:type", Boolean)
|
|
101
99
|
], HrServiceApprovalDetails.prototype, "is_manager", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: true }),
|
|
104
|
-
__metadata("design:type", Boolean)
|
|
105
|
-
], HrServiceApprovalDetails.prototype, "is_president", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: true }),
|
|
108
|
-
__metadata("design:type", Boolean)
|
|
109
|
-
], HrServiceApprovalDetails.prototype, "is_replace", void 0);
|
|
110
100
|
__decorate([
|
|
111
101
|
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
112
102
|
__metadata("design:type", Boolean)
|
|
113
103
|
], HrServiceApprovalDetails.prototype, "is_allowed", void 0);
|
|
114
104
|
exports.HrServiceApprovalDetails = HrServiceApprovalDetails = __decorate([
|
|
115
105
|
(0, typeorm_1.Entity)({ name: "hr_service_approvals" }),
|
|
116
|
-
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean, Boolean
|
|
106
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean, Boolean])
|
|
117
107
|
], HrServiceApprovalDetails);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -1,181 +1,189 @@
|
|
|
1
|
-
// src/data-source.ts
|
|
2
|
-
import 'reflect-metadata';
|
|
3
|
-
import { DataSource } from 'typeorm';
|
|
4
|
-
import 'dotenv/config';
|
|
5
|
-
import { User } from './models/user'; // import all entities here
|
|
6
|
-
import { userSessions } from './models/user-sessions';
|
|
7
|
-
import { Role } from './models/role';
|
|
8
|
-
import { ITHelpDeskRequests } from './models/ITHelpDeskModel';
|
|
9
|
-
// import { ITServicesTypesSalalah } from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
10
|
-
// import { ITServicesTypesMuscat } from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
11
|
-
import { ServiceType } from './models/ServiceTypeModel';
|
|
12
|
-
import { CAAServices } from './models/CAAServices';
|
|
13
|
-
import { CAASubServices } from './models/CAASubServices';
|
|
14
|
-
// import { ITApprovalSettings } from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
15
|
-
// import { Workflows } from './models/Workflows';
|
|
16
|
-
import { ItApprovalDetails } from './models/ItApprovalsModel';
|
|
17
|
-
import { ItWorkFlow } from './models/ItWorkflowModel';
|
|
18
|
-
import { WorkflowDefinitions } from './models/WorkflowDefinitions';
|
|
19
|
-
import { WorkflowTask } from './models/WorkflowTask';
|
|
20
|
-
import { Departments } from './models/DepartmentsModel';
|
|
21
|
-
import { Sections } from './models/SectionModel';
|
|
22
|
-
import { WorkflowHierarchy } from './models/WorkflowHierarchy';
|
|
23
|
-
import { WorkflowTaskNames } from './models/WorkflowTaskNames';
|
|
24
|
-
import { Directorate } from './models/DirectorateModel';
|
|
25
|
-
import { Position } from './models/PositionModel';
|
|
26
|
-
import { ServiceBookmarks } from './models/serviceBookmarksModel';
|
|
27
|
-
import { ContactInfo } from './models/contactInfoModel';
|
|
28
|
-
import { UserRole } from './models/userRolesModel';
|
|
29
|
-
import { RoleRights } from './models/roleRightsModel';
|
|
30
|
-
import { Notification } from './models/NotificationModel';
|
|
31
|
-
import { ITRequestChat } from './models/ITRequestChatModel';
|
|
32
|
-
import { ITRequestAttachment } from './models/ITRequestAttachmentModel';
|
|
33
|
-
import { LogisticsRequests } from './models/LogisticsModel';
|
|
34
|
-
import { LogisticsForeignVehicleRequests } from './models/LogisticsForeignVehicleModel';
|
|
35
|
-
import { LogisticsForeignVehiclePassengers } from './models/LogisticsForeignVehiclePassengerModel';
|
|
36
|
-
import { LogisticsApprovalDetails } from './models/LogisticsApprovalModel';
|
|
37
|
-
import { LogisticsRequestChat } from './models/LogisticsChatModel';
|
|
38
|
-
import { LogisticsRequestAttachment } from './models/LogisticsAttachmentModel';
|
|
39
|
-
import { LogisticsWorkFlow } from './models/LogisticsWorkflowModel';
|
|
40
|
-
import { ImportantLinks } from './models/importantLinksModel';
|
|
41
|
-
import { DelegateSettings } from './models/DelegateSettingsModel';
|
|
42
|
-
import { Feedback } from './models/feedbackModel';
|
|
43
|
-
import { PortalFeedback } from './models/PortalFeedbackModel';
|
|
44
|
-
import { VpnRequest } from './models/VpnRequestModel';
|
|
45
|
-
import { VpnApprovalDetails } from './models/VpnApprovalModel';
|
|
46
|
-
import { VpnWorkFlow } from './models/VpnWorkflowModel';
|
|
47
|
-
import { VpnRequestAttachment } from './models/VpnRequestAttachmentModel';
|
|
48
|
-
import { VpnRequestChat } from './models/VpnRequestChatModel';
|
|
49
|
-
import { AccessCardRequest } from './models/AccessCardRequestModel';
|
|
50
|
-
import { AccessCardApproval } from './models/AccessCardApprovalModel';
|
|
51
|
-
import { AccessCardAttachment } from './models/AccessCardAttachmentModel';
|
|
52
|
-
import { AccessCardRequestChat } from './models/AccessCardChatModel';
|
|
53
|
-
import { AccessCardWorkflow } from './models/AccessCardWorkflowModel';
|
|
54
|
-
|
|
55
|
-
import { HotelReservation } from './models/HotelreservationModel'
|
|
56
|
-
import { HotelApprovalDetails } from './models/HotelApprovalModel';
|
|
57
|
-
import { HotelWorkFlow } from './models/HotelWorkFlowModel';
|
|
58
|
-
import { HotelRequestChat } from './models/HotelChatModel';
|
|
59
|
-
import { HotelRequestAttachment } from './models/HotelAttachedModel';
|
|
60
|
-
import { SecurityThreatRequest } from './models/SecurityThreatRequestModel';
|
|
61
|
-
import { SecurityThreatApproval } from './models/SecurityThreatApprovalModel';
|
|
62
|
-
import { SecurityThreatAttachment } from './models/SecurityThreatAttachmentModel';
|
|
63
|
-
import { SecurityThreatChat } from './models/SecurityThreatChatModel';
|
|
64
|
-
import { SecurityThreatWorkFlow } from './models/SecurityThreatWorkflowModel';
|
|
65
|
-
import { SecurityAwarenessRequest } from './models/SecurityAwarenessRequestModel';
|
|
66
|
-
import { SecurityAwarenessApproval } from './models/SecurityAwarenessApprovalModel';
|
|
67
|
-
import { SecurityAwarenessAttachment } from './models/SecurityAwarenessAttachmentModel';
|
|
68
|
-
import { SecurityAwarenessChat } from './models/SecurityAwarenessChatModel';
|
|
69
|
-
import { SecurityAwarenessWorkFlow } from './models/SecurityAwarenessWorkflowModel';
|
|
70
|
-
import { AirportEntryPermit } from './models/AirportEntryPermitModel';
|
|
71
|
-
import { AirportEntryPermitApproval } from './models/AirportEntryPermitApprovalModel';
|
|
72
|
-
import { AirportEntryPermitWorkFlow } from './models/AirportEntryPermitWorkflowModel';
|
|
73
|
-
import { AirportEntryPermitChat } from './models/AirportEntryPermitChatModel';
|
|
74
|
-
import { AirportEntryPermitAttachment } from './models/AirportEntryPermitAttachmentModel';
|
|
75
|
-
import { GroupNames } from './models/GroupNamesModel';
|
|
76
|
-
import { Group } from './models/GroupModel';
|
|
77
|
-
import { HrServiceRequest } from './models/HrServiceRequestModel';
|
|
78
|
-
import { HrServiceApprovalDetails } from './models/HrServiceApprovalModel';
|
|
79
|
-
import { HrServiceWorkFlow } from './models/HrServiceWorkflowModel';
|
|
80
|
-
import { HrServiceRequestAttachment } from './models/HrServiceAttachmentModel';
|
|
81
|
-
import { HrServiceRequestChat } from './models/HrServiceChatModel';
|
|
82
|
-
import { TrainingRequest } from './models/TrainingRequestModel';
|
|
83
|
-
import { TrainingWorkFlow } from './models/TrainingWorkflowModel';
|
|
84
|
-
import { TrainingApprovalDetails } from './models/TrainingApprovalModel';
|
|
85
|
-
import { TrainingRequestChat } from './models/TrainingChatModel';
|
|
86
|
-
import { TrainingRequestAttachment } from './models/TrainingAttachmentModel';
|
|
87
|
-
import {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
//
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
1
|
+
// src/data-source.ts
|
|
2
|
+
import 'reflect-metadata';
|
|
3
|
+
import { DataSource } from 'typeorm';
|
|
4
|
+
import 'dotenv/config';
|
|
5
|
+
import { User } from './models/user'; // import all entities here
|
|
6
|
+
import { userSessions } from './models/user-sessions';
|
|
7
|
+
import { Role } from './models/role';
|
|
8
|
+
import { ITHelpDeskRequests } from './models/ITHelpDeskModel';
|
|
9
|
+
// import { ITServicesTypesSalalah } from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
10
|
+
// import { ITServicesTypesMuscat } from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
11
|
+
import { ServiceType } from './models/ServiceTypeModel';
|
|
12
|
+
import { CAAServices } from './models/CAAServices';
|
|
13
|
+
import { CAASubServices } from './models/CAASubServices';
|
|
14
|
+
// import { ITApprovalSettings } from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
15
|
+
// import { Workflows } from './models/Workflows';
|
|
16
|
+
import { ItApprovalDetails } from './models/ItApprovalsModel';
|
|
17
|
+
import { ItWorkFlow } from './models/ItWorkflowModel';
|
|
18
|
+
import { WorkflowDefinitions } from './models/WorkflowDefinitions';
|
|
19
|
+
import { WorkflowTask } from './models/WorkflowTask';
|
|
20
|
+
import { Departments } from './models/DepartmentsModel';
|
|
21
|
+
import { Sections } from './models/SectionModel';
|
|
22
|
+
import { WorkflowHierarchy } from './models/WorkflowHierarchy';
|
|
23
|
+
import { WorkflowTaskNames } from './models/WorkflowTaskNames';
|
|
24
|
+
import { Directorate } from './models/DirectorateModel';
|
|
25
|
+
import { Position } from './models/PositionModel';
|
|
26
|
+
import { ServiceBookmarks } from './models/serviceBookmarksModel';
|
|
27
|
+
import { ContactInfo } from './models/contactInfoModel';
|
|
28
|
+
import { UserRole } from './models/userRolesModel';
|
|
29
|
+
import { RoleRights } from './models/roleRightsModel';
|
|
30
|
+
import { Notification } from './models/NotificationModel';
|
|
31
|
+
import { ITRequestChat } from './models/ITRequestChatModel';
|
|
32
|
+
import { ITRequestAttachment } from './models/ITRequestAttachmentModel';
|
|
33
|
+
import { LogisticsRequests } from './models/LogisticsModel';
|
|
34
|
+
import { LogisticsForeignVehicleRequests } from './models/LogisticsForeignVehicleModel';
|
|
35
|
+
import { LogisticsForeignVehiclePassengers } from './models/LogisticsForeignVehiclePassengerModel';
|
|
36
|
+
import { LogisticsApprovalDetails } from './models/LogisticsApprovalModel';
|
|
37
|
+
import { LogisticsRequestChat } from './models/LogisticsChatModel';
|
|
38
|
+
import { LogisticsRequestAttachment } from './models/LogisticsAttachmentModel';
|
|
39
|
+
import { LogisticsWorkFlow } from './models/LogisticsWorkflowModel';
|
|
40
|
+
import { ImportantLinks } from './models/importantLinksModel';
|
|
41
|
+
import { DelegateSettings } from './models/DelegateSettingsModel';
|
|
42
|
+
import { Feedback } from './models/feedbackModel';
|
|
43
|
+
import { PortalFeedback } from './models/PortalFeedbackModel';
|
|
44
|
+
import { VpnRequest } from './models/VpnRequestModel';
|
|
45
|
+
import { VpnApprovalDetails } from './models/VpnApprovalModel';
|
|
46
|
+
import { VpnWorkFlow } from './models/VpnWorkflowModel';
|
|
47
|
+
import { VpnRequestAttachment } from './models/VpnRequestAttachmentModel';
|
|
48
|
+
import { VpnRequestChat } from './models/VpnRequestChatModel';
|
|
49
|
+
import { AccessCardRequest } from './models/AccessCardRequestModel';
|
|
50
|
+
import { AccessCardApproval } from './models/AccessCardApprovalModel';
|
|
51
|
+
import { AccessCardAttachment } from './models/AccessCardAttachmentModel';
|
|
52
|
+
import { AccessCardRequestChat } from './models/AccessCardChatModel';
|
|
53
|
+
import { AccessCardWorkflow } from './models/AccessCardWorkflowModel';
|
|
54
|
+
|
|
55
|
+
import { HotelReservation } from './models/HotelreservationModel'
|
|
56
|
+
import { HotelApprovalDetails } from './models/HotelApprovalModel';
|
|
57
|
+
import { HotelWorkFlow } from './models/HotelWorkFlowModel';
|
|
58
|
+
import { HotelRequestChat } from './models/HotelChatModel';
|
|
59
|
+
import { HotelRequestAttachment } from './models/HotelAttachedModel';
|
|
60
|
+
import { SecurityThreatRequest } from './models/SecurityThreatRequestModel';
|
|
61
|
+
import { SecurityThreatApproval } from './models/SecurityThreatApprovalModel';
|
|
62
|
+
import { SecurityThreatAttachment } from './models/SecurityThreatAttachmentModel';
|
|
63
|
+
import { SecurityThreatChat } from './models/SecurityThreatChatModel';
|
|
64
|
+
import { SecurityThreatWorkFlow } from './models/SecurityThreatWorkflowModel';
|
|
65
|
+
import { SecurityAwarenessRequest } from './models/SecurityAwarenessRequestModel';
|
|
66
|
+
import { SecurityAwarenessApproval } from './models/SecurityAwarenessApprovalModel';
|
|
67
|
+
import { SecurityAwarenessAttachment } from './models/SecurityAwarenessAttachmentModel';
|
|
68
|
+
import { SecurityAwarenessChat } from './models/SecurityAwarenessChatModel';
|
|
69
|
+
import { SecurityAwarenessWorkFlow } from './models/SecurityAwarenessWorkflowModel';
|
|
70
|
+
import { AirportEntryPermit } from './models/AirportEntryPermitModel';
|
|
71
|
+
import { AirportEntryPermitApproval } from './models/AirportEntryPermitApprovalModel';
|
|
72
|
+
import { AirportEntryPermitWorkFlow } from './models/AirportEntryPermitWorkflowModel';
|
|
73
|
+
import { AirportEntryPermitChat } from './models/AirportEntryPermitChatModel';
|
|
74
|
+
import { AirportEntryPermitAttachment } from './models/AirportEntryPermitAttachmentModel';
|
|
75
|
+
import { GroupNames } from './models/GroupNamesModel';
|
|
76
|
+
import { Group } from './models/GroupModel';
|
|
77
|
+
import { HrServiceRequest } from './models/HrServiceRequestModel';
|
|
78
|
+
import { HrServiceApprovalDetails } from './models/HrServiceApprovalModel';
|
|
79
|
+
import { HrServiceWorkFlow } from './models/HrServiceWorkflowModel';
|
|
80
|
+
import { HrServiceRequestAttachment } from './models/HrServiceAttachmentModel';
|
|
81
|
+
import { HrServiceRequestChat } from './models/HrServiceChatModel';
|
|
82
|
+
import { TrainingRequest } from './models/TrainingRequestModel';
|
|
83
|
+
import { TrainingWorkFlow } from './models/TrainingWorkflowModel';
|
|
84
|
+
import { TrainingApprovalDetails } from './models/TrainingApprovalModel';
|
|
85
|
+
import { TrainingRequestChat } from './models/TrainingChatModel';
|
|
86
|
+
import { TrainingRequestAttachment } from './models/TrainingAttachmentModel';
|
|
87
|
+
import { StudyLeaveRequest } from './models/StudyLeaveRequestModel';
|
|
88
|
+
import { StudyLeaveWorkFlow } from './models/StudyLeaveWorkflowModel';
|
|
89
|
+
import { StudyLeaveApprovalDetails } from './models/StudyLeaveApprovalModel';
|
|
90
|
+
import { StudyLeaveRequestChat } from './models/StudyLeaveChatModel';
|
|
91
|
+
import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel';
|
|
92
|
+
|
|
93
|
+
export const AppDataSource = new DataSource({
|
|
94
|
+
type: 'postgres',
|
|
95
|
+
host: process.env.DB_HOST || 'localhost',
|
|
96
|
+
port: +(process.env.DB_PORT || 5432),
|
|
97
|
+
username: process.env.DB_USER || 'postgres',
|
|
98
|
+
password: process.env.DB_PASS || 'postgres',
|
|
99
|
+
database: process.env.DB_NAME || 'common_models',
|
|
100
|
+
synchronize: true, // auto-create tables (disable in prod)
|
|
101
|
+
logging: false,
|
|
102
|
+
entities: [
|
|
103
|
+
User,userSessions,
|
|
104
|
+
Role,
|
|
105
|
+
ITHelpDeskRequests,
|
|
106
|
+
// ITServicesTypesSalalah, // REMOVED - table no longer used
|
|
107
|
+
// ITServicesTypesMuscat, // REMOVED - table no longer used
|
|
108
|
+
ServiceType,
|
|
109
|
+
CAAServices,
|
|
110
|
+
CAASubServices,
|
|
111
|
+
// ITApprovalSettings, // REMOVED - table no longer used
|
|
112
|
+
// Workflows,
|
|
113
|
+
ItApprovalDetails,
|
|
114
|
+
ItWorkFlow,
|
|
115
|
+
WorkflowDefinitions,
|
|
116
|
+
WorkflowTask,
|
|
117
|
+
Departments,
|
|
118
|
+
Sections,
|
|
119
|
+
WorkflowHierarchy,
|
|
120
|
+
WorkflowTaskNames,
|
|
121
|
+
Directorate,
|
|
122
|
+
Position,
|
|
123
|
+
ServiceBookmarks,
|
|
124
|
+
ContactInfo,
|
|
125
|
+
UserRole,
|
|
126
|
+
RoleRights,
|
|
127
|
+
Notification,
|
|
128
|
+
ITRequestChat,
|
|
129
|
+
ITRequestAttachment,
|
|
130
|
+
LogisticsRequests,
|
|
131
|
+
LogisticsForeignVehicleRequests,
|
|
132
|
+
LogisticsForeignVehiclePassengers,
|
|
133
|
+
LogisticsApprovalDetails,
|
|
134
|
+
LogisticsRequestChat,
|
|
135
|
+
LogisticsRequestAttachment,
|
|
136
|
+
LogisticsWorkFlow,
|
|
137
|
+
AccessCardRequest,
|
|
138
|
+
AccessCardApproval,
|
|
139
|
+
AccessCardAttachment,
|
|
140
|
+
AccessCardRequestChat,
|
|
141
|
+
AccessCardWorkflow,
|
|
142
|
+
ImportantLinks,
|
|
143
|
+
DelegateSettings,
|
|
144
|
+
Feedback,
|
|
145
|
+
PortalFeedback,
|
|
146
|
+
VpnRequest,
|
|
147
|
+
VpnApprovalDetails,
|
|
148
|
+
VpnWorkFlow,
|
|
149
|
+
VpnRequestAttachment,
|
|
150
|
+
VpnRequestChat,
|
|
151
|
+
HotelReservation,
|
|
152
|
+
HotelApprovalDetails,
|
|
153
|
+
HotelWorkFlow,
|
|
154
|
+
HotelRequestChat,
|
|
155
|
+
HotelRequestAttachment,
|
|
156
|
+
SecurityThreatRequest,
|
|
157
|
+
SecurityThreatApproval,
|
|
158
|
+
SecurityThreatAttachment,
|
|
159
|
+
SecurityThreatChat,
|
|
160
|
+
SecurityThreatWorkFlow,
|
|
161
|
+
SecurityAwarenessRequest,
|
|
162
|
+
SecurityAwarenessApproval,
|
|
163
|
+
SecurityAwarenessAttachment,
|
|
164
|
+
SecurityAwarenessChat,
|
|
165
|
+
SecurityAwarenessWorkFlow,
|
|
166
|
+
GroupNames,
|
|
167
|
+
Group,
|
|
168
|
+
AirportEntryPermit,
|
|
169
|
+
AirportEntryPermitApproval,
|
|
170
|
+
AirportEntryPermitWorkFlow,
|
|
171
|
+
AirportEntryPermitChat,
|
|
172
|
+
AirportEntryPermitAttachment,
|
|
173
|
+
HrServiceRequest,
|
|
174
|
+
HrServiceApprovalDetails,
|
|
175
|
+
HrServiceWorkFlow,
|
|
176
|
+
HrServiceRequestAttachment,
|
|
177
|
+
HrServiceRequestChat,
|
|
178
|
+
TrainingRequest,
|
|
179
|
+
TrainingWorkFlow,
|
|
180
|
+
TrainingApprovalDetails,
|
|
181
|
+
TrainingRequestChat,
|
|
182
|
+
TrainingRequestAttachment,
|
|
183
|
+
StudyLeaveRequest,
|
|
184
|
+
StudyLeaveWorkFlow,
|
|
185
|
+
StudyLeaveApprovalDetails,
|
|
186
|
+
StudyLeaveRequestChat,
|
|
187
|
+
StudyLeaveRequestAttachment
|
|
188
|
+
],
|
|
189
|
+
});
|