@platform-modules/foreign-ministry 1.3.82 → 1.3.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +17 -3
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/LMSCourseExternalLecturerApprovalModel.d.ts +22 -0
- package/dist/models/LMSCourseExternalLecturerApprovalModel.js +79 -0
- package/dist/models/LMSCourseExternalLecturerAttachmentModel.d.ts +11 -0
- package/dist/models/LMSCourseExternalLecturerAttachmentModel.js +52 -0
- package/dist/models/LMSCourseExternalLecturerChatModel.d.ts +19 -0
- package/dist/models/LMSCourseExternalLecturerChatModel.js +78 -0
- package/dist/models/LMSCourseExternalLecturerRequestModel.d.ts +38 -0
- package/dist/models/LMSCourseExternalLecturerRequestModel.js +140 -0
- package/dist/models/LMSCourseExternalLecturerWorkflowModel.d.ts +17 -0
- package/dist/models/LMSCourseExternalLecturerWorkflowModel.js +62 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +5 -0
- package/src/models/LMSCourseExternalLecturerApprovalModel.ts +51 -0
- package/src/models/LMSCourseExternalLecturerAttachmentModel.ts +30 -0
- package/src/models/LMSCourseExternalLecturerChatModel.ts +65 -0
- package/src/models/LMSCourseExternalLecturerRequestModel.ts +101 -0
- package/src/models/LMSCourseExternalLecturerWorkflowModel.ts +38 -0
- /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
package/.env
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
DB_HOST=localhost
|
|
1
|
+
# DB_HOST=localhost
|
|
2
|
+
# DB_PORT=5433
|
|
3
|
+
# DB_USER=postgres
|
|
4
|
+
# DB_PASS=123
|
|
5
|
+
# DB_NAME=FM
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DB_HOST=164.52.222.169
|
|
2
10
|
DB_PORT=5432
|
|
3
|
-
DB_USER=
|
|
4
|
-
DB_PASS=
|
|
11
|
+
DB_USER=postgres_admin_user
|
|
12
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
13
|
DB_NAME=FM
|
|
14
|
+
|
|
15
|
+
# DB_HOST=216.48.187.46
|
|
16
|
+
# DB_PORT=5432
|
|
17
|
+
# DB_USER=adminuser
|
|
18
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
19
|
+
# DB_NAME=FM_QA
|
package/dist/data-source.js
CHANGED
|
@@ -107,6 +107,11 @@ const RegisterCandidateAttachmentModel_1 = require("./models/RegisterCandidateAt
|
|
|
107
107
|
const RegisterCandidateChatModel_1 = require("./models/RegisterCandidateChatModel");
|
|
108
108
|
const RegisterCandidateWorkflowModel_1 = require("./models/RegisterCandidateWorkflowModel");
|
|
109
109
|
const RegisterCandidateExperienceActivityModel_1 = require("./models/RegisterCandidateExperienceActivityModel");
|
|
110
|
+
const LMSCourseExternalLecturerRequestModel_1 = require("./models/LMSCourseExternalLecturerRequestModel");
|
|
111
|
+
const LMSCourseExternalLecturerApprovalModel_1 = require("./models/LMSCourseExternalLecturerApprovalModel");
|
|
112
|
+
const LMSCourseExternalLecturerAttachmentModel_1 = require("./models/LMSCourseExternalLecturerAttachmentModel");
|
|
113
|
+
const LMSCourseExternalLecturerChatModel_1 = require("./models/LMSCourseExternalLecturerChatModel");
|
|
114
|
+
const LMSCourseExternalLecturerWorkflowModel_1 = require("./models/LMSCourseExternalLecturerWorkflowModel");
|
|
110
115
|
const RequestParcelRequestModel_1 = require("./models/RequestParcelRequestModel");
|
|
111
116
|
const RequestParcelApprovalModel_1 = require("./models/RequestParcelApprovalModel");
|
|
112
117
|
const RequestParcelAttachmentModel_1 = require("./models/RequestParcelAttachmentModel");
|
|
@@ -254,6 +259,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
254
259
|
RegisterCandidateChatModel_1.RegisterCandidateRequestChat,
|
|
255
260
|
RegisterCandidateWorkflowModel_1.RegisterCandidateWorkFlow,
|
|
256
261
|
RegisterCandidateExperienceActivityModel_1.RegisterCandidateExperienceActivity,
|
|
262
|
+
LMSCourseExternalLecturerRequestModel_1.LMSCourseExternalLecturerRequests,
|
|
263
|
+
LMSCourseExternalLecturerApprovalModel_1.LMSCourseExternalLecturerApprovalDetails,
|
|
264
|
+
LMSCourseExternalLecturerAttachmentModel_1.LMSCourseExternalLecturerRequestAttachment,
|
|
265
|
+
LMSCourseExternalLecturerChatModel_1.LMSCourseExternalLecturerRequestChat,
|
|
266
|
+
LMSCourseExternalLecturerWorkflowModel_1.LMSCourseExternalLecturerWorkFlow,
|
|
257
267
|
RequestParcelRequestModel_1.RequestParcelRequests,
|
|
258
268
|
RequestParcelApprovalModel_1.RequestParcelApprovalDetails,
|
|
259
269
|
RequestParcelAttachmentModel_1.RequestParcelRequestAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -109,6 +109,11 @@ export * from './models/RegisterCandidateChatModel';
|
|
|
109
109
|
export * from './models/RegisterCandidateWorkflowModel';
|
|
110
110
|
export * from './models/RegisterCandidateExperienceActivityModel';
|
|
111
111
|
export { RegisterCandidateExperienceActivity } from './models/RegisterCandidateExperienceActivityModel';
|
|
112
|
+
export * from './models/LMSCourseExternalLecturerRequestModel';
|
|
113
|
+
export * from './models/LMSCourseExternalLecturerApprovalModel';
|
|
114
|
+
export * from './models/LMSCourseExternalLecturerAttachmentModel';
|
|
115
|
+
export * from './models/LMSCourseExternalLecturerChatModel';
|
|
116
|
+
export * from './models/LMSCourseExternalLecturerWorkflowModel';
|
|
112
117
|
export * from './models/RequestParcelRequestModel';
|
|
113
118
|
export * from './models/RequestParcelApprovalModel';
|
|
114
119
|
export * from './models/RequestParcelAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -127,6 +127,11 @@ __exportStar(require("./models/RegisterCandidateWorkflowModel"), exports);
|
|
|
127
127
|
__exportStar(require("./models/RegisterCandidateExperienceActivityModel"), exports);
|
|
128
128
|
var RegisterCandidateExperienceActivityModel_1 = require("./models/RegisterCandidateExperienceActivityModel");
|
|
129
129
|
Object.defineProperty(exports, "RegisterCandidateExperienceActivity", { enumerable: true, get: function () { return RegisterCandidateExperienceActivityModel_1.RegisterCandidateExperienceActivity; } });
|
|
130
|
+
__exportStar(require("./models/LMSCourseExternalLecturerRequestModel"), exports);
|
|
131
|
+
__exportStar(require("./models/LMSCourseExternalLecturerApprovalModel"), exports);
|
|
132
|
+
__exportStar(require("./models/LMSCourseExternalLecturerAttachmentModel"), exports);
|
|
133
|
+
__exportStar(require("./models/LMSCourseExternalLecturerChatModel"), exports);
|
|
134
|
+
__exportStar(require("./models/LMSCourseExternalLecturerWorkflowModel"), exports);
|
|
130
135
|
__exportStar(require("./models/RequestParcelRequestModel"), exports);
|
|
131
136
|
__exportStar(require("./models/RequestParcelApprovalModel"), exports);
|
|
132
137
|
__exportStar(require("./models/RequestParcelAttachmentModel"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.HelpContentMappedCategories = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(help_content_category_Id, help_content_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.help_content_category_Id = help_content_category_Id,
|
|
19
|
+
this.help_content_Id = help_content_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.HelpContentMappedCategories = HelpContentMappedCategories;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], HelpContentMappedCategories.prototype, "help_content_Id", void 0);
|
|
31
|
+
exports.HelpContentMappedCategories = HelpContentMappedCategories = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'help_content_mapped_categories' }),
|
|
33
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
+
], HelpContentMappedCategories);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.HelpContentMappedTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(help_content_tag_Id, help_content_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.help_content_tag_Id = help_content_tag_Id,
|
|
19
|
+
this.help_content_Id = help_content_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.HelpContentMappedTags = HelpContentMappedTags;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], HelpContentMappedTags.prototype, "help_content_Id", void 0);
|
|
31
|
+
exports.HelpContentMappedTags = HelpContentMappedTags = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'help_content_mapped_tags' }),
|
|
33
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
+
], HelpContentMappedTags);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.HelpContentTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentTags = class HelpContentTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.HelpContentTags = HelpContentTags;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], HelpContentTags.prototype, "name", void 0);
|
|
26
|
+
exports.HelpContentTags = HelpContentTags = __decorate([
|
|
27
|
+
(0, typeorm_1.Entity)({ name: 'help_content_tags' }),
|
|
28
|
+
__metadata("design:paramtypes", [String])
|
|
29
|
+
], HelpContentTags);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LMSCourseExternalLecturerApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class LMSCourseExternalLecturerApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: LMSCourseExternalLecturerApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.LMSCourseExternalLecturerApprovalDetails = exports.LMSCourseExternalLecturerApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LMSCourseExternalLecturerApprovalStatus;
|
|
16
|
+
(function (LMSCourseExternalLecturerApprovalStatus) {
|
|
17
|
+
LMSCourseExternalLecturerApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
LMSCourseExternalLecturerApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
LMSCourseExternalLecturerApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
LMSCourseExternalLecturerApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(LMSCourseExternalLecturerApprovalStatus || (exports.LMSCourseExternalLecturerApprovalStatus = LMSCourseExternalLecturerApprovalStatus = {}));
|
|
22
|
+
let LMSCourseExternalLecturerApprovalDetails = class LMSCourseExternalLecturerApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.LMSCourseExternalLecturerApprovalDetails = LMSCourseExternalLecturerApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], LMSCourseExternalLecturerApprovalDetails.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
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: LMSCourseExternalLecturerApprovalStatus, default: LMSCourseExternalLecturerApprovalStatus.PENDING, nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], LMSCourseExternalLecturerApprovalDetails.prototype, "is_allowed", void 0);
|
|
77
|
+
exports.LMSCourseExternalLecturerApprovalDetails = LMSCourseExternalLecturerApprovalDetails = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_approvals' })
|
|
79
|
+
], LMSCourseExternalLecturerApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class LMSCourseExternalLecturerRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LMSCourseExternalLecturerRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let LMSCourseExternalLecturerRequestAttachment = class LMSCourseExternalLecturerRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.LMSCourseExternalLecturerRequestAttachment = LMSCourseExternalLecturerRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], LMSCourseExternalLecturerRequestAttachment.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
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LMSCourseExternalLecturerRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.LMSCourseExternalLecturerRequestAttachment = LMSCourseExternalLecturerRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_attachments' })
|
|
52
|
+
], LMSCourseExternalLecturerRequestAttachment);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LMSCourseExternalLecturerMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class LMSCourseExternalLecturerRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number;
|
|
15
|
+
message: string;
|
|
16
|
+
messageType: LMSCourseExternalLecturerMessageType;
|
|
17
|
+
status: string;
|
|
18
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: LMSCourseExternalLecturerMessageType, status?: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LMSCourseExternalLecturerRequestChat = exports.LMSCourseExternalLecturerMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const LMSCourseExternalLecturerApprovalModel_1 = require("./LMSCourseExternalLecturerApprovalModel");
|
|
16
|
+
var LMSCourseExternalLecturerMessageType;
|
|
17
|
+
(function (LMSCourseExternalLecturerMessageType) {
|
|
18
|
+
LMSCourseExternalLecturerMessageType["TEXT"] = "text";
|
|
19
|
+
LMSCourseExternalLecturerMessageType["IMAGE"] = "image";
|
|
20
|
+
LMSCourseExternalLecturerMessageType["VIDEO"] = "video";
|
|
21
|
+
LMSCourseExternalLecturerMessageType["FILE"] = "file";
|
|
22
|
+
LMSCourseExternalLecturerMessageType["LINK"] = "link";
|
|
23
|
+
})(LMSCourseExternalLecturerMessageType || (exports.LMSCourseExternalLecturerMessageType = LMSCourseExternalLecturerMessageType = {}));
|
|
24
|
+
let LMSCourseExternalLecturerRequestChat = class LMSCourseExternalLecturerRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || LMSCourseExternalLecturerMessageType.TEXT;
|
|
34
|
+
this.status = status || LMSCourseExternalLecturerApprovalModel_1.LMSCourseExternalLecturerApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.LMSCourseExternalLecturerRequestChat = LMSCourseExternalLecturerRequestChat;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "request_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "role_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "message", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: LMSCourseExternalLecturerMessageType,
|
|
66
|
+
default: LMSCourseExternalLecturerMessageType.TEXT,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], LMSCourseExternalLecturerRequestChat.prototype, "status", void 0);
|
|
75
|
+
exports.LMSCourseExternalLecturerRequestChat = LMSCourseExternalLecturerRequestChat = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_chats' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
+
], LMSCourseExternalLecturerRequestChat);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LMSCourseExternalLecturerStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare class LMSCourseExternalLecturerRequests extends BaseModel {
|
|
10
|
+
req_user_department_id: number | null;
|
|
11
|
+
req_user_section_id: number | null;
|
|
12
|
+
service_id: number | null;
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
user_id: number;
|
|
15
|
+
course_name: string | null;
|
|
16
|
+
course_level: string | null;
|
|
17
|
+
material_price: string | null;
|
|
18
|
+
transportation: string | null;
|
|
19
|
+
accommodation: string | null;
|
|
20
|
+
allowances: string | null;
|
|
21
|
+
food: string | null;
|
|
22
|
+
present: string | null;
|
|
23
|
+
reason_of_course: string | null;
|
|
24
|
+
estimated_number_of_participants: number | null;
|
|
25
|
+
date_from: Date | null;
|
|
26
|
+
date_to: Date | null;
|
|
27
|
+
time_from: string | null;
|
|
28
|
+
time_to: string | null;
|
|
29
|
+
lecturer_full_name: string | null;
|
|
30
|
+
passport: string | null;
|
|
31
|
+
age: number | null;
|
|
32
|
+
qualifications: string | null;
|
|
33
|
+
experience: string | null;
|
|
34
|
+
cv_attachment: string | null;
|
|
35
|
+
course_material: string | null;
|
|
36
|
+
status: LMSCourseExternalLecturerStatus;
|
|
37
|
+
workflow_execution_id: string | null;
|
|
38
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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.LMSCourseExternalLecturerRequests = exports.LMSCourseExternalLecturerStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LMSCourseExternalLecturerStatus;
|
|
16
|
+
(function (LMSCourseExternalLecturerStatus) {
|
|
17
|
+
LMSCourseExternalLecturerStatus["PENDING"] = "Pending";
|
|
18
|
+
LMSCourseExternalLecturerStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
LMSCourseExternalLecturerStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
LMSCourseExternalLecturerStatus["APPROVED"] = "Approved";
|
|
21
|
+
LMSCourseExternalLecturerStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(LMSCourseExternalLecturerStatus || (exports.LMSCourseExternalLecturerStatus = LMSCourseExternalLecturerStatus = {}));
|
|
23
|
+
let LMSCourseExternalLecturerRequests = class LMSCourseExternalLecturerRequests extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.LMSCourseExternalLecturerRequests = LMSCourseExternalLecturerRequests;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], LMSCourseExternalLecturerRequests.prototype, "req_user_department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], LMSCourseExternalLecturerRequests.prototype, "req_user_section_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], LMSCourseExternalLecturerRequests.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], LMSCourseExternalLecturerRequests.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], LMSCourseExternalLecturerRequests.prototype, "user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LMSCourseExternalLecturerRequests.prototype, "course_name", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], LMSCourseExternalLecturerRequests.prototype, "course_level", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], LMSCourseExternalLecturerRequests.prototype, "material_price", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], LMSCourseExternalLecturerRequests.prototype, "transportation", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], LMSCourseExternalLecturerRequests.prototype, "accommodation", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], LMSCourseExternalLecturerRequests.prototype, "allowances", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], LMSCourseExternalLecturerRequests.prototype, "food", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], LMSCourseExternalLecturerRequests.prototype, "present", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], LMSCourseExternalLecturerRequests.prototype, "reason_of_course", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], LMSCourseExternalLecturerRequests.prototype, "estimated_number_of_participants", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], LMSCourseExternalLecturerRequests.prototype, "date_from", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], LMSCourseExternalLecturerRequests.prototype, "date_to", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], LMSCourseExternalLecturerRequests.prototype, "time_from", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], LMSCourseExternalLecturerRequests.prototype, "time_to", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], LMSCourseExternalLecturerRequests.prototype, "lecturer_full_name", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], LMSCourseExternalLecturerRequests.prototype, "passport", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], LMSCourseExternalLecturerRequests.prototype, "age", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
116
|
+
__metadata("design:type", Object)
|
|
117
|
+
], LMSCourseExternalLecturerRequests.prototype, "qualifications", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
120
|
+
__metadata("design:type", Object)
|
|
121
|
+
], LMSCourseExternalLecturerRequests.prototype, "experience", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], LMSCourseExternalLecturerRequests.prototype, "cv_attachment", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], LMSCourseExternalLecturerRequests.prototype, "course_material", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: LMSCourseExternalLecturerStatus, default: LMSCourseExternalLecturerStatus.PENDING, nullable: false }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], LMSCourseExternalLecturerRequests.prototype, "status", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], LMSCourseExternalLecturerRequests.prototype, "workflow_execution_id", void 0);
|
|
138
|
+
exports.LMSCourseExternalLecturerRequests = LMSCourseExternalLecturerRequests = __decorate([
|
|
139
|
+
(0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_requests' })
|
|
140
|
+
], LMSCourseExternalLecturerRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LMSCourseExternalLecturerWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class LMSCourseExternalLecturerWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: LMSCourseExternalLecturerWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.LMSCourseExternalLecturerWorkFlow = exports.LMSCourseExternalLecturerWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LMSCourseExternalLecturerWorkFlowStatus;
|
|
16
|
+
(function (LMSCourseExternalLecturerWorkFlowStatus) {
|
|
17
|
+
LMSCourseExternalLecturerWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
LMSCourseExternalLecturerWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
LMSCourseExternalLecturerWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(LMSCourseExternalLecturerWorkFlowStatus || (exports.LMSCourseExternalLecturerWorkFlowStatus = LMSCourseExternalLecturerWorkFlowStatus = {}));
|
|
21
|
+
let LMSCourseExternalLecturerWorkFlow = class LMSCourseExternalLecturerWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.LMSCourseExternalLecturerWorkFlow = LMSCourseExternalLecturerWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], LMSCourseExternalLecturerWorkFlow.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
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: LMSCourseExternalLecturerWorkFlowStatus, default: LMSCourseExternalLecturerWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "role_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "department_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], LMSCourseExternalLecturerWorkFlow.prototype, "section_id", void 0);
|
|
60
|
+
exports.LMSCourseExternalLecturerWorkFlow = LMSCourseExternalLecturerWorkFlow = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_workflows' })
|
|
62
|
+
], LMSCourseExternalLecturerWorkFlow);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.QuestionTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, question_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name,
|
|
19
|
+
this.question_Id = question_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.QuestionTags = QuestionTags;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], QuestionTags.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], QuestionTags.prototype, "question_Id", void 0);
|
|
31
|
+
exports.QuestionTags = QuestionTags = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'question_tags' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, Number])
|
|
34
|
+
], QuestionTags);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -112,6 +112,11 @@ import { RegisterCandidateRequestAttachment } from './models/RegisterCandidateAt
|
|
|
112
112
|
import { RegisterCandidateRequestChat } from './models/RegisterCandidateChatModel';
|
|
113
113
|
import { RegisterCandidateWorkFlow } from './models/RegisterCandidateWorkflowModel';
|
|
114
114
|
import { RegisterCandidateExperienceActivity } from './models/RegisterCandidateExperienceActivityModel';
|
|
115
|
+
import { LMSCourseExternalLecturerRequests } from './models/LMSCourseExternalLecturerRequestModel';
|
|
116
|
+
import { LMSCourseExternalLecturerApprovalDetails } from './models/LMSCourseExternalLecturerApprovalModel';
|
|
117
|
+
import { LMSCourseExternalLecturerRequestAttachment } from './models/LMSCourseExternalLecturerAttachmentModel';
|
|
118
|
+
import { LMSCourseExternalLecturerRequestChat } from './models/LMSCourseExternalLecturerChatModel';
|
|
119
|
+
import { LMSCourseExternalLecturerWorkFlow } from './models/LMSCourseExternalLecturerWorkflowModel';
|
|
115
120
|
import { RequestParcelRequests } from './models/RequestParcelRequestModel';
|
|
116
121
|
import { RequestParcelApprovalDetails } from './models/RequestParcelApprovalModel';
|
|
117
122
|
import { RequestParcelRequestAttachment } from './models/RequestParcelAttachmentModel';
|
|
@@ -262,6 +267,11 @@ export const AppDataSource = new DataSource({
|
|
|
262
267
|
RegisterCandidateRequestChat,
|
|
263
268
|
RegisterCandidateWorkFlow,
|
|
264
269
|
RegisterCandidateExperienceActivity,
|
|
270
|
+
LMSCourseExternalLecturerRequests,
|
|
271
|
+
LMSCourseExternalLecturerApprovalDetails,
|
|
272
|
+
LMSCourseExternalLecturerRequestAttachment,
|
|
273
|
+
LMSCourseExternalLecturerRequestChat,
|
|
274
|
+
LMSCourseExternalLecturerWorkFlow,
|
|
265
275
|
RequestParcelRequests,
|
|
266
276
|
RequestParcelApprovalDetails,
|
|
267
277
|
RequestParcelRequestAttachment,
|
package/src/index.ts
CHANGED
|
@@ -109,6 +109,11 @@ export * from './models/RegisterCandidateChatModel';
|
|
|
109
109
|
export * from './models/RegisterCandidateWorkflowModel';
|
|
110
110
|
export * from './models/RegisterCandidateExperienceActivityModel';
|
|
111
111
|
export {RegisterCandidateExperienceActivity} from './models/RegisterCandidateExperienceActivityModel';
|
|
112
|
+
export * from './models/LMSCourseExternalLecturerRequestModel';
|
|
113
|
+
export * from './models/LMSCourseExternalLecturerApprovalModel';
|
|
114
|
+
export * from './models/LMSCourseExternalLecturerAttachmentModel';
|
|
115
|
+
export * from './models/LMSCourseExternalLecturerChatModel';
|
|
116
|
+
export * from './models/LMSCourseExternalLecturerWorkflowModel';
|
|
112
117
|
export * from './models/RequestParcelRequestModel';
|
|
113
118
|
export * from './models/RequestParcelApprovalModel';
|
|
114
119
|
export * from './models/RequestParcelAttachmentModel';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum LMSCourseExternalLecturerApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'lms_course_external_lecturer_approvals' })
|
|
12
|
+
export class LMSCourseExternalLecturerApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'enum', enum: LMSCourseExternalLecturerApprovalStatus, default: LMSCourseExternalLecturerApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: LMSCourseExternalLecturerApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
+
is_allowed: boolean;
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'lms_course_external_lecturer_attachments' })
|
|
5
|
+
export class LMSCourseExternalLecturerRequestAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'integer', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'integer', nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'integer', nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
+
file_url: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
file_name: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'bigint', nullable: true })
|
|
26
|
+
file_size: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
chat_id: number | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { LMSCourseExternalLecturerApprovalStatus } from './LMSCourseExternalLecturerApprovalModel';
|
|
4
|
+
|
|
5
|
+
export enum LMSCourseExternalLecturerMessageType {
|
|
6
|
+
TEXT = "text",
|
|
7
|
+
IMAGE = "image",
|
|
8
|
+
VIDEO = "video",
|
|
9
|
+
FILE = "file",
|
|
10
|
+
LINK = "link"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'lms_course_external_lecturer_chats' })
|
|
14
|
+
export class LMSCourseExternalLecturerRequestChat extends BaseModel {
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: false })
|
|
17
|
+
request_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: true })
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: false })
|
|
26
|
+
user_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
role_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'text', nullable: false })
|
|
32
|
+
message: string;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: LMSCourseExternalLecturerMessageType,
|
|
37
|
+
default: LMSCourseExternalLecturerMessageType.TEXT,
|
|
38
|
+
nullable: false
|
|
39
|
+
})
|
|
40
|
+
messageType: LMSCourseExternalLecturerMessageType;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'text', nullable: true })
|
|
43
|
+
status: string;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
request_id: number,
|
|
47
|
+
user_id: number,
|
|
48
|
+
role_id: number,
|
|
49
|
+
message: string,
|
|
50
|
+
service_id?: number,
|
|
51
|
+
sub_service_id?: number,
|
|
52
|
+
messageType?: LMSCourseExternalLecturerMessageType,
|
|
53
|
+
status?: string
|
|
54
|
+
) {
|
|
55
|
+
super();
|
|
56
|
+
this.request_id = request_id;
|
|
57
|
+
this.service_id = service_id || null;
|
|
58
|
+
this.sub_service_id = sub_service_id || null;
|
|
59
|
+
this.user_id = user_id;
|
|
60
|
+
this.role_id = role_id;
|
|
61
|
+
this.message = message;
|
|
62
|
+
this.messageType = messageType || LMSCourseExternalLecturerMessageType.TEXT;
|
|
63
|
+
this.status = status || LMSCourseExternalLecturerApprovalStatus.PENDING;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum LMSCourseExternalLecturerStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'lms_course_external_lecturer_requests' })
|
|
13
|
+
export class LMSCourseExternalLecturerRequests extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// New columns
|
|
32
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
33
|
+
course_name: string | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
36
|
+
course_level: string | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
material_price: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', nullable: true })
|
|
42
|
+
transportation: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', nullable: true })
|
|
45
|
+
accommodation: string | null;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'varchar', nullable: true })
|
|
48
|
+
allowances: string | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'varchar', nullable: true })
|
|
51
|
+
food: string | null;
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
|
+
present: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'text', nullable: true })
|
|
57
|
+
reason_of_course: string | null;
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'int', nullable: true })
|
|
60
|
+
estimated_number_of_participants: number | null;
|
|
61
|
+
|
|
62
|
+
@Column({ type: 'date', nullable: true })
|
|
63
|
+
date_from: Date | null;
|
|
64
|
+
|
|
65
|
+
@Column({ type: 'date', nullable: true })
|
|
66
|
+
date_to: Date | null;
|
|
67
|
+
|
|
68
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
69
|
+
time_from: string | null;
|
|
70
|
+
|
|
71
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
72
|
+
time_to: string | null;
|
|
73
|
+
|
|
74
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
75
|
+
lecturer_full_name: string | null;
|
|
76
|
+
|
|
77
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
78
|
+
passport: string | null;
|
|
79
|
+
|
|
80
|
+
@Column({ type: 'int', nullable: true })
|
|
81
|
+
age: number | null;
|
|
82
|
+
|
|
83
|
+
@Column({ type: 'text', nullable: true })
|
|
84
|
+
qualifications: string | null;
|
|
85
|
+
|
|
86
|
+
@Column({ type: 'text', nullable: true })
|
|
87
|
+
experience: string | null;
|
|
88
|
+
|
|
89
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
90
|
+
cv_attachment: string | null;
|
|
91
|
+
|
|
92
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
93
|
+
course_material: string | null;
|
|
94
|
+
|
|
95
|
+
@Column({ type: 'enum', enum: LMSCourseExternalLecturerStatus, default: LMSCourseExternalLecturerStatus.PENDING, nullable: false })
|
|
96
|
+
status: LMSCourseExternalLecturerStatus;
|
|
97
|
+
|
|
98
|
+
@Column({ type: 'varchar', nullable: true })
|
|
99
|
+
workflow_execution_id: string | null;
|
|
100
|
+
|
|
101
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum LMSCourseExternalLecturerWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'lms_course_external_lecturer_workflows' })
|
|
11
|
+
export class LMSCourseExternalLecturerWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'enum', enum: LMSCourseExternalLecturerWorkFlowStatus, default: LMSCourseExternalLecturerWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: LMSCourseExternalLecturerWorkFlowStatus;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
user_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
role_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
department_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
section_id: number | null;
|
|
38
|
+
}
|
|
File without changes
|