@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/src/data-source.ts
CHANGED
|
@@ -6,12 +6,12 @@ import { User } from './models/user'; // import all entities here
|
|
|
6
6
|
import { userSessions } from './models/user-sessions';
|
|
7
7
|
import { Role } from './models/role';
|
|
8
8
|
import { ITHelpDeskRequests } from './models/ITHelpDeskModel';
|
|
9
|
-
import { ITServicesTypesSalalah } from './models/ITServicesTypesSalalahModel';
|
|
10
|
-
import { ITServicesTypesMuscat } from './models/ITServicesTypesMuscatModel';
|
|
9
|
+
// import { ITServicesTypesSalalah } from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
10
|
+
// import { ITServicesTypesMuscat } from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
11
11
|
import { ServiceType } from './models/ServiceTypeModel';
|
|
12
12
|
import { CAAServices } from './models/CAAServices';
|
|
13
13
|
import { CAASubServices } from './models/CAASubServices';
|
|
14
|
-
import { ITApprovalSettings } from './models/ITApprovalSettings';
|
|
14
|
+
// import { ITApprovalSettings } from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
15
15
|
// import { Workflows } from './models/Workflows';
|
|
16
16
|
import { ItApprovalDetails } from './models/ItApprovalsModel';
|
|
17
17
|
import { ItWorkFlow } from './models/ItWorkflowModel';
|
|
@@ -39,11 +39,9 @@ import { LogisticsRequestAttachment } from './models/LogisticsAttachmentModel';
|
|
|
39
39
|
import { LogisticsWorkFlow } from './models/LogisticsWorkflowModel';
|
|
40
40
|
import { ImportantLinks } from './models/importantLinksModel';
|
|
41
41
|
import { DelegateSettings } from './models/DelegateSettingsModel';
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
|
|
45
|
-
import { HotelRequestChat } from './models/HotelChatModel';
|
|
46
|
-
import { HotelRequestAttachment } from './models/HotelAttachedModel';
|
|
42
|
+
import { Feedback } from './models/feedbackModel';
|
|
43
|
+
import { PortalFeedback } from './models/PortalFeedbackModel';
|
|
44
|
+
|
|
47
45
|
|
|
48
46
|
export const AppDataSource = new DataSource({
|
|
49
47
|
type: 'postgres',
|
|
@@ -58,12 +56,12 @@ export const AppDataSource = new DataSource({
|
|
|
58
56
|
User,userSessions,
|
|
59
57
|
Role,
|
|
60
58
|
ITHelpDeskRequests,
|
|
61
|
-
ITServicesTypesSalalah,
|
|
62
|
-
ITServicesTypesMuscat,
|
|
59
|
+
// ITServicesTypesSalalah, // REMOVED - table no longer used
|
|
60
|
+
// ITServicesTypesMuscat, // REMOVED - table no longer used
|
|
63
61
|
ServiceType,
|
|
64
62
|
CAAServices,
|
|
65
63
|
CAASubServices,
|
|
66
|
-
ITApprovalSettings,
|
|
64
|
+
// ITApprovalSettings, // REMOVED - table no longer used
|
|
67
65
|
// Workflows,
|
|
68
66
|
ItApprovalDetails,
|
|
69
67
|
ItWorkFlow,
|
|
@@ -91,10 +89,7 @@ export const AppDataSource = new DataSource({
|
|
|
91
89
|
LogisticsWorkFlow,
|
|
92
90
|
ImportantLinks,
|
|
93
91
|
DelegateSettings,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
HotelWorkFlow,
|
|
97
|
-
HotelRequestChat,
|
|
98
|
-
HotelRequestAttachment
|
|
92
|
+
Feedback,
|
|
93
|
+
PortalFeedback
|
|
99
94
|
],
|
|
100
95
|
});
|
package/src/index.ts
CHANGED
|
@@ -2,13 +2,13 @@ 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';
|
|
5
|
+
// export * from './models/ITServicesTypesSalalahModel'; // REMOVED - table no longer used
|
|
6
|
+
// export * from './models/ITServicesTypesMuscatModel'; // REMOVED - table no longer used
|
|
7
7
|
export * from './models/ServiceTypeModel';
|
|
8
8
|
export * from './models/CAAServices';
|
|
9
9
|
export * from './models/CAASubServices';
|
|
10
|
-
export * from './models/ITApprovalSettings';
|
|
11
|
-
// export * from './models/Workflows';
|
|
10
|
+
// export * from './models/ITApprovalSettings'; // REMOVED - table no longer used
|
|
11
|
+
// export * from './models/Workflows'; // REMOVED - table no longer used
|
|
12
12
|
export * from './models/ItApprovalsModel';
|
|
13
13
|
export * from './models/ItWorkflowModel';
|
|
14
14
|
export * from './models/WorkflowDefinitions';
|
|
@@ -35,8 +35,5 @@ export * from './models/LogisticsAttachmentModel';
|
|
|
35
35
|
export * from './models/importantLinksModel';
|
|
36
36
|
export * from './models/LogisticsWorkflowModel';
|
|
37
37
|
export * from './models/DelegateSettingsModel';
|
|
38
|
-
export * from './models/
|
|
39
|
-
export * from './models/
|
|
40
|
-
export * from './models/HotelWorkFlowModel';
|
|
41
|
-
export * from './models/HotelChatModel';
|
|
42
|
-
export * from './models/HotelAttachedModel';
|
|
38
|
+
export * from './models/feedbackModel';
|
|
39
|
+
export * from './models/PortalFeedbackModel';
|
|
@@ -53,17 +53,9 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
53
53
|
@Column({ type: "date", nullable: false })
|
|
54
54
|
request_date: Date;
|
|
55
55
|
|
|
56
|
-
@Column({ nullable: true })
|
|
57
|
-
attachment_url: string;
|
|
58
|
-
|
|
59
56
|
@Column({ nullable: false })
|
|
60
57
|
user_id: number;
|
|
61
58
|
|
|
62
|
-
@Column({ nullable: true })
|
|
63
|
-
reporting_manager: number;
|
|
64
|
-
|
|
65
|
-
@Column({ nullable: true })
|
|
66
|
-
assigned_to: number;
|
|
67
59
|
|
|
68
60
|
@Column({
|
|
69
61
|
type: "enum",
|
|
@@ -85,9 +77,6 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
85
77
|
extn_num: string,
|
|
86
78
|
contact_num: string,
|
|
87
79
|
request_date: Date,
|
|
88
|
-
attachment_url: string,
|
|
89
|
-
reporting_manager: number,
|
|
90
|
-
assigned_to: number,
|
|
91
80
|
status: status,
|
|
92
81
|
workflow_execution_id?: string,
|
|
93
82
|
req_user_department_id?: number | null,
|
|
@@ -103,9 +92,6 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
103
92
|
this.extn_num = extn_num;
|
|
104
93
|
this.contact_num = contact_num;
|
|
105
94
|
this.request_date = request_date;
|
|
106
|
-
this.attachment_url = attachment_url;
|
|
107
|
-
this.reporting_manager = reporting_manager;
|
|
108
|
-
this.assigned_to = assigned_to;
|
|
109
95
|
this.status = status;
|
|
110
96
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
111
97
|
this.req_user_department_id = req_user_department_id || null;
|
|
@@ -20,7 +20,7 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
20
20
|
approver_user_id: number | null;
|
|
21
21
|
|
|
22
22
|
@Column({ type: 'integer', nullable: false })
|
|
23
|
-
approver_role_id: number;
|
|
23
|
+
approver_role_id: number | null;
|
|
24
24
|
|
|
25
25
|
@Column({ type: 'integer', nullable: true })
|
|
26
26
|
department_id: number | null;
|
|
@@ -40,7 +40,7 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
40
40
|
constructor(
|
|
41
41
|
request_id: number,
|
|
42
42
|
approver_user_id: number | null,
|
|
43
|
-
approver_role_id: number,
|
|
43
|
+
approver_role_id: number | null,
|
|
44
44
|
comment: string,
|
|
45
45
|
approval_status: ApprovalStatus,
|
|
46
46
|
level: number,
|
|
@@ -13,16 +13,20 @@ 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
|
+
order: number | null;
|
|
18
|
+
|
|
16
19
|
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
17
20
|
content: string;
|
|
18
21
|
|
|
19
22
|
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
20
23
|
status: workFlowStatus;
|
|
21
24
|
|
|
22
|
-
constructor(request_id: number, content: string, status: workFlowStatus) {
|
|
25
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number) {
|
|
23
26
|
super();
|
|
24
27
|
this.request_id = request_id;
|
|
25
28
|
this.content = content;
|
|
26
29
|
this.status = status;
|
|
30
|
+
this.order = order || null;
|
|
27
31
|
}
|
|
28
32
|
}
|
|
@@ -2,10 +2,9 @@ import { Column, Entity } from "typeorm";
|
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
4
|
export enum Foreign_Purpose_of_Travel {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
CONFERENCE = "Conference/Event",
|
|
5
|
+
SITE = "Site Visit",
|
|
6
|
+
AIRPORT = "Airport Duty",
|
|
7
|
+
OFFICIAL = "Official Meeting",
|
|
9
8
|
OTHER = "Other"
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -48,13 +47,12 @@ export class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
48
47
|
@Column({ type: 'int', nullable: false })
|
|
49
48
|
number_of_passengers: number;
|
|
50
49
|
|
|
51
|
-
@Column({
|
|
52
|
-
type:
|
|
53
|
-
|
|
54
|
-
default: Foreign_Purpose_of_Travel.OTHER,
|
|
50
|
+
@Column({
|
|
51
|
+
type: 'varchar',
|
|
52
|
+
default: 'Other',
|
|
55
53
|
nullable: false,
|
|
56
54
|
})
|
|
57
|
-
purpose_of_travel:
|
|
55
|
+
purpose_of_travel: string;
|
|
58
56
|
|
|
59
57
|
@Column({
|
|
60
58
|
type: "enum",
|
|
@@ -108,7 +106,7 @@ export class LogisticsForeignVehicleRequests extends BaseModel {
|
|
|
108
106
|
sub_service_id: number,
|
|
109
107
|
user_id: number,
|
|
110
108
|
number_of_passengers: number,
|
|
111
|
-
purpose_of_travel:
|
|
109
|
+
purpose_of_travel: string,
|
|
112
110
|
vehicle_required_location: Foreign_Vehicle_Required_Location,
|
|
113
111
|
contact_number: string,
|
|
114
112
|
request_type: Foreign_Request_Type,
|
|
@@ -4,6 +4,9 @@ import { BaseModel } from './BaseModel';
|
|
|
4
4
|
|
|
5
5
|
export enum NotificationType {
|
|
6
6
|
REQUEST_RAISED = 'request raised',
|
|
7
|
+
REQUEST_APPROVE = 'request approve',
|
|
8
|
+
REQUEST_REJECT = 'request reject',
|
|
9
|
+
REQUEST_WITHDRAW = 'request withdraw',
|
|
7
10
|
REMINDER = 'reminder',
|
|
8
11
|
IMPORT = 'import',
|
|
9
12
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
import { Column, Entity } from "typeorm";
|
|
3
|
+
import { BaseModel } from './BaseModel';
|
|
4
|
+
import { Rating } from './feedbackModel';
|
|
5
|
+
|
|
6
|
+
@Entity({ name: 'portal_feedback' })
|
|
7
|
+
export class PortalFeedback extends BaseModel {
|
|
8
|
+
|
|
9
|
+
@Column({ nullable: true })
|
|
10
|
+
comment: string;
|
|
11
|
+
|
|
12
|
+
@Column({
|
|
13
|
+
type: "enum",
|
|
14
|
+
enum: Rating,
|
|
15
|
+
nullable: true,
|
|
16
|
+
})
|
|
17
|
+
rating: Rating;
|
|
18
|
+
|
|
19
|
+
@Column({ nullable: true })
|
|
20
|
+
user_Id: number;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
comment: string,
|
|
24
|
+
rating: Rating,
|
|
25
|
+
user_Id: number,
|
|
26
|
+
) {
|
|
27
|
+
super();
|
|
28
|
+
this.comment = comment,
|
|
29
|
+
this.rating = rating,
|
|
30
|
+
this.user_Id = user_Id
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { TaskType } from "./WorkflowTaskNames";
|
|
4
|
+
import { CategoryType } from "./WorkflowTaskNames";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// export enum TaskNameType {
|
|
8
|
+
// SIMPLE = 'SIMPLE',
|
|
9
|
+
// HUMAN = 'HUMAN'
|
|
10
|
+
// }
|
|
11
|
+
|
|
12
|
+
// export enum CategoryNameType {
|
|
13
|
+
// CREATE = 'CREATE',
|
|
14
|
+
// APPROVAL = 'APPROVAL',
|
|
15
|
+
// NOTIFICATION = 'NOTIFICATION'
|
|
16
|
+
// }
|
|
3
17
|
|
|
4
18
|
@Entity({ name: 'workflow_tasks' })
|
|
5
19
|
export class WorkflowTask extends BaseModel {
|
|
@@ -10,17 +24,30 @@ export class WorkflowTask extends BaseModel {
|
|
|
10
24
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
11
25
|
name: string;
|
|
12
26
|
|
|
13
|
-
@Column({
|
|
14
|
-
|
|
27
|
+
@Column({
|
|
28
|
+
type: 'enum',
|
|
29
|
+
enum: TaskType,
|
|
30
|
+
nullable: true
|
|
31
|
+
})
|
|
32
|
+
task_type: TaskType;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: CategoryType,
|
|
37
|
+
nullable: true
|
|
38
|
+
})
|
|
39
|
+
category: CategoryType;
|
|
15
40
|
|
|
16
41
|
constructor(
|
|
17
42
|
name: string,
|
|
18
43
|
task_id?: number,
|
|
19
|
-
task_type?:
|
|
44
|
+
task_type?: TaskType,
|
|
45
|
+
category?: CategoryType
|
|
20
46
|
) {
|
|
21
47
|
super();
|
|
22
48
|
this.name = name;
|
|
23
49
|
this.task_id = task_id || 0;
|
|
24
|
-
this.task_type = task_type ||
|
|
50
|
+
this.task_type = task_type || TaskType.SIMPLE;
|
|
51
|
+
this.category = category || CategoryType.CREATE;
|
|
25
52
|
}
|
|
26
53
|
}
|
|
@@ -1,31 +1,50 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
+
export enum TaskType {
|
|
5
|
+
SIMPLE = 'SIMPLE',
|
|
6
|
+
HUMAN = 'HUMAN'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum CategoryType {
|
|
10
|
+
CREATE = 'CREATE',
|
|
11
|
+
APPROVAL = 'APPROVAL',
|
|
12
|
+
NOTIFICATION = 'NOTIFICATION'
|
|
13
|
+
}
|
|
14
|
+
|
|
4
15
|
@Entity({ name: 'workflow_task_names' })
|
|
5
16
|
export class WorkflowTaskNames extends BaseModel {
|
|
6
17
|
|
|
7
18
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
19
|
name: string;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'integer', nullable: false })
|
|
11
|
-
task_id: number;
|
|
12
20
|
|
|
13
21
|
@Column({ type: 'varchar', length: 200, nullable: true })
|
|
14
22
|
description: string;
|
|
15
23
|
|
|
16
|
-
@Column({
|
|
17
|
-
|
|
24
|
+
@Column({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: TaskType,
|
|
27
|
+
nullable: true
|
|
28
|
+
})
|
|
29
|
+
task_type: TaskType;
|
|
30
|
+
|
|
31
|
+
@Column({
|
|
32
|
+
type: 'enum',
|
|
33
|
+
enum: CategoryType,
|
|
34
|
+
nullable: true
|
|
35
|
+
})
|
|
36
|
+
category: CategoryType;
|
|
18
37
|
|
|
19
38
|
constructor(
|
|
20
39
|
name: string,
|
|
21
|
-
task_id: number,
|
|
22
40
|
description: string,
|
|
23
|
-
task_type:
|
|
41
|
+
task_type: TaskType,
|
|
42
|
+
category: CategoryType
|
|
24
43
|
) {
|
|
25
44
|
super();
|
|
26
45
|
this.name = name;
|
|
27
|
-
this.task_id = task_id;
|
|
28
46
|
this.description = description;
|
|
29
47
|
this.task_type = task_type;
|
|
48
|
+
this.category = category;
|
|
30
49
|
}
|
|
31
50
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
import { Column, Entity, BeforeInsert, BeforeUpdate } from "typeorm";
|
|
3
|
+
import { BaseModel } from './BaseModel';
|
|
4
|
+
|
|
5
|
+
export enum Rating {
|
|
6
|
+
ONE = 1,
|
|
7
|
+
TWO = 2,
|
|
8
|
+
THREE = 3,
|
|
9
|
+
FOUR = 4,
|
|
10
|
+
FIVE = 5,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'feedback' })
|
|
14
|
+
export class Feedback extends BaseModel {
|
|
15
|
+
|
|
16
|
+
@Column({ nullable: true })
|
|
17
|
+
comment: string;
|
|
18
|
+
|
|
19
|
+
@Column({
|
|
20
|
+
type: "enum",
|
|
21
|
+
enum: Rating,
|
|
22
|
+
nullable: true,
|
|
23
|
+
})
|
|
24
|
+
rating: Rating;
|
|
25
|
+
|
|
26
|
+
@Column({ nullable: true })
|
|
27
|
+
category_Id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ nullable: true })
|
|
30
|
+
sub_category_Id: number;
|
|
31
|
+
|
|
32
|
+
@Column({ nullable: true })
|
|
33
|
+
user_Id: number;
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
comment: string,
|
|
37
|
+
rating: Rating,
|
|
38
|
+
category_Id: number,
|
|
39
|
+
sub_category_Id: number,
|
|
40
|
+
user_Id: number,
|
|
41
|
+
) {
|
|
42
|
+
super();
|
|
43
|
+
this.comment = comment,
|
|
44
|
+
this.rating = rating,
|
|
45
|
+
this.category_Id = category_Id,
|
|
46
|
+
this.sub_category_Id = sub_category_Id,
|
|
47
|
+
this.user_Id = user_Id
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum HotelApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare class HotelApprovalDetails extends BaseModel {
|
|
9
|
-
request_id: number;
|
|
10
|
-
service_id: number | null;
|
|
11
|
-
sub_service_id: number | null;
|
|
12
|
-
level: number;
|
|
13
|
-
approver_role_id: number;
|
|
14
|
-
department_id: number | null;
|
|
15
|
-
section_id: number | null;
|
|
16
|
-
approver_user_id: number | null;
|
|
17
|
-
delegate_user_id: number | null;
|
|
18
|
-
approved_by: number | null;
|
|
19
|
-
comment: string;
|
|
20
|
-
approval_status: HotelApprovalStatus;
|
|
21
|
-
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: HotelApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number);
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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.HotelApprovalDetails = exports.HotelApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var HotelApprovalStatus;
|
|
16
|
-
(function (HotelApprovalStatus) {
|
|
17
|
-
HotelApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
HotelApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
HotelApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
HotelApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(HotelApprovalStatus || (exports.HotelApprovalStatus = HotelApprovalStatus = {}));
|
|
22
|
-
let HotelApprovalDetails = class HotelApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
|
|
24
|
-
super();
|
|
25
|
-
this.request_id = request_id;
|
|
26
|
-
this.service_id = service_id || null;
|
|
27
|
-
this.sub_service_id = sub_service_id || null;
|
|
28
|
-
this.approver_role_id = approver_role_id;
|
|
29
|
-
this.comment = comment;
|
|
30
|
-
this.approval_status = approval_status;
|
|
31
|
-
this.level = level;
|
|
32
|
-
this.department_id = department_id || null;
|
|
33
|
-
this.section_id = section_id || null;
|
|
34
|
-
this.approver_user_id = approver_user_id || null;
|
|
35
|
-
this.delegate_user_id = delegate_user_id || null;
|
|
36
|
-
this.approved_by = approved_by || null;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.HotelApprovalDetails = HotelApprovalDetails;
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], HotelApprovalDetails.prototype, "request_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], HotelApprovalDetails.prototype, "service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], HotelApprovalDetails.prototype, "sub_service_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], HotelApprovalDetails.prototype, "level", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], HotelApprovalDetails.prototype, "approver_role_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], HotelApprovalDetails.prototype, "department_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], HotelApprovalDetails.prototype, "section_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], HotelApprovalDetails.prototype, "approver_user_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], HotelApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], HotelApprovalDetails.prototype, "approved_by", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], HotelApprovalDetails.prototype, "comment", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: HotelApprovalStatus, default: HotelApprovalStatus.PENDING, nullable: false }),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], HotelApprovalDetails.prototype, "approval_status", void 0);
|
|
88
|
-
exports.HotelApprovalDetails = HotelApprovalDetails = __decorate([
|
|
89
|
-
(0, typeorm_1.Entity)({ name: 'hotel_approvals' }),
|
|
90
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
|
|
91
|
-
], HotelApprovalDetails);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class HotelRequestAttachment extends BaseModel {
|
|
3
|
-
request_id: number;
|
|
4
|
-
service_id: number | null;
|
|
5
|
-
sub_service_id: number | null;
|
|
6
|
-
file_url: string;
|
|
7
|
-
file_name: string;
|
|
8
|
-
file_type: string;
|
|
9
|
-
file_size: number | null;
|
|
10
|
-
chat_id: number | null;
|
|
11
|
-
constructor(request_id: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number);
|
|
12
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
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.HotelRequestAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HotelRequestAttachment = class HotelRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id) {
|
|
17
|
-
super();
|
|
18
|
-
this.request_id = request_id;
|
|
19
|
-
this.service_id = service_id || null;
|
|
20
|
-
this.sub_service_id = sub_service_id || null;
|
|
21
|
-
this.file_url = file_url;
|
|
22
|
-
this.file_name = file_name || '';
|
|
23
|
-
this.file_type = file_type || '';
|
|
24
|
-
this.file_size = file_size || null;
|
|
25
|
-
this.chat_id = chat_id || null;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.HotelRequestAttachment = HotelRequestAttachment;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], HotelRequestAttachment.prototype, "request_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], HotelRequestAttachment.prototype, "service_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], HotelRequestAttachment.prototype, "sub_service_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], HotelRequestAttachment.prototype, "file_url", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], HotelRequestAttachment.prototype, "file_name", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], HotelRequestAttachment.prototype, "file_type", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], HotelRequestAttachment.prototype, "file_size", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], HotelRequestAttachment.prototype, "chat_id", void 0);
|
|
61
|
-
exports.HotelRequestAttachment = HotelRequestAttachment = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)({ name: 'hotel_request_attachments' }),
|
|
63
|
-
__metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
|
|
64
|
-
], HotelRequestAttachment);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum HotelMessageTypes {
|
|
3
|
-
TEXT = "text",
|
|
4
|
-
IMAGE = "image",
|
|
5
|
-
VIDEO = "video",
|
|
6
|
-
FILE = "file",
|
|
7
|
-
LINK = "link"
|
|
8
|
-
}
|
|
9
|
-
export declare class HotelRequestChat extends BaseModel {
|
|
10
|
-
request_id: number;
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
sub_service_id: number | null;
|
|
13
|
-
user_id: number;
|
|
14
|
-
message: string;
|
|
15
|
-
messageType: HotelMessageTypes;
|
|
16
|
-
constructor(request_id: number, user_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: HotelMessageTypes);
|
|
17
|
-
}
|