@platform-modules/foreign-ministry 1.1.104 → 1.1.105
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 +48 -14
- package/dist/index.d.ts +33 -7
- package/dist/index.js +48 -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/RegisterVacancyApprovalModel.d.ts +23 -0
- package/dist/models/RegisterVacancyApprovalModel.js +83 -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 +52 -16
- package/src/index.ts +33 -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/RegisterVacancyApprovalModel.ts +55 -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
package/dist/models/user.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.User = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let User = class User extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, office_number, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences, category) {
|
|
16
|
+
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, office_number, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences, category, mandc_number) {
|
|
17
17
|
super();
|
|
18
18
|
this.employee_id = employee_id;
|
|
19
19
|
this.employee_name = employee_name;
|
|
@@ -57,6 +57,7 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
57
57
|
this.children2_name = children2_name;
|
|
58
58
|
this.language_preferences = language_preferences;
|
|
59
59
|
this.category = category || "FM";
|
|
60
|
+
this.mandc_number = mandc_number || 0;
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
63
|
exports.User = User;
|
|
@@ -228,7 +229,11 @@ __decorate([
|
|
|
228
229
|
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false, default: "FM" }),
|
|
229
230
|
__metadata("design:type", String)
|
|
230
231
|
], User.prototype, "category", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true, default: 0 }),
|
|
234
|
+
__metadata("design:type", Number)
|
|
235
|
+
], User.prototype, "mandc_number", void 0);
|
|
231
236
|
exports.User = User = __decorate([
|
|
232
237
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
233
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, String, String, String, String, String])
|
|
238
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, String, String, String, String, String, Number])
|
|
234
239
|
], User);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -101,19 +101,38 @@ import { TransferMissionApprovalDetails } from './models/TransferMissionApproval
|
|
|
101
101
|
import { TransferMissionRequestAttachment } from './models/TransferMissionAttachmentModel';
|
|
102
102
|
import { TransferMissionRequestChat } from './models/TransferMissionChatModel';
|
|
103
103
|
import { TransferMissionWorkFlow } from './models/TransferMissionWorkflowModel';
|
|
104
|
+
import { RegisterVacancyRequests } from './models/RegisterVacancyRequestModel';
|
|
105
|
+
import { RegisterVacancyApprovalDetails } from './models/RegisterVacancyApprovalModel';
|
|
106
|
+
import { RegisterVacancyRequestAttachment } from './models/RegisterVacancyAttachmentModel';
|
|
107
|
+
import { RegisterVacancyRequestChat } from './models/RegisterVacancyChatModel';
|
|
108
|
+
import { RegisterVacancyWorkFlow } from './models/RegisterVacancyWorkflowModel';
|
|
104
109
|
import { GroupNames } from './models/GroupNamesModel';
|
|
105
110
|
import { Group } from './models/GroupModel';
|
|
106
111
|
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
107
112
|
import { Jobs } from './models/JobsModel';
|
|
108
|
-
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
113
|
+
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
114
|
+
import { MandCMaster } from './models/M&CMasterModel'
|
|
115
|
+
import { LeaveBalance } from './models/LeaveBalanceModel'
|
|
116
|
+
import { LeaveConfiguration } from './models/LeaveConfigModel'
|
|
117
|
+
import { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel'
|
|
118
|
+
import { LeaveTransaction } from './models/LeaveTransactionModel'
|
|
119
|
+
import { EarlyCheckoutBalance } from './models/EarlyCheckoutBalanceModel'
|
|
120
|
+
import { EarlyCheckoutConfiguration } from './models/EarlyCheckoutConfigModel'
|
|
121
|
+
import { EarlyCheckoutTransaction } from './models/EarlyCheckoutTransactionModel'
|
|
122
|
+
import { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel'
|
|
123
|
+
import { StayAfterHoursTransaction } from './models/StayAfterHoursTransactionModel'
|
|
124
|
+
import {StationeryRequests} from './models/StationeryRequestsModel'
|
|
125
|
+
import {StationeryMaterialMaster} from './models/StationeryMaterialMasterModel'
|
|
126
|
+
import { ProfileUpdateRequests } from './models/ProfileUpdateRequestsModel'
|
|
127
|
+
import { UserPersonalDetails } from './models/UserPersonalDetailsModel'
|
|
128
|
+
import { UserEmploymentDetails } from './models/UserEmploymentDetailsModel'
|
|
129
|
+
import { UserEducationDetails } from './models/UserEducationDetailsModel'
|
|
130
|
+
import { DiplomaticTitlesMaster } from './models/DiplomaticTitlesMasterModel'
|
|
131
|
+
import { CountryMaster } from './models/CountryMasterModel'
|
|
132
|
+
import { NationalityMaster } from './models/NationalityMasterModel'
|
|
133
|
+
import { OfficeMaster } from './models/OfficeMasterModel'
|
|
134
|
+
|
|
135
|
+
|
|
117
136
|
export const AppDataSource = new DataSource({
|
|
118
137
|
type: 'postgres',
|
|
119
138
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -215,18 +234,35 @@ export const AppDataSource = new DataSource({
|
|
|
215
234
|
TransferMissionRequestAttachment,
|
|
216
235
|
TransferMissionRequestChat,
|
|
217
236
|
TransferMissionWorkFlow,
|
|
237
|
+
RegisterVacancyRequests,
|
|
238
|
+
RegisterVacancyApprovalDetails,
|
|
239
|
+
RegisterVacancyRequestAttachment,
|
|
240
|
+
RegisterVacancyRequestChat,
|
|
241
|
+
RegisterVacancyWorkFlow,
|
|
218
242
|
GroupNames,
|
|
219
243
|
Group,
|
|
220
244
|
WorkSchedule,
|
|
221
245
|
Jobs,
|
|
222
246
|
TelephoneDirectory,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
247
|
+
MandCMaster,
|
|
248
|
+
LeaveBalance,
|
|
249
|
+
LeaveConfiguration,
|
|
250
|
+
LeaveConfigurationGrades,
|
|
251
|
+
LeaveTransaction,
|
|
252
|
+
EarlyCheckoutBalance,
|
|
253
|
+
EarlyCheckoutConfiguration,
|
|
254
|
+
EarlyCheckoutTransaction,
|
|
255
|
+
StayAfterHoursBalance,
|
|
256
|
+
StayAfterHoursTransaction,
|
|
257
|
+
StationeryRequests,
|
|
258
|
+
StationeryMaterialMaster,
|
|
259
|
+
ProfileUpdateRequests,
|
|
260
|
+
UserPersonalDetails,
|
|
261
|
+
UserEmploymentDetails,
|
|
262
|
+
UserEducationDetails,
|
|
229
263
|
DiplomaticTitlesMaster,
|
|
230
|
-
|
|
264
|
+
CountryMaster,
|
|
265
|
+
NationalityMaster,
|
|
266
|
+
OfficeMaster
|
|
231
267
|
],
|
|
232
268
|
});
|
package/src/index.ts
CHANGED
|
@@ -96,16 +96,42 @@ export * from './models/TransferMissionApprovalModel';
|
|
|
96
96
|
export * from './models/TransferMissionAttachmentModel';
|
|
97
97
|
export * from './models/TransferMissionChatModel';
|
|
98
98
|
export * from './models/TransferMissionWorkflowModel';
|
|
99
|
+
export * from './models/RegisterVacancyRequestModel';
|
|
100
|
+
export * from './models/RegisterVacancyApprovalModel';
|
|
101
|
+
export * from './models/RegisterVacancyAttachmentModel';
|
|
102
|
+
export * from './models/RegisterVacancyChatModel';
|
|
103
|
+
export * from './models/RegisterVacancyWorkflowModel';
|
|
99
104
|
export * from './models/GroupNamesModel';
|
|
100
105
|
export * from './models/GroupModel';
|
|
101
106
|
export * from './models/WorkScheduleModel';
|
|
102
107
|
export * from './models/JobsModel';
|
|
108
|
+
export * from './models/M&CMasterModel';
|
|
109
|
+
export * from './models/LeaveBalanceModel';
|
|
110
|
+
export * from './models/LeaveConfigModel';
|
|
111
|
+
export { LeaveConfiguration, enumFrequency } from './models/LeaveConfigModel';
|
|
112
|
+
export * from './models/LeaveConfigGradesModel';
|
|
113
|
+
export { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel';
|
|
114
|
+
export * from './models/LeaveTransactionModel';
|
|
115
|
+
export { LeaveTransaction, LeaveTransactionStatus } from './models/LeaveTransactionModel';
|
|
116
|
+
export * from './models/EarlyCheckoutBalanceModel';
|
|
117
|
+
export { EarlyCheckoutBalance } from './models/EarlyCheckoutBalanceModel';
|
|
118
|
+
export * from './models/EarlyCheckoutConfigModel';
|
|
119
|
+
export { EarlyCheckoutConfiguration, EarlyCheckoutFrequency } from './models/EarlyCheckoutConfigModel';
|
|
120
|
+
export * from './models/EarlyCheckoutTransactionModel';
|
|
121
|
+
export { EarlyCheckoutTransaction, EarlyCheckoutTransactionStatus } from './models/EarlyCheckoutTransactionModel';
|
|
122
|
+
export * from './models/StayAfterHoursBalanceModel';
|
|
123
|
+
export { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel';
|
|
124
|
+
export * from './models/StayAfterHoursTransactionModel';
|
|
125
|
+
export { StayAfterHoursTransaction, StayAfterHoursTransactionStatus } from './models/StayAfterHoursTransactionModel';
|
|
103
126
|
export * from './models/TelephoneDirectoryModel';
|
|
104
|
-
export * from './models/
|
|
105
|
-
export * from './models/
|
|
106
|
-
export * from './models/
|
|
107
|
-
export * from './models/
|
|
108
|
-
export * from './models/
|
|
109
|
-
export * from './models/
|
|
127
|
+
export * from './models/StationeryRequestsModel';
|
|
128
|
+
export * from './models/StationeryMaterialMasterModel';
|
|
129
|
+
export * from './models/ProfileUpdateRequestsModel';
|
|
130
|
+
export * from './models/UserPersonalDetailsModel';
|
|
131
|
+
export * from './models/UserEmploymentDetailsModel';
|
|
132
|
+
export * from './models/UserEducationDetailsModel';
|
|
133
|
+
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
110
134
|
export * from './models/DiplomaticTitlesMasterModel';
|
|
111
|
-
export * from './models/
|
|
135
|
+
export * from './models/CountryMasterModel';
|
|
136
|
+
export * from './models/NationalityMasterModel';
|
|
137
|
+
export * from './models/OfficeMasterModel';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'country_master' })
|
|
5
|
+
export class CountryMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
7
|
+
country_name: string; // Country name
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
10
|
+
country_name_arabic: string | null; // Arabic translation
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
+
country_code: string | null; // ISO country code (e.g., "OM", "US")
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
16
|
+
phone_code: string | null; // Phone country code (e.g., "+968")
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text', nullable: true })
|
|
19
|
+
description: string | null; // Description of the country
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'boolean', default: true })
|
|
22
|
+
is_active: boolean; // Whether the country is active
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', default: 0 })
|
|
25
|
+
display_order: number; // Order for display in dropdowns
|
|
26
|
+
|
|
27
|
+
constructor(country_name: string) {
|
|
28
|
+
super();
|
|
29
|
+
this.country_name = country_name;
|
|
30
|
+
this.is_active = true;
|
|
31
|
+
this.display_order = 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -1,37 +1,26 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
export enum TitleCategory {
|
|
5
|
-
EMPLOYEE = "Employee",
|
|
6
|
-
NON_EMPLOYEE = "Non Employee"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
4
|
@Entity({ name: 'diplomatic_titles_master' })
|
|
10
5
|
export class DiplomaticTitlesMaster extends BaseModel {
|
|
11
|
-
@Column({ type: 'varchar', length: 255 })
|
|
12
|
-
|
|
6
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
7
|
+
title: string; // Diplomatic title name
|
|
13
8
|
|
|
14
|
-
@Column({ type: '
|
|
15
|
-
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
10
|
+
title_in_arabic: string | null; // Arabic translation
|
|
16
11
|
|
|
17
12
|
@Column({ type: 'text', nullable: true })
|
|
18
|
-
description: string | null;
|
|
13
|
+
description: string | null; // Description of the title
|
|
19
14
|
|
|
20
15
|
@Column({ type: 'boolean', default: true })
|
|
21
|
-
is_active: boolean;
|
|
16
|
+
is_active: boolean; // Whether the title is active
|
|
22
17
|
|
|
23
18
|
@Column({ type: 'int', default: 0 })
|
|
24
|
-
display_order: number;
|
|
19
|
+
display_order: number; // Order for display in dropdowns
|
|
25
20
|
|
|
26
|
-
constructor(
|
|
27
|
-
title_name: string,
|
|
28
|
-
category: TitleCategory,
|
|
29
|
-
description?: string | null
|
|
30
|
-
) {
|
|
21
|
+
constructor(title: string) {
|
|
31
22
|
super();
|
|
32
|
-
this.
|
|
33
|
-
this.category = category;
|
|
34
|
-
this.description = description || null;
|
|
23
|
+
this.title = title;
|
|
35
24
|
this.is_active = true;
|
|
36
25
|
this.display_order = 0;
|
|
37
26
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
@@ -45,6 +45,10 @@ export class FinancialApprovals extends BaseModel {
|
|
|
45
45
|
@Column({ type: 'int', nullable: true })
|
|
46
46
|
delegate_user_id: number | null;
|
|
47
47
|
|
|
48
|
+
// is_allowed flag: true if logged-in user is the request creator, false otherwise (for chat permissions)
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: true })
|
|
50
|
+
is_allowed: boolean | null;
|
|
51
|
+
|
|
48
52
|
@ManyToOne(() => FinancialRequests, fr => fr.approvals)
|
|
49
53
|
@JoinColumn({ name: 'financial_request_id' })
|
|
50
54
|
financialRequest?: FinancialRequests;
|
|
@@ -4,23 +4,28 @@ import { BaseModel } from './BaseModel';
|
|
|
4
4
|
@Entity({ name: 'financial_grade' })
|
|
5
5
|
export class FinancialGrade extends BaseModel {
|
|
6
6
|
|
|
7
|
-
@Column({ nullable: false })
|
|
7
|
+
@Column({ type: 'varchar', nullable: false })
|
|
8
8
|
diplomatic_title: string;
|
|
9
9
|
|
|
10
|
-
@Column({ nullable:
|
|
11
|
-
|
|
10
|
+
@Column({ type: 'varchar', nullable: true })
|
|
11
|
+
arabic_title: string;
|
|
12
12
|
|
|
13
|
-
@Column({ type: "
|
|
14
|
-
|
|
13
|
+
@Column({ type: "integer", nullable: true })
|
|
14
|
+
financial_grade: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "integer", nullable: true })
|
|
17
|
+
leave_count: number;
|
|
15
18
|
|
|
16
19
|
constructor(
|
|
17
20
|
diplomatic_title: string,
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
arabic_title: string,
|
|
22
|
+
financial_grade: number,
|
|
23
|
+
leave_count: number
|
|
20
24
|
) {
|
|
21
25
|
super();
|
|
22
26
|
this.diplomatic_title = diplomatic_title;
|
|
27
|
+
this.arabic_title = arabic_title;
|
|
23
28
|
this.financial_grade = financial_grade;
|
|
24
|
-
this.
|
|
29
|
+
this.leave_count = leave_count;
|
|
25
30
|
}
|
|
26
31
|
}
|
|
@@ -6,7 +6,8 @@ export enum GeneralServiceApprovalStatus {
|
|
|
6
6
|
APPROVED = "Approved",
|
|
7
7
|
REJECTED = "Rejected",
|
|
8
8
|
SKIPPED = "Skipped",
|
|
9
|
-
IN_PROGRESS = "In Progress"
|
|
9
|
+
IN_PROGRESS = "In Progress",
|
|
10
|
+
ASSIGNED = "Assigned"
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
@Entity({ name: 'general_service_approvals' })
|
|
@@ -60,6 +61,14 @@ export class GeneralServiceApprovals extends BaseModel {
|
|
|
60
61
|
@Column({ type: 'int', nullable: true })
|
|
61
62
|
delegate_user_id: number | null; // Group who transferred from
|
|
62
63
|
|
|
64
|
+
// Stationery-specific: Action type to indicate what action is needed (for FE button handling)
|
|
65
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
66
|
+
action_type: string | null; // Values: 'approve' (L1), 'store' (Stores Office), 'finance' (Finance), 'finance_purchase', 'complete'
|
|
67
|
+
|
|
68
|
+
// is_allowed flag: true if logged-in user is the request creator, false otherwise (for chat permissions)
|
|
69
|
+
@Column({ type: 'boolean', nullable: true })
|
|
70
|
+
is_allowed: boolean | null;
|
|
71
|
+
|
|
63
72
|
// @Column({ type: 'timestamp', nullable: true })
|
|
64
73
|
// sla_start_time: Date | null; // SLA tracking start time for this assignment
|
|
65
74
|
|
|
@@ -6,7 +6,8 @@ export enum ApprovalStatus {
|
|
|
6
6
|
PENDING = "Pending",
|
|
7
7
|
APPROVED = "Approved",
|
|
8
8
|
REJECTED = "Rejected",
|
|
9
|
-
IN_PROGRESS = "In Progress"
|
|
9
|
+
IN_PROGRESS = "In Progress",
|
|
10
|
+
CANCELLED = "Cancelled"
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
@@ -42,7 +43,10 @@ export class LeaveApprovalDetails extends BaseModel {
|
|
|
42
43
|
@Column({ type: 'enum', enum: ApprovalStatus,default: ApprovalStatus.PENDING, nullable: false })
|
|
43
44
|
approval_status: ApprovalStatus;
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
47
|
+
is_allowed: boolean;
|
|
48
|
+
|
|
49
|
+
constructor(leave_request_id: number, approver_user_id: number, approver_role_id: number, comment: string, approval_status: ApprovalStatus, level: number, department_id: number, section_id: number, is_allowed: boolean) {
|
|
46
50
|
super();
|
|
47
51
|
this.leave_request_id = leave_request_id;
|
|
48
52
|
this.approver_user_id = approver_user_id;
|
|
@@ -52,5 +56,6 @@ export class LeaveApprovalDetails extends BaseModel {
|
|
|
52
56
|
this.comment = comment;
|
|
53
57
|
this.approval_status = approval_status;
|
|
54
58
|
this.level = level;
|
|
59
|
+
this.is_allowed = is_allowed;
|
|
55
60
|
}
|
|
56
61
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
|