@platform-modules/civil-aviation-authority 2.3.200 → 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 +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -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/ContractServiceRequestModel.d.ts +23 -0
- package/dist/models/ContractServiceRequestModel.js +102 -0
- package/package.json +24 -24
- package/src/index.ts +437 -431
- 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/ContractServiceRequestModel.ts +68 -0
- package/src/models/ImportExportMaterialApprovalModel.ts +87 -87
- package/src/models/ImportExportMaterialAttachmentModel.ts +50 -50
- package/src/models/ImportExportMaterialChatModel.ts +61 -61
- package/src/models/ImportExportMaterialRequestModel.ts +85 -85
- package/src/models/ImportExportMaterialWorkflowModel.ts +51 -51
- package/src/models/LegalComplaintApprovalModel.ts +64 -64
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
- package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -50
- package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -61
- package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -75
- package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -51
- package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -87
- package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -50
- package/src/models/WorkingHoursExtensionChatModel.ts +61 -61
- package/src/models/WorkingHoursExtensionRequestModel.ts +66 -66
- package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -51
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ImportExportMaterialMessageType {
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
IMAGE = "image",
|
|
7
|
-
VIDEO = "video",
|
|
8
|
-
FILE = "file",
|
|
9
|
-
LINK = "link"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum ImportExportMaterialChatStatus {
|
|
13
|
-
Pending = "Pending",
|
|
14
|
-
Received = "Received",
|
|
15
|
-
Approved = "Approved",
|
|
16
|
-
Rejected = "Rejected",
|
|
17
|
-
InProgress = "In Progress"
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Entity({ name: "import_export_material_chats" })
|
|
21
|
-
export class ImportExportMaterialChat extends BaseModel {
|
|
22
|
-
@Column({ type: "int", nullable: false })
|
|
23
|
-
request_id: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "int", nullable: false })
|
|
26
|
-
service_id: number;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "int", nullable: false })
|
|
29
|
-
sub_service_id: number;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "int", nullable: false })
|
|
32
|
-
user_id: number;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "text", nullable: false })
|
|
35
|
-
message: string;
|
|
36
|
-
|
|
37
|
-
@Column({ type: "int", nullable: true })
|
|
38
|
-
approver_role_id: number | null;
|
|
39
|
-
|
|
40
|
-
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
41
|
-
status: string;
|
|
42
|
-
|
|
43
|
-
@Column({
|
|
44
|
-
type: "enum",
|
|
45
|
-
enum: ImportExportMaterialMessageType,
|
|
46
|
-
default: ImportExportMaterialMessageType.TEXT,
|
|
47
|
-
nullable: false,
|
|
48
|
-
name: "message_type"
|
|
49
|
-
})
|
|
50
|
-
messageType: ImportExportMaterialMessageType;
|
|
51
|
-
|
|
52
|
-
@Column({ type: "boolean", nullable: false, default: false })
|
|
53
|
-
is_internal: boolean;
|
|
54
|
-
|
|
55
|
-
@Column({ type: "int", nullable: false })
|
|
56
|
-
created_by: number;
|
|
57
|
-
|
|
58
|
-
constructor() {
|
|
59
|
-
super();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ImportExportMaterialMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum ImportExportMaterialChatStatus {
|
|
13
|
+
Pending = "Pending",
|
|
14
|
+
Received = "Received",
|
|
15
|
+
Approved = "Approved",
|
|
16
|
+
Rejected = "Rejected",
|
|
17
|
+
InProgress = "In Progress"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Entity({ name: "import_export_material_chats" })
|
|
21
|
+
export class ImportExportMaterialChat extends BaseModel {
|
|
22
|
+
@Column({ type: "int", nullable: false })
|
|
23
|
+
request_id: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "int", nullable: false })
|
|
26
|
+
service_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "int", nullable: false })
|
|
29
|
+
sub_service_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "int", nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "text", nullable: false })
|
|
35
|
+
message: string;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "int", nullable: true })
|
|
38
|
+
approver_role_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
41
|
+
status: string;
|
|
42
|
+
|
|
43
|
+
@Column({
|
|
44
|
+
type: "enum",
|
|
45
|
+
enum: ImportExportMaterialMessageType,
|
|
46
|
+
default: ImportExportMaterialMessageType.TEXT,
|
|
47
|
+
nullable: false,
|
|
48
|
+
name: "message_type"
|
|
49
|
+
})
|
|
50
|
+
messageType: ImportExportMaterialMessageType;
|
|
51
|
+
|
|
52
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
53
|
+
is_internal: boolean;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "int", nullable: false })
|
|
56
|
+
created_by: number;
|
|
57
|
+
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ImportExportMaterialRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export enum ImportExportMaterialRequestType {
|
|
12
|
-
IMPORT = "Import",
|
|
13
|
-
EXPORT = "Export",
|
|
14
|
-
BOTH = "Both"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@Entity({ name: "import_export_material_requests" })
|
|
18
|
-
export class ImportExportMaterialRequest extends BaseModel {
|
|
19
|
-
@Column({ type: "int", nullable: true })
|
|
20
|
-
req_user_department_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "int", nullable: true })
|
|
23
|
-
req_user_section_id: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "int", nullable: true })
|
|
26
|
-
service_id: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "int", nullable: true })
|
|
29
|
-
sub_service_id: number | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "int", nullable: false })
|
|
32
|
-
user_id: number;
|
|
33
|
-
|
|
34
|
-
@Column({
|
|
35
|
-
type: "enum",
|
|
36
|
-
enum: ImportExportMaterialRequestStatus,
|
|
37
|
-
default: ImportExportMaterialRequestStatus.PENDING,
|
|
38
|
-
nullable: false
|
|
39
|
-
})
|
|
40
|
-
status: ImportExportMaterialRequestStatus;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
43
|
-
workflow_execution_id: string | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "date", nullable: true })
|
|
46
|
-
request_date: Date | null;
|
|
47
|
-
|
|
48
|
-
@Column({
|
|
49
|
-
type: "enum",
|
|
50
|
-
enum: ImportExportMaterialRequestType,
|
|
51
|
-
nullable: false
|
|
52
|
-
})
|
|
53
|
-
request_type: ImportExportMaterialRequestType;
|
|
54
|
-
|
|
55
|
-
@Column({ type: "date", nullable: true })
|
|
56
|
-
material_movement_date: Date | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: "text", nullable: true })
|
|
59
|
-
hazardous_details: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "text", nullable: false })
|
|
62
|
-
purpose: string;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "text", nullable: false })
|
|
65
|
-
material_description: string;
|
|
66
|
-
|
|
67
|
-
@Column({ type: "varchar", length: 128, nullable: true })
|
|
68
|
-
transport_mode: string | null;
|
|
69
|
-
|
|
70
|
-
@Column({ type: "varchar", length: 64, nullable: true })
|
|
71
|
-
vehicle_number: string | null;
|
|
72
|
-
|
|
73
|
-
@Column({ type: "text", nullable: true })
|
|
74
|
-
description: string | null;
|
|
75
|
-
|
|
76
|
-
@Column({ type: "int", nullable: false })
|
|
77
|
-
created_by: number;
|
|
78
|
-
|
|
79
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
80
|
-
reference_number: string | null;
|
|
81
|
-
|
|
82
|
-
constructor() {
|
|
83
|
-
super();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ImportExportMaterialRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum ImportExportMaterialRequestType {
|
|
12
|
+
IMPORT = "Import",
|
|
13
|
+
EXPORT = "Export",
|
|
14
|
+
BOTH = "Both"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Entity({ name: "import_export_material_requests" })
|
|
18
|
+
export class ImportExportMaterialRequest extends BaseModel {
|
|
19
|
+
@Column({ type: "int", nullable: true })
|
|
20
|
+
req_user_department_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "int", nullable: true })
|
|
23
|
+
req_user_section_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "int", nullable: true })
|
|
26
|
+
service_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "int", nullable: true })
|
|
29
|
+
sub_service_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "int", nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
type: "enum",
|
|
36
|
+
enum: ImportExportMaterialRequestStatus,
|
|
37
|
+
default: ImportExportMaterialRequestStatus.PENDING,
|
|
38
|
+
nullable: false
|
|
39
|
+
})
|
|
40
|
+
status: ImportExportMaterialRequestStatus;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
43
|
+
workflow_execution_id: string | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "date", nullable: true })
|
|
46
|
+
request_date: Date | null;
|
|
47
|
+
|
|
48
|
+
@Column({
|
|
49
|
+
type: "enum",
|
|
50
|
+
enum: ImportExportMaterialRequestType,
|
|
51
|
+
nullable: false
|
|
52
|
+
})
|
|
53
|
+
request_type: ImportExportMaterialRequestType;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "date", nullable: true })
|
|
56
|
+
material_movement_date: Date | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "text", nullable: true })
|
|
59
|
+
hazardous_details: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "text", nullable: false })
|
|
62
|
+
purpose: string;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "text", nullable: false })
|
|
65
|
+
material_description: string;
|
|
66
|
+
|
|
67
|
+
@Column({ type: "varchar", length: 128, nullable: true })
|
|
68
|
+
transport_mode: string | null;
|
|
69
|
+
|
|
70
|
+
@Column({ type: "varchar", length: 64, nullable: true })
|
|
71
|
+
vehicle_number: string | null;
|
|
72
|
+
|
|
73
|
+
@Column({ type: "text", nullable: true })
|
|
74
|
+
description: string | null;
|
|
75
|
+
|
|
76
|
+
@Column({ type: "int", nullable: false })
|
|
77
|
+
created_by: number;
|
|
78
|
+
|
|
79
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
80
|
+
reference_number: string | null;
|
|
81
|
+
|
|
82
|
+
constructor() {
|
|
83
|
+
super();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "import_export_material_workflow" })
|
|
5
|
-
export class ImportExportMaterialWorkflow 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
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "import_export_material_workflow" })
|
|
5
|
+
export class ImportExportMaterialWorkflow 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,64 +1,64 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum LegalComplaintApprovalStatus {
|
|
5
|
-
PENDING = 'Pending',
|
|
6
|
-
IN_PROGRESS = 'In Progress',
|
|
7
|
-
APPROVED = 'Approved',
|
|
8
|
-
REJECTED = 'Rejected',
|
|
9
|
-
REASSIGNED = 'Reassigned',
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@Entity({ name: 'legal_complaint_approvals' })
|
|
13
|
-
export class LegalComplaintApproval 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: 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: LegalComplaintApprovalStatus,
|
|
47
|
-
default: LegalComplaintApprovalStatus.PENDING,
|
|
48
|
-
nullable: false,
|
|
49
|
-
})
|
|
50
|
-
approval_status: LegalComplaintApprovalStatus;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'text', nullable: true })
|
|
53
|
-
comment: string;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
56
|
-
is_allowed: boolean;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'int', nullable: false })
|
|
59
|
-
created_by: number;
|
|
60
|
-
|
|
61
|
-
constructor() {
|
|
62
|
-
super();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum LegalComplaintApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
REASSIGNED = 'Reassigned',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'legal_complaint_approvals' })
|
|
13
|
+
export class LegalComplaintApproval 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: 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: LegalComplaintApprovalStatus,
|
|
47
|
+
default: LegalComplaintApprovalStatus.PENDING,
|
|
48
|
+
nullable: false,
|
|
49
|
+
})
|
|
50
|
+
approval_status: LegalComplaintApprovalStatus;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'text', nullable: true })
|
|
53
|
+
comment: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
56
|
+
is_allowed: boolean;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'int', nullable: false })
|
|
59
|
+
created_by: number;
|
|
60
|
+
|
|
61
|
+
constructor() {
|
|
62
|
+
super();
|
|
63
|
+
}
|
|
64
|
+
}
|