@platform-modules/civil-aviation-authority 2.3.84 → 2.3.86
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.
|
@@ -57,10 +57,12 @@ export declare class DutyMissionRequests extends BaseModel {
|
|
|
57
57
|
travel_start_date: Date;
|
|
58
58
|
travel_return_date: Date;
|
|
59
59
|
allowance_percentage: string | null;
|
|
60
|
+
sponsored_company_allowance_amount: string | null;
|
|
61
|
+
sponsored_total_company_amount: number | null;
|
|
60
62
|
air_ticket_required: AirTicketRequired | null;
|
|
61
63
|
vehicle_required: VehicleRequired | null;
|
|
62
64
|
remarks: string | null;
|
|
63
65
|
decision_number: string | null;
|
|
64
66
|
decision_date: Date | null;
|
|
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);
|
|
67
|
+
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, sponsored_company_allowance_amount?: string | null, sponsored_total_company_amount?: number | null);
|
|
66
68
|
}
|
|
@@ -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, decision_date, workflow_execution_id) {
|
|
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
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;
|
|
@@ -83,6 +83,8 @@ let DutyMissionRequests = class DutyMissionRequests extends BaseModel_1.BaseMode
|
|
|
83
83
|
this.decision_number = decision_number ?? null;
|
|
84
84
|
this.decision_date = decision_date ?? null;
|
|
85
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;
|
|
86
88
|
}
|
|
87
89
|
};
|
|
88
90
|
exports.DutyMissionRequests = DutyMissionRequests;
|
|
@@ -211,6 +213,14 @@ __decorate([
|
|
|
211
213
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
212
214
|
__metadata("design:type", Object)
|
|
213
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);
|
|
214
224
|
__decorate([
|
|
215
225
|
(0, typeorm_1.Column)({
|
|
216
226
|
type: "enum",
|
|
@@ -243,5 +253,5 @@ exports.DutyMissionRequests = DutyMissionRequests = __decorate([
|
|
|
243
253
|
(0, typeorm_1.Entity)({ name: 'duty_mission_requests' }),
|
|
244
254
|
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, Date,
|
|
245
255
|
Date, String, String, String, String, String, Date,
|
|
246
|
-
Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
256
|
+
Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
247
257
|
], DutyMissionRequests);
|
package/package.json
CHANGED
|
@@ -140,6 +140,12 @@ export class DutyMissionRequests extends BaseModel {
|
|
|
140
140
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
141
141
|
allowance_percentage: string | null; // Inside: 0%, 50%, 100%; Outside: 0%, 75%, 100%
|
|
142
142
|
|
|
143
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
144
|
+
sponsored_company_allowance_amount: string | null; // e.g. "50%"
|
|
145
|
+
|
|
146
|
+
@Column({ type: 'decimal', precision: 18, scale: 2, nullable: true })
|
|
147
|
+
sponsored_total_company_amount: number | null; // e.g. 1000000
|
|
148
|
+
|
|
143
149
|
@Column({
|
|
144
150
|
type: "enum",
|
|
145
151
|
enum: AirTicketRequired,
|
|
@@ -196,6 +202,8 @@ export class DutyMissionRequests extends BaseModel {
|
|
|
196
202
|
decision_number?: string | null,
|
|
197
203
|
decision_date?: Date | null,
|
|
198
204
|
workflow_execution_id?: string | null,
|
|
205
|
+
sponsored_company_allowance_amount?: string | null,
|
|
206
|
+
sponsored_total_company_amount?: number | null,
|
|
199
207
|
) {
|
|
200
208
|
super();
|
|
201
209
|
this.req_user_department_id = req_user_department_id ?? null;
|
|
@@ -230,5 +238,7 @@ export class DutyMissionRequests extends BaseModel {
|
|
|
230
238
|
this.decision_number = decision_number ?? null;
|
|
231
239
|
this.decision_date = decision_date ?? null;
|
|
232
240
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
241
|
+
this.sponsored_company_allowance_amount = sponsored_company_allowance_amount ?? null;
|
|
242
|
+
this.sponsored_total_company_amount = sponsored_total_company_amount ?? null;
|
|
233
243
|
}
|
|
234
244
|
}
|