@platform-modules/foreign-ministry 1.3.254 → 1.3.256
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 +5 -0
- package/dist/models/AssistanceCitizensAbroadApprovalModel.d.ts +22 -0
- package/dist/models/AssistanceCitizensAbroadApprovalModel.js +84 -0
- package/dist/models/AssistanceCitizensAbroadAttachmentModel.d.ts +11 -0
- package/dist/models/AssistanceCitizensAbroadAttachmentModel.js +52 -0
- package/dist/models/AssistanceCitizensAbroadChatModel.d.ts +19 -0
- package/dist/models/AssistanceCitizensAbroadChatModel.js +78 -0
- package/dist/models/AssistanceCitizensAbroadRequestModel.d.ts +32 -0
- package/dist/models/AssistanceCitizensAbroadRequestModel.js +102 -0
- package/dist/models/AssistanceCitizensAbroadWorkflowModel.d.ts +17 -0
- package/dist/models/AssistanceCitizensAbroadWorkflowModel.js +67 -0
- package/dist/models/ResignationTerminationRequestModel.d.ts +1 -0
- package/dist/models/ResignationTerminationRequestModel.js +4 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +5 -0
- package/src/models/AssistanceCitizensAbroadApprovalModel.ts +56 -0
- package/src/models/AssistanceCitizensAbroadAttachmentModel.ts +29 -0
- package/src/models/AssistanceCitizensAbroadChatModel.ts +64 -0
- package/src/models/AssistanceCitizensAbroadRequestModel.ts +73 -0
- package/src/models/AssistanceCitizensAbroadWorkflowModel.ts +43 -0
- package/src/models/ResignationTerminationRequestModel.ts +3 -0
package/dist/data-source.js
CHANGED
|
@@ -111,6 +111,11 @@ const RegisterCandidateAttachmentModel_1 = require("./models/RegisterCandidateAt
|
|
|
111
111
|
const RegisterCandidateChatModel_1 = require("./models/RegisterCandidateChatModel");
|
|
112
112
|
const RegisterCandidateWorkflowModel_1 = require("./models/RegisterCandidateWorkflowModel");
|
|
113
113
|
const RegisterCandidateExperienceActivityModel_1 = require("./models/RegisterCandidateExperienceActivityModel");
|
|
114
|
+
const AssistanceCitizensAbroadRequestModel_1 = require("./models/AssistanceCitizensAbroadRequestModel");
|
|
115
|
+
const AssistanceCitizensAbroadApprovalModel_1 = require("./models/AssistanceCitizensAbroadApprovalModel");
|
|
116
|
+
const AssistanceCitizensAbroadAttachmentModel_1 = require("./models/AssistanceCitizensAbroadAttachmentModel");
|
|
117
|
+
const AssistanceCitizensAbroadChatModel_1 = require("./models/AssistanceCitizensAbroadChatModel");
|
|
118
|
+
const AssistanceCitizensAbroadWorkflowModel_1 = require("./models/AssistanceCitizensAbroadWorkflowModel");
|
|
114
119
|
const ResignationTerminationRequestModel_1 = require("./models/ResignationTerminationRequestModel");
|
|
115
120
|
const ResignationTerminationApprovalModel_1 = require("./models/ResignationTerminationApprovalModel");
|
|
116
121
|
const ResignationTerminationAttachmentModel_1 = require("./models/ResignationTerminationAttachmentModel");
|
|
@@ -390,6 +395,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
390
395
|
RegisterCandidateChatModel_1.RegisterCandidateRequestChat,
|
|
391
396
|
RegisterCandidateWorkflowModel_1.RegisterCandidateWorkFlow,
|
|
392
397
|
RegisterCandidateExperienceActivityModel_1.RegisterCandidateExperienceActivity,
|
|
398
|
+
AssistanceCitizensAbroadRequestModel_1.AssistanceCitizensAbroadRequests,
|
|
399
|
+
AssistanceCitizensAbroadApprovalModel_1.AssistanceCitizensAbroadApprovalDetails,
|
|
400
|
+
AssistanceCitizensAbroadAttachmentModel_1.AssistanceCitizensAbroadRequestAttachment,
|
|
401
|
+
AssistanceCitizensAbroadChatModel_1.AssistanceCitizensAbroadRequestChat,
|
|
402
|
+
AssistanceCitizensAbroadWorkflowModel_1.AssistanceCitizensAbroadWorkFlow,
|
|
393
403
|
ResignationTerminationRequestModel_1.ResignationTerminationRequests,
|
|
394
404
|
ResignationTerminationApprovalModel_1.ResignationTerminationApprovalDetails,
|
|
395
405
|
ResignationTerminationAttachmentModel_1.ResignationTerminationRequestAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,11 @@ export * from './models/RegisterCandidateChatModel';
|
|
|
113
113
|
export * from './models/RegisterCandidateWorkflowModel';
|
|
114
114
|
export * from './models/RegisterCandidateExperienceActivityModel';
|
|
115
115
|
export { RegisterCandidateExperienceActivity } from './models/RegisterCandidateExperienceActivityModel';
|
|
116
|
+
export * from './models/AssistanceCitizensAbroadRequestModel';
|
|
117
|
+
export * from './models/AssistanceCitizensAbroadApprovalModel';
|
|
118
|
+
export * from './models/AssistanceCitizensAbroadAttachmentModel';
|
|
119
|
+
export * from './models/AssistanceCitizensAbroadChatModel';
|
|
120
|
+
export * from './models/AssistanceCitizensAbroadWorkflowModel';
|
|
116
121
|
export * from './models/ResignationTerminationRequestModel';
|
|
117
122
|
export * from './models/ResignationTerminationApprovalModel';
|
|
118
123
|
export * from './models/ResignationTerminationAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -131,6 +131,11 @@ __exportStar(require("./models/RegisterCandidateWorkflowModel"), exports);
|
|
|
131
131
|
__exportStar(require("./models/RegisterCandidateExperienceActivityModel"), exports);
|
|
132
132
|
var RegisterCandidateExperienceActivityModel_1 = require("./models/RegisterCandidateExperienceActivityModel");
|
|
133
133
|
Object.defineProperty(exports, "RegisterCandidateExperienceActivity", { enumerable: true, get: function () { return RegisterCandidateExperienceActivityModel_1.RegisterCandidateExperienceActivity; } });
|
|
134
|
+
__exportStar(require("./models/AssistanceCitizensAbroadRequestModel"), exports);
|
|
135
|
+
__exportStar(require("./models/AssistanceCitizensAbroadApprovalModel"), exports);
|
|
136
|
+
__exportStar(require("./models/AssistanceCitizensAbroadAttachmentModel"), exports);
|
|
137
|
+
__exportStar(require("./models/AssistanceCitizensAbroadChatModel"), exports);
|
|
138
|
+
__exportStar(require("./models/AssistanceCitizensAbroadWorkflowModel"), exports);
|
|
134
139
|
__exportStar(require("./models/ResignationTerminationRequestModel"), exports);
|
|
135
140
|
__exportStar(require("./models/ResignationTerminationApprovalModel"), exports);
|
|
136
141
|
__exportStar(require("./models/ResignationTerminationAttachmentModel"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AssistanceCitizensAbroadApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class AssistanceCitizensAbroadApprovalDetails 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: AssistanceCitizensAbroadApprovalStatus;
|
|
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.AssistanceCitizensAbroadApprovalDetails = exports.AssistanceCitizensAbroadApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AssistanceCitizensAbroadApprovalStatus;
|
|
16
|
+
(function (AssistanceCitizensAbroadApprovalStatus) {
|
|
17
|
+
AssistanceCitizensAbroadApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
AssistanceCitizensAbroadApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AssistanceCitizensAbroadApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
AssistanceCitizensAbroadApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(AssistanceCitizensAbroadApprovalStatus || (exports.AssistanceCitizensAbroadApprovalStatus = AssistanceCitizensAbroadApprovalStatus = {}));
|
|
22
|
+
let AssistanceCitizensAbroadApprovalDetails = class AssistanceCitizensAbroadApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.AssistanceCitizensAbroadApprovalDetails = AssistanceCitizensAbroadApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AssistanceCitizensAbroadApprovalDetails.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
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: AssistanceCitizensAbroadApprovalStatus,
|
|
73
|
+
default: AssistanceCitizensAbroadApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], AssistanceCitizensAbroadApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.AssistanceCitizensAbroadApprovalDetails = AssistanceCitizensAbroadApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'assistance_citizens_abroad_approvals' })
|
|
84
|
+
], AssistanceCitizensAbroadApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class AssistanceCitizensAbroadRequestAttachment 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.AssistanceCitizensAbroadRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let AssistanceCitizensAbroadRequestAttachment = class AssistanceCitizensAbroadRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.AssistanceCitizensAbroadRequestAttachment = AssistanceCitizensAbroadRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], AssistanceCitizensAbroadRequestAttachment.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
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], AssistanceCitizensAbroadRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.AssistanceCitizensAbroadRequestAttachment = AssistanceCitizensAbroadRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'assistance_citizens_abroad_attachments' })
|
|
52
|
+
], AssistanceCitizensAbroadRequestAttachment);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AssistanceCitizensAbroadMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class AssistanceCitizensAbroadRequestChat 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: AssistanceCitizensAbroadMessageType;
|
|
17
|
+
status: string;
|
|
18
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AssistanceCitizensAbroadMessageType, status?: string);
|
|
19
|
+
}
|
|
@@ -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.AssistanceCitizensAbroadRequestChat = exports.AssistanceCitizensAbroadMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const AssistanceCitizensAbroadApprovalModel_1 = require("./AssistanceCitizensAbroadApprovalModel");
|
|
16
|
+
var AssistanceCitizensAbroadMessageType;
|
|
17
|
+
(function (AssistanceCitizensAbroadMessageType) {
|
|
18
|
+
AssistanceCitizensAbroadMessageType["TEXT"] = "text";
|
|
19
|
+
AssistanceCitizensAbroadMessageType["IMAGE"] = "image";
|
|
20
|
+
AssistanceCitizensAbroadMessageType["VIDEO"] = "video";
|
|
21
|
+
AssistanceCitizensAbroadMessageType["FILE"] = "file";
|
|
22
|
+
AssistanceCitizensAbroadMessageType["LINK"] = "link";
|
|
23
|
+
})(AssistanceCitizensAbroadMessageType || (exports.AssistanceCitizensAbroadMessageType = AssistanceCitizensAbroadMessageType = {}));
|
|
24
|
+
let AssistanceCitizensAbroadRequestChat = class AssistanceCitizensAbroadRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || AssistanceCitizensAbroadMessageType.TEXT;
|
|
34
|
+
this.status = status || AssistanceCitizensAbroadApprovalModel_1.AssistanceCitizensAbroadApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.AssistanceCitizensAbroadRequestChat = AssistanceCitizensAbroadRequestChat;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "request_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "role_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "message", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: AssistanceCitizensAbroadMessageType,
|
|
66
|
+
default: AssistanceCitizensAbroadMessageType.TEXT,
|
|
67
|
+
nullable: false,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AssistanceCitizensAbroadRequestChat.prototype, "status", void 0);
|
|
75
|
+
exports.AssistanceCitizensAbroadRequestChat = AssistanceCitizensAbroadRequestChat = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'assistance_citizens_abroad_chats' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
+
], AssistanceCitizensAbroadRequestChat);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AssistanceCitizensAbroadStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
/** Matches product: Tickets / Lawyer / Release / Cash Assistance / Other */
|
|
10
|
+
export declare enum AssistanceCitizensAbroadTypeOfAssistance {
|
|
11
|
+
TICKETS = "Tickets",
|
|
12
|
+
LAWYER = "Lawyer",
|
|
13
|
+
RELEASE = "Release",
|
|
14
|
+
CASH_ASSISTANCE = "Cash Assistance",
|
|
15
|
+
OTHER = "Other"
|
|
16
|
+
}
|
|
17
|
+
export declare class AssistanceCitizensAbroadRequests extends BaseModel {
|
|
18
|
+
req_user_department_id: number | null;
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
user_id: number;
|
|
23
|
+
citizen_name: string | null;
|
|
24
|
+
id_or_passport_number: string | null;
|
|
25
|
+
type_of_assistance: AssistanceCitizensAbroadTypeOfAssistance | null;
|
|
26
|
+
reason_for_request: string | null;
|
|
27
|
+
request_date: Date | null;
|
|
28
|
+
amount: string | null;
|
|
29
|
+
currency_type: string | null;
|
|
30
|
+
status: AssistanceCitizensAbroadStatus;
|
|
31
|
+
workflow_execution_id: string | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.AssistanceCitizensAbroadRequests = exports.AssistanceCitizensAbroadTypeOfAssistance = exports.AssistanceCitizensAbroadStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AssistanceCitizensAbroadStatus;
|
|
16
|
+
(function (AssistanceCitizensAbroadStatus) {
|
|
17
|
+
AssistanceCitizensAbroadStatus["PENDING"] = "Pending";
|
|
18
|
+
AssistanceCitizensAbroadStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
AssistanceCitizensAbroadStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
AssistanceCitizensAbroadStatus["APPROVED"] = "Approved";
|
|
21
|
+
AssistanceCitizensAbroadStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(AssistanceCitizensAbroadStatus || (exports.AssistanceCitizensAbroadStatus = AssistanceCitizensAbroadStatus = {}));
|
|
23
|
+
/** Matches product: Tickets / Lawyer / Release / Cash Assistance / Other */
|
|
24
|
+
var AssistanceCitizensAbroadTypeOfAssistance;
|
|
25
|
+
(function (AssistanceCitizensAbroadTypeOfAssistance) {
|
|
26
|
+
AssistanceCitizensAbroadTypeOfAssistance["TICKETS"] = "Tickets";
|
|
27
|
+
AssistanceCitizensAbroadTypeOfAssistance["LAWYER"] = "Lawyer";
|
|
28
|
+
AssistanceCitizensAbroadTypeOfAssistance["RELEASE"] = "Release";
|
|
29
|
+
AssistanceCitizensAbroadTypeOfAssistance["CASH_ASSISTANCE"] = "Cash Assistance";
|
|
30
|
+
AssistanceCitizensAbroadTypeOfAssistance["OTHER"] = "Other";
|
|
31
|
+
})(AssistanceCitizensAbroadTypeOfAssistance || (exports.AssistanceCitizensAbroadTypeOfAssistance = AssistanceCitizensAbroadTypeOfAssistance = {}));
|
|
32
|
+
let AssistanceCitizensAbroadRequests = class AssistanceCitizensAbroadRequests extends BaseModel_1.BaseModel {
|
|
33
|
+
};
|
|
34
|
+
exports.AssistanceCitizensAbroadRequests = AssistanceCitizensAbroadRequests;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], AssistanceCitizensAbroadRequests.prototype, "req_user_department_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AssistanceCitizensAbroadRequests.prototype, "req_user_section_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AssistanceCitizensAbroadRequests.prototype, "service_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], AssistanceCitizensAbroadRequests.prototype, "sub_service_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], AssistanceCitizensAbroadRequests.prototype, "user_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], AssistanceCitizensAbroadRequests.prototype, "citizen_name", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], AssistanceCitizensAbroadRequests.prototype, "id_or_passport_number", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({
|
|
65
|
+
type: 'enum',
|
|
66
|
+
enum: AssistanceCitizensAbroadTypeOfAssistance,
|
|
67
|
+
nullable: true,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], AssistanceCitizensAbroadRequests.prototype, "type_of_assistance", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], AssistanceCitizensAbroadRequests.prototype, "reason_for_request", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], AssistanceCitizensAbroadRequests.prototype, "request_date", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], AssistanceCitizensAbroadRequests.prototype, "amount", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], AssistanceCitizensAbroadRequests.prototype, "currency_type", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({
|
|
89
|
+
type: 'enum',
|
|
90
|
+
enum: AssistanceCitizensAbroadStatus,
|
|
91
|
+
default: AssistanceCitizensAbroadStatus.PENDING,
|
|
92
|
+
nullable: false,
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], AssistanceCitizensAbroadRequests.prototype, "status", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], AssistanceCitizensAbroadRequests.prototype, "workflow_execution_id", void 0);
|
|
100
|
+
exports.AssistanceCitizensAbroadRequests = AssistanceCitizensAbroadRequests = __decorate([
|
|
101
|
+
(0, typeorm_1.Entity)({ name: 'assistance_citizens_abroad_requests' })
|
|
102
|
+
], AssistanceCitizensAbroadRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AssistanceCitizensAbroadWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class AssistanceCitizensAbroadWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: AssistanceCitizensAbroadWorkFlowStatus;
|
|
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.AssistanceCitizensAbroadWorkFlow = exports.AssistanceCitizensAbroadWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AssistanceCitizensAbroadWorkFlowStatus;
|
|
16
|
+
(function (AssistanceCitizensAbroadWorkFlowStatus) {
|
|
17
|
+
AssistanceCitizensAbroadWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
AssistanceCitizensAbroadWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
AssistanceCitizensAbroadWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(AssistanceCitizensAbroadWorkFlowStatus || (exports.AssistanceCitizensAbroadWorkFlowStatus = AssistanceCitizensAbroadWorkFlowStatus = {}));
|
|
21
|
+
let AssistanceCitizensAbroadWorkFlow = class AssistanceCitizensAbroadWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.AssistanceCitizensAbroadWorkFlow = AssistanceCitizensAbroadWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], AssistanceCitizensAbroadWorkFlow.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
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: 'enum',
|
|
43
|
+
enum: AssistanceCitizensAbroadWorkFlowStatus,
|
|
44
|
+
default: AssistanceCitizensAbroadWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AssistanceCitizensAbroadWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.AssistanceCitizensAbroadWorkFlow = AssistanceCitizensAbroadWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'assistance_citizens_abroad_workflows' })
|
|
67
|
+
], AssistanceCitizensAbroadWorkFlow);
|
|
@@ -12,6 +12,7 @@ export declare class ResignationTerminationRequests extends BaseModel {
|
|
|
12
12
|
service_id: number | null;
|
|
13
13
|
sub_service_id: number | null;
|
|
14
14
|
user_id: number;
|
|
15
|
+
employee_id: number | null;
|
|
15
16
|
employee_type: string | null;
|
|
16
17
|
employee_name: string | null;
|
|
17
18
|
reason: string | null;
|
|
@@ -43,6 +43,10 @@ __decorate([
|
|
|
43
43
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
44
44
|
__metadata("design:type", Number)
|
|
45
45
|
], ResignationTerminationRequests.prototype, "user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], ResignationTerminationRequests.prototype, "employee_id", void 0);
|
|
46
50
|
__decorate([
|
|
47
51
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
48
52
|
__metadata("design:type", Object)
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -116,6 +116,11 @@ import { RegisterCandidateRequestAttachment } from './models/RegisterCandidateAt
|
|
|
116
116
|
import { RegisterCandidateRequestChat } from './models/RegisterCandidateChatModel';
|
|
117
117
|
import { RegisterCandidateWorkFlow } from './models/RegisterCandidateWorkflowModel';
|
|
118
118
|
import { RegisterCandidateExperienceActivity } from './models/RegisterCandidateExperienceActivityModel';
|
|
119
|
+
import { AssistanceCitizensAbroadRequests } from './models/AssistanceCitizensAbroadRequestModel';
|
|
120
|
+
import { AssistanceCitizensAbroadApprovalDetails } from './models/AssistanceCitizensAbroadApprovalModel';
|
|
121
|
+
import { AssistanceCitizensAbroadRequestAttachment } from './models/AssistanceCitizensAbroadAttachmentModel';
|
|
122
|
+
import { AssistanceCitizensAbroadRequestChat } from './models/AssistanceCitizensAbroadChatModel';
|
|
123
|
+
import { AssistanceCitizensAbroadWorkFlow } from './models/AssistanceCitizensAbroadWorkflowModel';
|
|
119
124
|
import { ResignationTerminationRequests } from './models/ResignationTerminationRequestModel';
|
|
120
125
|
import { ResignationTerminationApprovalDetails } from './models/ResignationTerminationApprovalModel';
|
|
121
126
|
import { ResignationTerminationRequestAttachment } from './models/ResignationTerminationAttachmentModel';
|
|
@@ -397,6 +402,11 @@ export const AppDataSource = new DataSource({
|
|
|
397
402
|
RegisterCandidateRequestChat,
|
|
398
403
|
RegisterCandidateWorkFlow,
|
|
399
404
|
RegisterCandidateExperienceActivity,
|
|
405
|
+
AssistanceCitizensAbroadRequests,
|
|
406
|
+
AssistanceCitizensAbroadApprovalDetails,
|
|
407
|
+
AssistanceCitizensAbroadRequestAttachment,
|
|
408
|
+
AssistanceCitizensAbroadRequestChat,
|
|
409
|
+
AssistanceCitizensAbroadWorkFlow,
|
|
400
410
|
ResignationTerminationRequests,
|
|
401
411
|
ResignationTerminationApprovalDetails,
|
|
402
412
|
ResignationTerminationRequestAttachment,
|
package/src/index.ts
CHANGED
|
@@ -113,6 +113,11 @@ export * from './models/RegisterCandidateChatModel';
|
|
|
113
113
|
export * from './models/RegisterCandidateWorkflowModel';
|
|
114
114
|
export * from './models/RegisterCandidateExperienceActivityModel';
|
|
115
115
|
export {RegisterCandidateExperienceActivity} from './models/RegisterCandidateExperienceActivityModel';
|
|
116
|
+
export * from './models/AssistanceCitizensAbroadRequestModel';
|
|
117
|
+
export * from './models/AssistanceCitizensAbroadApprovalModel';
|
|
118
|
+
export * from './models/AssistanceCitizensAbroadAttachmentModel';
|
|
119
|
+
export * from './models/AssistanceCitizensAbroadChatModel';
|
|
120
|
+
export * from './models/AssistanceCitizensAbroadWorkflowModel';
|
|
116
121
|
export * from './models/ResignationTerminationRequestModel';
|
|
117
122
|
export * from './models/ResignationTerminationApprovalModel';
|
|
118
123
|
export * from './models/ResignationTerminationAttachmentModel';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AssistanceCitizensAbroadApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'assistance_citizens_abroad_approvals' })
|
|
12
|
+
export class AssistanceCitizensAbroadApprovalDetails 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: AssistanceCitizensAbroadApprovalStatus,
|
|
49
|
+
default: AssistanceCitizensAbroadApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: AssistanceCitizensAbroadApprovalStatus;
|
|
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: 'assistance_citizens_abroad_attachments' })
|
|
5
|
+
export class AssistanceCitizensAbroadRequestAttachment 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,64 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { AssistanceCitizensAbroadApprovalStatus } from './AssistanceCitizensAbroadApprovalModel';
|
|
4
|
+
|
|
5
|
+
export enum AssistanceCitizensAbroadMessageType {
|
|
6
|
+
TEXT = 'text',
|
|
7
|
+
IMAGE = 'image',
|
|
8
|
+
VIDEO = 'video',
|
|
9
|
+
FILE = 'file',
|
|
10
|
+
LINK = 'link',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'assistance_citizens_abroad_chats' })
|
|
14
|
+
export class AssistanceCitizensAbroadRequestChat extends BaseModel {
|
|
15
|
+
@Column({ type: 'integer', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'integer', nullable: true })
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: false })
|
|
25
|
+
user_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
role_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'text', nullable: false })
|
|
31
|
+
message: string;
|
|
32
|
+
|
|
33
|
+
@Column({
|
|
34
|
+
type: 'enum',
|
|
35
|
+
enum: AssistanceCitizensAbroadMessageType,
|
|
36
|
+
default: AssistanceCitizensAbroadMessageType.TEXT,
|
|
37
|
+
nullable: false,
|
|
38
|
+
})
|
|
39
|
+
messageType: AssistanceCitizensAbroadMessageType;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'text', nullable: true })
|
|
42
|
+
status: string;
|
|
43
|
+
|
|
44
|
+
constructor(
|
|
45
|
+
request_id: number,
|
|
46
|
+
user_id: number,
|
|
47
|
+
role_id: number,
|
|
48
|
+
message: string,
|
|
49
|
+
service_id?: number,
|
|
50
|
+
sub_service_id?: number,
|
|
51
|
+
messageType?: AssistanceCitizensAbroadMessageType,
|
|
52
|
+
status?: string
|
|
53
|
+
) {
|
|
54
|
+
super();
|
|
55
|
+
this.request_id = request_id;
|
|
56
|
+
this.service_id = service_id || null;
|
|
57
|
+
this.sub_service_id = sub_service_id || null;
|
|
58
|
+
this.user_id = user_id;
|
|
59
|
+
this.role_id = role_id;
|
|
60
|
+
this.message = message;
|
|
61
|
+
this.messageType = messageType || AssistanceCitizensAbroadMessageType.TEXT;
|
|
62
|
+
this.status = status || AssistanceCitizensAbroadApprovalStatus.PENDING;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AssistanceCitizensAbroadStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Matches product: Tickets / Lawyer / Release / Cash Assistance / Other */
|
|
13
|
+
export enum AssistanceCitizensAbroadTypeOfAssistance {
|
|
14
|
+
TICKETS = 'Tickets',
|
|
15
|
+
LAWYER = 'Lawyer',
|
|
16
|
+
RELEASE = 'Release',
|
|
17
|
+
CASH_ASSISTANCE = 'Cash Assistance',
|
|
18
|
+
OTHER = 'Other',
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Entity({ name: 'assistance_citizens_abroad_requests' })
|
|
22
|
+
export class AssistanceCitizensAbroadRequests extends BaseModel {
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
req_user_department_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
req_user_section_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: true })
|
|
30
|
+
service_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: true })
|
|
33
|
+
sub_service_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: false })
|
|
36
|
+
user_id: number;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
39
|
+
citizen_name: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
42
|
+
id_or_passport_number: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({
|
|
45
|
+
type: 'enum',
|
|
46
|
+
enum: AssistanceCitizensAbroadTypeOfAssistance,
|
|
47
|
+
nullable: true,
|
|
48
|
+
})
|
|
49
|
+
type_of_assistance: AssistanceCitizensAbroadTypeOfAssistance | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'text', nullable: true })
|
|
52
|
+
reason_for_request: string | null;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'date', nullable: true })
|
|
55
|
+
request_date: Date | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
58
|
+
amount: string | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
61
|
+
currency_type: string | null;
|
|
62
|
+
|
|
63
|
+
@Column({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: AssistanceCitizensAbroadStatus,
|
|
66
|
+
default: AssistanceCitizensAbroadStatus.PENDING,
|
|
67
|
+
nullable: false,
|
|
68
|
+
})
|
|
69
|
+
status: AssistanceCitizensAbroadStatus;
|
|
70
|
+
|
|
71
|
+
@Column({ type: 'varchar', nullable: true })
|
|
72
|
+
workflow_execution_id: string | null;
|
|
73
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AssistanceCitizensAbroadWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'assistance_citizens_abroad_workflows' })
|
|
11
|
+
export class AssistanceCitizensAbroadWorkFlow 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: AssistanceCitizensAbroadWorkFlowStatus,
|
|
27
|
+
default: AssistanceCitizensAbroadWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: AssistanceCitizensAbroadWorkFlowStatus;
|
|
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
|
+
}
|
|
@@ -28,6 +28,9 @@ export class ResignationTerminationRequests extends BaseModel {
|
|
|
28
28
|
@Column({ type: 'int', nullable: false })
|
|
29
29
|
user_id: number;
|
|
30
30
|
|
|
31
|
+
@Column({ type: 'int', nullable: true })
|
|
32
|
+
employee_id: number | null; // Target employee user ID
|
|
33
|
+
|
|
31
34
|
// Resignation/Termination specific fields
|
|
32
35
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
33
36
|
employee_type: string | null; // FM / M&C
|