@platform-modules/foreign-ministry 1.3.253 → 1.3.254
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 +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/models/RepatriationCitizensApprovalModel.d.ts +22 -0
- package/dist/models/RepatriationCitizensApprovalModel.js +84 -0
- package/dist/models/RepatriationCitizensAttachmentModel.d.ts +11 -0
- package/dist/models/RepatriationCitizensAttachmentModel.js +52 -0
- package/dist/models/RepatriationCitizensChatModel.d.ts +19 -0
- package/dist/models/RepatriationCitizensChatModel.js +77 -0
- package/dist/models/RepatriationCitizensRequestModel.d.ts +22 -0
- package/dist/models/RepatriationCitizensRequestModel.js +78 -0
- package/dist/models/RepatriationCitizensWorkflowModel.d.ts +17 -0
- package/dist/models/RepatriationCitizensWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +6 -0
- package/src/models/RepatriationCitizensApprovalModel.ts +56 -0
- package/src/models/RepatriationCitizensAttachmentModel.ts +29 -0
- package/src/models/RepatriationCitizensChatModel.ts +63 -0
- package/src/models/RepatriationCitizensRequestModel.ts +52 -0
- package/src/models/RepatriationCitizensWorkflowModel.ts +43 -0
package/dist/data-source.js
CHANGED
|
@@ -226,6 +226,11 @@ const HousingRentalAccommodationApprovalModel_1 = require("./models/HousingRenta
|
|
|
226
226
|
const HousingRentalAccommodationAttachmentModel_1 = require("./models/HousingRentalAccommodationAttachmentModel");
|
|
227
227
|
const HousingRentalAccommodationChatModel_1 = require("./models/HousingRentalAccommodationChatModel");
|
|
228
228
|
const HousingRentalAccommodationWorkflowModel_1 = require("./models/HousingRentalAccommodationWorkflowModel");
|
|
229
|
+
const RepatriationCitizensRequestModel_1 = require("./models/RepatriationCitizensRequestModel");
|
|
230
|
+
const RepatriationCitizensApprovalModel_1 = require("./models/RepatriationCitizensApprovalModel");
|
|
231
|
+
const RepatriationCitizensAttachmentModel_1 = require("./models/RepatriationCitizensAttachmentModel");
|
|
232
|
+
const RepatriationCitizensChatModel_1 = require("./models/RepatriationCitizensChatModel");
|
|
233
|
+
const RepatriationCitizensWorkflowModel_1 = require("./models/RepatriationCitizensWorkflowModel");
|
|
229
234
|
const MeetingAttendeeModel_1 = require("./models/MeetingAttendeeModel");
|
|
230
235
|
const MeetingDocumentsPermissionModel_1 = require("./models/MeetingDocumentsPermissionModel");
|
|
231
236
|
const AppointmentRequestModel_1 = require("./models/AppointmentRequestModel");
|
|
@@ -500,6 +505,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
500
505
|
HousingRentalAccommodationAttachmentModel_1.HousingRentalAccommodationRequestAttachment,
|
|
501
506
|
HousingRentalAccommodationChatModel_1.HousingRentalAccommodationRequestChat,
|
|
502
507
|
HousingRentalAccommodationWorkflowModel_1.HousingRentalAccommodationWorkFlow,
|
|
508
|
+
RepatriationCitizensRequestModel_1.RepatriationCitizensRequests,
|
|
509
|
+
RepatriationCitizensApprovalModel_1.RepatriationCitizensApprovalDetails,
|
|
510
|
+
RepatriationCitizensAttachmentModel_1.RepatriationCitizensRequestAttachment,
|
|
511
|
+
RepatriationCitizensChatModel_1.RepatriationCitizensRequestChat,
|
|
512
|
+
RepatriationCitizensWorkflowModel_1.RepatriationCitizensWorkFlow,
|
|
503
513
|
MeetingAttendeeModel_1.MeetingAttendees,
|
|
504
514
|
MeetingDocumentsPermissionModel_1.MeetingDocumentsPermission,
|
|
505
515
|
AppointmentRequestModel_1.AppointmentRequests,
|
package/dist/index.d.ts
CHANGED
|
@@ -321,6 +321,11 @@ export * from './models/HousingRentalAccommodationApprovalModel';
|
|
|
321
321
|
export * from './models/HousingRentalAccommodationAttachmentModel';
|
|
322
322
|
export * from './models/HousingRentalAccommodationChatModel';
|
|
323
323
|
export * from './models/HousingRentalAccommodationWorkflowModel';
|
|
324
|
+
export * from './models/RepatriationCitizensRequestModel';
|
|
325
|
+
export * from './models/RepatriationCitizensApprovalModel';
|
|
326
|
+
export * from './models/RepatriationCitizensAttachmentModel';
|
|
327
|
+
export * from './models/RepatriationCitizensChatModel';
|
|
328
|
+
export * from './models/RepatriationCitizensWorkflowModel';
|
|
324
329
|
export { AppointmentRequests, AppointmentRequestStatus } from './models/AppointmentRequestModel';
|
|
325
330
|
export { AppointmentApprovalDetails } from './models/AppointmentApprovalModel';
|
|
326
331
|
export { AppointmentRequestAttachment } from './models/AppointmentAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -386,6 +386,12 @@ __exportStar(require("./models/HousingRentalAccommodationApprovalModel"), export
|
|
|
386
386
|
__exportStar(require("./models/HousingRentalAccommodationAttachmentModel"), exports);
|
|
387
387
|
__exportStar(require("./models/HousingRentalAccommodationChatModel"), exports);
|
|
388
388
|
__exportStar(require("./models/HousingRentalAccommodationWorkflowModel"), exports);
|
|
389
|
+
// Repatriation of Citizens (Missions) Models
|
|
390
|
+
__exportStar(require("./models/RepatriationCitizensRequestModel"), exports);
|
|
391
|
+
__exportStar(require("./models/RepatriationCitizensApprovalModel"), exports);
|
|
392
|
+
__exportStar(require("./models/RepatriationCitizensAttachmentModel"), exports);
|
|
393
|
+
__exportStar(require("./models/RepatriationCitizensChatModel"), exports);
|
|
394
|
+
__exportStar(require("./models/RepatriationCitizensWorkflowModel"), exports);
|
|
389
395
|
// Appointment Models (export entities only to avoid name collisions)
|
|
390
396
|
var AppointmentRequestModel_1 = require("./models/AppointmentRequestModel");
|
|
391
397
|
Object.defineProperty(exports, "AppointmentRequests", { enumerable: true, get: function () { return AppointmentRequestModel_1.AppointmentRequests; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum RepatriationCitizensApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class RepatriationCitizensApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: RepatriationCitizensApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.RepatriationCitizensApprovalDetails = exports.RepatriationCitizensApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RepatriationCitizensApprovalStatus;
|
|
16
|
+
(function (RepatriationCitizensApprovalStatus) {
|
|
17
|
+
RepatriationCitizensApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
RepatriationCitizensApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
RepatriationCitizensApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
RepatriationCitizensApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(RepatriationCitizensApprovalStatus || (exports.RepatriationCitizensApprovalStatus = RepatriationCitizensApprovalStatus = {}));
|
|
22
|
+
let RepatriationCitizensApprovalDetails = class RepatriationCitizensApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.RepatriationCitizensApprovalDetails = RepatriationCitizensApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], RepatriationCitizensApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], RepatriationCitizensApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], RepatriationCitizensApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RepatriationCitizensApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], RepatriationCitizensApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], RepatriationCitizensApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], RepatriationCitizensApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], RepatriationCitizensApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], RepatriationCitizensApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RepatriationCitizensApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], RepatriationCitizensApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: RepatriationCitizensApprovalStatus,
|
|
73
|
+
default: RepatriationCitizensApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], RepatriationCitizensApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], RepatriationCitizensApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.RepatriationCitizensApprovalDetails = RepatriationCitizensApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'repatriation_citizens_approvals' })
|
|
84
|
+
], RepatriationCitizensApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class RepatriationCitizensRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.RepatriationCitizensRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let RepatriationCitizensRequestAttachment = class RepatriationCitizensRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.RepatriationCitizensRequestAttachment = RepatriationCitizensRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], RepatriationCitizensRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], RepatriationCitizensRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], RepatriationCitizensRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], RepatriationCitizensRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], RepatriationCitizensRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], RepatriationCitizensRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], RepatriationCitizensRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], RepatriationCitizensRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.RepatriationCitizensRequestAttachment = RepatriationCitizensRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'repatriation_citizens_attachments' })
|
|
52
|
+
], RepatriationCitizensRequestAttachment);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum RepatriationCitizensMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class RepatriationCitizensRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number;
|
|
15
|
+
message: string;
|
|
16
|
+
messageType: RepatriationCitizensMessageType;
|
|
17
|
+
status: string;
|
|
18
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: RepatriationCitizensMessageType, status?: string);
|
|
19
|
+
}
|
|
@@ -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.RepatriationCitizensRequestChat = exports.RepatriationCitizensMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RepatriationCitizensMessageType;
|
|
16
|
+
(function (RepatriationCitizensMessageType) {
|
|
17
|
+
RepatriationCitizensMessageType["TEXT"] = "text";
|
|
18
|
+
RepatriationCitizensMessageType["IMAGE"] = "image";
|
|
19
|
+
RepatriationCitizensMessageType["VIDEO"] = "video";
|
|
20
|
+
RepatriationCitizensMessageType["FILE"] = "file";
|
|
21
|
+
RepatriationCitizensMessageType["LINK"] = "link";
|
|
22
|
+
})(RepatriationCitizensMessageType || (exports.RepatriationCitizensMessageType = RepatriationCitizensMessageType = {}));
|
|
23
|
+
let RepatriationCitizensRequestChat = class RepatriationCitizensRequestChat 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 ?? RepatriationCitizensMessageType.TEXT;
|
|
33
|
+
this.status = status ?? 'Pending';
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.RepatriationCitizensRequestChat = RepatriationCitizensRequestChat;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RepatriationCitizensRequestChat.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], RepatriationCitizensRequestChat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], RepatriationCitizensRequestChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], RepatriationCitizensRequestChat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], RepatriationCitizensRequestChat.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], RepatriationCitizensRequestChat.prototype, "message", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: RepatriationCitizensMessageType,
|
|
65
|
+
default: RepatriationCitizensMessageType.TEXT,
|
|
66
|
+
nullable: false,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], RepatriationCitizensRequestChat.prototype, "messageType", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], RepatriationCitizensRequestChat.prototype, "status", void 0);
|
|
74
|
+
exports.RepatriationCitizensRequestChat = RepatriationCitizensRequestChat = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)({ name: 'repatriation_citizens_chats' }),
|
|
76
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
77
|
+
], RepatriationCitizensRequestChat);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum RepatriationCitizensRequestStatus {
|
|
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 RepatriationCitizensRequests 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: RepatriationCitizensRequestStatus;
|
|
17
|
+
workflow_execution_id: string | null;
|
|
18
|
+
name: string | null;
|
|
19
|
+
passport_or_id_number: string | null;
|
|
20
|
+
amount: string | null;
|
|
21
|
+
currency_type: string | null;
|
|
22
|
+
}
|
|
@@ -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.RepatriationCitizensRequests = exports.RepatriationCitizensRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RepatriationCitizensRequestStatus;
|
|
16
|
+
(function (RepatriationCitizensRequestStatus) {
|
|
17
|
+
RepatriationCitizensRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
RepatriationCitizensRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
RepatriationCitizensRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
RepatriationCitizensRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
RepatriationCitizensRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
RepatriationCitizensRequestStatus["CANCELLED"] = "Cancelled";
|
|
23
|
+
})(RepatriationCitizensRequestStatus || (exports.RepatriationCitizensRequestStatus = RepatriationCitizensRequestStatus = {}));
|
|
24
|
+
let RepatriationCitizensRequests = class RepatriationCitizensRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.RepatriationCitizensRequests = RepatriationCitizensRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], RepatriationCitizensRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], RepatriationCitizensRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], RepatriationCitizensRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], RepatriationCitizensRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], RepatriationCitizensRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
type: 'enum',
|
|
50
|
+
enum: RepatriationCitizensRequestStatus,
|
|
51
|
+
default: RepatriationCitizensRequestStatus.PENDING,
|
|
52
|
+
nullable: false,
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], RepatriationCitizensRequests.prototype, "status", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], RepatriationCitizensRequests.prototype, "workflow_execution_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], RepatriationCitizensRequests.prototype, "name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], RepatriationCitizensRequests.prototype, "passport_or_id_number", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], RepatriationCitizensRequests.prototype, "amount", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], RepatriationCitizensRequests.prototype, "currency_type", void 0);
|
|
76
|
+
exports.RepatriationCitizensRequests = RepatriationCitizensRequests = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)({ name: 'repatriation_citizens_requests' })
|
|
78
|
+
], RepatriationCitizensRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum RepatriationCitizensWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class RepatriationCitizensWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: RepatriationCitizensWorkFlowStatus;
|
|
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.RepatriationCitizensWorkFlow = exports.RepatriationCitizensWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RepatriationCitizensWorkFlowStatus;
|
|
16
|
+
(function (RepatriationCitizensWorkFlowStatus) {
|
|
17
|
+
RepatriationCitizensWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
RepatriationCitizensWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
RepatriationCitizensWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(RepatriationCitizensWorkFlowStatus || (exports.RepatriationCitizensWorkFlowStatus = RepatriationCitizensWorkFlowStatus = {}));
|
|
21
|
+
let RepatriationCitizensWorkFlow = class RepatriationCitizensWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.RepatriationCitizensWorkFlow = RepatriationCitizensWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RepatriationCitizensWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], RepatriationCitizensWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], RepatriationCitizensWorkFlow.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
|
+
], RepatriationCitizensWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: 'enum',
|
|
43
|
+
enum: RepatriationCitizensWorkFlowStatus,
|
|
44
|
+
default: RepatriationCitizensWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], RepatriationCitizensWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], RepatriationCitizensWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], RepatriationCitizensWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], RepatriationCitizensWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RepatriationCitizensWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.RepatriationCitizensWorkFlow = RepatriationCitizensWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'repatriation_citizens_workflows' })
|
|
67
|
+
], RepatriationCitizensWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -232,6 +232,11 @@ import { HousingRentalAccommodationApprovalDetails } from './models/HousingRenta
|
|
|
232
232
|
import { HousingRentalAccommodationRequestAttachment } from './models/HousingRentalAccommodationAttachmentModel';
|
|
233
233
|
import { HousingRentalAccommodationRequestChat } from './models/HousingRentalAccommodationChatModel';
|
|
234
234
|
import { HousingRentalAccommodationWorkFlow } from './models/HousingRentalAccommodationWorkflowModel';
|
|
235
|
+
import { RepatriationCitizensRequests } from './models/RepatriationCitizensRequestModel';
|
|
236
|
+
import { RepatriationCitizensApprovalDetails } from './models/RepatriationCitizensApprovalModel';
|
|
237
|
+
import { RepatriationCitizensRequestAttachment } from './models/RepatriationCitizensAttachmentModel';
|
|
238
|
+
import { RepatriationCitizensRequestChat } from './models/RepatriationCitizensChatModel';
|
|
239
|
+
import { RepatriationCitizensWorkFlow } from './models/RepatriationCitizensWorkflowModel';
|
|
235
240
|
import { MeetingAttendees } from './models/MeetingAttendeeModel';
|
|
236
241
|
import { MeetingDocumentsPermission } from './models/MeetingDocumentsPermissionModel';
|
|
237
242
|
import { AppointmentRequests } from './models/AppointmentRequestModel';
|
|
@@ -507,6 +512,11 @@ export const AppDataSource = new DataSource({
|
|
|
507
512
|
HousingRentalAccommodationRequestAttachment,
|
|
508
513
|
HousingRentalAccommodationRequestChat,
|
|
509
514
|
HousingRentalAccommodationWorkFlow,
|
|
515
|
+
RepatriationCitizensRequests,
|
|
516
|
+
RepatriationCitizensApprovalDetails,
|
|
517
|
+
RepatriationCitizensRequestAttachment,
|
|
518
|
+
RepatriationCitizensRequestChat,
|
|
519
|
+
RepatriationCitizensWorkFlow,
|
|
510
520
|
MeetingAttendees,
|
|
511
521
|
MeetingDocumentsPermission,
|
|
512
522
|
AppointmentRequests,
|
package/src/index.ts
CHANGED
|
@@ -333,6 +333,12 @@ export * from './models/HousingRentalAccommodationApprovalModel';
|
|
|
333
333
|
export * from './models/HousingRentalAccommodationAttachmentModel';
|
|
334
334
|
export * from './models/HousingRentalAccommodationChatModel';
|
|
335
335
|
export * from './models/HousingRentalAccommodationWorkflowModel';
|
|
336
|
+
// Repatriation of Citizens (Missions) Models
|
|
337
|
+
export * from './models/RepatriationCitizensRequestModel';
|
|
338
|
+
export * from './models/RepatriationCitizensApprovalModel';
|
|
339
|
+
export * from './models/RepatriationCitizensAttachmentModel';
|
|
340
|
+
export * from './models/RepatriationCitizensChatModel';
|
|
341
|
+
export * from './models/RepatriationCitizensWorkflowModel';
|
|
336
342
|
// Appointment Models (export entities only to avoid name collisions)
|
|
337
343
|
export { AppointmentRequests, AppointmentRequestStatus } from './models/AppointmentRequestModel';
|
|
338
344
|
export { AppointmentApprovalDetails } from './models/AppointmentApprovalModel';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum RepatriationCitizensApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'repatriation_citizens_approvals' })
|
|
12
|
+
export class RepatriationCitizensApprovalDetails 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: RepatriationCitizensApprovalStatus,
|
|
49
|
+
default: RepatriationCitizensApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: RepatriationCitizensApprovalStatus;
|
|
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: 'repatriation_citizens_attachments' })
|
|
5
|
+
export class RepatriationCitizensRequestAttachment 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 RepatriationCitizensMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'repatriation_citizens_chats' })
|
|
13
|
+
export class RepatriationCitizensRequestChat 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: RepatriationCitizensMessageType,
|
|
35
|
+
default: RepatriationCitizensMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: RepatriationCitizensMessageType;
|
|
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?: RepatriationCitizensMessageType,
|
|
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 ?? RepatriationCitizensMessageType.TEXT;
|
|
61
|
+
this.status = status ?? 'Pending';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum RepatriationCitizensRequestStatus {
|
|
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: 'repatriation_citizens_requests' })
|
|
14
|
+
export class RepatriationCitizensRequests 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: RepatriationCitizensRequestStatus,
|
|
33
|
+
default: RepatriationCitizensRequestStatus.PENDING,
|
|
34
|
+
nullable: false,
|
|
35
|
+
})
|
|
36
|
+
status: RepatriationCitizensRequestStatus;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
42
|
+
name: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
45
|
+
passport_or_id_number: string | null;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'varchar', length: 128, nullable: true })
|
|
48
|
+
amount: string | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'varchar', length: 64, nullable: true })
|
|
51
|
+
currency_type: string | null;
|
|
52
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum RepatriationCitizensWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'repatriation_citizens_workflows' })
|
|
11
|
+
export class RepatriationCitizensWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: RepatriationCitizensWorkFlowStatus,
|
|
27
|
+
default: RepatriationCitizensWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: RepatriationCitizensWorkFlowStatus;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'integer', nullable: true })
|
|
33
|
+
user_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'integer', nullable: true })
|
|
36
|
+
role_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'integer', nullable: true })
|
|
39
|
+
department_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'integer', nullable: true })
|
|
42
|
+
section_id: number | null;
|
|
43
|
+
}
|