@platform-modules/foreign-ministry 1.3.290 → 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 +50 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +77 -1
- 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/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 +1 -1
- package/src/data-source.ts +50 -0
- package/src/index.ts +93 -0
- 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/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
- package/scripts/migration-employee-evaluation-approval-role-null.sql +0 -11
- package/scripts/migration-employee-evaluation-request-v2.sql +0 -63
- package/scripts/migration-evaluation-max-employees-per-request.sql +0 -2
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthSupportNominationRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type EomSupportNominationRatingScores = {
|
|
12
|
+
professional_ethics_teamwork: number;
|
|
13
|
+
additional_responsibilities_adaptability: number;
|
|
14
|
+
support_and_advice: number;
|
|
15
|
+
quality_efficiency_timeliness: number;
|
|
16
|
+
technical_skills: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
@Entity({ name: 'employee_of_month_support_nomination_requests' })
|
|
20
|
+
export class EmployeeOfMonthSupportNominationRequests 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
|
+
@Column({ type: 'int', nullable: false })
|
|
34
|
+
user_id: number;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'varchar', length: 120, nullable: false })
|
|
37
|
+
job_number: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
40
|
+
last_annual_assessment: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'jsonb', nullable: false })
|
|
43
|
+
rating_scores: EomSupportNominationRatingScores;
|
|
44
|
+
|
|
45
|
+
@Column({
|
|
46
|
+
type: 'enum',
|
|
47
|
+
enum: EmployeeOfMonthSupportNominationRequestStatus,
|
|
48
|
+
default: EmployeeOfMonthSupportNominationRequestStatus.PENDING,
|
|
49
|
+
nullable: false,
|
|
50
|
+
})
|
|
51
|
+
status: EmployeeOfMonthSupportNominationRequestStatus;
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
|
+
workflow_execution_id: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'text', nullable: true })
|
|
57
|
+
comments: string | null;
|
|
58
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EmployeeOfMonthSupportNominationWorkFlowStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
COMPLETED = 'Completed',
|
|
8
|
+
FAILED = 'Failed',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'employee_of_month_support_nomination_workflows' })
|
|
12
|
+
export class EmployeeOfMonthSupportNominationWorkFlow 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: EmployeeOfMonthSupportNominationWorkFlowStatus,
|
|
43
|
+
default: EmployeeOfMonthSupportNominationWorkFlowStatus.PENDING,
|
|
44
|
+
nullable: false,
|
|
45
|
+
})
|
|
46
|
+
status: EmployeeOfMonthSupportNominationWorkFlowStatus;
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum InitiatorEmployeeNominationApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'initiator_employee_nomination_approvals' })
|
|
12
|
+
export class InitiatorEmployeeNominationApprovalDetails 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: InitiatorEmployeeNominationApprovalStatus,
|
|
49
|
+
default: InitiatorEmployeeNominationApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: InitiatorEmployeeNominationApprovalStatus;
|
|
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: 'initiator_employee_nomination_attachments' })
|
|
5
|
+
export class InitiatorEmployeeNominationRequestAttachment 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 InitiatorEmployeeNominationMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'initiator_employee_nomination_chats' })
|
|
13
|
+
export class InitiatorEmployeeNominationRequestChat 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: InitiatorEmployeeNominationMessageType,
|
|
35
|
+
default: InitiatorEmployeeNominationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
message_type: InitiatorEmployeeNominationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum InitiatorEmployeeNominationRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum InitiatorInitiativeType {
|
|
12
|
+
SAVE_COSTS_EFFORT_TIME = 'Save Costs, Effort or Time',
|
|
13
|
+
INCREASE_EMPLOYEE_SATISFACTION = 'Increase employee satisfaction',
|
|
14
|
+
IMPROVE_WORK_ENVIRONMENT = 'Improve the work environment',
|
|
15
|
+
OTHER = 'Other',
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type InitiatorNominationRatingScores = {
|
|
19
|
+
impact_on_workflow: { score: number; max_grade: number };
|
|
20
|
+
implementation_ability: { score: number; max_grade: number };
|
|
21
|
+
long_term_results: { score: number; max_grade: number };
|
|
22
|
+
additional_responsibilities: { score: number; max_grade: number };
|
|
23
|
+
overall_entrepreneurship: { score: number; max_grade: number };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
@Entity({ name: 'initiator_employee_nomination_requests' })
|
|
27
|
+
export class InitiatorEmployeeNominationRequests extends BaseModel {
|
|
28
|
+
@Column({ type: 'int', nullable: true })
|
|
29
|
+
req_user_department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'int', nullable: true })
|
|
32
|
+
req_user_section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'int', nullable: true })
|
|
35
|
+
service_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', nullable: true })
|
|
38
|
+
sub_service_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'int', nullable: false })
|
|
41
|
+
user_id: number;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 120, nullable: false })
|
|
44
|
+
job_number: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
47
|
+
last_annual_assessment: string;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
50
|
+
initiative_title: string;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'text', nullable: false })
|
|
53
|
+
initiative_description: string;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'jsonb', nullable: false })
|
|
56
|
+
initiative_types: string[];
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'jsonb', nullable: false })
|
|
59
|
+
rating_scores: InitiatorNominationRatingScores;
|
|
60
|
+
|
|
61
|
+
@Column({
|
|
62
|
+
type: 'enum',
|
|
63
|
+
enum: InitiatorEmployeeNominationRequestStatus,
|
|
64
|
+
default: InitiatorEmployeeNominationRequestStatus.PENDING,
|
|
65
|
+
nullable: false,
|
|
66
|
+
})
|
|
67
|
+
status: InitiatorEmployeeNominationRequestStatus;
|
|
68
|
+
|
|
69
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
70
|
+
workflow_execution_id: string | null;
|
|
71
|
+
|
|
72
|
+
@Column({ type: 'text', nullable: true })
|
|
73
|
+
comments: string | null;
|
|
74
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum InitiatorEmployeeNominationWorkFlowStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
COMPLETED = 'Completed',
|
|
8
|
+
SKIPPED = 'Skipped',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'initiator_employee_nomination_workflows' })
|
|
12
|
+
export class InitiatorEmployeeNominationWorkFlow 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: InitiatorEmployeeNominationWorkFlowStatus,
|
|
43
|
+
default: InitiatorEmployeeNominationWorkFlowStatus.PENDING,
|
|
44
|
+
nullable: false,
|
|
45
|
+
})
|
|
46
|
+
status: InitiatorEmployeeNominationWorkFlowStatus;
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum InnovativeEmployeeNominationApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'innovative_employee_nomination_approvals' })
|
|
12
|
+
export class InnovativeEmployeeNominationApprovalDetails 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: InnovativeEmployeeNominationApprovalStatus,
|
|
49
|
+
default: InnovativeEmployeeNominationApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: InnovativeEmployeeNominationApprovalStatus;
|
|
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: 'innovative_employee_nomination_attachments' })
|
|
5
|
+
export class InnovativeEmployeeNominationRequestAttachment 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 InnovativeEmployeeNominationMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'innovative_employee_nomination_chats' })
|
|
13
|
+
export class InnovativeEmployeeNominationRequestChat 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: InnovativeEmployeeNominationMessageType,
|
|
35
|
+
default: InnovativeEmployeeNominationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
message_type: InnovativeEmployeeNominationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|