@platform-modules/foreign-ministry 1.3.252 → 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/.env +12 -5
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/models/MediaApprovalModel.d.ts +2 -0
- package/dist/models/MediaApprovalModel.js +4 -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 +24 -24
- package/src/data-source.ts +564 -554
- package/src/index.ts +410 -404
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/DocumentationFileModel.ts +40 -40
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MediaApprovalModel.ts +4 -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/ProjectContactsModel.ts +51 -51
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/ProjectTasksModel.ts +75 -75
- 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/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/dist/models/MissionTravelClassConfigModel.d.ts +0 -10
- package/dist/models/MissionTravelClassConfigModel.js +0 -50
- package/dist/models/MissionTravelPerdiemModel.d.ts +0 -10
- package/dist/models/MissionTravelPerdiemModel.js +0 -54
package/.env
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
# DB_HOST=localhost
|
|
2
2
|
# DB_PORT=5432
|
|
3
3
|
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=
|
|
4
|
+
# DB_PASS=Fa@123
|
|
5
5
|
# DB_NAME=FM
|
|
6
6
|
|
|
7
|
-
DB_HOST
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
DB_HOST=164.52.222.169
|
|
8
|
+
DB_PORT=5432
|
|
9
|
+
DB_USER=postgres_admin_user
|
|
10
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
+
DB_NAME=FM
|
|
12
|
+
|
|
13
|
+
# DB_HOST=216.48.187.46
|
|
14
|
+
# DB_PORT=5432
|
|
15
|
+
# DB_USER=adminuser
|
|
16
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
17
|
+
# DB_NAME=FM_QA
|
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; } });
|
|
@@ -20,4 +20,6 @@ export declare class MediaApprovalDetails extends BaseModel {
|
|
|
20
20
|
approval_status: MediaApprovalStatus;
|
|
21
21
|
is_allowed: boolean;
|
|
22
22
|
task_name: string;
|
|
23
|
+
/** Conductor workflow task instance id (unique per execution); set when the HUMAN task is scheduled and used for precise completion. */
|
|
24
|
+
conductor_task_id: string | null;
|
|
23
25
|
}
|
|
@@ -83,6 +83,10 @@ __decorate([
|
|
|
83
83
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
84
84
|
__metadata("design:type", String)
|
|
85
85
|
], MediaApprovalDetails.prototype, "task_name", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ name: 'conductor_task_id', type: 'varchar', length: 128, nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], MediaApprovalDetails.prototype, "conductor_task_id", void 0);
|
|
86
90
|
exports.MediaApprovalDetails = MediaApprovalDetails = __decorate([
|
|
87
91
|
(0, typeorm_1.Entity)({ name: 'media_approvals' })
|
|
88
92
|
], MediaApprovalDetails);
|
|
@@ -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
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@platform-modules/foreign-ministry",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"dev": "ts-node src/scripts.ts"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"moment-timezone": "^0.6.0",
|
|
15
|
-
"pg": "^8.16.0",
|
|
16
|
-
"typeorm": "^0.3.17"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/moment-timezone": "^0.5.30",
|
|
20
|
-
"dotenv": "^16.5.0",
|
|
21
|
-
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.2.0"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@platform-modules/foreign-ministry",
|
|
3
|
+
"version": "1.3.254",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"dev": "ts-node src/scripts.ts"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"moment-timezone": "^0.6.0",
|
|
15
|
+
"pg": "^8.16.0",
|
|
16
|
+
"typeorm": "^0.3.17"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/moment-timezone": "^0.5.30",
|
|
20
|
+
"dotenv": "^16.5.0",
|
|
21
|
+
"ts-node": "^10.9.2",
|
|
22
|
+
"typescript": "^5.2.0"
|
|
23
|
+
}
|
|
24
|
+
}
|