@platform-modules/civil-aviation-authority 2.0.82 → 2.0.90
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 +1 -11
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -5
- package/dist/models/ITHelpDeskModel.d.ts +5 -1
- package/dist/models/ITHelpDeskModel.js +22 -2
- package/dist/models/ITRequestAttachmentModel.d.ts +3 -1
- package/dist/models/ITRequestAttachmentModel.js +12 -2
- package/dist/models/ItApprovalsModel.d.ts +4 -1
- package/dist/models/ItApprovalsModel.js +17 -2
- package/dist/models/ItWorkflowModel.d.ts +3 -1
- package/dist/models/ItWorkflowModel.js +12 -2
- package/dist/models/VpnApprovalModel.d.ts +4 -2
- package/dist/models/VpnApprovalModel.js +8 -2
- package/dist/models/WorkflowTask.d.ts +4 -1
- package/dist/models/WorkflowTask.js +17 -2
- package/package.json +1 -1
- package/src/data-source.ts +1 -11
- package/src/index.ts +0 -5
- package/src/models/ITHelpDeskModel.ts +120 -100
- package/src/models/ITRequestAttachmentModel.ts +11 -1
- package/src/models/ItApprovalsModel.ts +11 -1
- package/src/models/ItWorkflowModel.ts +9 -1
- package/src/models/VpnApprovalModel.ts +8 -2
- package/src/models/WorkflowTask.ts +16 -1
- package/src/models/user.ts +1 -0
- package/dist/models/HotelApprovalModel.d.ts +0 -22
- package/dist/models/HotelApprovalModel.js +0 -91
- package/dist/models/HotelAttachedModel.d.ts +0 -14
- package/dist/models/HotelAttachedModel.js +0 -74
- package/dist/models/HotelChatModel.d.ts +0 -17
- package/dist/models/HotelChatModel.js +0 -67
- package/dist/models/HotelWorkFlowModel.d.ts +0 -14
- package/dist/models/HotelWorkFlowModel.js +0 -56
- package/dist/models/HotelreservationModal.d.ts +0 -30
- package/dist/models/HotelreservationModal.js +0 -119
- package/dist/models/HotelreservationModel.d.ts +0 -44
- package/dist/models/HotelreservationModel.js +0 -172
- 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/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
- package/src/models/HotelApprovalModel.ts +0 -79
- package/src/models/HotelAttachedModel.ts +0 -64
- package/src/models/HotelChatModel.ts +0 -55
- package/src/models/HotelWorkFlowModel.ts +0 -42
- package/src/models/HotelreservationModel.ts +0 -161
|
@@ -1,101 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity } from "typeorm";
|
|
3
|
-
import { BaseModel } from './BaseModel';
|
|
4
|
-
export enum ContactFor {
|
|
5
|
-
SELF = "Self",
|
|
6
|
-
BEHALFOF = "Behalf of"
|
|
7
|
-
}
|
|
8
|
-
export enum status {
|
|
9
|
-
PENDING = "Pending",
|
|
10
|
-
ASSIGNED = "Assigned",
|
|
11
|
-
IN_PROGRESS = "In Progress",
|
|
12
|
-
APPROVED = "Approved",
|
|
13
|
-
REJECTED = "Rejected"
|
|
14
|
-
}
|
|
15
|
-
@Entity({ name: 'it_help_desk_requests' })
|
|
16
|
-
export class ITHelpDeskRequests extends BaseModel {
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: true })
|
|
19
|
-
req_user_department_id: number | null;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
req_user_section_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ nullable: true })
|
|
25
|
-
service_id: number;
|
|
26
|
-
|
|
27
|
-
@Column({ nullable: true })
|
|
28
|
-
sub_service_id: number;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'int', nullable: true })
|
|
31
|
-
service_type_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ nullable: false })
|
|
34
|
-
problem: string;
|
|
35
|
-
|
|
36
|
-
@Column({
|
|
37
|
-
type: "enum",
|
|
38
|
-
enum: ContactFor,
|
|
39
|
-
default: ContactFor.SELF,
|
|
40
|
-
nullable: false,
|
|
41
|
-
})
|
|
42
|
-
request_for: ContactFor;
|
|
43
|
-
|
|
44
|
-
@Column({ nullable: false })
|
|
45
|
-
description: string;
|
|
46
|
-
|
|
47
|
-
@Column({ nullable: false })
|
|
48
|
-
extn_num: string;
|
|
49
|
-
|
|
50
|
-
@Column({ nullable: false })
|
|
51
|
-
contact_num: string;
|
|
52
|
-
|
|
53
|
-
@Column({ type:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
@Column({ nullable:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@Column({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
|
|
2
|
+
import { Column, Entity } from "typeorm";
|
|
3
|
+
import { BaseModel } from './BaseModel';
|
|
4
|
+
export enum ContactFor {
|
|
5
|
+
SELF = "Self",
|
|
6
|
+
BEHALFOF = "Behalf of"
|
|
7
|
+
}
|
|
8
|
+
export enum status {
|
|
9
|
+
PENDING = "Pending",
|
|
10
|
+
ASSIGNED = "Assigned",
|
|
11
|
+
IN_PROGRESS = "In Progress",
|
|
12
|
+
APPROVED = "Approved",
|
|
13
|
+
REJECTED = "Rejected"
|
|
14
|
+
}
|
|
15
|
+
@Entity({ name: 'it_help_desk_requests' })
|
|
16
|
+
export class ITHelpDeskRequests extends BaseModel {
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
req_user_section_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ nullable: true })
|
|
25
|
+
service_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ nullable: true })
|
|
28
|
+
sub_service_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'int', nullable: true })
|
|
31
|
+
service_type_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ nullable: false })
|
|
34
|
+
problem: string;
|
|
35
|
+
|
|
36
|
+
@Column({
|
|
37
|
+
type: "enum",
|
|
38
|
+
enum: ContactFor,
|
|
39
|
+
default: ContactFor.SELF,
|
|
40
|
+
nullable: false,
|
|
41
|
+
})
|
|
42
|
+
request_for: ContactFor;
|
|
43
|
+
|
|
44
|
+
@Column({ nullable: false })
|
|
45
|
+
description: string;
|
|
46
|
+
|
|
47
|
+
@Column({ nullable: false })
|
|
48
|
+
extn_num: string;
|
|
49
|
+
|
|
50
|
+
@Column({ nullable: false })
|
|
51
|
+
contact_num: string;
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
|
+
email: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'varchar', length: 30, nullable: true })
|
|
57
|
+
request_type: string;
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
60
|
+
person_name: string | null;
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'varchar', length: 20, nullable: true })
|
|
63
|
+
person_contact_number: string | null;
|
|
64
|
+
|
|
65
|
+
@Column({ type: "date", nullable: false })
|
|
66
|
+
request_date: Date;
|
|
67
|
+
|
|
68
|
+
@Column({ nullable: false })
|
|
69
|
+
user_id: number;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@Column({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: status,
|
|
75
|
+
default: status.PENDING,
|
|
76
|
+
nullable: false,
|
|
77
|
+
})
|
|
78
|
+
status: status;
|
|
79
|
+
|
|
80
|
+
@Column({ type: "varchar", nullable: true })
|
|
81
|
+
workflow_execution_id: string | null;
|
|
82
|
+
|
|
83
|
+
constructor(
|
|
84
|
+
service_id: number,
|
|
85
|
+
sub_service_id: number,
|
|
86
|
+
problem: string,
|
|
87
|
+
request_for: ContactFor,
|
|
88
|
+
description: string,
|
|
89
|
+
extn_num: string,
|
|
90
|
+
contact_num: string,
|
|
91
|
+
request_date: Date,
|
|
92
|
+
status: status,
|
|
93
|
+
workflow_execution_id?: string,
|
|
94
|
+
req_user_department_id?: number | null,
|
|
95
|
+
req_user_section_id?: number | null,
|
|
96
|
+
service_type_id?: number | null,
|
|
97
|
+
person_name?: string | null,
|
|
98
|
+
person_contact_number?: string | null,
|
|
99
|
+
email?: string | null,
|
|
100
|
+
request_type?: string
|
|
101
|
+
) {
|
|
102
|
+
super();
|
|
103
|
+
this.service_id = service_id;
|
|
104
|
+
this.sub_service_id = sub_service_id;
|
|
105
|
+
this.problem = problem;
|
|
106
|
+
this.request_for = request_for;
|
|
107
|
+
this.description = description;
|
|
108
|
+
this.extn_num = extn_num;
|
|
109
|
+
this.contact_num = contact_num;
|
|
110
|
+
this.email = email || null;
|
|
111
|
+
this.request_type = request_type || 'internal';
|
|
112
|
+
this.person_name = person_name || null;
|
|
113
|
+
this.person_contact_number = person_contact_number || null;
|
|
114
|
+
this.request_date = request_date;
|
|
115
|
+
this.status = status;
|
|
116
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
117
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
118
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
119
|
+
this.service_type_id = service_type_id || null;
|
|
120
|
+
}
|
|
101
121
|
}
|
|
@@ -13,6 +13,12 @@ export class ITRequestAttachment extends BaseModel {
|
|
|
13
13
|
@JoinColumn({ name: 'request_id' })
|
|
14
14
|
request: ITHelpDeskRequests;
|
|
15
15
|
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
16
22
|
@Column({ type: 'integer', nullable: false })
|
|
17
23
|
uploaded_by: number;
|
|
18
24
|
|
|
@@ -42,7 +48,9 @@ export class ITRequestAttachment extends BaseModel {
|
|
|
42
48
|
file_name?: string,
|
|
43
49
|
file_type?: string,
|
|
44
50
|
file_size?: number,
|
|
45
|
-
description?: string
|
|
51
|
+
description?: string,
|
|
52
|
+
service_id?: number | null,
|
|
53
|
+
sub_service_id?: number | null
|
|
46
54
|
) {
|
|
47
55
|
super();
|
|
48
56
|
this.request_id = request_id;
|
|
@@ -52,6 +60,8 @@ export class ITRequestAttachment extends BaseModel {
|
|
|
52
60
|
this.file_type = file_type || '';
|
|
53
61
|
this.file_size = file_size || null;
|
|
54
62
|
this.description = description || '';
|
|
63
|
+
this.service_id = service_id ?? null;
|
|
64
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
67
|
|
|
@@ -13,6 +13,12 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
13
13
|
@Column({ type: 'integer', nullable: false })
|
|
14
14
|
request_id: number;
|
|
15
15
|
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
16
22
|
@Column({ type: 'integer', nullable: false })
|
|
17
23
|
level: number;
|
|
18
24
|
|
|
@@ -46,7 +52,9 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
46
52
|
level: number,
|
|
47
53
|
department_id?: number | null,
|
|
48
54
|
section_id?: number | null,
|
|
49
|
-
approved_by?: number | null
|
|
55
|
+
approved_by?: number | null,
|
|
56
|
+
service_id?: number | null,
|
|
57
|
+
sub_service_id?: number | null
|
|
50
58
|
) {
|
|
51
59
|
super();
|
|
52
60
|
this.request_id = request_id;
|
|
@@ -58,5 +66,7 @@ export class ItApprovalDetails extends BaseModel {
|
|
|
58
66
|
this.department_id = department_id || null;
|
|
59
67
|
this.section_id = section_id || null;
|
|
60
68
|
this.approved_by = approved_by || null;
|
|
69
|
+
this.service_id = service_id ?? null;
|
|
70
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
61
71
|
}
|
|
62
72
|
}
|
|
@@ -13,6 +13,12 @@ export class ItWorkFlow extends BaseModel {
|
|
|
13
13
|
@Column({ type: 'int', nullable: false })
|
|
14
14
|
request_id: number;
|
|
15
15
|
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
16
22
|
@Column({ type: 'int', nullable: true })
|
|
17
23
|
order: number | null;
|
|
18
24
|
|
|
@@ -22,11 +28,13 @@ export class ItWorkFlow extends BaseModel {
|
|
|
22
28
|
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
23
29
|
status: workFlowStatus;
|
|
24
30
|
|
|
25
|
-
constructor(request_id: number, content: string, status: workFlowStatus, order?: number) {
|
|
31
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null) {
|
|
26
32
|
super();
|
|
27
33
|
this.request_id = request_id;
|
|
28
34
|
this.content = content;
|
|
29
35
|
this.status = status;
|
|
30
36
|
this.order = order || null;
|
|
37
|
+
this.service_id = service_id ?? null;
|
|
38
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
31
39
|
}
|
|
32
40
|
}
|
|
@@ -5,7 +5,8 @@ export enum VpnApprovalStatus {
|
|
|
5
5
|
PENDING = "Pending",
|
|
6
6
|
IN_PROGRESS = "In Progress",
|
|
7
7
|
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
ASSIGNED = "Assigned"
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
@Entity({ name: "vpn_approvals" })
|
|
@@ -42,6 +43,9 @@ export class VpnApprovalDetails extends BaseModel {
|
|
|
42
43
|
})
|
|
43
44
|
approval_status: VpnApprovalStatus;
|
|
44
45
|
|
|
46
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
47
|
+
is_manager: boolean;
|
|
48
|
+
|
|
45
49
|
constructor(
|
|
46
50
|
request_id: number,
|
|
47
51
|
approver_user_id: number | null,
|
|
@@ -51,7 +55,8 @@ export class VpnApprovalDetails extends BaseModel {
|
|
|
51
55
|
level: number,
|
|
52
56
|
department_id?: number | null,
|
|
53
57
|
section_id?: number | null,
|
|
54
|
-
approved_by?: number | null
|
|
58
|
+
approved_by?: number | null,
|
|
59
|
+
is_manager?: boolean
|
|
55
60
|
) {
|
|
56
61
|
super();
|
|
57
62
|
this.request_id = request_id;
|
|
@@ -63,6 +68,7 @@ export class VpnApprovalDetails extends BaseModel {
|
|
|
63
68
|
this.department_id = department_id || null;
|
|
64
69
|
this.section_id = section_id || null;
|
|
65
70
|
this.approved_by = approved_by || null;
|
|
71
|
+
this.is_manager = is_manager ?? false;
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -24,6 +24,15 @@ export class WorkflowTask extends BaseModel {
|
|
|
24
24
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
25
25
|
name: string;
|
|
26
26
|
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
service_id?: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'int', nullable: true })
|
|
31
|
+
sub_service_id?: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
34
|
+
service_type?: string | null;
|
|
35
|
+
|
|
27
36
|
@Column({
|
|
28
37
|
type: 'enum',
|
|
29
38
|
enum: TaskType,
|
|
@@ -42,12 +51,18 @@ export class WorkflowTask extends BaseModel {
|
|
|
42
51
|
name: string,
|
|
43
52
|
task_id?: number,
|
|
44
53
|
task_type?: TaskType,
|
|
45
|
-
category?: CategoryType
|
|
54
|
+
category?: CategoryType,
|
|
55
|
+
service_id?: number | null,
|
|
56
|
+
sub_service_id?: number | null,
|
|
57
|
+
service_type?: string | null
|
|
46
58
|
) {
|
|
47
59
|
super();
|
|
48
60
|
this.name = name;
|
|
49
61
|
this.task_id = task_id || 0;
|
|
50
62
|
this.task_type = task_type || TaskType.SIMPLE;
|
|
51
63
|
this.category = category || CategoryType.CREATE;
|
|
64
|
+
this.service_id = service_id ?? null;
|
|
65
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
66
|
+
this.service_type = service_type ?? null;
|
|
52
67
|
}
|
|
53
68
|
}
|
package/src/models/user.ts
CHANGED
|
@@ -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: 'hotelapprovals' }),
|
|
90
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
|
|
91
|
-
], HotelApprovalDetails);
|
|
@@ -1,14 +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
|
-
uploaded_by: number;
|
|
12
|
-
description: string;
|
|
13
|
-
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number, description?: string);
|
|
14
|
-
}
|
|
@@ -1,74 +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, uploaded_by, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id, description) {
|
|
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
|
-
this.uploaded_by = uploaded_by;
|
|
27
|
-
this.description = description || '';
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.HotelRequestAttachment = HotelRequestAttachment;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], HotelRequestAttachment.prototype, "request_id", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], HotelRequestAttachment.prototype, "service_id", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], HotelRequestAttachment.prototype, "sub_service_id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], HotelRequestAttachment.prototype, "file_url", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], HotelRequestAttachment.prototype, "file_name", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], HotelRequestAttachment.prototype, "file_type", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], HotelRequestAttachment.prototype, "file_size", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], HotelRequestAttachment.prototype, "chat_id", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], HotelRequestAttachment.prototype, "uploaded_by", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], HotelRequestAttachment.prototype, "description", void 0);
|
|
71
|
-
exports.HotelRequestAttachment = HotelRequestAttachment = __decorate([
|
|
72
|
-
(0, typeorm_1.Entity)({ name: 'hotel_request_attachments' }),
|
|
73
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, Number, Number, Number, Number, String])
|
|
74
|
-
], 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
|
-
}
|