@platform-modules/civil-aviation-authority 2.3.86 → 2.3.88
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/.env +9 -14
- package/dist/index.d.ts +8 -0
- package/dist/index.js +17 -1
- package/dist/models/HumanResourceAnnualPlanningRequestModel.d.ts +35 -0
- package/dist/models/HumanResourceAnnualPlanningRequestModel.js +121 -0
- package/dist/models/HumanResourceAnnualPlanningTaskModel.d.ts +25 -0
- package/dist/models/HumanResourceAnnualPlanningTaskModel.js +83 -0
- package/dist/models/PerformanceCyclePeriodModel.d.ts +7 -0
- package/dist/models/PerformanceCyclePeriodModel.js +40 -0
- package/dist/models/PerformanceGoalMasterModel.d.ts +8 -0
- package/dist/models/PerformanceGoalMasterModel.js +45 -0
- package/dist/models/PerformanceManagementRequestModel.d.ts +34 -0
- package/dist/models/PerformanceManagementRequestModel.js +128 -0
- package/dist/models/RequestForCoverageRequestModel.d.ts +7 -2
- package/dist/models/RequestForCoverageRequestModel.js +26 -5
- package/dist/models/Workflows.d.ts +9 -0
- package/package.json +1 -1
- package/src/index.ts +13 -1
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/HumanResourceAnnualPlanningRequestModel.ts +108 -0
- package/src/models/HumanResourceAnnualPlanningTaskModel.ts +70 -0
- package/src/models/PerformanceCyclePeriodModel.ts +23 -0
- package/src/models/PerformanceGoalMasterModel.ts +27 -0
- package/src/models/PerformanceManagementRequestModel.ts +115 -0
- package/src/models/RequestForCoverageRequestModel.ts +27 -5
package/.env
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
# DB_HOST=
|
|
2
|
-
# DB_PORT=
|
|
3
|
-
# DB_USER=
|
|
4
|
-
# DB_PASS=
|
|
1
|
+
# DB_HOST=164.52.222.169
|
|
2
|
+
# DB_PORT=5432
|
|
3
|
+
# DB_USER=postgres_admin_user
|
|
4
|
+
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
5
|
# DB_NAME=CAA
|
|
6
6
|
|
|
7
|
-
DB_HOST=164.52.222.169
|
|
8
|
-
DB_PORT=5432
|
|
9
|
-
DB_USER=postgres_admin_user
|
|
10
|
-
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
-
DB_NAME=CAA
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
DB_HOST=localhost
|
|
9
|
+
DB_PORT=5432
|
|
10
|
+
DB_USER=postgres
|
|
11
|
+
DB_PASS=stevejobs
|
|
12
|
+
DB_NAME=CAA
|
package/dist/index.d.ts
CHANGED
|
@@ -205,3 +205,11 @@ export * from './models/AnnualIncrementRequestModel';
|
|
|
205
205
|
export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestModel';
|
|
206
206
|
export * from './models/SkillsEnhancementRequestModel';
|
|
207
207
|
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
208
|
+
export * from './models/PerformanceManagementRequestModel';
|
|
209
|
+
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
210
|
+
export * from './models/PerformanceCyclePeriodModel';
|
|
211
|
+
export * from './models/PerformanceGoalMasterModel';
|
|
212
|
+
export * from './models/HumanResourceAnnualPlanningRequestModel';
|
|
213
|
+
export { HumanResourceAnnualPlanningRequestStatus, Quarter } from './models/HumanResourceAnnualPlanningRequestModel';
|
|
214
|
+
export * from './models/HumanResourceAnnualPlanningTaskModel';
|
|
215
|
+
export { RepeatFrequency, DurationUnit } from './models/HumanResourceAnnualPlanningTaskModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
18
|
+
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -311,3 +311,19 @@ Object.defineProperty(exports, "AnnualIncrementRequestStatus", { enumerable: tru
|
|
|
311
311
|
__exportStar(require("./models/SkillsEnhancementRequestModel"), exports);
|
|
312
312
|
var SkillsEnhancementRequestModel_1 = require("./models/SkillsEnhancementRequestModel");
|
|
313
313
|
Object.defineProperty(exports, "SkillsEnhancementRequestStatus", { enumerable: true, get: function () { return SkillsEnhancementRequestModel_1.SkillsEnhancementRequestStatus; } });
|
|
314
|
+
// Performance Management Service
|
|
315
|
+
__exportStar(require("./models/PerformanceManagementRequestModel"), exports);
|
|
316
|
+
var PerformanceManagementRequestModel_1 = require("./models/PerformanceManagementRequestModel");
|
|
317
|
+
Object.defineProperty(exports, "PerformanceManagementRequestStatus", { enumerable: true, get: function () { return PerformanceManagementRequestModel_1.PerformanceManagementRequestStatus; } });
|
|
318
|
+
Object.defineProperty(exports, "PerformanceManagementCyclePeriod", { enumerable: true, get: function () { return PerformanceManagementRequestModel_1.PerformanceManagementCyclePeriod; } });
|
|
319
|
+
__exportStar(require("./models/PerformanceCyclePeriodModel"), exports);
|
|
320
|
+
__exportStar(require("./models/PerformanceGoalMasterModel"), exports);
|
|
321
|
+
// Human Resource Annual Planning Service
|
|
322
|
+
__exportStar(require("./models/HumanResourceAnnualPlanningRequestModel"), exports);
|
|
323
|
+
var HumanResourceAnnualPlanningRequestModel_1 = require("./models/HumanResourceAnnualPlanningRequestModel");
|
|
324
|
+
Object.defineProperty(exports, "HumanResourceAnnualPlanningRequestStatus", { enumerable: true, get: function () { return HumanResourceAnnualPlanningRequestModel_1.HumanResourceAnnualPlanningRequestStatus; } });
|
|
325
|
+
Object.defineProperty(exports, "Quarter", { enumerable: true, get: function () { return HumanResourceAnnualPlanningRequestModel_1.Quarter; } });
|
|
326
|
+
__exportStar(require("./models/HumanResourceAnnualPlanningTaskModel"), exports);
|
|
327
|
+
var HumanResourceAnnualPlanningTaskModel_1 = require("./models/HumanResourceAnnualPlanningTaskModel");
|
|
328
|
+
Object.defineProperty(exports, "RepeatFrequency", { enumerable: true, get: function () { return HumanResourceAnnualPlanningTaskModel_1.RepeatFrequency; } });
|
|
329
|
+
Object.defineProperty(exports, "DurationUnit", { enumerable: true, get: function () { return HumanResourceAnnualPlanningTaskModel_1.DurationUnit; } });
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HumanResourceAnnualPlanningRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
INFORMATION_REQUESTED = "Information Requested"
|
|
10
|
+
}
|
|
11
|
+
export declare enum Quarter {
|
|
12
|
+
Q1 = "Q1",// Jan-Mar
|
|
13
|
+
Q2 = "Q2",// Apr-Jun
|
|
14
|
+
Q3 = "Q3",// Jul-Sep
|
|
15
|
+
Q4 = "Q4"
|
|
16
|
+
}
|
|
17
|
+
export declare class HumanResourceAnnualPlanningRequest extends BaseModel {
|
|
18
|
+
req_user_department_id: number | null;
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
req_user_position_id: number | null;
|
|
21
|
+
user_id: number;
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
status: HumanResourceAnnualPlanningRequestStatus;
|
|
25
|
+
reviewer_user_id: number | null;
|
|
26
|
+
assigned_to_user_id: number | null;
|
|
27
|
+
assigned_at: Date | null;
|
|
28
|
+
workflow_execution_id: string | null;
|
|
29
|
+
description: string | null;
|
|
30
|
+
comment: string | null;
|
|
31
|
+
extension_number: string | null;
|
|
32
|
+
quarter: Quarter | null;
|
|
33
|
+
year: number | null;
|
|
34
|
+
constructor(user_id: number, status?: HumanResourceAnnualPlanningRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, comment?: string | null, extension_number?: string | null, quarter?: Quarter | null, year?: number | null);
|
|
35
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
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.HumanResourceAnnualPlanningRequest = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HumanResourceAnnualPlanningRequestStatus;
|
|
16
|
+
(function (HumanResourceAnnualPlanningRequestStatus) {
|
|
17
|
+
HumanResourceAnnualPlanningRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
HumanResourceAnnualPlanningRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
HumanResourceAnnualPlanningRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
HumanResourceAnnualPlanningRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
HumanResourceAnnualPlanningRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
HumanResourceAnnualPlanningRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
HumanResourceAnnualPlanningRequestStatus["INFORMATION_REQUESTED"] = "Information Requested";
|
|
24
|
+
})(HumanResourceAnnualPlanningRequestStatus || (exports.HumanResourceAnnualPlanningRequestStatus = HumanResourceAnnualPlanningRequestStatus = {}));
|
|
25
|
+
var Quarter;
|
|
26
|
+
(function (Quarter) {
|
|
27
|
+
Quarter["Q1"] = "Q1";
|
|
28
|
+
Quarter["Q2"] = "Q2";
|
|
29
|
+
Quarter["Q3"] = "Q3";
|
|
30
|
+
Quarter["Q4"] = "Q4"; // Oct-Dec
|
|
31
|
+
})(Quarter || (exports.Quarter = Quarter = {}));
|
|
32
|
+
let HumanResourceAnnualPlanningRequest = class HumanResourceAnnualPlanningRequest extends BaseModel_1.BaseModel {
|
|
33
|
+
constructor(user_id, status = HumanResourceAnnualPlanningRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, comment, extension_number, quarter, year) {
|
|
34
|
+
super();
|
|
35
|
+
this.user_id = user_id;
|
|
36
|
+
this.status = status;
|
|
37
|
+
this.service_id = service_id || null;
|
|
38
|
+
this.sub_service_id = sub_service_id || null;
|
|
39
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
40
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
41
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
42
|
+
this.description = description || null;
|
|
43
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
44
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
45
|
+
this.assigned_at = assigned_at || null;
|
|
46
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
47
|
+
this.comment = comment || null;
|
|
48
|
+
this.extension_number = extension_number || null;
|
|
49
|
+
this.quarter = quarter || null;
|
|
50
|
+
this.year = year || null;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.HumanResourceAnnualPlanningRequest = HumanResourceAnnualPlanningRequest;
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], HumanResourceAnnualPlanningRequest.prototype, "req_user_department_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], HumanResourceAnnualPlanningRequest.prototype, "req_user_section_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], HumanResourceAnnualPlanningRequest.prototype, "req_user_position_id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], HumanResourceAnnualPlanningRequest.prototype, "user_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], HumanResourceAnnualPlanningRequest.prototype, "service_id", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], HumanResourceAnnualPlanningRequest.prototype, "sub_service_id", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "enum", enum: HumanResourceAnnualPlanningRequestStatus, default: HumanResourceAnnualPlanningRequestStatus.PENDING, nullable: false }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], HumanResourceAnnualPlanningRequest.prototype, "status", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], HumanResourceAnnualPlanningRequest.prototype, "reviewer_user_id", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], HumanResourceAnnualPlanningRequest.prototype, "assigned_to_user_id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], HumanResourceAnnualPlanningRequest.prototype, "assigned_at", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], HumanResourceAnnualPlanningRequest.prototype, "workflow_execution_id", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], HumanResourceAnnualPlanningRequest.prototype, "description", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], HumanResourceAnnualPlanningRequest.prototype, "comment", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], HumanResourceAnnualPlanningRequest.prototype, "extension_number", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "enum", enum: Quarter, nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], HumanResourceAnnualPlanningRequest.prototype, "quarter", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
116
|
+
__metadata("design:type", Object)
|
|
117
|
+
], HumanResourceAnnualPlanningRequest.prototype, "year", void 0);
|
|
118
|
+
exports.HumanResourceAnnualPlanningRequest = HumanResourceAnnualPlanningRequest = __decorate([
|
|
119
|
+
(0, typeorm_1.Entity)({ name: "human_resource_annual_planning_requests" }),
|
|
120
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
121
|
+
], HumanResourceAnnualPlanningRequest);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
import { HumanResourceAnnualPlanningRequest } from "./HumanResourceAnnualPlanningRequestModel";
|
|
3
|
+
export declare enum RepeatFrequency {
|
|
4
|
+
DAILY = "Daily",
|
|
5
|
+
WEEKLY = "Weekly",
|
|
6
|
+
MONTHLY = "Monthly",
|
|
7
|
+
QUARTERLY = "Quarterly"
|
|
8
|
+
}
|
|
9
|
+
export declare enum DurationUnit {
|
|
10
|
+
MINUTES = "Minutes",
|
|
11
|
+
HOURS = "Hours",
|
|
12
|
+
QUARTER = "Quarter"
|
|
13
|
+
}
|
|
14
|
+
export declare class HumanResourceAnnualPlanningTask extends BaseModel {
|
|
15
|
+
request_id: number;
|
|
16
|
+
task_related_to_projects: string | null;
|
|
17
|
+
extension_number: string;
|
|
18
|
+
daily_responsibilities: string;
|
|
19
|
+
repeat_frequency: RepeatFrequency | null;
|
|
20
|
+
duration: string | null;
|
|
21
|
+
duration_unit: DurationUnit | null;
|
|
22
|
+
deliverables: string | null;
|
|
23
|
+
request: HumanResourceAnnualPlanningRequest;
|
|
24
|
+
constructor(request_id: number, extension_number: string, daily_responsibilities: string, task_related_to_projects?: string | null, repeat_frequency?: RepeatFrequency | null, duration?: string | null, duration_unit?: DurationUnit | null, deliverables?: string | null, created_by?: number | null);
|
|
25
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.HumanResourceAnnualPlanningTask = exports.DurationUnit = exports.RepeatFrequency = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const HumanResourceAnnualPlanningRequestModel_1 = require("./HumanResourceAnnualPlanningRequestModel");
|
|
16
|
+
var RepeatFrequency;
|
|
17
|
+
(function (RepeatFrequency) {
|
|
18
|
+
RepeatFrequency["DAILY"] = "Daily";
|
|
19
|
+
RepeatFrequency["WEEKLY"] = "Weekly";
|
|
20
|
+
RepeatFrequency["MONTHLY"] = "Monthly";
|
|
21
|
+
RepeatFrequency["QUARTERLY"] = "Quarterly";
|
|
22
|
+
})(RepeatFrequency || (exports.RepeatFrequency = RepeatFrequency = {}));
|
|
23
|
+
var DurationUnit;
|
|
24
|
+
(function (DurationUnit) {
|
|
25
|
+
DurationUnit["MINUTES"] = "Minutes";
|
|
26
|
+
DurationUnit["HOURS"] = "Hours";
|
|
27
|
+
DurationUnit["QUARTER"] = "Quarter";
|
|
28
|
+
})(DurationUnit || (exports.DurationUnit = DurationUnit = {}));
|
|
29
|
+
let HumanResourceAnnualPlanningTask = class HumanResourceAnnualPlanningTask extends BaseModel_1.BaseModel {
|
|
30
|
+
constructor(request_id, extension_number, daily_responsibilities, task_related_to_projects, repeat_frequency, duration, duration_unit, deliverables, created_by) {
|
|
31
|
+
super();
|
|
32
|
+
this.request_id = request_id;
|
|
33
|
+
this.extension_number = extension_number;
|
|
34
|
+
this.daily_responsibilities = daily_responsibilities;
|
|
35
|
+
this.task_related_to_projects = task_related_to_projects || null;
|
|
36
|
+
this.repeat_frequency = repeat_frequency || null;
|
|
37
|
+
this.duration = duration || null;
|
|
38
|
+
this.duration_unit = duration_unit || null;
|
|
39
|
+
this.deliverables = deliverables || null;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.HumanResourceAnnualPlanningTask = HumanResourceAnnualPlanningTask;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], HumanResourceAnnualPlanningTask.prototype, "request_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], HumanResourceAnnualPlanningTask.prototype, "task_related_to_projects", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], HumanResourceAnnualPlanningTask.prototype, "extension_number", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], HumanResourceAnnualPlanningTask.prototype, "daily_responsibilities", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "enum", enum: RepeatFrequency, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], HumanResourceAnnualPlanningTask.prototype, "repeat_frequency", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], HumanResourceAnnualPlanningTask.prototype, "duration", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "enum", enum: DurationUnit, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], HumanResourceAnnualPlanningTask.prototype, "duration_unit", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], HumanResourceAnnualPlanningTask.prototype, "deliverables", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.ManyToOne)(() => HumanResourceAnnualPlanningRequestModel_1.HumanResourceAnnualPlanningRequest, { onDelete: "CASCADE" }),
|
|
77
|
+
(0, typeorm_1.JoinColumn)({ name: "request_id" }),
|
|
78
|
+
__metadata("design:type", HumanResourceAnnualPlanningRequestModel_1.HumanResourceAnnualPlanningRequest)
|
|
79
|
+
], HumanResourceAnnualPlanningTask.prototype, "request", void 0);
|
|
80
|
+
exports.HumanResourceAnnualPlanningTask = HumanResourceAnnualPlanningTask = __decorate([
|
|
81
|
+
(0, typeorm_1.Entity)({ name: "human_resource_annual_planning_tasks" }),
|
|
82
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Object, Object, Object, Object])
|
|
83
|
+
], HumanResourceAnnualPlanningTask);
|
|
@@ -0,0 +1,40 @@
|
|
|
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.PerformanceCyclePeriod = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let PerformanceCyclePeriod = class PerformanceCyclePeriod extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(cycle_period, cycle_year) {
|
|
17
|
+
super();
|
|
18
|
+
this.cycle_period = cycle_period || "";
|
|
19
|
+
this.cycle_year = cycle_year || new Date().getFullYear();
|
|
20
|
+
this.is_active = false;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.PerformanceCyclePeriod = PerformanceCyclePeriod;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PerformanceCyclePeriod.prototype, "cycle_period", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], PerformanceCyclePeriod.prototype, "cycle_year", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], PerformanceCyclePeriod.prototype, "is_active", void 0);
|
|
36
|
+
exports.PerformanceCyclePeriod = PerformanceCyclePeriod = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: "performance_cycle_periods" }),
|
|
38
|
+
(0, typeorm_1.Index)("uq_performance_cycle_period", ["cycle_period", "cycle_year"], { unique: true }),
|
|
39
|
+
__metadata("design:paramtypes", [String, Number])
|
|
40
|
+
], PerformanceCyclePeriod);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class PerformanceGoalMaster extends BaseModel {
|
|
3
|
+
goal_title: string;
|
|
4
|
+
goal_description: string | null;
|
|
5
|
+
cycle_period_id: number;
|
|
6
|
+
is_active: boolean;
|
|
7
|
+
constructor(goal_title?: string, goal_description?: string | null, cycle_period_id?: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.PerformanceGoalMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let PerformanceGoalMaster = class PerformanceGoalMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(goal_title, goal_description, cycle_period_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.goal_title = goal_title || "";
|
|
19
|
+
this.goal_description = goal_description || null;
|
|
20
|
+
this.cycle_period_id = cycle_period_id || 0;
|
|
21
|
+
this.is_active = true;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.PerformanceGoalMaster = PerformanceGoalMaster;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PerformanceGoalMaster.prototype, "goal_title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], PerformanceGoalMaster.prototype, "goal_description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
35
|
+
(0, typeorm_1.Index)("idx_performance_goal_cycle_period_id"),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], PerformanceGoalMaster.prototype, "cycle_period_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], PerformanceGoalMaster.prototype, "is_active", void 0);
|
|
42
|
+
exports.PerformanceGoalMaster = PerformanceGoalMaster = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: "performance_management_goals" }),
|
|
44
|
+
__metadata("design:paramtypes", [String, Object, Number])
|
|
45
|
+
], PerformanceGoalMaster);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum PerformanceManagementRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare enum PerformanceManagementCyclePeriod {
|
|
11
|
+
JAN_JUN = "Jan-Jun",
|
|
12
|
+
JUL_DEC = "Jul-Dec"
|
|
13
|
+
}
|
|
14
|
+
export declare class PerformanceManagementRequest extends BaseModel {
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
req_user_section_id: number | null;
|
|
17
|
+
req_user_position_id: number | null;
|
|
18
|
+
user_id: number;
|
|
19
|
+
service_id: number | null;
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
status: PerformanceManagementRequestStatus;
|
|
22
|
+
reviewer_user_id: number | null;
|
|
23
|
+
assigned_to_user_id: number | null;
|
|
24
|
+
assigned_at: Date | null;
|
|
25
|
+
workflow_execution_id: string | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
goal_title: string;
|
|
28
|
+
goal_id: string;
|
|
29
|
+
goal_description: string;
|
|
30
|
+
cycle_period: PerformanceManagementCyclePeriod;
|
|
31
|
+
goal_weight: number;
|
|
32
|
+
cycle_year: number | null;
|
|
33
|
+
constructor(user_id: number, status?: PerformanceManagementRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, goal_title?: string, goal_id?: string, goal_description?: string, cycle_period?: PerformanceManagementCyclePeriod, goal_weight?: number, cycle_year?: number | null);
|
|
34
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.PerformanceManagementRequest = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var PerformanceManagementRequestStatus;
|
|
16
|
+
(function (PerformanceManagementRequestStatus) {
|
|
17
|
+
PerformanceManagementRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
PerformanceManagementRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
PerformanceManagementRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
PerformanceManagementRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
PerformanceManagementRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
PerformanceManagementRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(PerformanceManagementRequestStatus || (exports.PerformanceManagementRequestStatus = PerformanceManagementRequestStatus = {}));
|
|
24
|
+
var PerformanceManagementCyclePeriod;
|
|
25
|
+
(function (PerformanceManagementCyclePeriod) {
|
|
26
|
+
PerformanceManagementCyclePeriod["JAN_JUN"] = "Jan-Jun";
|
|
27
|
+
PerformanceManagementCyclePeriod["JUL_DEC"] = "Jul-Dec";
|
|
28
|
+
})(PerformanceManagementCyclePeriod || (exports.PerformanceManagementCyclePeriod = PerformanceManagementCyclePeriod = {}));
|
|
29
|
+
let PerformanceManagementRequest = class PerformanceManagementRequest extends BaseModel_1.BaseModel {
|
|
30
|
+
constructor(user_id, status = PerformanceManagementRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, goal_title, goal_id, goal_description, cycle_period, goal_weight, cycle_year) {
|
|
31
|
+
super();
|
|
32
|
+
this.user_id = user_id;
|
|
33
|
+
this.status = status;
|
|
34
|
+
this.service_id = service_id || null;
|
|
35
|
+
this.sub_service_id = sub_service_id || null;
|
|
36
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
37
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
38
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
39
|
+
this.description = description || null;
|
|
40
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
41
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
42
|
+
this.assigned_at = assigned_at || null;
|
|
43
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
44
|
+
this.goal_title = goal_title || "";
|
|
45
|
+
this.goal_id = goal_id || "";
|
|
46
|
+
this.goal_description = goal_description || "";
|
|
47
|
+
this.cycle_period = cycle_period || PerformanceManagementCyclePeriod.JAN_JUN;
|
|
48
|
+
this.goal_weight = goal_weight || 0;
|
|
49
|
+
this.cycle_year = cycle_year || null;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.PerformanceManagementRequest = PerformanceManagementRequest;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], PerformanceManagementRequest.prototype, "req_user_department_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], PerformanceManagementRequest.prototype, "req_user_section_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], PerformanceManagementRequest.prototype, "req_user_position_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], PerformanceManagementRequest.prototype, "user_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], PerformanceManagementRequest.prototype, "service_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], PerformanceManagementRequest.prototype, "sub_service_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "enum", enum: PerformanceManagementRequestStatus, default: PerformanceManagementRequestStatus.PENDING, nullable: false }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], PerformanceManagementRequest.prototype, "status", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], PerformanceManagementRequest.prototype, "reviewer_user_id", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], PerformanceManagementRequest.prototype, "assigned_to_user_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], PerformanceManagementRequest.prototype, "assigned_at", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], PerformanceManagementRequest.prototype, "workflow_execution_id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
99
|
+
__metadata("design:type", Object)
|
|
100
|
+
], PerformanceManagementRequest.prototype, "description", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], PerformanceManagementRequest.prototype, "goal_title", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], PerformanceManagementRequest.prototype, "goal_id", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], PerformanceManagementRequest.prototype, "goal_description", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: "enum", enum: PerformanceManagementCyclePeriod, nullable: false }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], PerformanceManagementRequest.prototype, "cycle_period", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false, default: 0 }),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], PerformanceManagementRequest.prototype, "goal_weight", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
123
|
+
__metadata("design:type", Object)
|
|
124
|
+
], PerformanceManagementRequest.prototype, "cycle_year", void 0);
|
|
125
|
+
exports.PerformanceManagementRequest = PerformanceManagementRequest = __decorate([
|
|
126
|
+
(0, typeorm_1.Entity)({ name: "performance_management_requests" }),
|
|
127
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, Number, Object])
|
|
128
|
+
], PerformanceManagementRequest);
|
|
@@ -23,7 +23,12 @@ export declare class RequestForCoverageRequest extends BaseModel {
|
|
|
23
23
|
department_id: number | null;
|
|
24
24
|
extension_number: string | null;
|
|
25
25
|
suggested_photography: string | null;
|
|
26
|
-
|
|
26
|
+
event_name: string | null;
|
|
27
|
+
/** Use event_from_date for new data; kept for backward compatibility with existing rows */
|
|
28
|
+
event_date: Date | null;
|
|
29
|
+
event_from_date: Date | null;
|
|
30
|
+
event_to_date: Date | null;
|
|
31
|
+
tags: string | null;
|
|
27
32
|
event_time: string;
|
|
28
33
|
event_location: string;
|
|
29
34
|
news_size: RequestForCoverageNewsSize | null;
|
|
@@ -40,5 +45,5 @@ export declare class RequestForCoverageRequest extends BaseModel {
|
|
|
40
45
|
assigned_at: Date | null;
|
|
41
46
|
workflow_execution_id: string | null;
|
|
42
47
|
rejection_reason: string | null;
|
|
43
|
-
constructor(user_id: number,
|
|
48
|
+
constructor(user_id: number, event_from_date: Date, event_time: string, event_location: string, event_details: string, importance_of_publishing: string, directorate_name: string, required_for_president?: boolean, status?: RequestForCoverageRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, department_id?: number | null, extension_number?: string | null, suggested_photography?: string | null, news_size?: RequestForCoverageNewsSize | null, event_objective?: string | null, organizing_entity?: string | null, hosted_person?: string | null, audience?: string | null, document_event?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, rejection_reason?: string | null, event_name?: string | null, event_to_date?: Date | null, tags?: string | null, event_date?: Date | null);
|
|
44
49
|
}
|