@platform-modules/foreign-ministry 1.1.52 → 1.1.54
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 -11
- package/dist/data-source.js +18 -34
- package/dist/index.d.ts +9 -24
- package/dist/index.js +9 -24
- package/dist/models/AttendanceModel.d.ts +1 -2
- package/dist/models/AttendanceModel.js +1 -2
- package/dist/models/DiplomaticApprovalsModel.d.ts +25 -0
- package/dist/models/DiplomaticApprovalsModel.js +95 -0
- package/dist/models/DiplomaticAttachmentsModel.d.ts +12 -0
- package/dist/models/{GeneralServiceAttachmentsModel.js → DiplomaticAttachmentsModel.js} +22 -18
- package/dist/models/DiplomaticChatsModel.d.ts +11 -0
- package/dist/models/{GeneralServiceChatsModel.js → DiplomaticChatsModel.js} +21 -17
- 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/{HelpdeskCategoriesModel.js → DiplomaticClubCardAttachmentModel.js} +22 -27
- package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
- package/dist/models/{JobsModel.js → DiplomaticClubCardChatModel.js} +16 -29
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -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/DiplomaticRequestsModel.d.ts +43 -0
- package/dist/models/DiplomaticRequestsModel.js +142 -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/DiplomaticWorkFlowModel.d.ts +21 -0
- package/dist/models/DiplomaticWorkFlowModel.js +78 -0
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +0 -1
- package/dist/models/EarlyCheckoutApprovalModel.js +0 -4
- package/dist/models/EarlyCheckoutChatModel.d.ts +0 -4
- package/dist/models/EarlyCheckoutChatModel.js +2 -28
- package/dist/models/EarlyCheckoutWorkflowModel.d.ts +0 -4
- package/dist/models/EarlyCheckoutWorkflowModel.js +0 -16
- package/dist/models/FinancialChatsModel.d.ts +1 -16
- package/dist/models/FinancialChatsModel.js +3 -33
- package/dist/models/FinancialRequestsModel.d.ts +1 -1
- package/dist/models/FinancialRequestsModel.js +3 -3
- package/dist/models/FinancialWorkFlowModel.d.ts +1 -3
- package/dist/models/FinancialWorkFlowModel.js +2 -11
- package/dist/models/LeaveApprovalsModel.d.ts +1 -4
- package/dist/models/LeaveApprovalsModel.js +0 -9
- package/dist/models/LeaveAttachmentsModel.d.ts +2 -6
- package/dist/models/LeaveAttachmentsModel.js +7 -27
- package/dist/models/LeaveChatModel.d.ts +1 -5
- package/dist/models/LeaveChatModel.js +2 -22
- package/dist/models/LeaveRequestModel.d.ts +1 -12
- package/dist/models/LeaveRequestModel.js +0 -35
- package/dist/models/LeaveWorkFlowModel.d.ts +1 -5
- package/dist/models/LeaveWorkFlowModel.js +2 -22
- package/dist/models/MounringLeaveRelationModel.d.ts +1 -2
- package/dist/models/MounringLeaveRelationModel.js +2 -7
- 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/{HelpdeskSubCategoriesModel.js → PassportRequestAttachmentModel.js} +29 -29
- package/dist/models/PassportRequestChatModel.d.ts +8 -0
- package/dist/models/PassportRequestChatModel.js +44 -0
- 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/ReimbursementRequestsModel.d.ts +1 -2
- package/dist/models/ReimbursementRequestsModel.js +4 -9
- package/dist/models/StayAfterHoursApprovalModel.d.ts +0 -1
- package/dist/models/StayAfterHoursApprovalModel.js +0 -4
- package/dist/models/StayAfterHoursChatModel.d.ts +0 -4
- package/dist/models/StayAfterHoursChatModel.js +2 -28
- package/dist/models/StayAfterHoursWorkflowModel.d.ts +0 -4
- package/dist/models/StayAfterHoursWorkflowModel.js +0 -16
- package/dist/models/SubscriptionAmountModel.d.ts +13 -0
- package/dist/models/SubscriptionAmountModel.js +49 -0
- package/dist/models/WorkflowTask.d.ts +2 -5
- package/dist/models/WorkflowTask.js +4 -28
- package/dist/models/WorkflowTaskNames.d.ts +3 -12
- package/dist/models/WorkflowTaskNames.js +9 -28
- package/package.json +1 -1
- package/src/data-source.ts +30 -45
- package/src/index.ts +9 -24
- package/src/models/AttendanceModel.ts +1 -2
- package/src/models/DiplomaticApprovalsModel.ts +78 -0
- package/src/models/DiplomaticAttachmentsModel.ts +45 -0
- package/src/models/DiplomaticChatsModel.ts +41 -0
- package/src/models/DiplomaticRequestsModel.ts +121 -0
- package/src/models/DiplomaticServiceDetailsModel.ts +51 -0
- package/src/models/DiplomaticSettingsModel.ts +45 -0
- package/src/models/DiplomaticTitleModel.ts +27 -0
- package/src/models/DiplomaticWorkFlowModel.ts +62 -0
- package/src/models/EarlyCheckoutApprovalModel.ts +0 -3
- package/src/models/EarlyCheckoutChatModel.ts +1 -34
- package/src/models/EarlyCheckoutWorkflowModel.ts +0 -12
- package/src/models/FinancialChatsModel.ts +1 -27
- package/src/models/FinancialRequestsModel.ts +2 -2
- package/src/models/FinancialWorkFlowModel.ts +1 -9
- package/src/models/LeaveApprovalsModel.ts +1 -8
- package/src/models/LeaveAttachmentsModel.ts +5 -21
- package/src/models/LeaveChatModel.ts +1 -17
- package/src/models/LeaveRequestModel.ts +1 -29
- package/src/models/LeaveWorkFlowModel.ts +1 -17
- package/src/models/MounringLeaveRelationModel.ts +1 -5
- package/src/models/ReimbursementRequestsModel.ts +6 -8
- package/src/models/StayAfterHoursApprovalModel.ts +0 -3
- package/src/models/StayAfterHoursChatModel.ts +1 -34
- package/src/models/StayAfterHoursWorkflowModel.ts +0 -12
- package/src/models/SubscriptionAmountModel.ts +30 -0
- package/src/models/WorkflowTask.ts +4 -31
- package/src/models/WorkflowTaskNames.ts +8 -27
- package/dist/models/CurrencyModel.d.ts +0 -10
- package/dist/models/CurrencyModel.js +0 -53
- package/dist/models/GeneralServiceApprovalsModel.d.ts +0 -26
- package/dist/models/GeneralServiceApprovalsModel.js +0 -109
- package/dist/models/GeneralServiceAttachmentsModel.d.ts +0 -10
- package/dist/models/GeneralServiceChatsModel.d.ts +0 -9
- package/dist/models/GeneralServiceRequestsModel.d.ts +0 -36
- package/dist/models/GeneralServiceRequestsModel.js +0 -137
- package/dist/models/GeneralServiceWorkFlowModel.d.ts +0 -21
- package/dist/models/GeneralServiceWorkFlowModel.js +0 -80
- package/dist/models/GroupModel.d.ts +0 -16
- package/dist/models/GroupModel.js +0 -44
- package/dist/models/GroupNamesModel.d.ts +0 -6
- package/dist/models/GroupNamesModel.js +0 -34
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/HelpdeskCategoriesModel.d.ts +0 -9
- package/dist/models/HelpdeskSubCategoriesModel.d.ts +0 -10
- package/dist/models/IssueTypesModel.d.ts +0 -10
- package/dist/models/IssueTypesModel.js +0 -54
- package/dist/models/JobsModel.d.ts +0 -17
- package/dist/models/RoutingGroupsModel.d.ts +0 -13
- package/dist/models/RoutingGroupsModel.js +0 -67
- package/dist/models/TelephoneDirectoryModel.d.ts +0 -21
- package/dist/models/TelephoneDirectoryModel.js +0 -108
- package/dist/models/TransferMissionApprovalModel.d.ts +0 -21
- package/dist/models/TransferMissionApprovalModel.js +0 -75
- package/dist/models/TransferMissionAttachmentModel.d.ts +0 -11
- package/dist/models/TransferMissionAttachmentModel.js +0 -52
- package/dist/models/TransferMissionChatModel.d.ts +0 -19
- package/dist/models/TransferMissionChatModel.js +0 -78
- package/dist/models/TransferMissionRequestModel.d.ts +0 -36
- package/dist/models/TransferMissionRequestModel.js +0 -132
- package/dist/models/TransferMissionWorkflowModel.d.ts +0 -17
- package/dist/models/TransferMissionWorkflowModel.js +0 -62
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +0 -21
- package/dist/models/UpdateAttendanceApprovalModel.js +0 -75
- package/dist/models/UpdateAttendanceChatModel.d.ts +0 -16
- package/dist/models/UpdateAttendanceChatModel.js +0 -52
- package/dist/models/UpdateAttendanceRequestModel.d.ts +0 -28
- package/dist/models/UpdateAttendanceRequestModel.js +0 -86
- package/dist/models/UpdateAttendanceWorkflowModel.d.ts +0 -13
- package/dist/models/UpdateAttendanceWorkflowModel.js +0 -46
- package/dist/models/WorkScheduleModel.d.ts +0 -19
- package/dist/models/WorkScheduleModel.js +0 -60
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- package/src/models/CurrencyModel.ts +0 -38
- package/src/models/GeneralServiceApprovalsModel.ts +0 -95
- package/src/models/GeneralServiceAttachmentsModel.ts +0 -43
- package/src/models/GeneralServiceChatsModel.ts +0 -39
- package/src/models/GeneralServiceRequestsModel.ts +0 -113
- package/src/models/GeneralServiceWorkFlowModel.ts +0 -78
- package/src/models/GroupModel.ts +0 -30
- package/src/models/GroupNamesModel.ts +0 -22
- package/src/models/HelpdeskCategoriesModel.ts +0 -35
- package/src/models/HelpdeskSubCategoriesModel.ts +0 -40
- package/src/models/IssueTypesModel.ts +0 -47
- package/src/models/JobsModel.ts +0 -37
- package/src/models/RoutingGroupsModel.ts +0 -64
- package/src/models/TelephoneDirectoryModel.ts +0 -84
- package/src/models/TransferMissionApprovalModel.ts +0 -49
- package/src/models/TransferMissionAttachmentModel.ts +0 -31
- package/src/models/TransferMissionChatModel.ts +0 -66
- package/src/models/TransferMissionRequestModel.ts +0 -94
- package/src/models/TransferMissionWorkflowModel.ts +0 -39
- package/src/models/UpdateAttendanceApprovalModel.ts +0 -50
- package/src/models/UpdateAttendanceChatModel.ts +0 -35
- package/src/models/UpdateAttendanceRequestModel.ts +0 -63
- package/src/models/UpdateAttendanceWorkflowModel.ts +0 -28
- package/src/models/WorkScheduleModel.ts +0 -47
|
@@ -0,0 +1,65 @@
|
|
|
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.DiplomaticServiceDetails = exports.DiplomaticServiceType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
+
var DiplomaticServiceType;
|
|
17
|
+
(function (DiplomaticServiceType) {
|
|
18
|
+
DiplomaticServiceType["TRANSFER_TO_LONG_TERM_MISSION"] = "Transfer to Long Term Mission";
|
|
19
|
+
DiplomaticServiceType["MISSION_TRAVEL"] = "Mission Travel";
|
|
20
|
+
DiplomaticServiceType["DIPLOMATIC_PASSPORT"] = "Diplomatic Passport";
|
|
21
|
+
DiplomaticServiceType["PARCEL_SERVICES"] = "Parcel Services";
|
|
22
|
+
DiplomaticServiceType["DIPLOMATIC_CLUB_CARD"] = "Diplomatic Club Card";
|
|
23
|
+
DiplomaticServiceType["VACANCY_REGISTRATION"] = "Vacancy Registration";
|
|
24
|
+
DiplomaticServiceType["VACANCY_CANDIDATE"] = "Vacancy Candidate";
|
|
25
|
+
})(DiplomaticServiceType || (exports.DiplomaticServiceType = DiplomaticServiceType = {}));
|
|
26
|
+
let DiplomaticServiceDetails = class DiplomaticServiceDetails extends BaseModel_1.BaseModel {
|
|
27
|
+
constructor(diplomatic_request_id, service_type, service_data, service_id, sub_service_id) {
|
|
28
|
+
super();
|
|
29
|
+
this.diplomatic_request_id = diplomatic_request_id;
|
|
30
|
+
this.service_type = service_type;
|
|
31
|
+
this.service_data = service_data;
|
|
32
|
+
this.service_id = service_id;
|
|
33
|
+
this.sub_service_id = sub_service_id;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.DiplomaticServiceDetails = DiplomaticServiceDetails;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], DiplomaticServiceDetails.prototype, "diplomatic_request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticServiceType }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], DiplomaticServiceDetails.prototype, "service_type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], DiplomaticServiceDetails.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], DiplomaticServiceDetails.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], DiplomaticServiceDetails.prototype, "service_data", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.OneToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.serviceDetails),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
60
|
+
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
61
|
+
], DiplomaticServiceDetails.prototype, "diplomaticRequest", void 0);
|
|
62
|
+
exports.DiplomaticServiceDetails = DiplomaticServiceDetails = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_service_details' }),
|
|
64
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object])
|
|
65
|
+
], DiplomaticServiceDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DiplomaticSettings extends BaseModel {
|
|
3
|
+
service_id: number;
|
|
4
|
+
approval_level: number;
|
|
5
|
+
approver_role_id: number;
|
|
6
|
+
is_active: boolean;
|
|
7
|
+
sub_service_id: number;
|
|
8
|
+
department_id: number;
|
|
9
|
+
section_id: number;
|
|
10
|
+
constructor(service_id: number, approval_level: number, approver_role_id: number, sub_service_id: number, department_id: number, section_id: number);
|
|
11
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.DiplomaticSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DiplomaticSettings = class DiplomaticSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(service_id, approval_level, approver_role_id, sub_service_id, department_id, section_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.service_id = service_id;
|
|
19
|
+
this.approval_level = approval_level;
|
|
20
|
+
this.approver_role_id = approver_role_id;
|
|
21
|
+
this.is_active = true;
|
|
22
|
+
this.sub_service_id = sub_service_id;
|
|
23
|
+
this.department_id = department_id;
|
|
24
|
+
this.section_id = section_id;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.DiplomaticSettings = DiplomaticSettings;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], DiplomaticSettings.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], DiplomaticSettings.prototype, "approval_level", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], DiplomaticSettings.prototype, "approver_role_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], DiplomaticSettings.prototype, "is_active", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], DiplomaticSettings.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], DiplomaticSettings.prototype, "department_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], DiplomaticSettings.prototype, "section_id", void 0);
|
|
56
|
+
exports.DiplomaticSettings = DiplomaticSettings = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_settings' }),
|
|
58
|
+
__metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number])
|
|
59
|
+
], DiplomaticSettings);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum TitleCategory {
|
|
3
|
+
EMPLOYEE = "Employee",
|
|
4
|
+
NON_EMPLOYEE = "Non Employee"
|
|
5
|
+
}
|
|
6
|
+
export declare class DiplomaticTitles extends BaseModel {
|
|
7
|
+
title_name: string;
|
|
8
|
+
title_name_arabic: string | null;
|
|
9
|
+
category: TitleCategory;
|
|
10
|
+
is_active: boolean;
|
|
11
|
+
display_order: number | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.DiplomaticTitles = exports.TitleCategory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TitleCategory;
|
|
16
|
+
(function (TitleCategory) {
|
|
17
|
+
TitleCategory["EMPLOYEE"] = "Employee";
|
|
18
|
+
TitleCategory["NON_EMPLOYEE"] = "Non Employee";
|
|
19
|
+
})(TitleCategory || (exports.TitleCategory = TitleCategory = {}));
|
|
20
|
+
let DiplomaticTitles = class DiplomaticTitles extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.DiplomaticTitles = DiplomaticTitles;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DiplomaticTitles.prototype, "title_name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], DiplomaticTitles.prototype, "title_name_arabic", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: TitleCategory, nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DiplomaticTitles.prototype, "category", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], DiplomaticTitles.prototype, "is_active", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], DiplomaticTitles.prototype, "display_order", void 0);
|
|
43
|
+
exports.DiplomaticTitles = DiplomaticTitles = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_titles' })
|
|
45
|
+
], DiplomaticTitles);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
3
|
+
export declare enum DiplomaticWorkFlowStatus {
|
|
4
|
+
COMPLETED = "Completed",
|
|
5
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
6
|
+
PENDING = "Pending",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
FAILED = "Failed"
|
|
9
|
+
}
|
|
10
|
+
export declare class DiplomaticWorkFlow extends BaseModel {
|
|
11
|
+
diplomatic_request_id: number;
|
|
12
|
+
diplomatic_approval_id: number;
|
|
13
|
+
status: DiplomaticWorkFlowStatus;
|
|
14
|
+
approved_by_user_id: number;
|
|
15
|
+
content: string;
|
|
16
|
+
activity_date: Date;
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
sub_service_id: number | null;
|
|
19
|
+
diplomaticRequest?: DiplomaticRequests;
|
|
20
|
+
constructor(diplomatic_request_id: number, status: DiplomaticWorkFlowStatus, approved_by_user_id: number, content: string, service_id: number | null, sub_service_id: number | null);
|
|
21
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.DiplomaticWorkFlow = exports.DiplomaticWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
+
var DiplomaticWorkFlowStatus;
|
|
17
|
+
(function (DiplomaticWorkFlowStatus) {
|
|
18
|
+
DiplomaticWorkFlowStatus["COMPLETED"] = "Completed";
|
|
19
|
+
DiplomaticWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
20
|
+
DiplomaticWorkFlowStatus["PENDING"] = "Pending";
|
|
21
|
+
DiplomaticWorkFlowStatus["IN_PROGRESS"] = "In Progress";
|
|
22
|
+
DiplomaticWorkFlowStatus["FAILED"] = "Failed";
|
|
23
|
+
})(DiplomaticWorkFlowStatus || (exports.DiplomaticWorkFlowStatus = DiplomaticWorkFlowStatus = {}));
|
|
24
|
+
let DiplomaticWorkFlow = class DiplomaticWorkFlow extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(diplomatic_request_id, status, approved_by_user_id, content, service_id, sub_service_id) {
|
|
26
|
+
super();
|
|
27
|
+
this.diplomatic_request_id = diplomatic_request_id;
|
|
28
|
+
this.status = status;
|
|
29
|
+
this.approved_by_user_id = approved_by_user_id;
|
|
30
|
+
this.content = content;
|
|
31
|
+
this.diplomatic_approval_id = 0;
|
|
32
|
+
this.activity_date = new Date();
|
|
33
|
+
this.service_id = service_id;
|
|
34
|
+
this.sub_service_id = sub_service_id;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.DiplomaticWorkFlow = DiplomaticWorkFlow;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], DiplomaticWorkFlow.prototype, "diplomatic_request_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: 0 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], DiplomaticWorkFlow.prototype, "diplomatic_approval_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticWorkFlowStatus, default: DiplomaticWorkFlowStatus.NOT_YET_STARTED }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], DiplomaticWorkFlow.prototype, "status", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], DiplomaticWorkFlow.prototype, "approved_by_user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], DiplomaticWorkFlow.prototype, "content", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], DiplomaticWorkFlow.prototype, "activity_date", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], DiplomaticWorkFlow.prototype, "service_id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], DiplomaticWorkFlow.prototype, "sub_service_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.ManyToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.workflows),
|
|
72
|
+
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
73
|
+
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
74
|
+
], DiplomaticWorkFlow.prototype, "diplomaticRequest", void 0);
|
|
75
|
+
exports.DiplomaticWorkFlow = DiplomaticWorkFlow = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_work_flows' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, String, Number, String, Object, Object])
|
|
78
|
+
], DiplomaticWorkFlow);
|
|
@@ -70,10 +70,6 @@ __decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalStatus.PENDING, nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], EarlyCheckoutApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
-
__metadata("design:type", Boolean)
|
|
76
|
-
], EarlyCheckoutApprovalDetails.prototype, "is_allowed", void 0);
|
|
77
73
|
exports.EarlyCheckoutApprovalDetails = EarlyCheckoutApprovalDetails = __decorate([
|
|
78
74
|
(0, typeorm_1.Entity)({ name: 'early_checkout_approvals' })
|
|
79
75
|
], EarlyCheckoutApprovalDetails);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { EarlyCheckoutApprovalStatus } from './EarlyCheckoutApprovalModel';
|
|
3
2
|
export declare enum EarlyCheckoutMessageType {
|
|
4
3
|
TEXT = "text",
|
|
5
4
|
IMAGE = "image",
|
|
@@ -12,9 +11,6 @@ export declare class EarlyCheckoutRequestChat extends BaseModel {
|
|
|
12
11
|
service_id: number | null;
|
|
13
12
|
sub_service_id: number | null;
|
|
14
13
|
user_id: number;
|
|
15
|
-
role_id: number;
|
|
16
14
|
message: string;
|
|
17
15
|
messageType: EarlyCheckoutMessageType;
|
|
18
|
-
status: string;
|
|
19
|
-
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: EarlyCheckoutMessageType, status?: EarlyCheckoutApprovalStatus);
|
|
20
16
|
}
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.EarlyCheckoutRequestChat = exports.EarlyCheckoutMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const EarlyCheckoutApprovalModel_1 = require("./EarlyCheckoutApprovalModel");
|
|
16
15
|
var EarlyCheckoutMessageType;
|
|
17
16
|
(function (EarlyCheckoutMessageType) {
|
|
18
17
|
EarlyCheckoutMessageType["TEXT"] = "text";
|
|
@@ -22,17 +21,6 @@ var EarlyCheckoutMessageType;
|
|
|
22
21
|
EarlyCheckoutMessageType["LINK"] = "link";
|
|
23
22
|
})(EarlyCheckoutMessageType || (exports.EarlyCheckoutMessageType = EarlyCheckoutMessageType = {}));
|
|
24
23
|
let EarlyCheckoutRequestChat = class EarlyCheckoutRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
-
super();
|
|
27
|
-
this.request_id = request_id;
|
|
28
|
-
this.service_id = service_id || null;
|
|
29
|
-
this.sub_service_id = sub_service_id || null;
|
|
30
|
-
this.user_id = user_id;
|
|
31
|
-
this.role_id = role_id;
|
|
32
|
-
this.message = message;
|
|
33
|
-
this.messageType = messageType || EarlyCheckoutMessageType.TEXT;
|
|
34
|
-
this.status = status || EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalStatus.PENDING;
|
|
35
|
-
}
|
|
36
24
|
};
|
|
37
25
|
exports.EarlyCheckoutRequestChat = EarlyCheckoutRequestChat;
|
|
38
26
|
__decorate([
|
|
@@ -51,28 +39,14 @@ __decorate([
|
|
|
51
39
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
40
|
__metadata("design:type", Number)
|
|
53
41
|
], EarlyCheckoutRequestChat.prototype, "user_id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], EarlyCheckoutRequestChat.prototype, "role_id", void 0);
|
|
58
42
|
__decorate([
|
|
59
43
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
44
|
__metadata("design:type", String)
|
|
61
45
|
], EarlyCheckoutRequestChat.prototype, "message", void 0);
|
|
62
46
|
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({
|
|
64
|
-
type: 'enum',
|
|
65
|
-
enum: EarlyCheckoutMessageType,
|
|
66
|
-
default: EarlyCheckoutMessageType.TEXT,
|
|
67
|
-
nullable: false
|
|
68
|
-
}),
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutMessageType, default: EarlyCheckoutMessageType.TEXT, nullable: false }),
|
|
69
48
|
__metadata("design:type", String)
|
|
70
49
|
], EarlyCheckoutRequestChat.prototype, "messageType", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], EarlyCheckoutRequestChat.prototype, "status", void 0);
|
|
75
50
|
exports.EarlyCheckoutRequestChat = EarlyCheckoutRequestChat = __decorate([
|
|
76
|
-
(0, typeorm_1.Entity)({ name: 'early_checkout_chats' })
|
|
77
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_chats' })
|
|
78
52
|
], EarlyCheckoutRequestChat);
|
|
@@ -10,8 +10,4 @@ export declare class EarlyCheckoutWorkFlow extends BaseModel {
|
|
|
10
10
|
sub_service_id: number | null;
|
|
11
11
|
content: string;
|
|
12
12
|
status: EarlyCheckoutWorkFlowStatus;
|
|
13
|
-
user_id: number | null;
|
|
14
|
-
role_id: number | null;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
13
|
}
|
|
@@ -41,22 +41,6 @@ __decorate([
|
|
|
41
41
|
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutWorkFlowStatus, default: EarlyCheckoutWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], EarlyCheckoutWorkFlow.prototype, "status", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], EarlyCheckoutWorkFlow.prototype, "user_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], EarlyCheckoutWorkFlow.prototype, "role_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], EarlyCheckoutWorkFlow.prototype, "department_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], EarlyCheckoutWorkFlow.prototype, "section_id", void 0);
|
|
60
44
|
exports.EarlyCheckoutWorkFlow = EarlyCheckoutWorkFlow = __decorate([
|
|
61
45
|
(0, typeorm_1.Entity)({ name: 'early_checkout_workflows' })
|
|
62
46
|
], EarlyCheckoutWorkFlow);
|
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
import { FinancialRequests } from './FinancialRequestsModel';
|
|
3
|
-
export declare enum statusEnum {
|
|
4
|
-
PENDING = "Pending",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare enum messageTypeEnum {
|
|
9
|
-
TEXT = "text",
|
|
10
|
-
IMAGE = "image",
|
|
11
|
-
AUDIO = "audio",
|
|
12
|
-
VIDEO = "video"
|
|
13
|
-
}
|
|
14
3
|
export declare class FinancialChats extends BaseModel {
|
|
15
4
|
financial_request_id: number;
|
|
16
5
|
content: string;
|
|
17
6
|
sender_user_id: number;
|
|
18
|
-
role_id: number | null;
|
|
19
|
-
status: statusEnum | null;
|
|
20
|
-
message_type: messageTypeEnum | null;
|
|
21
|
-
sender_role_id: number | null;
|
|
22
7
|
financialRequest?: FinancialRequests;
|
|
23
|
-
constructor(financial_request_id: number, content: string, sender_user_id: number
|
|
8
|
+
constructor(financial_request_id: number, content: string, sender_user_id: number);
|
|
24
9
|
}
|
|
@@ -9,30 +9,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FinancialChats =
|
|
12
|
+
exports.FinancialChats = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
16
|
-
var statusEnum;
|
|
17
|
-
(function (statusEnum) {
|
|
18
|
-
statusEnum["PENDING"] = "Pending";
|
|
19
|
-
statusEnum["APPROVED"] = "Approved";
|
|
20
|
-
statusEnum["REJECTED"] = "Rejected";
|
|
21
|
-
})(statusEnum || (exports.statusEnum = statusEnum = {}));
|
|
22
|
-
var messageTypeEnum;
|
|
23
|
-
(function (messageTypeEnum) {
|
|
24
|
-
messageTypeEnum["TEXT"] = "text";
|
|
25
|
-
messageTypeEnum["IMAGE"] = "image";
|
|
26
|
-
messageTypeEnum["AUDIO"] = "audio";
|
|
27
|
-
messageTypeEnum["VIDEO"] = "video";
|
|
28
|
-
})(messageTypeEnum || (exports.messageTypeEnum = messageTypeEnum = {}));
|
|
29
16
|
let FinancialChats = class FinancialChats extends BaseModel_1.BaseModel {
|
|
30
|
-
constructor(financial_request_id, content, sender_user_id
|
|
17
|
+
constructor(financial_request_id, content, sender_user_id) {
|
|
31
18
|
super();
|
|
32
19
|
this.financial_request_id = financial_request_id;
|
|
33
20
|
this.content = content;
|
|
34
21
|
this.sender_user_id = sender_user_id;
|
|
35
|
-
this.sender_role_id = sender_role_id;
|
|
36
22
|
}
|
|
37
23
|
};
|
|
38
24
|
exports.FinancialChats = FinancialChats;
|
|
@@ -48,22 +34,6 @@ __decorate([
|
|
|
48
34
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
49
35
|
__metadata("design:type", Number)
|
|
50
36
|
], FinancialChats.prototype, "sender_user_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
-
__metadata("design:type", Object)
|
|
54
|
-
], FinancialChats.prototype, "role_id", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], FinancialChats.prototype, "status", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], FinancialChats.prototype, "message_type", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
65
|
-
__metadata("design:type", Object)
|
|
66
|
-
], FinancialChats.prototype, "sender_role_id", void 0);
|
|
67
37
|
__decorate([
|
|
68
38
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.chats),
|
|
69
39
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -71,5 +41,5 @@ __decorate([
|
|
|
71
41
|
], FinancialChats.prototype, "financialRequest", void 0);
|
|
72
42
|
exports.FinancialChats = FinancialChats = __decorate([
|
|
73
43
|
(0, typeorm_1.Entity)({ name: 'financial_chats' }),
|
|
74
|
-
__metadata("design:paramtypes", [Number, String, Number
|
|
44
|
+
__metadata("design:paramtypes", [Number, String, Number])
|
|
75
45
|
], FinancialChats);
|
|
@@ -41,7 +41,7 @@ export declare class FinancialRequests extends BaseModel {
|
|
|
41
41
|
payslipRequest?: PayslipRequests;
|
|
42
42
|
salaryCertificateRequest?: SalaryCertificateRequests;
|
|
43
43
|
allowanceRequest?: AllowanceRequests;
|
|
44
|
-
|
|
44
|
+
reimbursementRequest?: ReimbursementRequests;
|
|
45
45
|
bankAccountChangeRequest?: BankAccountChangeRequests;
|
|
46
46
|
chats?: FinancialChats[];
|
|
47
47
|
approvals?: FinancialApprovals[];
|
|
@@ -129,9 +129,9 @@ __decorate([
|
|
|
129
129
|
__metadata("design:type", Function)
|
|
130
130
|
], FinancialRequests.prototype, "allowanceRequest", void 0);
|
|
131
131
|
__decorate([
|
|
132
|
-
(0, typeorm_1.
|
|
133
|
-
__metadata("design:type",
|
|
134
|
-
], FinancialRequests.prototype, "
|
|
132
|
+
(0, typeorm_1.OneToOne)('ReimbursementRequests', 'financialRequest', { nullable: true }),
|
|
133
|
+
__metadata("design:type", Function)
|
|
134
|
+
], FinancialRequests.prototype, "reimbursementRequest", void 0);
|
|
135
135
|
__decorate([
|
|
136
136
|
(0, typeorm_1.OneToOne)('BankAccountChangeRequests', 'financialRequest', { nullable: true }),
|
|
137
137
|
__metadata("design:type", Function)
|
|
@@ -14,8 +14,6 @@ export declare class FinancialWorkFlow extends BaseModel {
|
|
|
14
14
|
approved_by_user_id: number;
|
|
15
15
|
content: string;
|
|
16
16
|
activity_date: Date;
|
|
17
|
-
approved_by_role_id: number;
|
|
18
|
-
step_order: number;
|
|
19
17
|
financialRequest?: FinancialRequests;
|
|
20
|
-
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string
|
|
18
|
+
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string);
|
|
21
19
|
}
|
|
@@ -22,7 +22,7 @@ var FinancialWorkFlowStatus;
|
|
|
22
22
|
FinancialWorkFlowStatus["FAILED"] = "Failed";
|
|
23
23
|
})(FinancialWorkFlowStatus || (exports.FinancialWorkFlowStatus = FinancialWorkFlowStatus = {}));
|
|
24
24
|
let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(financial_request_id, status, approved_by_user_id, content
|
|
25
|
+
constructor(financial_request_id, status, approved_by_user_id, content) {
|
|
26
26
|
super();
|
|
27
27
|
this.financial_request_id = financial_request_id;
|
|
28
28
|
this.status = status;
|
|
@@ -30,7 +30,6 @@ let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
|
30
30
|
this.content = content;
|
|
31
31
|
this.financial_approval_id = 0;
|
|
32
32
|
this.activity_date = new Date();
|
|
33
|
-
this.step_order = step_order;
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
exports.FinancialWorkFlow = FinancialWorkFlow;
|
|
@@ -58,14 +57,6 @@ __decorate([
|
|
|
58
57
|
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
59
58
|
__metadata("design:type", Date)
|
|
60
59
|
], FinancialWorkFlow.prototype, "activity_date", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
-
__metadata("design:type", Number)
|
|
64
|
-
], FinancialWorkFlow.prototype, "approved_by_role_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], FinancialWorkFlow.prototype, "step_order", void 0);
|
|
69
60
|
__decorate([
|
|
70
61
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.workflows),
|
|
71
62
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -73,5 +64,5 @@ __decorate([
|
|
|
73
64
|
], FinancialWorkFlow.prototype, "financialRequest", void 0);
|
|
74
65
|
exports.FinancialWorkFlow = FinancialWorkFlow = __decorate([
|
|
75
66
|
(0, typeorm_1.Entity)({ name: 'financial_work_flows' }),
|
|
76
|
-
__metadata("design:paramtypes", [Number, String, Number, String
|
|
67
|
+
__metadata("design:paramtypes", [Number, String, Number, String])
|
|
77
68
|
], FinancialWorkFlow);
|
|
@@ -2,16 +2,13 @@ import { BaseModel } from './BaseModel';
|
|
|
2
2
|
export declare enum ApprovalStatus {
|
|
3
3
|
PENDING = "Pending",
|
|
4
4
|
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
6
|
-
IN_PROGRESS = "In Progress"
|
|
5
|
+
REJECTED = "Rejected"
|
|
7
6
|
}
|
|
8
7
|
export declare class LeaveApprovalDetails extends BaseModel {
|
|
9
8
|
leave_request_id: number;
|
|
10
9
|
level: number;
|
|
11
10
|
approver_user_id: number;
|
|
12
11
|
approver_role_id: number;
|
|
13
|
-
delegate_user_id: number | null;
|
|
14
|
-
approved_by: number | null;
|
|
15
12
|
department_id: number;
|
|
16
13
|
section_id: number;
|
|
17
14
|
comment: string;
|
|
@@ -17,7 +17,6 @@ var ApprovalStatus;
|
|
|
17
17
|
ApprovalStatus["PENDING"] = "Pending";
|
|
18
18
|
ApprovalStatus["APPROVED"] = "Approved";
|
|
19
19
|
ApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
-
ApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
21
20
|
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
22
21
|
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
23
22
|
let LeaveApprovalDetails = class LeaveApprovalDetails extends BaseModel_1.BaseModel {
|
|
@@ -50,14 +49,6 @@ __decorate([
|
|
|
50
49
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
50
|
__metadata("design:type", Number)
|
|
52
51
|
], LeaveApprovalDetails.prototype, "approver_role_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], LeaveApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], LeaveApprovalDetails.prototype, "approved_by", void 0);
|
|
61
52
|
__decorate([
|
|
62
53
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
54
|
__metadata("design:type", Number)
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class LeaveAttachments extends BaseModel {
|
|
3
3
|
leave_request_id: number;
|
|
4
|
+
files: string;
|
|
4
5
|
attached_by_user_id: number;
|
|
5
|
-
|
|
6
|
-
file_name: string;
|
|
7
|
-
file_type: string;
|
|
8
|
-
file_size: number | null;
|
|
9
|
-
chat_id: number | null;
|
|
10
|
-
constructor(leave_request_id: number, file_url: string, file_name: string, file_type: string, file_size: number | null, chat_id: number | null, attached_by_user_id: number);
|
|
6
|
+
constructor(leave_request_id: number, files: string, attached_by_user_id: number);
|
|
11
7
|
}
|