@platform-modules/foreign-ministry 1.3.286 → 1.3.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +52 -0
- package/dist/helpers/employee-evaluation-request.utils.d.ts +30 -0
- package/dist/helpers/employee-evaluation-request.utils.js +139 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +84 -1
- package/dist/models/EmployeeEvaluationAnswerModel.d.ts +5 -8
- package/dist/models/EmployeeEvaluationAnswerModel.js +18 -16
- package/dist/models/EmployeeEvaluationApprovalModel.d.ts +1 -1
- package/dist/models/EmployeeEvaluationApprovalModel.js +2 -2
- package/dist/models/EmployeeEvaluationPersonScoreModel.d.ts +9 -0
- package/dist/models/EmployeeEvaluationPersonScoreModel.js +45 -0
- package/dist/models/EmployeeEvaluationRequestModel.d.ts +6 -1
- package/dist/models/EmployeeEvaluationRequestModel.js +18 -2
- package/dist/models/EmployeeOfMonthNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthNominationApprovalModel.js +84 -0
- package/dist/models/EmployeeOfMonthNominationAttachmentModel.d.ts +10 -0
- package/dist/models/EmployeeOfMonthNominationAttachmentModel.js +48 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.d.ts +18 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.js +65 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +32 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.js +76 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +72 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +84 -0
- package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.d.ts +10 -0
- package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.js +48 -0
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.d.ts +18 -0
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.js +65 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +27 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +76 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +72 -0
- package/dist/models/EvaluationEligibilitySettingModel.d.ts +2 -0
- package/dist/models/EvaluationEligibilitySettingModel.js +4 -0
- package/dist/models/InitiatorEmployeeNominationApprovalModel.d.ts +22 -0
- package/dist/models/InitiatorEmployeeNominationApprovalModel.js +84 -0
- package/dist/models/InitiatorEmployeeNominationAttachmentModel.d.ts +11 -0
- package/dist/models/InitiatorEmployeeNominationAttachmentModel.js +52 -0
- package/dist/models/InitiatorEmployeeNominationChatModel.d.ts +18 -0
- package/dist/models/InitiatorEmployeeNominationChatModel.js +65 -0
- package/dist/models/InitiatorEmployeeNominationRequestModel.d.ts +51 -0
- package/dist/models/InitiatorEmployeeNominationRequestModel.js +95 -0
- package/dist/models/InitiatorEmployeeNominationWorkflowModel.d.ts +19 -0
- package/dist/models/InitiatorEmployeeNominationWorkflowModel.js +72 -0
- package/dist/models/InnovativeEmployeeNominationApprovalModel.d.ts +22 -0
- package/dist/models/InnovativeEmployeeNominationApprovalModel.js +84 -0
- package/dist/models/InnovativeEmployeeNominationAttachmentModel.d.ts +11 -0
- package/dist/models/InnovativeEmployeeNominationAttachmentModel.js +52 -0
- package/dist/models/InnovativeEmployeeNominationChatModel.d.ts +18 -0
- package/dist/models/InnovativeEmployeeNominationChatModel.js +65 -0
- package/dist/models/InnovativeEmployeeNominationRequestModel.d.ts +23 -0
- package/dist/models/InnovativeEmployeeNominationRequestModel.js +88 -0
- package/dist/models/InnovativeEmployeeNominationWorkflowModel.d.ts +19 -0
- package/dist/models/InnovativeEmployeeNominationWorkflowModel.js +72 -0
- package/dist/models/IpeGrievanceApprovalModel.d.ts +22 -0
- package/dist/models/IpeGrievanceApprovalModel.js +84 -0
- package/dist/models/IpeGrievanceAttachmentModel.d.ts +11 -0
- package/dist/models/IpeGrievanceAttachmentModel.js +52 -0
- package/dist/models/IpeGrievanceChatModel.d.ts +18 -0
- package/dist/models/IpeGrievanceChatModel.js +65 -0
- package/dist/models/IpeGrievanceRequestModel.d.ts +57 -0
- package/dist/models/IpeGrievanceRequestModel.js +178 -0
- package/dist/models/IpeGrievanceWorkflowModel.d.ts +19 -0
- package/dist/models/IpeGrievanceWorkflowModel.js +72 -0
- package/package.json +24 -24
- package/src/data-source.ts +664 -612
- package/src/helpers/employee-evaluation-request.utils.ts +181 -0
- package/src/index.ts +572 -467
- package/src/models/EmployeeEvaluationAnswerModel.ts +26 -28
- package/src/models/EmployeeEvaluationApprovalModel.ts +2 -2
- package/src/models/EmployeeEvaluationPersonScoreModel.ts +25 -0
- package/src/models/EmployeeEvaluationRequestModel.ts +90 -77
- package/src/models/EmployeeOfMonthNominationApprovalModel.ts +56 -0
- package/src/models/EmployeeOfMonthNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthNominationChatModel.ts +42 -0
- package/src/models/EmployeeOfMonthNominationRequestModel.ts +63 -0
- package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +47 -0
- package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +56 -0
- package/src/models/EmployeeOfMonthSupportNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +42 -0
- package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +58 -0
- package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +47 -0
- package/src/models/EvaluationEligibilitySettingModel.ts +51 -47
- package/src/models/InitiatorEmployeeNominationApprovalModel.ts +56 -0
- package/src/models/InitiatorEmployeeNominationAttachmentModel.ts +29 -0
- package/src/models/InitiatorEmployeeNominationChatModel.ts +42 -0
- package/src/models/InitiatorEmployeeNominationRequestModel.ts +74 -0
- package/src/models/InitiatorEmployeeNominationWorkflowModel.ts +47 -0
- package/src/models/InnovativeEmployeeNominationApprovalModel.ts +56 -0
- package/src/models/InnovativeEmployeeNominationAttachmentModel.ts +29 -0
- package/src/models/InnovativeEmployeeNominationChatModel.ts +42 -0
- package/src/models/InnovativeEmployeeNominationRequestModel.ts +59 -0
- package/src/models/InnovativeEmployeeNominationWorkflowModel.ts +47 -0
- package/src/models/IpeGrievanceApprovalModel.ts +56 -0
- package/src/models/IpeGrievanceAttachmentModel.ts +29 -0
- package/src/models/IpeGrievanceChatModel.ts +42 -0
- package/src/models/IpeGrievanceRequestModel.ts +139 -0
- package/src/models/IpeGrievanceWorkflowModel.ts +47 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum InnovativeEmployeeNominationWorkFlowStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
COMPLETED = 'Completed',
|
|
8
|
+
SKIPPED = 'Skipped',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'innovative_employee_nomination_workflows' })
|
|
12
|
+
export class InnovativeEmployeeNominationWorkFlow 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: true })
|
|
23
|
+
user_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
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: 'varchar', length: 255, nullable: true })
|
|
35
|
+
task_name: string | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'text', nullable: true })
|
|
38
|
+
description: string | null;
|
|
39
|
+
|
|
40
|
+
@Column({
|
|
41
|
+
type: 'enum',
|
|
42
|
+
enum: InnovativeEmployeeNominationWorkFlowStatus,
|
|
43
|
+
default: InnovativeEmployeeNominationWorkFlowStatus.PENDING,
|
|
44
|
+
nullable: false,
|
|
45
|
+
})
|
|
46
|
+
status: InnovativeEmployeeNominationWorkFlowStatus;
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum IpeGrievanceApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'ipe_grievance_approvals' })
|
|
12
|
+
export class IpeGrievanceApprovalDetails 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: IpeGrievanceApprovalStatus,
|
|
49
|
+
default: IpeGrievanceApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: IpeGrievanceApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'ipe_grievance_attachments' })
|
|
5
|
+
export class IpeGrievanceRequestAttachment 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 | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string | null;
|
|
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
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum IpeGrievanceMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'ipe_grievance_chats' })
|
|
13
|
+
export class IpeGrievanceRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: IpeGrievanceMessageType,
|
|
35
|
+
default: IpeGrievanceMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
message_type: IpeGrievanceMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum IpeGrievanceRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum IpeGrievanceFinalEvaluationResult {
|
|
12
|
+
VERY_GOOD = 'Very Good',
|
|
13
|
+
GOOD = 'Good',
|
|
14
|
+
MEDIUM = 'Medium',
|
|
15
|
+
WEAK = 'Weak',
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum IpeGrievancePeriodType {
|
|
19
|
+
FIRST_PERIOD = 'First Period',
|
|
20
|
+
SECOND_PERIOD = 'Second Period',
|
|
21
|
+
ANNUAL_EVALUATION = 'Annual Evaluation',
|
|
22
|
+
NO_EXEMPTION_FOR_PERIOD = 'No Exemption for a Period',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum IpeGrievanceExemptionReason {
|
|
26
|
+
EXTRAORDINARY_LEAVE = 'Extraordinary Leave',
|
|
27
|
+
SECONDMENT = 'Secondment',
|
|
28
|
+
OTHER = 'Other',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum IpeGrievancePeriodRating {
|
|
32
|
+
BELOW_EXPECTATIONS = 'Below expectations',
|
|
33
|
+
MEETS_EXPECTATIONS = 'Meets expectations',
|
|
34
|
+
EXCEEDS_EXPECTATIONS = 'Exceeds expectations',
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@Entity({ name: 'ipe_grievance_requests' })
|
|
38
|
+
export class IpeGrievanceRequests extends BaseModel {
|
|
39
|
+
@Column({ type: 'int', nullable: true })
|
|
40
|
+
req_user_department_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', nullable: true })
|
|
43
|
+
req_user_section_id: number | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'int', nullable: true })
|
|
46
|
+
service_id: number | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'int', nullable: true })
|
|
49
|
+
sub_service_id: number | null;
|
|
50
|
+
|
|
51
|
+
/** Employee who raised the grievance. */
|
|
52
|
+
@Column({ type: 'int', nullable: false })
|
|
53
|
+
user_id: number;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
56
|
+
employee_name: string;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
59
|
+
civil_id: string;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'varchar', length: 120, nullable: true })
|
|
62
|
+
grade: string | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
65
|
+
job_title: string | null;
|
|
66
|
+
|
|
67
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
68
|
+
department_office: string;
|
|
69
|
+
|
|
70
|
+
@Column({ type: 'date', nullable: true })
|
|
71
|
+
date_of_appointment: string | null;
|
|
72
|
+
|
|
73
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
74
|
+
current_administrator: string | null;
|
|
75
|
+
|
|
76
|
+
@Column({
|
|
77
|
+
type: 'enum',
|
|
78
|
+
enum: IpeGrievanceFinalEvaluationResult,
|
|
79
|
+
nullable: false,
|
|
80
|
+
})
|
|
81
|
+
final_evaluation_result: IpeGrievanceFinalEvaluationResult;
|
|
82
|
+
|
|
83
|
+
@Column({
|
|
84
|
+
type: 'enum',
|
|
85
|
+
enum: IpeGrievancePeriodType,
|
|
86
|
+
nullable: false,
|
|
87
|
+
})
|
|
88
|
+
grievance_period_type: IpeGrievancePeriodType;
|
|
89
|
+
|
|
90
|
+
@Column({
|
|
91
|
+
type: 'enum',
|
|
92
|
+
enum: IpeGrievanceExemptionReason,
|
|
93
|
+
nullable: true,
|
|
94
|
+
})
|
|
95
|
+
exemption_reason: IpeGrievanceExemptionReason | null;
|
|
96
|
+
|
|
97
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
98
|
+
direct_officer_first_period: string | null;
|
|
99
|
+
|
|
100
|
+
@Column({ type: 'int', nullable: true })
|
|
101
|
+
shaded_points_first_period: number | null;
|
|
102
|
+
|
|
103
|
+
@Column({
|
|
104
|
+
type: 'enum',
|
|
105
|
+
enum: IpeGrievancePeriodRating,
|
|
106
|
+
nullable: true,
|
|
107
|
+
})
|
|
108
|
+
evaluation_first_period: IpeGrievancePeriodRating | null;
|
|
109
|
+
|
|
110
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
111
|
+
direct_officer_second_period: string | null;
|
|
112
|
+
|
|
113
|
+
@Column({ type: 'int', nullable: true })
|
|
114
|
+
shaded_points_second_period: number | null;
|
|
115
|
+
|
|
116
|
+
@Column({
|
|
117
|
+
type: 'enum',
|
|
118
|
+
enum: IpeGrievancePeriodRating,
|
|
119
|
+
nullable: true,
|
|
120
|
+
})
|
|
121
|
+
evaluation_second_period: IpeGrievancePeriodRating | null;
|
|
122
|
+
|
|
123
|
+
@Column({ type: 'text', nullable: true })
|
|
124
|
+
other_grievance_grounds: string | null;
|
|
125
|
+
|
|
126
|
+
@Column({
|
|
127
|
+
type: 'enum',
|
|
128
|
+
enum: IpeGrievanceRequestStatus,
|
|
129
|
+
default: IpeGrievanceRequestStatus.PENDING,
|
|
130
|
+
nullable: false,
|
|
131
|
+
})
|
|
132
|
+
status: IpeGrievanceRequestStatus;
|
|
133
|
+
|
|
134
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
135
|
+
workflow_execution_id: string | null;
|
|
136
|
+
|
|
137
|
+
@Column({ type: 'text', nullable: true })
|
|
138
|
+
comments: string | null;
|
|
139
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum IpeGrievanceWorkFlowStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
COMPLETED = 'Completed',
|
|
8
|
+
SKIPPED = 'Skipped',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'ipe_grievance_workflows' })
|
|
12
|
+
export class IpeGrievanceWorkFlow 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: true })
|
|
23
|
+
user_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
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: 'varchar', length: 255, nullable: true })
|
|
35
|
+
task_name: string | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'text', nullable: true })
|
|
38
|
+
description: string | null;
|
|
39
|
+
|
|
40
|
+
@Column({
|
|
41
|
+
type: 'enum',
|
|
42
|
+
enum: IpeGrievanceWorkFlowStatus,
|
|
43
|
+
default: IpeGrievanceWorkFlowStatus.PENDING,
|
|
44
|
+
nullable: false,
|
|
45
|
+
})
|
|
46
|
+
status: IpeGrievanceWorkFlowStatus;
|
|
47
|
+
}
|