@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
|
@@ -9,20 +9,20 @@ export class CAASubServices extends BaseModel {
|
|
|
9
9
|
@Column({ type: 'varchar', length: 64, nullable: true, unique: true })
|
|
10
10
|
code: string | null;
|
|
11
11
|
|
|
12
|
-
@Column({ nullable: false })
|
|
13
|
-
sub_service_name: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "text", nullable: true })
|
|
16
|
-
arabic_name: string | null;
|
|
17
|
-
|
|
18
|
-
@Column({ nullable: false })
|
|
19
|
-
description: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "text", nullable: true })
|
|
22
|
-
arabic_description: string | null;
|
|
23
|
-
|
|
24
|
-
@Column({ nullable: true })
|
|
25
|
-
service_id: number;
|
|
12
|
+
@Column({ nullable: false })
|
|
13
|
+
sub_service_name: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "text", nullable: true })
|
|
16
|
+
arabic_name: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ nullable: false })
|
|
19
|
+
description: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "text", nullable: true })
|
|
22
|
+
arabic_description: string | null;
|
|
23
|
+
|
|
24
|
+
@Column({ nullable: true })
|
|
25
|
+
service_id: number;
|
|
26
26
|
|
|
27
27
|
@ManyToOne(() => CAAServices)
|
|
28
28
|
@JoinColumn({ name: 'service_id' })
|
|
@@ -31,22 +31,22 @@ export class CAASubServices extends BaseModel {
|
|
|
31
31
|
@Column({ nullable: true })
|
|
32
32
|
logo_url: string;
|
|
33
33
|
|
|
34
|
-
constructor(
|
|
35
|
-
sub_service_name: string,
|
|
36
|
-
description: string,
|
|
37
|
-
arabic_name: string | null,
|
|
38
|
-
arabic_description: string | null,
|
|
39
|
-
service_id: number,
|
|
40
|
-
logo_url: string,
|
|
41
|
-
code: string | null = null
|
|
42
|
-
) {
|
|
43
|
-
super();
|
|
44
|
-
this.sub_service_name = sub_service_name
|
|
45
|
-
this.arabic_name = arabic_name || null;
|
|
46
|
-
this.description = description
|
|
47
|
-
this.arabic_description = arabic_description || null;
|
|
48
|
-
this.service_id = service_id
|
|
49
|
-
this.logo_url = logo_url
|
|
50
|
-
this.code = code
|
|
51
|
-
}
|
|
52
|
-
}
|
|
34
|
+
constructor(
|
|
35
|
+
sub_service_name: string,
|
|
36
|
+
description: string,
|
|
37
|
+
arabic_name: string | null,
|
|
38
|
+
arabic_description: string | null,
|
|
39
|
+
service_id: number,
|
|
40
|
+
logo_url: string,
|
|
41
|
+
code: string | null = null
|
|
42
|
+
) {
|
|
43
|
+
super();
|
|
44
|
+
this.sub_service_name = sub_service_name
|
|
45
|
+
this.arabic_name = arabic_name || null;
|
|
46
|
+
this.description = description
|
|
47
|
+
this.arabic_description = arabic_description || null;
|
|
48
|
+
this.service_id = service_id
|
|
49
|
+
this.logo_url = logo_url
|
|
50
|
+
this.code = code
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "cai_rating_master" })
|
|
5
|
-
export class CAIRatingMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "text", nullable: false })
|
|
7
|
-
confidentiality: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "text", nullable: false })
|
|
10
|
-
integrity: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "text", nullable: false })
|
|
13
|
-
availability: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
16
|
-
rating: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
19
|
-
value: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "boolean", default: true })
|
|
22
|
-
is_active: boolean;
|
|
23
|
-
|
|
24
|
-
constructor(
|
|
25
|
-
confidentiality: string,
|
|
26
|
-
integrity: string,
|
|
27
|
-
availability: string,
|
|
28
|
-
rating: string,
|
|
29
|
-
value: string
|
|
30
|
-
) {
|
|
31
|
-
super();
|
|
32
|
-
this.confidentiality = confidentiality;
|
|
33
|
-
this.integrity = integrity;
|
|
34
|
-
this.availability = availability;
|
|
35
|
-
this.rating = rating;
|
|
36
|
-
this.value = value;
|
|
37
|
-
this.is_active = true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "cai_rating_master" })
|
|
5
|
+
export class CAIRatingMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "text", nullable: false })
|
|
7
|
+
confidentiality: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "text", nullable: false })
|
|
10
|
+
integrity: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "text", nullable: false })
|
|
13
|
+
availability: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
16
|
+
rating: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
19
|
+
value: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "boolean", default: true })
|
|
22
|
+
is_active: boolean;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
confidentiality: string,
|
|
26
|
+
integrity: string,
|
|
27
|
+
availability: string,
|
|
28
|
+
rating: string,
|
|
29
|
+
value: string
|
|
30
|
+
) {
|
|
31
|
+
super();
|
|
32
|
+
this.confidentiality = confidentiality;
|
|
33
|
+
this.integrity = integrity;
|
|
34
|
+
this.availability = availability;
|
|
35
|
+
this.rating = rating;
|
|
36
|
+
this.value = value;
|
|
37
|
+
this.is_active = true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "csrm_business_impact_rating_master" })
|
|
5
|
-
export class CSRMBusinessImpactRatingMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "text", nullable: false })
|
|
7
|
-
guidelines: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
10
|
-
rating: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
13
|
-
value: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "boolean", default: true })
|
|
16
|
-
is_active: boolean;
|
|
17
|
-
|
|
18
|
-
constructor(guidelines: string, rating: string, value: string) {
|
|
19
|
-
super();
|
|
20
|
-
this.guidelines = guidelines;
|
|
21
|
-
this.rating = rating;
|
|
22
|
-
this.value = value;
|
|
23
|
-
this.is_active = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "csrm_business_impact_rating_master" })
|
|
5
|
+
export class CSRMBusinessImpactRatingMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "text", nullable: false })
|
|
7
|
+
guidelines: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
10
|
+
rating: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
13
|
+
value: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "boolean", default: true })
|
|
16
|
+
is_active: boolean;
|
|
17
|
+
|
|
18
|
+
constructor(guidelines: string, rating: string, value: string) {
|
|
19
|
+
super();
|
|
20
|
+
this.guidelines = guidelines;
|
|
21
|
+
this.rating = rating;
|
|
22
|
+
this.value = value;
|
|
23
|
+
this.is_active = true;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "csrm_likelihood_master" })
|
|
5
|
-
export class CSRMLikelihoodMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "text", nullable: false })
|
|
7
|
-
guidelines: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
10
|
-
rating: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
13
|
-
value: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "boolean", default: true })
|
|
16
|
-
is_active: boolean;
|
|
17
|
-
|
|
18
|
-
constructor(guidelines: string, rating: string, value: string) {
|
|
19
|
-
super();
|
|
20
|
-
this.guidelines = guidelines;
|
|
21
|
-
this.rating = rating;
|
|
22
|
-
this.value = value;
|
|
23
|
-
this.is_active = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "csrm_likelihood_master" })
|
|
5
|
+
export class CSRMLikelihoodMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "text", nullable: false })
|
|
7
|
+
guidelines: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
10
|
+
rating: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
13
|
+
value: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "boolean", default: true })
|
|
16
|
+
is_active: boolean;
|
|
17
|
+
|
|
18
|
+
constructor(guidelines: string, rating: string, value: string) {
|
|
19
|
+
super();
|
|
20
|
+
this.guidelines = guidelines;
|
|
21
|
+
this.rating = rating;
|
|
22
|
+
this.value = value;
|
|
23
|
+
this.is_active = true;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -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 || "";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ComplaintLostPropertyReportApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "complaint_lost_property_report_approvals" })
|
|
12
|
+
export class ComplaintLostPropertyReportApproval extends BaseModel {
|
|
13
|
+
@Column({ type: "integer", nullable: false })
|
|
14
|
+
request_id: number;
|
|
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
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
approver_role_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "varchar", length: 500, nullable: true, default: "" })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
type: "enum",
|
|
48
|
+
enum: ComplaintLostPropertyReportApprovalStatus,
|
|
49
|
+
default: ComplaintLostPropertyReportApprovalStatus.PENDING,
|
|
50
|
+
nullable: false
|
|
51
|
+
})
|
|
52
|
+
approval_status: ComplaintLostPropertyReportApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "complaint_lost_property_report_attachments" })
|
|
5
|
+
export class ComplaintLostPropertyReportAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "bigint", nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ComplaintLostPropertyReportMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "complaint_lost_property_report_chats" })
|
|
13
|
+
export class ComplaintLostPropertyReportChat extends BaseModel {
|
|
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: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "text", nullable: false })
|
|
27
|
+
message: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "int", nullable: true })
|
|
30
|
+
approver_role_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
33
|
+
status: string;
|
|
34
|
+
|
|
35
|
+
@Column({
|
|
36
|
+
type: "enum",
|
|
37
|
+
enum: ComplaintLostPropertyReportMessageType,
|
|
38
|
+
default: ComplaintLostPropertyReportMessageType.TEXT,
|
|
39
|
+
nullable: false,
|
|
40
|
+
name: "message_type"
|
|
41
|
+
})
|
|
42
|
+
messageType: ComplaintLostPropertyReportMessageType;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
45
|
+
is_internal: boolean;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "int", nullable: false })
|
|
48
|
+
created_by: number;
|
|
49
|
+
|
|
50
|
+
constructor() {
|
|
51
|
+
super();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ComplaintLostPropertyReportRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "complaint_lost_property_report_requests" })
|
|
12
|
+
export class ComplaintLostPropertyReportRequest extends BaseModel {
|
|
13
|
+
@Column({ type: "int", nullable: true })
|
|
14
|
+
req_user_department_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "int", nullable: true })
|
|
17
|
+
req_user_section_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "int", nullable: true })
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "int", nullable: true })
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "int", nullable: false })
|
|
26
|
+
user_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({
|
|
29
|
+
type: "enum",
|
|
30
|
+
enum: ComplaintLostPropertyReportRequestStatus,
|
|
31
|
+
default: ComplaintLostPropertyReportRequestStatus.PENDING,
|
|
32
|
+
nullable: false
|
|
33
|
+
})
|
|
34
|
+
status: ComplaintLostPropertyReportRequestStatus;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
37
|
+
workflow_execution_id: string | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "timestamptz", nullable: true })
|
|
40
|
+
date_time_of_loss: Date | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "text", nullable: false })
|
|
43
|
+
location_where_item_was_lost: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "text", nullable: false })
|
|
46
|
+
item_description: string;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "text", nullable: true })
|
|
49
|
+
description: string | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "int", nullable: false })
|
|
52
|
+
created_by: number;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
55
|
+
reference_number: string | null;
|
|
56
|
+
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "complaint_lost_property_report_workflow" })
|
|
5
|
+
export class ComplaintLostPropertyReportWorkflow extends BaseModel {
|
|
6
|
+
@Column({ type: "int", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "int", nullable: true })
|
|
10
|
+
service_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "int", nullable: true })
|
|
13
|
+
sub_service_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "int", nullable: true })
|
|
16
|
+
workflow_definition_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "int", nullable: true })
|
|
19
|
+
current_level: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "varchar", length: 50, nullable: false })
|
|
25
|
+
status: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "int", nullable: true })
|
|
28
|
+
step_order: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "int", nullable: true })
|
|
31
|
+
user_id: number;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "int", nullable: true })
|
|
34
|
+
role_id: number;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "int", nullable: true })
|
|
37
|
+
department_id: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "int", nullable: true })
|
|
40
|
+
section_id: number;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "text", nullable: true })
|
|
43
|
+
workflow_data: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "int", nullable: false })
|
|
46
|
+
created_by: number;
|
|
47
|
+
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { Departments } from "./DepartmentsModel";
|
|
4
|
-
import { DocumentFolder } from "./DocumentFolderModel";
|
|
5
|
-
|
|
6
|
-
@Entity({ name: "document_drives" })
|
|
7
|
-
export class DocumentDrive extends BaseModel {
|
|
8
|
-
@Column({ type: "integer", nullable: false })
|
|
9
|
-
department_id: number;
|
|
10
|
-
|
|
11
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "text", nullable: true })
|
|
15
|
-
description: string | null;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
|
|
20
|
-
@ManyToOne(() => Departments)
|
|
21
|
-
@JoinColumn({ name: "department_id" })
|
|
22
|
-
department?: Departments;
|
|
23
|
-
|
|
24
|
-
@OneToMany(() => DocumentFolder, (folder) => folder.drive)
|
|
25
|
-
folders?: DocumentFolder[];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { Departments } from "./DepartmentsModel";
|
|
4
|
+
import { DocumentFolder } from "./DocumentFolderModel";
|
|
5
|
+
|
|
6
|
+
@Entity({ name: "document_drives" })
|
|
7
|
+
export class DocumentDrive extends BaseModel {
|
|
8
|
+
@Column({ type: "integer", nullable: false })
|
|
9
|
+
department_id: number;
|
|
10
|
+
|
|
11
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "text", nullable: true })
|
|
15
|
+
description: string | null;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
|
|
20
|
+
@ManyToOne(() => Departments)
|
|
21
|
+
@JoinColumn({ name: "department_id" })
|
|
22
|
+
department?: Departments;
|
|
23
|
+
|
|
24
|
+
@OneToMany(() => DocumentFolder, (folder) => folder.drive)
|
|
25
|
+
folders?: DocumentFolder[];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
}
|