@platform-modules/civil-aviation-authority 2.3.42 → 2.3.44
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 +10 -10
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -1
- package/dist/models/CountryMasterModel.d.ts +11 -0
- package/dist/models/CountryMasterModel.js +55 -0
- package/dist/models/DepartmentsModel.js +2 -2
- package/dist/models/DirectorateModel.js +2 -2
- package/dist/models/LocationModel.d.ts +12 -0
- package/dist/models/LocationModel.js +62 -0
- package/dist/models/NationalityMasterModel.d.ts +10 -0
- package/dist/models/NationalityMasterModel.js +51 -0
- package/dist/models/NewResourceRequestModel.d.ts +32 -0
- package/dist/models/NewResourceRequestModel.js +133 -0
- package/dist/models/SectionModel.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +13 -0
- package/src/models/CountryMasterModel.ts +33 -0
- package/src/models/DepartmentsModel.ts +2 -2
- package/src/models/DirectorateModel.ts +2 -2
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LocationModel.ts +42 -0
- package/src/models/NationalityMasterModel.ts +30 -0
- package/src/models/NewResourceRequestModel.ts +120 -0
- package/src/models/RequestForCoverageRequestModel.ts +174 -174
- package/src/models/SectionModel.ts +2 -2
- 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/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
package/.env
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
DB_NAME=CAA
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
DB_HOST=localhost
|
|
9
|
-
DB_PORT=5432
|
|
10
|
-
DB_USER=postgres
|
|
11
|
-
DB_PASS=stevejobs
|
|
12
|
-
DB_NAME=CAA
|
|
8
|
+
# DB_HOST=localhost
|
|
9
|
+
# DB_PORT=5432
|
|
10
|
+
# DB_USER=postgres
|
|
11
|
+
# DB_PASS=stevejobs
|
|
12
|
+
# DB_NAME=CAA
|
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);
|
|
@@ -22,11 +22,11 @@ let Departments = class Departments extends BaseModel_1.BaseModel {
|
|
|
22
22
|
};
|
|
23
23
|
exports.Departments = Departments;
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], Departments.prototype, "department_name", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], Departments.prototype, "department_code", void 0);
|
|
32
32
|
__decorate([
|
|
@@ -22,11 +22,11 @@ let Directorate = class Directorate extends BaseModel_1.BaseModel {
|
|
|
22
22
|
};
|
|
23
23
|
exports.Directorate = Directorate;
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], Directorate.prototype, "directorate_code", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], Directorate.prototype, "directorate_name", void 0);
|
|
32
32
|
__decorate([
|
|
@@ -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);
|
|
@@ -23,11 +23,11 @@ let Sections = class Sections extends BaseModel_1.BaseModel {
|
|
|
23
23
|
};
|
|
24
24
|
exports.Sections = Sections;
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], Sections.prototype, "section_name", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], Sections.prototype, "section_code", void 0);
|
|
33
33
|
__decorate([
|
package/package.json
CHANGED
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
|
+
}
|
|
@@ -4,10 +4,10 @@ import { BaseModel } from './BaseModel';
|
|
|
4
4
|
@Entity({ name: 'departments' })
|
|
5
5
|
export class Departments extends BaseModel {
|
|
6
6
|
|
|
7
|
-
@Column({ type: 'varchar', length: 64, nullable: false
|
|
7
|
+
@Column({ type: 'varchar', length: 64, nullable: false})
|
|
8
8
|
department_name: string;
|
|
9
9
|
|
|
10
|
-
@Column({ type: 'varchar', length: 64, nullable: false
|
|
10
|
+
@Column({ type: 'varchar', length: 64, nullable: false})
|
|
11
11
|
department_code: string;
|
|
12
12
|
|
|
13
13
|
@Column({ nullable: false })
|
|
@@ -2,10 +2,10 @@ import { Column, Entity } from "typeorm";
|
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
@Entity({ name: 'directorates' })
|
|
4
4
|
export class Directorate extends BaseModel {
|
|
5
|
-
@Column({ type: 'varchar', length: 64, nullable: false
|
|
5
|
+
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
6
6
|
directorate_code: string;
|
|
7
7
|
|
|
8
|
-
@Column({ type: 'varchar', length: 64, nullable: false
|
|
8
|
+
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
9
9
|
directorate_name: string;
|
|
10
10
|
|
|
11
11
|
@Column({ type: 'varchar', length: 255, nullable: false })
|