@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
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { Column, Entity
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
remarks: string | null;
|
|
28
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'employee_evaluation_answers' })
|
|
5
|
+
export class EmployeeEvaluationAnswers extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: false })
|
|
10
|
+
user_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
form_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: false })
|
|
16
|
+
section_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: false })
|
|
19
|
+
question_id: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'integer', nullable: false })
|
|
22
|
+
score: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text', nullable: true })
|
|
25
|
+
remarks: string | null;
|
|
26
|
+
}
|
|
@@ -22,8 +22,8 @@ export class EmployeeEvaluationApprovalDetails extends BaseModel {
|
|
|
22
22
|
@Column({ type: 'integer', nullable: false })
|
|
23
23
|
level: number;
|
|
24
24
|
|
|
25
|
-
@Column({ type: 'integer', nullable:
|
|
26
|
-
approver_role_id: number;
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number | null;
|
|
27
27
|
|
|
28
28
|
@Column({ type: 'integer', nullable: true })
|
|
29
29
|
department_id: number | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { EmployeeEvaluationUsFeedback } from './EmployeeEvaluationModel';
|
|
4
|
+
|
|
5
|
+
@Entity({ name: 'employee_evaluation_person_scores' })
|
|
6
|
+
export class EmployeeEvaluationPersonScore extends BaseModel {
|
|
7
|
+
@Column({ type: 'integer', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'integer', nullable: false })
|
|
11
|
+
user_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({
|
|
14
|
+
type: 'enum',
|
|
15
|
+
enum: EmployeeEvaluationUsFeedback,
|
|
16
|
+
nullable: true,
|
|
17
|
+
})
|
|
18
|
+
us_feedback: EmployeeEvaluationUsFeedback | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'boolean', default: false, nullable: false })
|
|
21
|
+
is_rca: boolean;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'float', nullable: true })
|
|
24
|
+
total_score: number | null;
|
|
25
|
+
}
|
|
@@ -1,77 +1,90 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum EmployeeEvaluationRequestStatus {
|
|
5
|
-
PENDING = 'Pending',
|
|
6
|
-
IN_PROGRESS = 'In Progress',
|
|
7
|
-
APPROVED = 'Approved',
|
|
8
|
-
REJECTED = 'Rejected',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/** Routing bucket derived from undersecretary department (US Political / Administrative / Finance). */
|
|
12
|
-
export enum EmployeeEvaluationRoutingBucket {
|
|
13
|
-
US_POLITICAL = 'US_POLITICAL',
|
|
14
|
-
US_ADMINISTRATIVE = 'US_ADMINISTRATIVE',
|
|
15
|
-
FINANCE = 'FINANCE',
|
|
16
|
-
OTHER = 'OTHER',
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@Entity({ name: 'employee_evaluation_requests' })
|
|
20
|
-
export class EmployeeEvaluationRequests extends BaseModel {
|
|
21
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
req_user_department_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
req_user_section_id: number | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'int', nullable: true })
|
|
28
|
-
service_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'int', nullable: true })
|
|
31
|
-
sub_service_id: number | null;
|
|
32
|
-
|
|
33
|
-
/** User who raised the request (e.g. HOD). */
|
|
34
|
-
@Column({ type: 'int', nullable: false })
|
|
35
|
-
user_id: number;
|
|
36
|
-
|
|
37
|
-
@Column({ type: '
|
|
38
|
-
evaluation_year:
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'varchar', length: 120, nullable: false })
|
|
41
|
-
evaluation_period: string;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'int', nullable: false })
|
|
44
|
-
evaluation_month: number;
|
|
45
|
-
|
|
46
|
-
/** Scope: employees must belong to this department. */
|
|
47
|
-
@Column({ type: 'int', nullable: false })
|
|
48
|
-
department_id: number;
|
|
49
|
-
|
|
50
|
-
/** Scope: employees must belong to this section. */
|
|
51
|
-
@Column({ type: 'int', nullable: false })
|
|
52
|
-
section_id: number;
|
|
53
|
-
|
|
54
|
-
@Column({ type: 'bigint', nullable: true })
|
|
55
|
-
undersecretary_department_id: number | null;
|
|
56
|
-
|
|
57
|
-
@Column({
|
|
58
|
-
type: 'enum',
|
|
59
|
-
enum: EmployeeEvaluationRoutingBucket,
|
|
60
|
-
nullable: true,
|
|
61
|
-
})
|
|
62
|
-
evaluation_routing_bucket: EmployeeEvaluationRoutingBucket | null;
|
|
63
|
-
|
|
64
|
-
@Column({
|
|
65
|
-
type: 'enum',
|
|
66
|
-
enum: EmployeeEvaluationRequestStatus,
|
|
67
|
-
default: EmployeeEvaluationRequestStatus.PENDING,
|
|
68
|
-
nullable: false,
|
|
69
|
-
})
|
|
70
|
-
status: EmployeeEvaluationRequestStatus;
|
|
71
|
-
|
|
72
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
73
|
-
workflow_execution_id: string | null;
|
|
74
|
-
|
|
75
|
-
@Column({ type: 'text', nullable: true })
|
|
76
|
-
comments: string | null;
|
|
77
|
-
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeEvaluationRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Routing bucket derived from undersecretary department (US Political / Administrative / Finance). */
|
|
12
|
+
export enum EmployeeEvaluationRoutingBucket {
|
|
13
|
+
US_POLITICAL = 'US_POLITICAL',
|
|
14
|
+
US_ADMINISTRATIVE = 'US_ADMINISTRATIVE',
|
|
15
|
+
FINANCE = 'FINANCE',
|
|
16
|
+
OTHER = 'OTHER',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@Entity({ name: 'employee_evaluation_requests' })
|
|
20
|
+
export class EmployeeEvaluationRequests extends BaseModel {
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
req_user_department_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
req_user_section_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: true })
|
|
28
|
+
service_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'int', nullable: true })
|
|
31
|
+
sub_service_id: number | null;
|
|
32
|
+
|
|
33
|
+
/** User who raised the request (e.g. HOD). */
|
|
34
|
+
@Column({ type: 'int', nullable: false })
|
|
35
|
+
user_id: number;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', length: 10, nullable: false })
|
|
38
|
+
evaluation_year: string;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'varchar', length: 120, nullable: false })
|
|
41
|
+
evaluation_period: string;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'int', nullable: false })
|
|
44
|
+
evaluation_month: number;
|
|
45
|
+
|
|
46
|
+
/** Scope: employees must belong to this department. */
|
|
47
|
+
@Column({ type: 'int', nullable: false })
|
|
48
|
+
department_id: number;
|
|
49
|
+
|
|
50
|
+
/** Scope: employees must belong to this section. */
|
|
51
|
+
@Column({ type: 'int', nullable: false })
|
|
52
|
+
section_id: number;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'bigint', nullable: true })
|
|
55
|
+
undersecretary_department_id: number | null;
|
|
56
|
+
|
|
57
|
+
@Column({
|
|
58
|
+
type: 'enum',
|
|
59
|
+
enum: EmployeeEvaluationRoutingBucket,
|
|
60
|
+
nullable: true,
|
|
61
|
+
})
|
|
62
|
+
evaluation_routing_bucket: EmployeeEvaluationRoutingBucket | null;
|
|
63
|
+
|
|
64
|
+
@Column({
|
|
65
|
+
type: 'enum',
|
|
66
|
+
enum: EmployeeEvaluationRequestStatus,
|
|
67
|
+
default: EmployeeEvaluationRequestStatus.PENDING,
|
|
68
|
+
nullable: false,
|
|
69
|
+
})
|
|
70
|
+
status: EmployeeEvaluationRequestStatus;
|
|
71
|
+
|
|
72
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
73
|
+
workflow_execution_id: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: 'text', nullable: true })
|
|
76
|
+
comments: string | null;
|
|
77
|
+
|
|
78
|
+
@Column({ type: 'float', nullable: true })
|
|
79
|
+
total_score: number | null;
|
|
80
|
+
|
|
81
|
+
@Column({ type: 'float', nullable: true })
|
|
82
|
+
average_score: number | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: 'int', default: 0, nullable: false })
|
|
85
|
+
employee_count: number;
|
|
86
|
+
|
|
87
|
+
/** Form structure snapshot at request creation (sections/questions). */
|
|
88
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
89
|
+
dynamic_evaluation_form: Record<string, unknown> | null;
|
|
90
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthNominationApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'employee_of_month_nomination_approvals' })
|
|
12
|
+
export class EmployeeOfMonthNominationApprovalDetails 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: EmployeeOfMonthNominationApprovalStatus,
|
|
49
|
+
default: EmployeeOfMonthNominationApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: EmployeeOfMonthNominationApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'employee_of_month_nomination_attachments' })
|
|
5
|
+
export class EmployeeOfMonthNominationRequestAttachment 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
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthNominationMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'employee_of_month_nomination_chats' })
|
|
13
|
+
export class EmployeeOfMonthNominationRequestChat 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: EmployeeOfMonthNominationMessageType,
|
|
35
|
+
default: EmployeeOfMonthNominationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
message_type: EmployeeOfMonthNominationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthNominationRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type EomNominationRatingScores = {
|
|
12
|
+
effective_communication: number;
|
|
13
|
+
rules_regulations_familiarity: number;
|
|
14
|
+
support_and_advice: number;
|
|
15
|
+
professional_ethics_teamwork: number;
|
|
16
|
+
additional_responsibilities_adaptability: number;
|
|
17
|
+
discipline_work_hours: number;
|
|
18
|
+
confidentiality: number;
|
|
19
|
+
avoid_mistakes_quality_improvement: number;
|
|
20
|
+
quality_efficiency_timeliness: number;
|
|
21
|
+
proactive_support_colleagues: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
@Entity({ name: 'employee_of_month_nomination_requests' })
|
|
25
|
+
export class EmployeeOfMonthNominationRequests extends BaseModel {
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
req_user_department_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: true })
|
|
30
|
+
req_user_section_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: true })
|
|
33
|
+
service_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: true })
|
|
36
|
+
sub_service_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'int', nullable: false })
|
|
39
|
+
user_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 120, nullable: false })
|
|
42
|
+
job_number: string;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
45
|
+
last_annual_assessment: string;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'jsonb', nullable: false })
|
|
48
|
+
rating_scores: EomNominationRatingScores;
|
|
49
|
+
|
|
50
|
+
@Column({
|
|
51
|
+
type: 'enum',
|
|
52
|
+
enum: EmployeeOfMonthNominationRequestStatus,
|
|
53
|
+
default: EmployeeOfMonthNominationRequestStatus.PENDING,
|
|
54
|
+
nullable: false,
|
|
55
|
+
})
|
|
56
|
+
status: EmployeeOfMonthNominationRequestStatus;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
59
|
+
workflow_execution_id: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'text', nullable: true })
|
|
62
|
+
comments: string | null;
|
|
63
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthNominationWorkFlowStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
COMPLETED = 'Completed',
|
|
8
|
+
FAILED = 'Failed',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'employee_of_month_nomination_workflows' })
|
|
12
|
+
export class EmployeeOfMonthNominationWorkFlow 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: false })
|
|
35
|
+
task_name: string;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'text', nullable: true })
|
|
38
|
+
description: string | null;
|
|
39
|
+
|
|
40
|
+
@Column({
|
|
41
|
+
type: 'enum',
|
|
42
|
+
enum: EmployeeOfMonthNominationWorkFlowStatus,
|
|
43
|
+
default: EmployeeOfMonthNominationWorkFlowStatus.PENDING,
|
|
44
|
+
nullable: false,
|
|
45
|
+
})
|
|
46
|
+
status: EmployeeOfMonthNominationWorkFlowStatus;
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthSupportNominationApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'employee_of_month_support_nomination_approvals' })
|
|
12
|
+
export class EmployeeOfMonthSupportNominationApprovalDetails 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: EmployeeOfMonthSupportNominationApprovalStatus,
|
|
49
|
+
default: EmployeeOfMonthSupportNominationApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: EmployeeOfMonthSupportNominationApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'employee_of_month_support_nomination_attachments' })
|
|
5
|
+
export class EmployeeOfMonthSupportNominationRequestAttachment 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
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthSupportNominationMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'employee_of_month_support_nomination_chats' })
|
|
13
|
+
export class EmployeeOfMonthSupportNominationRequestChat 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: EmployeeOfMonthSupportNominationMessageType,
|
|
35
|
+
default: EmployeeOfMonthSupportNominationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
message_type: EmployeeOfMonthSupportNominationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|