@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.
Files changed (84) hide show
  1. package/dist/data-source.js +50 -0
  2. package/dist/index.d.ts +28 -0
  3. package/dist/index.js +77 -1
  4. package/dist/models/EmployeeOfMonthNominationApprovalModel.d.ts +22 -0
  5. package/dist/models/EmployeeOfMonthNominationApprovalModel.js +85 -0
  6. package/dist/models/EmployeeOfMonthNominationAttachmentModel.d.ts +10 -0
  7. package/dist/models/EmployeeOfMonthNominationAttachmentModel.js +48 -0
  8. package/dist/models/EmployeeOfMonthNominationChatModel.d.ts +18 -0
  9. package/dist/models/EmployeeOfMonthNominationChatModel.js +66 -0
  10. package/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +32 -0
  11. package/dist/models/EmployeeOfMonthNominationRequestModel.js +77 -0
  12. package/dist/models/EmployeeOfMonthNominationWorkflowModel.d.ts +19 -0
  13. package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +73 -0
  14. package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +22 -0
  15. package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +85 -0
  16. package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.d.ts +10 -0
  17. package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.js +48 -0
  18. package/dist/models/EmployeeOfMonthSupportNominationChatModel.d.ts +18 -0
  19. package/dist/models/EmployeeOfMonthSupportNominationChatModel.js +66 -0
  20. package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +27 -0
  21. package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +77 -0
  22. package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.d.ts +19 -0
  23. package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +73 -0
  24. package/dist/models/InitiatorEmployeeNominationApprovalModel.d.ts +22 -0
  25. package/dist/models/InitiatorEmployeeNominationApprovalModel.js +84 -0
  26. package/dist/models/InitiatorEmployeeNominationAttachmentModel.d.ts +11 -0
  27. package/dist/models/InitiatorEmployeeNominationAttachmentModel.js +52 -0
  28. package/dist/models/InitiatorEmployeeNominationChatModel.d.ts +18 -0
  29. package/dist/models/InitiatorEmployeeNominationChatModel.js +65 -0
  30. package/dist/models/InitiatorEmployeeNominationRequestModel.d.ts +51 -0
  31. package/dist/models/InitiatorEmployeeNominationRequestModel.js +95 -0
  32. package/dist/models/InitiatorEmployeeNominationWorkflowModel.d.ts +19 -0
  33. package/dist/models/InitiatorEmployeeNominationWorkflowModel.js +72 -0
  34. package/dist/models/InnovativeEmployeeNominationApprovalModel.d.ts +22 -0
  35. package/dist/models/InnovativeEmployeeNominationApprovalModel.js +84 -0
  36. package/dist/models/InnovativeEmployeeNominationAttachmentModel.d.ts +11 -0
  37. package/dist/models/InnovativeEmployeeNominationAttachmentModel.js +52 -0
  38. package/dist/models/InnovativeEmployeeNominationChatModel.d.ts +18 -0
  39. package/dist/models/InnovativeEmployeeNominationChatModel.js +65 -0
  40. package/dist/models/InnovativeEmployeeNominationRequestModel.d.ts +23 -0
  41. package/dist/models/InnovativeEmployeeNominationRequestModel.js +88 -0
  42. package/dist/models/InnovativeEmployeeNominationWorkflowModel.d.ts +19 -0
  43. package/dist/models/InnovativeEmployeeNominationWorkflowModel.js +72 -0
  44. package/dist/models/IpeGrievanceApprovalModel.d.ts +22 -0
  45. package/dist/models/IpeGrievanceApprovalModel.js +84 -0
  46. package/dist/models/IpeGrievanceAttachmentModel.d.ts +11 -0
  47. package/dist/models/IpeGrievanceAttachmentModel.js +52 -0
  48. package/dist/models/IpeGrievanceChatModel.d.ts +18 -0
  49. package/dist/models/IpeGrievanceChatModel.js +65 -0
  50. package/dist/models/IpeGrievanceRequestModel.d.ts +57 -0
  51. package/dist/models/IpeGrievanceRequestModel.js +178 -0
  52. package/dist/models/IpeGrievanceWorkflowModel.d.ts +19 -0
  53. package/dist/models/IpeGrievanceWorkflowModel.js +72 -0
  54. package/package.json +1 -1
  55. package/src/data-source.ts +50 -0
  56. package/src/index.ts +93 -0
  57. package/src/models/EmployeeOfMonthNominationApprovalModel.ts +57 -0
  58. package/src/models/EmployeeOfMonthNominationAttachmentModel.ts +26 -0
  59. package/src/models/EmployeeOfMonthNominationChatModel.ts +43 -0
  60. package/src/models/EmployeeOfMonthNominationRequestModel.ts +64 -0
  61. package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +48 -0
  62. package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +57 -0
  63. package/src/models/EmployeeOfMonthSupportNominationAttachmentModel.ts +26 -0
  64. package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +43 -0
  65. package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +59 -0
  66. package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +48 -0
  67. package/src/models/InitiatorEmployeeNominationApprovalModel.ts +56 -0
  68. package/src/models/InitiatorEmployeeNominationAttachmentModel.ts +29 -0
  69. package/src/models/InitiatorEmployeeNominationChatModel.ts +42 -0
  70. package/src/models/InitiatorEmployeeNominationRequestModel.ts +74 -0
  71. package/src/models/InitiatorEmployeeNominationWorkflowModel.ts +47 -0
  72. package/src/models/InnovativeEmployeeNominationApprovalModel.ts +56 -0
  73. package/src/models/InnovativeEmployeeNominationAttachmentModel.ts +29 -0
  74. package/src/models/InnovativeEmployeeNominationChatModel.ts +42 -0
  75. package/src/models/InnovativeEmployeeNominationRequestModel.ts +59 -0
  76. package/src/models/InnovativeEmployeeNominationWorkflowModel.ts +47 -0
  77. package/src/models/IpeGrievanceApprovalModel.ts +56 -0
  78. package/src/models/IpeGrievanceAttachmentModel.ts +29 -0
  79. package/src/models/IpeGrievanceChatModel.ts +42 -0
  80. package/src/models/IpeGrievanceRequestModel.ts +139 -0
  81. package/src/models/IpeGrievanceWorkflowModel.ts +47 -0
  82. package/scripts/migration-employee-evaluation-approval-role-null.sql +0 -11
  83. package/scripts/migration-employee-evaluation-request-v2.sql +0 -63
  84. package/scripts/migration-evaluation-max-employees-per-request.sql +0 -2
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.290",
3
+ "version": "1.3.297",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -307,6 +307,31 @@ import { EmployeeEvaluationApprovalDetails } from './models/EmployeeEvaluationAp
307
307
  import { EmployeeEvaluationWorkFlow } from './models/EmployeeEvaluationWorkflowModel';
308
308
  import { EmployeeEvaluationRequestChat } from './models/EmployeeEvaluationChatModel';
309
309
  import { EmployeeEvaluationRequestAttachment } from './models/EmployeeEvaluationAttachmentModel';
310
+ import { IpeGrievanceRequests } from './models/IpeGrievanceRequestModel';
311
+ import { IpeGrievanceApprovalDetails } from './models/IpeGrievanceApprovalModel';
312
+ import { IpeGrievanceWorkFlow } from './models/IpeGrievanceWorkflowModel';
313
+ import { IpeGrievanceRequestChat } from './models/IpeGrievanceChatModel';
314
+ import { IpeGrievanceRequestAttachment } from './models/IpeGrievanceAttachmentModel';
315
+ import { InitiatorEmployeeNominationRequests } from './models/InitiatorEmployeeNominationRequestModel';
316
+ import { InitiatorEmployeeNominationApprovalDetails } from './models/InitiatorEmployeeNominationApprovalModel';
317
+ import { InitiatorEmployeeNominationWorkFlow } from './models/InitiatorEmployeeNominationWorkflowModel';
318
+ import { InitiatorEmployeeNominationRequestChat } from './models/InitiatorEmployeeNominationChatModel';
319
+ import { InitiatorEmployeeNominationRequestAttachment } from './models/InitiatorEmployeeNominationAttachmentModel';
320
+ import { InnovativeEmployeeNominationRequests } from './models/InnovativeEmployeeNominationRequestModel';
321
+ import { InnovativeEmployeeNominationApprovalDetails } from './models/InnovativeEmployeeNominationApprovalModel';
322
+ import { InnovativeEmployeeNominationWorkFlow } from './models/InnovativeEmployeeNominationWorkflowModel';
323
+ import { InnovativeEmployeeNominationRequestChat } from './models/InnovativeEmployeeNominationChatModel';
324
+ import { InnovativeEmployeeNominationRequestAttachment } from './models/InnovativeEmployeeNominationAttachmentModel';
325
+ import { EmployeeOfMonthNominationRequests } from './models/EmployeeOfMonthNominationRequestModel';
326
+ import { EmployeeOfMonthNominationApprovalDetails } from './models/EmployeeOfMonthNominationApprovalModel';
327
+ import { EmployeeOfMonthNominationWorkFlow } from './models/EmployeeOfMonthNominationWorkflowModel';
328
+ import { EmployeeOfMonthNominationRequestChat } from './models/EmployeeOfMonthNominationChatModel';
329
+ import { EmployeeOfMonthNominationRequestAttachment } from './models/EmployeeOfMonthNominationAttachmentModel';
330
+ import { EmployeeOfMonthSupportNominationRequests } from './models/EmployeeOfMonthSupportNominationRequestModel';
331
+ import { EmployeeOfMonthSupportNominationApprovalDetails } from './models/EmployeeOfMonthSupportNominationApprovalModel';
332
+ import { EmployeeOfMonthSupportNominationWorkFlow } from './models/EmployeeOfMonthSupportNominationWorkflowModel';
333
+ import { EmployeeOfMonthSupportNominationRequestChat } from './models/EmployeeOfMonthSupportNominationChatModel';
334
+ import { EmployeeOfMonthSupportNominationRequestAttachment } from './models/EmployeeOfMonthSupportNominationAttachmentModel';
310
335
 
311
336
  export const AppDataSource = new DataSource({
312
337
  type: 'postgres',
@@ -610,5 +635,30 @@ export const AppDataSource = new DataSource({
610
635
  EmployeeEvaluationWorkFlow,
611
636
  EmployeeEvaluationRequestChat,
612
637
  EmployeeEvaluationRequestAttachment,
638
+ IpeGrievanceRequests,
639
+ IpeGrievanceApprovalDetails,
640
+ IpeGrievanceWorkFlow,
641
+ IpeGrievanceRequestChat,
642
+ IpeGrievanceRequestAttachment,
643
+ InitiatorEmployeeNominationRequests,
644
+ InitiatorEmployeeNominationApprovalDetails,
645
+ InitiatorEmployeeNominationWorkFlow,
646
+ InitiatorEmployeeNominationRequestChat,
647
+ InitiatorEmployeeNominationRequestAttachment,
648
+ InnovativeEmployeeNominationRequests,
649
+ InnovativeEmployeeNominationApprovalDetails,
650
+ InnovativeEmployeeNominationWorkFlow,
651
+ InnovativeEmployeeNominationRequestChat,
652
+ InnovativeEmployeeNominationRequestAttachment,
653
+ EmployeeOfMonthNominationRequests,
654
+ EmployeeOfMonthNominationApprovalDetails,
655
+ EmployeeOfMonthNominationWorkFlow,
656
+ EmployeeOfMonthNominationRequestChat,
657
+ EmployeeOfMonthNominationRequestAttachment,
658
+ EmployeeOfMonthSupportNominationRequests,
659
+ EmployeeOfMonthSupportNominationApprovalDetails,
660
+ EmployeeOfMonthSupportNominationWorkFlow,
661
+ EmployeeOfMonthSupportNominationRequestChat,
662
+ EmployeeOfMonthSupportNominationRequestAttachment,
613
663
  ],
614
664
  });
package/src/index.ts CHANGED
@@ -469,6 +469,99 @@ export {
469
469
  EmployeeEvaluationMessageType,
470
470
  } from './models/EmployeeEvaluationChatModel';
471
471
  export { EmployeeEvaluationRequestAttachment } from './models/EmployeeEvaluationAttachmentModel';
472
+ export {
473
+ IpeGrievanceRequests,
474
+ IpeGrievanceRequestStatus,
475
+ IpeGrievanceFinalEvaluationResult,
476
+ IpeGrievancePeriodType,
477
+ IpeGrievanceExemptionReason,
478
+ IpeGrievancePeriodRating,
479
+ } from './models/IpeGrievanceRequestModel';
480
+ export {
481
+ IpeGrievanceApprovalDetails,
482
+ IpeGrievanceApprovalStatus,
483
+ } from './models/IpeGrievanceApprovalModel';
484
+ export {
485
+ IpeGrievanceWorkFlow,
486
+ IpeGrievanceWorkFlowStatus,
487
+ } from './models/IpeGrievanceWorkflowModel';
488
+ export {
489
+ IpeGrievanceRequestChat,
490
+ IpeGrievanceMessageType,
491
+ } from './models/IpeGrievanceChatModel';
492
+ export { IpeGrievanceRequestAttachment } from './models/IpeGrievanceAttachmentModel';
493
+ export {
494
+ InitiatorEmployeeNominationRequests,
495
+ InitiatorEmployeeNominationRequestStatus,
496
+ InitiatorInitiativeType,
497
+ } from './models/InitiatorEmployeeNominationRequestModel';
498
+ export type { InitiatorNominationRatingScores } from './models/InitiatorEmployeeNominationRequestModel';
499
+ export {
500
+ InitiatorEmployeeNominationApprovalDetails,
501
+ InitiatorEmployeeNominationApprovalStatus,
502
+ } from './models/InitiatorEmployeeNominationApprovalModel';
503
+ export {
504
+ InitiatorEmployeeNominationWorkFlow,
505
+ InitiatorEmployeeNominationWorkFlowStatus,
506
+ } from './models/InitiatorEmployeeNominationWorkflowModel';
507
+ export {
508
+ InitiatorEmployeeNominationRequestChat,
509
+ InitiatorEmployeeNominationMessageType,
510
+ } from './models/InitiatorEmployeeNominationChatModel';
511
+ export { InitiatorEmployeeNominationRequestAttachment } from './models/InitiatorEmployeeNominationAttachmentModel';
512
+ export {
513
+ InnovativeEmployeeNominationRequests,
514
+ InnovativeEmployeeNominationRequestStatus,
515
+ } from './models/InnovativeEmployeeNominationRequestModel';
516
+ export {
517
+ InnovativeEmployeeNominationApprovalDetails,
518
+ InnovativeEmployeeNominationApprovalStatus,
519
+ } from './models/InnovativeEmployeeNominationApprovalModel';
520
+ export {
521
+ InnovativeEmployeeNominationWorkFlow,
522
+ InnovativeEmployeeNominationWorkFlowStatus,
523
+ } from './models/InnovativeEmployeeNominationWorkflowModel';
524
+ export {
525
+ InnovativeEmployeeNominationRequestChat,
526
+ InnovativeEmployeeNominationMessageType,
527
+ } from './models/InnovativeEmployeeNominationChatModel';
528
+ export { InnovativeEmployeeNominationRequestAttachment } from './models/InnovativeEmployeeNominationAttachmentModel';
529
+ export {
530
+ EmployeeOfMonthNominationRequests,
531
+ EmployeeOfMonthNominationRequestStatus,
532
+ } from './models/EmployeeOfMonthNominationRequestModel';
533
+ export type { EomNominationRatingScores } from './models/EmployeeOfMonthNominationRequestModel';
534
+ export {
535
+ EmployeeOfMonthNominationApprovalDetails,
536
+ EmployeeOfMonthNominationApprovalStatus,
537
+ } from './models/EmployeeOfMonthNominationApprovalModel';
538
+ export {
539
+ EmployeeOfMonthNominationWorkFlow,
540
+ EmployeeOfMonthNominationWorkFlowStatus,
541
+ } from './models/EmployeeOfMonthNominationWorkflowModel';
542
+ export {
543
+ EmployeeOfMonthNominationRequestChat,
544
+ EmployeeOfMonthNominationMessageType,
545
+ } from './models/EmployeeOfMonthNominationChatModel';
546
+ export { EmployeeOfMonthNominationRequestAttachment } from './models/EmployeeOfMonthNominationAttachmentModel';
547
+ export {
548
+ EmployeeOfMonthSupportNominationRequests,
549
+ EmployeeOfMonthSupportNominationRequestStatus,
550
+ } from './models/EmployeeOfMonthSupportNominationRequestModel';
551
+ export type { EomSupportNominationRatingScores } from './models/EmployeeOfMonthSupportNominationRequestModel';
552
+ export {
553
+ EmployeeOfMonthSupportNominationApprovalDetails,
554
+ EmployeeOfMonthSupportNominationApprovalStatus,
555
+ } from './models/EmployeeOfMonthSupportNominationApprovalModel';
556
+ export {
557
+ EmployeeOfMonthSupportNominationWorkFlow,
558
+ EmployeeOfMonthSupportNominationWorkFlowStatus,
559
+ } from './models/EmployeeOfMonthSupportNominationWorkflowModel';
560
+ export {
561
+ EmployeeOfMonthSupportNominationRequestChat,
562
+ EmployeeOfMonthSupportNominationMessageType,
563
+ } from './models/EmployeeOfMonthSupportNominationChatModel';
564
+ export { EmployeeOfMonthSupportNominationRequestAttachment } from './models/EmployeeOfMonthSupportNominationAttachmentModel';
472
565
  export {
473
566
  EvaluationForm,
474
567
  EvaluationFormType,
@@ -0,0 +1,57 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum EmployeeOfMonthNominationApprovalStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ @Entity({ name: 'employee_of_month_nomination_approvals' })
12
+ export class EmployeeOfMonthNominationApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number | null;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({
47
+ type: 'enum',
48
+ enum: EmployeeOfMonthNominationApprovalStatus,
49
+ enumName: 'eom_nomination_approval_status_enum',
50
+ default: EmployeeOfMonthNominationApprovalStatus.PENDING,
51
+ nullable: false,
52
+ })
53
+ approval_status: EmployeeOfMonthNominationApprovalStatus;
54
+
55
+ @Column({ type: 'boolean', default: true, nullable: false })
56
+ is_allowed: boolean;
57
+ }
@@ -0,0 +1,26 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'employee_of_month_nomination_attachments' })
5
+ export class EmployeeOfMonthNominationRequestAttachment extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: false })
16
+ file_url: string;
17
+
18
+ @Column({ type: 'varchar', length: 255, nullable: true })
19
+ file_name: string | null;
20
+
21
+ @Column({ type: 'varchar', length: 100, nullable: true })
22
+ file_type: string | null;
23
+
24
+ @Column({ type: 'bigint', nullable: true })
25
+ file_size: number | null;
26
+ }
@@ -0,0 +1,43 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum EmployeeOfMonthNominationMessageType {
5
+ TEXT = 'text',
6
+ IMAGE = 'image',
7
+ VIDEO = 'video',
8
+ FILE = 'file',
9
+ LINK = 'link',
10
+ }
11
+
12
+ @Entity({ name: 'employee_of_month_nomination_chats' })
13
+ export class EmployeeOfMonthNominationRequestChat extends BaseModel {
14
+ @Column({ type: 'integer', nullable: false })
15
+ request_id: number;
16
+
17
+ @Column({ type: 'integer', nullable: true })
18
+ service_id: number | null;
19
+
20
+ @Column({ type: 'integer', nullable: true })
21
+ sub_service_id: number | null;
22
+
23
+ @Column({ type: 'integer', nullable: false })
24
+ user_id: number;
25
+
26
+ @Column({ type: 'integer', nullable: true })
27
+ role_id: number | null;
28
+
29
+ @Column({ type: 'text', nullable: false })
30
+ message: string;
31
+
32
+ @Column({
33
+ type: 'enum',
34
+ enum: EmployeeOfMonthNominationMessageType,
35
+ enumName: 'eom_nomination_message_type_enum',
36
+ default: EmployeeOfMonthNominationMessageType.TEXT,
37
+ nullable: false,
38
+ })
39
+ message_type: EmployeeOfMonthNominationMessageType;
40
+
41
+ @Column({ type: 'text', nullable: true })
42
+ status: string | null;
43
+ }
@@ -0,0 +1,64 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum EmployeeOfMonthNominationRequestStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ export type EomNominationRatingScores = {
12
+ effective_communication: number;
13
+ rules_regulations_familiarity: number;
14
+ support_and_advice: number;
15
+ professional_ethics_teamwork: number;
16
+ additional_responsibilities_adaptability: number;
17
+ discipline_work_hours: number;
18
+ confidentiality: number;
19
+ avoid_mistakes_quality_improvement: number;
20
+ quality_efficiency_timeliness: number;
21
+ proactive_support_colleagues: number;
22
+ };
23
+
24
+ @Entity({ name: 'employee_of_month_nomination_requests' })
25
+ export class EmployeeOfMonthNominationRequests extends BaseModel {
26
+ @Column({ type: 'int', nullable: true })
27
+ req_user_department_id: number | null;
28
+
29
+ @Column({ type: 'int', nullable: true })
30
+ req_user_section_id: number | null;
31
+
32
+ @Column({ type: 'int', nullable: true })
33
+ service_id: number | null;
34
+
35
+ @Column({ type: 'int', nullable: true })
36
+ sub_service_id: number | null;
37
+
38
+ @Column({ type: 'int', nullable: false })
39
+ user_id: number;
40
+
41
+ @Column({ type: 'varchar', length: 120, nullable: false })
42
+ job_number: string;
43
+
44
+ @Column({ type: 'varchar', length: 255, nullable: false })
45
+ last_annual_assessment: string;
46
+
47
+ @Column({ type: 'jsonb', nullable: false })
48
+ rating_scores: EomNominationRatingScores;
49
+
50
+ @Column({
51
+ type: 'enum',
52
+ enum: EmployeeOfMonthNominationRequestStatus,
53
+ enumName: 'eom_nomination_request_status_enum',
54
+ default: EmployeeOfMonthNominationRequestStatus.PENDING,
55
+ nullable: false,
56
+ })
57
+ status: EmployeeOfMonthNominationRequestStatus;
58
+
59
+ @Column({ type: 'varchar', length: 255, nullable: true })
60
+ workflow_execution_id: string | null;
61
+
62
+ @Column({ type: 'text', nullable: true })
63
+ comments: string | null;
64
+ }