@platform-modules/civil-aviation-authority 2.3.81 → 2.3.82
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 +19 -13
- package/dist/data-source.js +10 -4
- package/dist/index.d.ts +9 -3
- package/dist/index.js +15 -6
- package/dist/models/DutyMissionRequestModel.d.ts +1 -2
- package/dist/models/DutyMissionRequestModel.js +12 -17
- package/dist/models/FinancialGradeModel.d.ts +3 -2
- package/dist/models/FinancialGradeModel.js +12 -7
- package/dist/models/JobTransferRequestModel.d.ts +1 -1
- package/dist/models/JobTransferRequestModel.js +1 -1
- 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/package.json +1 -1
- package/src/data-source.ts +10 -4
- package/src/index.ts +10 -5
- package/src/models/DutyMissionRequestModel.ts +10 -15
- package/src/models/FinancialGradeModel.ts +10 -5
- package/src/models/JobTransferRequestModel.ts +2 -2
- package/src/models/ResidentialUnitRentalApprovalModel.ts +62 -0
- package/src/models/ResidentialUnitRentalAttachmentModel.ts +34 -0
- package/src/models/ResidentialUnitRentalChatModel.ts +39 -0
- package/src/models/ResidentialUnitRentalRequestModel.ts +101 -0
- package/src/models/ResidentialUnitRentalWorkflowModel.ts +60 -0
- package/dist/models/CityMasterModel.d.ts +0 -8
- package/dist/models/CityMasterModel.js +0 -41
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/SkillsEnhancementRequestModel.d.ts +0 -39
- package/dist/models/SkillsEnhancementRequestModel.js +0 -133
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
- package/src/models/CityMasterModel.ts +0 -22
- package/src/models/SkillsEnhancementRequestModel.ts +0 -120
package/.env
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
# DB_HOST=
|
|
2
|
-
# DB_PORT=
|
|
3
|
-
# DB_USER=
|
|
4
|
-
# DB_PASS=
|
|
1
|
+
# DB_HOST=164.52.222.169
|
|
2
|
+
# DB_PORT=5432
|
|
3
|
+
# DB_USER=postgres_admin_user
|
|
4
|
+
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
5
|
# DB_NAME=CAA
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
|
|
8
|
+
DB_HOST=localhost
|
|
9
|
+
DB_PORT=5432
|
|
10
|
+
DB_USER=postgres
|
|
11
|
+
DB_PASS=admin123
|
|
11
12
|
DB_NAME=CAA
|
|
12
13
|
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
|
|
14
|
+
# TYPEORM_HOST = 164.52.222.169
|
|
15
|
+
# TYPEORM_USERNAME = postgres_admin_user
|
|
16
|
+
# TYPEORM_PASSWORD = pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
17
|
+
# TYPEORM_DATABASE= CAA
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# TYPEORM_HOST = 164.52.222.169
|
|
21
|
+
# TYPEORM_USERNAME = postgres
|
|
22
|
+
# TYPEORM_PASSWORD = admin123
|
|
23
|
+
# TYPEORM_DATABASE= CAA
|
package/dist/data-source.js
CHANGED
|
@@ -127,8 +127,11 @@ const RequestForCoverageAttachmentModel_1 = require("./models/RequestForCoverage
|
|
|
127
127
|
const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
128
128
|
const PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
129
129
|
const AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
|
|
130
|
-
const
|
|
131
|
-
const
|
|
130
|
+
const ResidentialUnitRentalRequestModel_1 = require("./models/ResidentialUnitRentalRequestModel");
|
|
131
|
+
const ResidentialUnitRentalApprovalModel_1 = require("./models/ResidentialUnitRentalApprovalModel");
|
|
132
|
+
const ResidentialUnitRentalWorkflowModel_1 = require("./models/ResidentialUnitRentalWorkflowModel");
|
|
133
|
+
const ResidentialUnitRentalAttachmentModel_1 = require("./models/ResidentialUnitRentalAttachmentModel");
|
|
134
|
+
const ResidentialUnitRentalChatModel_1 = require("./models/ResidentialUnitRentalChatModel");
|
|
132
135
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
133
136
|
type: 'postgres',
|
|
134
137
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -260,7 +263,10 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
260
263
|
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest,
|
|
261
264
|
PromotionRequestModel_1.PromotionRequest,
|
|
262
265
|
AnnualIncrementRequestModel_1.AnnualIncrementRequest,
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
ResidentialUnitRentalRequestModel_1.ResidentialUnitRentalRequest,
|
|
267
|
+
ResidentialUnitRentalApprovalModel_1.ResidentialUnitRentalApproval,
|
|
268
|
+
ResidentialUnitRentalWorkflowModel_1.ResidentialUnitRentalWorkflow,
|
|
269
|
+
ResidentialUnitRentalAttachmentModel_1.ResidentialUnitRentalAttachment,
|
|
270
|
+
ResidentialUnitRentalChatModel_1.ResidentialUnitRentalChat
|
|
265
271
|
],
|
|
266
272
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -188,7 +188,6 @@ export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
|
|
|
188
188
|
export * from './models/NewResourceRequestModel';
|
|
189
189
|
export { NewResourceRequestStatus } from './models/NewResourceRequestModel';
|
|
190
190
|
export * from './models/CountryMasterModel';
|
|
191
|
-
export * from './models/CityMasterModel';
|
|
192
191
|
export * from './models/LocationModel';
|
|
193
192
|
export * from './models/FinancialGradeModel';
|
|
194
193
|
export * from './models/NationalityMasterModel';
|
|
@@ -203,5 +202,12 @@ export * from './models/PromotionRequestModel';
|
|
|
203
202
|
export { PromotionRequestStatus } from './models/PromotionRequestModel';
|
|
204
203
|
export * from './models/AnnualIncrementRequestModel';
|
|
205
204
|
export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestModel';
|
|
206
|
-
export * from './models/
|
|
207
|
-
export
|
|
205
|
+
export * from './models/ResidentialUnitRentalRequestModel';
|
|
206
|
+
export * from './models/ResidentialUnitRentalApprovalModel';
|
|
207
|
+
export * from './models/ResidentialUnitRentalWorkflowModel';
|
|
208
|
+
export * from './models/ResidentialUnitRentalAttachmentModel';
|
|
209
|
+
export * from './models/ResidentialUnitRentalChatModel';
|
|
210
|
+
export { ResidentialUnitRentalRequestStatus } from './models/ResidentialUnitRentalRequestModel';
|
|
211
|
+
export { ResidentialUnitRentalApprovalStatus } from './models/ResidentialUnitRentalApprovalModel';
|
|
212
|
+
export { ResidentialUnitRentalWorkFlowStatus } from './models/ResidentialUnitRentalWorkflowModel';
|
|
213
|
+
export { ResidentialUnitRentalMessageType } from './models/ResidentialUnitRentalChatModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.
|
|
18
|
+
exports.ResidentialUnitRentalMessageType = exports.ResidentialUnitRentalWorkFlowStatus = exports.ResidentialUnitRentalApprovalStatus = exports.ResidentialUnitRentalRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -279,8 +279,6 @@ var NewResourceRequestModel_1 = require("./models/NewResourceRequestModel");
|
|
|
279
279
|
Object.defineProperty(exports, "NewResourceRequestStatus", { enumerable: true, get: function () { return NewResourceRequestModel_1.NewResourceRequestStatus; } });
|
|
280
280
|
// Country Master
|
|
281
281
|
__exportStar(require("./models/CountryMasterModel"), exports);
|
|
282
|
-
// City Master
|
|
283
|
-
__exportStar(require("./models/CityMasterModel"), exports);
|
|
284
282
|
// Location Master
|
|
285
283
|
__exportStar(require("./models/LocationModel"), exports);
|
|
286
284
|
// Financial Grade Master
|
|
@@ -308,6 +306,17 @@ Object.defineProperty(exports, "PromotionRequestStatus", { enumerable: true, get
|
|
|
308
306
|
__exportStar(require("./models/AnnualIncrementRequestModel"), exports);
|
|
309
307
|
var AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
|
|
310
308
|
Object.defineProperty(exports, "AnnualIncrementRequestStatus", { enumerable: true, get: function () { return AnnualIncrementRequestModel_1.AnnualIncrementRequestStatus; } });
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
309
|
+
// Residential Unit Rental Service
|
|
310
|
+
__exportStar(require("./models/ResidentialUnitRentalRequestModel"), exports);
|
|
311
|
+
__exportStar(require("./models/ResidentialUnitRentalApprovalModel"), exports);
|
|
312
|
+
__exportStar(require("./models/ResidentialUnitRentalWorkflowModel"), exports);
|
|
313
|
+
__exportStar(require("./models/ResidentialUnitRentalAttachmentModel"), exports);
|
|
314
|
+
__exportStar(require("./models/ResidentialUnitRentalChatModel"), exports);
|
|
315
|
+
var ResidentialUnitRentalRequestModel_1 = require("./models/ResidentialUnitRentalRequestModel");
|
|
316
|
+
Object.defineProperty(exports, "ResidentialUnitRentalRequestStatus", { enumerable: true, get: function () { return ResidentialUnitRentalRequestModel_1.ResidentialUnitRentalRequestStatus; } });
|
|
317
|
+
var ResidentialUnitRentalApprovalModel_1 = require("./models/ResidentialUnitRentalApprovalModel");
|
|
318
|
+
Object.defineProperty(exports, "ResidentialUnitRentalApprovalStatus", { enumerable: true, get: function () { return ResidentialUnitRentalApprovalModel_1.ResidentialUnitRentalApprovalStatus; } });
|
|
319
|
+
var ResidentialUnitRentalWorkflowModel_1 = require("./models/ResidentialUnitRentalWorkflowModel");
|
|
320
|
+
Object.defineProperty(exports, "ResidentialUnitRentalWorkFlowStatus", { enumerable: true, get: function () { return ResidentialUnitRentalWorkflowModel_1.ResidentialUnitRentalWorkFlowStatus; } });
|
|
321
|
+
var ResidentialUnitRentalChatModel_1 = require("./models/ResidentialUnitRentalChatModel");
|
|
322
|
+
Object.defineProperty(exports, "ResidentialUnitRentalMessageType", { enumerable: true, get: function () { return ResidentialUnitRentalChatModel_1.ResidentialUnitRentalMessageType; } });
|
|
@@ -61,6 +61,5 @@ export declare class DutyMissionRequests extends BaseModel {
|
|
|
61
61
|
vehicle_required: VehicleRequired | null;
|
|
62
62
|
remarks: string | null;
|
|
63
63
|
decision_number: string | null;
|
|
64
|
-
|
|
65
|
-
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, trip_type: TripType, choose_type: ChooseType, mission_sponsored_by: MissionSponsoredBy, mission_purpose: string, mission_number: string, mission_start_date: Date, mission_end_date: Date, travelling_area_from: string, travelling_area_to: string, from_country: string, to_country: string, travel_place: string, travel_start_date: Date, travel_return_date: Date, status: DutyMissionStatus, request_id?: string | null, mission_id?: string | null, mission_days?: number | null, distance?: string | null, if_sponsored?: string | null, allowance_percentage?: string | null, air_ticket_required?: AirTicketRequired | null, vehicle_required?: VehicleRequired | null, remarks?: string | null, decision_number?: string | null, decision_date?: Date | null, workflow_execution_id?: string | null);
|
|
64
|
+
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, trip_type: TripType, choose_type: ChooseType, mission_sponsored_by: MissionSponsoredBy, mission_purpose: string, mission_number: string, mission_start_date: Date, mission_end_date: Date, travelling_area_from: string, travelling_area_to: string, from_country: string, to_country: string, travel_place: string, travel_start_date: Date, travel_return_date: Date, status: DutyMissionStatus, request_id?: string | null, mission_id?: string | null, mission_days?: number | null, distance?: string | null, if_sponsored?: string | null, allowance_percentage?: string | null, air_ticket_required?: AirTicketRequired | null, vehicle_required?: VehicleRequired | null, remarks?: string | null, decision_number?: string | null, workflow_execution_id?: string | null);
|
|
66
65
|
}
|
|
@@ -49,7 +49,7 @@ var DutyMissionStatus;
|
|
|
49
49
|
DutyMissionStatus["REJECTED"] = "Rejected";
|
|
50
50
|
})(DutyMissionStatus || (exports.DutyMissionStatus = DutyMissionStatus = {}));
|
|
51
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,
|
|
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, workflow_execution_id) {
|
|
53
53
|
super();
|
|
54
54
|
this.req_user_department_id = req_user_department_id ?? null;
|
|
55
55
|
this.req_user_section_id = req_user_section_id ?? null;
|
|
@@ -81,7 +81,6 @@ let DutyMissionRequests = class DutyMissionRequests extends BaseModel_1.BaseMode
|
|
|
81
81
|
this.vehicle_required = vehicle_required ?? null;
|
|
82
82
|
this.remarks = remarks ?? null;
|
|
83
83
|
this.decision_number = decision_number ?? null;
|
|
84
|
-
this.decision_date = decision_date ?? null;
|
|
85
84
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
86
85
|
}
|
|
87
86
|
};
|
|
@@ -127,7 +126,7 @@ __decorate([
|
|
|
127
126
|
(0, typeorm_1.Column)({
|
|
128
127
|
type: "enum",
|
|
129
128
|
enum: TripType,
|
|
130
|
-
nullable:
|
|
129
|
+
nullable: false,
|
|
131
130
|
}),
|
|
132
131
|
__metadata("design:type", String)
|
|
133
132
|
], DutyMissionRequests.prototype, "trip_type", void 0);
|
|
@@ -139,7 +138,7 @@ __decorate([
|
|
|
139
138
|
(0, typeorm_1.Column)({
|
|
140
139
|
type: "enum",
|
|
141
140
|
enum: ChooseType,
|
|
142
|
-
nullable:
|
|
141
|
+
nullable: false,
|
|
143
142
|
}),
|
|
144
143
|
__metadata("design:type", String)
|
|
145
144
|
], DutyMissionRequests.prototype, "choose_type", void 0);
|
|
@@ -160,7 +159,7 @@ __decorate([
|
|
|
160
159
|
__metadata("design:type", String)
|
|
161
160
|
], DutyMissionRequests.prototype, "mission_purpose", void 0);
|
|
162
161
|
__decorate([
|
|
163
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable:
|
|
162
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
164
163
|
__metadata("design:type", String)
|
|
165
164
|
], DutyMissionRequests.prototype, "mission_number", void 0);
|
|
166
165
|
__decorate([
|
|
@@ -176,11 +175,11 @@ __decorate([
|
|
|
176
175
|
__metadata("design:type", Object)
|
|
177
176
|
], DutyMissionRequests.prototype, "mission_days", void 0);
|
|
178
177
|
__decorate([
|
|
179
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable:
|
|
178
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
180
179
|
__metadata("design:type", String)
|
|
181
180
|
], DutyMissionRequests.prototype, "travelling_area_from", void 0);
|
|
182
181
|
__decorate([
|
|
183
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable:
|
|
182
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
184
183
|
__metadata("design:type", String)
|
|
185
184
|
], DutyMissionRequests.prototype, "travelling_area_to", void 0);
|
|
186
185
|
__decorate([
|
|
@@ -188,23 +187,23 @@ __decorate([
|
|
|
188
187
|
__metadata("design:type", Object)
|
|
189
188
|
], DutyMissionRequests.prototype, "distance", void 0);
|
|
190
189
|
__decorate([
|
|
191
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable:
|
|
190
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
192
191
|
__metadata("design:type", String)
|
|
193
192
|
], DutyMissionRequests.prototype, "from_country", void 0);
|
|
194
193
|
__decorate([
|
|
195
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable:
|
|
194
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
196
195
|
__metadata("design:type", String)
|
|
197
196
|
], DutyMissionRequests.prototype, "to_country", void 0);
|
|
198
197
|
__decorate([
|
|
199
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable:
|
|
198
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
200
199
|
__metadata("design:type", String)
|
|
201
200
|
], DutyMissionRequests.prototype, "travel_place", void 0);
|
|
202
201
|
__decorate([
|
|
203
|
-
(0, typeorm_1.Column)({ type: "date", nullable:
|
|
202
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
204
203
|
__metadata("design:type", Date)
|
|
205
204
|
], DutyMissionRequests.prototype, "travel_start_date", void 0);
|
|
206
205
|
__decorate([
|
|
207
|
-
(0, typeorm_1.Column)({ type: "date", nullable:
|
|
206
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
208
207
|
__metadata("design:type", Date)
|
|
209
208
|
], DutyMissionRequests.prototype, "travel_return_date", void 0);
|
|
210
209
|
__decorate([
|
|
@@ -235,13 +234,9 @@ __decorate([
|
|
|
235
234
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
236
235
|
__metadata("design:type", Object)
|
|
237
236
|
], DutyMissionRequests.prototype, "decision_number", void 0);
|
|
238
|
-
__decorate([
|
|
239
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
240
|
-
__metadata("design:type", Object)
|
|
241
|
-
], DutyMissionRequests.prototype, "decision_date", void 0);
|
|
242
237
|
exports.DutyMissionRequests = DutyMissionRequests = __decorate([
|
|
243
238
|
(0, typeorm_1.Entity)({ name: 'duty_mission_requests' }),
|
|
244
239
|
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, Date,
|
|
245
240
|
Date, String, String, String, String, String, Date,
|
|
246
|
-
Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object
|
|
241
|
+
Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
247
242
|
], DutyMissionRequests);
|
|
@@ -3,10 +3,11 @@ import { BaseModel } from './BaseModel';
|
|
|
3
3
|
* This model is used to store the Financial Grade master data on the Admin Side
|
|
4
4
|
*/
|
|
5
5
|
export declare class FinancialGrade extends BaseModel {
|
|
6
|
+
arabic_title: string | null;
|
|
6
7
|
financial_grade: number | null;
|
|
8
|
+
leave_count: number | null;
|
|
7
9
|
daily_allowance: number | null;
|
|
8
10
|
travel_class: string | null;
|
|
9
|
-
currency: string | null;
|
|
10
11
|
is_active: boolean;
|
|
11
|
-
constructor(financial_grade?: number | null,
|
|
12
|
+
constructor(arabic_title?: string | null, financial_grade?: number | null, leave_count?: number | null, daily_allowance?: number | null, travel_class?: string | null, is_active?: boolean);
|
|
12
13
|
}
|
|
@@ -16,20 +16,29 @@ const BaseModel_1 = require("./BaseModel");
|
|
|
16
16
|
* This model is used to store the Financial Grade master data on the Admin Side
|
|
17
17
|
*/
|
|
18
18
|
let FinancialGrade = class FinancialGrade extends BaseModel_1.BaseModel {
|
|
19
|
-
constructor(financial_grade, daily_allowance, travel_class,
|
|
19
|
+
constructor(arabic_title, financial_grade, leave_count, daily_allowance, travel_class, is_active) {
|
|
20
20
|
super();
|
|
21
|
+
this.arabic_title = arabic_title || null;
|
|
21
22
|
this.financial_grade = financial_grade || null;
|
|
23
|
+
this.leave_count = leave_count || null;
|
|
22
24
|
this.daily_allowance = daily_allowance || null;
|
|
23
25
|
this.travel_class = travel_class || null;
|
|
24
|
-
this.currency = currency || null;
|
|
25
26
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
29
|
exports.FinancialGrade = FinancialGrade;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], FinancialGrade.prototype, "arabic_title", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
36
|
__metadata("design:type", Object)
|
|
32
37
|
], FinancialGrade.prototype, "financial_grade", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], FinancialGrade.prototype, "leave_count", void 0);
|
|
33
42
|
__decorate([
|
|
34
43
|
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: true }),
|
|
35
44
|
__metadata("design:type", Object)
|
|
@@ -38,15 +47,11 @@ __decorate([
|
|
|
38
47
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
39
48
|
__metadata("design:type", Object)
|
|
40
49
|
], 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
50
|
__decorate([
|
|
46
51
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
52
|
__metadata("design:type", Boolean)
|
|
48
53
|
], FinancialGrade.prototype, "is_active", void 0);
|
|
49
54
|
exports.FinancialGrade = FinancialGrade = __decorate([
|
|
50
55
|
(0, typeorm_1.Entity)({ name: 'financial_grade' }),
|
|
51
|
-
__metadata("design:paramtypes", [Object, Object, Object, Object, Boolean])
|
|
56
|
+
__metadata("design:paramtypes", [Object, Object, Object, Object, Object, Boolean])
|
|
52
57
|
], FinancialGrade);
|
|
@@ -27,6 +27,6 @@ export declare class JobTransferRequest extends BaseModel {
|
|
|
27
27
|
current_job_position: string;
|
|
28
28
|
position_to_be_transferred: string;
|
|
29
29
|
effective_from_date: Date;
|
|
30
|
-
decision_number:
|
|
30
|
+
decision_number: number | null;
|
|
31
31
|
constructor(user_id: number, status?: JobTransferRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, reason_for_request?: string, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, position_to_be_transferred?: string, effective_from_date?: Date);
|
|
32
32
|
}
|
|
@@ -123,7 +123,7 @@ __decorate([
|
|
|
123
123
|
__metadata("design:type", Date)
|
|
124
124
|
], JobTransferRequest.prototype, "effective_from_date", void 0);
|
|
125
125
|
__decorate([
|
|
126
|
-
(0, typeorm_1.Column)({ type: "
|
|
126
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
127
127
|
__metadata("design:type", Object)
|
|
128
128
|
], JobTransferRequest.prototype, "decision_number", void 0);
|
|
129
129
|
exports.JobTransferRequest = JobTransferRequest = __decorate([
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ResidentialUnitRentalApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class ResidentialUnitRentalApproval extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number;
|
|
11
|
+
sub_service_id: number;
|
|
12
|
+
approver_role_id: number;
|
|
13
|
+
approver_user_id: number;
|
|
14
|
+
delegate_user_id: number;
|
|
15
|
+
approved_by: number;
|
|
16
|
+
department_id: number;
|
|
17
|
+
section_id: number;
|
|
18
|
+
level: number;
|
|
19
|
+
approval_status: ResidentialUnitRentalApprovalStatus;
|
|
20
|
+
comment: string;
|
|
21
|
+
created_by: number;
|
|
22
|
+
constructor();
|
|
23
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.ResidentialUnitRentalApproval = exports.ResidentialUnitRentalApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ResidentialUnitRentalApprovalStatus;
|
|
16
|
+
(function (ResidentialUnitRentalApprovalStatus) {
|
|
17
|
+
ResidentialUnitRentalApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
ResidentialUnitRentalApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
ResidentialUnitRentalApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
ResidentialUnitRentalApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(ResidentialUnitRentalApprovalStatus || (exports.ResidentialUnitRentalApprovalStatus = ResidentialUnitRentalApprovalStatus = {}));
|
|
22
|
+
let ResidentialUnitRentalApproval = class ResidentialUnitRentalApproval extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.ResidentialUnitRentalApproval = ResidentialUnitRentalApproval;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ResidentialUnitRentalApproval.prototype, "request_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ResidentialUnitRentalApproval.prototype, "service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], ResidentialUnitRentalApproval.prototype, "sub_service_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], ResidentialUnitRentalApproval.prototype, "approver_role_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], ResidentialUnitRentalApproval.prototype, "approver_user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ResidentialUnitRentalApproval.prototype, "delegate_user_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], ResidentialUnitRentalApproval.prototype, "approved_by", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], ResidentialUnitRentalApproval.prototype, "department_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], ResidentialUnitRentalApproval.prototype, "section_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], ResidentialUnitRentalApproval.prototype, "level", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({
|
|
70
|
+
type: 'enum',
|
|
71
|
+
enum: ResidentialUnitRentalApprovalStatus,
|
|
72
|
+
default: ResidentialUnitRentalApprovalStatus.PENDING,
|
|
73
|
+
nullable: false
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], ResidentialUnitRentalApproval.prototype, "approval_status", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], ResidentialUnitRentalApproval.prototype, "comment", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], ResidentialUnitRentalApproval.prototype, "created_by", void 0);
|
|
85
|
+
exports.ResidentialUnitRentalApproval = ResidentialUnitRentalApproval = __decorate([
|
|
86
|
+
(0, typeorm_1.Entity)({ name: 'residential_unit_rental_approvals' }),
|
|
87
|
+
__metadata("design:paramtypes", [])
|
|
88
|
+
], ResidentialUnitRentalApproval);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class ResidentialUnitRentalAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
file_name: string;
|
|
7
|
+
file_url: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number;
|
|
10
|
+
created_by: number;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.ResidentialUnitRentalAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ResidentialUnitRentalAttachment = class ResidentialUnitRentalAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.ResidentialUnitRentalAttachment = ResidentialUnitRentalAttachment;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ResidentialUnitRentalAttachment.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ResidentialUnitRentalAttachment.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ResidentialUnitRentalAttachment.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ResidentialUnitRentalAttachment.prototype, "file_name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ResidentialUnitRentalAttachment.prototype, "file_url", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ResidentialUnitRentalAttachment.prototype, "file_type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], ResidentialUnitRentalAttachment.prototype, "file_size", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ResidentialUnitRentalAttachment.prototype, "created_by", void 0);
|
|
53
|
+
exports.ResidentialUnitRentalAttachment = ResidentialUnitRentalAttachment = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)({ name: 'residential_unit_rental_attachments' }),
|
|
55
|
+
__metadata("design:paramtypes", [])
|
|
56
|
+
], ResidentialUnitRentalAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ResidentialUnitRentalMessageType {
|
|
3
|
+
text = "text",
|
|
4
|
+
image = "image",
|
|
5
|
+
video = "video",
|
|
6
|
+
file = "file",
|
|
7
|
+
link = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class ResidentialUnitRentalChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number;
|
|
12
|
+
sub_service_id: number;
|
|
13
|
+
message: string;
|
|
14
|
+
message_type: string;
|
|
15
|
+
is_internal: boolean;
|
|
16
|
+
created_by: number;
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ResidentialUnitRentalChat = exports.ResidentialUnitRentalMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ResidentialUnitRentalMessageType;
|
|
16
|
+
(function (ResidentialUnitRentalMessageType) {
|
|
17
|
+
ResidentialUnitRentalMessageType["text"] = "text";
|
|
18
|
+
ResidentialUnitRentalMessageType["image"] = "image";
|
|
19
|
+
ResidentialUnitRentalMessageType["video"] = "video";
|
|
20
|
+
ResidentialUnitRentalMessageType["file"] = "file";
|
|
21
|
+
ResidentialUnitRentalMessageType["link"] = "link";
|
|
22
|
+
})(ResidentialUnitRentalMessageType || (exports.ResidentialUnitRentalMessageType = ResidentialUnitRentalMessageType = {}));
|
|
23
|
+
let ResidentialUnitRentalChat = class ResidentialUnitRentalChat extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.ResidentialUnitRentalChat = ResidentialUnitRentalChat;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ResidentialUnitRentalChat.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ResidentialUnitRentalChat.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ResidentialUnitRentalChat.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ResidentialUnitRentalChat.prototype, "message", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ResidentialUnitRentalChat.prototype, "message_type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: false }),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], ResidentialUnitRentalChat.prototype, "is_internal", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], ResidentialUnitRentalChat.prototype, "created_by", void 0);
|
|
57
|
+
exports.ResidentialUnitRentalChat = ResidentialUnitRentalChat = __decorate([
|
|
58
|
+
(0, typeorm_1.Entity)({ name: 'residential_unit_rental_chat' }),
|
|
59
|
+
__metadata("design:paramtypes", [])
|
|
60
|
+
], ResidentialUnitRentalChat);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ResidentialUnitRentalRequestStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
Approved = "Approved",
|
|
5
|
+
Rejected = "Rejected",
|
|
6
|
+
RFC = "RFC"
|
|
7
|
+
}
|
|
8
|
+
export declare class ResidentialUnitRentalRequest extends BaseModel {
|
|
9
|
+
request_id: string;
|
|
10
|
+
service_id: number;
|
|
11
|
+
sub_service_id: number;
|
|
12
|
+
requested_unit_type: string;
|
|
13
|
+
/** BRD: Apartment options with OMR rates - Studio 100, 1BHK 150, 2BHK 200, 3BHK 250 */
|
|
14
|
+
apartment_type: {
|
|
15
|
+
studio?: boolean;
|
|
16
|
+
one_bhk?: boolean;
|
|
17
|
+
two_bhk?: boolean;
|
|
18
|
+
three_bhk?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
|
|
21
|
+
villa_type: {
|
|
22
|
+
one_room?: boolean;
|
|
23
|
+
two_room?: boolean;
|
|
24
|
+
three_room?: boolean;
|
|
25
|
+
};
|
|
26
|
+
extension_number: string;
|
|
27
|
+
preferred_start_date: Date;
|
|
28
|
+
family_size: number;
|
|
29
|
+
duration_of_stay: string;
|
|
30
|
+
location_of_unit: string;
|
|
31
|
+
comment: string;
|
|
32
|
+
status: string;
|
|
33
|
+
user_id: number;
|
|
34
|
+
workflow_execution_id: string;
|
|
35
|
+
created_by: number;
|
|
36
|
+
approved_by: number;
|
|
37
|
+
approved_at: Date;
|
|
38
|
+
approver_comment: string;
|
|
39
|
+
unit_details: {
|
|
40
|
+
type: string;
|
|
41
|
+
specifications: any;
|
|
42
|
+
rate: number;
|
|
43
|
+
};
|
|
44
|
+
rental_start_date: Date;
|
|
45
|
+
rental_end_date: Date;
|
|
46
|
+
rental_agreement_url: string;
|
|
47
|
+
constructor();
|
|
48
|
+
}
|