@platform-modules/civil-aviation-authority 2.3.141 → 2.3.145
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 -9
- package/dist/data-source.js +10 -10
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -5
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/LegalComplaintApprovalModel.d.ts +24 -0
- package/dist/models/LegalComplaintApprovalModel.js +89 -0
- package/dist/models/LegalComplaintAttachmentModel.d.ts +15 -0
- package/dist/models/LegalComplaintAttachmentModel.js +60 -0
- package/dist/models/LegalComplaintChatModel.d.ts +17 -0
- package/dist/models/LegalComplaintChatModel.js +68 -0
- package/dist/models/LegalComplaintRequestModel.d.ts +30 -0
- package/dist/models/LegalComplaintRequestModel.js +99 -0
- package/dist/models/LegalComplaintWorkflowModel.d.ts +25 -0
- package/dist/models/LegalComplaintWorkflowModel.js +88 -0
- package/dist/models/LegalConsultationApprovalModel.d.ts +3 -1
- package/dist/models/LegalConsultationApprovalModel.js +2 -0
- package/dist/models/LegalConsultationRequestModel.d.ts +0 -2
- package/dist/models/LegalConsultationRequestModel.js +0 -4
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +327 -327
- package/src/index.ts +357 -355
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalComplaintApprovalModel.ts +61 -0
- package/src/models/LegalComplaintAttachmentModel.ts +39 -0
- package/src/models/LegalComplaintChatModel.ts +43 -0
- package/src/models/LegalComplaintRequestModel.ts +70 -0
- package/src/models/LegalComplaintWorkflowModel.ts +59 -0
- package/src/models/LegalConsultationApprovalModel.ts +2 -0
- package/src/models/LegalConsultationRequestModel.ts +0 -4
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/models/ScholarshipApprovalModel.d.ts +0 -22
- package/dist/models/ScholarshipApprovalModel.js +0 -84
- package/dist/models/ScholarshipAttachmentModel.d.ts +0 -12
- package/dist/models/ScholarshipAttachmentModel.js +0 -56
- package/dist/models/ScholarshipChatModel.d.ts +0 -18
- package/dist/models/ScholarshipChatModel.js +0 -65
- package/dist/models/ScholarshipRequestModel.d.ts +0 -30
- package/dist/models/ScholarshipRequestModel.js +0 -94
- package/dist/models/ScholarshipWorkflowModel.d.ts +0 -19
- package/dist/models/ScholarshipWorkflowModel.js +0 -66
- package/src/models/ScholarshipApprovalModel.ts +0 -56
- package/src/models/ScholarshipAttachmentModel.ts +0 -32
- package/src/models/ScholarshipChatModel.ts +0 -42
- package/src/models/ScholarshipRequestModel.ts +0 -64
- package/src/models/ScholarshipWorkflowModel.ts +0 -42
|
@@ -1,84 +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.ScholarshipApprovalDetails = exports.ScholarshipApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ScholarshipApprovalStatus;
|
|
16
|
-
(function (ScholarshipApprovalStatus) {
|
|
17
|
-
ScholarshipApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
ScholarshipApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
ScholarshipApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
ScholarshipApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(ScholarshipApprovalStatus || (exports.ScholarshipApprovalStatus = ScholarshipApprovalStatus = {}));
|
|
22
|
-
let ScholarshipApprovalDetails = class ScholarshipApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
};
|
|
24
|
-
exports.ScholarshipApprovalDetails = ScholarshipApprovalDetails;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], ScholarshipApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], ScholarshipApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], ScholarshipApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], ScholarshipApprovalDetails.prototype, "level", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], ScholarshipApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], ScholarshipApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], ScholarshipApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], ScholarshipApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], ScholarshipApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], ScholarshipApprovalDetails.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
|
-
], ScholarshipApprovalDetails.prototype, "comment", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({
|
|
71
|
-
type: "enum",
|
|
72
|
-
enum: ScholarshipApprovalStatus,
|
|
73
|
-
default: ScholarshipApprovalStatus.PENDING,
|
|
74
|
-
nullable: false,
|
|
75
|
-
}),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], ScholarshipApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
81
|
-
], ScholarshipApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
-
exports.ScholarshipApprovalDetails = ScholarshipApprovalDetails = __decorate([
|
|
83
|
-
(0, typeorm_1.Entity)({ name: "scholarship_approvals" })
|
|
84
|
-
], ScholarshipApprovalDetails);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare class ScholarshipRequestAttachment 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
|
-
attachment_for: string | null;
|
|
12
|
-
}
|
|
@@ -1,56 +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.ScholarshipRequestAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let ScholarshipRequestAttachment = class ScholarshipRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
};
|
|
17
|
-
exports.ScholarshipRequestAttachment = ScholarshipRequestAttachment;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], ScholarshipRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
-
__metadata("design:type", Object)
|
|
25
|
-
], ScholarshipRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], ScholarshipRequestAttachment.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
|
-
], ScholarshipRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], ScholarshipRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], ScholarshipRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], ScholarshipRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], ScholarshipRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], ScholarshipRequestAttachment.prototype, "attachment_for", void 0);
|
|
54
|
-
exports.ScholarshipRequestAttachment = ScholarshipRequestAttachment = __decorate([
|
|
55
|
-
(0, typeorm_1.Entity)({ name: "scholarship_attachments" })
|
|
56
|
-
], ScholarshipRequestAttachment);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum ScholarshipMessageType {
|
|
3
|
-
TEXT = "text",
|
|
4
|
-
IMAGE = "image",
|
|
5
|
-
VIDEO = "video",
|
|
6
|
-
FILE = "file",
|
|
7
|
-
LINK = "link"
|
|
8
|
-
}
|
|
9
|
-
export declare class ScholarshipRequestChat 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 | null;
|
|
15
|
-
message: string;
|
|
16
|
-
messageType: ScholarshipMessageType;
|
|
17
|
-
status: string | null;
|
|
18
|
-
}
|
|
@@ -1,65 +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.ScholarshipRequestChat = exports.ScholarshipMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ScholarshipMessageType;
|
|
16
|
-
(function (ScholarshipMessageType) {
|
|
17
|
-
ScholarshipMessageType["TEXT"] = "text";
|
|
18
|
-
ScholarshipMessageType["IMAGE"] = "image";
|
|
19
|
-
ScholarshipMessageType["VIDEO"] = "video";
|
|
20
|
-
ScholarshipMessageType["FILE"] = "file";
|
|
21
|
-
ScholarshipMessageType["LINK"] = "link";
|
|
22
|
-
})(ScholarshipMessageType || (exports.ScholarshipMessageType = ScholarshipMessageType = {}));
|
|
23
|
-
let ScholarshipRequestChat = class ScholarshipRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
-
};
|
|
25
|
-
exports.ScholarshipRequestChat = ScholarshipRequestChat;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], ScholarshipRequestChat.prototype, "request_id", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], ScholarshipRequestChat.prototype, "service_id", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], ScholarshipRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], ScholarshipRequestChat.prototype, "user_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], ScholarshipRequestChat.prototype, "role_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], ScholarshipRequestChat.prototype, "message", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({
|
|
52
|
-
type: "enum",
|
|
53
|
-
enum: ScholarshipMessageType,
|
|
54
|
-
default: ScholarshipMessageType.TEXT,
|
|
55
|
-
nullable: false,
|
|
56
|
-
}),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], ScholarshipRequestChat.prototype, "messageType", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], ScholarshipRequestChat.prototype, "status", void 0);
|
|
63
|
-
exports.ScholarshipRequestChat = ScholarshipRequestChat = __decorate([
|
|
64
|
-
(0, typeorm_1.Entity)({ name: "scholarship_chats" })
|
|
65
|
-
], ScholarshipRequestChat);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum ScholarshipRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
APPROVED = "Approved",
|
|
7
|
-
REJECTED = "Rejected",
|
|
8
|
-
CANCELLED = "Cancelled"
|
|
9
|
-
}
|
|
10
|
-
export declare enum ScholarshipType {
|
|
11
|
-
PLANNED = "Planned",
|
|
12
|
-
UNPLANNED = "Unplanned"
|
|
13
|
-
}
|
|
14
|
-
export declare class ScholarshipRequests extends BaseModel {
|
|
15
|
-
req_user_department_id: number | null;
|
|
16
|
-
req_user_section_id: number | null;
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
sub_service_id: number | null;
|
|
19
|
-
user_id: number;
|
|
20
|
-
status: ScholarshipRequestStatus;
|
|
21
|
-
workflow_execution_id: string | null;
|
|
22
|
-
scholarship_name: string | null;
|
|
23
|
-
type: ScholarshipType;
|
|
24
|
-
reason: string | null;
|
|
25
|
-
description: string | null;
|
|
26
|
-
start_date: string | null;
|
|
27
|
-
end_date: string | null;
|
|
28
|
-
number_of_attendees: number | null;
|
|
29
|
-
place: string | null;
|
|
30
|
-
}
|
|
@@ -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.ScholarshipRequests = exports.ScholarshipType = exports.ScholarshipRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ScholarshipRequestStatus;
|
|
16
|
-
(function (ScholarshipRequestStatus) {
|
|
17
|
-
ScholarshipRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
ScholarshipRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
ScholarshipRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
ScholarshipRequestStatus["APPROVED"] = "Approved";
|
|
21
|
-
ScholarshipRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
-
ScholarshipRequestStatus["CANCELLED"] = "Cancelled";
|
|
23
|
-
})(ScholarshipRequestStatus || (exports.ScholarshipRequestStatus = ScholarshipRequestStatus = {}));
|
|
24
|
-
var ScholarshipType;
|
|
25
|
-
(function (ScholarshipType) {
|
|
26
|
-
ScholarshipType["PLANNED"] = "Planned";
|
|
27
|
-
ScholarshipType["UNPLANNED"] = "Unplanned";
|
|
28
|
-
})(ScholarshipType || (exports.ScholarshipType = ScholarshipType = {}));
|
|
29
|
-
let ScholarshipRequests = class ScholarshipRequests extends BaseModel_1.BaseModel {
|
|
30
|
-
};
|
|
31
|
-
exports.ScholarshipRequests = ScholarshipRequests;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], ScholarshipRequests.prototype, "req_user_department_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
38
|
-
__metadata("design:type", Object)
|
|
39
|
-
], ScholarshipRequests.prototype, "req_user_section_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], ScholarshipRequests.prototype, "service_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], ScholarshipRequests.prototype, "sub_service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], ScholarshipRequests.prototype, "user_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ScholarshipRequestStatus, default: ScholarshipRequestStatus.PENDING, nullable: false }),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], ScholarshipRequests.prototype, "status", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], ScholarshipRequests.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
|
-
], ScholarshipRequests.prototype, "scholarship_name", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ScholarshipType, nullable: false }),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], ScholarshipRequests.prototype, "type", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], ScholarshipRequests.prototype, "reason", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], ScholarshipRequests.prototype, "description", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], ScholarshipRequests.prototype, "start_date", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
82
|
-
__metadata("design:type", Object)
|
|
83
|
-
], ScholarshipRequests.prototype, "end_date", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
86
|
-
__metadata("design:type", Object)
|
|
87
|
-
], ScholarshipRequests.prototype, "number_of_attendees", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
90
|
-
__metadata("design:type", Object)
|
|
91
|
-
], ScholarshipRequests.prototype, "place", void 0);
|
|
92
|
-
exports.ScholarshipRequests = ScholarshipRequests = __decorate([
|
|
93
|
-
(0, typeorm_1.Entity)({ name: "scholarship_requests" })
|
|
94
|
-
], ScholarshipRequests);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum ScholarshipWorkFlowStatus {
|
|
3
|
-
COMPLETED = "Completed",
|
|
4
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
-
PENDING = "Pending"
|
|
6
|
-
}
|
|
7
|
-
export declare class ScholarshipWorkFlow extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
|
-
content: string;
|
|
12
|
-
status: ScholarshipWorkFlowStatus;
|
|
13
|
-
user_id: number | null;
|
|
14
|
-
role_id: number | null;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
|
-
/** Aligns with workflow hierarchy step_order / Conductor human stepOrder */
|
|
18
|
-
step_order: number | null;
|
|
19
|
-
}
|
|
@@ -1,66 +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.ScholarshipWorkFlow = exports.ScholarshipWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ScholarshipWorkFlowStatus;
|
|
16
|
-
(function (ScholarshipWorkFlowStatus) {
|
|
17
|
-
ScholarshipWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
ScholarshipWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
ScholarshipWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(ScholarshipWorkFlowStatus || (exports.ScholarshipWorkFlowStatus = ScholarshipWorkFlowStatus = {}));
|
|
21
|
-
let ScholarshipWorkFlow = class ScholarshipWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
-
};
|
|
23
|
-
exports.ScholarshipWorkFlow = ScholarshipWorkFlow;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], ScholarshipWorkFlow.prototype, "request_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
30
|
-
__metadata("design:type", Object)
|
|
31
|
-
], ScholarshipWorkFlow.prototype, "service_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], ScholarshipWorkFlow.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
|
-
], ScholarshipWorkFlow.prototype, "content", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ScholarshipWorkFlowStatus, default: ScholarshipWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], ScholarshipWorkFlow.prototype, "status", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], ScholarshipWorkFlow.prototype, "user_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], ScholarshipWorkFlow.prototype, "role_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], ScholarshipWorkFlow.prototype, "department_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], ScholarshipWorkFlow.prototype, "section_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], ScholarshipWorkFlow.prototype, "step_order", void 0);
|
|
64
|
-
exports.ScholarshipWorkFlow = ScholarshipWorkFlow = __decorate([
|
|
65
|
-
(0, typeorm_1.Entity)({ name: "scholarship_workflows" })
|
|
66
|
-
], ScholarshipWorkFlow);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ScholarshipApprovalStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected",
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: "scholarship_approvals" })
|
|
12
|
-
export class ScholarshipApprovalDetails 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 | null;
|
|
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: ScholarshipApprovalStatus,
|
|
49
|
-
default: ScholarshipApprovalStatus.PENDING,
|
|
50
|
-
nullable: false,
|
|
51
|
-
})
|
|
52
|
-
approval_status: ScholarshipApprovalStatus;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "boolean", default: true, nullable: false })
|
|
55
|
-
is_allowed: boolean;
|
|
56
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "scholarship_attachments" })
|
|
5
|
-
export class ScholarshipRequestAttachment 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
|
-
|
|
30
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
31
|
-
attachment_for: string | null;
|
|
32
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ScholarshipMessageType {
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
IMAGE = "image",
|
|
7
|
-
VIDEO = "video",
|
|
8
|
-
FILE = "file",
|
|
9
|
-
LINK = "link",
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@Entity({ name: "scholarship_chats" })
|
|
13
|
-
export class ScholarshipRequestChat extends BaseModel {
|
|
14
|
-
@Column({ type: "integer", nullable: false })
|
|
15
|
-
request_id: number;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "integer", nullable: true })
|
|
18
|
-
service_id: number | null;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "integer", nullable: true })
|
|
21
|
-
sub_service_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: "integer", nullable: false })
|
|
24
|
-
user_id: number;
|
|
25
|
-
|
|
26
|
-
@Column({ type: "integer", nullable: true })
|
|
27
|
-
role_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: "text", nullable: false })
|
|
30
|
-
message: string;
|
|
31
|
-
|
|
32
|
-
@Column({
|
|
33
|
-
type: "enum",
|
|
34
|
-
enum: ScholarshipMessageType,
|
|
35
|
-
default: ScholarshipMessageType.TEXT,
|
|
36
|
-
nullable: false,
|
|
37
|
-
})
|
|
38
|
-
messageType: ScholarshipMessageType;
|
|
39
|
-
|
|
40
|
-
@Column({ type: "text", nullable: true })
|
|
41
|
-
status: string | null;
|
|
42
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ScholarshipRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
ASSIGNED = "Assigned",
|
|
7
|
-
IN_PROGRESS = "In Progress",
|
|
8
|
-
APPROVED = "Approved",
|
|
9
|
-
REJECTED = "Rejected",
|
|
10
|
-
CANCELLED = "Cancelled",
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum ScholarshipType {
|
|
14
|
-
PLANNED = "Planned",
|
|
15
|
-
UNPLANNED = "Unplanned",
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@Entity({ name: "scholarship_requests" })
|
|
19
|
-
export class ScholarshipRequests extends BaseModel {
|
|
20
|
-
@Column({ type: "integer", nullable: true })
|
|
21
|
-
req_user_department_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: "integer", nullable: true })
|
|
24
|
-
req_user_section_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: "integer", nullable: true })
|
|
27
|
-
service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: "integer", nullable: true })
|
|
30
|
-
sub_service_id: number | null;
|
|
31
|
-
|
|
32
|
-
@Column({ type: "integer", nullable: false })
|
|
33
|
-
user_id: number;
|
|
34
|
-
|
|
35
|
-
@Column({ type: "enum", enum: ScholarshipRequestStatus, default: ScholarshipRequestStatus.PENDING, nullable: false })
|
|
36
|
-
status: ScholarshipRequestStatus;
|
|
37
|
-
|
|
38
|
-
@Column({ type: "varchar", nullable: true })
|
|
39
|
-
workflow_execution_id: string | null;
|
|
40
|
-
|
|
41
|
-
@Column({ type: "varchar", length: 500, nullable: true })
|
|
42
|
-
scholarship_name: string | null;
|
|
43
|
-
|
|
44
|
-
@Column({ type: "enum", enum: ScholarshipType, nullable: false })
|
|
45
|
-
type: ScholarshipType;
|
|
46
|
-
|
|
47
|
-
@Column({ type: "text", nullable: true })
|
|
48
|
-
reason: string | null;
|
|
49
|
-
|
|
50
|
-
@Column({ type: "text", nullable: true })
|
|
51
|
-
description: string | null;
|
|
52
|
-
|
|
53
|
-
@Column({ type: "date", nullable: true })
|
|
54
|
-
start_date: string | null;
|
|
55
|
-
|
|
56
|
-
@Column({ type: "date", nullable: true })
|
|
57
|
-
end_date: string | null;
|
|
58
|
-
|
|
59
|
-
@Column({ type: "integer", nullable: true })
|
|
60
|
-
number_of_attendees: number | null;
|
|
61
|
-
|
|
62
|
-
@Column({ type: "varchar", length: 500, nullable: true })
|
|
63
|
-
place: string | null;
|
|
64
|
-
}
|