@platform-modules/civil-aviation-authority 2.0.28 → 2.0.30
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/dist/data-source.js +10 -16
- package/dist/index.d.ts +2 -8
- package/dist/index.js +6 -9
- package/dist/models/ITHelpDeskModel.d.ts +1 -4
- package/dist/models/ITHelpDeskModel.js +2 -17
- package/dist/models/ItApprovalsModel.d.ts +2 -2
- package/dist/models/ItApprovalsModel.js +2 -2
- package/dist/models/ItWorkflowModel.d.ts +2 -1
- package/dist/models/ItWorkflowModel.js +7 -2
- package/dist/models/LogisticsForeignVehicleModel.d.ts +5 -6
- package/dist/models/LogisticsForeignVehicleModel.js +5 -7
- package/dist/models/NotificationModel.d.ts +3 -0
- package/dist/models/NotificationModel.js +3 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/WorkflowTask.d.ts +5 -2
- package/dist/models/WorkflowTask.js +28 -4
- package/dist/models/WorkflowTaskNames.d.ts +12 -3
- package/dist/models/WorkflowTaskNames.js +28 -9
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/package.json +1 -1
- package/src/data-source.ts +11 -16
- package/src/index.ts +6 -9
- package/src/models/ITHelpDeskModel.ts +0 -14
- package/src/models/ItApprovalsModel.ts +2 -2
- package/src/models/ItWorkflowModel.ts +5 -1
- package/src/models/LogisticsForeignVehicleModel.ts +8 -10
- package/src/models/NotificationModel.ts +3 -0
- package/src/models/PortalFeedbackModel.ts +34 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- package/src/models/feedbackModel.ts +50 -0
- package/dist/models/HotelApprovalModel.d.ts +0 -22
- package/dist/models/HotelApprovalModel.js +0 -91
- package/dist/models/HotelAttachedModel.d.ts +0 -12
- package/dist/models/HotelAttachedModel.js +0 -64
- 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 -44
- package/dist/models/HotelreservationModel.js +0 -171
- package/src/models/HotelApprovalModel.ts +0 -78
- package/src/models/HotelAttachedModel.ts +0 -54
- package/src/models/HotelChatModel.ts +0 -55
- package/src/models/HotelWorkFlowModel.ts +0 -42
- package/src/models/HotelreservationModel.ts +0 -159
- package/src/models/ITApprovalSettings.ts +0 -29
- package/src/models/ITServicesTypesMuscatModel.ts +0 -22
- package/src/models/ITServicesTypesSalalahModel.ts +0 -22
- package/src/models/Workflows.ts +0 -40
package/dist/data-source.js
CHANGED
|
@@ -9,12 +9,12 @@ const user_1 = require("./models/user"); // import all entities here
|
|
|
9
9
|
const user_sessions_1 = require("./models/user-sessions");
|
|
10
10
|
const role_1 = require("./models/role");
|
|
11
11
|
const ITHelpDeskModel_1 = require("./models/ITHelpDeskModel");
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// import { ITServicesTypesSalalah } from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
13
|
+
// import { ITServicesTypesMuscat } from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
14
14
|
const ServiceTypeModel_1 = require("./models/ServiceTypeModel");
|
|
15
15
|
const CAAServices_1 = require("./models/CAAServices");
|
|
16
16
|
const CAASubServices_1 = require("./models/CAASubServices");
|
|
17
|
-
|
|
17
|
+
// import { ITApprovalSettings } from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
18
18
|
// import { Workflows } from './models/Workflows';
|
|
19
19
|
const ItApprovalsModel_1 = require("./models/ItApprovalsModel");
|
|
20
20
|
const ItWorkflowModel_1 = require("./models/ItWorkflowModel");
|
|
@@ -42,11 +42,8 @@ const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
|
|
|
42
42
|
const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
|
|
43
43
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
44
44
|
const DelegateSettingsModel_1 = require("./models/DelegateSettingsModel");
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const HotelWorkFlowModel_1 = require("./models/HotelWorkFlowModel");
|
|
48
|
-
const HotelChatModel_1 = require("./models/HotelChatModel");
|
|
49
|
-
const HotelAttachedModel_1 = require("./models/HotelAttachedModel");
|
|
45
|
+
const feedbackModel_1 = require("./models/feedbackModel");
|
|
46
|
+
const PortalFeedbackModel_1 = require("./models/PortalFeedbackModel");
|
|
50
47
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
51
48
|
type: 'postgres',
|
|
52
49
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -60,12 +57,12 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
60
57
|
user_1.User, user_sessions_1.userSessions,
|
|
61
58
|
role_1.Role,
|
|
62
59
|
ITHelpDeskModel_1.ITHelpDeskRequests,
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
// ITServicesTypesSalalah, // REMOVED - table no longer used
|
|
61
|
+
// ITServicesTypesMuscat, // REMOVED - table no longer used
|
|
65
62
|
ServiceTypeModel_1.ServiceType,
|
|
66
63
|
CAAServices_1.CAAServices,
|
|
67
64
|
CAASubServices_1.CAASubServices,
|
|
68
|
-
|
|
65
|
+
// ITApprovalSettings, // REMOVED - table no longer used
|
|
69
66
|
// Workflows,
|
|
70
67
|
ItApprovalsModel_1.ItApprovalDetails,
|
|
71
68
|
ItWorkflowModel_1.ItWorkFlow,
|
|
@@ -93,10 +90,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
93
90
|
LogisticsWorkflowModel_1.LogisticsWorkFlow,
|
|
94
91
|
importantLinksModel_1.ImportantLinks,
|
|
95
92
|
DelegateSettingsModel_1.DelegateSettings,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
HotelWorkFlowModel_1.HotelWorkFlow,
|
|
99
|
-
HotelChatModel_1.HotelRequestChat,
|
|
100
|
-
HotelAttachedModel_1.HotelRequestAttachment
|
|
93
|
+
feedbackModel_1.Feedback,
|
|
94
|
+
PortalFeedbackModel_1.PortalFeedback
|
|
101
95
|
],
|
|
102
96
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,9 @@ export * from './models/user';
|
|
|
2
2
|
export * from './models/role';
|
|
3
3
|
export * from './models/user-sessions';
|
|
4
4
|
export * from './models/ITHelpDeskModel';
|
|
5
|
-
export * from './models/ITServicesTypesSalalahModel';
|
|
6
|
-
export * from './models/ITServicesTypesMuscatModel';
|
|
7
5
|
export * from './models/ServiceTypeModel';
|
|
8
6
|
export * from './models/CAAServices';
|
|
9
7
|
export * from './models/CAASubServices';
|
|
10
|
-
export * from './models/ITApprovalSettings';
|
|
11
8
|
export * from './models/ItApprovalsModel';
|
|
12
9
|
export * from './models/ItWorkflowModel';
|
|
13
10
|
export * from './models/WorkflowDefinitions';
|
|
@@ -34,8 +31,5 @@ export * from './models/LogisticsAttachmentModel';
|
|
|
34
31
|
export * from './models/importantLinksModel';
|
|
35
32
|
export * from './models/LogisticsWorkflowModel';
|
|
36
33
|
export * from './models/DelegateSettingsModel';
|
|
37
|
-
export * from './models/
|
|
38
|
-
export * from './models/
|
|
39
|
-
export * from './models/HotelWorkFlowModel';
|
|
40
|
-
export * from './models/HotelChatModel';
|
|
41
|
-
export * from './models/HotelAttachedModel';
|
|
34
|
+
export * from './models/feedbackModel';
|
|
35
|
+
export * from './models/PortalFeedbackModel';
|
package/dist/index.js
CHANGED
|
@@ -18,13 +18,13 @@ __exportStar(require("./models/user"), exports);
|
|
|
18
18
|
__exportStar(require("./models/role"), exports);
|
|
19
19
|
__exportStar(require("./models/user-sessions"), exports);
|
|
20
20
|
__exportStar(require("./models/ITHelpDeskModel"), exports);
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
// export * from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
22
|
+
// export * from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
23
23
|
__exportStar(require("./models/ServiceTypeModel"), exports);
|
|
24
24
|
__exportStar(require("./models/CAAServices"), exports);
|
|
25
25
|
__exportStar(require("./models/CAASubServices"), exports);
|
|
26
|
-
|
|
27
|
-
// export * from './models/Workflows';
|
|
26
|
+
// export * from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
27
|
+
// export * from './models/Workflows'; // REMOVED - table no longer used
|
|
28
28
|
__exportStar(require("./models/ItApprovalsModel"), exports);
|
|
29
29
|
__exportStar(require("./models/ItWorkflowModel"), exports);
|
|
30
30
|
__exportStar(require("./models/WorkflowDefinitions"), exports);
|
|
@@ -51,8 +51,5 @@ __exportStar(require("./models/LogisticsAttachmentModel"), exports);
|
|
|
51
51
|
__exportStar(require("./models/importantLinksModel"), exports);
|
|
52
52
|
__exportStar(require("./models/LogisticsWorkflowModel"), exports);
|
|
53
53
|
__exportStar(require("./models/DelegateSettingsModel"), exports);
|
|
54
|
-
__exportStar(require("./models/
|
|
55
|
-
__exportStar(require("./models/
|
|
56
|
-
__exportStar(require("./models/HotelWorkFlowModel"), exports);
|
|
57
|
-
__exportStar(require("./models/HotelChatModel"), exports);
|
|
58
|
-
__exportStar(require("./models/HotelAttachedModel"), exports);
|
|
54
|
+
__exportStar(require("./models/feedbackModel"), exports);
|
|
55
|
+
__exportStar(require("./models/PortalFeedbackModel"), exports);
|
|
@@ -22,11 +22,8 @@ export declare class ITHelpDeskRequests extends BaseModel {
|
|
|
22
22
|
extn_num: string;
|
|
23
23
|
contact_num: string;
|
|
24
24
|
request_date: Date;
|
|
25
|
-
attachment_url: string;
|
|
26
25
|
user_id: number;
|
|
27
|
-
reporting_manager: number;
|
|
28
|
-
assigned_to: number;
|
|
29
26
|
status: status;
|
|
30
27
|
workflow_execution_id: string | null;
|
|
31
|
-
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date,
|
|
28
|
+
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, status: status, workflow_execution_id?: string, req_user_department_id?: number | null, req_user_section_id?: number | null, service_type_id?: number | null);
|
|
32
29
|
}
|
|
@@ -26,7 +26,7 @@ var status;
|
|
|
26
26
|
status["REJECTED"] = "Rejected";
|
|
27
27
|
})(status || (exports.status = status = {}));
|
|
28
28
|
let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
|
|
29
|
-
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date,
|
|
29
|
+
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date, status, workflow_execution_id, req_user_department_id, req_user_section_id, service_type_id) {
|
|
30
30
|
super();
|
|
31
31
|
this.service_id = service_id;
|
|
32
32
|
this.sub_service_id = sub_service_id;
|
|
@@ -36,9 +36,6 @@ let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel
|
|
|
36
36
|
this.extn_num = extn_num;
|
|
37
37
|
this.contact_num = contact_num;
|
|
38
38
|
this.request_date = request_date;
|
|
39
|
-
this.attachment_url = attachment_url;
|
|
40
|
-
this.reporting_manager = reporting_manager;
|
|
41
|
-
this.assigned_to = assigned_to;
|
|
42
39
|
this.status = status;
|
|
43
40
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
44
41
|
this.req_user_department_id = req_user_department_id || null;
|
|
@@ -96,22 +93,10 @@ __decorate([
|
|
|
96
93
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
97
94
|
__metadata("design:type", Date)
|
|
98
95
|
], ITHelpDeskRequests.prototype, "request_date", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], ITHelpDeskRequests.prototype, "attachment_url", void 0);
|
|
103
96
|
__decorate([
|
|
104
97
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
105
98
|
__metadata("design:type", Number)
|
|
106
99
|
], ITHelpDeskRequests.prototype, "user_id", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
109
|
-
__metadata("design:type", Number)
|
|
110
|
-
], ITHelpDeskRequests.prototype, "reporting_manager", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
113
|
-
__metadata("design:type", Number)
|
|
114
|
-
], ITHelpDeskRequests.prototype, "assigned_to", void 0);
|
|
115
100
|
__decorate([
|
|
116
101
|
(0, typeorm_1.Column)({
|
|
117
102
|
type: "enum",
|
|
@@ -127,5 +112,5 @@ __decorate([
|
|
|
127
112
|
], ITHelpDeskRequests.prototype, "workflow_execution_id", void 0);
|
|
128
113
|
exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
|
|
129
114
|
(0, typeorm_1.Entity)({ name: 'it_help_desk_requests' }),
|
|
130
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String,
|
|
115
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String, String, Object, Object, Object])
|
|
131
116
|
], ITHelpDeskRequests);
|
|
@@ -8,11 +8,11 @@ export declare class ItApprovalDetails extends BaseModel {
|
|
|
8
8
|
request_id: number;
|
|
9
9
|
level: number;
|
|
10
10
|
approver_user_id: number | null;
|
|
11
|
-
approver_role_id: number;
|
|
11
|
+
approver_role_id: number | null;
|
|
12
12
|
department_id: number | null;
|
|
13
13
|
section_id: number | null;
|
|
14
14
|
approved_by: number | null;
|
|
15
15
|
comment: string;
|
|
16
16
|
approval_status: ApprovalStatus;
|
|
17
|
-
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number, comment: string, approval_status: ApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null);
|
|
17
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: ApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null);
|
|
18
18
|
}
|
|
@@ -47,7 +47,7 @@ __decorate([
|
|
|
47
47
|
], ItApprovalDetails.prototype, "approver_user_id", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
50
|
-
__metadata("design:type",
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
51
|
], ItApprovalDetails.prototype, "approver_role_id", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
@@ -71,5 +71,5 @@ __decorate([
|
|
|
71
71
|
], ItApprovalDetails.prototype, "approval_status", void 0);
|
|
72
72
|
exports.ItApprovalDetails = ItApprovalDetails = __decorate([
|
|
73
73
|
(0, typeorm_1.Entity)({ name: 'it_approvals' }),
|
|
74
|
-
__metadata("design:paramtypes", [Number, Object,
|
|
74
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object])
|
|
75
75
|
], ItApprovalDetails);
|
|
@@ -6,7 +6,8 @@ export declare enum workFlowStatus {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class ItWorkFlow extends BaseModel {
|
|
8
8
|
request_id: number;
|
|
9
|
+
order: number | null;
|
|
9
10
|
content: string;
|
|
10
11
|
status: workFlowStatus;
|
|
11
|
-
constructor(request_id: number, content: string, status: workFlowStatus);
|
|
12
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number);
|
|
12
13
|
}
|
|
@@ -20,11 +20,12 @@ var workFlowStatus;
|
|
|
20
20
|
})(workFlowStatus || (exports.workFlowStatus = workFlowStatus = {}));
|
|
21
21
|
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
22
22
|
let ItWorkFlow = class ItWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status) {
|
|
23
|
+
constructor(request_id, content, status, order) {
|
|
24
24
|
super();
|
|
25
25
|
this.request_id = request_id;
|
|
26
26
|
this.content = content;
|
|
27
27
|
this.status = status;
|
|
28
|
+
this.order = order || null;
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
exports.ItWorkFlow = ItWorkFlow;
|
|
@@ -32,6 +33,10 @@ __decorate([
|
|
|
32
33
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
33
34
|
__metadata("design:type", Number)
|
|
34
35
|
], ItWorkFlow.prototype, "request_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], ItWorkFlow.prototype, "order", void 0);
|
|
35
40
|
__decorate([
|
|
36
41
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
37
42
|
__metadata("design:type", String)
|
|
@@ -42,5 +47,5 @@ __decorate([
|
|
|
42
47
|
], ItWorkFlow.prototype, "status", void 0);
|
|
43
48
|
exports.ItWorkFlow = ItWorkFlow = __decorate([
|
|
44
49
|
(0, typeorm_1.Entity)({ name: 'it_work_flows' }),
|
|
45
|
-
__metadata("design:paramtypes", [Number, String, String])
|
|
50
|
+
__metadata("design:paramtypes", [Number, String, String, Number])
|
|
46
51
|
], ItWorkFlow);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare enum Foreign_Purpose_of_Travel {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
CONFERENCE = "Conference/Event",
|
|
3
|
+
SITE = "Site Visit",
|
|
4
|
+
AIRPORT = "Airport Duty",
|
|
5
|
+
OFFICIAL = "Official Meeting",
|
|
7
6
|
OTHER = "Other"
|
|
8
7
|
}
|
|
9
8
|
export declare enum Foreign_Vehicle_Required_Location {
|
|
@@ -28,7 +27,7 @@ export declare class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
28
27
|
sub_service_id: number;
|
|
29
28
|
user_id: number;
|
|
30
29
|
number_of_passengers: number;
|
|
31
|
-
purpose_of_travel:
|
|
30
|
+
purpose_of_travel: string;
|
|
32
31
|
vehicle_required_location: Foreign_Vehicle_Required_Location;
|
|
33
32
|
employee_id_passport: string | null;
|
|
34
33
|
contact_number: string;
|
|
@@ -39,5 +38,5 @@ export declare class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
39
38
|
special_instructions: string | null;
|
|
40
39
|
status: Foreign_Request_Status;
|
|
41
40
|
workflow_execution_id: string | null;
|
|
42
|
-
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, number_of_passengers: number, purpose_of_travel:
|
|
41
|
+
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, number_of_passengers: number, purpose_of_travel: string, vehicle_required_location: Foreign_Vehicle_Required_Location, contact_number: string, request_type: Foreign_Request_Type, destination_city: string, arrival_departure_datetime: Date, status: Foreign_Request_Status, employee_id_passport?: string | null, origin_city?: string | null, special_instructions?: string | null, workflow_execution_id?: string | null);
|
|
43
42
|
}
|
|
@@ -14,10 +14,9 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var Foreign_Purpose_of_Travel;
|
|
16
16
|
(function (Foreign_Purpose_of_Travel) {
|
|
17
|
-
Foreign_Purpose_of_Travel["
|
|
18
|
-
Foreign_Purpose_of_Travel["
|
|
19
|
-
Foreign_Purpose_of_Travel["
|
|
20
|
-
Foreign_Purpose_of_Travel["CONFERENCE"] = "Conference/Event";
|
|
17
|
+
Foreign_Purpose_of_Travel["SITE"] = "Site Visit";
|
|
18
|
+
Foreign_Purpose_of_Travel["AIRPORT"] = "Airport Duty";
|
|
19
|
+
Foreign_Purpose_of_Travel["OFFICIAL"] = "Official Meeting";
|
|
21
20
|
Foreign_Purpose_of_Travel["OTHER"] = "Other";
|
|
22
21
|
})(Foreign_Purpose_of_Travel || (exports.Foreign_Purpose_of_Travel = Foreign_Purpose_of_Travel = {}));
|
|
23
22
|
var Foreign_Vehicle_Required_Location;
|
|
@@ -87,9 +86,8 @@ __decorate([
|
|
|
87
86
|
], LogisticsForeignVehicleRequests.prototype, "number_of_passengers", void 0);
|
|
88
87
|
__decorate([
|
|
89
88
|
(0, typeorm_1.Column)({
|
|
90
|
-
type:
|
|
91
|
-
|
|
92
|
-
default: Foreign_Purpose_of_Travel.OTHER,
|
|
89
|
+
type: 'varchar',
|
|
90
|
+
default: 'Other',
|
|
93
91
|
nullable: false,
|
|
94
92
|
}),
|
|
95
93
|
__metadata("design:type", String)
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare enum NotificationType {
|
|
3
3
|
REQUEST_RAISED = "request raised",
|
|
4
|
+
REQUEST_APPROVE = "request approve",
|
|
5
|
+
REQUEST_REJECT = "request reject",
|
|
6
|
+
REQUEST_WITHDRAW = "request withdraw",
|
|
4
7
|
REMINDER = "reminder",
|
|
5
8
|
IMPORT = "import"
|
|
6
9
|
}
|
|
@@ -15,6 +15,9 @@ const BaseModel_1 = require("./BaseModel");
|
|
|
15
15
|
var NotificationType;
|
|
16
16
|
(function (NotificationType) {
|
|
17
17
|
NotificationType["REQUEST_RAISED"] = "request raised";
|
|
18
|
+
NotificationType["REQUEST_APPROVE"] = "request approve";
|
|
19
|
+
NotificationType["REQUEST_REJECT"] = "request reject";
|
|
20
|
+
NotificationType["REQUEST_WITHDRAW"] = "request withdraw";
|
|
18
21
|
NotificationType["REMINDER"] = "reminder";
|
|
19
22
|
NotificationType["IMPORT"] = "import";
|
|
20
23
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { Rating } from './feedbackModel';
|
|
3
|
+
export declare class PortalFeedback extends BaseModel {
|
|
4
|
+
comment: string;
|
|
5
|
+
rating: Rating;
|
|
6
|
+
user_Id: number;
|
|
7
|
+
constructor(comment: string, rating: Rating, user_Id: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PortalFeedback = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const feedbackModel_1 = require("./feedbackModel");
|
|
16
|
+
let PortalFeedback = class PortalFeedback extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(comment, rating, user_Id) {
|
|
18
|
+
super();
|
|
19
|
+
this.comment = comment,
|
|
20
|
+
this.rating = rating,
|
|
21
|
+
this.user_Id = user_Id;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.PortalFeedback = PortalFeedback;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PortalFeedback.prototype, "comment", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({
|
|
31
|
+
type: "enum",
|
|
32
|
+
enum: feedbackModel_1.Rating,
|
|
33
|
+
nullable: true,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], PortalFeedback.prototype, "rating", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], PortalFeedback.prototype, "user_Id", void 0);
|
|
41
|
+
exports.PortalFeedback = PortalFeedback = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'portal_feedback' }),
|
|
43
|
+
__metadata("design:paramtypes", [String, Number, Number])
|
|
44
|
+
], PortalFeedback);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { TaskType } from "./WorkflowTaskNames";
|
|
3
|
+
import { CategoryType } from "./WorkflowTaskNames";
|
|
2
4
|
export declare class WorkflowTask extends BaseModel {
|
|
3
5
|
task_id: number;
|
|
4
6
|
name: string;
|
|
5
|
-
task_type:
|
|
6
|
-
|
|
7
|
+
task_type: TaskType;
|
|
8
|
+
category: CategoryType;
|
|
9
|
+
constructor(name: string, task_id?: number, task_type?: TaskType, category?: CategoryType);
|
|
7
10
|
}
|
|
@@ -12,12 +12,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WorkflowTask = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const WorkflowTaskNames_1 = require("./WorkflowTaskNames");
|
|
16
|
+
const WorkflowTaskNames_2 = require("./WorkflowTaskNames");
|
|
17
|
+
// export enum TaskNameType {
|
|
18
|
+
// SIMPLE = 'SIMPLE',
|
|
19
|
+
// HUMAN = 'HUMAN'
|
|
20
|
+
// }
|
|
21
|
+
// export enum CategoryNameType {
|
|
22
|
+
// CREATE = 'CREATE',
|
|
23
|
+
// APPROVAL = 'APPROVAL',
|
|
24
|
+
// NOTIFICATION = 'NOTIFICATION'
|
|
25
|
+
// }
|
|
15
26
|
let WorkflowTask = class WorkflowTask extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, task_id, task_type) {
|
|
27
|
+
constructor(name, task_id, task_type, category) {
|
|
17
28
|
super();
|
|
18
29
|
this.name = name;
|
|
19
30
|
this.task_id = task_id || 0;
|
|
20
|
-
this.task_type = task_type ||
|
|
31
|
+
this.task_type = task_type || WorkflowTaskNames_1.TaskType.SIMPLE;
|
|
32
|
+
this.category = category || WorkflowTaskNames_2.CategoryType.CREATE;
|
|
21
33
|
}
|
|
22
34
|
};
|
|
23
35
|
exports.WorkflowTask = WorkflowTask;
|
|
@@ -30,10 +42,22 @@ __decorate([
|
|
|
30
42
|
__metadata("design:type", String)
|
|
31
43
|
], WorkflowTask.prototype, "name", void 0);
|
|
32
44
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({
|
|
45
|
+
(0, typeorm_1.Column)({
|
|
46
|
+
type: 'enum',
|
|
47
|
+
enum: WorkflowTaskNames_1.TaskType,
|
|
48
|
+
nullable: true
|
|
49
|
+
}),
|
|
34
50
|
__metadata("design:type", String)
|
|
35
51
|
], WorkflowTask.prototype, "task_type", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: 'enum',
|
|
55
|
+
enum: WorkflowTaskNames_2.CategoryType,
|
|
56
|
+
nullable: true
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], WorkflowTask.prototype, "category", void 0);
|
|
36
60
|
exports.WorkflowTask = WorkflowTask = __decorate([
|
|
37
61
|
(0, typeorm_1.Entity)({ name: 'workflow_tasks' }),
|
|
38
|
-
__metadata("design:paramtypes", [String, Number, String])
|
|
62
|
+
__metadata("design:paramtypes", [String, Number, String, String])
|
|
39
63
|
], WorkflowTask);
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum TaskType {
|
|
3
|
+
SIMPLE = "SIMPLE",
|
|
4
|
+
HUMAN = "HUMAN"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CategoryType {
|
|
7
|
+
CREATE = "CREATE",
|
|
8
|
+
APPROVAL = "APPROVAL",
|
|
9
|
+
NOTIFICATION = "NOTIFICATION"
|
|
10
|
+
}
|
|
2
11
|
export declare class WorkflowTaskNames extends BaseModel {
|
|
3
12
|
name: string;
|
|
4
|
-
task_id: number;
|
|
5
13
|
description: string;
|
|
6
|
-
task_type:
|
|
7
|
-
|
|
14
|
+
task_type: TaskType;
|
|
15
|
+
category: CategoryType;
|
|
16
|
+
constructor(name: string, description: string, task_type: TaskType, category: CategoryType);
|
|
8
17
|
}
|
|
@@ -9,16 +9,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.WorkflowTaskNames = void 0;
|
|
12
|
+
exports.WorkflowTaskNames = exports.CategoryType = exports.TaskType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TaskType;
|
|
16
|
+
(function (TaskType) {
|
|
17
|
+
TaskType["SIMPLE"] = "SIMPLE";
|
|
18
|
+
TaskType["HUMAN"] = "HUMAN";
|
|
19
|
+
})(TaskType || (exports.TaskType = TaskType = {}));
|
|
20
|
+
var CategoryType;
|
|
21
|
+
(function (CategoryType) {
|
|
22
|
+
CategoryType["CREATE"] = "CREATE";
|
|
23
|
+
CategoryType["APPROVAL"] = "APPROVAL";
|
|
24
|
+
CategoryType["NOTIFICATION"] = "NOTIFICATION";
|
|
25
|
+
})(CategoryType || (exports.CategoryType = CategoryType = {}));
|
|
15
26
|
let WorkflowTaskNames = class WorkflowTaskNames extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name,
|
|
27
|
+
constructor(name, description, task_type, category) {
|
|
17
28
|
super();
|
|
18
29
|
this.name = name;
|
|
19
|
-
this.task_id = task_id;
|
|
20
30
|
this.description = description;
|
|
21
31
|
this.task_type = task_type;
|
|
32
|
+
this.category = category;
|
|
22
33
|
}
|
|
23
34
|
};
|
|
24
35
|
exports.WorkflowTaskNames = WorkflowTaskNames;
|
|
@@ -26,19 +37,27 @@ __decorate([
|
|
|
26
37
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
27
38
|
__metadata("design:type", String)
|
|
28
39
|
], WorkflowTaskNames.prototype, "name", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], WorkflowTaskNames.prototype, "task_id", void 0);
|
|
33
40
|
__decorate([
|
|
34
41
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
35
42
|
__metadata("design:type", String)
|
|
36
43
|
], WorkflowTaskNames.prototype, "description", void 0);
|
|
37
44
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({
|
|
45
|
+
(0, typeorm_1.Column)({
|
|
46
|
+
type: 'enum',
|
|
47
|
+
enum: TaskType,
|
|
48
|
+
nullable: true
|
|
49
|
+
}),
|
|
39
50
|
__metadata("design:type", String)
|
|
40
51
|
], WorkflowTaskNames.prototype, "task_type", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: 'enum',
|
|
55
|
+
enum: CategoryType,
|
|
56
|
+
nullable: true
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], WorkflowTaskNames.prototype, "category", void 0);
|
|
41
60
|
exports.WorkflowTaskNames = WorkflowTaskNames = __decorate([
|
|
42
61
|
(0, typeorm_1.Entity)({ name: 'workflow_task_names' }),
|
|
43
|
-
__metadata("design:paramtypes", [String,
|
|
62
|
+
__metadata("design:paramtypes", [String, String, String, String])
|
|
44
63
|
], WorkflowTaskNames);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum Rating {
|
|
3
|
+
ONE = 1,
|
|
4
|
+
TWO = 2,
|
|
5
|
+
THREE = 3,
|
|
6
|
+
FOUR = 4,
|
|
7
|
+
FIVE = 5
|
|
8
|
+
}
|
|
9
|
+
export declare class Feedback extends BaseModel {
|
|
10
|
+
comment: string;
|
|
11
|
+
rating: Rating;
|
|
12
|
+
category_Id: number;
|
|
13
|
+
sub_category_Id: number;
|
|
14
|
+
user_Id: number;
|
|
15
|
+
constructor(comment: string, rating: Rating, category_Id: number, sub_category_Id: number, user_Id: number);
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Feedback = exports.Rating = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var Rating;
|
|
16
|
+
(function (Rating) {
|
|
17
|
+
Rating[Rating["ONE"] = 1] = "ONE";
|
|
18
|
+
Rating[Rating["TWO"] = 2] = "TWO";
|
|
19
|
+
Rating[Rating["THREE"] = 3] = "THREE";
|
|
20
|
+
Rating[Rating["FOUR"] = 4] = "FOUR";
|
|
21
|
+
Rating[Rating["FIVE"] = 5] = "FIVE";
|
|
22
|
+
})(Rating || (exports.Rating = Rating = {}));
|
|
23
|
+
let Feedback = class Feedback extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(comment, rating, category_Id, sub_category_Id, user_Id) {
|
|
25
|
+
super();
|
|
26
|
+
this.comment = comment,
|
|
27
|
+
this.rating = rating,
|
|
28
|
+
this.category_Id = category_Id,
|
|
29
|
+
this.sub_category_Id = sub_category_Id,
|
|
30
|
+
this.user_Id = user_Id;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.Feedback = Feedback;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Feedback.prototype, "comment", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({
|
|
40
|
+
type: "enum",
|
|
41
|
+
enum: Rating,
|
|
42
|
+
nullable: true,
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], Feedback.prototype, "rating", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], Feedback.prototype, "category_Id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], Feedback.prototype, "sub_category_Id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Feedback.prototype, "user_Id", void 0);
|
|
58
|
+
exports.Feedback = Feedback = __decorate([
|
|
59
|
+
(0, typeorm_1.Entity)({ name: 'feedback' }),
|
|
60
|
+
__metadata("design:paramtypes", [String, Number, Number, Number, Number])
|
|
61
|
+
], Feedback);
|