@platform-modules/foreign-ministry 1.3.290 → 1.3.297
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 +85 -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 +66 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +32 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.js +77 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +73 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +85 -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 +66 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +27 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +77 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +73 -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 +57 -0
- package/src/models/EmployeeOfMonthNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthNominationChatModel.ts +43 -0
- package/src/models/EmployeeOfMonthNominationRequestModel.ts +64 -0
- package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +48 -0
- package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +57 -0
- package/src/models/EmployeeOfMonthSupportNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +43 -0
- package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +59 -0
- package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +48 -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,23 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InnovativeEmployeeNominationRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class InnovativeEmployeeNominationRequests extends BaseModel {
|
|
9
|
+
req_user_department_id: number | null;
|
|
10
|
+
req_user_section_id: number | null;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
job_number: string;
|
|
15
|
+
last_annual_assessment: string;
|
|
16
|
+
idea_title: string;
|
|
17
|
+
idea_description: string;
|
|
18
|
+
contribution_description: string;
|
|
19
|
+
has_been_implemented: boolean;
|
|
20
|
+
status: InnovativeEmployeeNominationRequestStatus;
|
|
21
|
+
workflow_execution_id: string | null;
|
|
22
|
+
comments: string | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InnovativeEmployeeNominationRequests = exports.InnovativeEmployeeNominationRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InnovativeEmployeeNominationRequestStatus;
|
|
16
|
+
(function (InnovativeEmployeeNominationRequestStatus) {
|
|
17
|
+
InnovativeEmployeeNominationRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
InnovativeEmployeeNominationRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
InnovativeEmployeeNominationRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
InnovativeEmployeeNominationRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(InnovativeEmployeeNominationRequestStatus || (exports.InnovativeEmployeeNominationRequestStatus = InnovativeEmployeeNominationRequestStatus = {}));
|
|
22
|
+
let InnovativeEmployeeNominationRequests = class InnovativeEmployeeNominationRequests extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.InnovativeEmployeeNominationRequests = InnovativeEmployeeNominationRequests;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], InnovativeEmployeeNominationRequests.prototype, "req_user_department_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], InnovativeEmployeeNominationRequests.prototype, "req_user_section_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], InnovativeEmployeeNominationRequests.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], InnovativeEmployeeNominationRequests.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], InnovativeEmployeeNominationRequests.prototype, "user_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 120, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], InnovativeEmployeeNominationRequests.prototype, "job_number", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], InnovativeEmployeeNominationRequests.prototype, "last_annual_assessment", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], InnovativeEmployeeNominationRequests.prototype, "idea_title", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], InnovativeEmployeeNominationRequests.prototype, "idea_description", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], InnovativeEmployeeNominationRequests.prototype, "contribution_description", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: false }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], InnovativeEmployeeNominationRequests.prototype, "has_been_implemented", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: InnovativeEmployeeNominationRequestStatus,
|
|
73
|
+
default: InnovativeEmployeeNominationRequestStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], InnovativeEmployeeNominationRequests.prototype, "status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], InnovativeEmployeeNominationRequests.prototype, "workflow_execution_id", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], InnovativeEmployeeNominationRequests.prototype, "comments", void 0);
|
|
86
|
+
exports.InnovativeEmployeeNominationRequests = InnovativeEmployeeNominationRequests = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)({ name: 'innovative_employee_nomination_requests' })
|
|
88
|
+
], InnovativeEmployeeNominationRequests);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InnovativeEmployeeNominationWorkFlowStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
SKIPPED = "Skipped"
|
|
7
|
+
}
|
|
8
|
+
export declare class InnovativeEmployeeNominationWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
user_id: number | null;
|
|
13
|
+
role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
task_name: string | null;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: InnovativeEmployeeNominationWorkFlowStatus;
|
|
19
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InnovativeEmployeeNominationWorkFlow = exports.InnovativeEmployeeNominationWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InnovativeEmployeeNominationWorkFlowStatus;
|
|
16
|
+
(function (InnovativeEmployeeNominationWorkFlowStatus) {
|
|
17
|
+
InnovativeEmployeeNominationWorkFlowStatus["PENDING"] = "Pending";
|
|
18
|
+
InnovativeEmployeeNominationWorkFlowStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
InnovativeEmployeeNominationWorkFlowStatus["COMPLETED"] = "Completed";
|
|
20
|
+
InnovativeEmployeeNominationWorkFlowStatus["SKIPPED"] = "Skipped";
|
|
21
|
+
})(InnovativeEmployeeNominationWorkFlowStatus || (exports.InnovativeEmployeeNominationWorkFlowStatus = InnovativeEmployeeNominationWorkFlowStatus = {}));
|
|
22
|
+
let InnovativeEmployeeNominationWorkFlow = class InnovativeEmployeeNominationWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.InnovativeEmployeeNominationWorkFlow = InnovativeEmployeeNominationWorkFlow;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "user_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "task_name", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "description", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: InnovativeEmployeeNominationWorkFlowStatus,
|
|
65
|
+
default: InnovativeEmployeeNominationWorkFlowStatus.PENDING,
|
|
66
|
+
nullable: false,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], InnovativeEmployeeNominationWorkFlow.prototype, "status", void 0);
|
|
70
|
+
exports.InnovativeEmployeeNominationWorkFlow = InnovativeEmployeeNominationWorkFlow = __decorate([
|
|
71
|
+
(0, typeorm_1.Entity)({ name: 'innovative_employee_nomination_workflows' })
|
|
72
|
+
], InnovativeEmployeeNominationWorkFlow);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum IpeGrievanceApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class IpeGrievanceApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: IpeGrievanceApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IpeGrievanceApprovalDetails = exports.IpeGrievanceApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var IpeGrievanceApprovalStatus;
|
|
16
|
+
(function (IpeGrievanceApprovalStatus) {
|
|
17
|
+
IpeGrievanceApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
IpeGrievanceApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
IpeGrievanceApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
IpeGrievanceApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(IpeGrievanceApprovalStatus || (exports.IpeGrievanceApprovalStatus = IpeGrievanceApprovalStatus = {}));
|
|
22
|
+
let IpeGrievanceApprovalDetails = class IpeGrievanceApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.IpeGrievanceApprovalDetails = IpeGrievanceApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], IpeGrievanceApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], IpeGrievanceApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], IpeGrievanceApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], IpeGrievanceApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], IpeGrievanceApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], IpeGrievanceApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], IpeGrievanceApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], IpeGrievanceApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], IpeGrievanceApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], IpeGrievanceApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], IpeGrievanceApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: IpeGrievanceApprovalStatus,
|
|
73
|
+
default: IpeGrievanceApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], IpeGrievanceApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], IpeGrievanceApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.IpeGrievanceApprovalDetails = IpeGrievanceApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'ipe_grievance_approvals' })
|
|
84
|
+
], IpeGrievanceApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class IpeGrievanceRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string | null;
|
|
8
|
+
file_type: string | null;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IpeGrievanceRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let IpeGrievanceRequestAttachment = class IpeGrievanceRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.IpeGrievanceRequestAttachment = IpeGrievanceRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], IpeGrievanceRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], IpeGrievanceRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], IpeGrievanceRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], IpeGrievanceRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], IpeGrievanceRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], IpeGrievanceRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], IpeGrievanceRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], IpeGrievanceRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.IpeGrievanceRequestAttachment = IpeGrievanceRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'ipe_grievance_attachments' })
|
|
52
|
+
], IpeGrievanceRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum IpeGrievanceMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class IpeGrievanceRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
message: string;
|
|
16
|
+
message_type: IpeGrievanceMessageType;
|
|
17
|
+
status: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IpeGrievanceRequestChat = exports.IpeGrievanceMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var IpeGrievanceMessageType;
|
|
16
|
+
(function (IpeGrievanceMessageType) {
|
|
17
|
+
IpeGrievanceMessageType["TEXT"] = "text";
|
|
18
|
+
IpeGrievanceMessageType["IMAGE"] = "image";
|
|
19
|
+
IpeGrievanceMessageType["VIDEO"] = "video";
|
|
20
|
+
IpeGrievanceMessageType["FILE"] = "file";
|
|
21
|
+
IpeGrievanceMessageType["LINK"] = "link";
|
|
22
|
+
})(IpeGrievanceMessageType || (exports.IpeGrievanceMessageType = IpeGrievanceMessageType = {}));
|
|
23
|
+
let IpeGrievanceRequestChat = class IpeGrievanceRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.IpeGrievanceRequestChat = IpeGrievanceRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], IpeGrievanceRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], IpeGrievanceRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], IpeGrievanceRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], IpeGrievanceRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], IpeGrievanceRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], IpeGrievanceRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: 'enum',
|
|
53
|
+
enum: IpeGrievanceMessageType,
|
|
54
|
+
default: IpeGrievanceMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], IpeGrievanceRequestChat.prototype, "message_type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], IpeGrievanceRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.IpeGrievanceRequestChat = IpeGrievanceRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'ipe_grievance_chats' })
|
|
65
|
+
], IpeGrievanceRequestChat);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum IpeGrievanceRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare enum IpeGrievanceFinalEvaluationResult {
|
|
9
|
+
VERY_GOOD = "Very Good",
|
|
10
|
+
GOOD = "Good",
|
|
11
|
+
MEDIUM = "Medium",
|
|
12
|
+
WEAK = "Weak"
|
|
13
|
+
}
|
|
14
|
+
export declare enum IpeGrievancePeriodType {
|
|
15
|
+
FIRST_PERIOD = "First Period",
|
|
16
|
+
SECOND_PERIOD = "Second Period",
|
|
17
|
+
ANNUAL_EVALUATION = "Annual Evaluation",
|
|
18
|
+
NO_EXEMPTION_FOR_PERIOD = "No Exemption for a Period"
|
|
19
|
+
}
|
|
20
|
+
export declare enum IpeGrievanceExemptionReason {
|
|
21
|
+
EXTRAORDINARY_LEAVE = "Extraordinary Leave",
|
|
22
|
+
SECONDMENT = "Secondment",
|
|
23
|
+
OTHER = "Other"
|
|
24
|
+
}
|
|
25
|
+
export declare enum IpeGrievancePeriodRating {
|
|
26
|
+
BELOW_EXPECTATIONS = "Below expectations",
|
|
27
|
+
MEETS_EXPECTATIONS = "Meets expectations",
|
|
28
|
+
EXCEEDS_EXPECTATIONS = "Exceeds expectations"
|
|
29
|
+
}
|
|
30
|
+
export declare class IpeGrievanceRequests extends BaseModel {
|
|
31
|
+
req_user_department_id: number | null;
|
|
32
|
+
req_user_section_id: number | null;
|
|
33
|
+
service_id: number | null;
|
|
34
|
+
sub_service_id: number | null;
|
|
35
|
+
/** Employee who raised the grievance. */
|
|
36
|
+
user_id: number;
|
|
37
|
+
employee_name: string;
|
|
38
|
+
civil_id: string;
|
|
39
|
+
grade: string | null;
|
|
40
|
+
job_title: string | null;
|
|
41
|
+
department_office: string;
|
|
42
|
+
date_of_appointment: string | null;
|
|
43
|
+
current_administrator: string | null;
|
|
44
|
+
final_evaluation_result: IpeGrievanceFinalEvaluationResult;
|
|
45
|
+
grievance_period_type: IpeGrievancePeriodType;
|
|
46
|
+
exemption_reason: IpeGrievanceExemptionReason | null;
|
|
47
|
+
direct_officer_first_period: string | null;
|
|
48
|
+
shaded_points_first_period: number | null;
|
|
49
|
+
evaluation_first_period: IpeGrievancePeriodRating | null;
|
|
50
|
+
direct_officer_second_period: string | null;
|
|
51
|
+
shaded_points_second_period: number | null;
|
|
52
|
+
evaluation_second_period: IpeGrievancePeriodRating | null;
|
|
53
|
+
other_grievance_grounds: string | null;
|
|
54
|
+
status: IpeGrievanceRequestStatus;
|
|
55
|
+
workflow_execution_id: string | null;
|
|
56
|
+
comments: string | null;
|
|
57
|
+
}
|