@platform-modules/civil-aviation-authority 2.3.138 → 2.3.141
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 +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +11 -0
- package/dist/models/LegalConsultationApprovalModel.d.ts +23 -0
- package/dist/models/LegalConsultationApprovalModel.js +88 -0
- package/dist/models/LegalConsultationAttachmentModel.d.ts +12 -0
- package/dist/models/LegalConsultationAttachmentModel.js +56 -0
- package/dist/models/LegalConsultationChatModel.d.ts +28 -0
- package/dist/models/LegalConsultationChatModel.js +80 -0
- package/dist/models/LegalConsultationRequestModel.d.ts +24 -0
- package/dist/models/LegalConsultationRequestModel.js +83 -0
- package/dist/models/LegalConsultationWorkflowModel.d.ts +25 -0
- package/dist/models/LegalConsultationWorkflowModel.js +88 -0
- package/dist/models/ScholarshipApprovalModel.d.ts +22 -0
- package/dist/models/ScholarshipApprovalModel.js +84 -0
- package/dist/models/ScholarshipAttachmentModel.d.ts +12 -0
- package/dist/models/ScholarshipAttachmentModel.js +56 -0
- package/dist/models/ScholarshipChatModel.d.ts +18 -0
- package/dist/models/ScholarshipChatModel.js +65 -0
- package/dist/models/ScholarshipRequestModel.d.ts +30 -0
- package/dist/models/ScholarshipRequestModel.js +94 -0
- package/dist/models/ScholarshipWorkflowModel.d.ts +19 -0
- package/dist/models/ScholarshipWorkflowModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +20 -0
- package/src/index.ts +12 -0
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/LegalConsultationApprovalModel.ts +60 -0
- package/src/models/LegalConsultationAttachmentModel.ts +33 -0
- package/src/models/LegalConsultationChatModel.ts +55 -0
- package/src/models/LegalConsultationRequestModel.ts +56 -0
- package/src/models/LegalConsultationWorkflowModel.ts +59 -0
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ScholarshipApprovalModel.ts +56 -0
- package/src/models/ScholarshipAttachmentModel.ts +32 -0
- package/src/models/ScholarshipChatModel.ts +42 -0
- package/src/models/ScholarshipRequestModel.ts +64 -0
- package/src/models/ScholarshipWorkflowModel.ts +42 -0
- package/src/models/UserSkillModel.ts +56 -56
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
|
@@ -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.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);
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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);
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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);
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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);
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -114,6 +114,11 @@ import { StudyLeaveWorkFlow } from './models/StudyLeaveWorkflowModel';
|
|
|
114
114
|
import { StudyLeaveApprovalDetails } from './models/StudyLeaveApprovalModel';
|
|
115
115
|
import { StudyLeaveRequestChat } from './models/StudyLeaveChatModel';
|
|
116
116
|
import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel';
|
|
117
|
+
import { ScholarshipRequests } from './models/ScholarshipRequestModel';
|
|
118
|
+
import { ScholarshipApprovalDetails } from './models/ScholarshipApprovalModel';
|
|
119
|
+
import { ScholarshipRequestAttachment } from './models/ScholarshipAttachmentModel';
|
|
120
|
+
import { ScholarshipRequestChat } from './models/ScholarshipChatModel';
|
|
121
|
+
import { ScholarshipWorkFlow } from './models/ScholarshipWorkflowModel';
|
|
117
122
|
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
118
123
|
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
119
124
|
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
@@ -148,6 +153,11 @@ import { AccommodationChat } from './models/AccommodationChatModel';
|
|
|
148
153
|
import { AccommodationAttachment } from './models/AccommodationAttachmentModel';
|
|
149
154
|
import { AssetApartmentType } from './models/AssetApartmentTypeModel';
|
|
150
155
|
import { AssetUnitLocation } from './models/AssetUnitLocationModel';
|
|
156
|
+
import { LegalConsultationRequest } from './models/LegalConsultationRequestModel';
|
|
157
|
+
import { LegalConsultationWorkflow } from './models/LegalConsultationWorkflowModel';
|
|
158
|
+
import { LegalConsultationApproval } from './models/LegalConsultationApprovalModel';
|
|
159
|
+
import { LegalConsultationChat } from './models/LegalConsultationChatModel';
|
|
160
|
+
import { LegalConsultationAttachment } from './models/LegalConsultationAttachmentModel';
|
|
151
161
|
|
|
152
162
|
export const AppDataSource = new DataSource({
|
|
153
163
|
type: 'postgres',
|
|
@@ -249,6 +259,11 @@ export const AppDataSource = new DataSource({
|
|
|
249
259
|
StudyLeaveApprovalDetails,
|
|
250
260
|
StudyLeaveRequestChat,
|
|
251
261
|
StudyLeaveRequestAttachment,
|
|
262
|
+
ScholarshipRequests,
|
|
263
|
+
ScholarshipApprovalDetails,
|
|
264
|
+
ScholarshipRequestAttachment,
|
|
265
|
+
ScholarshipRequestChat,
|
|
266
|
+
ScholarshipWorkFlow,
|
|
252
267
|
AnnualTrainingPlanRequest,
|
|
253
268
|
AnnualTrainingPlanWorkFlow,
|
|
254
269
|
AnnualTrainingPlanApprovalDetails,
|
|
@@ -295,6 +310,11 @@ export const AppDataSource = new DataSource({
|
|
|
295
310
|
AccommodationAttachment,
|
|
296
311
|
AssetApartmentType,
|
|
297
312
|
AssetUnitLocation,
|
|
313
|
+
LegalConsultationRequest,
|
|
314
|
+
LegalConsultationWorkflow,
|
|
315
|
+
LegalConsultationApproval,
|
|
316
|
+
LegalConsultationChat,
|
|
317
|
+
LegalConsultationAttachment,
|
|
298
318
|
Document,
|
|
299
319
|
DocumentFolder,
|
|
300
320
|
DocumentDrive,
|
package/src/index.ts
CHANGED
|
@@ -95,6 +95,11 @@ export * from './models/StudyLeaveWorkflowModel';
|
|
|
95
95
|
export * from './models/StudyLeaveApprovalModel';
|
|
96
96
|
export * from './models/StudyLeaveChatModel';
|
|
97
97
|
export * from './models/StudyLeaveAttachmentModel';
|
|
98
|
+
export * from './models/ScholarshipRequestModel';
|
|
99
|
+
export * from './models/ScholarshipApprovalModel';
|
|
100
|
+
export * from './models/ScholarshipAttachmentModel';
|
|
101
|
+
export * from './models/ScholarshipChatModel';
|
|
102
|
+
export * from './models/ScholarshipWorkflowModel';
|
|
98
103
|
export {HrServiceRequestStatus} from './models/HrServiceRequestModel';
|
|
99
104
|
export {HrServiceApprovalStatus} from './models/HrServiceApprovalModel';
|
|
100
105
|
export {HrServiceWorkFlowStatus} from './models/HrServiceWorkflowModel';
|
|
@@ -338,6 +343,13 @@ export * from './models/HousingContractCancelApprovalModel';
|
|
|
338
343
|
export * from './models/HousingContractCancelChatModel';
|
|
339
344
|
export * from './models/HousingContractCancelAttachmentModel';
|
|
340
345
|
|
|
346
|
+
// Legal Consultation — Review of Administrative Decisions
|
|
347
|
+
export * from './models/LegalConsultationRequestModel';
|
|
348
|
+
export * from './models/LegalConsultationWorkflowModel';
|
|
349
|
+
export * from './models/LegalConsultationApprovalModel';
|
|
350
|
+
export * from './models/LegalConsultationChatModel';
|
|
351
|
+
export * from './models/LegalConsultationAttachmentModel';
|
|
352
|
+
|
|
341
353
|
// Asset Affairs Admin Configuration
|
|
342
354
|
export * from './models/AssetApartmentTypeModel';
|
|
343
355
|
export * from './models/AssetUnitLocationModel';
|
|
@@ -35,14 +35,14 @@ export class AccommodationApproval extends BaseModel {
|
|
|
35
35
|
@Column({ type: 'int', nullable: true })
|
|
36
36
|
department_id: number;
|
|
37
37
|
|
|
38
|
-
@Column({ type: 'int', nullable: true })
|
|
39
|
-
section_id: number;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
-
is_allowed: boolean;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'int', nullable: false })
|
|
45
|
-
level: number;
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
section_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
+
is_allowed: boolean;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'int', nullable: false })
|
|
45
|
+
level: number;
|
|
46
46
|
|
|
47
47
|
@Column({
|
|
48
48
|
type: 'enum',
|