@platform-modules/civil-aviation-authority 2.1.40 → 2.2.20
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.d.ts +4 -0
- package/dist/data-source.js +106 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +60 -0
- package/dist/models/BaseModel.d.ts +14 -0
- package/dist/models/BaseModel.js +66 -0
- package/dist/models/CAAServices.d.ts +8 -0
- package/dist/models/CAAServices.js +44 -0
- package/dist/models/CAASubServices.d.ts +11 -0
- package/dist/models/CAASubServices.js +55 -0
- package/dist/models/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DirectorateModel.d.ts +7 -0
- package/dist/models/DirectorateModel.js +39 -0
- package/dist/models/ITHelpDeskModel.d.ts +33 -0
- package/dist/models/ITHelpDeskModel.js +136 -0
- package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
- package/dist/models/ITRequestAttachmentModel.js +81 -0
- package/dist/models/ITRequestChatModel.d.ts +12 -0
- package/dist/models/ITRequestChatModel.js +56 -0
- package/dist/models/ItApprovalsModel.d.ts +21 -0
- package/dist/models/ItApprovalsModel.js +90 -0
- package/dist/models/ItWorkflowModel.d.ts +15 -0
- package/dist/models/ItWorkflowModel.js +61 -0
- package/dist/models/LogisticsApprovalModel.d.ts +22 -0
- package/dist/models/LogisticsApprovalModel.js +91 -0
- package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsAttachmentModel.js +64 -0
- package/dist/models/LogisticsChatModel.d.ts +17 -0
- package/dist/models/LogisticsChatModel.js +67 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +42 -0
- package/dist/models/LogisticsForeignVehicleModel.js +153 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
- package/dist/models/LogisticsModel.d.ts +57 -0
- package/dist/models/LogisticsModel.js +195 -0
- package/dist/models/LogisticsWorkflowModel.d.ts +14 -0
- package/dist/models/LogisticsWorkflowModel.js +56 -0
- package/dist/models/NotificationModel.d.ts +23 -0
- package/dist/models/NotificationModel.js +92 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/PositionModel.d.ts +6 -0
- package/dist/models/PositionModel.js +34 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/ServiceTypeModel.d.ts +20 -0
- package/dist/models/ServiceTypeModel.js +88 -0
- package/dist/models/VpnApprovalModel.d.ts +21 -0
- package/dist/models/VpnApprovalModel.js +87 -0
- package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
- package/dist/models/VpnRequestAttachmentModel.js +59 -0
- package/dist/models/VpnRequestChatModel.d.ts +16 -0
- package/dist/models/VpnRequestChatModel.js +62 -0
- package/dist/models/VpnRequestModel.d.ts +70 -0
- package/dist/models/VpnRequestModel.js +175 -0
- package/dist/models/VpnWorkflowModel.d.ts +13 -0
- package/dist/models/VpnWorkflowModel.js +55 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +17 -0
- package/dist/models/WorkflowHierarchy.js +86 -0
- package/dist/models/WorkflowTask.d.ts +13 -0
- package/dist/models/WorkflowTask.js +78 -0
- package/dist/models/WorkflowTaskNames.d.ts +17 -0
- package/dist/models/WorkflowTaskNames.js +63 -0
- package/dist/models/contactInfoModel.d.ts +18 -0
- package/dist/models/contactInfoModel.js +80 -0
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/role.d.ts +16 -0
- package/dist/models/role.js +44 -0
- package/dist/models/roleRightsModel.d.ts +16 -0
- package/dist/models/roleRightsModel.js +44 -0
- package/dist/models/serviceBookmarksModel.d.ts +6 -0
- package/dist/models/serviceBookmarksModel.js +34 -0
- package/dist/models/user-sessions.d.ts +18 -0
- package/dist/models/user-sessions.js +54 -0
- package/dist/models/user.d.ts +47 -0
- package/dist/models/user.js +238 -0
- package/dist/models/userRolesModel.d.ts +19 -0
- package/dist/models/userRolesModel.js +59 -0
- package/dist/scripts.d.ts +1 -0
- package/dist/scripts.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** *
|
|
3
|
+
@author
|
|
4
|
+
Amnet Digital
|
|
5
|
+
@date
|
|
6
|
+
2024-05-20
|
|
7
|
+
@Model
|
|
8
|
+
Role
|
|
9
|
+
@usage
|
|
10
|
+
Userrole Information will store
|
|
11
|
+
*/
|
|
12
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
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;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.RoleRights = void 0;
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const BaseModel_1 = require("./BaseModel");
|
|
25
|
+
let RoleRights = class RoleRights extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(user_role_id, service_id) {
|
|
27
|
+
super();
|
|
28
|
+
this.user_role_id = user_role_id;
|
|
29
|
+
this.service_id = service_id;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.RoleRights = RoleRights;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], RoleRights.prototype, "user_role_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RoleRights.prototype, "service_id", void 0);
|
|
41
|
+
exports.RoleRights = RoleRights = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'role_rights' }),
|
|
43
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
44
|
+
], RoleRights);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ServiceBookmarks = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ServiceBookmarks = class ServiceBookmarks extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, service_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.user_id = user_id;
|
|
19
|
+
this.service_id = service_id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ServiceBookmarks = ServiceBookmarks;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], ServiceBookmarks.prototype, "user_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ServiceBookmarks.prototype, "service_id", void 0);
|
|
31
|
+
exports.ServiceBookmarks = ServiceBookmarks = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'service_bookmarks' }),
|
|
33
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
+
], ServiceBookmarks);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** *
|
|
2
|
+
@author
|
|
3
|
+
Amnet Digital
|
|
4
|
+
@date
|
|
5
|
+
2024-05-20
|
|
6
|
+
@Model
|
|
7
|
+
Role
|
|
8
|
+
@usage
|
|
9
|
+
Roles Information will store
|
|
10
|
+
*/
|
|
11
|
+
import { BaseModel } from './BaseModel';
|
|
12
|
+
export declare class userSessions extends BaseModel {
|
|
13
|
+
last_active_at: Date;
|
|
14
|
+
is_active: boolean;
|
|
15
|
+
expires_at: Date;
|
|
16
|
+
user_id: number;
|
|
17
|
+
constructor(last_active_at: Date, expires_at: Date, user_id: number, is_active: boolean);
|
|
18
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** *
|
|
3
|
+
@author
|
|
4
|
+
Amnet Digital
|
|
5
|
+
@date
|
|
6
|
+
2024-05-20
|
|
7
|
+
@Model
|
|
8
|
+
Role
|
|
9
|
+
@usage
|
|
10
|
+
Roles Information will store
|
|
11
|
+
*/
|
|
12
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
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;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.userSessions = void 0;
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const BaseModel_1 = require("./BaseModel");
|
|
25
|
+
let userSessions = class userSessions extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(last_active_at, expires_at, user_id, is_active) {
|
|
27
|
+
super();
|
|
28
|
+
this.last_active_at = last_active_at,
|
|
29
|
+
this.expires_at = expires_at,
|
|
30
|
+
this.user_id = user_id,
|
|
31
|
+
this.is_active = is_active;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.userSessions = userSessions;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], userSessions.prototype, "last_active_at", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: true, default: true }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], userSessions.prototype, "is_active", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", Date)
|
|
46
|
+
], userSessions.prototype, "expires_at", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], userSessions.prototype, "user_id", void 0);
|
|
51
|
+
exports.userSessions = userSessions = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'user_sessions' }),
|
|
53
|
+
__metadata("design:paramtypes", [Date, Date, Number, Boolean])
|
|
54
|
+
], userSessions);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class User extends BaseModel {
|
|
3
|
+
employee_id?: number;
|
|
4
|
+
civil_employee_id?: number;
|
|
5
|
+
employee_name?: string;
|
|
6
|
+
employee_arabic_name?: string;
|
|
7
|
+
person_type?: string;
|
|
8
|
+
date_of_birth?: string;
|
|
9
|
+
region_of_birth?: string;
|
|
10
|
+
country_of_birth?: string;
|
|
11
|
+
date_of_joining?: string;
|
|
12
|
+
last_promotion_date?: string;
|
|
13
|
+
gender?: string;
|
|
14
|
+
qualification?: string;
|
|
15
|
+
marital_status?: string;
|
|
16
|
+
nationality?: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
blood_type?: string;
|
|
19
|
+
national_id?: number;
|
|
20
|
+
manpower_id?: number;
|
|
21
|
+
mobile?: string;
|
|
22
|
+
office_number?: string;
|
|
23
|
+
department?: number;
|
|
24
|
+
category: "CAA" | "Embassy";
|
|
25
|
+
directorate?: string;
|
|
26
|
+
section?: number;
|
|
27
|
+
position?: number;
|
|
28
|
+
arabic_position?: string;
|
|
29
|
+
grade?: number;
|
|
30
|
+
location?: string;
|
|
31
|
+
supervisor_emp_id?: number;
|
|
32
|
+
supervisor_emp_name?: string;
|
|
33
|
+
is_admin?: boolean;
|
|
34
|
+
passport_number?: string;
|
|
35
|
+
personal_email?: string;
|
|
36
|
+
extension_number?: number;
|
|
37
|
+
fax_number?: string;
|
|
38
|
+
diplomatic_name?: string;
|
|
39
|
+
avatar?: string;
|
|
40
|
+
father_name?: string;
|
|
41
|
+
spouse_name?: string;
|
|
42
|
+
children1_name?: string;
|
|
43
|
+
children2_name?: string;
|
|
44
|
+
address?: string;
|
|
45
|
+
religion?: string;
|
|
46
|
+
constructor(employee_id?: number, civil_employee_id?: number, employee_name?: string, employee_arabic_name?: string, person_type?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, qualification?: string, marital_status?: string, nationality?: string, email?: string, blood_type?: string, national_id?: number, manpower_id?: number, mobile?: string, office_number?: string, department?: number, category?: "CAA" | "Embassy", directorate?: string, section?: number, position?: number, arabic_position?: string, grade?: number, location?: string, supervisor_emp_id?: number, supervisor_emp_name?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, avatar?: string, father_name?: string, spouse_name?: string, children1_name?: string, children2_name?: string, address?: string, religion?: string);
|
|
47
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
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.User = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let User = class User extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(employee_id, civil_employee_id, employee_name, employee_arabic_name, person_type, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, qualification, marital_status, nationality, email, blood_type, national_id, manpower_id, mobile, office_number, department, category, directorate, section, position, arabic_position, grade, location, supervisor_emp_id, supervisor_emp_name, passport_number, personal_email, extension_number, fax_number, diplomatic_name, avatar, father_name, spouse_name, children1_name, children2_name, address, religion) {
|
|
17
|
+
super();
|
|
18
|
+
this.employee_id = employee_id;
|
|
19
|
+
this.civil_employee_id = civil_employee_id;
|
|
20
|
+
this.employee_name = employee_name;
|
|
21
|
+
this.employee_arabic_name = employee_arabic_name;
|
|
22
|
+
this.person_type = person_type;
|
|
23
|
+
this.date_of_birth = date_of_birth;
|
|
24
|
+
this.region_of_birth = region_of_birth;
|
|
25
|
+
this.country_of_birth = country_of_birth;
|
|
26
|
+
this.date_of_joining = date_of_joining;
|
|
27
|
+
this.last_promotion_date = last_promotion_date;
|
|
28
|
+
this.gender = gender;
|
|
29
|
+
this.qualification = qualification;
|
|
30
|
+
this.marital_status = marital_status;
|
|
31
|
+
this.nationality = nationality;
|
|
32
|
+
this.email = email;
|
|
33
|
+
this.blood_type = blood_type;
|
|
34
|
+
this.national_id = national_id;
|
|
35
|
+
this.manpower_id = manpower_id;
|
|
36
|
+
this.mobile = mobile;
|
|
37
|
+
this.office_number = office_number;
|
|
38
|
+
this.department = department;
|
|
39
|
+
this.category = category || "CAA";
|
|
40
|
+
this.directorate = directorate;
|
|
41
|
+
this.section = section;
|
|
42
|
+
this.position = position;
|
|
43
|
+
this.arabic_position = arabic_position;
|
|
44
|
+
this.grade = grade;
|
|
45
|
+
this.location = location;
|
|
46
|
+
this.supervisor_emp_id = supervisor_emp_id;
|
|
47
|
+
this.supervisor_emp_name = supervisor_emp_name;
|
|
48
|
+
this.passport_number = passport_number;
|
|
49
|
+
this.personal_email = personal_email;
|
|
50
|
+
this.extension_number = extension_number;
|
|
51
|
+
this.fax_number = fax_number;
|
|
52
|
+
this.diplomatic_name = diplomatic_name;
|
|
53
|
+
this.avatar = avatar;
|
|
54
|
+
this.father_name = father_name;
|
|
55
|
+
this.spouse_name = spouse_name;
|
|
56
|
+
this.children1_name = children1_name;
|
|
57
|
+
this.children2_name = children2_name;
|
|
58
|
+
this.address = address;
|
|
59
|
+
this.religion = religion;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
exports.User = User;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], User.prototype, "employee_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], User.prototype, "civil_employee_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], User.prototype, "employee_name", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], User.prototype, "employee_arabic_name", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], User.prototype, "person_type", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], User.prototype, "date_of_birth", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], User.prototype, "region_of_birth", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], User.prototype, "country_of_birth", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], User.prototype, "date_of_joining", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], User.prototype, "last_promotion_date", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], User.prototype, "gender", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], User.prototype, "qualification", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], User.prototype, "marital_status", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], User.prototype, "nationality", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], User.prototype, "email", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], User.prototype, "blood_type", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], User.prototype, "national_id", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
133
|
+
__metadata("design:type", Number)
|
|
134
|
+
], User.prototype, "manpower_id", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], User.prototype, "mobile", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], User.prototype, "office_number", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
145
|
+
__metadata("design:type", Number)
|
|
146
|
+
], User.prototype, "department", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["CAA", "Embassy"], nullable: false, default: "CAA" }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], User.prototype, "category", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
153
|
+
__metadata("design:type", String)
|
|
154
|
+
], User.prototype, "directorate", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
157
|
+
__metadata("design:type", Number)
|
|
158
|
+
], User.prototype, "section", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
161
|
+
__metadata("design:type", Number)
|
|
162
|
+
], User.prototype, "position", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], User.prototype, "arabic_position", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
169
|
+
__metadata("design:type", Number)
|
|
170
|
+
], User.prototype, "grade", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], User.prototype, "location", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
177
|
+
__metadata("design:type", Number)
|
|
178
|
+
], User.prototype, "supervisor_emp_id", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], User.prototype, "supervisor_emp_name", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
185
|
+
__metadata("design:type", Boolean)
|
|
186
|
+
], User.prototype, "is_admin", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], User.prototype, "passport_number", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], User.prototype, "personal_email", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
197
|
+
__metadata("design:type", Number)
|
|
198
|
+
], User.prototype, "extension_number", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], User.prototype, "fax_number", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
205
|
+
__metadata("design:type", String)
|
|
206
|
+
], User.prototype, "diplomatic_name", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
209
|
+
__metadata("design:type", String)
|
|
210
|
+
], User.prototype, "avatar", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
213
|
+
__metadata("design:type", String)
|
|
214
|
+
], User.prototype, "father_name", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
217
|
+
__metadata("design:type", String)
|
|
218
|
+
], User.prototype, "spouse_name", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], User.prototype, "children1_name", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], User.prototype, "children2_name", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
229
|
+
__metadata("design:type", String)
|
|
230
|
+
], User.prototype, "address", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], User.prototype, "religion", void 0);
|
|
235
|
+
exports.User = User = __decorate([
|
|
236
|
+
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
237
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, String, String, String, String, String, String, String, String, String, Number, Number, String, String, Number, String, String, Number, Number, String, Number, String, Number, String, String, String, Number, String, String, String, String, String, String, String, String, String])
|
|
238
|
+
], User);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** *
|
|
2
|
+
@author
|
|
3
|
+
Amnet Digital
|
|
4
|
+
@date
|
|
5
|
+
2024-05-20
|
|
6
|
+
@Model
|
|
7
|
+
Role
|
|
8
|
+
@usage
|
|
9
|
+
Userrole Information will store
|
|
10
|
+
*/
|
|
11
|
+
import { BaseModel } from './BaseModel';
|
|
12
|
+
export declare class UserRole extends BaseModel {
|
|
13
|
+
role_id: number;
|
|
14
|
+
user_id: number;
|
|
15
|
+
department_id: number;
|
|
16
|
+
section_id: number;
|
|
17
|
+
is_active: boolean;
|
|
18
|
+
constructor(role_id: number, user_id: number, department_id: number, section_id: number, is_active?: boolean);
|
|
19
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** *
|
|
3
|
+
@author
|
|
4
|
+
Amnet Digital
|
|
5
|
+
@date
|
|
6
|
+
2024-05-20
|
|
7
|
+
@Model
|
|
8
|
+
Role
|
|
9
|
+
@usage
|
|
10
|
+
Userrole Information will store
|
|
11
|
+
*/
|
|
12
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
+
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;
|
|
16
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
+
};
|
|
18
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.UserRole = void 0;
|
|
23
|
+
const typeorm_1 = require("typeorm");
|
|
24
|
+
const BaseModel_1 = require("./BaseModel");
|
|
25
|
+
let UserRole = class UserRole extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(role_id, user_id, department_id, section_id, is_active = false) {
|
|
27
|
+
super();
|
|
28
|
+
this.role_id = role_id;
|
|
29
|
+
this.user_id = user_id;
|
|
30
|
+
this.department_id = department_id;
|
|
31
|
+
this.section_id = section_id;
|
|
32
|
+
this.is_active = is_active;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.UserRole = UserRole;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], UserRole.prototype, "role_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], UserRole.prototype, "user_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], UserRole.prototype, "department_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], UserRole.prototype, "section_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UserRole.prototype, "is_active", void 0);
|
|
56
|
+
exports.UserRole = UserRole = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'user_role' }),
|
|
58
|
+
__metadata("design:paramtypes", [Number, Number, Number, Number, Boolean])
|
|
59
|
+
], UserRole);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/scripts.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const data_source_1 = require("./data-source");
|
|
4
|
+
data_source_1.AppDataSource.initialize()
|
|
5
|
+
.then(() => {
|
|
6
|
+
console.log('✅ Database schema synchronized successfully.');
|
|
7
|
+
})
|
|
8
|
+
.catch((error) => {
|
|
9
|
+
console.error('❌ Error during schema synchronization:', error);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
});
|