@platform-modules/civil-aviation-authority 2.3.140 → 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/.env +9 -17
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -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 +327 -317
- package/src/index.ts +5 -0
- 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/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- 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/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/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
package/.env
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
DB_HOST=164.52.222.169
|
|
2
|
-
DB_PORT=5432
|
|
3
|
-
DB_USER=postgres_admin_user
|
|
4
|
-
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
-
DB_NAME=CAA
|
|
6
|
-
|
|
7
|
-
# DB_HOST=216.48.187.46
|
|
1
|
+
# DB_HOST=164.52.222.169
|
|
8
2
|
# DB_PORT=5432
|
|
9
|
-
# DB_USER=
|
|
10
|
-
# DB_PASS=
|
|
11
|
-
# DB_NAME=
|
|
12
|
-
|
|
3
|
+
# DB_USER=postgres_admin_user
|
|
4
|
+
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
# DB_NAME=CAA
|
|
13
6
|
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# DB_NAME=CAA
|
|
8
|
+
DB_HOST=localhost
|
|
9
|
+
DB_PORT=5432
|
|
10
|
+
DB_USER=postgres
|
|
11
|
+
DB_PASS=stevejobs
|
|
12
|
+
DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -116,6 +116,11 @@ const StudyLeaveWorkflowModel_1 = require("./models/StudyLeaveWorkflowModel");
|
|
|
116
116
|
const StudyLeaveApprovalModel_1 = require("./models/StudyLeaveApprovalModel");
|
|
117
117
|
const StudyLeaveChatModel_1 = require("./models/StudyLeaveChatModel");
|
|
118
118
|
const StudyLeaveAttachmentModel_1 = require("./models/StudyLeaveAttachmentModel");
|
|
119
|
+
const ScholarshipRequestModel_1 = require("./models/ScholarshipRequestModel");
|
|
120
|
+
const ScholarshipApprovalModel_1 = require("./models/ScholarshipApprovalModel");
|
|
121
|
+
const ScholarshipAttachmentModel_1 = require("./models/ScholarshipAttachmentModel");
|
|
122
|
+
const ScholarshipChatModel_1 = require("./models/ScholarshipChatModel");
|
|
123
|
+
const ScholarshipWorkflowModel_1 = require("./models/ScholarshipWorkflowModel");
|
|
119
124
|
const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
120
125
|
const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
121
126
|
const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
@@ -255,6 +260,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
255
260
|
StudyLeaveApprovalModel_1.StudyLeaveApprovalDetails,
|
|
256
261
|
StudyLeaveChatModel_1.StudyLeaveRequestChat,
|
|
257
262
|
StudyLeaveAttachmentModel_1.StudyLeaveRequestAttachment,
|
|
263
|
+
ScholarshipRequestModel_1.ScholarshipRequests,
|
|
264
|
+
ScholarshipApprovalModel_1.ScholarshipApprovalDetails,
|
|
265
|
+
ScholarshipAttachmentModel_1.ScholarshipRequestAttachment,
|
|
266
|
+
ScholarshipChatModel_1.ScholarshipRequestChat,
|
|
267
|
+
ScholarshipWorkflowModel_1.ScholarshipWorkFlow,
|
|
258
268
|
AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
|
|
259
269
|
AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
|
|
260
270
|
AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
|
package/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,11 @@ export * from './models/StudyLeaveWorkflowModel';
|
|
|
89
89
|
export * from './models/StudyLeaveApprovalModel';
|
|
90
90
|
export * from './models/StudyLeaveChatModel';
|
|
91
91
|
export * from './models/StudyLeaveAttachmentModel';
|
|
92
|
+
export * from './models/ScholarshipRequestModel';
|
|
93
|
+
export * from './models/ScholarshipApprovalModel';
|
|
94
|
+
export * from './models/ScholarshipAttachmentModel';
|
|
95
|
+
export * from './models/ScholarshipChatModel';
|
|
96
|
+
export * from './models/ScholarshipWorkflowModel';
|
|
92
97
|
export { HrServiceRequestStatus } from './models/HrServiceRequestModel';
|
|
93
98
|
export { HrServiceApprovalStatus } from './models/HrServiceApprovalModel';
|
|
94
99
|
export { HrServiceWorkFlowStatus } from './models/HrServiceWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -117,6 +117,11 @@ __exportStar(require("./models/StudyLeaveWorkflowModel"), exports);
|
|
|
117
117
|
__exportStar(require("./models/StudyLeaveApprovalModel"), exports);
|
|
118
118
|
__exportStar(require("./models/StudyLeaveChatModel"), exports);
|
|
119
119
|
__exportStar(require("./models/StudyLeaveAttachmentModel"), exports);
|
|
120
|
+
__exportStar(require("./models/ScholarshipRequestModel"), exports);
|
|
121
|
+
__exportStar(require("./models/ScholarshipApprovalModel"), exports);
|
|
122
|
+
__exportStar(require("./models/ScholarshipAttachmentModel"), exports);
|
|
123
|
+
__exportStar(require("./models/ScholarshipChatModel"), exports);
|
|
124
|
+
__exportStar(require("./models/ScholarshipWorkflowModel"), exports);
|
|
120
125
|
var HrServiceRequestModel_1 = require("./models/HrServiceRequestModel");
|
|
121
126
|
Object.defineProperty(exports, "HrServiceRequestStatus", { enumerable: true, get: function () { return HrServiceRequestModel_1.HrServiceRequestStatus; } });
|
|
122
127
|
var HrServiceApprovalModel_1 = require("./models/HrServiceApprovalModel");
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ScholarshipApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class ScholarshipApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: ScholarshipApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.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);
|