@platform-modules/foreign-ministry 1.1.104 → 1.1.106
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 +11 -3
- package/dist/data-source.js +58 -14
- package/dist/index.d.ts +38 -7
- package/dist/index.js +53 -7
- package/dist/models/CountryMasterModel.d.ts +11 -0
- package/dist/models/CountryMasterModel.js +55 -0
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +3 -7
- package/dist/models/DiplomaticTitlesMasterModel.js +9 -16
- package/dist/models/EarlyCheckoutBalanceModel.d.ts +7 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → EarlyCheckoutBalanceModel.js} +21 -18
- package/dist/models/EarlyCheckoutConfigModel.d.ts +18 -0
- package/dist/models/EarlyCheckoutConfigModel.js +80 -0
- package/dist/models/EarlyCheckoutTransactionModel.d.ts +19 -0
- package/dist/models/EarlyCheckoutTransactionModel.js +66 -0
- package/dist/models/FinancialApprovalsModel.d.ts +1 -0
- package/dist/models/FinancialApprovalsModel.js +4 -0
- package/dist/models/FinancialGradeModel.d.ts +4 -3
- package/dist/models/FinancialGradeModel.js +12 -7
- package/dist/models/GeneralServiceApprovalsModel.d.ts +4 -1
- package/dist/models/GeneralServiceApprovalsModel.js +9 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/LeaveApprovalsModel.d.ts +4 -2
- package/dist/models/LeaveApprovalsModel.js +8 -2
- package/dist/models/LeaveBalanceModel.d.ts +8 -0
- package/dist/models/{PassportRequestChatModel.js → LeaveBalanceModel.js} +23 -23
- package/dist/models/LeaveConfigGradesModel.d.ts +19 -0
- package/dist/models/LeaveConfigGradesModel.js +100 -0
- package/dist/models/LeaveConfigModel.d.ts +20 -0
- package/dist/models/LeaveConfigModel.js +90 -0
- package/dist/models/LeaveTransactionModel.d.ts +20 -0
- package/dist/models/LeaveTransactionModel.js +71 -0
- package/dist/models/LeaveTypesModel.d.ts +7 -1
- package/dist/models/LeaveTypesModel.js +20 -5
- package/dist/models/M&CMasterModel.d.ts +9 -0
- package/dist/models/M&CMasterModel.js +49 -0
- package/dist/models/NationalityMasterModel.d.ts +10 -0
- package/dist/models/{DiplomaticClubCardAttachmentModel.js → NationalityMasterModel.js} +29 -22
- package/dist/models/OfficeMasterModel.d.ts +12 -0
- package/dist/models/OfficeMasterModel.js +59 -0
- package/dist/models/ProfileUpdateRequestsModel.d.ts +106 -0
- package/dist/models/ProfileUpdateRequestsModel.js +409 -0
- package/dist/models/RegisterCandidateApprovalModel.d.ts +22 -0
- package/dist/models/RegisterCandidateApprovalModel.js +79 -0
- package/dist/models/RegisterCandidateAttachmentModel.d.ts +11 -0
- package/dist/models/RegisterCandidateAttachmentModel.js +52 -0
- package/dist/models/RegisterCandidateChatModel.d.ts +19 -0
- package/dist/models/RegisterCandidateChatModel.js +78 -0
- package/dist/models/RegisterCandidateRequestModel.d.ts +69 -0
- package/dist/models/RegisterCandidateRequestModel.js +247 -0
- package/dist/models/RegisterCandidateWorkflowModel.d.ts +17 -0
- package/dist/models/RegisterCandidateWorkflowModel.js +62 -0
- package/dist/models/RegisterVacancyApprovalModel.d.ts +22 -0
- package/dist/models/RegisterVacancyApprovalModel.js +79 -0
- package/dist/models/RegisterVacancyAttachmentModel.d.ts +11 -0
- package/dist/models/RegisterVacancyAttachmentModel.js +52 -0
- package/dist/models/RegisterVacancyChatModel.d.ts +19 -0
- package/dist/models/RegisterVacancyChatModel.js +78 -0
- package/dist/models/RegisterVacancyRequestModel.d.ts +22 -0
- package/dist/models/RegisterVacancyRequestModel.js +76 -0
- package/dist/models/RegisterVacancyWorkflowModel.d.ts +17 -0
- package/dist/models/RegisterVacancyWorkflowModel.js +62 -0
- package/dist/models/StationeryMaterialMasterModel.d.ts +11 -0
- package/dist/models/StationeryMaterialMasterModel.js +56 -0
- package/dist/models/StationeryRequestsModel.d.ts +26 -0
- package/dist/models/StationeryRequestsModel.js +89 -0
- package/dist/models/StayAfterHoursBalanceModel.d.ts +7 -0
- package/dist/models/StayAfterHoursBalanceModel.js +39 -0
- package/dist/models/StayAfterHoursTransactionModel.d.ts +19 -0
- package/dist/models/StayAfterHoursTransactionModel.js +66 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +3 -2
- package/dist/models/TelephoneDirectoryModel.js +11 -6
- package/dist/models/TransferMissionApprovalModel.d.ts +2 -0
- package/dist/models/TransferMissionApprovalModel.js +8 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +1 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +4 -0
- package/dist/models/UserEducationDetailsModel.d.ts +12 -0
- package/dist/models/UserEducationDetailsModel.js +44 -0
- package/dist/models/UserEmploymentDetailsModel.d.ts +50 -0
- package/dist/models/UserEmploymentDetailsModel.js +193 -0
- package/dist/models/UserPersonalDetailsModel.d.ts +48 -0
- package/dist/models/UserPersonalDetailsModel.js +185 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/dist/models/user.d.ts +2 -1
- package/dist/models/user.js +7 -2
- package/package.json +1 -1
- package/src/data-source.ts +62 -16
- package/src/index.ts +38 -7
- package/src/models/CountryMasterModel.ts +34 -0
- package/src/models/DiplomaticTitlesMasterModel.ts +9 -20
- package/src/models/EarlyCheckoutBalanceModel.ts +22 -0
- package/src/models/EarlyCheckoutConfigModel.ts +57 -0
- package/src/models/EarlyCheckoutTransactionModel.ts +53 -0
- package/src/models/FinancialApprovalsModel.ts +4 -0
- package/src/models/FinancialGradeModel.ts +13 -8
- package/src/models/GeneralServiceApprovalsModel.ts +10 -1
- package/src/models/LeaveApprovalsModel.ts +7 -2
- package/src/models/LeaveBalanceModel.ts +26 -0
- package/src/models/LeaveConfigGradesModel.ts +72 -0
- package/src/models/LeaveConfigModel.ts +64 -0
- package/src/models/LeaveTransactionModel.ts +58 -0
- package/src/models/LeaveTypesModel.ts +27 -11
- package/src/models/M&CMasterModel.ts +37 -0
- package/src/models/NationalityMasterModel.ts +31 -0
- package/src/models/OfficeMasterModel.ts +37 -0
- package/src/models/ProfileUpdateRequestsModel.ts +317 -0
- package/src/models/RegisterCandidateApprovalModel.ts +51 -0
- package/src/models/RegisterCandidateAttachmentModel.ts +30 -0
- package/src/models/RegisterCandidateChatModel.ts +65 -0
- package/src/models/RegisterCandidateRequestModel.ts +193 -0
- package/src/models/RegisterCandidateWorkflowModel.ts +38 -0
- package/src/models/RegisterVacancyApprovalModel.ts +52 -0
- package/src/models/RegisterVacancyAttachmentModel.ts +31 -0
- package/src/models/RegisterVacancyChatModel.ts +66 -0
- package/src/models/RegisterVacancyRequestModel.ts +53 -0
- package/src/models/RegisterVacancyWorkflowModel.ts +39 -0
- package/src/models/StationeryMaterialMasterModel.ts +35 -0
- package/src/models/StationeryRequestsModel.ts +62 -0
- package/src/models/StayAfterHoursBalanceModel.ts +22 -0
- package/src/models/StayAfterHoursTransactionModel.ts +53 -0
- package/src/models/TelephoneDirectoryModel.ts +8 -4
- package/src/models/TransferMissionApprovalModel.ts +6 -0
- package/src/models/TransferMissionRequestModel.ts +1 -0
- package/src/models/UpdateAttendanceApprovalModel.ts +3 -0
- package/src/models/UserEducationDetailsModel.ts +26 -0
- package/src/models/UserEmploymentDetailsModel.ts +141 -0
- package/src/models/UserPersonalDetailsModel.ts +137 -0
- package/src/models/user.ts +5 -0
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -24
- package/dist/models/DiplomaticApprovalsModel.js +0 -94
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -11
- package/dist/models/DiplomaticAttachmentsModel.js +0 -53
- package/dist/models/DiplomaticChatsModel.d.ts +0 -20
- package/dist/models/DiplomaticChatsModel.js +0 -70
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +0 -26
- package/dist/models/DiplomaticClubCardMembersModel.js +0 -85
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +0 -12
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +0 -64
- package/dist/models/DiplomaticRequestsModel.d.ts +0 -54
- package/dist/models/DiplomaticRequestsModel.js +0 -186
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -20
- package/dist/models/DiplomaticWorkFlowModel.js +0 -77
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/DiplomaticApprovalsModel.ts +0 -77
- package/src/models/DiplomaticAttachmentsModel.ts +0 -37
- package/src/models/DiplomaticChatsModel.ts +0 -53
- package/src/models/DiplomaticClubCardMembersModel.ts +0 -71
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -50
- package/src/models/DiplomaticRequestsModel.ts +0 -154
- package/src/models/DiplomaticWorkFlowModel.ts +0 -59
|
@@ -58,6 +58,10 @@ __decorate([
|
|
|
58
58
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
59
|
__metadata("design:type", Object)
|
|
60
60
|
], TransferMissionApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TransferMissionApprovalDetails.prototype, "group_id", void 0);
|
|
61
65
|
__decorate([
|
|
62
66
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
67
|
__metadata("design:type", Object)
|
|
@@ -70,6 +74,10 @@ __decorate([
|
|
|
70
74
|
(0, typeorm_1.Column)({ type: 'enum', enum: TransferMissionApprovalStatus, default: TransferMissionApprovalStatus.PENDING, nullable: false }),
|
|
71
75
|
__metadata("design:type", String)
|
|
72
76
|
], TransferMissionApprovalDetails.prototype, "approval_status", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], TransferMissionApprovalDetails.prototype, "is_allowed", void 0);
|
|
73
81
|
exports.TransferMissionApprovalDetails = TransferMissionApprovalDetails = __decorate([
|
|
74
82
|
(0, typeorm_1.Entity)({ name: 'transfer_mission_approvals' })
|
|
75
83
|
], TransferMissionApprovalDetails);
|
|
@@ -70,6 +70,10 @@ __decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendanceApprovalStatus, default: UpdateAttendanceApprovalStatus.PENDING, nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], UpdateAttendanceApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], UpdateAttendanceApprovalDetails.prototype, "is_allowed", void 0);
|
|
73
77
|
exports.UpdateAttendanceApprovalDetails = UpdateAttendanceApprovalDetails = __decorate([
|
|
74
78
|
(0, typeorm_1.Entity)({ name: 'update_attendance_approvals' })
|
|
75
79
|
], UpdateAttendanceApprovalDetails);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
/**
|
|
3
|
+
* User Education Details - only fields from business requirements
|
|
4
|
+
* Linked by user_id (not request_id)
|
|
5
|
+
*/
|
|
6
|
+
export declare class UserEducationDetails extends BaseModel {
|
|
7
|
+
user_id: number;
|
|
8
|
+
study_start_date: Date | null;
|
|
9
|
+
study_end_date: Date | null;
|
|
10
|
+
training_course_start_date: Date | null;
|
|
11
|
+
training_course_end_date: Date | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.UserEducationDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
/**
|
|
16
|
+
* User Education Details - only fields from business requirements
|
|
17
|
+
* Linked by user_id (not request_id)
|
|
18
|
+
*/
|
|
19
|
+
let UserEducationDetails = class UserEducationDetails extends BaseModel_1.BaseModel {
|
|
20
|
+
};
|
|
21
|
+
exports.UserEducationDetails = UserEducationDetails;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], UserEducationDetails.prototype, "user_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], UserEducationDetails.prototype, "study_start_date", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], UserEducationDetails.prototype, "study_end_date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], UserEducationDetails.prototype, "training_course_start_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], UserEducationDetails.prototype, "training_course_end_date", void 0);
|
|
42
|
+
exports.UserEducationDetails = UserEducationDetails = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: 'user_education_details' })
|
|
44
|
+
], UserEducationDetails);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
/**
|
|
3
|
+
* User Employment Details - only fields from business requirements
|
|
4
|
+
* Linked by user_id (not request_id)
|
|
5
|
+
* When profile update is approved, data from this table updates users table
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserEmploymentDetails extends BaseModel {
|
|
8
|
+
user_id: number;
|
|
9
|
+
job_title: string | null;
|
|
10
|
+
date_of_decree_issuance: Date | null;
|
|
11
|
+
civil_service_number: string | null;
|
|
12
|
+
information_number: string | null;
|
|
13
|
+
manpower_number: string | null;
|
|
14
|
+
computer_number: string | null;
|
|
15
|
+
contract_employee: boolean | null;
|
|
16
|
+
nature_of_work: string | null;
|
|
17
|
+
retirement_date: Date | null;
|
|
18
|
+
proposed_position: string | null;
|
|
19
|
+
proposed_financial_grade: string | null;
|
|
20
|
+
secondment_start_date: Date | null;
|
|
21
|
+
secondment_end_date: Date | null;
|
|
22
|
+
disability_type: string | null;
|
|
23
|
+
retirement_start_date: Date | null;
|
|
24
|
+
contract_end_date: Date | null;
|
|
25
|
+
job_type_group: string | null;
|
|
26
|
+
entity_transferred_from: string | null;
|
|
27
|
+
date_of_transfer: Date | null;
|
|
28
|
+
entity_transferred_to: string | null;
|
|
29
|
+
date_of_transfer_to: Date | null;
|
|
30
|
+
job_description: string | null;
|
|
31
|
+
country_appointment: string | null;
|
|
32
|
+
date_of_appointment: Date | null;
|
|
33
|
+
appointment_grade: string | null;
|
|
34
|
+
type_of_appointment: string | null;
|
|
35
|
+
unit_code: string | null;
|
|
36
|
+
mc_work: boolean | null;
|
|
37
|
+
office: string | null;
|
|
38
|
+
governorate_name: string | null;
|
|
39
|
+
department: string | null;
|
|
40
|
+
works_in_department: string | null;
|
|
41
|
+
full_name_of_mission: string | null;
|
|
42
|
+
mission: string | null;
|
|
43
|
+
description_of_mission: string | null;
|
|
44
|
+
date_of_last_transfer_to_mission: Date | null;
|
|
45
|
+
date_of_last_transfer_from_mission: Date | null;
|
|
46
|
+
diplomat: boolean | null;
|
|
47
|
+
efficiency_rating_for_the_year_month: string | null;
|
|
48
|
+
retirement_termination_of_service_date: Date | null;
|
|
49
|
+
reason_for_leaving_service: string | null;
|
|
50
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
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.UserEmploymentDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
/**
|
|
16
|
+
* User Employment Details - only fields from business requirements
|
|
17
|
+
* Linked by user_id (not request_id)
|
|
18
|
+
* When profile update is approved, data from this table updates users table
|
|
19
|
+
*/
|
|
20
|
+
let UserEmploymentDetails = class UserEmploymentDetails extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.UserEmploymentDetails = UserEmploymentDetails;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UserEmploymentDetails.prototype, "user_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], UserEmploymentDetails.prototype, "job_title", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], UserEmploymentDetails.prototype, "date_of_decree_issuance", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], UserEmploymentDetails.prototype, "civil_service_number", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], UserEmploymentDetails.prototype, "information_number", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], UserEmploymentDetails.prototype, "manpower_number", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], UserEmploymentDetails.prototype, "computer_number", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], UserEmploymentDetails.prototype, "contract_employee", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], UserEmploymentDetails.prototype, "nature_of_work", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], UserEmploymentDetails.prototype, "retirement_date", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], UserEmploymentDetails.prototype, "proposed_position", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], UserEmploymentDetails.prototype, "proposed_financial_grade", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], UserEmploymentDetails.prototype, "secondment_start_date", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], UserEmploymentDetails.prototype, "secondment_end_date", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], UserEmploymentDetails.prototype, "disability_type", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], UserEmploymentDetails.prototype, "retirement_start_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], UserEmploymentDetails.prototype, "contract_end_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], UserEmploymentDetails.prototype, "job_type_group", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], UserEmploymentDetails.prototype, "entity_transferred_from", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], UserEmploymentDetails.prototype, "date_of_transfer", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], UserEmploymentDetails.prototype, "entity_transferred_to", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], UserEmploymentDetails.prototype, "date_of_transfer_to", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], UserEmploymentDetails.prototype, "job_description", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], UserEmploymentDetails.prototype, "country_appointment", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], UserEmploymentDetails.prototype, "date_of_appointment", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], UserEmploymentDetails.prototype, "appointment_grade", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], UserEmploymentDetails.prototype, "type_of_appointment", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], UserEmploymentDetails.prototype, "unit_code", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], UserEmploymentDetails.prototype, "mc_work", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], UserEmploymentDetails.prototype, "office", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], UserEmploymentDetails.prototype, "governorate_name", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], UserEmploymentDetails.prototype, "department", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
153
|
+
__metadata("design:type", Object)
|
|
154
|
+
], UserEmploymentDetails.prototype, "works_in_department", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
157
|
+
__metadata("design:type", Object)
|
|
158
|
+
], UserEmploymentDetails.prototype, "full_name_of_mission", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
161
|
+
__metadata("design:type", Object)
|
|
162
|
+
], UserEmploymentDetails.prototype, "mission", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
165
|
+
__metadata("design:type", Object)
|
|
166
|
+
], UserEmploymentDetails.prototype, "description_of_mission", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
169
|
+
__metadata("design:type", Object)
|
|
170
|
+
], UserEmploymentDetails.prototype, "date_of_last_transfer_to_mission", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
173
|
+
__metadata("design:type", Object)
|
|
174
|
+
], UserEmploymentDetails.prototype, "date_of_last_transfer_from_mission", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
177
|
+
__metadata("design:type", Object)
|
|
178
|
+
], UserEmploymentDetails.prototype, "diplomat", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
181
|
+
__metadata("design:type", Object)
|
|
182
|
+
], UserEmploymentDetails.prototype, "efficiency_rating_for_the_year_month", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
185
|
+
__metadata("design:type", Object)
|
|
186
|
+
], UserEmploymentDetails.prototype, "retirement_termination_of_service_date", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
189
|
+
__metadata("design:type", Object)
|
|
190
|
+
], UserEmploymentDetails.prototype, "reason_for_leaving_service", void 0);
|
|
191
|
+
exports.UserEmploymentDetails = UserEmploymentDetails = __decorate([
|
|
192
|
+
(0, typeorm_1.Entity)({ name: 'user_employment_details' })
|
|
193
|
+
], UserEmploymentDetails);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
/**
|
|
3
|
+
* User Personal Details - only fields from business requirements
|
|
4
|
+
* Linked by user_id (not request_id)
|
|
5
|
+
* When profile update is approved, data from this table updates users table
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserPersonalDetails extends BaseModel {
|
|
8
|
+
user_id: number;
|
|
9
|
+
title: string | null;
|
|
10
|
+
first_name: string | null;
|
|
11
|
+
second_name: string | null;
|
|
12
|
+
third_name: string | null;
|
|
13
|
+
fourth_name: string | null;
|
|
14
|
+
family_name_tribe: string | null;
|
|
15
|
+
previous_name: string | null;
|
|
16
|
+
religion: string | null;
|
|
17
|
+
sect: string | null;
|
|
18
|
+
date_of_birth: Date | null;
|
|
19
|
+
place_of_birth: string | null;
|
|
20
|
+
nationality: string | null;
|
|
21
|
+
gender: string | null;
|
|
22
|
+
marital_status: string | null;
|
|
23
|
+
number_of_dependents: number | null;
|
|
24
|
+
passport_number: string | null;
|
|
25
|
+
passport_type: string | null;
|
|
26
|
+
issue_date: Date | null;
|
|
27
|
+
place_of_issue: string | null;
|
|
28
|
+
expiry_date: Date | null;
|
|
29
|
+
id_card_number: string | null;
|
|
30
|
+
id_card_place_of_issue: string | null;
|
|
31
|
+
id_card_expiry_date: Date | null;
|
|
32
|
+
permanent_address: string | null;
|
|
33
|
+
governorate_wilaya: string | null;
|
|
34
|
+
po_box: string | null;
|
|
35
|
+
zip_code: string | null;
|
|
36
|
+
house_number: string | null;
|
|
37
|
+
railway_number: string | null;
|
|
38
|
+
governorate: string | null;
|
|
39
|
+
wilayat: string | null;
|
|
40
|
+
locality: string | null;
|
|
41
|
+
country: string | null;
|
|
42
|
+
phone_number: string | null;
|
|
43
|
+
fax_number: string | null;
|
|
44
|
+
email: string | null;
|
|
45
|
+
email_address_personal: string | null;
|
|
46
|
+
sheikh_name: string | null;
|
|
47
|
+
photo: string | null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
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.UserPersonalDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
/**
|
|
16
|
+
* User Personal Details - only fields from business requirements
|
|
17
|
+
* Linked by user_id (not request_id)
|
|
18
|
+
* When profile update is approved, data from this table updates users table
|
|
19
|
+
*/
|
|
20
|
+
let UserPersonalDetails = class UserPersonalDetails extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.UserPersonalDetails = UserPersonalDetails;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UserPersonalDetails.prototype, "user_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], UserPersonalDetails.prototype, "title", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], UserPersonalDetails.prototype, "first_name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], UserPersonalDetails.prototype, "second_name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], UserPersonalDetails.prototype, "third_name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], UserPersonalDetails.prototype, "fourth_name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], UserPersonalDetails.prototype, "family_name_tribe", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], UserPersonalDetails.prototype, "previous_name", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], UserPersonalDetails.prototype, "religion", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], UserPersonalDetails.prototype, "sect", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], UserPersonalDetails.prototype, "date_of_birth", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], UserPersonalDetails.prototype, "place_of_birth", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], UserPersonalDetails.prototype, "nationality", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], UserPersonalDetails.prototype, "gender", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], UserPersonalDetails.prototype, "marital_status", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], UserPersonalDetails.prototype, "number_of_dependents", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], UserPersonalDetails.prototype, "passport_number", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], UserPersonalDetails.prototype, "passport_type", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], UserPersonalDetails.prototype, "issue_date", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], UserPersonalDetails.prototype, "place_of_issue", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], UserPersonalDetails.prototype, "expiry_date", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], UserPersonalDetails.prototype, "id_card_number", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], UserPersonalDetails.prototype, "id_card_place_of_issue", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], UserPersonalDetails.prototype, "id_card_expiry_date", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], UserPersonalDetails.prototype, "permanent_address", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], UserPersonalDetails.prototype, "governorate_wilaya", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], UserPersonalDetails.prototype, "po_box", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], UserPersonalDetails.prototype, "zip_code", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], UserPersonalDetails.prototype, "house_number", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], UserPersonalDetails.prototype, "railway_number", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], UserPersonalDetails.prototype, "governorate", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], UserPersonalDetails.prototype, "wilayat", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
153
|
+
__metadata("design:type", Object)
|
|
154
|
+
], UserPersonalDetails.prototype, "locality", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
157
|
+
__metadata("design:type", Object)
|
|
158
|
+
], UserPersonalDetails.prototype, "country", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
161
|
+
__metadata("design:type", Object)
|
|
162
|
+
], UserPersonalDetails.prototype, "phone_number", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
165
|
+
__metadata("design:type", Object)
|
|
166
|
+
], UserPersonalDetails.prototype, "fax_number", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
169
|
+
__metadata("design:type", Object)
|
|
170
|
+
], UserPersonalDetails.prototype, "email", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
173
|
+
__metadata("design:type", Object)
|
|
174
|
+
], UserPersonalDetails.prototype, "email_address_personal", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
177
|
+
__metadata("design:type", Object)
|
|
178
|
+
], UserPersonalDetails.prototype, "sheikh_name", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
181
|
+
__metadata("design:type", Object)
|
|
182
|
+
], UserPersonalDetails.prototype, "photo", void 0);
|
|
183
|
+
exports.UserPersonalDetails = UserPersonalDetails = __decorate([
|
|
184
|
+
(0, typeorm_1.Entity)({ name: 'user_personal_details' })
|
|
185
|
+
], UserPersonalDetails);
|
|
@@ -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.QuestionTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, question_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name,
|
|
19
|
+
this.question_Id = question_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.QuestionTags = QuestionTags;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], QuestionTags.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], QuestionTags.prototype, "question_Id", void 0);
|
|
31
|
+
exports.QuestionTags = QuestionTags = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'question_tags' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, Number])
|
|
34
|
+
], QuestionTags);
|
package/dist/models/user.d.ts
CHANGED
|
@@ -42,5 +42,6 @@ export declare class User extends BaseModel {
|
|
|
42
42
|
children2_name?: string;
|
|
43
43
|
language_preferences?: string;
|
|
44
44
|
category: "FM" | "Embassy";
|
|
45
|
-
|
|
45
|
+
mandc_number: number;
|
|
46
|
+
constructor(employee_id?: number, employee_name?: string, employee_arabic_name?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, marital_status?: string, nationality?: string, email?: string, blood_group?: string, national_id?: number, mobile?: string, office_number?: string, department?: number, section?: number, grade?: number, location?: string, country?: string, is_admin?: boolean, division?: number, reporting_to?: number, address?: string, residential_status?: string, religion?: string, designation?: number, avatar?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, civil_employee_id?: number, qualification?: string, father_name?: string, spouse_name?: string, children1_name?: string, children2_name?: string, language_preferences?: string, category?: "FM" | "Embassy", mandc_number?: number);
|
|
46
47
|
}
|