@platform-modules/civil-aviation-authority 2.3.201 → 2.3.205
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 +22 -7
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/ComplaintLostPropertyReportApprovalModel.d.ts +23 -0
- package/dist/models/ComplaintLostPropertyReportApprovalModel.js +88 -0
- package/dist/models/ComplaintLostPropertyReportAttachmentModel.d.ts +12 -0
- package/dist/models/ComplaintLostPropertyReportAttachmentModel.js +56 -0
- package/dist/models/ComplaintLostPropertyReportChatModel.d.ts +21 -0
- package/dist/models/ComplaintLostPropertyReportChatModel.js +78 -0
- package/dist/models/ComplaintLostPropertyReportRequestModel.d.ts +23 -0
- package/dist/models/ComplaintLostPropertyReportRequestModel.js +88 -0
- package/dist/models/ComplaintLostPropertyReportWorkflowModel.d.ts +18 -0
- package/dist/models/ComplaintLostPropertyReportWorkflowModel.js +80 -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/ImportExportMaterialModels.d.ts +92 -0
- package/dist/models/ImportExportMaterialModels.js +307 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/SecurityAccessApprovalModel.d.ts +23 -0
- package/dist/models/SecurityAccessApprovalModel.js +82 -0
- package/dist/models/SecurityAccessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAccessAttachmentModel.js +56 -0
- package/dist/models/SecurityAccessChatModel.d.ts +12 -0
- package/dist/models/SecurityAccessChatModel.js +56 -0
- package/dist/models/SecurityAccessRequestModel.d.ts +25 -0
- package/dist/models/SecurityAccessRequestModel.js +80 -0
- package/dist/models/SecurityAccessWorkflowModel.d.ts +24 -0
- package/dist/models/SecurityAccessWorkflowModel.js +84 -0
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
- package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
- package/dist/models/WorkingHoursExtensionModels.js +295 -0
- package/package.json +1 -1
- package/src/data-source.ts +419 -419
- package/src/index.ts +5 -0
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/ComplaintLostPropertyReportApprovalModel.ts +60 -0
- package/src/models/ComplaintLostPropertyReportAttachmentModel.ts +33 -0
- package/src/models/ComplaintLostPropertyReportChatModel.ts +53 -0
- package/src/models/ComplaintLostPropertyReportRequestModel.ts +60 -0
- package/src/models/ComplaintLostPropertyReportWorkflowModel.ts +51 -0
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelApprovalModel.ts +64 -64
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalConsultationApprovalModel.ts +65 -65
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/UserSkillModel.ts +56 -56
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- 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
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Column, Entity, Index } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "performance_cycle_periods" })
|
|
5
|
-
@Index("uq_performance_cycle_period", ["cycle_period", "cycle_year"], { unique: true })
|
|
6
|
-
export class PerformanceCyclePeriod extends BaseModel {
|
|
7
|
-
@Column({ type: "varchar", length: 50, nullable: false })
|
|
8
|
-
cycle_period: string;
|
|
9
|
-
|
|
10
|
-
@Column({ type: "integer", nullable: false })
|
|
11
|
-
cycle_year: number;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "varchar", length: 255, nullable: false, default: "" })
|
|
14
|
-
title: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "boolean", default: false })
|
|
17
|
-
is_active: boolean;
|
|
18
|
-
|
|
19
|
-
constructor(cycle_period?: string, cycle_year?: number, title?: string) {
|
|
20
|
-
super();
|
|
21
|
-
this.cycle_period = cycle_period || "";
|
|
22
|
-
this.cycle_year = cycle_year || new Date().getFullYear();
|
|
23
|
-
this.title = title || "";
|
|
24
|
-
this.is_active = false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
import { Column, Entity, Index } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "performance_cycle_periods" })
|
|
5
|
+
@Index("uq_performance_cycle_period", ["cycle_period", "cycle_year"], { unique: true })
|
|
6
|
+
export class PerformanceCyclePeriod extends BaseModel {
|
|
7
|
+
@Column({ type: "varchar", length: 50, nullable: false })
|
|
8
|
+
cycle_period: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "integer", nullable: false })
|
|
11
|
+
cycle_year: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "" })
|
|
14
|
+
title: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "boolean", default: false })
|
|
17
|
+
is_active: boolean;
|
|
18
|
+
|
|
19
|
+
constructor(cycle_period?: string, cycle_year?: number, title?: string) {
|
|
20
|
+
super();
|
|
21
|
+
this.cycle_period = cycle_period || "";
|
|
22
|
+
this.cycle_year = cycle_year || new Date().getFullYear();
|
|
23
|
+
this.title = title || "";
|
|
24
|
+
this.is_active = false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Column, Entity, Index } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "performance_management_goals" })
|
|
5
|
-
export class PerformanceGoalMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
7
|
-
goal_title: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "text", nullable: true })
|
|
10
|
-
goal_description: string | null;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "integer", nullable: false })
|
|
13
|
-
@Index("idx_performance_goal_cycle_period_id")
|
|
14
|
-
cycle_period_id: number;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "boolean", default: true })
|
|
17
|
-
is_active: boolean;
|
|
18
|
-
|
|
19
|
-
constructor(goal_title?: string, goal_description?: string | null, cycle_period_id?: number) {
|
|
20
|
-
super();
|
|
21
|
-
this.goal_title = goal_title || "";
|
|
22
|
-
this.goal_description = goal_description || null;
|
|
23
|
-
this.cycle_period_id = cycle_period_id || 0;
|
|
24
|
-
this.is_active = true;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
1
|
+
import { Column, Entity, Index } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "performance_management_goals" })
|
|
5
|
+
export class PerformanceGoalMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
7
|
+
goal_title: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "text", nullable: true })
|
|
10
|
+
goal_description: string | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: false })
|
|
13
|
+
@Index("idx_performance_goal_cycle_period_id")
|
|
14
|
+
cycle_period_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "boolean", default: true })
|
|
17
|
+
is_active: boolean;
|
|
18
|
+
|
|
19
|
+
constructor(goal_title?: string, goal_description?: string | null, cycle_period_id?: number) {
|
|
20
|
+
super();
|
|
21
|
+
this.goal_title = goal_title || "";
|
|
22
|
+
this.goal_description = goal_description || null;
|
|
23
|
+
this.cycle_period_id = cycle_period_id || 0;
|
|
24
|
+
this.is_active = true;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { Column, Entity, Index } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "performance_management_request_goals" })
|
|
5
|
-
export class PerformanceManagementRequestGoal extends BaseModel {
|
|
6
|
-
@Index("idx_pm_request_goals_request_id")
|
|
7
|
-
@Column({ type: "integer", nullable: false })
|
|
8
|
-
request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
11
|
-
goal_title: string;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
14
|
-
goal_id: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "text", nullable: false })
|
|
17
|
-
goal_description: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: "integer", nullable: false, default: 0 })
|
|
20
|
-
goal_weight: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "integer", nullable: true, default: null })
|
|
23
|
-
rating: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "text", nullable: true, default: null })
|
|
26
|
-
remark: string | null;
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
request_id?: number,
|
|
30
|
-
goal_title?: string,
|
|
31
|
-
goal_id?: string,
|
|
32
|
-
goal_description?: string,
|
|
33
|
-
goal_weight?: number,
|
|
34
|
-
rating?: number | null,
|
|
35
|
-
remark?: string | null
|
|
36
|
-
) {
|
|
37
|
-
super();
|
|
38
|
-
this.request_id = request_id || 0;
|
|
39
|
-
this.goal_title = goal_title || "";
|
|
40
|
-
this.goal_id = goal_id || "";
|
|
41
|
-
this.goal_description = goal_description || "";
|
|
42
|
-
this.goal_weight = goal_weight || 0;
|
|
43
|
-
this.rating = rating ?? null;
|
|
44
|
-
this.remark = remark ?? null;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
import { Column, Entity, Index } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "performance_management_request_goals" })
|
|
5
|
+
export class PerformanceManagementRequestGoal extends BaseModel {
|
|
6
|
+
@Index("idx_pm_request_goals_request_id")
|
|
7
|
+
@Column({ type: "integer", nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
11
|
+
goal_title: string;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
14
|
+
goal_id: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "text", nullable: false })
|
|
17
|
+
goal_description: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "integer", nullable: false, default: 0 })
|
|
20
|
+
goal_weight: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: true, default: null })
|
|
23
|
+
rating: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "text", nullable: true, default: null })
|
|
26
|
+
remark: string | null;
|
|
27
|
+
|
|
28
|
+
constructor(
|
|
29
|
+
request_id?: number,
|
|
30
|
+
goal_title?: string,
|
|
31
|
+
goal_id?: string,
|
|
32
|
+
goal_description?: string,
|
|
33
|
+
goal_weight?: number,
|
|
34
|
+
rating?: number | null,
|
|
35
|
+
remark?: string | null
|
|
36
|
+
) {
|
|
37
|
+
super();
|
|
38
|
+
this.request_id = request_id || 0;
|
|
39
|
+
this.goal_title = goal_title || "";
|
|
40
|
+
this.goal_id = goal_id || "";
|
|
41
|
+
this.goal_description = goal_description || "";
|
|
42
|
+
this.goal_weight = goal_weight || 0;
|
|
43
|
+
this.rating = rating ?? null;
|
|
44
|
+
this.remark = remark ?? null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -53,8 +53,8 @@ export class PerformanceManagementRequest extends BaseModel {
|
|
|
53
53
|
@Column({ type: "text", nullable: true })
|
|
54
54
|
description: string | null;
|
|
55
55
|
|
|
56
|
-
@Column({ type: "enum", enum: PerformanceManagementCyclePeriod, nullable: false })
|
|
57
|
-
cycle_period: PerformanceManagementCyclePeriod;
|
|
56
|
+
@Column({ type: "enum", enum: PerformanceManagementCyclePeriod, nullable: false })
|
|
57
|
+
cycle_period: PerformanceManagementCyclePeriod;
|
|
58
58
|
|
|
59
59
|
@Column({ type: "integer", nullable: true })
|
|
60
60
|
cycle_year: number | null;
|
|
@@ -70,11 +70,11 @@ export class PerformanceManagementRequest extends BaseModel {
|
|
|
70
70
|
description?: string | null,
|
|
71
71
|
reviewer_user_id?: number | null,
|
|
72
72
|
assigned_to_user_id?: number | null,
|
|
73
|
-
assigned_at?: Date | null,
|
|
74
|
-
workflow_execution_id?: string | null,
|
|
75
|
-
cycle_period?: PerformanceManagementCyclePeriod,
|
|
76
|
-
cycle_year?: number | null
|
|
77
|
-
) {
|
|
73
|
+
assigned_at?: Date | null,
|
|
74
|
+
workflow_execution_id?: string | null,
|
|
75
|
+
cycle_period?: PerformanceManagementCyclePeriod,
|
|
76
|
+
cycle_year?: number | null
|
|
77
|
+
) {
|
|
78
78
|
super();
|
|
79
79
|
this.user_id = user_id;
|
|
80
80
|
this.status = status;
|
|
@@ -85,10 +85,10 @@ export class PerformanceManagementRequest extends BaseModel {
|
|
|
85
85
|
this.req_user_position_id = req_user_position_id || null;
|
|
86
86
|
this.description = description || null;
|
|
87
87
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
88
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
89
|
-
this.assigned_at = assigned_at || null;
|
|
90
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
91
|
-
this.cycle_period = cycle_period || PerformanceManagementCyclePeriod.JAN_JUN;
|
|
92
|
-
this.cycle_year = cycle_year || null;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
88
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
89
|
+
this.assigned_at = assigned_at || null;
|
|
90
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
91
|
+
this.cycle_period = cycle_period || PerformanceManagementCyclePeriod.JAN_JUN;
|
|
92
|
+
this.cycle_year = cycle_year || null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -45,12 +45,12 @@ export class PromotionRequest 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
|
// Promotion Decision specific fields
|
|
55
55
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
56
56
|
employee_name: string;
|
|
@@ -108,11 +108,11 @@ export class PromotionRequest extends BaseModel {
|
|
|
108
108
|
this.req_user_position_id = req_user_position_id || null;
|
|
109
109
|
this.description = description || null;
|
|
110
110
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
111
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
112
|
-
this.assigned_at = assigned_at || null;
|
|
113
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
114
|
-
this.reference_number = null;
|
|
115
|
-
this.employee_name = employee_name || "";
|
|
111
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
112
|
+
this.assigned_at = assigned_at || null;
|
|
113
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
114
|
+
this.reference_number = null;
|
|
115
|
+
this.employee_name = employee_name || "";
|
|
116
116
|
this.employee_id = employee_id || "";
|
|
117
117
|
this.current_job_title = current_job_title || "";
|
|
118
118
|
this.proposed_job_title = proposed_job_title || "";
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
|
|
3
|
-
import { BaseModel } from "./BaseModel";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export enum ResidentialUnitRentalApprovalStatus {
|
|
9
|
-
|
|
10
|
-
PENDING = "Pending",
|
|
11
|
-
|
|
12
|
-
IN_PROGRESS = "In Progress",
|
|
13
|
-
|
|
14
|
-
APPROVED = "Approved",
|
|
15
|
-
|
|
16
|
-
REJECTED = "Rejected"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@Entity({ name: 'residential_unit_rental_approvals' })
|
|
26
|
-
|
|
27
|
-
export class ResidentialUnitRentalApproval extends BaseModel {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@Column({ type: 'int', nullable: false })
|
|
33
|
-
|
|
34
|
-
request_id: number;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'int', nullable: false })
|
|
40
|
-
|
|
41
|
-
service_id: number;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'int', nullable: false })
|
|
47
|
-
|
|
48
|
-
sub_service_id: number;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
@Column({ type: 'int', nullable: true })
|
|
54
|
-
|
|
55
|
-
approver_role_id: number;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'int', nullable: true })
|
|
61
|
-
|
|
62
|
-
approver_user_id: number;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
@Column({ type: 'int', nullable: true })
|
|
68
|
-
|
|
69
|
-
delegate_user_id: number;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
@Column({ type: 'int', nullable: true })
|
|
75
|
-
|
|
76
|
-
approved_by: number;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@Column({ type: 'int', nullable: true })
|
|
82
|
-
|
|
83
|
-
department_id: number;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
@Column({ type: 'int', nullable: true })
|
|
89
|
-
|
|
90
|
-
section_id: number;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@Column({ type: 'int', nullable: false })
|
|
96
|
-
|
|
97
|
-
level: number;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
@Column({
|
|
103
|
-
|
|
104
|
-
type: 'enum',
|
|
105
|
-
|
|
106
|
-
enum: ResidentialUnitRentalApprovalStatus,
|
|
107
|
-
|
|
108
|
-
default: ResidentialUnitRentalApprovalStatus.PENDING,
|
|
109
|
-
|
|
110
|
-
nullable: false
|
|
111
|
-
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
approval_status: ResidentialUnitRentalApprovalStatus; // Pending, In Progress, YES, ND, RFC
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@Column({ type: 'text', nullable: true })
|
|
120
|
-
|
|
121
|
-
comment: string;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
127
|
-
is_allowed: boolean;
|
|
128
|
-
|
|
129
|
-
@Column({ type: 'int', nullable: false })
|
|
130
|
-
|
|
131
|
-
created_by: number;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
constructor() {
|
|
137
|
-
|
|
138
|
-
super();
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
|
|
3
|
+
import { BaseModel } from "./BaseModel";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export enum ResidentialUnitRentalApprovalStatus {
|
|
9
|
+
|
|
10
|
+
PENDING = "Pending",
|
|
11
|
+
|
|
12
|
+
IN_PROGRESS = "In Progress",
|
|
13
|
+
|
|
14
|
+
APPROVED = "Approved",
|
|
15
|
+
|
|
16
|
+
REJECTED = "Rejected"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@Entity({ name: 'residential_unit_rental_approvals' })
|
|
26
|
+
|
|
27
|
+
export class ResidentialUnitRentalApproval extends BaseModel {
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: false })
|
|
33
|
+
|
|
34
|
+
request_id: number;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'int', nullable: false })
|
|
40
|
+
|
|
41
|
+
service_id: number;
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'int', nullable: false })
|
|
47
|
+
|
|
48
|
+
sub_service_id: number;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'int', nullable: true })
|
|
54
|
+
|
|
55
|
+
approver_role_id: number;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'int', nullable: true })
|
|
61
|
+
|
|
62
|
+
approver_user_id: number;
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@Column({ type: 'int', nullable: true })
|
|
68
|
+
|
|
69
|
+
delegate_user_id: number;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@Column({ type: 'int', nullable: true })
|
|
75
|
+
|
|
76
|
+
approved_by: number;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@Column({ type: 'int', nullable: true })
|
|
82
|
+
|
|
83
|
+
department_id: number;
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
@Column({ type: 'int', nullable: true })
|
|
89
|
+
|
|
90
|
+
section_id: number;
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@Column({ type: 'int', nullable: false })
|
|
96
|
+
|
|
97
|
+
level: number;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@Column({
|
|
103
|
+
|
|
104
|
+
type: 'enum',
|
|
105
|
+
|
|
106
|
+
enum: ResidentialUnitRentalApprovalStatus,
|
|
107
|
+
|
|
108
|
+
default: ResidentialUnitRentalApprovalStatus.PENDING,
|
|
109
|
+
|
|
110
|
+
nullable: false
|
|
111
|
+
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
approval_status: ResidentialUnitRentalApprovalStatus; // Pending, In Progress, YES, ND, RFC
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@Column({ type: 'text', nullable: true })
|
|
120
|
+
|
|
121
|
+
comment: string;
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
127
|
+
is_allowed: boolean;
|
|
128
|
+
|
|
129
|
+
@Column({ type: 'int', nullable: false })
|
|
130
|
+
|
|
131
|
+
created_by: number;
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
constructor() {
|
|
137
|
+
|
|
138
|
+
super();
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
144
144
|
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
|
|
3
|
-
import { BaseModel } from "./BaseModel";
|
|
4
|
-
|
|
5
|
-
export enum ResidentialUnitRentalMessageType {
|
|
6
|
-
text = "text",
|
|
7
|
-
image = "image",
|
|
8
|
-
video = "video",
|
|
9
|
-
file = "file",
|
|
10
|
-
link = "link",
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum ResidentialUnitRentalChatStatus {
|
|
14
|
-
Pending = "Pending",
|
|
15
|
-
Received = "Received",
|
|
16
|
-
Approved = "Approved",
|
|
17
|
-
Rejected = "Rejected",
|
|
18
|
-
InProgress = "In Progress",
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@Entity({ name: "residential_unit_rental_chat" })
|
|
22
|
-
export class ResidentialUnitRentalChat extends BaseModel {
|
|
23
|
-
@Column({ type: "int", nullable: false })
|
|
24
|
-
request_id: number;
|
|
25
|
-
|
|
26
|
-
@Column({ type: "int", nullable: false })
|
|
27
|
-
service_id: number;
|
|
28
|
-
|
|
29
|
-
@Column({ type: "int", nullable: false })
|
|
30
|
-
sub_service_id: number;
|
|
31
|
-
|
|
32
|
-
@Column({ type: "int", nullable: false })
|
|
33
|
-
user_id: number;
|
|
34
|
-
|
|
35
|
-
@Column({ type: "text", nullable: false })
|
|
36
|
-
message: string;
|
|
37
|
-
|
|
38
|
-
@Column({ type: "int", nullable: true })
|
|
39
|
-
approver_role_id: number | null;
|
|
40
|
-
|
|
41
|
-
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
42
|
-
status: string;
|
|
43
|
-
|
|
44
|
-
@Column({ type: "varchar", length: 20, nullable: false })
|
|
45
|
-
message_type: string;
|
|
46
|
-
|
|
47
|
-
@Column({ type: "boolean", nullable: false, default: false })
|
|
48
|
-
is_internal: boolean;
|
|
49
|
-
|
|
50
|
-
@Column({ type: "int", nullable: false })
|
|
51
|
-
created_by: number;
|
|
52
|
-
|
|
53
|
-
constructor() {
|
|
54
|
-
super();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
|
|
3
|
+
import { BaseModel } from "./BaseModel";
|
|
4
|
+
|
|
5
|
+
export enum ResidentialUnitRentalMessageType {
|
|
6
|
+
text = "text",
|
|
7
|
+
image = "image",
|
|
8
|
+
video = "video",
|
|
9
|
+
file = "file",
|
|
10
|
+
link = "link",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum ResidentialUnitRentalChatStatus {
|
|
14
|
+
Pending = "Pending",
|
|
15
|
+
Received = "Received",
|
|
16
|
+
Approved = "Approved",
|
|
17
|
+
Rejected = "Rejected",
|
|
18
|
+
InProgress = "In Progress",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Entity({ name: "residential_unit_rental_chat" })
|
|
22
|
+
export class ResidentialUnitRentalChat extends BaseModel {
|
|
23
|
+
@Column({ type: "int", nullable: false })
|
|
24
|
+
request_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "int", nullable: false })
|
|
27
|
+
service_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "int", nullable: false })
|
|
30
|
+
sub_service_id: number;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "int", nullable: false })
|
|
33
|
+
user_id: number;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "text", nullable: false })
|
|
36
|
+
message: string;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "int", nullable: true })
|
|
39
|
+
approver_role_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
42
|
+
status: string;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "varchar", length: 20, nullable: false })
|
|
45
|
+
message_type: string;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
48
|
+
is_internal: boolean;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "int", nullable: false })
|
|
51
|
+
created_by: number;
|
|
52
|
+
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
}
|
|
56
|
+
}
|