@platform-modules/foreign-ministry 1.1.102 → 1.1.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +38 -14
- package/dist/index.d.ts +28 -7
- package/dist/index.js +43 -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/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/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/user.d.ts +2 -1
- package/dist/models/user.js +7 -2
- package/package.json +1 -1
- package/src/data-source.ts +42 -16
- package/src/index.ts +28 -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/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
|
@@ -0,0 +1,56 @@
|
|
|
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.StationeryMaterialMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let StationeryMaterialMaster = class StationeryMaterialMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(material_type, material_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.material_type = material_type;
|
|
19
|
+
this.material_name = material_name;
|
|
20
|
+
this.is_active = true;
|
|
21
|
+
this.display_order = 0;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.StationeryMaterialMaster = StationeryMaterialMaster;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], StationeryMaterialMaster.prototype, "material_type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StationeryMaterialMaster.prototype, "material_name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], StationeryMaterialMaster.prototype, "material_code", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], StationeryMaterialMaster.prototype, "description", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], StationeryMaterialMaster.prototype, "unit_of_measure", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], StationeryMaterialMaster.prototype, "is_active", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], StationeryMaterialMaster.prototype, "display_order", void 0);
|
|
53
|
+
exports.StationeryMaterialMaster = StationeryMaterialMaster = __decorate([
|
|
54
|
+
(0, typeorm_1.Entity)({ name: 'stationery_material_master' }),
|
|
55
|
+
__metadata("design:paramtypes", [String, String])
|
|
56
|
+
], StationeryMaterialMaster);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StationeryRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
COMPLETED = "Completed"
|
|
9
|
+
}
|
|
10
|
+
export declare class StationeryRequests extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
service_id: number | null;
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
user_id: number;
|
|
16
|
+
date_of_request_preparation: Date;
|
|
17
|
+
office_id: number;
|
|
18
|
+
material_id: number;
|
|
19
|
+
quantity_required: number;
|
|
20
|
+
comments: string | null;
|
|
21
|
+
status: StationeryRequestStatus;
|
|
22
|
+
workflow_execution_id: string | null;
|
|
23
|
+
stock_available: boolean | null;
|
|
24
|
+
po_number: string | null;
|
|
25
|
+
stock_available_date: Date | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.StationeryRequests = exports.StationeryRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StationeryRequestStatus;
|
|
16
|
+
(function (StationeryRequestStatus) {
|
|
17
|
+
StationeryRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
StationeryRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
StationeryRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
StationeryRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
StationeryRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
StationeryRequestStatus["COMPLETED"] = "Completed";
|
|
23
|
+
})(StationeryRequestStatus || (exports.StationeryRequestStatus = StationeryRequestStatus = {}));
|
|
24
|
+
let StationeryRequests = class StationeryRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.StationeryRequests = StationeryRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], StationeryRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], StationeryRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], StationeryRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], StationeryRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], StationeryRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], StationeryRequests.prototype, "date_of_request_preparation", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], StationeryRequests.prototype, "office_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], StationeryRequests.prototype, "material_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], StationeryRequests.prototype, "quantity_required", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], StationeryRequests.prototype, "comments", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], StationeryRequests.prototype, "status", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], StationeryRequests.prototype, "workflow_execution_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], StationeryRequests.prototype, "stock_available", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], StationeryRequests.prototype, "po_number", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], StationeryRequests.prototype, "stock_available_date", void 0);
|
|
87
|
+
exports.StationeryRequests = StationeryRequests = __decorate([
|
|
88
|
+
(0, typeorm_1.Entity)({ name: 'stationery_requests' })
|
|
89
|
+
], StationeryRequests);
|
|
@@ -0,0 +1,39 @@
|
|
|
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.StayAfterHoursBalance = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let StayAfterHoursBalance = class StayAfterHoursBalance extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, balance, total_balance) {
|
|
17
|
+
super();
|
|
18
|
+
this.user_id = user_id;
|
|
19
|
+
this.balance = balance;
|
|
20
|
+
this.total_balance = total_balance;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.StayAfterHoursBalance = StayAfterHoursBalance;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], StayAfterHoursBalance.prototype, "user_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], StayAfterHoursBalance.prototype, "balance", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], StayAfterHoursBalance.prototype, "total_balance", void 0);
|
|
36
|
+
exports.StayAfterHoursBalance = StayAfterHoursBalance = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_balance' }),
|
|
38
|
+
__metadata("design:paramtypes", [String, Number, Number])
|
|
39
|
+
], StayAfterHoursBalance);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum StayAfterHoursTransactionStatus {
|
|
3
|
+
GRANTED = "GRANTED",
|
|
4
|
+
TAKEN = "TAKEN",
|
|
5
|
+
ADJUSTMENT = "ADJUSTMENT",
|
|
6
|
+
CARRY_FORWARD = "CARRY_FORWARD",
|
|
7
|
+
ENCASHMENT = "ENCASHMENT",
|
|
8
|
+
AVAILED = "AVAILED",
|
|
9
|
+
ELAPSED = "ELAPSED"
|
|
10
|
+
}
|
|
11
|
+
export declare class StayAfterHoursTransaction extends BaseModel {
|
|
12
|
+
user_id: number;
|
|
13
|
+
hours_count: string;
|
|
14
|
+
from_date: Date;
|
|
15
|
+
to_date: Date;
|
|
16
|
+
year: number;
|
|
17
|
+
status: StayAfterHoursTransactionStatus;
|
|
18
|
+
constructor(user_id: number, hours_count: string, from_date: Date, to_date: Date, year: number, status: StayAfterHoursTransactionStatus);
|
|
19
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.StayAfterHoursTransaction = exports.StayAfterHoursTransactionStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var StayAfterHoursTransactionStatus;
|
|
16
|
+
(function (StayAfterHoursTransactionStatus) {
|
|
17
|
+
StayAfterHoursTransactionStatus["GRANTED"] = "GRANTED";
|
|
18
|
+
StayAfterHoursTransactionStatus["TAKEN"] = "TAKEN";
|
|
19
|
+
StayAfterHoursTransactionStatus["ADJUSTMENT"] = "ADJUSTMENT";
|
|
20
|
+
StayAfterHoursTransactionStatus["CARRY_FORWARD"] = "CARRY_FORWARD";
|
|
21
|
+
StayAfterHoursTransactionStatus["ENCASHMENT"] = "ENCASHMENT";
|
|
22
|
+
StayAfterHoursTransactionStatus["AVAILED"] = "AVAILED";
|
|
23
|
+
StayAfterHoursTransactionStatus["ELAPSED"] = "ELAPSED";
|
|
24
|
+
})(StayAfterHoursTransactionStatus || (exports.StayAfterHoursTransactionStatus = StayAfterHoursTransactionStatus = {}));
|
|
25
|
+
//This model is used to store early checkout transactions for users
|
|
26
|
+
let StayAfterHoursTransaction = class StayAfterHoursTransaction extends BaseModel_1.BaseModel {
|
|
27
|
+
constructor(user_id, hours_count, from_date, to_date, year, status) {
|
|
28
|
+
super();
|
|
29
|
+
this.user_id = user_id;
|
|
30
|
+
this.hours_count = hours_count;
|
|
31
|
+
this.from_date = from_date;
|
|
32
|
+
this.to_date = to_date;
|
|
33
|
+
this.year = year;
|
|
34
|
+
this.status = status;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.StayAfterHoursTransaction = StayAfterHoursTransaction;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], StayAfterHoursTransaction.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], StayAfterHoursTransaction.prototype, "hours_count", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], StayAfterHoursTransaction.prototype, "from_date", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], StayAfterHoursTransaction.prototype, "to_date", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], StayAfterHoursTransaction.prototype, "year", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], StayAfterHoursTransaction.prototype, "status", void 0);
|
|
62
|
+
exports.StayAfterHoursTransaction = StayAfterHoursTransaction = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_transactions' }),
|
|
64
|
+
__metadata("design:paramtypes", [Number, String, Date,
|
|
65
|
+
Date, Number, String])
|
|
66
|
+
], StayAfterHoursTransaction);
|
|
@@ -5,7 +5,8 @@ export declare class TelephoneDirectory extends BaseModel {
|
|
|
5
5
|
name: string;
|
|
6
6
|
position: string;
|
|
7
7
|
diplomatic_title: string;
|
|
8
|
-
|
|
8
|
+
embassy_id: number | null;
|
|
9
|
+
contextual_search: string | null;
|
|
9
10
|
email: string;
|
|
10
11
|
contact_number: string;
|
|
11
12
|
extension_number: string;
|
|
@@ -17,5 +18,5 @@ export declare class TelephoneDirectory extends BaseModel {
|
|
|
17
18
|
zip_code: string;
|
|
18
19
|
country: string;
|
|
19
20
|
photo_url: string;
|
|
20
|
-
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string,
|
|
21
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_id?: number | null, contextual_search?: string | null, email?: string, contact_number?: string, extension_number?: string, location?: string, department_id?: number, employee_id?: number, city?: string, state?: string, zip_code?: string, country?: string, photo_url?: string);
|
|
21
22
|
}
|
|
@@ -13,13 +13,14 @@ exports.TelephoneDirectory = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let TelephoneDirectory = class TelephoneDirectory extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(category, name, position, diplomatic_title,
|
|
16
|
+
constructor(category, name, position, diplomatic_title, embassy_id, contextual_search, email, contact_number, extension_number, location, department_id, employee_id, city, state, zip_code, country, photo_url) {
|
|
17
17
|
super();
|
|
18
18
|
this.category = category || "FM";
|
|
19
19
|
this.name = name || "";
|
|
20
20
|
this.position = position || "";
|
|
21
21
|
this.diplomatic_title = diplomatic_title || "";
|
|
22
|
-
this.
|
|
22
|
+
this.embassy_id = embassy_id || null;
|
|
23
|
+
this.contextual_search = contextual_search || null;
|
|
23
24
|
this.email = email || "";
|
|
24
25
|
this.contact_number = contact_number || "";
|
|
25
26
|
this.extension_number = extension_number || "";
|
|
@@ -55,9 +56,13 @@ __decorate([
|
|
|
55
56
|
__metadata("design:type", String)
|
|
56
57
|
], TelephoneDirectory.prototype, "diplomatic_title", void 0);
|
|
57
58
|
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "
|
|
59
|
-
__metadata("design:type",
|
|
60
|
-
], TelephoneDirectory.prototype, "
|
|
59
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], TelephoneDirectory.prototype, "embassy_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], TelephoneDirectory.prototype, "contextual_search", void 0);
|
|
61
66
|
__decorate([
|
|
62
67
|
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
63
68
|
__metadata("design:type", String)
|
|
@@ -104,5 +109,5 @@ __decorate([
|
|
|
104
109
|
], TelephoneDirectory.prototype, "photo_url", void 0);
|
|
105
110
|
exports.TelephoneDirectory = TelephoneDirectory = __decorate([
|
|
106
111
|
(0, typeorm_1.Entity)({ name: "telephone_directory" }),
|
|
107
|
-
__metadata("design:paramtypes", [String, String, String, String,
|
|
112
|
+
__metadata("design:paramtypes", [String, String, String, String, Object, Object, String, String, String, String, Number, Number, String, String, String, String, String])
|
|
108
113
|
], TelephoneDirectory);
|
|
@@ -15,7 +15,9 @@ export declare class TransferMissionApprovalDetails extends BaseModel {
|
|
|
15
15
|
section_id: number | null;
|
|
16
16
|
approver_user_id: number | null;
|
|
17
17
|
delegate_user_id: number | null;
|
|
18
|
+
group_id: number | null;
|
|
18
19
|
approved_by: number | null;
|
|
19
20
|
comment: string;
|
|
20
21
|
approval_status: TransferMissionApprovalStatus;
|
|
22
|
+
is_allowed: boolean;
|
|
21
23
|
}
|
|
@@ -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
|
+
}
|