@platform-modules/foreign-ministry 1.1.78 → 1.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +3 -23
- package/dist/data-source.js +16 -32
- package/dist/index.d.ts +8 -25
- package/dist/index.js +8 -40
- package/dist/models/DiplomaticApprovalsModel.d.ts +24 -0
- package/dist/models/DiplomaticApprovalsModel.js +94 -0
- package/dist/models/DiplomaticAttachmentsModel.d.ts +11 -0
- package/dist/models/DiplomaticAttachmentsModel.js +53 -0
- package/dist/models/DiplomaticChatsModel.d.ts +20 -0
- package/dist/models/DiplomaticChatsModel.js +70 -0
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +16 -0
- package/dist/models/DiplomaticClubCardApprovalModel.js +58 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +9 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.js +44 -0
- package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
- package/dist/models/{LeaveApprovalMatrixModel.js → DiplomaticClubCardChatModel.js} +14 -18
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +26 -0
- package/dist/models/DiplomaticClubCardMembersModel.js +85 -0
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +33 -0
- package/dist/models/DiplomaticClubCardRequestModel.js +98 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +12 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +42 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +12 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +64 -0
- package/dist/models/DiplomaticRequestsModel.d.ts +54 -0
- package/dist/models/DiplomaticRequestsModel.js +186 -0
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +20 -0
- package/dist/models/DiplomaticServiceDetailsModel.js +65 -0
- package/dist/models/DiplomaticSettingsModel.d.ts +11 -0
- package/dist/models/DiplomaticSettingsModel.js +59 -0
- package/dist/models/DiplomaticTitleModel.d.ts +12 -0
- package/dist/models/DiplomaticTitleModel.js +45 -0
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +13 -0
- package/dist/models/{StationeryMaterialMasterModel.js → DiplomaticTitlesMasterModel.js} +23 -25
- package/dist/models/DiplomaticWorkFlowModel.d.ts +18 -0
- package/dist/models/DiplomaticWorkFlowModel.js +69 -0
- package/dist/models/FinancialApprovalsModel.d.ts +0 -1
- package/dist/models/FinancialApprovalsModel.js +0 -4
- package/dist/models/FinancialGradeModel.d.ts +3 -4
- package/dist/models/FinancialGradeModel.js +7 -12
- package/dist/models/GeneralServiceApprovalsModel.d.ts +1 -4
- package/dist/models/GeneralServiceApprovalsModel.js +0 -9
- package/dist/models/LeaveApprovalsModel.d.ts +1 -2
- package/dist/models/LeaveApprovalsModel.js +2 -7
- package/dist/models/LeaveTypesModel.d.ts +1 -7
- package/dist/models/LeaveTypesModel.js +5 -20
- package/dist/models/PassportRequestApprovalModel.d.ts +22 -0
- package/dist/models/PassportRequestApprovalModel.js +91 -0
- package/dist/models/PassportRequestAttachmentModel.d.ts +10 -0
- package/dist/models/PassportRequestAttachmentModel.js +54 -0
- package/dist/models/PassportRequestChatModel.d.ts +8 -0
- package/dist/models/{LeaveBalanceModel.js → PassportRequestChatModel.js} +23 -23
- package/dist/models/PassportRequestDependentModel.d.ts +20 -0
- package/dist/models/PassportRequestDependentModel.js +85 -0
- package/dist/models/PassportRequestModel.d.ts +40 -0
- package/dist/models/PassportRequestModel.js +128 -0
- package/dist/models/PassportRequestWorkFlowModel.d.ts +15 -0
- package/dist/models/PassportRequestWorkFlowModel.js +60 -0
- package/dist/models/SubscriptionAmountModel.d.ts +67 -0
- package/dist/models/SubscriptionAmountModel.js +114 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +0 -1
- package/dist/models/UpdateAttendanceApprovalModel.js +0 -4
- package/dist/models/user.d.ts +1 -2
- package/dist/models/user.js +2 -7
- package/package.json +1 -1
- package/src/data-source.ts +17 -35
- package/src/index.ts +8 -25
- package/src/models/DiplomaticApprovalsModel.ts +77 -0
- package/src/models/DiplomaticAttachmentsModel.ts +37 -0
- package/src/models/DiplomaticChatsModel.ts +53 -0
- package/src/models/DiplomaticClubCardMembersModel.ts +71 -0
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +50 -0
- package/src/models/DiplomaticRequestsModel.ts +154 -0
- package/src/models/DiplomaticTitlesMasterModel.ts +39 -0
- package/src/models/DiplomaticWorkFlowModel.ts +53 -0
- package/src/models/FinancialApprovalsModel.ts +0 -4
- package/src/models/FinancialGradeModel.ts +8 -13
- package/src/models/GeneralServiceApprovalsModel.ts +1 -10
- package/src/models/LeaveApprovalsModel.ts +1 -5
- package/src/models/LeaveTypesModel.ts +11 -27
- package/src/models/UpdateAttendanceApprovalModel.ts +0 -3
- package/src/models/user.ts +0 -5
- package/dist/models/EarlyCheckoutBalanceModel.d.ts +0 -7
- package/dist/models/EarlyCheckoutBalanceModel.js +0 -39
- package/dist/models/EarlyCheckoutConfigModel.d.ts +0 -18
- package/dist/models/EarlyCheckoutConfigModel.js +0 -80
- package/dist/models/EarlyCheckoutTransactionModel.d.ts +0 -19
- package/dist/models/EarlyCheckoutTransactionModel.js +0 -66
- package/dist/models/LeaveApprovalDetailsModel.d.ts +0 -13
- package/dist/models/LeaveApprovalDetailsModel.js +0 -51
- package/dist/models/LeaveApprovalMatrixModel.d.ts +0 -7
- package/dist/models/LeaveBalanceModel.d.ts +0 -8
- package/dist/models/LeaveConfigGradesModel.d.ts +0 -19
- package/dist/models/LeaveConfigGradesModel.js +0 -100
- package/dist/models/LeaveConfigModel.d.ts +0 -20
- package/dist/models/LeaveConfigModel.js +0 -90
- package/dist/models/LeaveTransactionModel.d.ts +0 -20
- package/dist/models/LeaveTransactionModel.js +0 -71
- package/dist/models/M&CMasterModel.d.ts +0 -9
- package/dist/models/M&CMasterModel.js +0 -49
- package/dist/models/ProfileUpdateRequestsModel.d.ts +0 -106
- package/dist/models/ProfileUpdateRequestsModel.js +0 -409
- package/dist/models/StationeryMaterialMasterModel.d.ts +0 -11
- package/dist/models/StationeryRequestsModel.d.ts +0 -27
- package/dist/models/StationeryRequestsModel.js +0 -93
- package/dist/models/StayAfterHoursBalanceModel.d.ts +0 -7
- package/dist/models/StayAfterHoursBalanceModel.js +0 -39
- package/dist/models/StayAfterHoursTransactionModel.d.ts +0 -19
- package/dist/models/StayAfterHoursTransactionModel.js +0 -66
- package/dist/models/UpdateAttendenceRequestModel.d.ts +0 -28
- package/dist/models/UpdateAttendenceRequestModel.js +0 -86
- package/dist/models/UserEducationDetailsModel.d.ts +0 -12
- package/dist/models/UserEducationDetailsModel.js +0 -44
- package/dist/models/UserEmploymentDetailsModel.d.ts +0 -50
- package/dist/models/UserEmploymentDetailsModel.js +0 -193
- package/dist/models/UserPersonalDetailsModel.d.ts +0 -48
- package/dist/models/UserPersonalDetailsModel.js +0 -185
- package/src/models/EarlyCheckoutBalanceModel.ts +0 -22
- package/src/models/EarlyCheckoutConfigModel.ts +0 -57
- package/src/models/EarlyCheckoutTransactionModel.ts +0 -53
- package/src/models/LeaveBalanceModel.ts +0 -26
- package/src/models/LeaveConfigGradesModel.Ts +0 -72
- package/src/models/LeaveConfigModel.ts +0 -64
- package/src/models/LeaveTransactionModel.ts +0 -58
- package/src/models/M&CMasterModel.ts +0 -37
- package/src/models/ProfileUpdateRequestsModel.ts +0 -317
- package/src/models/StationeryMaterialMasterModel.ts +0 -35
- package/src/models/StationeryRequestsModel.ts +0 -65
- package/src/models/StayAfterHoursBalanceModel.ts +0 -22
- package/src/models/StayAfterHoursTransactionModel.ts +0 -53
- package/src/models/UserEducationDetailsModel.ts +0 -26
- package/src/models/UserEmploymentDetailsModel.ts +0 -141
- package/src/models/UserPersonalDetailsModel.ts +0 -137
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,185 +0,0 @@
|
|
|
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);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'early_checkout_balance' })
|
|
5
|
-
export class EarlyCheckoutBalance extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ nullable: true })
|
|
8
|
-
user_id: string;
|
|
9
|
-
|
|
10
|
-
@Column({ nullable: true })
|
|
11
|
-
balance: number;
|
|
12
|
-
|
|
13
|
-
@Column({ nullable: true })
|
|
14
|
-
total_balance: number;
|
|
15
|
-
|
|
16
|
-
constructor(user_id: string, balance: number, total_balance: number) {
|
|
17
|
-
super();
|
|
18
|
-
this.user_id = user_id;
|
|
19
|
-
this.balance = balance;
|
|
20
|
-
this.total_balance = total_balance;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum EarlyCheckoutFrequency {
|
|
5
|
-
Monthly = 'Monthly',
|
|
6
|
-
Yearly = 'Yearly',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//This model is used to store the Early Checkout Configuration on the Admin Side
|
|
10
|
-
@Entity({ name: 'early_checkout_configuration' })
|
|
11
|
-
export class EarlyCheckoutConfiguration extends BaseModel {
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', nullable: true })
|
|
14
|
-
category: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
MandC_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', nullable: true })
|
|
20
|
-
frequency: EarlyCheckoutFrequency;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', nullable: true })
|
|
23
|
-
region: string;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', nullable: true })
|
|
26
|
-
country: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', nullable: true })
|
|
29
|
-
location: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', nullable: true })
|
|
32
|
-
no_of_hours: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@Column({ type: 'date', nullable: true })
|
|
36
|
-
from_date: Date;
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'date', nullable: true })
|
|
39
|
-
to_date: Date;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'varchar', nullable: true })
|
|
42
|
-
reason: string;
|
|
43
|
-
|
|
44
|
-
constructor(category: string, MandC_id: number, frequency: EarlyCheckoutFrequency, region: string, country: string, location: string, no_of_hours: string, from_date: Date, to_date: Date, reason: string) {
|
|
45
|
-
super();
|
|
46
|
-
this.category = category;
|
|
47
|
-
this.MandC_id = MandC_id;
|
|
48
|
-
this.no_of_hours = no_of_hours;
|
|
49
|
-
this.frequency = frequency;
|
|
50
|
-
this.region = region;
|
|
51
|
-
this.country = country;
|
|
52
|
-
this.location = location;
|
|
53
|
-
this.from_date = from_date;
|
|
54
|
-
this.to_date = to_date;
|
|
55
|
-
this.reason = reason;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum EarlyCheckoutTransactionStatus {
|
|
5
|
-
GRANTED = 'GRANTED',
|
|
6
|
-
TAKEN = 'TAKEN',
|
|
7
|
-
ADJUSTMENT = 'ADJUSTMENT',
|
|
8
|
-
CARRY_FORWARD = 'CARRY_FORWARD',
|
|
9
|
-
ENCASHMENT = 'ENCASHMENT',
|
|
10
|
-
AVAILED = 'AVAILED',
|
|
11
|
-
ELAPSED = 'ELAPSED'
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//This model is used to store early checkout transactions for users
|
|
15
|
-
@Entity({ name: 'early_checkout_transactions' })
|
|
16
|
-
export class EarlyCheckoutTransaction extends BaseModel {
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: false })
|
|
19
|
-
user_id: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'varchar', nullable: true })
|
|
22
|
-
hours_count: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'date', nullable: true })
|
|
25
|
-
from_date: Date;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'date', nullable: true })
|
|
28
|
-
to_date: Date;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'int', nullable: true })
|
|
31
|
-
year: number;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'varchar', nullable: false })
|
|
34
|
-
status: EarlyCheckoutTransactionStatus;
|
|
35
|
-
|
|
36
|
-
constructor(
|
|
37
|
-
user_id: number,
|
|
38
|
-
hours_count: string,
|
|
39
|
-
from_date: Date,
|
|
40
|
-
to_date: Date,
|
|
41
|
-
year: number,
|
|
42
|
-
status: EarlyCheckoutTransactionStatus
|
|
43
|
-
) {
|
|
44
|
-
super();
|
|
45
|
-
this.user_id = user_id;
|
|
46
|
-
this.hours_count = hours_count;
|
|
47
|
-
this.from_date = from_date;
|
|
48
|
-
this.to_date = to_date;
|
|
49
|
-
this.year = year;
|
|
50
|
-
this.status = status;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'leave_balance' })
|
|
5
|
-
export class LeaveBalance extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ nullable: true })
|
|
8
|
-
user_id: string;
|
|
9
|
-
|
|
10
|
-
@Column({ nullable: true })
|
|
11
|
-
leave_type_id: string;
|
|
12
|
-
|
|
13
|
-
@Column({ nullable: true })
|
|
14
|
-
balance: number;
|
|
15
|
-
|
|
16
|
-
@Column({ nullable: true })
|
|
17
|
-
total_balance: number;
|
|
18
|
-
|
|
19
|
-
constructor(user_id: string, leave_type_id: string, balance: number, total_balance: number) {
|
|
20
|
-
super();
|
|
21
|
-
this.user_id = user_id;
|
|
22
|
-
this.leave_type_id = leave_type_id;
|
|
23
|
-
this.balance = balance;
|
|
24
|
-
this.total_balance = total_balance;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
//This model is used to store the relationship between Leave Configuration and Financial Grades with monthly leave counts
|
|
5
|
-
@Entity({ name: 'leave_config_grades' })
|
|
6
|
-
export class LeaveConfigurationGrades extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ type: 'int', nullable: true })
|
|
9
|
-
leave_config_id: number;
|
|
10
|
-
|
|
11
|
-
@Column({ type: 'int', nullable: false })
|
|
12
|
-
grade: number;
|
|
13
|
-
|
|
14
|
-
@Column({ type: 'int', nullable: true })
|
|
15
|
-
jan: number;
|
|
16
|
-
|
|
17
|
-
@Column({ type: 'int', nullable: true })
|
|
18
|
-
feb: number;
|
|
19
|
-
|
|
20
|
-
@Column({ type: 'int', nullable: true })
|
|
21
|
-
mar: number;
|
|
22
|
-
|
|
23
|
-
@Column({ type: 'int', nullable: true })
|
|
24
|
-
apr: number;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'int', nullable: true })
|
|
27
|
-
may: number;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'int', nullable: true })
|
|
30
|
-
jun: number;
|
|
31
|
-
|
|
32
|
-
@Column({ type: 'int', nullable: true })
|
|
33
|
-
jul: number;
|
|
34
|
-
|
|
35
|
-
@Column({ type: 'int', nullable: true })
|
|
36
|
-
aug: number;
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'int', nullable: true })
|
|
39
|
-
sep: number;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'int', nullable: true })
|
|
42
|
-
oct: number;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'int', nullable: true })
|
|
45
|
-
nov: number;
|
|
46
|
-
|
|
47
|
-
@Column({ type: 'int', nullable: true })
|
|
48
|
-
dec: number;
|
|
49
|
-
|
|
50
|
-
@Column({ type: 'int', nullable: false, default: 0 })
|
|
51
|
-
total_count: number;
|
|
52
|
-
|
|
53
|
-
constructor(leave_config_id: number, grade: number, jan: number, feb: number, mar: number, apr: number, may: number, jun: number, jul: number, aug: number, sep: number, oct: number, nov: number, dec: number, total_count: number) {
|
|
54
|
-
super();
|
|
55
|
-
this.leave_config_id = leave_config_id;
|
|
56
|
-
this.grade = grade;
|
|
57
|
-
this.jan = jan;
|
|
58
|
-
this.feb = feb;
|
|
59
|
-
this.mar = mar;
|
|
60
|
-
this.apr = apr;
|
|
61
|
-
this.may = may;
|
|
62
|
-
this.jun = jun;
|
|
63
|
-
this.jul = jul;
|
|
64
|
-
this.aug = aug;
|
|
65
|
-
this.sep = sep;
|
|
66
|
-
this.oct = oct;
|
|
67
|
-
this.nov = nov;
|
|
68
|
-
this.dec = dec;
|
|
69
|
-
this.total_count = total_count;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum enumFrequency {
|
|
5
|
-
Monthly = 'Monthly',
|
|
6
|
-
Yearly = 'Yearly',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
-
@Entity({ name: 'leave_configuration' })
|
|
11
|
-
export class LeaveConfiguration extends BaseModel {
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', nullable: true })
|
|
14
|
-
category: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
MandC_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
leave_type_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', nullable: true })
|
|
23
|
-
frequency: enumFrequency;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', nullable: true })
|
|
26
|
-
region: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', nullable: true })
|
|
29
|
-
country: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', nullable: true })
|
|
32
|
-
location: string;
|
|
33
|
-
|
|
34
|
-
@Column({ nullable: true, default: false })
|
|
35
|
-
is_carryforward: boolean;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
-
carryforward_limit: number;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'date', nullable: true })
|
|
41
|
-
from_date: Date;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'date', nullable: true })
|
|
44
|
-
to_date: Date;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', nullable: true })
|
|
47
|
-
reason: string;
|
|
48
|
-
|
|
49
|
-
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string) {
|
|
50
|
-
super();
|
|
51
|
-
this.category = category;
|
|
52
|
-
this.MandC_id = MandC_id;
|
|
53
|
-
this.leave_type_id = leave_type_id;
|
|
54
|
-
this.frequency = frequency;
|
|
55
|
-
this.region = region;
|
|
56
|
-
this.country = country;
|
|
57
|
-
this.location = location;
|
|
58
|
-
this.is_carryforward = is_carryforward;
|
|
59
|
-
this.carryforward_limit = carryforward_limit;
|
|
60
|
-
this.from_date = from_date;
|
|
61
|
-
this.to_date = to_date;
|
|
62
|
-
this.reason = reason;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum LeaveTransactionStatus {
|
|
5
|
-
GRANTED = 'GRANTED',
|
|
6
|
-
TAKEN = 'TAKEN',
|
|
7
|
-
ADJUSTMENT = 'ADJUSTMENT',
|
|
8
|
-
CARRY_FORWARD = 'CARRY_FORWARD',
|
|
9
|
-
ENCASHMENT = 'ENCASHMENT',
|
|
10
|
-
AVAILED = 'AVAILED',
|
|
11
|
-
ELAPSED = 'ELAPSED'
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//This model is used to store leave transactions for users
|
|
15
|
-
@Entity({ name: 'leave_transactions' })
|
|
16
|
-
export class LeaveTransaction extends BaseModel {
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: false })
|
|
19
|
-
user_id: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: false })
|
|
22
|
-
leave_type_id: number;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
25
|
-
leave_count: number;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'date', nullable: true })
|
|
28
|
-
from_date: Date;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'date', nullable: true })
|
|
31
|
-
to_date: Date;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'int', nullable: true })
|
|
34
|
-
year: number;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'varchar', nullable: false })
|
|
37
|
-
status: LeaveTransactionStatus;
|
|
38
|
-
|
|
39
|
-
constructor(
|
|
40
|
-
user_id: number,
|
|
41
|
-
leave_type_id: number,
|
|
42
|
-
leave_count: number,
|
|
43
|
-
from_date: Date,
|
|
44
|
-
to_date: Date,
|
|
45
|
-
year: number,
|
|
46
|
-
status: LeaveTransactionStatus
|
|
47
|
-
) {
|
|
48
|
-
super();
|
|
49
|
-
this.user_id = user_id;
|
|
50
|
-
this.leave_type_id = leave_type_id;
|
|
51
|
-
this.leave_count = leave_count;
|
|
52
|
-
this.from_date = from_date;
|
|
53
|
-
this.to_date = to_date;
|
|
54
|
-
this.year = year;
|
|
55
|
-
this.status = status;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'M&C_names' })
|
|
5
|
-
export class MandCMaster extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({type: 'varchar', nullable: true })
|
|
8
|
-
name: string;
|
|
9
|
-
|
|
10
|
-
@Column({type: 'varchar', nullable: true })
|
|
11
|
-
name_in_arabic: string;
|
|
12
|
-
|
|
13
|
-
@Column({type: 'varchar', nullable: true })
|
|
14
|
-
region:string;
|
|
15
|
-
|
|
16
|
-
@Column({type: 'varchar', nullable: true })
|
|
17
|
-
country:string;
|
|
18
|
-
|
|
19
|
-
@Column({type: 'varchar', nullable: true })
|
|
20
|
-
location:string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
constructor(
|
|
24
|
-
name: string,
|
|
25
|
-
name_in_arabic: string,
|
|
26
|
-
region: string,
|
|
27
|
-
country: string,
|
|
28
|
-
location: string
|
|
29
|
-
) {
|
|
30
|
-
super();
|
|
31
|
-
this.name = name
|
|
32
|
-
this.name_in_arabic = name_in_arabic
|
|
33
|
-
this.region = region
|
|
34
|
-
this.country = country
|
|
35
|
-
this.location = location
|
|
36
|
-
}
|
|
37
|
-
}
|