@platform-modules/civil-aviation-authority 2.3.93 → 2.3.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.d.ts +4 -0
- package/dist/data-source.js +288 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +226 -0
- package/dist/index.js +342 -0
- package/dist/models/AccessCardApprovalModel.d.ts +23 -0
- package/dist/models/AccessCardApprovalModel.js +101 -0
- package/dist/models/AccessCardAttachmentModel.d.ts +12 -0
- package/dist/models/AccessCardAttachmentModel.js +64 -0
- package/dist/models/AccessCardChatModel.d.ts +20 -0
- package/dist/models/AccessCardChatModel.js +78 -0
- package/dist/models/AccessCardRequestModel.d.ts +43 -0
- package/dist/models/AccessCardRequestModel.js +148 -0
- package/dist/models/AccessCardWorkflowModel.d.ts +18 -0
- package/dist/models/AccessCardWorkflowModel.js +80 -0
- package/dist/models/AirportEntryPermitApprovalModel.d.ts +25 -0
- package/dist/models/AirportEntryPermitApprovalModel.js +102 -0
- package/dist/models/AirportEntryPermitAttachmentModel.d.ts +14 -0
- package/dist/models/AirportEntryPermitAttachmentModel.js +74 -0
- package/dist/models/AirportEntryPermitChatModel.d.ts +20 -0
- package/dist/models/AirportEntryPermitChatModel.js +78 -0
- package/dist/models/AirportEntryPermitModel.d.ts +93 -0
- package/dist/models/AirportEntryPermitModel.js +267 -0
- package/dist/models/AirportEntryPermitWorkflowModel.d.ts +18 -0
- package/dist/models/AirportEntryPermitWorkflowModel.js +75 -0
- package/dist/models/AnnualIncrementRequestModel.d.ts +31 -0
- package/dist/models/AnnualIncrementRequestModel.js +128 -0
- package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
- package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
- package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
- package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
- package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
- package/dist/models/AssignTasksEmpApprovalModel.d.ts +23 -0
- package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
- package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
- package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
- package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
- package/dist/models/AssignTasksEmpChatModel.js +77 -0
- package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
- package/dist/models/AssignTasksEmpRequestModel.js +100 -0
- package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
- package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
- package/dist/models/BaseModel.d.ts +14 -0
- package/dist/models/BaseModel.js +66 -0
- package/dist/models/CAAServices.d.ts +8 -0
- package/dist/models/CAAServices.js +44 -0
- package/dist/models/CAASubServices.d.ts +11 -0
- package/dist/models/CAASubServices.js +55 -0
- package/dist/models/CashAllowanceLeaveRequestModel.d.ts +33 -0
- package/dist/models/CashAllowanceLeaveRequestModel.js +138 -0
- package/dist/models/CityMasterModel.d.ts +8 -0
- package/dist/models/CityMasterModel.js +41 -0
- package/dist/models/CountryMasterModel.d.ts +11 -0
- package/dist/models/CountryMasterModel.js +55 -0
- package/dist/models/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/dist/models/DepartmentDocumentOwnerModel.d.ts +10 -0
- package/dist/models/DepartmentDocumentOwnerModel.js +44 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DirectorateModel.d.ts +7 -0
- package/dist/models/DirectorateModel.js +39 -0
- package/dist/models/DocumentAuditLogModel.d.ts +13 -0
- package/dist/models/DocumentAuditLogModel.js +60 -0
- package/dist/models/DocumentFolderModel.d.ts +14 -0
- package/dist/models/DocumentFolderModel.js +60 -0
- package/dist/models/DocumentModel.d.ts +25 -0
- package/dist/models/DocumentModel.js +96 -0
- package/dist/models/DocumentPermissionModel.d.ts +11 -0
- package/dist/models/DocumentPermissionModel.js +52 -0
- package/dist/models/DocumentTypeModel.d.ts +8 -0
- package/dist/models/DocumentTypeModel.js +37 -0
- package/dist/models/DutyMissionAirTicketDetailsModel.d.ts +20 -0
- package/dist/models/DutyMissionAirTicketDetailsModel.js +100 -0
- package/dist/models/DutyMissionApprovalModel.d.ts +23 -0
- package/dist/models/DutyMissionApprovalModel.js +96 -0
- package/dist/models/DutyMissionAttachmentModel.d.ts +12 -0
- package/dist/models/DutyMissionAttachmentModel.js +64 -0
- package/dist/models/DutyMissionChatModel.d.ts +19 -0
- package/dist/models/DutyMissionChatModel.js +77 -0
- package/dist/models/DutyMissionEmployeeDetailsModel.d.ts +17 -0
- package/dist/models/DutyMissionEmployeeDetailsModel.js +85 -0
- package/dist/models/DutyMissionRequestModel.d.ts +68 -0
- package/dist/models/DutyMissionRequestModel.js +257 -0
- package/dist/models/DutyMissionWorkflowModel.d.ts +18 -0
- package/dist/models/DutyMissionWorkflowModel.js +76 -0
- package/dist/models/FinancialGradeModel.d.ts +12 -0
- package/dist/models/FinancialGradeModel.js +52 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HotelApprovalModel.d.ts +23 -0
- package/dist/models/HotelApprovalModel.js +96 -0
- package/dist/models/HotelAttachedModel.d.ts +14 -0
- package/dist/models/HotelAttachedModel.js +74 -0
- package/dist/models/HotelChatModel.d.ts +20 -0
- package/dist/models/HotelChatModel.js +78 -0
- package/dist/models/HotelWorkFlowModel.d.ts +17 -0
- package/dist/models/HotelWorkFlowModel.js +71 -0
- package/dist/models/HotelreservationModel.d.ts +46 -0
- package/dist/models/HotelreservationModel.js +182 -0
- package/dist/models/HrServiceApprovalModel.d.ts +27 -0
- package/dist/models/HrServiceApprovalModel.js +117 -0
- package/dist/models/HrServiceAttachmentModel.d.ts +13 -0
- package/dist/models/HrServiceAttachmentModel.js +69 -0
- package/dist/models/HrServiceChatModel.d.ts +28 -0
- package/dist/models/HrServiceChatModel.js +96 -0
- package/dist/models/HrServiceRequestModel.d.ts +46 -0
- package/dist/models/HrServiceRequestModel.js +205 -0
- package/dist/models/HrServiceWorkflowModel.d.ts +19 -0
- package/dist/models/HrServiceWorkflowModel.js +81 -0
- 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/ITHelpDeskModel.d.ts +33 -0
- package/dist/models/ITHelpDeskModel.js +136 -0
- package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
- package/dist/models/ITRequestAttachmentModel.js +81 -0
- package/dist/models/ITRequestChatModel.d.ts +16 -0
- package/dist/models/ITRequestChatModel.js +76 -0
- package/dist/models/ItApprovalsModel.d.ts +24 -0
- package/dist/models/ItApprovalsModel.js +97 -0
- package/dist/models/ItWorkflowModel.d.ts +19 -0
- package/dist/models/ItWorkflowModel.js +81 -0
- package/dist/models/JobTransferRequestModel.d.ts +32 -0
- package/dist/models/JobTransferRequestModel.js +132 -0
- package/dist/models/LocationModel.d.ts +12 -0
- package/dist/models/LocationModel.js +62 -0
- package/dist/models/LogisticsApprovalModel.d.ts +23 -0
- package/dist/models/LogisticsApprovalModel.js +96 -0
- package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsAttachmentModel.js +64 -0
- package/dist/models/LogisticsChatModel.d.ts +20 -0
- package/dist/models/LogisticsChatModel.js +78 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +51 -0
- package/dist/models/LogisticsForeignVehicleModel.js +199 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
- package/dist/models/LogisticsModel.d.ts +66 -0
- package/dist/models/LogisticsModel.js +237 -0
- package/dist/models/LogisticsVehicleMaintenanceApprovalModel.d.ts +23 -0
- package/dist/models/LogisticsVehicleMaintenanceApprovalModel.js +96 -0
- package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.js +64 -0
- package/dist/models/LogisticsVehicleMaintenanceChatModel.d.ts +20 -0
- package/dist/models/LogisticsVehicleMaintenanceChatModel.js +78 -0
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.d.ts +28 -0
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +109 -0
- package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.d.ts +18 -0
- package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.js +76 -0
- package/dist/models/LogisticsWorkflowModel.d.ts +18 -0
- package/dist/models/LogisticsWorkflowModel.js +76 -0
- package/dist/models/MissionTravelPassportExpiryNotificationConfigModel.d.ts +9 -0
- package/dist/models/MissionTravelPassportExpiryNotificationConfigModel.js +49 -0
- package/dist/models/NationalityMasterModel.d.ts +10 -0
- package/dist/models/NationalityMasterModel.js +51 -0
- package/dist/models/NewResourceRequestModel.d.ts +32 -0
- package/dist/models/NewResourceRequestModel.js +133 -0
- package/dist/models/NotificationModel.d.ts +23 -0
- package/dist/models/NotificationModel.js +92 -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/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/PositionModel.d.ts +6 -0
- package/dist/models/PositionModel.js +34 -0
- package/dist/models/PromotionRequestModel.d.ts +32 -0
- package/dist/models/PromotionRequestModel.js +133 -0
- package/dist/models/RequestForCoverageApprovalModel.d.ts +26 -0
- package/dist/models/RequestForCoverageApprovalModel.js +108 -0
- package/dist/models/RequestForCoverageAttachmentModel.d.ts +13 -0
- package/dist/models/RequestForCoverageAttachmentModel.js +69 -0
- package/dist/models/RequestForCoverageChatModel.d.ts +26 -0
- package/dist/models/RequestForCoverageChatModel.js +89 -0
- package/dist/models/RequestForCoverageRequestModel.d.ts +49 -0
- package/dist/models/RequestForCoverageRequestModel.js +208 -0
- package/dist/models/RequestForCoverageWorkflowModel.d.ts +19 -0
- package/dist/models/RequestForCoverageWorkflowModel.js +81 -0
- package/dist/models/ResidentialUnitRentalApprovalModel.d.ts +23 -0
- package/dist/models/ResidentialUnitRentalApprovalModel.js +88 -0
- package/dist/models/ResidentialUnitRentalAttachmentModel.d.ts +12 -0
- package/dist/models/ResidentialUnitRentalAttachmentModel.js +56 -0
- package/dist/models/ResidentialUnitRentalChatModel.d.ts +18 -0
- package/dist/models/ResidentialUnitRentalChatModel.js +60 -0
- package/dist/models/ResidentialUnitRentalRequestModel.d.ts +48 -0
- package/dist/models/ResidentialUnitRentalRequestModel.js +123 -0
- package/dist/models/ResidentialUnitRentalWorkflowModel.d.ts +25 -0
- package/dist/models/ResidentialUnitRentalWorkflowModel.js +88 -0
- package/dist/models/SecondmentRequestModel.d.ts +44 -0
- package/dist/models/SecondmentRequestModel.js +194 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +24 -0
- package/dist/models/SecurityAwarenessApprovalModel.js +101 -0
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAwarenessAttachmentModel.js +64 -0
- package/dist/models/SecurityAwarenessChatModel.d.ts +20 -0
- package/dist/models/SecurityAwarenessChatModel.js +78 -0
- package/dist/models/SecurityAwarenessRequestModel.d.ts +30 -0
- package/dist/models/SecurityAwarenessRequestModel.js +122 -0
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityAwarenessWorkflowModel.js +76 -0
- package/dist/models/SecurityThreatApprovalModel.d.ts +25 -0
- package/dist/models/SecurityThreatApprovalModel.js +102 -0
- package/dist/models/SecurityThreatAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityThreatAttachmentModel.js +64 -0
- package/dist/models/SecurityThreatChatModel.d.ts +20 -0
- package/dist/models/SecurityThreatChatModel.js +78 -0
- package/dist/models/SecurityThreatRequestModel.d.ts +38 -0
- package/dist/models/SecurityThreatRequestModel.js +140 -0
- package/dist/models/SecurityThreatWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityThreatWorkflowModel.js +76 -0
- package/dist/models/ServiceTransferRequestModel.d.ts +46 -0
- package/dist/models/ServiceTransferRequestModel.js +173 -0
- package/dist/models/ServiceTypeModel.d.ts +20 -0
- package/dist/models/ServiceTypeModel.js +88 -0
- package/dist/models/ServicesNotificationConfigModel.d.ts +15 -0
- package/dist/models/ServicesNotificationConfigModel.js +69 -0
- package/dist/models/ShiftAllowanceRequestModel.d.ts +39 -0
- package/dist/models/ShiftAllowanceRequestModel.js +150 -0
- package/dist/models/SkillsEnhancementRequestModel.d.ts +39 -0
- package/dist/models/SkillsEnhancementRequestModel.js +133 -0
- package/dist/models/StudyLeaveApprovalModel.d.ts +25 -0
- package/dist/models/StudyLeaveApprovalModel.js +107 -0
- package/dist/models/StudyLeaveAttachmentModel.d.ts +13 -0
- package/dist/models/StudyLeaveAttachmentModel.js +69 -0
- package/dist/models/StudyLeaveChatModel.d.ts +26 -0
- package/dist/models/StudyLeaveChatModel.js +89 -0
- package/dist/models/StudyLeaveRequestModel.d.ts +29 -0
- package/dist/models/StudyLeaveRequestModel.js +128 -0
- package/dist/models/StudyLeaveWorkflowModel.d.ts +19 -0
- package/dist/models/StudyLeaveWorkflowModel.js +81 -0
- package/dist/models/TemporaryAssignmentRequestModel.d.ts +51 -0
- package/dist/models/TemporaryAssignmentRequestModel.js +218 -0
- package/dist/models/TrainingApprovalModel.d.ts +25 -0
- package/dist/models/TrainingApprovalModel.js +107 -0
- package/dist/models/TrainingAttachmentModel.d.ts +13 -0
- package/dist/models/TrainingAttachmentModel.js +69 -0
- package/dist/models/TrainingChatModel.d.ts +20 -0
- package/dist/models/TrainingChatModel.js +82 -0
- package/dist/models/TrainingRequestModel.d.ts +43 -0
- package/dist/models/TrainingRequestModel.js +161 -0
- package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
- package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
- package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
- package/dist/models/TrainingRoomBookingChatModel.js +89 -0
- package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
- package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
- package/dist/models/TrainingRoomNotificationConfigModel.d.ts +11 -0
- package/dist/models/TrainingRoomNotificationConfigModel.js +44 -0
- package/dist/models/TrainingWorkflowModel.d.ts +19 -0
- package/dist/models/TrainingWorkflowModel.js +81 -0
- package/dist/models/VpnApprovalModel.d.ts +22 -0
- package/dist/models/VpnApprovalModel.js +91 -0
- package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
- package/dist/models/VpnRequestAttachmentModel.js +59 -0
- package/dist/models/VpnRequestChatModel.d.ts +26 -0
- package/dist/models/VpnRequestChatModel.js +86 -0
- package/dist/models/VpnRequestModel.d.ts +72 -0
- package/dist/models/VpnRequestModel.js +183 -0
- package/dist/models/VpnWorkflowModel.d.ts +17 -0
- package/dist/models/VpnWorkflowModel.js +71 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +17 -0
- package/dist/models/WorkflowHierarchy.js +86 -0
- package/dist/models/WorkflowTask.d.ts +13 -0
- package/dist/models/WorkflowTask.js +78 -0
- package/dist/models/WorkflowTaskNames.d.ts +17 -0
- package/dist/models/WorkflowTaskNames.js +63 -0
- package/dist/models/contactInfoModel.d.ts +18 -0
- package/dist/models/contactInfoModel.js +80 -0
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/role.d.ts +16 -0
- package/dist/models/role.js +44 -0
- package/dist/models/roleRightsModel.d.ts +13 -0
- package/dist/models/roleRightsModel.js +45 -0
- package/dist/models/serviceBookmarksModel.d.ts +6 -0
- package/dist/models/serviceBookmarksModel.js +34 -0
- package/dist/models/user-sessions.d.ts +18 -0
- package/dist/models/user-sessions.js +54 -0
- package/dist/models/user.d.ts +47 -0
- package/dist/models/user.js +238 -0
- package/dist/models/userRolesModel.d.ts +19 -0
- package/dist/models/userRolesModel.js +59 -0
- package/dist/scripts.d.ts +1 -0
- package/dist/scripts.js +11 -0
- package/package.json +2 -2
- package/.env +0 -14
|
@@ -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,33 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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.ITHelpDeskRequests = exports.status = exports.ContactFor = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ContactFor;
|
|
16
|
+
(function (ContactFor) {
|
|
17
|
+
ContactFor["SELF"] = "Self";
|
|
18
|
+
ContactFor["BEHALFOF"] = "Behalf of";
|
|
19
|
+
})(ContactFor || (exports.ContactFor = ContactFor = {}));
|
|
20
|
+
var status;
|
|
21
|
+
(function (status) {
|
|
22
|
+
status["PENDING"] = "Pending";
|
|
23
|
+
status["ASSIGNED"] = "Assigned";
|
|
24
|
+
status["IN_PROGRESS"] = "In Progress";
|
|
25
|
+
status["APPROVED"] = "Approved";
|
|
26
|
+
status["REJECTED"] = "Rejected";
|
|
27
|
+
})(status || (exports.status = status = {}));
|
|
28
|
+
let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
|
|
29
|
+
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date, status, workflow_execution_id, req_user_department_id, req_user_section_id, service_type_id, person_name, person_contact_number, email, request_type) {
|
|
30
|
+
super();
|
|
31
|
+
this.service_id = service_id;
|
|
32
|
+
this.sub_service_id = sub_service_id;
|
|
33
|
+
this.problem = problem;
|
|
34
|
+
this.request_for = request_for;
|
|
35
|
+
this.description = description;
|
|
36
|
+
this.extn_num = extn_num;
|
|
37
|
+
this.contact_num = contact_num;
|
|
38
|
+
this.email = email || null;
|
|
39
|
+
this.request_type = request_type || 'internal';
|
|
40
|
+
this.person_name = person_name || null;
|
|
41
|
+
this.person_contact_number = person_contact_number || null;
|
|
42
|
+
this.request_date = request_date;
|
|
43
|
+
this.status = status;
|
|
44
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
45
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
46
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
47
|
+
this.service_type_id = service_type_id || null;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.ITHelpDeskRequests = ITHelpDeskRequests;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], ITHelpDeskRequests.prototype, "req_user_department_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], ITHelpDeskRequests.prototype, "req_user_section_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], ITHelpDeskRequests.prototype, "service_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], ITHelpDeskRequests.prototype, "sub_service_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], ITHelpDeskRequests.prototype, "service_type_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ITHelpDeskRequests.prototype, "problem", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({
|
|
77
|
+
type: "enum",
|
|
78
|
+
enum: ContactFor,
|
|
79
|
+
default: ContactFor.SELF,
|
|
80
|
+
nullable: false,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], ITHelpDeskRequests.prototype, "request_for", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], ITHelpDeskRequests.prototype, "description", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], ITHelpDeskRequests.prototype, "extn_num", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], ITHelpDeskRequests.prototype, "contact_num", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], ITHelpDeskRequests.prototype, "email", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 30, nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], ITHelpDeskRequests.prototype, "request_type", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], ITHelpDeskRequests.prototype, "person_name", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], ITHelpDeskRequests.prototype, "person_contact_number", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
114
|
+
__metadata("design:type", Date)
|
|
115
|
+
], ITHelpDeskRequests.prototype, "request_date", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
118
|
+
__metadata("design:type", Number)
|
|
119
|
+
], ITHelpDeskRequests.prototype, "user_id", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({
|
|
122
|
+
type: "enum",
|
|
123
|
+
enum: status,
|
|
124
|
+
default: status.PENDING,
|
|
125
|
+
nullable: false,
|
|
126
|
+
}),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], ITHelpDeskRequests.prototype, "status", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
131
|
+
__metadata("design:type", Object)
|
|
132
|
+
], ITHelpDeskRequests.prototype, "workflow_execution_id", void 0);
|
|
133
|
+
exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
|
|
134
|
+
(0, typeorm_1.Entity)({ name: 'it_help_desk_requests' }),
|
|
135
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String, String, Object, Object, Object, Object, Object, Object, String])
|
|
136
|
+
], ITHelpDeskRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { ITHelpDeskRequests } from './ITHelpDeskModel';
|
|
3
|
+
import { User } from './user';
|
|
4
|
+
export declare class ITRequestAttachment extends BaseModel {
|
|
5
|
+
request_id: number;
|
|
6
|
+
request: ITHelpDeskRequests;
|
|
7
|
+
service_id: number | null;
|
|
8
|
+
sub_service_id: number | null;
|
|
9
|
+
uploaded_by: number;
|
|
10
|
+
user: User;
|
|
11
|
+
file_url: string;
|
|
12
|
+
file_name: string;
|
|
13
|
+
file_type: string;
|
|
14
|
+
file_size: number | null;
|
|
15
|
+
description: string;
|
|
16
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, description?: string, service_id?: number | null, sub_service_id?: number | null);
|
|
17
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.ITRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const ITHelpDeskModel_1 = require("./ITHelpDeskModel");
|
|
16
|
+
const user_1 = require("./user");
|
|
17
|
+
let ITRequestAttachment = class ITRequestAttachment extends BaseModel_1.BaseModel {
|
|
18
|
+
constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, description, service_id, sub_service_id) {
|
|
19
|
+
super();
|
|
20
|
+
this.request_id = request_id;
|
|
21
|
+
this.uploaded_by = uploaded_by;
|
|
22
|
+
this.file_url = file_url;
|
|
23
|
+
this.file_name = file_name || '';
|
|
24
|
+
this.file_type = file_type || '';
|
|
25
|
+
this.file_size = file_size || null;
|
|
26
|
+
this.description = description || '';
|
|
27
|
+
this.service_id = service_id ?? null;
|
|
28
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.ITRequestAttachment = ITRequestAttachment;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ITRequestAttachment.prototype, "request_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => ITHelpDeskModel_1.ITHelpDeskRequests),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: 'request_id' }),
|
|
39
|
+
__metadata("design:type", ITHelpDeskModel_1.ITHelpDeskRequests)
|
|
40
|
+
], ITRequestAttachment.prototype, "request", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], ITRequestAttachment.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ITRequestAttachment.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ITRequestAttachment.prototype, "uploaded_by", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User),
|
|
55
|
+
(0, typeorm_1.JoinColumn)({ name: 'uploaded_by' }),
|
|
56
|
+
__metadata("design:type", user_1.User)
|
|
57
|
+
], ITRequestAttachment.prototype, "user", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], ITRequestAttachment.prototype, "file_url", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], ITRequestAttachment.prototype, "file_name", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], ITRequestAttachment.prototype, "file_type", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], ITRequestAttachment.prototype, "file_size", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], ITRequestAttachment.prototype, "description", void 0);
|
|
78
|
+
exports.ITRequestAttachment = ITRequestAttachment = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: 'it_request_attachments' }),
|
|
80
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, Number, String, Object, Object])
|
|
81
|
+
], ITRequestAttachment);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { ITHelpDeskRequests } from './ITHelpDeskModel';
|
|
3
|
+
import { User } from './user';
|
|
4
|
+
export declare class ITRequestChat extends BaseModel {
|
|
5
|
+
request_id: number;
|
|
6
|
+
request: ITHelpDeskRequests;
|
|
7
|
+
service_id: number | null;
|
|
8
|
+
sub_service_id: number | null;
|
|
9
|
+
user_id: number;
|
|
10
|
+
user: User;
|
|
11
|
+
role_id: number | null;
|
|
12
|
+
message: string;
|
|
13
|
+
status: string | null;
|
|
14
|
+
is_internal: boolean;
|
|
15
|
+
constructor(request_id: number, user_id: number, message: string, is_internal?: boolean, service_id?: number | null, sub_service_id?: number | null, role_id?: number | null, status?: string | null);
|
|
16
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ITRequestChat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const ITHelpDeskModel_1 = require("./ITHelpDeskModel");
|
|
16
|
+
const user_1 = require("./user");
|
|
17
|
+
let ITRequestChat = class ITRequestChat extends BaseModel_1.BaseModel {
|
|
18
|
+
constructor(request_id, user_id, message, is_internal, service_id, sub_service_id, role_id, status) {
|
|
19
|
+
super();
|
|
20
|
+
this.request_id = request_id;
|
|
21
|
+
this.service_id = service_id || null;
|
|
22
|
+
this.sub_service_id = sub_service_id || null;
|
|
23
|
+
this.user_id = user_id;
|
|
24
|
+
this.role_id = role_id || null;
|
|
25
|
+
this.message = message;
|
|
26
|
+
this.status = status || null;
|
|
27
|
+
this.is_internal = is_internal || false;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.ITRequestChat = ITRequestChat;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], ITRequestChat.prototype, "request_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => ITHelpDeskModel_1.ITHelpDeskRequests),
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: 'request_id' }),
|
|
38
|
+
__metadata("design:type", ITHelpDeskModel_1.ITHelpDeskRequests)
|
|
39
|
+
], ITRequestChat.prototype, "request", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], ITRequestChat.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], ITRequestChat.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ITRequestChat.prototype, "user_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User),
|
|
54
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
55
|
+
__metadata("design:type", user_1.User)
|
|
56
|
+
], ITRequestChat.prototype, "user", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ITRequestChat.prototype, "role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ITRequestChat.prototype, "message", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], ITRequestChat.prototype, "status", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], ITRequestChat.prototype, "is_internal", void 0);
|
|
73
|
+
exports.ITRequestChat = ITRequestChat = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'it_request_chat' }),
|
|
75
|
+
__metadata("design:paramtypes", [Number, Number, String, Boolean, Object, Object, Object, Object])
|
|
76
|
+
], ITRequestChat);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum ApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
APPROVED = "Approved",
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
REASSIGNED = "Reassigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class ItApprovalDetails extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
level: number;
|
|
14
|
+
approver_user_id: number | null;
|
|
15
|
+
delegation_user_id: number | null;
|
|
16
|
+
approver_role_id: number | null;
|
|
17
|
+
department_id: number | null;
|
|
18
|
+
section_id: number | null;
|
|
19
|
+
approved_by: number | null;
|
|
20
|
+
comment: string;
|
|
21
|
+
approval_status: ApprovalStatus;
|
|
22
|
+
is_allowed: boolean;
|
|
23
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: ApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null, service_id?: number | null, sub_service_id?: number | null, delegation_user_id?: number | null, is_allowed?: boolean);
|
|
24
|
+
}
|