@platform-modules/civil-aviation-authority 2.3.97 → 2.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +17 -9
- package/dist/index.d.ts +10 -0
- package/dist/index.js +12 -0
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/HousingContractCancelApprovalModel.d.ts +23 -0
- package/dist/models/HousingContractCancelApprovalModel.js +88 -0
- package/dist/models/HousingContractCancelAttachmentModel.d.ts +12 -0
- package/dist/models/HousingContractCancelAttachmentModel.js +56 -0
- package/dist/models/HousingContractCancelChatModel.d.ts +18 -0
- package/dist/models/HousingContractCancelChatModel.js +60 -0
- package/dist/models/HousingContractCancelRequestModel.d.ts +31 -0
- package/dist/models/HousingContractCancelRequestModel.js +107 -0
- package/dist/models/HousingContractCancelWorkflowModel.d.ts +25 -0
- package/dist/models/HousingContractCancelWorkflowModel.js +88 -0
- package/dist/models/HousingContractRenewalApprovalModel.d.ts +23 -0
- package/dist/models/HousingContractRenewalApprovalModel.js +88 -0
- package/dist/models/HousingContractRenewalAttachmentModel.d.ts +12 -0
- package/dist/models/HousingContractRenewalAttachmentModel.js +56 -0
- package/dist/models/HousingContractRenewalChatModel.d.ts +18 -0
- package/dist/models/HousingContractRenewalChatModel.js +60 -0
- package/dist/models/HousingContractRenewalRequestModel.d.ts +32 -0
- package/dist/models/HousingContractRenewalRequestModel.js +107 -0
- package/dist/models/HousingContractRenewalWorkflowModel.d.ts +25 -0
- package/dist/models/HousingContractRenewalWorkflowModel.js +88 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -10
- package/src/index.ts +15 -1
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/HousingContractCancelApprovalModel.ts +61 -0
- package/src/models/HousingContractCancelAttachmentModel.ts +34 -0
- package/src/models/HousingContractCancelChatModel.ts +39 -0
- package/src/models/HousingContractCancelRequestModel.ts +76 -0
- package/src/models/HousingContractCancelWorkflowModel.ts +60 -0
- package/src/models/HousingContractRenewalApprovalModel.ts +61 -0
- package/src/models/HousingContractRenewalAttachmentModel.ts +34 -0
- package/src/models/HousingContractRenewalChatModel.ts +39 -0
- package/src/models/HousingContractRenewalRequestModel.ts +77 -0
- package/src/models/HousingContractRenewalWorkflowModel.ts +60 -0
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PerformanceCyclePeriodModel.ts +23 -23
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- 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 -9
- package/dist/models/Workflows.js +0 -31
|
@@ -45,12 +45,12 @@ export class CashAllowanceLeaveRequest extends BaseModel {
|
|
|
45
45
|
@Column({ type: "timestamp", nullable: true })
|
|
46
46
|
assigned_at: Date | null;
|
|
47
47
|
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
-
workflow_execution_id: string | null;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
-
reference_number: string | null;
|
|
53
|
-
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
+
workflow_execution_id: string | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
+
reference_number: string | null;
|
|
53
|
+
|
|
54
54
|
// Cash Allowance for Leave specific fields
|
|
55
55
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
56
56
|
employee_name: string;
|
|
@@ -112,11 +112,11 @@ export class CashAllowanceLeaveRequest extends BaseModel {
|
|
|
112
112
|
this.req_user_position_id = req_user_position_id || null;
|
|
113
113
|
this.description = description || null;
|
|
114
114
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
115
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
116
|
-
this.assigned_at = assigned_at || null;
|
|
117
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
118
|
-
this.reference_number = null;
|
|
119
|
-
this.employee_name = employee_name || "";
|
|
115
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
116
|
+
this.assigned_at = assigned_at || null;
|
|
117
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
118
|
+
this.reference_number = null;
|
|
119
|
+
this.employee_name = employee_name || "";
|
|
120
120
|
this.employee_id = employee_id || "";
|
|
121
121
|
this.job_title = job_title || "";
|
|
122
122
|
this.salary_grade = salary_grade || "";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'departments' })
|
|
5
|
-
export class Departments extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'varchar', length: 64, nullable: false})
|
|
8
|
-
department_name: string;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'varchar', length: 64, nullable: false})
|
|
11
|
-
department_code: string;
|
|
12
|
-
|
|
13
|
-
@Column({ nullable: false })
|
|
14
|
-
department_description: string;
|
|
15
|
-
|
|
16
|
-
constructor(
|
|
17
|
-
department_name: string,
|
|
18
|
-
department_code: string,
|
|
19
|
-
department_description: string,
|
|
20
|
-
) {
|
|
21
|
-
super();
|
|
22
|
-
this.department_name = department_name
|
|
23
|
-
this.department_code = department_code
|
|
24
|
-
this.department_description = department_description
|
|
25
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'departments' })
|
|
5
|
+
export class Departments extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', length: 64, nullable: false})
|
|
8
|
+
department_name: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'varchar', length: 64, nullable: false})
|
|
11
|
+
department_code: string;
|
|
12
|
+
|
|
13
|
+
@Column({ nullable: false })
|
|
14
|
+
department_description: string;
|
|
15
|
+
|
|
16
|
+
constructor(
|
|
17
|
+
department_name: string,
|
|
18
|
+
department_code: string,
|
|
19
|
+
department_description: string,
|
|
20
|
+
) {
|
|
21
|
+
super();
|
|
22
|
+
this.department_name = department_name
|
|
23
|
+
this.department_code = department_code
|
|
24
|
+
this.department_description = department_description
|
|
25
|
+
}
|
|
26
26
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractCancelApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'housing_contract_cancel_approvals' })
|
|
12
|
+
export class HousingContractCancelApproval extends BaseModel {
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'int', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'int', nullable: false })
|
|
18
|
+
service_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: false })
|
|
21
|
+
sub_service_id: number;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
approver_role_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
approver_user_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: true })
|
|
30
|
+
delegate_user_id: number;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: true })
|
|
33
|
+
approved_by: number;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: true })
|
|
36
|
+
department_id: number;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
section_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'int', nullable: false })
|
|
42
|
+
level: number;
|
|
43
|
+
|
|
44
|
+
@Column({
|
|
45
|
+
type: 'enum',
|
|
46
|
+
enum: HousingContractCancelApprovalStatus,
|
|
47
|
+
default: HousingContractCancelApprovalStatus.PENDING,
|
|
48
|
+
nullable: false
|
|
49
|
+
})
|
|
50
|
+
approval_status: HousingContractCancelApprovalStatus;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'text', nullable: true })
|
|
53
|
+
comment: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'int', nullable: false })
|
|
56
|
+
created_by: number;
|
|
57
|
+
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'housing_contract_cancel_attachments' })
|
|
5
|
+
export class HousingContractCancelAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'int', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: false })
|
|
11
|
+
service_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: false })
|
|
14
|
+
sub_service_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
17
|
+
file_name: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
20
|
+
file_url: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: false })
|
|
26
|
+
file_size: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: false })
|
|
29
|
+
created_by: number;
|
|
30
|
+
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractCancelMessageType {
|
|
5
|
+
text = 'text',
|
|
6
|
+
image = 'image',
|
|
7
|
+
video = 'video',
|
|
8
|
+
file = 'file',
|
|
9
|
+
link = 'link'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'housing_contract_cancel_chat' })
|
|
13
|
+
export class HousingContractCancelChat extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: false })
|
|
19
|
+
service_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: false })
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text', nullable: false })
|
|
25
|
+
message: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
28
|
+
message_type: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'boolean', nullable: false, default: false })
|
|
31
|
+
is_internal: boolean;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'int', nullable: false })
|
|
34
|
+
created_by: number;
|
|
35
|
+
|
|
36
|
+
constructor() {
|
|
37
|
+
super();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractCancelRequestStatus {
|
|
5
|
+
Pending = 'Pending',
|
|
6
|
+
Approved = 'Approved',
|
|
7
|
+
Rejected = 'Rejected',
|
|
8
|
+
RFC = 'RFC'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'housing_contract_cancel_requests' })
|
|
12
|
+
export class HousingContractCancelRequest extends BaseModel {
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
15
|
+
request_id: string;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'int', nullable: false })
|
|
18
|
+
service_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: false })
|
|
21
|
+
sub_service_id: number;
|
|
22
|
+
|
|
23
|
+
/** Current Unit Type: Apartment, Villa */
|
|
24
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
25
|
+
current_unit_type: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
28
|
+
location_of_unit: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'date', nullable: false })
|
|
31
|
+
current_contract_start_date: Date;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'date', nullable: false })
|
|
34
|
+
current_contract_end_date: Date;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'date', nullable: false })
|
|
37
|
+
requested_cancellation_date: Date;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'text', nullable: false })
|
|
40
|
+
reason_for_cancellation: string;
|
|
41
|
+
|
|
42
|
+
/** yes / No */
|
|
43
|
+
@Column({ type: 'varchar', length: 10, nullable: false })
|
|
44
|
+
pending_bills_clearance_status: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'date', nullable: false })
|
|
47
|
+
handover_date: Date;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'text', nullable: true })
|
|
50
|
+
comment: string;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
|
|
53
|
+
status: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'int', nullable: true })
|
|
56
|
+
user_id: number;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
59
|
+
workflow_execution_id: string;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'int', nullable: false })
|
|
62
|
+
created_by: number;
|
|
63
|
+
|
|
64
|
+
@Column({ type: 'int', nullable: true })
|
|
65
|
+
approved_by: number;
|
|
66
|
+
|
|
67
|
+
@Column({ type: 'date', nullable: true })
|
|
68
|
+
approved_at: Date;
|
|
69
|
+
|
|
70
|
+
@Column({ type: 'text', nullable: true })
|
|
71
|
+
approver_comment: string;
|
|
72
|
+
|
|
73
|
+
constructor() {
|
|
74
|
+
super();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractCancelWorkFlowStatus {
|
|
5
|
+
Pending = 'Pending',
|
|
6
|
+
InProgress = 'In Progress',
|
|
7
|
+
Approved = 'Approved',
|
|
8
|
+
Rejected = 'Rejected',
|
|
9
|
+
RFC = 'RFC'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'housing_contract_cancel_workflow' })
|
|
13
|
+
export class HousingContractCancelWorkflow extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
service_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
workflow_definition_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
current_level: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
31
|
+
content: string;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
34
|
+
status: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'int', nullable: true })
|
|
37
|
+
step_order: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'int', nullable: true })
|
|
40
|
+
user_id: number;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', nullable: true })
|
|
43
|
+
role_id: number;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'int', nullable: true })
|
|
46
|
+
department_id: number;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'int', nullable: true })
|
|
49
|
+
section_id: number;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'text', nullable: true })
|
|
52
|
+
workflow_data: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'int', nullable: false })
|
|
55
|
+
created_by: number;
|
|
56
|
+
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractRenewalApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'housing_contract_renewal_approvals' })
|
|
12
|
+
export class HousingContractRenewalApproval extends BaseModel {
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'int', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'int', nullable: false })
|
|
18
|
+
service_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: false })
|
|
21
|
+
sub_service_id: number;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
approver_role_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
approver_user_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: true })
|
|
30
|
+
delegate_user_id: number;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: true })
|
|
33
|
+
approved_by: number;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: true })
|
|
36
|
+
department_id: number;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
section_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'int', nullable: false })
|
|
42
|
+
level: number;
|
|
43
|
+
|
|
44
|
+
@Column({
|
|
45
|
+
type: 'enum',
|
|
46
|
+
enum: HousingContractRenewalApprovalStatus,
|
|
47
|
+
default: HousingContractRenewalApprovalStatus.PENDING,
|
|
48
|
+
nullable: false
|
|
49
|
+
})
|
|
50
|
+
approval_status: HousingContractRenewalApprovalStatus;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'text', nullable: true })
|
|
53
|
+
comment: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'int', nullable: false })
|
|
56
|
+
created_by: number;
|
|
57
|
+
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'housing_contract_renewal_attachments' })
|
|
5
|
+
export class HousingContractRenewalAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'int', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: false })
|
|
11
|
+
service_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: false })
|
|
14
|
+
sub_service_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
17
|
+
file_name: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
20
|
+
file_url: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: false })
|
|
26
|
+
file_size: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'int', nullable: false })
|
|
29
|
+
created_by: number;
|
|
30
|
+
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractRenewalMessageType {
|
|
5
|
+
text = 'text',
|
|
6
|
+
image = 'image',
|
|
7
|
+
video = 'video',
|
|
8
|
+
file = 'file',
|
|
9
|
+
link = 'link'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'housing_contract_renewal_chat' })
|
|
13
|
+
export class HousingContractRenewalChat extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: false })
|
|
19
|
+
service_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: false })
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text', nullable: false })
|
|
25
|
+
message: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
28
|
+
message_type: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'boolean', nullable: false, default: false })
|
|
31
|
+
is_internal: boolean;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'int', nullable: false })
|
|
34
|
+
created_by: number;
|
|
35
|
+
|
|
36
|
+
constructor() {
|
|
37
|
+
super();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractRenewalRequestStatus {
|
|
5
|
+
Pending = 'Pending',
|
|
6
|
+
Approved = 'Approved',
|
|
7
|
+
Rejected = 'Rejected',
|
|
8
|
+
RFC = 'RFC'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'housing_contract_renewal_requests' })
|
|
12
|
+
export class HousingContractRenewalRequest extends BaseModel {
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'varchar', length: 20, nullable: false })
|
|
15
|
+
request_id: string;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'int', nullable: false })
|
|
18
|
+
service_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: false })
|
|
21
|
+
sub_service_id: number;
|
|
22
|
+
|
|
23
|
+
/** Requested Unit Type: Apartment, Villa */
|
|
24
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
25
|
+
requested_unit_type: string;
|
|
26
|
+
|
|
27
|
+
/** Current Unit Type: Apartment, Villa */
|
|
28
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
29
|
+
current_unit_type: string;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
32
|
+
location_of_unit: string;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'date', nullable: false })
|
|
35
|
+
current_contract_start_date: Date;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'date', nullable: false })
|
|
38
|
+
current_contract_end_date: Date;
|
|
39
|
+
|
|
40
|
+
/** e.g. 1 year */
|
|
41
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
42
|
+
requested_renewal_duration: string;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'int', nullable: false })
|
|
45
|
+
family_size: number;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'text', nullable: false })
|
|
48
|
+
reason_for_renewal: string;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'text', nullable: true })
|
|
51
|
+
comment: string;
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
|
|
54
|
+
status: string;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'int', nullable: true })
|
|
57
|
+
user_id: number;
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
60
|
+
workflow_execution_id: string;
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'int', nullable: false })
|
|
63
|
+
created_by: number;
|
|
64
|
+
|
|
65
|
+
@Column({ type: 'int', nullable: true })
|
|
66
|
+
approved_by: number;
|
|
67
|
+
|
|
68
|
+
@Column({ type: 'date', nullable: true })
|
|
69
|
+
approved_at: Date;
|
|
70
|
+
|
|
71
|
+
@Column({ type: 'text', nullable: true })
|
|
72
|
+
approver_comment: string;
|
|
73
|
+
|
|
74
|
+
constructor() {
|
|
75
|
+
super();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HousingContractRenewalWorkFlowStatus {
|
|
5
|
+
Pending = 'Pending',
|
|
6
|
+
InProgress = 'In Progress',
|
|
7
|
+
Approved = 'Approved',
|
|
8
|
+
Rejected = 'Rejected',
|
|
9
|
+
RFC = 'RFC'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'housing_contract_renewal_workflow' })
|
|
13
|
+
export class HousingContractRenewalWorkflow extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
service_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
workflow_definition_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
current_level: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
31
|
+
content: string;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
34
|
+
status: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'int', nullable: true })
|
|
37
|
+
step_order: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'int', nullable: true })
|
|
40
|
+
user_id: number;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', nullable: true })
|
|
43
|
+
role_id: number;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'int', nullable: true })
|
|
46
|
+
department_id: number;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'int', nullable: true })
|
|
49
|
+
section_id: number;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'text', nullable: true })
|
|
52
|
+
workflow_data: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'int', nullable: false })
|
|
55
|
+
created_by: number;
|
|
56
|
+
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
}
|
|
60
|
+
}
|