@platform-modules/foreign-ministry 1.3.220 → 1.3.225
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 +10 -5
- package/dist/data-source.js +56 -0
- package/dist/index.d.ts +29 -1
- package/dist/index.js +35 -1
- package/dist/models/AppointmentRequestModel.d.ts +3 -0
- package/dist/models/AppointmentRequestModel.js +9 -0
- package/dist/models/ChildrensDetailsModel.d.ts +12 -0
- package/dist/models/{EmbassyMasterModel.js → ChildrensDetailsModel.js} +20 -39
- package/dist/models/ChildrensEducationApprovalModel.d.ts +22 -0
- package/dist/models/ChildrensEducationApprovalModel.js +84 -0
- package/dist/models/ChildrensEducationAttachmentModel.d.ts +11 -0
- package/dist/models/ChildrensEducationAttachmentModel.js +52 -0
- package/dist/models/ChildrensEducationChatModel.d.ts +19 -0
- package/dist/models/ChildrensEducationChatModel.js +77 -0
- package/dist/models/ChildrensEducationRequestModel.d.ts +18 -0
- package/dist/models/ChildrensEducationRequestModel.js +62 -0
- package/dist/models/ChildrensEducationWorkflowModel.d.ts +17 -0
- package/dist/models/ChildrensEducationWorkflowModel.js +67 -0
- package/dist/models/LMSExternalEntityTrainedPersonModel.d.ts +1 -0
- package/dist/models/LMSExternalEntityTrainedPersonModel.js +4 -0
- package/dist/models/MedicalExpensesApprovalModel.d.ts +22 -0
- package/dist/models/MedicalExpensesApprovalModel.js +84 -0
- package/dist/models/MedicalExpensesAttachmentModel.d.ts +11 -0
- package/dist/models/MedicalExpensesAttachmentModel.js +52 -0
- package/dist/models/MedicalExpensesChatModel.d.ts +19 -0
- package/dist/models/MedicalExpensesChatModel.js +77 -0
- package/dist/models/MedicalExpensesFamilyDetailsModel.d.ts +7 -0
- package/dist/models/MedicalExpensesFamilyDetailsModel.js +36 -0
- package/dist/models/MedicalExpensesRequestModel.d.ts +18 -0
- package/dist/models/MedicalExpensesRequestModel.js +62 -0
- package/dist/models/MedicalExpensesWorkflowModel.d.ts +17 -0
- package/dist/models/MedicalExpensesWorkflowModel.js +67 -0
- package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -0
- package/dist/models/RecruitmentDomesticWorkersApprovalModel.d.ts +22 -0
- package/dist/models/RecruitmentDomesticWorkersApprovalModel.js +84 -0
- package/dist/models/RecruitmentDomesticWorkersAttachmentModel.d.ts +11 -0
- package/dist/models/RecruitmentDomesticWorkersAttachmentModel.js +52 -0
- package/dist/models/RecruitmentDomesticWorkersChatModel.d.ts +19 -0
- package/dist/models/RecruitmentDomesticWorkersChatModel.js +77 -0
- package/dist/models/RecruitmentDomesticWorkersDetailsModel.d.ts +7 -0
- package/dist/models/RecruitmentDomesticWorkersDetailsModel.js +36 -0
- package/dist/models/RecruitmentDomesticWorkersRequestModel.d.ts +18 -0
- package/dist/models/RecruitmentDomesticWorkersRequestModel.js +62 -0
- package/dist/models/RecruitmentDomesticWorkersWorkflowModel.d.ts +17 -0
- package/dist/models/RecruitmentDomesticWorkersWorkflowModel.js +67 -0
- package/dist/models/TransferAllowanceApprovalModel.d.ts +22 -0
- package/dist/models/TransferAllowanceApprovalModel.js +84 -0
- package/dist/models/TransferAllowanceAttachmentModel.d.ts +11 -0
- package/dist/models/TransferAllowanceAttachmentModel.js +52 -0
- package/dist/models/TransferAllowanceChatModel.d.ts +19 -0
- package/dist/models/TransferAllowanceChatModel.js +77 -0
- package/dist/models/TransferAllowanceRequestModel.d.ts +24 -0
- package/dist/models/TransferAllowanceRequestModel.js +86 -0
- package/dist/models/TransferAllowanceWorkflowModel.d.ts +17 -0
- package/dist/models/TransferAllowanceWorkflowModel.js +67 -0
- package/dist/models/TransferSalaryBankAccountApprovalModel.d.ts +22 -0
- package/dist/models/TransferSalaryBankAccountApprovalModel.js +84 -0
- package/dist/models/TransferSalaryBankAccountAttachmentModel.d.ts +11 -0
- package/dist/models/TransferSalaryBankAccountAttachmentModel.js +52 -0
- package/dist/models/TransferSalaryBankAccountChatModel.d.ts +19 -0
- package/dist/models/TransferSalaryBankAccountChatModel.js +77 -0
- package/dist/models/TransferSalaryBankAccountRequestModel.d.ts +21 -0
- package/dist/models/TransferSalaryBankAccountRequestModel.js +74 -0
- package/dist/models/TransferSalaryBankAccountWorkflowModel.d.ts +17 -0
- package/dist/models/TransferSalaryBankAccountWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +56 -0
- package/src/index.ts +34 -1
- package/src/models/AppointmentRequestModel.ts +7 -0
- package/src/models/ChildrensDetailsModel.ts +32 -0
- package/src/models/ChildrensEducationApprovalModel.ts +56 -0
- package/src/models/ChildrensEducationAttachmentModel.ts +29 -0
- package/src/models/ChildrensEducationChatModel.ts +63 -0
- package/src/models/ChildrensEducationRequestModel.ts +40 -0
- package/src/models/ChildrensEducationWorkflowModel.ts +43 -0
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +3 -0
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MedicalExpensesApprovalModel.ts +56 -0
- package/src/models/MedicalExpensesAttachmentModel.ts +29 -0
- package/src/models/MedicalExpensesChatModel.ts +63 -0
- package/src/models/MedicalExpensesFamilyDetailsModel.ts +17 -0
- package/src/models/MedicalExpensesRequestModel.ts +40 -0
- package/src/models/MedicalExpensesWorkflowModel.ts +43 -0
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/ProjectModel.ts +65 -65
- package/src/models/RecruitmentDomesticWorkersApprovalModel.ts +56 -0
- package/src/models/RecruitmentDomesticWorkersAttachmentModel.ts +29 -0
- package/src/models/RecruitmentDomesticWorkersChatModel.ts +63 -0
- package/src/models/RecruitmentDomesticWorkersDetailsModel.ts +17 -0
- package/src/models/RecruitmentDomesticWorkersRequestModel.ts +40 -0
- package/src/models/RecruitmentDomesticWorkersWorkflowModel.ts +43 -0
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/src/models/TelephoneDirectoryModel.ts +20 -20
- package/src/models/TransferAllowanceApprovalModel.ts +56 -0
- package/src/models/TransferAllowanceAttachmentModel.ts +29 -0
- package/src/models/TransferAllowanceChatModel.ts +63 -0
- package/src/models/TransferAllowanceRequestModel.ts +58 -0
- package/src/models/TransferAllowanceWorkflowModel.ts +43 -0
- package/src/models/TransferSalaryBankAccountApprovalModel.ts +56 -0
- package/src/models/TransferSalaryBankAccountAttachmentModel.ts +29 -0
- package/src/models/TransferSalaryBankAccountChatModel.ts +63 -0
- package/src/models/TransferSalaryBankAccountRequestModel.ts +49 -0
- package/src/models/TransferSalaryBankAccountWorkflowModel.ts +43 -0
- package/dist/models/EmbassyMasterModel.d.ts +0 -16
- package/dist/models/UserDependentsModel.d.ts +0 -18
- package/dist/models/UserDependentsModel.js +0 -94
|
@@ -0,0 +1,77 @@
|
|
|
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.TransferSalaryBankAccountRequestChat = exports.TransferSalaryBankAccountMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TransferSalaryBankAccountMessageType;
|
|
16
|
+
(function (TransferSalaryBankAccountMessageType) {
|
|
17
|
+
TransferSalaryBankAccountMessageType["TEXT"] = "text";
|
|
18
|
+
TransferSalaryBankAccountMessageType["IMAGE"] = "image";
|
|
19
|
+
TransferSalaryBankAccountMessageType["VIDEO"] = "video";
|
|
20
|
+
TransferSalaryBankAccountMessageType["FILE"] = "file";
|
|
21
|
+
TransferSalaryBankAccountMessageType["LINK"] = "link";
|
|
22
|
+
})(TransferSalaryBankAccountMessageType || (exports.TransferSalaryBankAccountMessageType = TransferSalaryBankAccountMessageType = {}));
|
|
23
|
+
let TransferSalaryBankAccountRequestChat = class TransferSalaryBankAccountRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
25
|
+
super();
|
|
26
|
+
this.request_id = request_id;
|
|
27
|
+
this.service_id = service_id ?? null;
|
|
28
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
29
|
+
this.user_id = user_id;
|
|
30
|
+
this.role_id = role_id;
|
|
31
|
+
this.message = message;
|
|
32
|
+
this.messageType = messageType ?? TransferSalaryBankAccountMessageType.TEXT;
|
|
33
|
+
this.status = status ?? 'Pending';
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.TransferSalaryBankAccountRequestChat = TransferSalaryBankAccountRequestChat;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TransferSalaryBankAccountRequestChat.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], TransferSalaryBankAccountRequestChat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], TransferSalaryBankAccountRequestChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], TransferSalaryBankAccountRequestChat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], TransferSalaryBankAccountRequestChat.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], TransferSalaryBankAccountRequestChat.prototype, "message", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: TransferSalaryBankAccountMessageType,
|
|
65
|
+
default: TransferSalaryBankAccountMessageType.TEXT,
|
|
66
|
+
nullable: false,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], TransferSalaryBankAccountRequestChat.prototype, "messageType", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], TransferSalaryBankAccountRequestChat.prototype, "status", void 0);
|
|
74
|
+
exports.TransferSalaryBankAccountRequestChat = TransferSalaryBankAccountRequestChat = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)({ name: 'transfer_salary_bank_account_chats' }),
|
|
76
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
77
|
+
], TransferSalaryBankAccountRequestChat);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum TransferSalaryBankAccountRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
CANCELLED = "Cancelled"
|
|
9
|
+
}
|
|
10
|
+
export declare class TransferSalaryBankAccountRequests 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
|
+
status: TransferSalaryBankAccountRequestStatus;
|
|
17
|
+
workflow_execution_id: string | null;
|
|
18
|
+
domestic_worker_salary: string | null;
|
|
19
|
+
domestic_worker_name: string | null;
|
|
20
|
+
date_of_joining: string | null;
|
|
21
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.TransferSalaryBankAccountRequests = exports.TransferSalaryBankAccountRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TransferSalaryBankAccountRequestStatus;
|
|
16
|
+
(function (TransferSalaryBankAccountRequestStatus) {
|
|
17
|
+
TransferSalaryBankAccountRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
TransferSalaryBankAccountRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
TransferSalaryBankAccountRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
TransferSalaryBankAccountRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
TransferSalaryBankAccountRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
TransferSalaryBankAccountRequestStatus["CANCELLED"] = "Cancelled";
|
|
23
|
+
})(TransferSalaryBankAccountRequestStatus || (exports.TransferSalaryBankAccountRequestStatus = TransferSalaryBankAccountRequestStatus = {}));
|
|
24
|
+
let TransferSalaryBankAccountRequests = class TransferSalaryBankAccountRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.TransferSalaryBankAccountRequests = TransferSalaryBankAccountRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], TransferSalaryBankAccountRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], TransferSalaryBankAccountRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], TransferSalaryBankAccountRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], TransferSalaryBankAccountRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], TransferSalaryBankAccountRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
type: 'enum',
|
|
50
|
+
enum: TransferSalaryBankAccountRequestStatus,
|
|
51
|
+
default: TransferSalaryBankAccountRequestStatus.PENDING,
|
|
52
|
+
nullable: false,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], TransferSalaryBankAccountRequests.prototype, "status", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], TransferSalaryBankAccountRequests.prototype, "workflow_execution_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], TransferSalaryBankAccountRequests.prototype, "domestic_worker_salary", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], TransferSalaryBankAccountRequests.prototype, "domestic_worker_name", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], TransferSalaryBankAccountRequests.prototype, "date_of_joining", void 0);
|
|
72
|
+
exports.TransferSalaryBankAccountRequests = TransferSalaryBankAccountRequests = __decorate([
|
|
73
|
+
(0, typeorm_1.Entity)({ name: 'transfer_salary_bank_account_requests' })
|
|
74
|
+
], TransferSalaryBankAccountRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum TransferSalaryBankAccountWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class TransferSalaryBankAccountWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: TransferSalaryBankAccountWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.TransferSalaryBankAccountWorkFlow = exports.TransferSalaryBankAccountWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TransferSalaryBankAccountWorkFlowStatus;
|
|
16
|
+
(function (TransferSalaryBankAccountWorkFlowStatus) {
|
|
17
|
+
TransferSalaryBankAccountWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
TransferSalaryBankAccountWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
TransferSalaryBankAccountWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(TransferSalaryBankAccountWorkFlowStatus || (exports.TransferSalaryBankAccountWorkFlowStatus = TransferSalaryBankAccountWorkFlowStatus = {}));
|
|
21
|
+
let TransferSalaryBankAccountWorkFlow = class TransferSalaryBankAccountWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.TransferSalaryBankAccountWorkFlow = TransferSalaryBankAccountWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: 'enum',
|
|
43
|
+
enum: TransferSalaryBankAccountWorkFlowStatus,
|
|
44
|
+
default: TransferSalaryBankAccountWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TransferSalaryBankAccountWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.TransferSalaryBankAccountWorkFlow = TransferSalaryBankAccountWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'transfer_salary_bank_account_workflows' })
|
|
67
|
+
], TransferSalaryBankAccountWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -184,6 +184,34 @@ import { MeetingApprovalDetails } from './models/MeetingApprovalModel';
|
|
|
184
184
|
import { MeetingRequestAttachment } from './models/MeetingAttachmentModel';
|
|
185
185
|
import { MeetingRequestChat } from './models/MeetingChatModel';
|
|
186
186
|
import { MeetingWorkFlow } from './models/MeetingWorkflowModel';
|
|
187
|
+
import { ChildrensEducationRequests } from './models/ChildrensEducationRequestModel';
|
|
188
|
+
import { ChildrensDetails } from './models/ChildrensDetailsModel';
|
|
189
|
+
import { ChildrensEducationApprovalDetails } from './models/ChildrensEducationApprovalModel';
|
|
190
|
+
import { ChildrensEducationRequestAttachment } from './models/ChildrensEducationAttachmentModel';
|
|
191
|
+
import { ChildrensEducationRequestChat } from './models/ChildrensEducationChatModel';
|
|
192
|
+
import { ChildrensEducationWorkFlow } from './models/ChildrensEducationWorkflowModel';
|
|
193
|
+
import { MedicalExpensesRequests } from './models/MedicalExpensesRequestModel';
|
|
194
|
+
import { MedicalExpensesFamilyDetails } from './models/MedicalExpensesFamilyDetailsModel';
|
|
195
|
+
import { MedicalExpensesApprovalDetails } from './models/MedicalExpensesApprovalModel';
|
|
196
|
+
import { MedicalExpensesRequestAttachment } from './models/MedicalExpensesAttachmentModel';
|
|
197
|
+
import { MedicalExpensesRequestChat } from './models/MedicalExpensesChatModel';
|
|
198
|
+
import { MedicalExpensesWorkFlow } from './models/MedicalExpensesWorkflowModel';
|
|
199
|
+
import { RecruitmentDomesticWorkersRequests } from './models/RecruitmentDomesticWorkersRequestModel';
|
|
200
|
+
import { RecruitmentDomesticWorkersDetails } from './models/RecruitmentDomesticWorkersDetailsModel';
|
|
201
|
+
import { RecruitmentDomesticWorkersApprovalDetails } from './models/RecruitmentDomesticWorkersApprovalModel';
|
|
202
|
+
import { RecruitmentDomesticWorkersRequestAttachment } from './models/RecruitmentDomesticWorkersAttachmentModel';
|
|
203
|
+
import { RecruitmentDomesticWorkersRequestChat } from './models/RecruitmentDomesticWorkersChatModel';
|
|
204
|
+
import { RecruitmentDomesticWorkersWorkFlow } from './models/RecruitmentDomesticWorkersWorkflowModel';
|
|
205
|
+
import { TransferSalaryBankAccountRequests } from './models/TransferSalaryBankAccountRequestModel';
|
|
206
|
+
import { TransferSalaryBankAccountApprovalDetails } from './models/TransferSalaryBankAccountApprovalModel';
|
|
207
|
+
import { TransferSalaryBankAccountRequestAttachment } from './models/TransferSalaryBankAccountAttachmentModel';
|
|
208
|
+
import { TransferSalaryBankAccountRequestChat } from './models/TransferSalaryBankAccountChatModel';
|
|
209
|
+
import { TransferSalaryBankAccountWorkFlow } from './models/TransferSalaryBankAccountWorkflowModel';
|
|
210
|
+
import { TransferAllowanceRequests } from './models/TransferAllowanceRequestModel';
|
|
211
|
+
import { TransferAllowanceApprovalDetails } from './models/TransferAllowanceApprovalModel';
|
|
212
|
+
import { TransferAllowanceRequestAttachment } from './models/TransferAllowanceAttachmentModel';
|
|
213
|
+
import { TransferAllowanceRequestChat } from './models/TransferAllowanceChatModel';
|
|
214
|
+
import { TransferAllowanceWorkFlow } from './models/TransferAllowanceWorkflowModel';
|
|
187
215
|
import { MeetingAttendees } from './models/MeetingAttendeeModel';
|
|
188
216
|
import { MeetingDocumentsPermission } from './models/MeetingDocumentsPermissionModel';
|
|
189
217
|
import { AppointmentRequests } from './models/AppointmentRequestModel';
|
|
@@ -409,6 +437,34 @@ export const AppDataSource = new DataSource({
|
|
|
409
437
|
MeetingRequestAttachment,
|
|
410
438
|
MeetingRequestChat,
|
|
411
439
|
MeetingWorkFlow,
|
|
440
|
+
ChildrensEducationRequests,
|
|
441
|
+
ChildrensDetails,
|
|
442
|
+
ChildrensEducationApprovalDetails,
|
|
443
|
+
ChildrensEducationRequestAttachment,
|
|
444
|
+
ChildrensEducationRequestChat,
|
|
445
|
+
ChildrensEducationWorkFlow,
|
|
446
|
+
MedicalExpensesRequests,
|
|
447
|
+
MedicalExpensesFamilyDetails,
|
|
448
|
+
MedicalExpensesApprovalDetails,
|
|
449
|
+
MedicalExpensesRequestAttachment,
|
|
450
|
+
MedicalExpensesRequestChat,
|
|
451
|
+
MedicalExpensesWorkFlow,
|
|
452
|
+
RecruitmentDomesticWorkersRequests,
|
|
453
|
+
RecruitmentDomesticWorkersDetails,
|
|
454
|
+
RecruitmentDomesticWorkersApprovalDetails,
|
|
455
|
+
RecruitmentDomesticWorkersRequestAttachment,
|
|
456
|
+
RecruitmentDomesticWorkersRequestChat,
|
|
457
|
+
RecruitmentDomesticWorkersWorkFlow,
|
|
458
|
+
TransferSalaryBankAccountRequests,
|
|
459
|
+
TransferSalaryBankAccountApprovalDetails,
|
|
460
|
+
TransferSalaryBankAccountRequestAttachment,
|
|
461
|
+
TransferSalaryBankAccountRequestChat,
|
|
462
|
+
TransferSalaryBankAccountWorkFlow,
|
|
463
|
+
TransferAllowanceRequests,
|
|
464
|
+
TransferAllowanceApprovalDetails,
|
|
465
|
+
TransferAllowanceRequestAttachment,
|
|
466
|
+
TransferAllowanceRequestChat,
|
|
467
|
+
TransferAllowanceWorkFlow,
|
|
412
468
|
MeetingAttendees,
|
|
413
469
|
MeetingDocumentsPermission,
|
|
414
470
|
AppointmentRequests,
|
package/src/index.ts
CHANGED
|
@@ -280,8 +280,41 @@ export * from './models/MeetingChatModel';
|
|
|
280
280
|
export * from './models/MeetingWorkflowModel';
|
|
281
281
|
export * from './models/MeetingAttendeeModel';
|
|
282
282
|
export * from './models/MeetingDocumentsPermissionModel';
|
|
283
|
+
// Children's Education (Missions) Models
|
|
284
|
+
export * from './models/ChildrensEducationRequestModel';
|
|
285
|
+
export * from './models/ChildrensDetailsModel';
|
|
286
|
+
export * from './models/ChildrensEducationApprovalModel';
|
|
287
|
+
export * from './models/ChildrensEducationAttachmentModel';
|
|
288
|
+
export * from './models/ChildrensEducationChatModel';
|
|
289
|
+
export * from './models/ChildrensEducationWorkflowModel';
|
|
290
|
+
// Medical Expenses (Missions) Models
|
|
291
|
+
export * from './models/MedicalExpensesRequestModel';
|
|
292
|
+
export * from './models/MedicalExpensesFamilyDetailsModel';
|
|
293
|
+
export * from './models/MedicalExpensesApprovalModel';
|
|
294
|
+
export * from './models/MedicalExpensesAttachmentModel';
|
|
295
|
+
export * from './models/MedicalExpensesChatModel';
|
|
296
|
+
export * from './models/MedicalExpensesWorkflowModel';
|
|
297
|
+
// Recruitment Domestic Workers (Missions) Models
|
|
298
|
+
export * from './models/RecruitmentDomesticWorkersRequestModel';
|
|
299
|
+
export * from './models/RecruitmentDomesticWorkersDetailsModel';
|
|
300
|
+
export * from './models/RecruitmentDomesticWorkersApprovalModel';
|
|
301
|
+
export * from './models/RecruitmentDomesticWorkersAttachmentModel';
|
|
302
|
+
export * from './models/RecruitmentDomesticWorkersChatModel';
|
|
303
|
+
export * from './models/RecruitmentDomesticWorkersWorkflowModel';
|
|
304
|
+
// Transfer Salary Bank Account (Missions) Models
|
|
305
|
+
export * from './models/TransferSalaryBankAccountRequestModel';
|
|
306
|
+
export * from './models/TransferSalaryBankAccountApprovalModel';
|
|
307
|
+
export * from './models/TransferSalaryBankAccountAttachmentModel';
|
|
308
|
+
export * from './models/TransferSalaryBankAccountChatModel';
|
|
309
|
+
export * from './models/TransferSalaryBankAccountWorkflowModel';
|
|
310
|
+
// Transfer Allowance (Missions) Models
|
|
311
|
+
export * from './models/TransferAllowanceRequestModel';
|
|
312
|
+
export * from './models/TransferAllowanceApprovalModel';
|
|
313
|
+
export * from './models/TransferAllowanceAttachmentModel';
|
|
314
|
+
export * from './models/TransferAllowanceChatModel';
|
|
315
|
+
export * from './models/TransferAllowanceWorkflowModel';
|
|
283
316
|
// Appointment Models (export entities only to avoid name collisions)
|
|
284
|
-
export { AppointmentRequests } from './models/AppointmentRequestModel';
|
|
317
|
+
export { AppointmentRequests, AppointmentRequestStatus } from './models/AppointmentRequestModel';
|
|
285
318
|
export { AppointmentApprovalDetails } from './models/AppointmentApprovalModel';
|
|
286
319
|
export { AppointmentRequestAttachment } from './models/AppointmentAttachmentModel';
|
|
287
320
|
export { AppointmentRequestChat } from './models/AppointmentChatModel';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { RequestResourceSystem } from './MeetingRequestModel';
|
|
3
4
|
|
|
4
5
|
export enum AppointmentRequestStatus {
|
|
5
6
|
PENDING = 'Pending',
|
|
@@ -53,6 +54,12 @@ export class AppointmentRequests extends BaseModel {
|
|
|
53
54
|
@Column({ type: 'jsonb', nullable: true })
|
|
54
55
|
departments: number[] | null;
|
|
55
56
|
|
|
57
|
+
@Column({ type: 'int', nullable: true })
|
|
58
|
+
project_id: number | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'enum', enum: RequestResourceSystem, nullable: true })
|
|
61
|
+
request_resource_system: RequestResourceSystem | null;
|
|
62
|
+
|
|
56
63
|
@Column({ type: 'int', nullable: true })
|
|
57
64
|
receiving_department_id: number | null;
|
|
58
65
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'childrens_details' })
|
|
5
|
+
export class ChildrensDetails extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
10
|
+
child_name: string | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int', nullable: true })
|
|
13
|
+
age: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
+
country: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text', nullable: true })
|
|
19
|
+
purpose: string | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
22
|
+
school_name: string | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
|
|
25
|
+
cost: string | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
28
|
+
currency_type: string | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'text', nullable: true })
|
|
31
|
+
remark: string | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum ChildrensEducationApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'childrens_education_approvals' })
|
|
12
|
+
export class ChildrensEducationApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
type: 'enum',
|
|
48
|
+
enum: ChildrensEducationApprovalStatus,
|
|
49
|
+
default: ChildrensEducationApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: ChildrensEducationApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'childrens_education_attachments' })
|
|
5
|
+
export class ChildrensEducationRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'bigint', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum ChildrensEducationMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'childrens_education_chats' })
|
|
13
|
+
export class ChildrensEducationRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: ChildrensEducationMessageType,
|
|
35
|
+
default: ChildrensEducationMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: ChildrensEducationMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string;
|
|
42
|
+
|
|
43
|
+
constructor(
|
|
44
|
+
request_id: number,
|
|
45
|
+
user_id: number,
|
|
46
|
+
role_id: number,
|
|
47
|
+
message: string,
|
|
48
|
+
service_id?: number,
|
|
49
|
+
sub_service_id?: number,
|
|
50
|
+
messageType?: ChildrensEducationMessageType,
|
|
51
|
+
status?: string
|
|
52
|
+
) {
|
|
53
|
+
super();
|
|
54
|
+
this.request_id = request_id;
|
|
55
|
+
this.service_id = service_id ?? null;
|
|
56
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
57
|
+
this.user_id = user_id;
|
|
58
|
+
this.role_id = role_id;
|
|
59
|
+
this.message = message;
|
|
60
|
+
this.messageType = messageType ?? ChildrensEducationMessageType.TEXT;
|
|
61
|
+
this.status = status ?? 'Pending';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum ChildrensEducationRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
CANCELLED = 'Cancelled',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'childrens_education_requests' })
|
|
14
|
+
export class ChildrensEducationRequests extends BaseModel {
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({
|
|
31
|
+
type: 'enum',
|
|
32
|
+
enum: ChildrensEducationRequestStatus,
|
|
33
|
+
default: ChildrensEducationRequestStatus.PENDING,
|
|
34
|
+
nullable: false,
|
|
35
|
+
})
|
|
36
|
+
status: ChildrensEducationRequestStatus;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
}
|