@platform-modules/foreign-ministry 1.1.56 → 1.1.58
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 +34 -18
- package/dist/index.d.ts +24 -9
- package/dist/index.js +24 -9
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- package/dist/models/CurrencyModel.d.ts +10 -0
- package/dist/models/CurrencyModel.js +53 -0
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +1 -0
- package/dist/models/EarlyCheckoutApprovalModel.js +4 -0
- package/dist/models/EarlyCheckoutChatModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutChatModel.js +28 -2
- package/dist/models/EarlyCheckoutWorkflowModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutWorkflowModel.js +16 -0
- package/dist/models/FinancialApprovalsModel.d.ts +2 -1
- package/dist/models/FinancialApprovalsModel.js +7 -2
- package/dist/models/FinancialChatsModel.d.ts +16 -1
- package/dist/models/FinancialChatsModel.js +33 -3
- package/dist/models/FinancialRequestsModel.d.ts +1 -1
- package/dist/models/FinancialRequestsModel.js +3 -3
- package/dist/models/FinancialWorkFlowModel.d.ts +3 -1
- package/dist/models/FinancialWorkFlowModel.js +11 -2
- package/dist/models/GeneralServiceApprovalsModel.d.ts +26 -0
- package/dist/models/GeneralServiceApprovalsModel.js +109 -0
- package/dist/models/GeneralServiceAttachmentsModel.d.ts +10 -0
- package/dist/models/{DiplomaticAttachmentsModel.js → GeneralServiceAttachmentsModel.js} +18 -22
- package/dist/models/GeneralServiceChatsModel.d.ts +9 -0
- package/dist/models/{DiplomaticChatsModel.js → GeneralServiceChatsModel.js} +17 -21
- package/dist/models/GeneralServiceRequestsModel.d.ts +36 -0
- package/dist/models/GeneralServiceRequestsModel.js +137 -0
- package/dist/models/GeneralServiceWorkFlowModel.d.ts +21 -0
- package/dist/models/GeneralServiceWorkFlowModel.js +80 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HelpdeskCategoriesModel.d.ts +9 -0
- package/dist/models/{DiplomaticClubCardAttachmentModel.js → HelpdeskCategoriesModel.js} +27 -22
- package/dist/models/HelpdeskSubCategoriesModel.d.ts +10 -0
- package/dist/models/{PassportRequestAttachmentModel.js → HelpdeskSubCategoriesModel.js} +29 -29
- package/dist/models/IssueTypesModel.d.ts +10 -0
- package/dist/models/IssueTypesModel.js +54 -0
- package/dist/models/JobsModel.d.ts +17 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → JobsModel.js} +29 -16
- package/dist/models/LeaveApprovalsModel.d.ts +4 -1
- package/dist/models/LeaveApprovalsModel.js +9 -0
- package/dist/models/LeaveAttachmentsModel.d.ts +6 -2
- package/dist/models/LeaveAttachmentsModel.js +27 -7
- package/dist/models/LeaveChatModel.d.ts +5 -1
- package/dist/models/LeaveChatModel.js +22 -2
- package/dist/models/LeaveRequestModel.d.ts +12 -1
- package/dist/models/LeaveRequestModel.js +35 -0
- package/dist/models/LeaveWorkFlowModel.d.ts +5 -1
- package/dist/models/LeaveWorkFlowModel.js +22 -2
- package/dist/models/MounringLeaveRelationModel.d.ts +2 -1
- package/dist/models/MounringLeaveRelationModel.js +7 -2
- package/dist/models/ReimbursementRequestsModel.d.ts +2 -1
- package/dist/models/ReimbursementRequestsModel.js +9 -4
- package/dist/models/RoutingGroupsModel.d.ts +14 -0
- package/dist/models/RoutingGroupsModel.js +71 -0
- package/dist/models/StayAfterHoursApprovalModel.d.ts +1 -0
- package/dist/models/StayAfterHoursApprovalModel.js +4 -0
- package/dist/models/StayAfterHoursChatModel.d.ts +4 -0
- package/dist/models/StayAfterHoursChatModel.js +28 -2
- package/dist/models/StayAfterHoursWorkflowModel.d.ts +4 -0
- package/dist/models/StayAfterHoursWorkflowModel.js +16 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +21 -0
- package/dist/models/TelephoneDirectoryModel.js +108 -0
- package/dist/models/TransferMissionApprovalModel.d.ts +21 -0
- package/dist/models/TransferMissionApprovalModel.js +75 -0
- package/dist/models/TransferMissionAttachmentModel.d.ts +11 -0
- package/dist/models/TransferMissionAttachmentModel.js +52 -0
- package/dist/models/TransferMissionChatModel.d.ts +19 -0
- package/dist/models/TransferMissionChatModel.js +78 -0
- package/dist/models/TransferMissionRequestModel.d.ts +36 -0
- package/dist/models/TransferMissionRequestModel.js +132 -0
- package/dist/models/TransferMissionWorkflowModel.d.ts +17 -0
- package/dist/models/TransferMissionWorkflowModel.js +62 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +21 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +75 -0
- package/dist/models/UpdateAttendanceChatModel.d.ts +16 -0
- package/dist/models/UpdateAttendanceChatModel.js +52 -0
- package/dist/models/UpdateAttendanceRequestModel.d.ts +28 -0
- package/dist/models/UpdateAttendanceRequestModel.js +86 -0
- package/dist/models/UpdateAttendanceWorkflowModel.d.ts +13 -0
- package/dist/models/UpdateAttendanceWorkflowModel.js +46 -0
- package/dist/models/WorkScheduleModel.d.ts +19 -0
- package/dist/models/WorkScheduleModel.js +60 -0
- package/dist/models/WorkflowTask.d.ts +5 -2
- package/dist/models/WorkflowTask.js +28 -4
- package/dist/models/WorkflowTaskNames.d.ts +12 -3
- package/dist/models/WorkflowTaskNames.js +28 -9
- package/package.json +1 -1
- package/src/data-source.ts +45 -30
- package/src/index.ts +24 -9
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/CurrencyModel.ts +38 -0
- package/src/models/EarlyCheckoutApprovalModel.ts +3 -0
- package/src/models/EarlyCheckoutChatModel.ts +34 -1
- package/src/models/EarlyCheckoutWorkflowModel.ts +12 -0
- package/src/models/FinancialApprovalsModel.ts +6 -1
- package/src/models/FinancialChatsModel.ts +27 -1
- package/src/models/FinancialRequestsModel.ts +2 -2
- package/src/models/FinancialWorkFlowModel.ts +9 -1
- package/src/models/GeneralServiceApprovalsModel.ts +95 -0
- package/src/models/GeneralServiceAttachmentsModel.ts +43 -0
- package/src/models/GeneralServiceChatsModel.ts +39 -0
- package/src/models/GeneralServiceRequestsModel.ts +113 -0
- package/src/models/GeneralServiceWorkFlowModel.ts +78 -0
- package/src/models/GroupModel.ts +30 -0
- package/src/models/GroupNamesModel.ts +22 -0
- package/src/models/HelpdeskCategoriesModel.ts +35 -0
- package/src/models/HelpdeskSubCategoriesModel.ts +40 -0
- package/src/models/IssueTypesModel.ts +47 -0
- package/src/models/JobsModel.ts +37 -0
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/LeaveAttachmentsModel.ts +21 -5
- package/src/models/LeaveChatModel.ts +17 -1
- package/src/models/LeaveRequestModel.ts +29 -1
- package/src/models/LeaveWorkFlowModel.ts +17 -1
- package/src/models/MounringLeaveRelationModel.ts +5 -1
- package/src/models/ReimbursementRequestsModel.ts +8 -6
- package/src/models/RoutingGroupsModel.ts +67 -0
- package/src/models/StayAfterHoursApprovalModel.ts +3 -0
- package/src/models/StayAfterHoursChatModel.ts +34 -1
- package/src/models/StayAfterHoursWorkflowModel.ts +12 -0
- package/src/models/TelephoneDirectoryModel.ts +84 -0
- package/src/models/TransferMissionApprovalModel.ts +49 -0
- package/src/models/TransferMissionAttachmentModel.ts +31 -0
- package/src/models/TransferMissionChatModel.ts +66 -0
- package/src/models/TransferMissionRequestModel.ts +94 -0
- package/src/models/TransferMissionWorkflowModel.ts +39 -0
- package/src/models/UpdateAttendanceApprovalModel.ts +50 -0
- package/src/models/UpdateAttendanceChatModel.ts +35 -0
- package/src/models/UpdateAttendanceRequestModel.ts +63 -0
- package/src/models/UpdateAttendanceWorkflowModel.ts +28 -0
- package/src/models/WorkScheduleModel.ts +47 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -25
- package/dist/models/DiplomaticApprovalsModel.js +0 -95
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -12
- package/dist/models/DiplomaticChatsModel.d.ts +0 -11
- 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/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/DiplomaticRequestsModel.d.ts +0 -43
- package/dist/models/DiplomaticRequestsModel.js +0 -142
- 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 -21
- package/dist/models/DiplomaticWorkFlowModel.js +0 -78
- 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/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- 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 -78
- package/src/models/DiplomaticAttachmentsModel.ts +0 -45
- package/src/models/DiplomaticChatsModel.ts +0 -41
- package/src/models/DiplomaticRequestsModel.ts +0 -121
- package/src/models/DiplomaticServiceDetailsModel.ts +0 -51
- package/src/models/DiplomaticSettingsModel.ts +0 -45
- package/src/models/DiplomaticTitleModel.ts +0 -27
- package/src/models/DiplomaticWorkFlowModel.ts +0 -62
- package/src/models/SubscriptionAmountModel.ts +0 -95
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum MembershipType {
|
|
3
|
-
SINGLE = "Single",
|
|
4
|
-
FAMILY = "Family"
|
|
5
|
-
}
|
|
6
|
-
export declare enum RequestType {
|
|
7
|
-
EMPLOYEE_FAMILY = "Employee Family",
|
|
8
|
-
EMPLOYEE_SELF = "Employee Self",
|
|
9
|
-
NON_EMPLOYEE = "Non Employee"
|
|
10
|
-
}
|
|
11
|
-
export declare enum RequestStatus {
|
|
12
|
-
DRAFT = "Draft",
|
|
13
|
-
SUBMITTED = "Submitted",
|
|
14
|
-
PENDING = "Pending",
|
|
15
|
-
IN_PROGRESS = "In Progress",
|
|
16
|
-
APPROVED = "Approved",
|
|
17
|
-
REJECTED = "Rejected",
|
|
18
|
-
COMPLETED = "Completed",
|
|
19
|
-
CANCELLED = "Cancelled"
|
|
20
|
-
}
|
|
21
|
-
export declare enum DiplomaticClubCardApprovalStatus {
|
|
22
|
-
PENDING = "Pending",
|
|
23
|
-
APPROVED = "Approved",
|
|
24
|
-
REJECTED = "Rejected",
|
|
25
|
-
SKIPPED = "Skipped",
|
|
26
|
-
IN_PROGRESS = "In Progress"
|
|
27
|
-
}
|
|
28
|
-
export { DiplomaticWorkFlowStatus as DiplomaticClubCardWorkFlowStatus } from './DiplomaticWorkFlowModel';
|
|
29
|
-
export declare enum PassportType {
|
|
30
|
-
DIPLOMATIC = "Diplomatic Passport",
|
|
31
|
-
SERVICE = "Service passport"
|
|
32
|
-
}
|
|
33
|
-
export declare enum ApplicationFor {
|
|
34
|
-
SELF = "Self",
|
|
35
|
-
DEPENDENTS = "Dependents",
|
|
36
|
-
BOTH = "Both"
|
|
37
|
-
}
|
|
38
|
-
export declare enum PassportRequestType {
|
|
39
|
-
NEW = "New",
|
|
40
|
-
RENEWAL = "Renewal",
|
|
41
|
-
REPLACEMENT = "Replacement"
|
|
42
|
-
}
|
|
43
|
-
export declare enum PassportRequestStatus {
|
|
44
|
-
DRAFT = "Draft",
|
|
45
|
-
SUBMITTED = "Submitted",
|
|
46
|
-
PENDING = "Pending",
|
|
47
|
-
IN_PROGRESS = "In Progress",
|
|
48
|
-
APPROVED = "Approved",
|
|
49
|
-
REJECTED = "Rejected",
|
|
50
|
-
COMPLETED = "Completed",
|
|
51
|
-
CANCELLED = "Cancelled"
|
|
52
|
-
}
|
|
53
|
-
export declare enum PassportRequestApprovalStatus {
|
|
54
|
-
PENDING = "Pending",
|
|
55
|
-
APPROVED = "Approved",
|
|
56
|
-
REJECTED = "Rejected",
|
|
57
|
-
SKIPPED = "Skipped",
|
|
58
|
-
IN_PROGRESS = "In Progress"
|
|
59
|
-
}
|
|
60
|
-
export declare class SubscriptionAmounts extends BaseModel {
|
|
61
|
-
membership_type: MembershipType;
|
|
62
|
-
amount: number;
|
|
63
|
-
description: string | null;
|
|
64
|
-
is_active: boolean;
|
|
65
|
-
effective_from: Date | null;
|
|
66
|
-
effective_to: Date | null;
|
|
67
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SubscriptionAmounts = exports.PassportRequestApprovalStatus = exports.PassportRequestStatus = exports.PassportRequestType = exports.ApplicationFor = exports.PassportType = exports.DiplomaticClubCardWorkFlowStatus = exports.DiplomaticClubCardApprovalStatus = exports.RequestStatus = exports.RequestType = exports.MembershipType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var MembershipType;
|
|
16
|
-
(function (MembershipType) {
|
|
17
|
-
MembershipType["SINGLE"] = "Single";
|
|
18
|
-
MembershipType["FAMILY"] = "Family";
|
|
19
|
-
})(MembershipType || (exports.MembershipType = MembershipType = {}));
|
|
20
|
-
var RequestType;
|
|
21
|
-
(function (RequestType) {
|
|
22
|
-
RequestType["EMPLOYEE_FAMILY"] = "Employee Family";
|
|
23
|
-
RequestType["EMPLOYEE_SELF"] = "Employee Self";
|
|
24
|
-
RequestType["NON_EMPLOYEE"] = "Non Employee";
|
|
25
|
-
})(RequestType || (exports.RequestType = RequestType = {}));
|
|
26
|
-
var RequestStatus;
|
|
27
|
-
(function (RequestStatus) {
|
|
28
|
-
RequestStatus["DRAFT"] = "Draft";
|
|
29
|
-
RequestStatus["SUBMITTED"] = "Submitted";
|
|
30
|
-
RequestStatus["PENDING"] = "Pending";
|
|
31
|
-
RequestStatus["IN_PROGRESS"] = "In Progress";
|
|
32
|
-
RequestStatus["APPROVED"] = "Approved";
|
|
33
|
-
RequestStatus["REJECTED"] = "Rejected";
|
|
34
|
-
RequestStatus["COMPLETED"] = "Completed";
|
|
35
|
-
RequestStatus["CANCELLED"] = "Cancelled";
|
|
36
|
-
})(RequestStatus || (exports.RequestStatus = RequestStatus = {}));
|
|
37
|
-
var DiplomaticClubCardApprovalStatus;
|
|
38
|
-
(function (DiplomaticClubCardApprovalStatus) {
|
|
39
|
-
DiplomaticClubCardApprovalStatus["PENDING"] = "Pending";
|
|
40
|
-
DiplomaticClubCardApprovalStatus["APPROVED"] = "Approved";
|
|
41
|
-
DiplomaticClubCardApprovalStatus["REJECTED"] = "Rejected";
|
|
42
|
-
DiplomaticClubCardApprovalStatus["SKIPPED"] = "Skipped";
|
|
43
|
-
DiplomaticClubCardApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
44
|
-
})(DiplomaticClubCardApprovalStatus || (exports.DiplomaticClubCardApprovalStatus = DiplomaticClubCardApprovalStatus = {}));
|
|
45
|
-
// Export alias for compatibility
|
|
46
|
-
var DiplomaticWorkFlowModel_1 = require("./DiplomaticWorkFlowModel");
|
|
47
|
-
Object.defineProperty(exports, "DiplomaticClubCardWorkFlowStatus", { enumerable: true, get: function () { return DiplomaticWorkFlowModel_1.DiplomaticWorkFlowStatus; } });
|
|
48
|
-
// Passport Request Enums
|
|
49
|
-
var PassportType;
|
|
50
|
-
(function (PassportType) {
|
|
51
|
-
PassportType["DIPLOMATIC"] = "Diplomatic Passport";
|
|
52
|
-
PassportType["SERVICE"] = "Service passport";
|
|
53
|
-
})(PassportType || (exports.PassportType = PassportType = {}));
|
|
54
|
-
var ApplicationFor;
|
|
55
|
-
(function (ApplicationFor) {
|
|
56
|
-
ApplicationFor["SELF"] = "Self";
|
|
57
|
-
ApplicationFor["DEPENDENTS"] = "Dependents";
|
|
58
|
-
ApplicationFor["BOTH"] = "Both";
|
|
59
|
-
})(ApplicationFor || (exports.ApplicationFor = ApplicationFor = {}));
|
|
60
|
-
var PassportRequestType;
|
|
61
|
-
(function (PassportRequestType) {
|
|
62
|
-
PassportRequestType["NEW"] = "New";
|
|
63
|
-
PassportRequestType["RENEWAL"] = "Renewal";
|
|
64
|
-
PassportRequestType["REPLACEMENT"] = "Replacement";
|
|
65
|
-
})(PassportRequestType || (exports.PassportRequestType = PassportRequestType = {}));
|
|
66
|
-
var PassportRequestStatus;
|
|
67
|
-
(function (PassportRequestStatus) {
|
|
68
|
-
PassportRequestStatus["DRAFT"] = "Draft";
|
|
69
|
-
PassportRequestStatus["SUBMITTED"] = "Submitted";
|
|
70
|
-
PassportRequestStatus["PENDING"] = "Pending";
|
|
71
|
-
PassportRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
72
|
-
PassportRequestStatus["APPROVED"] = "Approved";
|
|
73
|
-
PassportRequestStatus["REJECTED"] = "Rejected";
|
|
74
|
-
PassportRequestStatus["COMPLETED"] = "Completed";
|
|
75
|
-
PassportRequestStatus["CANCELLED"] = "Cancelled";
|
|
76
|
-
})(PassportRequestStatus || (exports.PassportRequestStatus = PassportRequestStatus = {}));
|
|
77
|
-
var PassportRequestApprovalStatus;
|
|
78
|
-
(function (PassportRequestApprovalStatus) {
|
|
79
|
-
PassportRequestApprovalStatus["PENDING"] = "Pending";
|
|
80
|
-
PassportRequestApprovalStatus["APPROVED"] = "Approved";
|
|
81
|
-
PassportRequestApprovalStatus["REJECTED"] = "Rejected";
|
|
82
|
-
PassportRequestApprovalStatus["SKIPPED"] = "Skipped";
|
|
83
|
-
PassportRequestApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
84
|
-
})(PassportRequestApprovalStatus || (exports.PassportRequestApprovalStatus = PassportRequestApprovalStatus = {}));
|
|
85
|
-
let SubscriptionAmounts = class SubscriptionAmounts extends BaseModel_1.BaseModel {
|
|
86
|
-
};
|
|
87
|
-
exports.SubscriptionAmounts = SubscriptionAmounts;
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: MembershipType, nullable: false }),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], SubscriptionAmounts.prototype, "membership_type", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: false }),
|
|
94
|
-
__metadata("design:type", Number)
|
|
95
|
-
], SubscriptionAmounts.prototype, "amount", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
98
|
-
__metadata("design:type", Object)
|
|
99
|
-
], SubscriptionAmounts.prototype, "description", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
102
|
-
__metadata("design:type", Boolean)
|
|
103
|
-
], SubscriptionAmounts.prototype, "is_active", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
106
|
-
__metadata("design:type", Object)
|
|
107
|
-
], SubscriptionAmounts.prototype, "effective_from", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
110
|
-
__metadata("design:type", Object)
|
|
111
|
-
], SubscriptionAmounts.prototype, "effective_to", void 0);
|
|
112
|
-
exports.SubscriptionAmounts = SubscriptionAmounts = __decorate([
|
|
113
|
-
(0, typeorm_1.Entity)({ name: 'subscription_amounts' })
|
|
114
|
-
], SubscriptionAmounts);
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
4
|
-
|
|
5
|
-
export enum DiplomaticApprovalStatus {
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected",
|
|
9
|
-
SKIPPED = "Skipped",
|
|
10
|
-
IN_PROGRESS = "In Progress"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Entity({ name: 'diplomatic_approvals' })
|
|
14
|
-
export class DiplomaticApprovals extends BaseModel {
|
|
15
|
-
@Column({ type: 'int' })
|
|
16
|
-
diplomatic_request_id: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int' })
|
|
19
|
-
level: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
approver_user_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int' })
|
|
25
|
-
approver_role_id: number;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'text', nullable: true })
|
|
28
|
-
comment: string | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'enum', enum: DiplomaticApprovalStatus, default: DiplomaticApprovalStatus.PENDING })
|
|
31
|
-
approval_status: DiplomaticApprovalStatus;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'timestamp', nullable: true })
|
|
34
|
-
action_date: Date;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'int', nullable: true })
|
|
37
|
-
department_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'int', nullable: true })
|
|
40
|
-
section_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'int', nullable: true })
|
|
43
|
-
approved_by: number | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: 'int', nullable: true })
|
|
46
|
-
service_id: number | null;
|
|
47
|
-
|
|
48
|
-
@Column({ type: 'int', nullable: true })
|
|
49
|
-
sub_service_id: number | null;
|
|
50
|
-
|
|
51
|
-
@ManyToOne(() => DiplomaticRequests, dr => dr.approvals)
|
|
52
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
53
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
54
|
-
|
|
55
|
-
constructor(
|
|
56
|
-
diplomatic_request_id: number,
|
|
57
|
-
level: number,
|
|
58
|
-
approver_role_id: number,
|
|
59
|
-
approval_status: DiplomaticApprovalStatus,
|
|
60
|
-
department_id: number | null,
|
|
61
|
-
section_id: number | null,
|
|
62
|
-
approved_by: number | null,
|
|
63
|
-
service_id: number | null,
|
|
64
|
-
sub_service_id: number | null
|
|
65
|
-
) {
|
|
66
|
-
super();
|
|
67
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
68
|
-
this.level = level;
|
|
69
|
-
this.approver_role_id = approver_role_id;
|
|
70
|
-
this.approval_status = approval_status;
|
|
71
|
-
this.department_id = department_id;
|
|
72
|
-
this.section_id = section_id;
|
|
73
|
-
this.approved_by = approved_by;
|
|
74
|
-
this.service_id = service_id;
|
|
75
|
-
this.sub_service_id = sub_service_id;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'diplomatic_attachments' })
|
|
6
|
-
export class DiplomaticAttachments extends BaseModel {
|
|
7
|
-
@Column({ type: 'int' })
|
|
8
|
-
diplomatic_request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'varchar', length: 500 })
|
|
11
|
-
file_url: string;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', length: 255 })
|
|
14
|
-
file_name: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
17
|
-
file_type: string; // PDF, JPG, PNG, etc.
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
service_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'int', nullable: true })
|
|
23
|
-
sub_service_id: number | null;
|
|
24
|
-
|
|
25
|
-
@ManyToOne(() => DiplomaticRequests, dr => dr.attachments)
|
|
26
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
27
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
28
|
-
|
|
29
|
-
constructor(
|
|
30
|
-
diplomatic_request_id: number,
|
|
31
|
-
file_url: string,
|
|
32
|
-
file_name: string,
|
|
33
|
-
service_id: number | null,
|
|
34
|
-
sub_service_id: number | null
|
|
35
|
-
) {
|
|
36
|
-
super();
|
|
37
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
38
|
-
this.file_url = file_url;
|
|
39
|
-
this.file_name = file_name;
|
|
40
|
-
this.file_type = 'PDF';
|
|
41
|
-
this.service_id = service_id;
|
|
42
|
-
this.sub_service_id = sub_service_id;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'diplomatic_chats' })
|
|
6
|
-
export class DiplomaticChats extends BaseModel {
|
|
7
|
-
@Column({ type: 'int' })
|
|
8
|
-
diplomatic_request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'text' })
|
|
11
|
-
content: string;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'int' })
|
|
14
|
-
sender_user_id: number;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
sub_service_id: number | null;
|
|
21
|
-
|
|
22
|
-
@ManyToOne(() => DiplomaticRequests, dr => dr.chats)
|
|
23
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
24
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
25
|
-
|
|
26
|
-
constructor(
|
|
27
|
-
diplomatic_request_id: number,
|
|
28
|
-
content: string,
|
|
29
|
-
sender_user_id: number,
|
|
30
|
-
service_id: number | null,
|
|
31
|
-
sub_service_id: number | null
|
|
32
|
-
) {
|
|
33
|
-
super();
|
|
34
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
35
|
-
this.content = content;
|
|
36
|
-
this.sender_user_id = sender_user_id;
|
|
37
|
-
this.service_id = service_id;
|
|
38
|
-
this.sub_service_id = sub_service_id;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, OneToOne, OneToMany, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
// Import types only (not for runtime)
|
|
5
|
-
import type { DiplomaticServiceDetails } from './DiplomaticServiceDetailsModel';
|
|
6
|
-
import type { DiplomaticChats } from './DiplomaticChatsModel';
|
|
7
|
-
import type { DiplomaticApprovals } from './DiplomaticApprovalsModel';
|
|
8
|
-
import type { DiplomaticWorkFlow } from './DiplomaticWorkFlowModel';
|
|
9
|
-
import type { DiplomaticAttachments } from './DiplomaticAttachmentsModel';
|
|
10
|
-
|
|
11
|
-
export enum DiplomaticRequestStatus {
|
|
12
|
-
DRAFT = "Draft",
|
|
13
|
-
SUBMITTED = "Submitted",
|
|
14
|
-
PENDING = "Pending",
|
|
15
|
-
IN_PROGRESS = "In Progress",
|
|
16
|
-
APPROVED = "Approved",
|
|
17
|
-
REJECTED = "Rejected",
|
|
18
|
-
COMPLETED = "Completed",
|
|
19
|
-
CANCELLED = "Cancelled"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@Entity({ name: 'diplomatic_requests' })
|
|
23
|
-
export class DiplomaticRequests extends BaseModel {
|
|
24
|
-
@Column({ type: 'int' })
|
|
25
|
-
user_id: number;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'varchar', length: 100 })
|
|
28
|
-
employee_id: string;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'varchar', length: 255 })
|
|
31
|
-
employee_name: string;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
34
|
-
grade: string | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'int', nullable: true })
|
|
37
|
-
designation_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'int', nullable: true })
|
|
40
|
-
department_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'varchar', length: 255 })
|
|
43
|
-
email_address: string;
|
|
44
|
-
|
|
45
|
-
@Column({ type: 'varchar', length: 20 })
|
|
46
|
-
contact_number: string;
|
|
47
|
-
|
|
48
|
-
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
49
|
-
request_date: Date;
|
|
50
|
-
|
|
51
|
-
@Column({ type: 'enum', enum: DiplomaticRequestStatus, default: DiplomaticRequestStatus.PENDING })
|
|
52
|
-
request_status: DiplomaticRequestStatus;
|
|
53
|
-
|
|
54
|
-
@Column({ type: 'timestamp', nullable: true })
|
|
55
|
-
request_close_date: Date | null;
|
|
56
|
-
|
|
57
|
-
@Column({ type: 'text', nullable: true })
|
|
58
|
-
remarks: string | null;
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'int', nullable: true })
|
|
61
|
-
current_approval_level: number | null;
|
|
62
|
-
|
|
63
|
-
@Column({ type: 'int', nullable: true })
|
|
64
|
-
current_approver_id: number | null;
|
|
65
|
-
|
|
66
|
-
@Column({ type: 'int', nullable: true })
|
|
67
|
-
service_id: number | null;
|
|
68
|
-
|
|
69
|
-
@Column({ type: 'int', nullable: true })
|
|
70
|
-
sub_service_id: number | null;
|
|
71
|
-
|
|
72
|
-
@Column({ type: 'int', nullable: true })
|
|
73
|
-
section_id: number | null;
|
|
74
|
-
|
|
75
|
-
@Column({ type: 'int', nullable: true })
|
|
76
|
-
reporting_manager: number | null;
|
|
77
|
-
|
|
78
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
79
|
-
workflow_execution_id: string | null;
|
|
80
|
-
|
|
81
|
-
@OneToOne('DiplomaticServiceDetails', 'diplomaticRequest', { nullable: true })
|
|
82
|
-
serviceDetails?: DiplomaticServiceDetails;
|
|
83
|
-
|
|
84
|
-
@OneToMany('DiplomaticChats', 'diplomaticRequest')
|
|
85
|
-
chats?: DiplomaticChats[];
|
|
86
|
-
|
|
87
|
-
@OneToMany('DiplomaticApprovals', 'diplomaticRequest')
|
|
88
|
-
approvals?: DiplomaticApprovals[];
|
|
89
|
-
|
|
90
|
-
@OneToMany('DiplomaticWorkFlow', 'diplomaticRequest')
|
|
91
|
-
workflows?: DiplomaticWorkFlow[];
|
|
92
|
-
|
|
93
|
-
@OneToMany('DiplomaticAttachments', 'diplomaticRequest')
|
|
94
|
-
attachments?: DiplomaticAttachments[];
|
|
95
|
-
|
|
96
|
-
constructor(
|
|
97
|
-
user_id: number,
|
|
98
|
-
employee_id: string,
|
|
99
|
-
employee_name: string,
|
|
100
|
-
email_address: string,
|
|
101
|
-
contact_number: string,
|
|
102
|
-
service_id: number | null,
|
|
103
|
-
sub_service_id: number | null,
|
|
104
|
-
section_id: number | null,
|
|
105
|
-
reporting_manager: number | null
|
|
106
|
-
) {
|
|
107
|
-
super();
|
|
108
|
-
this.user_id = user_id;
|
|
109
|
-
this.employee_id = employee_id;
|
|
110
|
-
this.employee_name = employee_name;
|
|
111
|
-
this.email_address = email_address;
|
|
112
|
-
this.contact_number = contact_number;
|
|
113
|
-
this.request_date = new Date();
|
|
114
|
-
this.request_status = DiplomaticRequestStatus.PENDING;
|
|
115
|
-
this.service_id = service_id;
|
|
116
|
-
this.sub_service_id = sub_service_id;
|
|
117
|
-
this.section_id = section_id;
|
|
118
|
-
this.reporting_manager = reporting_manager;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, OneToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
4
|
-
|
|
5
|
-
export enum DiplomaticServiceType {
|
|
6
|
-
TRANSFER_TO_LONG_TERM_MISSION = "Transfer to Long Term Mission",
|
|
7
|
-
MISSION_TRAVEL = "Mission Travel",
|
|
8
|
-
DIPLOMATIC_PASSPORT = "Diplomatic Passport",
|
|
9
|
-
PARCEL_SERVICES = "Parcel Services",
|
|
10
|
-
DIPLOMATIC_CLUB_CARD = "Diplomatic Club Card",
|
|
11
|
-
VACANCY_REGISTRATION = "Vacancy Registration",
|
|
12
|
-
VACANCY_CANDIDATE = "Vacancy Candidate"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@Entity({ name: 'diplomatic_service_details' })
|
|
16
|
-
export class DiplomaticServiceDetails extends BaseModel {
|
|
17
|
-
@Column({ type: 'int', unique: true })
|
|
18
|
-
diplomatic_request_id: number;
|
|
19
|
-
|
|
20
|
-
@Column({ type: 'enum', enum: DiplomaticServiceType })
|
|
21
|
-
service_type: DiplomaticServiceType;
|
|
22
|
-
|
|
23
|
-
@Column({ type: 'int', nullable: true })
|
|
24
|
-
service_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'int', nullable: true })
|
|
27
|
-
sub_service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'jsonb', nullable: true })
|
|
30
|
-
service_data: any; // Stores all service-specific data as JSON
|
|
31
|
-
|
|
32
|
-
@OneToOne(() => DiplomaticRequests, dr => dr.serviceDetails)
|
|
33
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
34
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
35
|
-
|
|
36
|
-
constructor(
|
|
37
|
-
diplomatic_request_id: number,
|
|
38
|
-
service_type: DiplomaticServiceType,
|
|
39
|
-
service_data: any,
|
|
40
|
-
service_id: number | null,
|
|
41
|
-
sub_service_id: number | null
|
|
42
|
-
) {
|
|
43
|
-
super();
|
|
44
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
45
|
-
this.service_type = service_type;
|
|
46
|
-
this.service_data = service_data;
|
|
47
|
-
this.service_id = service_id;
|
|
48
|
-
this.sub_service_id = sub_service_id;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'diplomatic_settings' })
|
|
5
|
-
export class DiplomaticSettings extends BaseModel {
|
|
6
|
-
@Column({ type: 'int' })
|
|
7
|
-
service_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'int' })
|
|
10
|
-
approval_level: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'int' })
|
|
13
|
-
approver_role_id: number;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'boolean', default: true })
|
|
16
|
-
is_active: boolean;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: true })
|
|
19
|
-
sub_service_id: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
department_id: number;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
section_id: number;
|
|
26
|
-
|
|
27
|
-
constructor(
|
|
28
|
-
service_id: number,
|
|
29
|
-
approval_level: number,
|
|
30
|
-
approver_role_id: number,
|
|
31
|
-
sub_service_id: number,
|
|
32
|
-
department_id: number,
|
|
33
|
-
section_id: number
|
|
34
|
-
) {
|
|
35
|
-
super();
|
|
36
|
-
this.service_id = service_id;
|
|
37
|
-
this.approval_level = approval_level;
|
|
38
|
-
this.approver_role_id = approver_role_id;
|
|
39
|
-
this.is_active = true;
|
|
40
|
-
this.sub_service_id = sub_service_id;
|
|
41
|
-
this.department_id = department_id;
|
|
42
|
-
this.section_id = section_id;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum TitleCategory {
|
|
5
|
-
EMPLOYEE = "Employee",
|
|
6
|
-
NON_EMPLOYEE = "Non Employee"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Entity({ name: 'diplomatic_titles' })
|
|
10
|
-
export class DiplomaticTitles extends BaseModel {
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
13
|
-
title_name: string; // Agent or Equivalent, Ambassador, etc.
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
16
|
-
title_name_arabic: string | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'enum', enum: TitleCategory, nullable: false })
|
|
19
|
-
category: TitleCategory; // Employee or Non Employee
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
22
|
-
is_active: boolean;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
display_order: number | null;
|
|
26
|
-
}
|
|
27
|
-
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
4
|
-
|
|
5
|
-
export enum DiplomaticWorkFlowStatus {
|
|
6
|
-
COMPLETED = "Completed",
|
|
7
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
8
|
-
PENDING = "Pending",
|
|
9
|
-
IN_PROGRESS = "In Progress",
|
|
10
|
-
FAILED = "Failed"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Entity({ name: 'diplomatic_work_flows' })
|
|
14
|
-
export class DiplomaticWorkFlow extends BaseModel {
|
|
15
|
-
@Column({ type: 'int' })
|
|
16
|
-
diplomatic_request_id: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: true, default: 0 })
|
|
19
|
-
diplomatic_approval_id: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'enum', enum: DiplomaticWorkFlowStatus, default: DiplomaticWorkFlowStatus.NOT_YET_STARTED })
|
|
22
|
-
status: DiplomaticWorkFlowStatus;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
approved_by_user_id: number;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'varchar', length: 500 })
|
|
28
|
-
content: string;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
31
|
-
activity_date: Date;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'int', nullable: true })
|
|
34
|
-
service_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'int', nullable: true })
|
|
37
|
-
sub_service_id: number | null;
|
|
38
|
-
|
|
39
|
-
@ManyToOne(() => DiplomaticRequests, dr => dr.workflows)
|
|
40
|
-
@JoinColumn({ name: 'diplomatic_request_id' })
|
|
41
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
42
|
-
|
|
43
|
-
constructor(
|
|
44
|
-
diplomatic_request_id: number,
|
|
45
|
-
status: DiplomaticWorkFlowStatus,
|
|
46
|
-
approved_by_user_id: number,
|
|
47
|
-
content: string,
|
|
48
|
-
service_id: number | null,
|
|
49
|
-
sub_service_id: number | null
|
|
50
|
-
) {
|
|
51
|
-
super();
|
|
52
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
53
|
-
this.status = status;
|
|
54
|
-
this.approved_by_user_id = approved_by_user_id;
|
|
55
|
-
this.content = content;
|
|
56
|
-
this.diplomatic_approval_id = 0;
|
|
57
|
-
this.activity_date = new Date();
|
|
58
|
-
this.service_id = service_id;
|
|
59
|
-
this.sub_service_id = sub_service_id;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|