@platform-modules/civil-aviation-authority 2.3.78 → 2.3.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/models/CityMasterModel.d.ts +8 -0
- package/dist/models/CityMasterModel.js +41 -0
- package/dist/models/DutyMissionRequestModel.d.ts +2 -1
- package/dist/models/DutyMissionRequestModel.js +7 -2
- package/dist/models/FinancialGradeModel.d.ts +2 -3
- package/dist/models/FinancialGradeModel.js +7 -12
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +3 -0
- package/src/models/CityMasterModel.ts +22 -0
- package/src/models/DutyMissionRequestModel.ts +5 -0
- package/src/models/FinancialGradeModel.ts +5 -10
package/dist/data-source.js
CHANGED
|
@@ -128,6 +128,7 @@ const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveReq
|
|
|
128
128
|
const PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
129
129
|
const AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
|
|
130
130
|
const SkillsEnhancementRequestModel_1 = require("./models/SkillsEnhancementRequestModel");
|
|
131
|
+
const CityMasterModel_1 = require("./models/CityMasterModel");
|
|
131
132
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
132
133
|
type: 'postgres',
|
|
133
134
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -259,6 +260,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
259
260
|
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest,
|
|
260
261
|
PromotionRequestModel_1.PromotionRequest,
|
|
261
262
|
AnnualIncrementRequestModel_1.AnnualIncrementRequest,
|
|
262
|
-
SkillsEnhancementRequestModel_1.SkillsEnhancementRequest
|
|
263
|
+
SkillsEnhancementRequestModel_1.SkillsEnhancementRequest,
|
|
264
|
+
CityMasterModel_1.CityMaster
|
|
263
265
|
],
|
|
264
266
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ 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';
|
|
191
192
|
export * from './models/LocationModel';
|
|
192
193
|
export * from './models/FinancialGradeModel';
|
|
193
194
|
export * from './models/NationalityMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -279,6 +279,8 @@ 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);
|
|
282
284
|
// Location Master
|
|
283
285
|
__exportStar(require("./models/LocationModel"), exports);
|
|
284
286
|
// Financial Grade Master
|
|
@@ -0,0 +1,41 @@
|
|
|
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.CityMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let CityMaster = class CityMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(city_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.city_name = city_name;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.CityMaster = CityMaster;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], CityMaster.prototype, "country_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CityMaster.prototype, "city_name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], CityMaster.prototype, "city_code", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], CityMaster.prototype, "description", void 0);
|
|
38
|
+
exports.CityMaster = CityMaster = __decorate([
|
|
39
|
+
(0, typeorm_1.Entity)({ name: 'city_master' }),
|
|
40
|
+
__metadata("design:paramtypes", [String])
|
|
41
|
+
], CityMaster);
|
|
@@ -61,5 +61,6 @@ export declare class DutyMissionRequests extends BaseModel {
|
|
|
61
61
|
vehicle_required: VehicleRequired | null;
|
|
62
62
|
remarks: string | null;
|
|
63
63
|
decision_number: string | null;
|
|
64
|
-
|
|
64
|
+
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);
|
|
65
66
|
}
|
|
@@ -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, 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) {
|
|
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,6 +81,7 @@ 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;
|
|
84
85
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
85
86
|
}
|
|
86
87
|
};
|
|
@@ -234,9 +235,13 @@ __decorate([
|
|
|
234
235
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
235
236
|
__metadata("design:type", Object)
|
|
236
237
|
], 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);
|
|
237
242
|
exports.DutyMissionRequests = DutyMissionRequests = __decorate([
|
|
238
243
|
(0, typeorm_1.Entity)({ name: 'duty_mission_requests' }),
|
|
239
244
|
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, Date,
|
|
240
245
|
Date, String, String, String, String, String, Date,
|
|
241
|
-
Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
246
|
+
Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
242
247
|
], DutyMissionRequests);
|
|
@@ -3,11 +3,10 @@ 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;
|
|
7
6
|
financial_grade: number | null;
|
|
8
|
-
leave_count: number | null;
|
|
9
7
|
daily_allowance: number | null;
|
|
10
8
|
travel_class: string | null;
|
|
9
|
+
currency: string | null;
|
|
11
10
|
is_active: boolean;
|
|
12
|
-
constructor(
|
|
11
|
+
constructor(financial_grade?: number | null, daily_allowance?: number | null, travel_class?: string | null, currency?: string | null, is_active?: boolean);
|
|
13
12
|
}
|
|
@@ -16,29 +16,20 @@ 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(
|
|
19
|
+
constructor(financial_grade, daily_allowance, travel_class, currency, is_active) {
|
|
20
20
|
super();
|
|
21
|
-
this.arabic_title = arabic_title || null;
|
|
22
21
|
this.financial_grade = financial_grade || null;
|
|
23
|
-
this.leave_count = leave_count || null;
|
|
24
22
|
this.daily_allowance = daily_allowance || null;
|
|
25
23
|
this.travel_class = travel_class || null;
|
|
24
|
+
this.currency = currency || null;
|
|
26
25
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
28
|
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);
|
|
34
29
|
__decorate([
|
|
35
30
|
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
31
|
__metadata("design:type", Object)
|
|
37
32
|
], 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);
|
|
42
33
|
__decorate([
|
|
43
34
|
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: true }),
|
|
44
35
|
__metadata("design:type", Object)
|
|
@@ -47,11 +38,15 @@ __decorate([
|
|
|
47
38
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
48
39
|
__metadata("design:type", Object)
|
|
49
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);
|
|
50
45
|
__decorate([
|
|
51
46
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
52
47
|
__metadata("design:type", Boolean)
|
|
53
48
|
], FinancialGrade.prototype, "is_active", void 0);
|
|
54
49
|
exports.FinancialGrade = FinancialGrade = __decorate([
|
|
55
50
|
(0, typeorm_1.Entity)({ name: 'financial_grade' }),
|
|
56
|
-
__metadata("design:paramtypes", [Object, Object, Object, Object,
|
|
51
|
+
__metadata("design:paramtypes", [Object, Object, Object, Object, Boolean])
|
|
57
52
|
], FinancialGrade);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -126,6 +126,7 @@ import { CashAllowanceLeaveRequest } from './models/CashAllowanceLeaveRequestMod
|
|
|
126
126
|
import { PromotionRequest } from './models/PromotionRequestModel';
|
|
127
127
|
import { AnnualIncrementRequest } from './models/AnnualIncrementRequestModel';
|
|
128
128
|
import { SkillsEnhancementRequest } from './models/SkillsEnhancementRequestModel';
|
|
129
|
+
import { CityMaster } from './models/CityMasterModel';
|
|
129
130
|
|
|
130
131
|
export const AppDataSource = new DataSource({
|
|
131
132
|
type: 'postgres',
|
|
@@ -258,6 +259,7 @@ export const AppDataSource = new DataSource({
|
|
|
258
259
|
CashAllowanceLeaveRequest,
|
|
259
260
|
PromotionRequest,
|
|
260
261
|
AnnualIncrementRequest,
|
|
261
|
-
SkillsEnhancementRequest
|
|
262
|
+
SkillsEnhancementRequest,
|
|
263
|
+
CityMaster
|
|
262
264
|
],
|
|
263
265
|
});
|
package/src/index.ts
CHANGED
|
@@ -202,6 +202,9 @@ export {NewResourceRequestStatus} from './models/NewResourceRequestModel';
|
|
|
202
202
|
// Country Master
|
|
203
203
|
export * from './models/CountryMasterModel';
|
|
204
204
|
|
|
205
|
+
// City Master
|
|
206
|
+
export * from './models/CityMasterModel';
|
|
207
|
+
|
|
205
208
|
// Location Master
|
|
206
209
|
export * from './models/LocationModel';
|
|
207
210
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'city_master' })
|
|
5
|
+
export class CityMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'int', nullable: true })
|
|
7
|
+
country_id: number | null;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
10
|
+
city_name: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
13
|
+
city_code: string | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text', nullable: true })
|
|
16
|
+
description: string | null;
|
|
17
|
+
|
|
18
|
+
constructor(city_name: string) {
|
|
19
|
+
super();
|
|
20
|
+
this.city_name = city_name;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -160,6 +160,9 @@ export class DutyMissionRequests extends BaseModel {
|
|
|
160
160
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
161
161
|
decision_number: string | null;
|
|
162
162
|
|
|
163
|
+
@Column({ type: 'timestamp', nullable: true })
|
|
164
|
+
decision_date: Date | null;
|
|
165
|
+
|
|
163
166
|
constructor(
|
|
164
167
|
req_user_department_id: number | null,
|
|
165
168
|
req_user_section_id: number | null,
|
|
@@ -191,6 +194,7 @@ export class DutyMissionRequests extends BaseModel {
|
|
|
191
194
|
vehicle_required?: VehicleRequired | null,
|
|
192
195
|
remarks?: string | null,
|
|
193
196
|
decision_number?: string | null,
|
|
197
|
+
decision_date?: Date | null,
|
|
194
198
|
workflow_execution_id?: string | null,
|
|
195
199
|
) {
|
|
196
200
|
super();
|
|
@@ -224,6 +228,7 @@ export class DutyMissionRequests extends BaseModel {
|
|
|
224
228
|
this.vehicle_required = vehicle_required ?? null;
|
|
225
229
|
this.remarks = remarks ?? null;
|
|
226
230
|
this.decision_number = decision_number ?? null;
|
|
231
|
+
this.decision_date = decision_date ?? null;
|
|
227
232
|
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
228
233
|
}
|
|
229
234
|
}
|
|
@@ -7,38 +7,33 @@ import { BaseModel } from './BaseModel';
|
|
|
7
7
|
@Entity({ name: 'financial_grade' })
|
|
8
8
|
export class FinancialGrade extends BaseModel {
|
|
9
9
|
|
|
10
|
-
@Column({ type: 'varchar', nullable: true })
|
|
11
|
-
arabic_title: string | null;
|
|
12
|
-
|
|
13
10
|
@Column({ type: "integer", nullable: true })
|
|
14
11
|
financial_grade: number | null;
|
|
15
12
|
|
|
16
|
-
@Column({ type: "integer", nullable: true })
|
|
17
|
-
leave_count: number | null;
|
|
18
|
-
|
|
19
13
|
@Column({ type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
20
14
|
daily_allowance: number | null;
|
|
21
15
|
|
|
22
16
|
@Column({ type: 'varchar', nullable: true })
|
|
23
17
|
travel_class: string | null;
|
|
24
18
|
|
|
19
|
+
@Column({ type: 'varchar', length: 10, nullable: true})
|
|
20
|
+
currency: string | null;
|
|
21
|
+
|
|
25
22
|
@Column({ type: 'boolean', default: true })
|
|
26
23
|
is_active: boolean;
|
|
27
24
|
|
|
28
25
|
constructor(
|
|
29
|
-
arabic_title?: string | null,
|
|
30
26
|
financial_grade?: number | null,
|
|
31
|
-
leave_count?: number | null,
|
|
32
27
|
daily_allowance?: number | null,
|
|
33
28
|
travel_class?: string | null,
|
|
29
|
+
currency?: string | null,
|
|
34
30
|
is_active?: boolean
|
|
35
31
|
) {
|
|
36
32
|
super();
|
|
37
|
-
this.arabic_title = arabic_title || null;
|
|
38
33
|
this.financial_grade = financial_grade || null;
|
|
39
|
-
this.leave_count = leave_count || null;
|
|
40
34
|
this.daily_allowance = daily_allowance || null;
|
|
41
35
|
this.travel_class = travel_class || null;
|
|
36
|
+
this.currency = currency || null;
|
|
42
37
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
43
38
|
}
|
|
44
39
|
}
|