@platform-modules/foreign-ministry 1.3.286 → 1.3.296
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +52 -0
- package/dist/helpers/employee-evaluation-request.utils.d.ts +30 -0
- package/dist/helpers/employee-evaluation-request.utils.js +139 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +84 -1
- package/dist/models/EmployeeEvaluationAnswerModel.d.ts +5 -8
- package/dist/models/EmployeeEvaluationAnswerModel.js +18 -16
- package/dist/models/EmployeeEvaluationApprovalModel.d.ts +1 -1
- package/dist/models/EmployeeEvaluationApprovalModel.js +2 -2
- package/dist/models/EmployeeEvaluationPersonScoreModel.d.ts +9 -0
- package/dist/models/EmployeeEvaluationPersonScoreModel.js +45 -0
- package/dist/models/EmployeeEvaluationRequestModel.d.ts +6 -1
- package/dist/models/EmployeeEvaluationRequestModel.js +18 -2
- package/dist/models/EmployeeOfMonthNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthNominationApprovalModel.js +84 -0
- package/dist/models/EmployeeOfMonthNominationAttachmentModel.d.ts +10 -0
- package/dist/models/EmployeeOfMonthNominationAttachmentModel.js +48 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.d.ts +18 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.js +65 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +32 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.js +76 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +72 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +84 -0
- package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.d.ts +10 -0
- package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.js +48 -0
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.d.ts +18 -0
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.js +65 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +27 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +76 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +72 -0
- package/dist/models/EvaluationEligibilitySettingModel.d.ts +2 -0
- package/dist/models/EvaluationEligibilitySettingModel.js +4 -0
- package/dist/models/InitiatorEmployeeNominationApprovalModel.d.ts +22 -0
- package/dist/models/InitiatorEmployeeNominationApprovalModel.js +84 -0
- package/dist/models/InitiatorEmployeeNominationAttachmentModel.d.ts +11 -0
- package/dist/models/InitiatorEmployeeNominationAttachmentModel.js +52 -0
- package/dist/models/InitiatorEmployeeNominationChatModel.d.ts +18 -0
- package/dist/models/InitiatorEmployeeNominationChatModel.js +65 -0
- package/dist/models/InitiatorEmployeeNominationRequestModel.d.ts +51 -0
- package/dist/models/InitiatorEmployeeNominationRequestModel.js +95 -0
- package/dist/models/InitiatorEmployeeNominationWorkflowModel.d.ts +19 -0
- package/dist/models/InitiatorEmployeeNominationWorkflowModel.js +72 -0
- package/dist/models/InnovativeEmployeeNominationApprovalModel.d.ts +22 -0
- package/dist/models/InnovativeEmployeeNominationApprovalModel.js +84 -0
- package/dist/models/InnovativeEmployeeNominationAttachmentModel.d.ts +11 -0
- package/dist/models/InnovativeEmployeeNominationAttachmentModel.js +52 -0
- package/dist/models/InnovativeEmployeeNominationChatModel.d.ts +18 -0
- package/dist/models/InnovativeEmployeeNominationChatModel.js +65 -0
- package/dist/models/InnovativeEmployeeNominationRequestModel.d.ts +23 -0
- package/dist/models/InnovativeEmployeeNominationRequestModel.js +88 -0
- package/dist/models/InnovativeEmployeeNominationWorkflowModel.d.ts +19 -0
- package/dist/models/InnovativeEmployeeNominationWorkflowModel.js +72 -0
- package/dist/models/IpeGrievanceApprovalModel.d.ts +22 -0
- package/dist/models/IpeGrievanceApprovalModel.js +84 -0
- package/dist/models/IpeGrievanceAttachmentModel.d.ts +11 -0
- package/dist/models/IpeGrievanceAttachmentModel.js +52 -0
- package/dist/models/IpeGrievanceChatModel.d.ts +18 -0
- package/dist/models/IpeGrievanceChatModel.js +65 -0
- package/dist/models/IpeGrievanceRequestModel.d.ts +57 -0
- package/dist/models/IpeGrievanceRequestModel.js +178 -0
- package/dist/models/IpeGrievanceWorkflowModel.d.ts +19 -0
- package/dist/models/IpeGrievanceWorkflowModel.js +72 -0
- package/package.json +24 -24
- package/src/data-source.ts +664 -612
- package/src/helpers/employee-evaluation-request.utils.ts +181 -0
- package/src/index.ts +572 -467
- package/src/models/EmployeeEvaluationAnswerModel.ts +26 -28
- package/src/models/EmployeeEvaluationApprovalModel.ts +2 -2
- package/src/models/EmployeeEvaluationPersonScoreModel.ts +25 -0
- package/src/models/EmployeeEvaluationRequestModel.ts +90 -77
- package/src/models/EmployeeOfMonthNominationApprovalModel.ts +56 -0
- package/src/models/EmployeeOfMonthNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthNominationChatModel.ts +42 -0
- package/src/models/EmployeeOfMonthNominationRequestModel.ts +63 -0
- package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +47 -0
- package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +56 -0
- package/src/models/EmployeeOfMonthSupportNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +42 -0
- package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +58 -0
- package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +47 -0
- package/src/models/EvaluationEligibilitySettingModel.ts +51 -47
- package/src/models/InitiatorEmployeeNominationApprovalModel.ts +56 -0
- package/src/models/InitiatorEmployeeNominationAttachmentModel.ts +29 -0
- package/src/models/InitiatorEmployeeNominationChatModel.ts +42 -0
- package/src/models/InitiatorEmployeeNominationRequestModel.ts +74 -0
- package/src/models/InitiatorEmployeeNominationWorkflowModel.ts +47 -0
- package/src/models/InnovativeEmployeeNominationApprovalModel.ts +56 -0
- package/src/models/InnovativeEmployeeNominationAttachmentModel.ts +29 -0
- package/src/models/InnovativeEmployeeNominationChatModel.ts +42 -0
- package/src/models/InnovativeEmployeeNominationRequestModel.ts +59 -0
- package/src/models/InnovativeEmployeeNominationWorkflowModel.ts +47 -0
- package/src/models/IpeGrievanceApprovalModel.ts +56 -0
- package/src/models/IpeGrievanceAttachmentModel.ts +29 -0
- package/src/models/IpeGrievanceChatModel.ts +42 -0
- package/src/models/IpeGrievanceRequestModel.ts +139 -0
- package/src/models/IpeGrievanceWorkflowModel.ts +47 -0
|
@@ -0,0 +1,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
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
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.IpeGrievanceRequests = exports.IpeGrievancePeriodRating = exports.IpeGrievanceExemptionReason = exports.IpeGrievancePeriodType = exports.IpeGrievanceFinalEvaluationResult = exports.IpeGrievanceRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var IpeGrievanceRequestStatus;
|
|
16
|
+
(function (IpeGrievanceRequestStatus) {
|
|
17
|
+
IpeGrievanceRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
IpeGrievanceRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
IpeGrievanceRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
IpeGrievanceRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(IpeGrievanceRequestStatus || (exports.IpeGrievanceRequestStatus = IpeGrievanceRequestStatus = {}));
|
|
22
|
+
var IpeGrievanceFinalEvaluationResult;
|
|
23
|
+
(function (IpeGrievanceFinalEvaluationResult) {
|
|
24
|
+
IpeGrievanceFinalEvaluationResult["VERY_GOOD"] = "Very Good";
|
|
25
|
+
IpeGrievanceFinalEvaluationResult["GOOD"] = "Good";
|
|
26
|
+
IpeGrievanceFinalEvaluationResult["MEDIUM"] = "Medium";
|
|
27
|
+
IpeGrievanceFinalEvaluationResult["WEAK"] = "Weak";
|
|
28
|
+
})(IpeGrievanceFinalEvaluationResult || (exports.IpeGrievanceFinalEvaluationResult = IpeGrievanceFinalEvaluationResult = {}));
|
|
29
|
+
var IpeGrievancePeriodType;
|
|
30
|
+
(function (IpeGrievancePeriodType) {
|
|
31
|
+
IpeGrievancePeriodType["FIRST_PERIOD"] = "First Period";
|
|
32
|
+
IpeGrievancePeriodType["SECOND_PERIOD"] = "Second Period";
|
|
33
|
+
IpeGrievancePeriodType["ANNUAL_EVALUATION"] = "Annual Evaluation";
|
|
34
|
+
IpeGrievancePeriodType["NO_EXEMPTION_FOR_PERIOD"] = "No Exemption for a Period";
|
|
35
|
+
})(IpeGrievancePeriodType || (exports.IpeGrievancePeriodType = IpeGrievancePeriodType = {}));
|
|
36
|
+
var IpeGrievanceExemptionReason;
|
|
37
|
+
(function (IpeGrievanceExemptionReason) {
|
|
38
|
+
IpeGrievanceExemptionReason["EXTRAORDINARY_LEAVE"] = "Extraordinary Leave";
|
|
39
|
+
IpeGrievanceExemptionReason["SECONDMENT"] = "Secondment";
|
|
40
|
+
IpeGrievanceExemptionReason["OTHER"] = "Other";
|
|
41
|
+
})(IpeGrievanceExemptionReason || (exports.IpeGrievanceExemptionReason = IpeGrievanceExemptionReason = {}));
|
|
42
|
+
var IpeGrievancePeriodRating;
|
|
43
|
+
(function (IpeGrievancePeriodRating) {
|
|
44
|
+
IpeGrievancePeriodRating["BELOW_EXPECTATIONS"] = "Below expectations";
|
|
45
|
+
IpeGrievancePeriodRating["MEETS_EXPECTATIONS"] = "Meets expectations";
|
|
46
|
+
IpeGrievancePeriodRating["EXCEEDS_EXPECTATIONS"] = "Exceeds expectations";
|
|
47
|
+
})(IpeGrievancePeriodRating || (exports.IpeGrievancePeriodRating = IpeGrievancePeriodRating = {}));
|
|
48
|
+
let IpeGrievanceRequests = class IpeGrievanceRequests extends BaseModel_1.BaseModel {
|
|
49
|
+
};
|
|
50
|
+
exports.IpeGrievanceRequests = IpeGrievanceRequests;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], IpeGrievanceRequests.prototype, "req_user_department_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], IpeGrievanceRequests.prototype, "req_user_section_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], IpeGrievanceRequests.prototype, "service_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], IpeGrievanceRequests.prototype, "sub_service_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], IpeGrievanceRequests.prototype, "user_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], IpeGrievanceRequests.prototype, "employee_name", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], IpeGrievanceRequests.prototype, "civil_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 120, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], IpeGrievanceRequests.prototype, "grade", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], IpeGrievanceRequests.prototype, "job_title", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], IpeGrievanceRequests.prototype, "department_office", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], IpeGrievanceRequests.prototype, "date_of_appointment", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], IpeGrievanceRequests.prototype, "current_administrator", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({
|
|
101
|
+
type: 'enum',
|
|
102
|
+
enum: IpeGrievanceFinalEvaluationResult,
|
|
103
|
+
nullable: false,
|
|
104
|
+
}),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], IpeGrievanceRequests.prototype, "final_evaluation_result", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({
|
|
109
|
+
type: 'enum',
|
|
110
|
+
enum: IpeGrievancePeriodType,
|
|
111
|
+
nullable: false,
|
|
112
|
+
}),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], IpeGrievanceRequests.prototype, "grievance_period_type", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({
|
|
117
|
+
type: 'enum',
|
|
118
|
+
enum: IpeGrievanceExemptionReason,
|
|
119
|
+
nullable: true,
|
|
120
|
+
}),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], IpeGrievanceRequests.prototype, "exemption_reason", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], IpeGrievanceRequests.prototype, "direct_officer_first_period", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], IpeGrievanceRequests.prototype, "shaded_points_first_period", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({
|
|
133
|
+
type: 'enum',
|
|
134
|
+
enum: IpeGrievancePeriodRating,
|
|
135
|
+
nullable: true,
|
|
136
|
+
}),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], IpeGrievanceRequests.prototype, "evaluation_first_period", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], IpeGrievanceRequests.prototype, "direct_officer_second_period", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], IpeGrievanceRequests.prototype, "shaded_points_second_period", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({
|
|
149
|
+
type: 'enum',
|
|
150
|
+
enum: IpeGrievancePeriodRating,
|
|
151
|
+
nullable: true,
|
|
152
|
+
}),
|
|
153
|
+
__metadata("design:type", Object)
|
|
154
|
+
], IpeGrievanceRequests.prototype, "evaluation_second_period", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
157
|
+
__metadata("design:type", Object)
|
|
158
|
+
], IpeGrievanceRequests.prototype, "other_grievance_grounds", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({
|
|
161
|
+
type: 'enum',
|
|
162
|
+
enum: IpeGrievanceRequestStatus,
|
|
163
|
+
default: IpeGrievanceRequestStatus.PENDING,
|
|
164
|
+
nullable: false,
|
|
165
|
+
}),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], IpeGrievanceRequests.prototype, "status", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
170
|
+
__metadata("design:type", Object)
|
|
171
|
+
], IpeGrievanceRequests.prototype, "workflow_execution_id", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
174
|
+
__metadata("design:type", Object)
|
|
175
|
+
], IpeGrievanceRequests.prototype, "comments", void 0);
|
|
176
|
+
exports.IpeGrievanceRequests = IpeGrievanceRequests = __decorate([
|
|
177
|
+
(0, typeorm_1.Entity)({ name: 'ipe_grievance_requests' })
|
|
178
|
+
], IpeGrievanceRequests);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum IpeGrievanceWorkFlowStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
SKIPPED = "Skipped"
|
|
7
|
+
}
|
|
8
|
+
export declare class IpeGrievanceWorkFlow 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: IpeGrievanceWorkFlowStatus;
|
|
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.IpeGrievanceWorkFlow = exports.IpeGrievanceWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var IpeGrievanceWorkFlowStatus;
|
|
16
|
+
(function (IpeGrievanceWorkFlowStatus) {
|
|
17
|
+
IpeGrievanceWorkFlowStatus["PENDING"] = "Pending";
|
|
18
|
+
IpeGrievanceWorkFlowStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
IpeGrievanceWorkFlowStatus["COMPLETED"] = "Completed";
|
|
20
|
+
IpeGrievanceWorkFlowStatus["SKIPPED"] = "Skipped";
|
|
21
|
+
})(IpeGrievanceWorkFlowStatus || (exports.IpeGrievanceWorkFlowStatus = IpeGrievanceWorkFlowStatus = {}));
|
|
22
|
+
let IpeGrievanceWorkFlow = class IpeGrievanceWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.IpeGrievanceWorkFlow = IpeGrievanceWorkFlow;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], IpeGrievanceWorkFlow.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], IpeGrievanceWorkFlow.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], IpeGrievanceWorkFlow.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], IpeGrievanceWorkFlow.prototype, "user_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], IpeGrievanceWorkFlow.prototype, "role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], IpeGrievanceWorkFlow.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], IpeGrievanceWorkFlow.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], IpeGrievanceWorkFlow.prototype, "task_name", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], IpeGrievanceWorkFlow.prototype, "description", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: IpeGrievanceWorkFlowStatus,
|
|
65
|
+
default: IpeGrievanceWorkFlowStatus.PENDING,
|
|
66
|
+
nullable: false,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], IpeGrievanceWorkFlow.prototype, "status", void 0);
|
|
70
|
+
exports.IpeGrievanceWorkFlow = IpeGrievanceWorkFlow = __decorate([
|
|
71
|
+
(0, typeorm_1.Entity)({ name: 'ipe_grievance_workflows' })
|
|
72
|
+
], IpeGrievanceWorkFlow);
|