@platform-modules/civil-aviation-authority 2.3.42 → 2.3.43

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/index.d.ts CHANGED
@@ -185,3 +185,8 @@ export * from './models/ShiftAllowanceRequestModel';
185
185
  export { ShiftAllowanceRequestStatus, ShiftAllowanceValue } from './models/ShiftAllowanceRequestModel';
186
186
  export * from './models/JobTransferRequestModel';
187
187
  export { JobTransferRequestStatus } from './models/JobTransferRequestModel';
188
+ export * from './models/NewResourceRequestModel';
189
+ export { NewResourceRequestStatus } from './models/NewResourceRequestModel';
190
+ export * from './models/CountryMasterModel';
191
+ export * from './models/LocationModel';
192
+ export * from './models/NationalityMasterModel';
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.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;
18
+ 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);
@@ -273,3 +273,13 @@ Object.defineProperty(exports, "ShiftAllowanceValue", { enumerable: true, get: f
273
273
  __exportStar(require("./models/JobTransferRequestModel"), exports);
274
274
  var JobTransferRequestModel_1 = require("./models/JobTransferRequestModel");
275
275
  Object.defineProperty(exports, "JobTransferRequestStatus", { enumerable: true, get: function () { return JobTransferRequestModel_1.JobTransferRequestStatus; } });
276
+ // New Resource (Request for New Resource) Service
277
+ __exportStar(require("./models/NewResourceRequestModel"), exports);
278
+ var NewResourceRequestModel_1 = require("./models/NewResourceRequestModel");
279
+ Object.defineProperty(exports, "NewResourceRequestStatus", { enumerable: true, get: function () { return NewResourceRequestModel_1.NewResourceRequestStatus; } });
280
+ // Country Master
281
+ __exportStar(require("./models/CountryMasterModel"), exports);
282
+ // Location Master
283
+ __exportStar(require("./models/LocationModel"), exports);
284
+ // Nationality Master
285
+ __exportStar(require("./models/NationalityMasterModel"), exports);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class CountryMaster extends BaseModel {
3
+ country_name: string;
4
+ country_name_arabic: string | null;
5
+ country_code: string | null;
6
+ phone_code: string | null;
7
+ description: string | null;
8
+ is_active: boolean;
9
+ display_order: number;
10
+ constructor(country_name: string);
11
+ }
@@ -0,0 +1,55 @@
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.CountryMaster = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let CountryMaster = class CountryMaster extends BaseModel_1.BaseModel {
16
+ constructor(country_name) {
17
+ super();
18
+ this.country_name = country_name;
19
+ this.is_active = true;
20
+ this.display_order = 0;
21
+ }
22
+ };
23
+ exports.CountryMaster = CountryMaster;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
26
+ __metadata("design:type", String)
27
+ ], CountryMaster.prototype, "country_name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], CountryMaster.prototype, "country_name_arabic", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], CountryMaster.prototype, "country_code", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
38
+ __metadata("design:type", Object)
39
+ ], CountryMaster.prototype, "phone_code", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
42
+ __metadata("design:type", Object)
43
+ ], CountryMaster.prototype, "description", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
46
+ __metadata("design:type", Boolean)
47
+ ], CountryMaster.prototype, "is_active", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'int', default: 0 }),
50
+ __metadata("design:type", Number)
51
+ ], CountryMaster.prototype, "display_order", void 0);
52
+ exports.CountryMaster = CountryMaster = __decorate([
53
+ (0, typeorm_1.Entity)({ name: 'country_master' }),
54
+ __metadata("design:paramtypes", [String])
55
+ ], CountryMaster);
@@ -0,0 +1,12 @@
1
+ export declare class Location {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ is_active: boolean;
6
+ is_deleted: boolean;
7
+ created_by: string;
8
+ updated_by: string;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ constructor(name?: string, description?: string);
12
+ }
@@ -0,0 +1,62 @@
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.Location = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let Location = class Location {
15
+ constructor(name, description) {
16
+ if (name)
17
+ this.name = name;
18
+ if (description)
19
+ this.description = description;
20
+ }
21
+ };
22
+ exports.Location = Location;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], Location.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], Location.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], Location.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
37
+ __metadata("design:type", Boolean)
38
+ ], Location.prototype, "is_active", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
41
+ __metadata("design:type", Boolean)
42
+ ], Location.prototype, "is_deleted", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Location.prototype, "created_by", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], Location.prototype, "updated_by", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
53
+ __metadata("design:type", Date)
54
+ ], Location.prototype, "created_at", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
57
+ __metadata("design:type", Date)
58
+ ], Location.prototype, "updated_at", void 0);
59
+ exports.Location = Location = __decorate([
60
+ (0, typeorm_1.Entity)('locations'),
61
+ __metadata("design:paramtypes", [String, String])
62
+ ], Location);
@@ -0,0 +1,10 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class NationalityMaster extends BaseModel {
3
+ nationality_name: string;
4
+ nationality_name_arabic: string | null;
5
+ country_code: string | null;
6
+ description: string | null;
7
+ is_active: boolean;
8
+ display_order: number;
9
+ constructor(nationality_name: string);
10
+ }
@@ -0,0 +1,51 @@
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.NationalityMaster = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let NationalityMaster = class NationalityMaster extends BaseModel_1.BaseModel {
16
+ constructor(nationality_name) {
17
+ super();
18
+ this.nationality_name = nationality_name;
19
+ this.is_active = true;
20
+ this.display_order = 0;
21
+ }
22
+ };
23
+ exports.NationalityMaster = NationalityMaster;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
26
+ __metadata("design:type", String)
27
+ ], NationalityMaster.prototype, "nationality_name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], NationalityMaster.prototype, "nationality_name_arabic", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], NationalityMaster.prototype, "country_code", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
38
+ __metadata("design:type", Object)
39
+ ], NationalityMaster.prototype, "description", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
42
+ __metadata("design:type", Boolean)
43
+ ], NationalityMaster.prototype, "is_active", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'int', default: 0 }),
46
+ __metadata("design:type", Number)
47
+ ], NationalityMaster.prototype, "display_order", void 0);
48
+ exports.NationalityMaster = NationalityMaster = __decorate([
49
+ (0, typeorm_1.Entity)({ name: 'nationality_master' }),
50
+ __metadata("design:paramtypes", [String])
51
+ ], NationalityMaster);
@@ -0,0 +1,32 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum NewResourceRequestStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ COMPLETED = "Completed",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected"
9
+ }
10
+ export declare class NewResourceRequest extends BaseModel {
11
+ req_user_department_id: number | null;
12
+ req_user_section_id: number | null;
13
+ req_user_position_id: number | null;
14
+ service_id: number | null;
15
+ sub_service_id: number | null;
16
+ user_id: number;
17
+ description: string | null;
18
+ status: NewResourceRequestStatus;
19
+ reviewer_user_id: number | null;
20
+ assigned_to_user_id: number | null;
21
+ assigned_at: Date | null;
22
+ workflow_execution_id: string | null;
23
+ position_to_be_filled: string;
24
+ grade: string;
25
+ role_title: string;
26
+ education_requirement: string;
27
+ required_skills: string;
28
+ years_of_experience: string;
29
+ location: string | null;
30
+ job_description: string;
31
+ constructor(user_id: number, status?: NewResourceRequestStatus, 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, position_to_be_filled?: string, grade?: string, role_title?: string, education_requirement?: string, required_skills?: string, years_of_experience?: string, location?: string | null, job_description?: string);
32
+ }
@@ -0,0 +1,133 @@
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.NewResourceRequest = exports.NewResourceRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var NewResourceRequestStatus;
16
+ (function (NewResourceRequestStatus) {
17
+ NewResourceRequestStatus["PENDING"] = "Pending";
18
+ NewResourceRequestStatus["ASSIGNED"] = "Assigned";
19
+ NewResourceRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ NewResourceRequestStatus["COMPLETED"] = "Completed";
21
+ NewResourceRequestStatus["APPROVED"] = "Approved";
22
+ NewResourceRequestStatus["REJECTED"] = "Rejected";
23
+ })(NewResourceRequestStatus || (exports.NewResourceRequestStatus = NewResourceRequestStatus = {}));
24
+ let NewResourceRequest = class NewResourceRequest extends BaseModel_1.BaseModel {
25
+ constructor(user_id, status = NewResourceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, position_to_be_filled, grade, role_title, education_requirement, required_skills, years_of_experience, location, job_description) {
26
+ super();
27
+ this.user_id = user_id;
28
+ this.status = status;
29
+ this.service_id = service_id || null;
30
+ this.sub_service_id = sub_service_id || null;
31
+ this.req_user_department_id = req_user_department_id || null;
32
+ this.req_user_section_id = req_user_section_id || null;
33
+ this.req_user_position_id = req_user_position_id || null;
34
+ this.description = description || null;
35
+ this.reviewer_user_id = reviewer_user_id || null;
36
+ this.assigned_to_user_id = assigned_to_user_id || null;
37
+ this.assigned_at = assigned_at || null;
38
+ this.workflow_execution_id = workflow_execution_id || null;
39
+ this.position_to_be_filled = position_to_be_filled || "";
40
+ this.grade = grade || "";
41
+ this.role_title = role_title || "";
42
+ this.education_requirement = education_requirement || "";
43
+ this.required_skills = required_skills || "";
44
+ this.years_of_experience = years_of_experience || "";
45
+ this.location = location || null;
46
+ this.job_description = job_description || "";
47
+ }
48
+ };
49
+ exports.NewResourceRequest = NewResourceRequest;
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], NewResourceRequest.prototype, "req_user_department_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], NewResourceRequest.prototype, "req_user_section_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], NewResourceRequest.prototype, "req_user_position_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], NewResourceRequest.prototype, "service_id", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], NewResourceRequest.prototype, "sub_service_id", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
72
+ __metadata("design:type", Number)
73
+ ], NewResourceRequest.prototype, "user_id", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], NewResourceRequest.prototype, "description", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "enum", enum: NewResourceRequestStatus, default: NewResourceRequestStatus.PENDING, nullable: false }),
80
+ __metadata("design:type", String)
81
+ ], NewResourceRequest.prototype, "status", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], NewResourceRequest.prototype, "reviewer_user_id", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
88
+ __metadata("design:type", Object)
89
+ ], NewResourceRequest.prototype, "assigned_to_user_id", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
92
+ __metadata("design:type", Object)
93
+ ], NewResourceRequest.prototype, "assigned_at", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
96
+ __metadata("design:type", Object)
97
+ ], NewResourceRequest.prototype, "workflow_execution_id", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
100
+ __metadata("design:type", String)
101
+ ], NewResourceRequest.prototype, "position_to_be_filled", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
104
+ __metadata("design:type", String)
105
+ ], NewResourceRequest.prototype, "grade", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
108
+ __metadata("design:type", String)
109
+ ], NewResourceRequest.prototype, "role_title", void 0);
110
+ __decorate([
111
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
112
+ __metadata("design:type", String)
113
+ ], NewResourceRequest.prototype, "education_requirement", void 0);
114
+ __decorate([
115
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
116
+ __metadata("design:type", String)
117
+ ], NewResourceRequest.prototype, "required_skills", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
120
+ __metadata("design:type", String)
121
+ ], NewResourceRequest.prototype, "years_of_experience", void 0);
122
+ __decorate([
123
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
124
+ __metadata("design:type", Object)
125
+ ], NewResourceRequest.prototype, "location", void 0);
126
+ __decorate([
127
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
128
+ __metadata("design:type", String)
129
+ ], NewResourceRequest.prototype, "job_description", void 0);
130
+ exports.NewResourceRequest = NewResourceRequest = __decorate([
131
+ (0, typeorm_1.Entity)({ name: "new_resource_requests" }),
132
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, String, Object, String])
133
+ ], NewResourceRequest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.42",
3
+ "version": "2.3.43",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -192,3 +192,16 @@ export {ShiftAllowanceRequestStatus, ShiftAllowanceValue} from './models/ShiftAl
192
192
  // Job Transfer (Transfer from One Job to Another Job Nature) Service
193
193
  export * from './models/JobTransferRequestModel';
194
194
  export {JobTransferRequestStatus} from './models/JobTransferRequestModel';
195
+
196
+ // New Resource (Request for New Resource) Service
197
+ export * from './models/NewResourceRequestModel';
198
+ export {NewResourceRequestStatus} from './models/NewResourceRequestModel';
199
+
200
+ // Country Master
201
+ export * from './models/CountryMasterModel';
202
+
203
+ // Location Master
204
+ export * from './models/LocationModel';
205
+
206
+ // Nationality Master
207
+ export * from './models/NationalityMasterModel';
@@ -0,0 +1,33 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'country_master' })
5
+ export class CountryMaster extends BaseModel {
6
+ @Column({ type: 'varchar', length: 255, nullable: false })
7
+ country_name: string; // Country name
8
+
9
+ @Column({ type: 'varchar', length: 255, nullable: true })
10
+ country_name_arabic: string | null; // Arabic translation
11
+
12
+ @Column({ type: 'varchar', length: 10, nullable: true })
13
+ country_code: string | null; // ISO country code (e.g., "OM", "US")
14
+
15
+ @Column({ type: 'varchar', length: 10, nullable: true })
16
+ phone_code: string | null; // Phone country code (e.g., "+968")
17
+
18
+ @Column({ type: 'text', nullable: true })
19
+ description: string | null; // Description of the country
20
+
21
+ @Column({ type: 'boolean', default: true })
22
+ is_active: boolean; // Whether the country is active
23
+
24
+ @Column({ type: 'int', default: 0 })
25
+ display_order: number; // Order for display in dropdowns
26
+
27
+ constructor(country_name: string) {
28
+ super();
29
+ this.country_name = country_name;
30
+ this.is_active = true;
31
+ this.display_order = 0;
32
+ }
33
+ }
@@ -0,0 +1,42 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ CreateDateColumn,
6
+ UpdateDateColumn
7
+ } from 'typeorm';
8
+
9
+ @Entity('locations')
10
+ export class Location {
11
+ @PrimaryGeneratedColumn()
12
+ id: number;
13
+
14
+ @Column({ type: 'varchar', length: 255, nullable: false })
15
+ name: string;
16
+
17
+ @Column({ type: 'text', nullable: true })
18
+ description: string;
19
+
20
+ @Column({ type: 'boolean', default: true })
21
+ is_active: boolean;
22
+
23
+ @Column({ type: 'boolean', default: false })
24
+ is_deleted: boolean;
25
+
26
+ @Column({ type: 'varchar', nullable: true })
27
+ created_by: string;
28
+
29
+ @Column({ type: 'varchar', nullable: true })
30
+ updated_by: string;
31
+
32
+ @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
33
+ created_at: Date;
34
+
35
+ @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
36
+ updated_at: Date;
37
+
38
+ constructor(name?: string, description?: string) {
39
+ if (name) this.name = name;
40
+ if (description) this.description = description;
41
+ }
42
+ }
@@ -0,0 +1,30 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'nationality_master' })
5
+ export class NationalityMaster extends BaseModel {
6
+ @Column({ type: 'varchar', length: 255, nullable: false })
7
+ nationality_name: string; // Nationality name
8
+
9
+ @Column({ type: 'varchar', length: 255, nullable: true })
10
+ nationality_name_arabic: string | null; // Arabic translation
11
+
12
+ @Column({ type: 'varchar', length: 10, nullable: true })
13
+ country_code: string | null; // Associated country code
14
+
15
+ @Column({ type: 'text', nullable: true })
16
+ description: string | null; // Description of the nationality
17
+
18
+ @Column({ type: 'boolean', default: true })
19
+ is_active: boolean; // Whether the nationality is active
20
+
21
+ @Column({ type: 'int', default: 0 })
22
+ display_order: number; // Order for display in dropdowns
23
+
24
+ constructor(nationality_name: string) {
25
+ super();
26
+ this.nationality_name = nationality_name;
27
+ this.is_active = true;
28
+ this.display_order = 0;
29
+ }
30
+ }
@@ -0,0 +1,120 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum NewResourceRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "new_resource_requests" })
14
+ export class NewResourceRequest extends BaseModel {
15
+ @Column({ type: "integer", nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: "integer", nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: "integer", nullable: true })
22
+ req_user_position_id: number | null;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: true })
34
+ description: string | null;
35
+
36
+ @Column({ type: "enum", enum: NewResourceRequestStatus, default: NewResourceRequestStatus.PENDING, nullable: false })
37
+ status: NewResourceRequestStatus;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ reviewer_user_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ assigned_to_user_id: number | null;
44
+
45
+ @Column({ type: "timestamp", nullable: true })
46
+ assigned_at: Date | null;
47
+
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ // New Resource specific fields
52
+ @Column({ type: "varchar", length: 255, nullable: false })
53
+ position_to_be_filled: string;
54
+
55
+ @Column({ type: "varchar", length: 100, nullable: false })
56
+ grade: string;
57
+
58
+ @Column({ type: "varchar", length: 255, nullable: false })
59
+ role_title: string;
60
+
61
+ @Column({ type: "text", nullable: false })
62
+ education_requirement: string;
63
+
64
+ @Column({ type: "text", nullable: false })
65
+ required_skills: string;
66
+
67
+ @Column({ type: "varchar", length: 50, nullable: false })
68
+ years_of_experience: string;
69
+
70
+ @Column({ type: "varchar", length: 255, nullable: true })
71
+ location: string | null;
72
+
73
+ @Column({ type: "text", nullable: false })
74
+ job_description: string;
75
+
76
+ constructor(
77
+ user_id: number,
78
+ status: NewResourceRequestStatus = NewResourceRequestStatus.PENDING,
79
+ service_id?: number | null,
80
+ sub_service_id?: number | null,
81
+ req_user_department_id?: number | null,
82
+ req_user_section_id?: number | null,
83
+ req_user_position_id?: number | null,
84
+ description?: string | null,
85
+ reviewer_user_id?: number | null,
86
+ assigned_to_user_id?: number | null,
87
+ assigned_at?: Date | null,
88
+ workflow_execution_id?: string | null,
89
+ position_to_be_filled?: string,
90
+ grade?: string,
91
+ role_title?: string,
92
+ education_requirement?: string,
93
+ required_skills?: string,
94
+ years_of_experience?: string,
95
+ location?: string | null,
96
+ job_description?: string
97
+ ) {
98
+ super();
99
+ this.user_id = user_id;
100
+ this.status = status;
101
+ this.service_id = service_id || null;
102
+ this.sub_service_id = sub_service_id || null;
103
+ this.req_user_department_id = req_user_department_id || null;
104
+ this.req_user_section_id = req_user_section_id || null;
105
+ this.req_user_position_id = req_user_position_id || null;
106
+ this.description = description || null;
107
+ this.reviewer_user_id = reviewer_user_id || null;
108
+ this.assigned_to_user_id = assigned_to_user_id || null;
109
+ this.assigned_at = assigned_at || null;
110
+ this.workflow_execution_id = workflow_execution_id || null;
111
+ this.position_to_be_filled = position_to_be_filled || "";
112
+ this.grade = grade || "";
113
+ this.role_title = role_title || "";
114
+ this.education_requirement = education_requirement || "";
115
+ this.required_skills = required_skills || "";
116
+ this.years_of_experience = years_of_experience || "";
117
+ this.location = location || null;
118
+ this.job_description = job_description || "";
119
+ }
120
+ }