@platform-modules/foreign-ministry 1.3.211 → 1.3.212
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 +17 -3
- package/dist/data-source.js +0 -10
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -5
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/LMSExternalCourseParticipationCandidateModel.d.ts +1 -0
- package/dist/models/LMSExternalCourseParticipationCandidateModel.js +4 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +0 -10
- package/src/index.ts +0 -5
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/LMSExternalCourseParticipationCandidateModel.ts +3 -0
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/RegisterCandidateRequestModel.ts +183 -183
- package/src/models/TelephoneDirectoryModel.ts +20 -20
- package/dist/models/EmbassyMasterModel.d.ts +0 -16
- package/dist/models/EmbassyMasterModel.js +0 -75
- package/dist/models/ResignationTerminationApprovalModel.d.ts +0 -22
- package/dist/models/ResignationTerminationApprovalModel.js +0 -79
- package/dist/models/ResignationTerminationAttachmentModel.d.ts +0 -11
- package/dist/models/ResignationTerminationAttachmentModel.js +0 -52
- package/dist/models/ResignationTerminationChatModel.d.ts +0 -17
- package/dist/models/ResignationTerminationChatModel.js +0 -76
- package/dist/models/ResignationTerminationRequestModel.d.ts +0 -30
- package/dist/models/ResignationTerminationRequestModel.js +0 -108
- package/dist/models/ResignationTerminationWorkflowModel.d.ts +0 -17
- package/dist/models/ResignationTerminationWorkflowModel.js +0 -62
- package/dist/models/UserDependentsModel.d.ts +0 -18
- package/dist/models/UserDependentsModel.js +0 -94
- package/src/models/ResignationTerminationApprovalModel.ts +0 -51
- package/src/models/ResignationTerminationAttachmentModel.ts +0 -30
- package/src/models/ResignationTerminationChatModel.ts +0 -63
- package/src/models/ResignationTerminationRequestModel.ts +0 -76
- package/src/models/ResignationTerminationWorkflowModel.ts +0 -38
- /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResignationTerminationRequestAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let ResignationTerminationRequestAttachment = class ResignationTerminationRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
};
|
|
17
|
-
exports.ResignationTerminationRequestAttachment = ResignationTerminationRequestAttachment;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], ResignationTerminationRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
-
__metadata("design:type", Object)
|
|
25
|
-
], ResignationTerminationRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], ResignationTerminationRequestAttachment.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
|
-
], ResignationTerminationRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], ResignationTerminationRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], ResignationTerminationRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], ResignationTerminationRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], ResignationTerminationRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
-
exports.ResignationTerminationRequestAttachment = ResignationTerminationRequestAttachment = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)({ name: 'resignation_termination_attachments' })
|
|
52
|
-
], ResignationTerminationRequestAttachment);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ResignationTerminationMessageType {
|
|
3
|
-
TEXT = "text",
|
|
4
|
-
FILE = "file",
|
|
5
|
-
LINK = "link"
|
|
6
|
-
}
|
|
7
|
-
export declare class ResignationTerminationRequestChat extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
|
-
user_id: number;
|
|
12
|
-
role_id: number;
|
|
13
|
-
message: string;
|
|
14
|
-
messageType: ResignationTerminationMessageType;
|
|
15
|
-
status: string;
|
|
16
|
-
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: ResignationTerminationMessageType, status?: string);
|
|
17
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResignationTerminationRequestChat = exports.ResignationTerminationMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const ResignationTerminationApprovalModel_1 = require("./ResignationTerminationApprovalModel");
|
|
16
|
-
var ResignationTerminationMessageType;
|
|
17
|
-
(function (ResignationTerminationMessageType) {
|
|
18
|
-
ResignationTerminationMessageType["TEXT"] = "text";
|
|
19
|
-
ResignationTerminationMessageType["FILE"] = "file";
|
|
20
|
-
ResignationTerminationMessageType["LINK"] = "link";
|
|
21
|
-
})(ResignationTerminationMessageType || (exports.ResignationTerminationMessageType = ResignationTerminationMessageType = {}));
|
|
22
|
-
let ResignationTerminationRequestChat = class ResignationTerminationRequestChat extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
24
|
-
super();
|
|
25
|
-
this.request_id = request_id;
|
|
26
|
-
this.service_id = service_id || null;
|
|
27
|
-
this.sub_service_id = sub_service_id || null;
|
|
28
|
-
this.user_id = user_id;
|
|
29
|
-
this.role_id = role_id;
|
|
30
|
-
this.message = message;
|
|
31
|
-
this.messageType = messageType || ResignationTerminationMessageType.TEXT;
|
|
32
|
-
this.status = status || ResignationTerminationApprovalModel_1.ResignationTerminationApprovalStatus.PENDING;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.ResignationTerminationRequestChat = ResignationTerminationRequestChat;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], ResignationTerminationRequestChat.prototype, "request_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], ResignationTerminationRequestChat.prototype, "service_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], ResignationTerminationRequestChat.prototype, "sub_service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], ResignationTerminationRequestChat.prototype, "user_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], ResignationTerminationRequestChat.prototype, "role_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], ResignationTerminationRequestChat.prototype, "message", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({
|
|
62
|
-
type: 'enum',
|
|
63
|
-
enum: ResignationTerminationMessageType,
|
|
64
|
-
default: ResignationTerminationMessageType.TEXT,
|
|
65
|
-
nullable: false
|
|
66
|
-
}),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], ResignationTerminationRequestChat.prototype, "messageType", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], ResignationTerminationRequestChat.prototype, "status", void 0);
|
|
73
|
-
exports.ResignationTerminationRequestChat = ResignationTerminationRequestChat = __decorate([
|
|
74
|
-
(0, typeorm_1.Entity)({ name: 'resignation_termination_chats' }),
|
|
75
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
76
|
-
], ResignationTerminationRequestChat);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ResignationTerminationStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
APPROVED = "Approved",
|
|
7
|
-
REJECTED = "Rejected"
|
|
8
|
-
}
|
|
9
|
-
export declare class ResignationTerminationRequests extends BaseModel {
|
|
10
|
-
req_user_department_id: number | null;
|
|
11
|
-
req_user_section_id: number | null;
|
|
12
|
-
service_id: number | null;
|
|
13
|
-
sub_service_id: number | null;
|
|
14
|
-
user_id: number;
|
|
15
|
-
employee_type: string | null;
|
|
16
|
-
employee_name: string | null;
|
|
17
|
-
reason: string | null;
|
|
18
|
-
description: string | null;
|
|
19
|
-
notice_period_need_to_serve: boolean | null;
|
|
20
|
-
date_of_issuing_resignation_day: Date | null;
|
|
21
|
-
last_working_day: Date | null;
|
|
22
|
-
end_of_service_eligibility_amount: string | null;
|
|
23
|
-
amount: number | null;
|
|
24
|
-
applicable_based_on_resignation_type: string | null;
|
|
25
|
-
date_of_joining: Date | null;
|
|
26
|
-
leave_balance: string | null;
|
|
27
|
-
actual_retirement_date: Date | null;
|
|
28
|
-
status: ResignationTerminationStatus;
|
|
29
|
-
workflow_execution_id: string | null;
|
|
30
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResignationTerminationRequests = exports.ResignationTerminationStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ResignationTerminationStatus;
|
|
16
|
-
(function (ResignationTerminationStatus) {
|
|
17
|
-
ResignationTerminationStatus["PENDING"] = "Pending";
|
|
18
|
-
ResignationTerminationStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
ResignationTerminationStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
ResignationTerminationStatus["APPROVED"] = "Approved";
|
|
21
|
-
ResignationTerminationStatus["REJECTED"] = "Rejected";
|
|
22
|
-
})(ResignationTerminationStatus || (exports.ResignationTerminationStatus = ResignationTerminationStatus = {}));
|
|
23
|
-
let ResignationTerminationRequests = class ResignationTerminationRequests extends BaseModel_1.BaseModel {
|
|
24
|
-
};
|
|
25
|
-
exports.ResignationTerminationRequests = ResignationTerminationRequests;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], ResignationTerminationRequests.prototype, "req_user_department_id", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], ResignationTerminationRequests.prototype, "req_user_section_id", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], ResignationTerminationRequests.prototype, "service_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], ResignationTerminationRequests.prototype, "sub_service_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], ResignationTerminationRequests.prototype, "user_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], ResignationTerminationRequests.prototype, "employee_type", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], ResignationTerminationRequests.prototype, "employee_name", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], ResignationTerminationRequests.prototype, "reason", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
60
|
-
__metadata("design:type", Object)
|
|
61
|
-
], ResignationTerminationRequests.prototype, "description", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
64
|
-
__metadata("design:type", Object)
|
|
65
|
-
], ResignationTerminationRequests.prototype, "notice_period_need_to_serve", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], ResignationTerminationRequests.prototype, "date_of_issuing_resignation_day", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
72
|
-
__metadata("design:type", Object)
|
|
73
|
-
], ResignationTerminationRequests.prototype, "last_working_day", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
76
|
-
__metadata("design:type", Object)
|
|
77
|
-
], ResignationTerminationRequests.prototype, "end_of_service_eligibility_amount", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
80
|
-
__metadata("design:type", Object)
|
|
81
|
-
], ResignationTerminationRequests.prototype, "amount", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
84
|
-
__metadata("design:type", Object)
|
|
85
|
-
], ResignationTerminationRequests.prototype, "applicable_based_on_resignation_type", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
88
|
-
__metadata("design:type", Object)
|
|
89
|
-
], ResignationTerminationRequests.prototype, "date_of_joining", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
92
|
-
__metadata("design:type", Object)
|
|
93
|
-
], ResignationTerminationRequests.prototype, "leave_balance", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
96
|
-
__metadata("design:type", Object)
|
|
97
|
-
], ResignationTerminationRequests.prototype, "actual_retirement_date", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: ResignationTerminationStatus, default: ResignationTerminationStatus.PENDING, nullable: false }),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], ResignationTerminationRequests.prototype, "status", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
104
|
-
__metadata("design:type", Object)
|
|
105
|
-
], ResignationTerminationRequests.prototype, "workflow_execution_id", void 0);
|
|
106
|
-
exports.ResignationTerminationRequests = ResignationTerminationRequests = __decorate([
|
|
107
|
-
(0, typeorm_1.Entity)({ name: 'resignation_termination_requests' })
|
|
108
|
-
], ResignationTerminationRequests);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ResignationTerminationWorkFlowStatus {
|
|
3
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
4
|
-
COMPLETED = "Completed",
|
|
5
|
-
PENDING = "Pending"
|
|
6
|
-
}
|
|
7
|
-
export declare class ResignationTerminationWorkFlow extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
|
-
content: string;
|
|
12
|
-
status: ResignationTerminationWorkFlowStatus;
|
|
13
|
-
user_id: number | null;
|
|
14
|
-
role_id: number | null;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ResignationTerminationWorkFlow = exports.ResignationTerminationWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ResignationTerminationWorkFlowStatus;
|
|
16
|
-
(function (ResignationTerminationWorkFlowStatus) {
|
|
17
|
-
ResignationTerminationWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
18
|
-
ResignationTerminationWorkFlowStatus["COMPLETED"] = "Completed";
|
|
19
|
-
ResignationTerminationWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(ResignationTerminationWorkFlowStatus || (exports.ResignationTerminationWorkFlowStatus = ResignationTerminationWorkFlowStatus = {}));
|
|
21
|
-
let ResignationTerminationWorkFlow = class ResignationTerminationWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
-
};
|
|
23
|
-
exports.ResignationTerminationWorkFlow = ResignationTerminationWorkFlow;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], ResignationTerminationWorkFlow.prototype, "request_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], ResignationTerminationWorkFlow.prototype, "service_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], ResignationTerminationWorkFlow.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
|
-
], ResignationTerminationWorkFlow.prototype, "content", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: ResignationTerminationWorkFlowStatus, default: ResignationTerminationWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], ResignationTerminationWorkFlow.prototype, "status", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], ResignationTerminationWorkFlow.prototype, "user_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], ResignationTerminationWorkFlow.prototype, "role_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], ResignationTerminationWorkFlow.prototype, "department_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], ResignationTerminationWorkFlow.prototype, "section_id", void 0);
|
|
60
|
-
exports.ResignationTerminationWorkFlow = ResignationTerminationWorkFlow = __decorate([
|
|
61
|
-
(0, typeorm_1.Entity)({ name: 'resignation_termination_workflows' })
|
|
62
|
-
], ResignationTerminationWorkFlow);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class UserDependents extends BaseModel {
|
|
3
|
-
user_id: number;
|
|
4
|
-
first_name: string | null;
|
|
5
|
-
last_name: string | null;
|
|
6
|
-
family_name: string | null;
|
|
7
|
-
dob: Date | null;
|
|
8
|
-
age: number | null;
|
|
9
|
-
relation_type: string | null;
|
|
10
|
-
passport_available: boolean;
|
|
11
|
-
passport_number: string | null;
|
|
12
|
-
passport_type: string | null;
|
|
13
|
-
passport_issue_date: Date | null;
|
|
14
|
-
passport_place_of_issue: string | null;
|
|
15
|
-
passport_expiry_date: Date | null;
|
|
16
|
-
is_active: boolean;
|
|
17
|
-
constructor(user_id?: number, first_name?: string, last_name?: string, family_name?: string, dob?: Date, age?: number, relation_type?: string, passport_available?: boolean, passport_number?: string, passport_type?: string, passport_issue_date?: Date, passport_place_of_issue?: string, passport_expiry_date?: Date);
|
|
18
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UserDependents = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let UserDependents = class UserDependents extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(user_id, first_name, last_name, family_name, dob, age, relation_type, passport_available, passport_number, passport_type, passport_issue_date, passport_place_of_issue, passport_expiry_date) {
|
|
17
|
-
super();
|
|
18
|
-
this.user_id = user_id || 0;
|
|
19
|
-
this.first_name = first_name || null;
|
|
20
|
-
this.last_name = last_name || null;
|
|
21
|
-
this.family_name = family_name || null;
|
|
22
|
-
this.dob = dob || null;
|
|
23
|
-
this.age = age || null;
|
|
24
|
-
this.relation_type = relation_type || null;
|
|
25
|
-
this.passport_available = passport_available || false;
|
|
26
|
-
this.passport_number = passport_number || null;
|
|
27
|
-
this.passport_type = passport_type || null;
|
|
28
|
-
this.passport_issue_date = passport_issue_date || null;
|
|
29
|
-
this.passport_place_of_issue = passport_place_of_issue || null;
|
|
30
|
-
this.passport_expiry_date = passport_expiry_date || null;
|
|
31
|
-
this.is_active = true;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.UserDependents = UserDependents;
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], UserDependents.prototype, "user_id", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], UserDependents.prototype, "first_name", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], UserDependents.prototype, "last_name", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
49
|
-
__metadata("design:type", Object)
|
|
50
|
-
], UserDependents.prototype, "family_name", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
53
|
-
__metadata("design:type", Object)
|
|
54
|
-
], UserDependents.prototype, "dob", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], UserDependents.prototype, "age", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], UserDependents.prototype, "relation_type", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
65
|
-
__metadata("design:type", Boolean)
|
|
66
|
-
], UserDependents.prototype, "passport_available", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
69
|
-
__metadata("design:type", Object)
|
|
70
|
-
], UserDependents.prototype, "passport_number", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
73
|
-
__metadata("design:type", Object)
|
|
74
|
-
], UserDependents.prototype, "passport_type", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
|
-
__metadata("design:type", Object)
|
|
78
|
-
], UserDependents.prototype, "passport_issue_date", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
81
|
-
__metadata("design:type", Object)
|
|
82
|
-
], UserDependents.prototype, "passport_place_of_issue", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
85
|
-
__metadata("design:type", Object)
|
|
86
|
-
], UserDependents.prototype, "passport_expiry_date", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
89
|
-
__metadata("design:type", Boolean)
|
|
90
|
-
], UserDependents.prototype, "is_active", void 0);
|
|
91
|
-
exports.UserDependents = UserDependents = __decorate([
|
|
92
|
-
(0, typeorm_1.Entity)({ name: 'user_dependents' }),
|
|
93
|
-
__metadata("design:paramtypes", [Number, String, String, String, Date, Number, String, Boolean, String, String, Date, String, Date])
|
|
94
|
-
], UserDependents);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum ResignationTerminationApprovalStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: 'resignation_termination_approvals' })
|
|
12
|
-
export class ResignationTerminationApprovalDetails 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({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
|
|
47
|
-
approval_status: ResignationTerminationApprovalStatus;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
-
is_allowed: boolean;
|
|
51
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'resignation_termination_attachments' })
|
|
5
|
-
export class ResignationTerminationRequestAttachment extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'integer', nullable: false })
|
|
8
|
-
request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'integer', nullable: true })
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'integer', nullable: true })
|
|
14
|
-
sub_service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
-
file_url: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
-
file_name: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
-
file_type: string;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'bigint', nullable: true })
|
|
26
|
-
file_size: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'integer', nullable: true })
|
|
29
|
-
chat_id: number | null;
|
|
30
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { ResignationTerminationApprovalStatus } from './ResignationTerminationApprovalModel';
|
|
4
|
-
|
|
5
|
-
export enum ResignationTerminationMessageType {
|
|
6
|
-
TEXT = "text",
|
|
7
|
-
FILE = "file",
|
|
8
|
-
LINK = "link"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: 'resignation_termination_chats' })
|
|
12
|
-
export class ResignationTerminationRequestChat extends BaseModel {
|
|
13
|
-
|
|
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: ResignationTerminationMessageType,
|
|
35
|
-
default: ResignationTerminationMessageType.TEXT,
|
|
36
|
-
nullable: false
|
|
37
|
-
})
|
|
38
|
-
messageType: ResignationTerminationMessageType;
|
|
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?: ResignationTerminationMessageType,
|
|
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 || ResignationTerminationMessageType.TEXT;
|
|
61
|
-
this.status = status || ResignationTerminationApprovalStatus.PENDING;
|
|
62
|
-
}
|
|
63
|
-
}
|