@platform-modules/civil-aviation-authority 2.3.90 → 2.3.93
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 +10 -16
- package/package.json +22 -21
- package/src/data-source.ts +10 -0
- package/src/index.ts +15 -0
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalApprovalModel.ts +141 -0
- package/src/models/ResidentialUnitRentalAttachmentModel.ts +79 -0
- package/src/models/ResidentialUnitRentalChatModel.ts +89 -0
- package/src/models/ResidentialUnitRentalRequestModel.ts +229 -0
- package/src/models/ResidentialUnitRentalWorkflowModel.ts +138 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/data-source.d.ts +0 -4
- package/dist/data-source.js +0 -278
- package/dist/helpers/utils/enum.d.ts +0 -75
- package/dist/helpers/utils/enum.js +0 -53
- package/dist/index.d.ts +0 -215
- package/dist/index.js +0 -329
- package/dist/models/AccessCardApprovalModel.d.ts +0 -23
- package/dist/models/AccessCardApprovalModel.js +0 -101
- package/dist/models/AccessCardAttachmentModel.d.ts +0 -12
- package/dist/models/AccessCardAttachmentModel.js +0 -64
- package/dist/models/AccessCardChatModel.d.ts +0 -20
- package/dist/models/AccessCardChatModel.js +0 -78
- package/dist/models/AccessCardRequestModel.d.ts +0 -43
- package/dist/models/AccessCardRequestModel.js +0 -148
- package/dist/models/AccessCardWorkflowModel.d.ts +0 -18
- package/dist/models/AccessCardWorkflowModel.js +0 -80
- package/dist/models/AirportEntryPermitApprovalModel.d.ts +0 -25
- package/dist/models/AirportEntryPermitApprovalModel.js +0 -102
- package/dist/models/AirportEntryPermitAttachmentModel.d.ts +0 -14
- package/dist/models/AirportEntryPermitAttachmentModel.js +0 -74
- package/dist/models/AirportEntryPermitChatModel.d.ts +0 -20
- package/dist/models/AirportEntryPermitChatModel.js +0 -78
- package/dist/models/AirportEntryPermitModel.d.ts +0 -93
- package/dist/models/AirportEntryPermitModel.js +0 -267
- package/dist/models/AirportEntryPermitWorkflowModel.d.ts +0 -18
- package/dist/models/AirportEntryPermitWorkflowModel.js +0 -75
- package/dist/models/AnnualIncrementRequestModel.d.ts +0 -31
- package/dist/models/AnnualIncrementRequestModel.js +0 -128
- package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +0 -25
- package/dist/models/AnnualTrainingPlanApprovalModel.js +0 -107
- package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +0 -13
- package/dist/models/AnnualTrainingPlanAttachmentModel.js +0 -69
- package/dist/models/AnnualTrainingPlanChatModel.d.ts +0 -26
- package/dist/models/AnnualTrainingPlanChatModel.js +0 -89
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +0 -36
- package/dist/models/AnnualTrainingPlanRequestModel.js +0 -151
- package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +0 -19
- package/dist/models/AnnualTrainingPlanWorkflowModel.js +0 -81
- package/dist/models/AssignTasksEmpApprovalModel.d.ts +0 -23
- package/dist/models/AssignTasksEmpApprovalModel.js +0 -96
- package/dist/models/AssignTasksEmpAttachmentModel.d.ts +0 -12
- package/dist/models/AssignTasksEmpAttachmentModel.js +0 -64
- package/dist/models/AssignTasksEmpChatModel.d.ts +0 -19
- package/dist/models/AssignTasksEmpChatModel.js +0 -77
- package/dist/models/AssignTasksEmpRequestModel.d.ts +0 -25
- package/dist/models/AssignTasksEmpRequestModel.js +0 -100
- package/dist/models/AssignTasksEmpWorkflowModel.d.ts +0 -18
- package/dist/models/AssignTasksEmpWorkflowModel.js +0 -76
- package/dist/models/BaseModel.d.ts +0 -14
- package/dist/models/BaseModel.js +0 -66
- package/dist/models/CAAServices.d.ts +0 -8
- package/dist/models/CAAServices.js +0 -44
- package/dist/models/CAASubServices.d.ts +0 -11
- package/dist/models/CAASubServices.js +0 -55
- package/dist/models/CashAllowanceLeaveRequestModel.d.ts +0 -33
- package/dist/models/CashAllowanceLeaveRequestModel.js +0 -138
- package/dist/models/CityMasterModel.d.ts +0 -8
- package/dist/models/CityMasterModel.js +0 -41
- package/dist/models/CountryMasterModel.d.ts +0 -11
- package/dist/models/CountryMasterModel.js +0 -55
- package/dist/models/DelegateSettingsModel.d.ts +0 -9
- package/dist/models/DelegateSettingsModel.js +0 -50
- package/dist/models/DepartmentDocumentOwnerModel.d.ts +0 -10
- package/dist/models/DepartmentDocumentOwnerModel.js +0 -44
- package/dist/models/DepartmentsModel.d.ts +0 -7
- package/dist/models/DepartmentsModel.js +0 -39
- package/dist/models/DirectorateModel.d.ts +0 -7
- package/dist/models/DirectorateModel.js +0 -39
- package/dist/models/DocumentAuditLogModel.d.ts +0 -13
- package/dist/models/DocumentAuditLogModel.js +0 -60
- package/dist/models/DocumentFolderModel.d.ts +0 -14
- package/dist/models/DocumentFolderModel.js +0 -60
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentModel.d.ts +0 -25
- package/dist/models/DocumentModel.js +0 -96
- package/dist/models/DocumentPermissionModel.d.ts +0 -11
- package/dist/models/DocumentPermissionModel.js +0 -52
- package/dist/models/DocumentTypeModel.d.ts +0 -8
- package/dist/models/DocumentTypeModel.js +0 -37
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/DutyMissionAirTicketDetailsModel.d.ts +0 -20
- package/dist/models/DutyMissionAirTicketDetailsModel.js +0 -100
- package/dist/models/DutyMissionApprovalModel.d.ts +0 -23
- package/dist/models/DutyMissionApprovalModel.js +0 -96
- package/dist/models/DutyMissionAttachmentModel.d.ts +0 -12
- package/dist/models/DutyMissionAttachmentModel.js +0 -64
- package/dist/models/DutyMissionChatModel.d.ts +0 -19
- package/dist/models/DutyMissionChatModel.js +0 -77
- package/dist/models/DutyMissionEmployeeDetailsModel.d.ts +0 -17
- package/dist/models/DutyMissionEmployeeDetailsModel.js +0 -85
- package/dist/models/DutyMissionRequestModel.d.ts +0 -68
- package/dist/models/DutyMissionRequestModel.js +0 -257
- package/dist/models/DutyMissionWorkflowModel.d.ts +0 -18
- package/dist/models/DutyMissionWorkflowModel.js +0 -76
- package/dist/models/FinancialGradeModel.d.ts +0 -12
- package/dist/models/FinancialGradeModel.js +0 -52
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/GroupModel.d.ts +0 -16
- package/dist/models/GroupModel.js +0 -44
- package/dist/models/GroupNamesModel.d.ts +0 -6
- package/dist/models/GroupNamesModel.js +0 -34
- package/dist/models/HotelApprovalModel.d.ts +0 -23
- package/dist/models/HotelApprovalModel.js +0 -96
- package/dist/models/HotelAttachedModel.d.ts +0 -14
- package/dist/models/HotelAttachedModel.js +0 -74
- package/dist/models/HotelChatModel.d.ts +0 -20
- package/dist/models/HotelChatModel.js +0 -78
- package/dist/models/HotelWorkFlowModel.d.ts +0 -17
- package/dist/models/HotelWorkFlowModel.js +0 -71
- package/dist/models/HotelreservationModel.d.ts +0 -46
- package/dist/models/HotelreservationModel.js +0 -182
- package/dist/models/HrServiceApprovalModel.d.ts +0 -27
- package/dist/models/HrServiceApprovalModel.js +0 -117
- package/dist/models/HrServiceAttachmentModel.d.ts +0 -13
- package/dist/models/HrServiceAttachmentModel.js +0 -69
- package/dist/models/HrServiceChatModel.d.ts +0 -28
- package/dist/models/HrServiceChatModel.js +0 -96
- package/dist/models/HrServiceRequestModel.d.ts +0 -46
- package/dist/models/HrServiceRequestModel.js +0 -205
- package/dist/models/HrServiceWorkflowModel.d.ts +0 -19
- package/dist/models/HrServiceWorkflowModel.js +0 -81
- package/dist/models/HumanResourceAnnualPlanningRequestModel.d.ts +0 -35
- package/dist/models/HumanResourceAnnualPlanningRequestModel.js +0 -121
- package/dist/models/HumanResourceAnnualPlanningTaskModel.d.ts +0 -25
- package/dist/models/HumanResourceAnnualPlanningTaskModel.js +0 -83
- package/dist/models/ITHelpDeskModel.d.ts +0 -33
- package/dist/models/ITHelpDeskModel.js +0 -136
- package/dist/models/ITRequestAttachmentModel.d.ts +0 -17
- package/dist/models/ITRequestAttachmentModel.js +0 -81
- package/dist/models/ITRequestChatModel.d.ts +0 -16
- package/dist/models/ITRequestChatModel.js +0 -76
- package/dist/models/ItApprovalsModel.d.ts +0 -24
- package/dist/models/ItApprovalsModel.js +0 -97
- package/dist/models/ItWorkflowModel.d.ts +0 -19
- package/dist/models/ItWorkflowModel.js +0 -81
- package/dist/models/JobTransferRequestModel.d.ts +0 -32
- package/dist/models/JobTransferRequestModel.js +0 -132
- package/dist/models/LocationModel.d.ts +0 -12
- package/dist/models/LocationModel.js +0 -62
- package/dist/models/LogisticsApprovalModel.d.ts +0 -23
- package/dist/models/LogisticsApprovalModel.js +0 -96
- package/dist/models/LogisticsAttachmentModel.d.ts +0 -12
- package/dist/models/LogisticsAttachmentModel.js +0 -64
- package/dist/models/LogisticsChatModel.d.ts +0 -20
- package/dist/models/LogisticsChatModel.js +0 -78
- package/dist/models/LogisticsForeignVehicleModel.d.ts +0 -51
- package/dist/models/LogisticsForeignVehicleModel.js +0 -199
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +0 -6
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +0 -34
- package/dist/models/LogisticsModel.d.ts +0 -66
- package/dist/models/LogisticsModel.js +0 -237
- package/dist/models/LogisticsVehicleMaintenanceApprovalModel.d.ts +0 -23
- package/dist/models/LogisticsVehicleMaintenanceApprovalModel.js +0 -96
- package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.d.ts +0 -12
- package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.js +0 -64
- package/dist/models/LogisticsVehicleMaintenanceChatModel.d.ts +0 -20
- package/dist/models/LogisticsVehicleMaintenanceChatModel.js +0 -78
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.d.ts +0 -28
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +0 -109
- package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.d.ts +0 -18
- package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.js +0 -76
- package/dist/models/LogisticsWorkflowModel.d.ts +0 -18
- package/dist/models/LogisticsWorkflowModel.js +0 -76
- package/dist/models/MissionTravelPassportExpiryNotificationConfigModel.d.ts +0 -9
- package/dist/models/MissionTravelPassportExpiryNotificationConfigModel.js +0 -49
- package/dist/models/NationalityMasterModel.d.ts +0 -10
- package/dist/models/NationalityMasterModel.js +0 -51
- package/dist/models/NewResourceRequestModel.d.ts +0 -32
- package/dist/models/NewResourceRequestModel.js +0 -133
- package/dist/models/NotificationModel.d.ts +0 -23
- package/dist/models/NotificationModel.js +0 -92
- package/dist/models/PerformanceCyclePeriodModel.d.ts +0 -7
- package/dist/models/PerformanceCyclePeriodModel.js +0 -40
- package/dist/models/PerformanceGoalMasterModel.d.ts +0 -8
- package/dist/models/PerformanceGoalMasterModel.js +0 -45
- package/dist/models/PerformanceManagementRequestModel.d.ts +0 -34
- package/dist/models/PerformanceManagementRequestModel.js +0 -128
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/PortalFeedbackModel.d.ts +0 -8
- package/dist/models/PortalFeedbackModel.js +0 -44
- package/dist/models/PositionModel.d.ts +0 -6
- package/dist/models/PositionModel.js +0 -34
- package/dist/models/PromotionRequestModel.d.ts +0 -32
- package/dist/models/PromotionRequestModel.js +0 -133
- package/dist/models/RequestForCoverageApprovalModel.d.ts +0 -26
- package/dist/models/RequestForCoverageApprovalModel.js +0 -108
- package/dist/models/RequestForCoverageAttachmentModel.d.ts +0 -13
- package/dist/models/RequestForCoverageAttachmentModel.js +0 -69
- package/dist/models/RequestForCoverageChatModel.d.ts +0 -26
- package/dist/models/RequestForCoverageChatModel.js +0 -89
- package/dist/models/RequestForCoverageRequestModel.d.ts +0 -49
- package/dist/models/RequestForCoverageRequestModel.js +0 -208
- package/dist/models/RequestForCoverageWorkflowModel.d.ts +0 -19
- package/dist/models/RequestForCoverageWorkflowModel.js +0 -81
- package/dist/models/SecondmentRequestModel.d.ts +0 -44
- package/dist/models/SecondmentRequestModel.js +0 -194
- package/dist/models/SectionModel.d.ts +0 -8
- package/dist/models/SectionModel.js +0 -44
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +0 -24
- package/dist/models/SecurityAwarenessApprovalModel.js +0 -101
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAwarenessAttachmentModel.js +0 -64
- package/dist/models/SecurityAwarenessChatModel.d.ts +0 -20
- package/dist/models/SecurityAwarenessChatModel.js +0 -78
- package/dist/models/SecurityAwarenessRequestModel.d.ts +0 -30
- package/dist/models/SecurityAwarenessRequestModel.js +0 -122
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityAwarenessWorkflowModel.js +0 -76
- package/dist/models/SecurityThreatApprovalModel.d.ts +0 -25
- package/dist/models/SecurityThreatApprovalModel.js +0 -102
- package/dist/models/SecurityThreatAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityThreatAttachmentModel.js +0 -64
- package/dist/models/SecurityThreatChatModel.d.ts +0 -20
- package/dist/models/SecurityThreatChatModel.js +0 -78
- package/dist/models/SecurityThreatRequestModel.d.ts +0 -38
- package/dist/models/SecurityThreatRequestModel.js +0 -140
- package/dist/models/SecurityThreatWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityThreatWorkflowModel.js +0 -76
- package/dist/models/ServiceTransferRequestModel.d.ts +0 -46
- package/dist/models/ServiceTransferRequestModel.js +0 -173
- package/dist/models/ServiceTypeModel.d.ts +0 -20
- package/dist/models/ServiceTypeModel.js +0 -88
- package/dist/models/ServicesNotificationConfigModel.d.ts +0 -15
- package/dist/models/ServicesNotificationConfigModel.js +0 -69
- package/dist/models/ShiftAllowanceRequestModel.d.ts +0 -39
- package/dist/models/ShiftAllowanceRequestModel.js +0 -150
- package/dist/models/SkillsEnhancementRequestModel.d.ts +0 -39
- package/dist/models/SkillsEnhancementRequestModel.js +0 -133
- package/dist/models/StudyLeaveApprovalModel.d.ts +0 -25
- package/dist/models/StudyLeaveApprovalModel.js +0 -107
- package/dist/models/StudyLeaveAttachmentModel.d.ts +0 -13
- package/dist/models/StudyLeaveAttachmentModel.js +0 -69
- package/dist/models/StudyLeaveChatModel.d.ts +0 -26
- package/dist/models/StudyLeaveChatModel.js +0 -89
- package/dist/models/StudyLeaveRequestModel.d.ts +0 -29
- package/dist/models/StudyLeaveRequestModel.js +0 -128
- package/dist/models/StudyLeaveWorkflowModel.d.ts +0 -19
- package/dist/models/StudyLeaveWorkflowModel.js +0 -81
- package/dist/models/TemporaryAssignmentRequestModel.d.ts +0 -51
- package/dist/models/TemporaryAssignmentRequestModel.js +0 -218
- package/dist/models/TrainingApprovalModel.d.ts +0 -25
- package/dist/models/TrainingApprovalModel.js +0 -107
- package/dist/models/TrainingAttachmentModel.d.ts +0 -13
- package/dist/models/TrainingAttachmentModel.js +0 -69
- package/dist/models/TrainingChatModel.d.ts +0 -20
- package/dist/models/TrainingChatModel.js +0 -82
- package/dist/models/TrainingRequestModel.d.ts +0 -43
- package/dist/models/TrainingRequestModel.js +0 -161
- package/dist/models/TrainingRoomBookingApprovalModel.d.ts +0 -25
- package/dist/models/TrainingRoomBookingApprovalModel.js +0 -107
- package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +0 -13
- package/dist/models/TrainingRoomBookingAttachmentModel.js +0 -69
- package/dist/models/TrainingRoomBookingChatModel.d.ts +0 -26
- package/dist/models/TrainingRoomBookingChatModel.js +0 -89
- package/dist/models/TrainingRoomBookingRequestModel.d.ts +0 -38
- package/dist/models/TrainingRoomBookingRequestModel.js +0 -149
- package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +0 -19
- package/dist/models/TrainingRoomBookingWorkflowModel.js +0 -81
- package/dist/models/TrainingRoomNotificationConfigModel.d.ts +0 -11
- package/dist/models/TrainingRoomNotificationConfigModel.js +0 -44
- package/dist/models/TrainingWorkflowModel.d.ts +0 -19
- package/dist/models/TrainingWorkflowModel.js +0 -81
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
- package/dist/models/VpnApprovalModel.d.ts +0 -22
- package/dist/models/VpnApprovalModel.js +0 -91
- package/dist/models/VpnRequestAttachmentModel.d.ts +0 -11
- package/dist/models/VpnRequestAttachmentModel.js +0 -59
- package/dist/models/VpnRequestChatModel.d.ts +0 -26
- package/dist/models/VpnRequestChatModel.js +0 -86
- package/dist/models/VpnRequestModel.d.ts +0 -72
- package/dist/models/VpnRequestModel.js +0 -183
- package/dist/models/VpnWorkflowModel.d.ts +0 -17
- package/dist/models/VpnWorkflowModel.js +0 -71
- package/dist/models/WorkflowDefinitions.d.ts +0 -16
- package/dist/models/WorkflowDefinitions.js +0 -86
- package/dist/models/WorkflowHierarchy.d.ts +0 -17
- package/dist/models/WorkflowHierarchy.js +0 -86
- package/dist/models/WorkflowTask.d.ts +0 -13
- package/dist/models/WorkflowTask.js +0 -78
- package/dist/models/WorkflowTaskNames.d.ts +0 -17
- package/dist/models/WorkflowTaskNames.js +0 -63
- package/dist/models/contactInfoModel.d.ts +0 -18
- package/dist/models/contactInfoModel.js +0 -80
- package/dist/models/feedbackModel.d.ts +0 -16
- package/dist/models/feedbackModel.js +0 -61
- package/dist/models/importantLinksModel.d.ts +0 -6
- package/dist/models/importantLinksModel.js +0 -34
- package/dist/models/role.d.ts +0 -16
- package/dist/models/role.js +0 -44
- package/dist/models/roleRightsModel.d.ts +0 -13
- package/dist/models/roleRightsModel.js +0 -45
- package/dist/models/serviceBookmarksModel.d.ts +0 -6
- package/dist/models/serviceBookmarksModel.js +0 -34
- package/dist/models/user-sessions.d.ts +0 -18
- package/dist/models/user-sessions.js +0 -54
- package/dist/models/user.d.ts +0 -47
- package/dist/models/user.js +0 -238
- package/dist/models/userRolesModel.d.ts +0 -19
- package/dist/models/userRolesModel.js +0 -59
- package/dist/scripts.d.ts +0 -1
- package/dist/scripts.js +0 -11
|
@@ -1,205 +0,0 @@
|
|
|
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.HrServiceRequest = exports.HrServiceRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var HrServiceRequestStatus;
|
|
16
|
-
(function (HrServiceRequestStatus) {
|
|
17
|
-
HrServiceRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
HrServiceRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
HrServiceRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
HrServiceRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
-
HrServiceRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
HrServiceRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
})(HrServiceRequestStatus || (exports.HrServiceRequestStatus = HrServiceRequestStatus = {}));
|
|
24
|
-
let HrServiceRequest = class HrServiceRequest extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(user_id, status = HrServiceRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, start_date, end_date, assignment_allowance, phone_number, reason_for_request, is_replaced, replacement_employee_name, replacement_employee_id, replacement_civil_id_card_number, replacement_current_job_position, replacement_assigned_job_position, replacement_start_date, replacement_end_date, replacement_assignment_allowance, replacement_reason, replaced_by_user_id, replaced_at) {
|
|
26
|
-
super();
|
|
27
|
-
this.user_id = user_id;
|
|
28
|
-
this.status = status;
|
|
29
|
-
this.service_id = service_id || null;
|
|
30
|
-
this.sub_service_id = sub_service_id || null;
|
|
31
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
32
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
33
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
34
|
-
this.description = description || null;
|
|
35
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
36
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
37
|
-
this.assigned_at = assigned_at || null;
|
|
38
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
39
|
-
this.assigned_employee_name = assigned_employee_name || "";
|
|
40
|
-
this.civil_id_card_number = civil_id_card_number || null;
|
|
41
|
-
this.employee_id = employee_id || "";
|
|
42
|
-
this.current_job_position = current_job_position || "";
|
|
43
|
-
this.assigned_job_position = assigned_job_position || "";
|
|
44
|
-
this.start_date = start_date || new Date();
|
|
45
|
-
this.end_date = end_date || new Date();
|
|
46
|
-
this.assignment_allowance = assignment_allowance || null;
|
|
47
|
-
this.phone_number = phone_number || "";
|
|
48
|
-
this.reason_for_request = reason_for_request || "";
|
|
49
|
-
// Replacement fields initialization
|
|
50
|
-
this.is_replaced = is_replaced || false;
|
|
51
|
-
this.replacement_employee_name = replacement_employee_name || null;
|
|
52
|
-
this.replacement_employee_id = replacement_employee_id || null;
|
|
53
|
-
this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
|
|
54
|
-
this.replacement_current_job_position = replacement_current_job_position || null;
|
|
55
|
-
this.replacement_assigned_job_position = replacement_assigned_job_position || null;
|
|
56
|
-
this.replacement_start_date = replacement_start_date || null;
|
|
57
|
-
this.replacement_end_date = replacement_end_date || null;
|
|
58
|
-
this.replacement_assignment_allowance = replacement_assignment_allowance || null;
|
|
59
|
-
this.replacement_reason = replacement_reason || null;
|
|
60
|
-
this.replaced_by_user_id = replaced_by_user_id || null;
|
|
61
|
-
this.replaced_at = replaced_at || null;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.HrServiceRequest = HrServiceRequest;
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], HrServiceRequest.prototype, "req_user_department_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], HrServiceRequest.prototype, "req_user_section_id", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], HrServiceRequest.prototype, "req_user_position_id", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
79
|
-
__metadata("design:type", Object)
|
|
80
|
-
], HrServiceRequest.prototype, "service_id", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
-
__metadata("design:type", Object)
|
|
84
|
-
], HrServiceRequest.prototype, "sub_service_id", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], HrServiceRequest.prototype, "user_id", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
91
|
-
__metadata("design:type", Object)
|
|
92
|
-
], HrServiceRequest.prototype, "description", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false }),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], HrServiceRequest.prototype, "status", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
99
|
-
__metadata("design:type", Object)
|
|
100
|
-
], HrServiceRequest.prototype, "reviewer_user_id", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
103
|
-
__metadata("design:type", Object)
|
|
104
|
-
], HrServiceRequest.prototype, "assigned_to_user_id", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
107
|
-
__metadata("design:type", Object)
|
|
108
|
-
], HrServiceRequest.prototype, "assigned_at", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
111
|
-
__metadata("design:type", Object)
|
|
112
|
-
], HrServiceRequest.prototype, "workflow_execution_id", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
115
|
-
__metadata("design:type", String)
|
|
116
|
-
], HrServiceRequest.prototype, "assigned_employee_name", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
119
|
-
__metadata("design:type", Object)
|
|
120
|
-
], HrServiceRequest.prototype, "civil_id_card_number", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
123
|
-
__metadata("design:type", String)
|
|
124
|
-
], HrServiceRequest.prototype, "employee_id", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
127
|
-
__metadata("design:type", String)
|
|
128
|
-
], HrServiceRequest.prototype, "current_job_position", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
131
|
-
__metadata("design:type", String)
|
|
132
|
-
], HrServiceRequest.prototype, "assigned_job_position", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
135
|
-
__metadata("design:type", Date)
|
|
136
|
-
], HrServiceRequest.prototype, "start_date", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
139
|
-
__metadata("design:type", Date)
|
|
140
|
-
], HrServiceRequest.prototype, "end_date", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)({ type: "decimal", precision: 5, scale: 2, nullable: true }),
|
|
143
|
-
__metadata("design:type", Object)
|
|
144
|
-
], HrServiceRequest.prototype, "assignment_allowance", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
|
|
147
|
-
__metadata("design:type", String)
|
|
148
|
-
], HrServiceRequest.prototype, "phone_number", void 0);
|
|
149
|
-
__decorate([
|
|
150
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
151
|
-
__metadata("design:type", String)
|
|
152
|
-
], HrServiceRequest.prototype, "reason_for_request", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
155
|
-
__metadata("design:type", Boolean)
|
|
156
|
-
], HrServiceRequest.prototype, "is_replaced", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
159
|
-
__metadata("design:type", Object)
|
|
160
|
-
], HrServiceRequest.prototype, "replacement_employee_name", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
163
|
-
__metadata("design:type", Object)
|
|
164
|
-
], HrServiceRequest.prototype, "replacement_employee_id", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
167
|
-
__metadata("design:type", Object)
|
|
168
|
-
], HrServiceRequest.prototype, "replacement_civil_id_card_number", void 0);
|
|
169
|
-
__decorate([
|
|
170
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
171
|
-
__metadata("design:type", Object)
|
|
172
|
-
], HrServiceRequest.prototype, "replacement_current_job_position", void 0);
|
|
173
|
-
__decorate([
|
|
174
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
175
|
-
__metadata("design:type", Object)
|
|
176
|
-
], HrServiceRequest.prototype, "replacement_assigned_job_position", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
179
|
-
__metadata("design:type", Object)
|
|
180
|
-
], HrServiceRequest.prototype, "replacement_start_date", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
183
|
-
__metadata("design:type", Object)
|
|
184
|
-
], HrServiceRequest.prototype, "replacement_end_date", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
(0, typeorm_1.Column)({ type: "decimal", precision: 5, scale: 2, nullable: true }),
|
|
187
|
-
__metadata("design:type", Object)
|
|
188
|
-
], HrServiceRequest.prototype, "replacement_assignment_allowance", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
191
|
-
__metadata("design:type", Object)
|
|
192
|
-
], HrServiceRequest.prototype, "replacement_reason", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
195
|
-
__metadata("design:type", Object)
|
|
196
|
-
], HrServiceRequest.prototype, "replaced_by_user_id", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
199
|
-
__metadata("design:type", Object)
|
|
200
|
-
], HrServiceRequest.prototype, "replaced_at", void 0);
|
|
201
|
-
exports.HrServiceRequest = HrServiceRequest = __decorate([
|
|
202
|
-
(0, typeorm_1.Entity)({ name: "hr_service_requests" }),
|
|
203
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Date,
|
|
204
|
-
Date, Object, String, String, Boolean, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
205
|
-
], HrServiceRequest);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum HrServiceWorkFlowStatus {
|
|
3
|
-
COMPLETED = "Completed",
|
|
4
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare class HrServiceWorkFlow extends BaseModel {
|
|
9
|
-
request_id: number;
|
|
10
|
-
service_id: number | null;
|
|
11
|
-
sub_service_id: number | null;
|
|
12
|
-
order: number | null;
|
|
13
|
-
content: string;
|
|
14
|
-
approver_role_id: number | null;
|
|
15
|
-
approver_user_id: number | null;
|
|
16
|
-
approved_by: number | null;
|
|
17
|
-
status: HrServiceWorkFlowStatus;
|
|
18
|
-
constructor(request_id: number, content: string, status: HrServiceWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
|
|
19
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
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.HrServiceWorkFlow = exports.HrServiceWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var HrServiceWorkFlowStatus;
|
|
16
|
-
(function (HrServiceWorkFlowStatus) {
|
|
17
|
-
HrServiceWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
HrServiceWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
HrServiceWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
HrServiceWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(HrServiceWorkFlowStatus || (exports.HrServiceWorkFlowStatus = HrServiceWorkFlowStatus = {}));
|
|
22
|
-
let HrServiceWorkFlow = class HrServiceWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
|
|
24
|
-
super();
|
|
25
|
-
this.request_id = request_id;
|
|
26
|
-
this.service_id = service_id || null;
|
|
27
|
-
this.sub_service_id = sub_service_id || null;
|
|
28
|
-
this.content = content;
|
|
29
|
-
this.status = status;
|
|
30
|
-
this.order = order || null;
|
|
31
|
-
this.approver_role_id = approver_role_id || null;
|
|
32
|
-
this.approver_user_id = approver_user_id || null;
|
|
33
|
-
this.approved_by = approved_by || null;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.HrServiceWorkFlow = HrServiceWorkFlow;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], HrServiceWorkFlow.prototype, "request_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], HrServiceWorkFlow.prototype, "service_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], HrServiceWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], HrServiceWorkFlow.prototype, "order", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], HrServiceWorkFlow.prototype, "content", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], HrServiceWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], HrServiceWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], HrServiceWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({
|
|
71
|
-
type: "enum",
|
|
72
|
-
enum: HrServiceWorkFlowStatus,
|
|
73
|
-
default: HrServiceWorkFlowStatus.PENDING,
|
|
74
|
-
nullable: false
|
|
75
|
-
}),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], HrServiceWorkFlow.prototype, "status", void 0);
|
|
78
|
-
exports.HrServiceWorkFlow = HrServiceWorkFlow = __decorate([
|
|
79
|
-
(0, typeorm_1.Entity)({ name: "hr_service_work_flows" }),
|
|
80
|
-
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
81
|
-
], HrServiceWorkFlow);
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
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);
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
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);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ContactFor {
|
|
3
|
-
SELF = "Self",
|
|
4
|
-
BEHALFOF = "Behalf of"
|
|
5
|
-
}
|
|
6
|
-
export declare enum status {
|
|
7
|
-
PENDING = "Pending",
|
|
8
|
-
ASSIGNED = "Assigned",
|
|
9
|
-
IN_PROGRESS = "In Progress",
|
|
10
|
-
APPROVED = "Approved",
|
|
11
|
-
REJECTED = "Rejected"
|
|
12
|
-
}
|
|
13
|
-
export declare class ITHelpDeskRequests extends BaseModel {
|
|
14
|
-
req_user_department_id: number | null;
|
|
15
|
-
req_user_section_id: number | null;
|
|
16
|
-
service_id: number;
|
|
17
|
-
sub_service_id: number;
|
|
18
|
-
service_type_id: number | null;
|
|
19
|
-
problem: string;
|
|
20
|
-
request_for: ContactFor;
|
|
21
|
-
description: string;
|
|
22
|
-
extn_num: string;
|
|
23
|
-
contact_num: string;
|
|
24
|
-
email: string | null;
|
|
25
|
-
request_type: string;
|
|
26
|
-
person_name: string | null;
|
|
27
|
-
person_contact_number: string | null;
|
|
28
|
-
request_date: Date;
|
|
29
|
-
user_id: number;
|
|
30
|
-
status: status;
|
|
31
|
-
workflow_execution_id: string | null;
|
|
32
|
-
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, status: status, workflow_execution_id?: string, req_user_department_id?: number | null, req_user_section_id?: number | null, service_type_id?: number | null, person_name?: string | null, person_contact_number?: string | null, email?: string | null, request_type?: string);
|
|
33
|
-
}
|