@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.
Files changed (99) hide show
  1. package/dist/data-source.js +52 -0
  2. package/dist/helpers/employee-evaluation-request.utils.d.ts +30 -0
  3. package/dist/helpers/employee-evaluation-request.utils.js +139 -0
  4. package/dist/index.d.ts +31 -0
  5. package/dist/index.js +84 -1
  6. package/dist/models/EmployeeEvaluationAnswerModel.d.ts +5 -8
  7. package/dist/models/EmployeeEvaluationAnswerModel.js +18 -16
  8. package/dist/models/EmployeeEvaluationApprovalModel.d.ts +1 -1
  9. package/dist/models/EmployeeEvaluationApprovalModel.js +2 -2
  10. package/dist/models/EmployeeEvaluationPersonScoreModel.d.ts +9 -0
  11. package/dist/models/EmployeeEvaluationPersonScoreModel.js +45 -0
  12. package/dist/models/EmployeeEvaluationRequestModel.d.ts +6 -1
  13. package/dist/models/EmployeeEvaluationRequestModel.js +18 -2
  14. package/dist/models/EmployeeOfMonthNominationApprovalModel.d.ts +22 -0
  15. package/dist/models/EmployeeOfMonthNominationApprovalModel.js +84 -0
  16. package/dist/models/EmployeeOfMonthNominationAttachmentModel.d.ts +10 -0
  17. package/dist/models/EmployeeOfMonthNominationAttachmentModel.js +48 -0
  18. package/dist/models/EmployeeOfMonthNominationChatModel.d.ts +18 -0
  19. package/dist/models/EmployeeOfMonthNominationChatModel.js +65 -0
  20. package/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +32 -0
  21. package/dist/models/EmployeeOfMonthNominationRequestModel.js +76 -0
  22. package/dist/models/EmployeeOfMonthNominationWorkflowModel.d.ts +19 -0
  23. package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +72 -0
  24. package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +22 -0
  25. package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +84 -0
  26. package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.d.ts +10 -0
  27. package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.js +48 -0
  28. package/dist/models/EmployeeOfMonthSupportNominationChatModel.d.ts +18 -0
  29. package/dist/models/EmployeeOfMonthSupportNominationChatModel.js +65 -0
  30. package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +27 -0
  31. package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +76 -0
  32. package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.d.ts +19 -0
  33. package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +72 -0
  34. package/dist/models/EvaluationEligibilitySettingModel.d.ts +2 -0
  35. package/dist/models/EvaluationEligibilitySettingModel.js +4 -0
  36. package/dist/models/InitiatorEmployeeNominationApprovalModel.d.ts +22 -0
  37. package/dist/models/InitiatorEmployeeNominationApprovalModel.js +84 -0
  38. package/dist/models/InitiatorEmployeeNominationAttachmentModel.d.ts +11 -0
  39. package/dist/models/InitiatorEmployeeNominationAttachmentModel.js +52 -0
  40. package/dist/models/InitiatorEmployeeNominationChatModel.d.ts +18 -0
  41. package/dist/models/InitiatorEmployeeNominationChatModel.js +65 -0
  42. package/dist/models/InitiatorEmployeeNominationRequestModel.d.ts +51 -0
  43. package/dist/models/InitiatorEmployeeNominationRequestModel.js +95 -0
  44. package/dist/models/InitiatorEmployeeNominationWorkflowModel.d.ts +19 -0
  45. package/dist/models/InitiatorEmployeeNominationWorkflowModel.js +72 -0
  46. package/dist/models/InnovativeEmployeeNominationApprovalModel.d.ts +22 -0
  47. package/dist/models/InnovativeEmployeeNominationApprovalModel.js +84 -0
  48. package/dist/models/InnovativeEmployeeNominationAttachmentModel.d.ts +11 -0
  49. package/dist/models/InnovativeEmployeeNominationAttachmentModel.js +52 -0
  50. package/dist/models/InnovativeEmployeeNominationChatModel.d.ts +18 -0
  51. package/dist/models/InnovativeEmployeeNominationChatModel.js +65 -0
  52. package/dist/models/InnovativeEmployeeNominationRequestModel.d.ts +23 -0
  53. package/dist/models/InnovativeEmployeeNominationRequestModel.js +88 -0
  54. package/dist/models/InnovativeEmployeeNominationWorkflowModel.d.ts +19 -0
  55. package/dist/models/InnovativeEmployeeNominationWorkflowModel.js +72 -0
  56. package/dist/models/IpeGrievanceApprovalModel.d.ts +22 -0
  57. package/dist/models/IpeGrievanceApprovalModel.js +84 -0
  58. package/dist/models/IpeGrievanceAttachmentModel.d.ts +11 -0
  59. package/dist/models/IpeGrievanceAttachmentModel.js +52 -0
  60. package/dist/models/IpeGrievanceChatModel.d.ts +18 -0
  61. package/dist/models/IpeGrievanceChatModel.js +65 -0
  62. package/dist/models/IpeGrievanceRequestModel.d.ts +57 -0
  63. package/dist/models/IpeGrievanceRequestModel.js +178 -0
  64. package/dist/models/IpeGrievanceWorkflowModel.d.ts +19 -0
  65. package/dist/models/IpeGrievanceWorkflowModel.js +72 -0
  66. package/package.json +24 -24
  67. package/src/data-source.ts +664 -612
  68. package/src/helpers/employee-evaluation-request.utils.ts +181 -0
  69. package/src/index.ts +572 -467
  70. package/src/models/EmployeeEvaluationAnswerModel.ts +26 -28
  71. package/src/models/EmployeeEvaluationApprovalModel.ts +2 -2
  72. package/src/models/EmployeeEvaluationPersonScoreModel.ts +25 -0
  73. package/src/models/EmployeeEvaluationRequestModel.ts +90 -77
  74. package/src/models/EmployeeOfMonthNominationApprovalModel.ts +56 -0
  75. package/src/models/EmployeeOfMonthNominationAttachmentModel.ts +26 -0
  76. package/src/models/EmployeeOfMonthNominationChatModel.ts +42 -0
  77. package/src/models/EmployeeOfMonthNominationRequestModel.ts +63 -0
  78. package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +47 -0
  79. package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +56 -0
  80. package/src/models/EmployeeOfMonthSupportNominationAttachmentModel.ts +26 -0
  81. package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +42 -0
  82. package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +58 -0
  83. package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +47 -0
  84. package/src/models/EvaluationEligibilitySettingModel.ts +51 -47
  85. package/src/models/InitiatorEmployeeNominationApprovalModel.ts +56 -0
  86. package/src/models/InitiatorEmployeeNominationAttachmentModel.ts +29 -0
  87. package/src/models/InitiatorEmployeeNominationChatModel.ts +42 -0
  88. package/src/models/InitiatorEmployeeNominationRequestModel.ts +74 -0
  89. package/src/models/InitiatorEmployeeNominationWorkflowModel.ts +47 -0
  90. package/src/models/InnovativeEmployeeNominationApprovalModel.ts +56 -0
  91. package/src/models/InnovativeEmployeeNominationAttachmentModel.ts +29 -0
  92. package/src/models/InnovativeEmployeeNominationChatModel.ts +42 -0
  93. package/src/models/InnovativeEmployeeNominationRequestModel.ts +59 -0
  94. package/src/models/InnovativeEmployeeNominationWorkflowModel.ts +47 -0
  95. package/src/models/IpeGrievanceApprovalModel.ts +56 -0
  96. package/src/models/IpeGrievanceAttachmentModel.ts +29 -0
  97. package/src/models/IpeGrievanceChatModel.ts +42 -0
  98. package/src/models/IpeGrievanceRequestModel.ts +139 -0
  99. package/src/models/IpeGrievanceWorkflowModel.ts +47 -0
@@ -0,0 +1,48 @@
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.EmployeeOfMonthSupportNominationRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let EmployeeOfMonthSupportNominationRequestAttachment = class EmployeeOfMonthSupportNominationRequestAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.EmployeeOfMonthSupportNominationRequestAttachment = EmployeeOfMonthSupportNominationRequestAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], EmployeeOfMonthSupportNominationRequestAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], EmployeeOfMonthSupportNominationRequestAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], EmployeeOfMonthSupportNominationRequestAttachment.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
+ ], EmployeeOfMonthSupportNominationRequestAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], EmployeeOfMonthSupportNominationRequestAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], EmployeeOfMonthSupportNominationRequestAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], EmployeeOfMonthSupportNominationRequestAttachment.prototype, "file_size", void 0);
46
+ exports.EmployeeOfMonthSupportNominationRequestAttachment = EmployeeOfMonthSupportNominationRequestAttachment = __decorate([
47
+ (0, typeorm_1.Entity)({ name: 'employee_of_month_support_nomination_attachments' })
48
+ ], EmployeeOfMonthSupportNominationRequestAttachment);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum EmployeeOfMonthSupportNominationMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class EmployeeOfMonthSupportNominationRequestChat 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: EmployeeOfMonthSupportNominationMessageType;
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.EmployeeOfMonthSupportNominationRequestChat = exports.EmployeeOfMonthSupportNominationMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var EmployeeOfMonthSupportNominationMessageType;
16
+ (function (EmployeeOfMonthSupportNominationMessageType) {
17
+ EmployeeOfMonthSupportNominationMessageType["TEXT"] = "text";
18
+ EmployeeOfMonthSupportNominationMessageType["IMAGE"] = "image";
19
+ EmployeeOfMonthSupportNominationMessageType["VIDEO"] = "video";
20
+ EmployeeOfMonthSupportNominationMessageType["FILE"] = "file";
21
+ EmployeeOfMonthSupportNominationMessageType["LINK"] = "link";
22
+ })(EmployeeOfMonthSupportNominationMessageType || (exports.EmployeeOfMonthSupportNominationMessageType = EmployeeOfMonthSupportNominationMessageType = {}));
23
+ let EmployeeOfMonthSupportNominationRequestChat = class EmployeeOfMonthSupportNominationRequestChat extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.EmployeeOfMonthSupportNominationRequestChat = EmployeeOfMonthSupportNominationRequestChat;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
28
+ __metadata("design:type", Number)
29
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "service_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "sub_service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "user_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "role_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "message", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({
52
+ type: 'enum',
53
+ enum: EmployeeOfMonthSupportNominationMessageType,
54
+ default: EmployeeOfMonthSupportNominationMessageType.TEXT,
55
+ nullable: false,
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "message_type", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], EmployeeOfMonthSupportNominationRequestChat.prototype, "status", void 0);
63
+ exports.EmployeeOfMonthSupportNominationRequestChat = EmployeeOfMonthSupportNominationRequestChat = __decorate([
64
+ (0, typeorm_1.Entity)({ name: 'employee_of_month_support_nomination_chats' })
65
+ ], EmployeeOfMonthSupportNominationRequestChat);
@@ -0,0 +1,27 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum EmployeeOfMonthSupportNominationRequestStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export type EomSupportNominationRatingScores = {
9
+ professional_ethics_teamwork: number;
10
+ additional_responsibilities_adaptability: number;
11
+ support_and_advice: number;
12
+ quality_efficiency_timeliness: number;
13
+ technical_skills: number;
14
+ };
15
+ export declare class EmployeeOfMonthSupportNominationRequests extends BaseModel {
16
+ req_user_department_id: number | null;
17
+ req_user_section_id: number | null;
18
+ service_id: number | null;
19
+ sub_service_id: number | null;
20
+ user_id: number;
21
+ job_number: string;
22
+ last_annual_assessment: string;
23
+ rating_scores: EomSupportNominationRatingScores;
24
+ status: EmployeeOfMonthSupportNominationRequestStatus;
25
+ workflow_execution_id: string | null;
26
+ comments: string | null;
27
+ }
@@ -0,0 +1,76 @@
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.EmployeeOfMonthSupportNominationRequests = exports.EmployeeOfMonthSupportNominationRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var EmployeeOfMonthSupportNominationRequestStatus;
16
+ (function (EmployeeOfMonthSupportNominationRequestStatus) {
17
+ EmployeeOfMonthSupportNominationRequestStatus["PENDING"] = "Pending";
18
+ EmployeeOfMonthSupportNominationRequestStatus["IN_PROGRESS"] = "In Progress";
19
+ EmployeeOfMonthSupportNominationRequestStatus["APPROVED"] = "Approved";
20
+ EmployeeOfMonthSupportNominationRequestStatus["REJECTED"] = "Rejected";
21
+ })(EmployeeOfMonthSupportNominationRequestStatus || (exports.EmployeeOfMonthSupportNominationRequestStatus = EmployeeOfMonthSupportNominationRequestStatus = {}));
22
+ let EmployeeOfMonthSupportNominationRequests = class EmployeeOfMonthSupportNominationRequests extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.EmployeeOfMonthSupportNominationRequests = EmployeeOfMonthSupportNominationRequests;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
27
+ __metadata("design:type", Object)
28
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "req_user_department_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "req_user_section_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
39
+ __metadata("design:type", Object)
40
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "sub_service_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
43
+ __metadata("design:type", Number)
44
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "user_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'varchar', length: 120, nullable: false }),
47
+ __metadata("design:type", String)
48
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "job_number", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
51
+ __metadata("design:type", String)
52
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "last_annual_assessment", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: false }),
55
+ __metadata("design:type", Object)
56
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "rating_scores", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({
59
+ type: 'enum',
60
+ enum: EmployeeOfMonthSupportNominationRequestStatus,
61
+ default: EmployeeOfMonthSupportNominationRequestStatus.PENDING,
62
+ nullable: false,
63
+ }),
64
+ __metadata("design:type", String)
65
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "status", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "workflow_execution_id", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], EmployeeOfMonthSupportNominationRequests.prototype, "comments", void 0);
74
+ exports.EmployeeOfMonthSupportNominationRequests = EmployeeOfMonthSupportNominationRequests = __decorate([
75
+ (0, typeorm_1.Entity)({ name: 'employee_of_month_support_nomination_requests' })
76
+ ], EmployeeOfMonthSupportNominationRequests);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum EmployeeOfMonthSupportNominationWorkFlowStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ COMPLETED = "Completed",
6
+ FAILED = "Failed"
7
+ }
8
+ export declare class EmployeeOfMonthSupportNominationWorkFlow 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;
17
+ description: string | null;
18
+ status: EmployeeOfMonthSupportNominationWorkFlowStatus;
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.EmployeeOfMonthSupportNominationWorkFlow = exports.EmployeeOfMonthSupportNominationWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var EmployeeOfMonthSupportNominationWorkFlowStatus;
16
+ (function (EmployeeOfMonthSupportNominationWorkFlowStatus) {
17
+ EmployeeOfMonthSupportNominationWorkFlowStatus["PENDING"] = "Pending";
18
+ EmployeeOfMonthSupportNominationWorkFlowStatus["IN_PROGRESS"] = "In Progress";
19
+ EmployeeOfMonthSupportNominationWorkFlowStatus["COMPLETED"] = "Completed";
20
+ EmployeeOfMonthSupportNominationWorkFlowStatus["FAILED"] = "Failed";
21
+ })(EmployeeOfMonthSupportNominationWorkFlowStatus || (exports.EmployeeOfMonthSupportNominationWorkFlowStatus = EmployeeOfMonthSupportNominationWorkFlowStatus = {}));
22
+ let EmployeeOfMonthSupportNominationWorkFlow = class EmployeeOfMonthSupportNominationWorkFlow extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.EmployeeOfMonthSupportNominationWorkFlow = EmployeeOfMonthSupportNominationWorkFlow;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
39
+ __metadata("design:type", Object)
40
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "user_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "task_name", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "description", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({
63
+ type: 'enum',
64
+ enum: EmployeeOfMonthSupportNominationWorkFlowStatus,
65
+ default: EmployeeOfMonthSupportNominationWorkFlowStatus.PENDING,
66
+ nullable: false,
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], EmployeeOfMonthSupportNominationWorkFlow.prototype, "status", void 0);
70
+ exports.EmployeeOfMonthSupportNominationWorkFlow = EmployeeOfMonthSupportNominationWorkFlow = __decorate([
71
+ (0, typeorm_1.Entity)({ name: 'employee_of_month_support_nomination_workflows' })
72
+ ], EmployeeOfMonthSupportNominationWorkFlow);
@@ -13,6 +13,8 @@ export declare class EvaluationEligibilitySetting extends BaseModel {
13
13
  /** Last day of the evaluation month (1–31) when submissions close. */
14
14
  evaluation_end_date: number;
15
15
  is_active: boolean;
16
+ /** Maximum employees allowed in one evaluation request for this dept/section window. */
17
+ max_employees_per_request: number;
16
18
  employees?: EvaluationEligibilitySettingEmployee[];
17
19
  }
18
20
  export declare class EvaluationEligibilitySettingEmployee extends BaseModel {
@@ -43,6 +43,10 @@ __decorate([
43
43
  (0, typeorm_1.Column)({ type: 'boolean', default: true }),
44
44
  __metadata("design:type", Boolean)
45
45
  ], EvaluationEligibilitySetting.prototype, "is_active", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'int', default: 50 }),
48
+ __metadata("design:type", Number)
49
+ ], EvaluationEligibilitySetting.prototype, "max_employees_per_request", void 0);
46
50
  __decorate([
47
51
  (0, typeorm_1.OneToMany)(() => EvaluationEligibilitySettingEmployee, (e) => e.evaluation_eligibility_setting),
48
52
  __metadata("design:type", Array)
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum InitiatorEmployeeNominationApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class InitiatorEmployeeNominationApprovalDetails 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: InitiatorEmployeeNominationApprovalStatus;
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.InitiatorEmployeeNominationApprovalDetails = exports.InitiatorEmployeeNominationApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var InitiatorEmployeeNominationApprovalStatus;
16
+ (function (InitiatorEmployeeNominationApprovalStatus) {
17
+ InitiatorEmployeeNominationApprovalStatus["PENDING"] = "Pending";
18
+ InitiatorEmployeeNominationApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ InitiatorEmployeeNominationApprovalStatus["APPROVED"] = "Approved";
20
+ InitiatorEmployeeNominationApprovalStatus["REJECTED"] = "Rejected";
21
+ })(InitiatorEmployeeNominationApprovalStatus || (exports.InitiatorEmployeeNominationApprovalStatus = InitiatorEmployeeNominationApprovalStatus = {}));
22
+ let InitiatorEmployeeNominationApprovalDetails = class InitiatorEmployeeNominationApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.InitiatorEmployeeNominationApprovalDetails = InitiatorEmployeeNominationApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], InitiatorEmployeeNominationApprovalDetails.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
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: 'enum',
72
+ enum: InitiatorEmployeeNominationApprovalStatus,
73
+ default: InitiatorEmployeeNominationApprovalStatus.PENDING,
74
+ nullable: false,
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "approval_status", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], InitiatorEmployeeNominationApprovalDetails.prototype, "is_allowed", void 0);
82
+ exports.InitiatorEmployeeNominationApprovalDetails = InitiatorEmployeeNominationApprovalDetails = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_approvals' })
84
+ ], InitiatorEmployeeNominationApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class InitiatorEmployeeNominationRequestAttachment 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.InitiatorEmployeeNominationRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let InitiatorEmployeeNominationRequestAttachment = class InitiatorEmployeeNominationRequestAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.InitiatorEmployeeNominationRequestAttachment = InitiatorEmployeeNominationRequestAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], InitiatorEmployeeNominationRequestAttachment.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
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], InitiatorEmployeeNominationRequestAttachment.prototype, "chat_id", void 0);
50
+ exports.InitiatorEmployeeNominationRequestAttachment = InitiatorEmployeeNominationRequestAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_attachments' })
52
+ ], InitiatorEmployeeNominationRequestAttachment);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum InitiatorEmployeeNominationMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class InitiatorEmployeeNominationRequestChat 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: InitiatorEmployeeNominationMessageType;
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.InitiatorEmployeeNominationRequestChat = exports.InitiatorEmployeeNominationMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var InitiatorEmployeeNominationMessageType;
16
+ (function (InitiatorEmployeeNominationMessageType) {
17
+ InitiatorEmployeeNominationMessageType["TEXT"] = "text";
18
+ InitiatorEmployeeNominationMessageType["IMAGE"] = "image";
19
+ InitiatorEmployeeNominationMessageType["VIDEO"] = "video";
20
+ InitiatorEmployeeNominationMessageType["FILE"] = "file";
21
+ InitiatorEmployeeNominationMessageType["LINK"] = "link";
22
+ })(InitiatorEmployeeNominationMessageType || (exports.InitiatorEmployeeNominationMessageType = InitiatorEmployeeNominationMessageType = {}));
23
+ let InitiatorEmployeeNominationRequestChat = class InitiatorEmployeeNominationRequestChat extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.InitiatorEmployeeNominationRequestChat = InitiatorEmployeeNominationRequestChat;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
28
+ __metadata("design:type", Number)
29
+ ], InitiatorEmployeeNominationRequestChat.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], InitiatorEmployeeNominationRequestChat.prototype, "service_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], InitiatorEmployeeNominationRequestChat.prototype, "sub_service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], InitiatorEmployeeNominationRequestChat.prototype, "user_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], InitiatorEmployeeNominationRequestChat.prototype, "role_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], InitiatorEmployeeNominationRequestChat.prototype, "message", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({
52
+ type: 'enum',
53
+ enum: InitiatorEmployeeNominationMessageType,
54
+ default: InitiatorEmployeeNominationMessageType.TEXT,
55
+ nullable: false,
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], InitiatorEmployeeNominationRequestChat.prototype, "message_type", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], InitiatorEmployeeNominationRequestChat.prototype, "status", void 0);
63
+ exports.InitiatorEmployeeNominationRequestChat = InitiatorEmployeeNominationRequestChat = __decorate([
64
+ (0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_chats' })
65
+ ], InitiatorEmployeeNominationRequestChat);