@platform-modules/civil-aviation-authority 2.3.93 → 2.3.95
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 +13 -10
- package/dist/data-source.d.ts +4 -0
- package/dist/data-source.js +278 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +221 -0
- package/dist/index.js +336 -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 +256 -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/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -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/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -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/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/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +31 -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/src/data-source.ts +0 -10
- package/src/index.ts +1 -8
- package/src/models/DutyMissionRequestModel.ts +4 -4
- package/src/models/ResidentialUnitRentalApprovalModel.ts +0 -141
- package/src/models/ResidentialUnitRentalAttachmentModel.ts +0 -79
- package/src/models/ResidentialUnitRentalChatModel.ts +0 -89
- package/src/models/ResidentialUnitRentalRequestModel.ts +0 -229
- package/src/models/ResidentialUnitRentalWorkflowModel.ts +0 -138
|
@@ -0,0 +1,256 @@
|
|
|
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.DutyMissionRequests = exports.DutyMissionStatus = exports.VehicleRequired = exports.AirTicketRequired = exports.MissionSponsoredBy = exports.ChooseType = exports.TripType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TripType;
|
|
16
|
+
(function (TripType) {
|
|
17
|
+
TripType["ANNUAL"] = "Annual";
|
|
18
|
+
TripType["PLANNED"] = "Planned";
|
|
19
|
+
TripType["UNPLANNED"] = "Unplanned";
|
|
20
|
+
})(TripType || (exports.TripType = TripType = {}));
|
|
21
|
+
var ChooseType;
|
|
22
|
+
(function (ChooseType) {
|
|
23
|
+
ChooseType["INSIDE"] = "Inside";
|
|
24
|
+
ChooseType["OUTSIDE"] = "Outside";
|
|
25
|
+
})(ChooseType || (exports.ChooseType = ChooseType = {}));
|
|
26
|
+
var MissionSponsoredBy;
|
|
27
|
+
(function (MissionSponsoredBy) {
|
|
28
|
+
MissionSponsoredBy["CAA"] = "CAA";
|
|
29
|
+
MissionSponsoredBy["LISTED"] = "Listed Companies";
|
|
30
|
+
MissionSponsoredBy["NON_LISTED"] = "Non-listed Companies";
|
|
31
|
+
})(MissionSponsoredBy || (exports.MissionSponsoredBy = MissionSponsoredBy = {}));
|
|
32
|
+
var AirTicketRequired;
|
|
33
|
+
(function (AirTicketRequired) {
|
|
34
|
+
AirTicketRequired["YES"] = "Yes";
|
|
35
|
+
AirTicketRequired["NO"] = "No";
|
|
36
|
+
AirTicketRequired["CASH_COMPONENT"] = "Cash Component";
|
|
37
|
+
})(AirTicketRequired || (exports.AirTicketRequired = AirTicketRequired = {}));
|
|
38
|
+
var VehicleRequired;
|
|
39
|
+
(function (VehicleRequired) {
|
|
40
|
+
VehicleRequired["YES"] = "Yes";
|
|
41
|
+
VehicleRequired["NO"] = "No";
|
|
42
|
+
})(VehicleRequired || (exports.VehicleRequired = VehicleRequired = {}));
|
|
43
|
+
var DutyMissionStatus;
|
|
44
|
+
(function (DutyMissionStatus) {
|
|
45
|
+
DutyMissionStatus["PENDING"] = "Pending";
|
|
46
|
+
DutyMissionStatus["ASSIGNED"] = "Assigned";
|
|
47
|
+
DutyMissionStatus["IN_PROGRESS"] = "In Progress";
|
|
48
|
+
DutyMissionStatus["APPROVED"] = "Approved";
|
|
49
|
+
DutyMissionStatus["REJECTED"] = "Rejected";
|
|
50
|
+
})(DutyMissionStatus || (exports.DutyMissionStatus = DutyMissionStatus = {}));
|
|
51
|
+
let DutyMissionRequests = class DutyMissionRequests extends BaseModel_1.BaseModel {
|
|
52
|
+
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, trip_type, choose_type, mission_sponsored_by, mission_purpose, mission_number, mission_start_date, mission_end_date, travelling_area_from, travelling_area_to, from_country, to_country, travel_place, travel_start_date, travel_return_date, status, request_id, mission_id, mission_days, distance, if_sponsored, allowance_percentage, air_ticket_required, vehicle_required, remarks, decision_number, decision_date, workflow_execution_id, sponsored_company_allowance_amount, sponsored_total_company_amount) {
|
|
53
|
+
super();
|
|
54
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
55
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
56
|
+
this.service_id = service_id;
|
|
57
|
+
this.sub_service_id = sub_service_id;
|
|
58
|
+
this.user_id = user_id;
|
|
59
|
+
this.trip_type = trip_type;
|
|
60
|
+
this.choose_type = choose_type;
|
|
61
|
+
this.mission_sponsored_by = mission_sponsored_by;
|
|
62
|
+
this.mission_purpose = mission_purpose;
|
|
63
|
+
this.mission_number = mission_number;
|
|
64
|
+
this.mission_start_date = mission_start_date;
|
|
65
|
+
this.mission_end_date = mission_end_date;
|
|
66
|
+
this.travelling_area_from = travelling_area_from;
|
|
67
|
+
this.travelling_area_to = travelling_area_to;
|
|
68
|
+
this.from_country = from_country;
|
|
69
|
+
this.to_country = to_country;
|
|
70
|
+
this.travel_place = travel_place;
|
|
71
|
+
this.travel_start_date = travel_start_date;
|
|
72
|
+
this.travel_return_date = travel_return_date;
|
|
73
|
+
this.status = status;
|
|
74
|
+
this.request_id = request_id ?? null;
|
|
75
|
+
this.mission_id = mission_id ?? null;
|
|
76
|
+
this.mission_days = mission_days ?? null;
|
|
77
|
+
this.distance = distance ?? null;
|
|
78
|
+
this.if_sponsored = if_sponsored ?? null;
|
|
79
|
+
this.allowance_percentage = allowance_percentage ?? null;
|
|
80
|
+
this.air_ticket_required = air_ticket_required ?? null;
|
|
81
|
+
this.vehicle_required = vehicle_required ?? null;
|
|
82
|
+
this.remarks = remarks ?? null;
|
|
83
|
+
this.decision_number = decision_number ?? null;
|
|
84
|
+
this.decision_date = decision_date ?? null;
|
|
85
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
86
|
+
this.sponsored_company_allowance_amount = sponsored_company_allowance_amount ?? null;
|
|
87
|
+
this.sponsored_total_company_amount = sponsored_total_company_amount ?? null;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
exports.DutyMissionRequests = DutyMissionRequests;
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], DutyMissionRequests.prototype, "req_user_department_id", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], DutyMissionRequests.prototype, "req_user_section_id", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], DutyMissionRequests.prototype, "service_id", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], DutyMissionRequests.prototype, "sub_service_id", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], DutyMissionRequests.prototype, "user_id", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({
|
|
113
|
+
type: "enum",
|
|
114
|
+
enum: DutyMissionStatus,
|
|
115
|
+
default: DutyMissionStatus.PENDING,
|
|
116
|
+
nullable: false,
|
|
117
|
+
}),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], DutyMissionRequests.prototype, "status", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], DutyMissionRequests.prototype, "workflow_execution_id", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], DutyMissionRequests.prototype, "request_id", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({
|
|
130
|
+
type: "enum",
|
|
131
|
+
enum: TripType,
|
|
132
|
+
nullable: true,
|
|
133
|
+
}),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], DutyMissionRequests.prototype, "trip_type", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], DutyMissionRequests.prototype, "mission_id", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({
|
|
142
|
+
type: "enum",
|
|
143
|
+
enum: ChooseType,
|
|
144
|
+
nullable: true,
|
|
145
|
+
}),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], DutyMissionRequests.prototype, "choose_type", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({
|
|
150
|
+
type: "enum",
|
|
151
|
+
enum: MissionSponsoredBy,
|
|
152
|
+
nullable: false,
|
|
153
|
+
}),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], DutyMissionRequests.prototype, "mission_sponsored_by", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
158
|
+
__metadata("design:type", Object)
|
|
159
|
+
], DutyMissionRequests.prototype, "if_sponsored", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], DutyMissionRequests.prototype, "mission_purpose", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], DutyMissionRequests.prototype, "mission_number", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
170
|
+
__metadata("design:type", Date)
|
|
171
|
+
], DutyMissionRequests.prototype, "mission_start_date", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
174
|
+
__metadata("design:type", Date)
|
|
175
|
+
], DutyMissionRequests.prototype, "mission_end_date", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
178
|
+
__metadata("design:type", Object)
|
|
179
|
+
], DutyMissionRequests.prototype, "mission_days", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], DutyMissionRequests.prototype, "travelling_area_from", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], DutyMissionRequests.prototype, "travelling_area_to", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
190
|
+
__metadata("design:type", Object)
|
|
191
|
+
], DutyMissionRequests.prototype, "distance", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], DutyMissionRequests.prototype, "from_country", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], DutyMissionRequests.prototype, "to_country", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
202
|
+
__metadata("design:type", String)
|
|
203
|
+
], DutyMissionRequests.prototype, "travel_place", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
206
|
+
__metadata("design:type", Object)
|
|
207
|
+
], DutyMissionRequests.prototype, "travel_start_date", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
210
|
+
__metadata("design:type", Object)
|
|
211
|
+
], DutyMissionRequests.prototype, "travel_return_date", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
214
|
+
__metadata("design:type", Object)
|
|
215
|
+
], DutyMissionRequests.prototype, "allowance_percentage", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
218
|
+
__metadata("design:type", Object)
|
|
219
|
+
], DutyMissionRequests.prototype, "sponsored_company_allowance_amount", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 18, scale: 2, nullable: true }),
|
|
222
|
+
__metadata("design:type", Object)
|
|
223
|
+
], DutyMissionRequests.prototype, "sponsored_total_company_amount", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, typeorm_1.Column)({
|
|
226
|
+
type: "enum",
|
|
227
|
+
enum: AirTicketRequired,
|
|
228
|
+
nullable: true,
|
|
229
|
+
}),
|
|
230
|
+
__metadata("design:type", Object)
|
|
231
|
+
], DutyMissionRequests.prototype, "air_ticket_required", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, typeorm_1.Column)({
|
|
234
|
+
type: "enum",
|
|
235
|
+
enum: VehicleRequired,
|
|
236
|
+
nullable: true,
|
|
237
|
+
}),
|
|
238
|
+
__metadata("design:type", Object)
|
|
239
|
+
], DutyMissionRequests.prototype, "vehicle_required", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
242
|
+
__metadata("design:type", Object)
|
|
243
|
+
], DutyMissionRequests.prototype, "remarks", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
246
|
+
__metadata("design:type", Object)
|
|
247
|
+
], DutyMissionRequests.prototype, "decision_number", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
250
|
+
__metadata("design:type", Object)
|
|
251
|
+
], DutyMissionRequests.prototype, "decision_date", void 0);
|
|
252
|
+
exports.DutyMissionRequests = DutyMissionRequests = __decorate([
|
|
253
|
+
(0, typeorm_1.Entity)({ name: 'duty_mission_requests' }),
|
|
254
|
+
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, Date,
|
|
255
|
+
Date, String, String, String, String, String, Object, Object, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
256
|
+
], DutyMissionRequests);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum DutyMissionWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class DutyMissionWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: DutyMissionWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
constructor(request_id: number, content: string, status: DutyMissionWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
+
}
|
|
@@ -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.DutyMissionWorkFlow = exports.DutyMissionWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var DutyMissionWorkFlowStatus;
|
|
16
|
+
(function (DutyMissionWorkFlowStatus) {
|
|
17
|
+
DutyMissionWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
DutyMissionWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
DutyMissionWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(DutyMissionWorkFlowStatus || (exports.DutyMissionWorkFlowStatus = DutyMissionWorkFlowStatus = {}));
|
|
21
|
+
//This model is used to store the duty mission workflow status and activity logs
|
|
22
|
+
let DutyMissionWorkFlow = class DutyMissionWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
|
|
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.user_id = user_id || null;
|
|
31
|
+
this.role_id = role_id || null;
|
|
32
|
+
this.department_id = department_id || null;
|
|
33
|
+
this.section_id = section_id || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.DutyMissionWorkFlow = DutyMissionWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], DutyMissionWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], DutyMissionWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], DutyMissionWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], DutyMissionWorkFlow.prototype, "content", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DutyMissionWorkFlowStatus, default: DutyMissionWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], DutyMissionWorkFlow.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], DutyMissionWorkFlow.prototype, "user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], DutyMissionWorkFlow.prototype, "role_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], DutyMissionWorkFlow.prototype, "department_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], DutyMissionWorkFlow.prototype, "section_id", void 0);
|
|
73
|
+
exports.DutyMissionWorkFlow = DutyMissionWorkFlow = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'duty_mission_workflows' }),
|
|
75
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
76
|
+
], DutyMissionWorkFlow);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
/**
|
|
3
|
+
* This model is used to store the Financial Grade master data on the Admin Side
|
|
4
|
+
*/
|
|
5
|
+
export declare class FinancialGrade extends BaseModel {
|
|
6
|
+
financial_grade: number | null;
|
|
7
|
+
daily_allowance: number | null;
|
|
8
|
+
travel_class: string | null;
|
|
9
|
+
currency: string | null;
|
|
10
|
+
is_active: boolean;
|
|
11
|
+
constructor(financial_grade?: number | null, daily_allowance?: number | null, travel_class?: string | null, currency?: string | null, is_active?: boolean);
|
|
12
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FinancialGrade = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
/**
|
|
16
|
+
* This model is used to store the Financial Grade master data on the Admin Side
|
|
17
|
+
*/
|
|
18
|
+
let FinancialGrade = class FinancialGrade extends BaseModel_1.BaseModel {
|
|
19
|
+
constructor(financial_grade, daily_allowance, travel_class, currency, is_active) {
|
|
20
|
+
super();
|
|
21
|
+
this.financial_grade = financial_grade || null;
|
|
22
|
+
this.daily_allowance = daily_allowance || null;
|
|
23
|
+
this.travel_class = travel_class || null;
|
|
24
|
+
this.currency = currency || null;
|
|
25
|
+
this.is_active = is_active !== undefined ? is_active : true;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.FinancialGrade = FinancialGrade;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], FinancialGrade.prototype, "financial_grade", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], FinancialGrade.prototype, "daily_allowance", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], FinancialGrade.prototype, "travel_class", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], FinancialGrade.prototype, "currency", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], FinancialGrade.prototype, "is_active", void 0);
|
|
49
|
+
exports.FinancialGrade = FinancialGrade = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({ name: 'financial_grade' }),
|
|
51
|
+
__metadata("design:paramtypes", [Object, Object, Object, Object, Boolean])
|
|
52
|
+
], FinancialGrade);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** *
|
|
2
|
+
@author
|
|
3
|
+
Amnet Digital
|
|
4
|
+
@date
|
|
5
|
+
2024-05-20
|
|
6
|
+
@Model
|
|
7
|
+
Group
|
|
8
|
+
@usage
|
|
9
|
+
Group Information will store
|
|
10
|
+
*/
|
|
11
|
+
import { BaseModel } from './BaseModel';
|
|
12
|
+
export declare class Group extends BaseModel {
|
|
13
|
+
group_id: number;
|
|
14
|
+
user_id: number;
|
|
15
|
+
constructor(group_id: number, user_id: number);
|
|
16
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** *
|
|
3
|
+
@author
|
|
4
|
+
Amnet Digital
|
|
5
|
+
@date
|
|
6
|
+
2024-05-20
|
|
7
|
+
@Model
|
|
8
|
+
Group
|
|
9
|
+
@usage
|
|
10
|
+
Group Information will store
|
|
11
|
+
*/
|
|
12
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
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;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.Group = void 0;
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const BaseModel_1 = require("./BaseModel");
|
|
25
|
+
let Group = class Group extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(group_id, user_id) {
|
|
27
|
+
super();
|
|
28
|
+
this.group_id = group_id;
|
|
29
|
+
this.user_id = user_id;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Group = Group;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Group.prototype, "group_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Group.prototype, "user_id", void 0);
|
|
41
|
+
exports.Group = Group = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'Groups' }),
|
|
43
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
44
|
+
], Group);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.GroupNames = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let GroupNames = class GroupNames extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, description) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.description = description;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.GroupNames = GroupNames;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GroupNames.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], GroupNames.prototype, "description", void 0);
|
|
31
|
+
exports.GroupNames = GroupNames = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'group_names' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], GroupNames);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum HotelApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class HotelApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: HotelApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: HotelApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number, is_allowed?: boolean);
|
|
23
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.HotelApprovalDetails = exports.HotelApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HotelApprovalStatus;
|
|
16
|
+
(function (HotelApprovalStatus) {
|
|
17
|
+
HotelApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
HotelApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
HotelApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
HotelApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(HotelApprovalStatus || (exports.HotelApprovalStatus = HotelApprovalStatus = {}));
|
|
22
|
+
let HotelApprovalDetails = class HotelApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id, is_allowed) {
|
|
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.approver_role_id = approver_role_id;
|
|
29
|
+
this.comment = comment;
|
|
30
|
+
this.approval_status = approval_status;
|
|
31
|
+
this.level = level;
|
|
32
|
+
this.department_id = department_id || null;
|
|
33
|
+
this.section_id = section_id || null;
|
|
34
|
+
this.approver_user_id = approver_user_id || null;
|
|
35
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
36
|
+
this.approved_by = approved_by || null;
|
|
37
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.HotelApprovalDetails = HotelApprovalDetails;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], HotelApprovalDetails.prototype, "request_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], HotelApprovalDetails.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], HotelApprovalDetails.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], HotelApprovalDetails.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], HotelApprovalDetails.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], HotelApprovalDetails.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], HotelApprovalDetails.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], HotelApprovalDetails.prototype, "approver_user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], HotelApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], HotelApprovalDetails.prototype, "approved_by", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], HotelApprovalDetails.prototype, "comment", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: HotelApprovalStatus, default: HotelApprovalStatus.PENDING, nullable: false }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], HotelApprovalDetails.prototype, "approval_status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], HotelApprovalDetails.prototype, "is_allowed", void 0);
|
|
93
|
+
exports.HotelApprovalDetails = HotelApprovalDetails = __decorate([
|
|
94
|
+
(0, typeorm_1.Entity)({ name: 'hotelapprovals' }),
|
|
95
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
96
|
+
], HotelApprovalDetails);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class HotelRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
uploaded_by: number;
|
|
12
|
+
description: string;
|
|
13
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number, description?: string);
|
|
14
|
+
}
|