@platform-modules/foreign-ministry 1.3.109 → 1.3.111

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.
Files changed (49) hide show
  1. package/.env +15 -6
  2. package/dist/data-source.js +12 -0
  3. package/dist/index.d.ts +6 -0
  4. package/dist/index.js +6 -0
  5. package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
  6. package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
  7. package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
  8. package/dist/models/HelpContentMappedTagsModel.js +34 -0
  9. package/dist/models/HelpContentTagsModel.d.ts +5 -0
  10. package/dist/models/HelpContentTagsModel.js +29 -0
  11. package/dist/models/LMSExternalCourseParticipationApprovalModel.d.ts +23 -0
  12. package/dist/models/LMSExternalCourseParticipationApprovalModel.js +83 -0
  13. package/dist/models/LMSExternalCourseParticipationAttachmentModel.d.ts +11 -0
  14. package/dist/models/LMSExternalCourseParticipationAttachmentModel.js +52 -0
  15. package/dist/models/LMSExternalCourseParticipationCandidateModel.d.ts +7 -0
  16. package/dist/models/LMSExternalCourseParticipationCandidateModel.js +36 -0
  17. package/dist/models/LMSExternalCourseParticipationChatModel.d.ts +19 -0
  18. package/dist/models/LMSExternalCourseParticipationChatModel.js +78 -0
  19. package/dist/models/LMSExternalCourseParticipationRequestModel.d.ts +26 -0
  20. package/dist/models/LMSExternalCourseParticipationRequestModel.js +92 -0
  21. package/dist/models/LMSExternalCourseParticipationWorkflowModel.d.ts +17 -0
  22. package/dist/models/LMSExternalCourseParticipationWorkflowModel.js +62 -0
  23. package/dist/models/RegisterCandidateRequestModel.d.ts +5 -0
  24. package/dist/models/RegisterCandidateRequestModel.js +20 -0
  25. package/dist/models/questionTagsModel.d.ts +6 -0
  26. package/dist/models/questionTagsModel.js +34 -0
  27. package/package.json +1 -1
  28. package/src/data-source.ts +12 -0
  29. package/src/index.ts +6 -0
  30. package/src/models/DocumentTranslationRequestModel.ts +54 -54
  31. package/src/models/LMSExternalCourseParticipationApprovalModel.ts +54 -0
  32. package/src/models/LMSExternalCourseParticipationAttachmentModel.ts +30 -0
  33. package/src/models/LMSExternalCourseParticipationCandidateModel.ts +17 -0
  34. package/src/models/LMSExternalCourseParticipationChatModel.ts +65 -0
  35. package/src/models/LMSExternalCourseParticipationRequestModel.ts +63 -0
  36. package/src/models/LMSExternalCourseParticipationWorkflowModel.ts +38 -0
  37. package/src/models/LeaveConfigModel.ts +71 -71
  38. package/src/models/MissionTravelApprovalModel.ts +101 -101
  39. package/src/models/MissionTravelAttachmentModel.ts +56 -56
  40. package/src/models/MissionTravelChatModel.ts +52 -52
  41. package/src/models/MissionTravelPersonModel.ts +105 -105
  42. package/src/models/MissionTravelWorkflowModel.ts +54 -54
  43. package/src/models/RegisterCandidateRequestModel.ts +177 -162
  44. package/src/models/SectionModel.ts +35 -35
  45. package/dist/models/MissionTravelClassConfigModel.d.ts +0 -10
  46. package/dist/models/MissionTravelClassConfigModel.js +0 -50
  47. package/dist/models/MissionTravelPerdiemModel.d.ts +0 -10
  48. package/dist/models/MissionTravelPerdiemModel.js +0 -54
  49. /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
@@ -0,0 +1,92 @@
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.LMSExternalCourseParticipationRequests = exports.LMSExternalCourseParticipationStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var LMSExternalCourseParticipationStatus;
16
+ (function (LMSExternalCourseParticipationStatus) {
17
+ LMSExternalCourseParticipationStatus["PENDING"] = "Pending";
18
+ LMSExternalCourseParticipationStatus["ASSIGNED"] = "Assigned";
19
+ LMSExternalCourseParticipationStatus["IN_PROGRESS"] = "In Progress";
20
+ LMSExternalCourseParticipationStatus["APPROVED"] = "Approved";
21
+ LMSExternalCourseParticipationStatus["REJECTED"] = "Rejected";
22
+ })(LMSExternalCourseParticipationStatus || (exports.LMSExternalCourseParticipationStatus = LMSExternalCourseParticipationStatus = {}));
23
+ let LMSExternalCourseParticipationRequests = class LMSExternalCourseParticipationRequests extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.LMSExternalCourseParticipationRequests = LMSExternalCourseParticipationRequests;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], LMSExternalCourseParticipationRequests.prototype, "req_user_department_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], LMSExternalCourseParticipationRequests.prototype, "req_user_section_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], LMSExternalCourseParticipationRequests.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], LMSExternalCourseParticipationRequests.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
44
+ __metadata("design:type", Number)
45
+ ], LMSExternalCourseParticipationRequests.prototype, "user_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'enum', enum: LMSExternalCourseParticipationStatus, default: LMSExternalCourseParticipationStatus.PENDING, nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], LMSExternalCourseParticipationRequests.prototype, "status", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], LMSExternalCourseParticipationRequests.prototype, "workflow_execution_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], LMSExternalCourseParticipationRequests.prototype, "course_name", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], LMSExternalCourseParticipationRequests.prototype, "institution", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], LMSExternalCourseParticipationRequests.prototype, "course_required_qualifications", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], LMSExternalCourseParticipationRequests.prototype, "course_start_date", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], LMSExternalCourseParticipationRequests.prototype, "course_end_date", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], LMSExternalCourseParticipationRequests.prototype, "course_location", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
80
+ __metadata("design:type", Object)
81
+ ], LMSExternalCourseParticipationRequests.prototype, "cost", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], LMSExternalCourseParticipationRequests.prototype, "currency_type", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
88
+ __metadata("design:type", Object)
89
+ ], LMSExternalCourseParticipationRequests.prototype, "comment", void 0);
90
+ exports.LMSExternalCourseParticipationRequests = LMSExternalCourseParticipationRequests = __decorate([
91
+ (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_requests' })
92
+ ], LMSExternalCourseParticipationRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum LMSExternalCourseParticipationWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class LMSExternalCourseParticipationWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: LMSExternalCourseParticipationWorkFlowStatus;
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.LMSExternalCourseParticipationWorkFlow = exports.LMSExternalCourseParticipationWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var LMSExternalCourseParticipationWorkFlowStatus;
16
+ (function (LMSExternalCourseParticipationWorkFlowStatus) {
17
+ LMSExternalCourseParticipationWorkFlowStatus["COMPLETED"] = "Completed";
18
+ LMSExternalCourseParticipationWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ LMSExternalCourseParticipationWorkFlowStatus["PENDING"] = "Pending";
20
+ })(LMSExternalCourseParticipationWorkFlowStatus || (exports.LMSExternalCourseParticipationWorkFlowStatus = LMSExternalCourseParticipationWorkFlowStatus = {}));
21
+ let LMSExternalCourseParticipationWorkFlow = class LMSExternalCourseParticipationWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.LMSExternalCourseParticipationWorkFlow = LMSExternalCourseParticipationWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], LMSExternalCourseParticipationWorkFlow.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
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'enum', enum: LMSExternalCourseParticipationWorkFlowStatus, default: LMSExternalCourseParticipationWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
42
+ __metadata("design:type", String)
43
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "status", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
46
+ __metadata("design:type", Object)
47
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "user_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
50
+ __metadata("design:type", Object)
51
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "role_id", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
54
+ __metadata("design:type", Object)
55
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "department_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], LMSExternalCourseParticipationWorkFlow.prototype, "section_id", void 0);
60
+ exports.LMSExternalCourseParticipationWorkFlow = LMSExternalCourseParticipationWorkFlow = __decorate([
61
+ (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_workflows' })
62
+ ], LMSExternalCourseParticipationWorkFlow);
@@ -24,6 +24,7 @@ export declare class RegisterCandidateRequests extends BaseModel {
24
24
  date_of_birth: Date | null;
25
25
  nationality: string | null;
26
26
  religion_and_sect: string | null;
27
+ sub_religion_and_sect: string | null;
27
28
  present_residence: string | null;
28
29
  occupation_and_employer: string | null;
29
30
  type_of_study_specializations_qualification: string | null;
@@ -43,6 +44,7 @@ export declare class RegisterCandidateRequests extends BaseModel {
43
44
  address2_po_box_telephone_fax: string | null;
44
45
  reference_full_name: string | null;
45
46
  reference_address_and_telephone: string | null;
47
+ telephone_number: string | null;
46
48
  reference_employer: string | null;
47
49
  vacancy_id: number | null;
48
50
  vacancy_description: string | null;
@@ -51,7 +53,10 @@ export declare class RegisterCandidateRequests extends BaseModel {
51
53
  interviewer_name: string | null;
52
54
  candidate_status: CandidateStatusType | null;
53
55
  joining_date: Date | null;
56
+ salary: string | null;
57
+ currency: string | null;
54
58
  expected_salary: string | null;
59
+ expected_currency: string | null;
55
60
  currency_type: string | null;
56
61
  status: RegisterCandidateStatus;
57
62
  workflow_execution_id: string | null;
@@ -71,6 +71,10 @@ __decorate([
71
71
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
72
72
  __metadata("design:type", Object)
73
73
  ], RegisterCandidateRequests.prototype, "religion_and_sect", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], RegisterCandidateRequests.prototype, "sub_religion_and_sect", void 0);
74
78
  __decorate([
75
79
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
76
80
  __metadata("design:type", Object)
@@ -147,6 +151,10 @@ __decorate([
147
151
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
148
152
  __metadata("design:type", Object)
149
153
  ], RegisterCandidateRequests.prototype, "reference_address_and_telephone", void 0);
154
+ __decorate([
155
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
156
+ __metadata("design:type", Object)
157
+ ], RegisterCandidateRequests.prototype, "telephone_number", void 0);
150
158
  __decorate([
151
159
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
152
160
  __metadata("design:type", Object)
@@ -179,10 +187,22 @@ __decorate([
179
187
  (0, typeorm_1.Column)({ type: 'date', nullable: true }),
180
188
  __metadata("design:type", Object)
181
189
  ], RegisterCandidateRequests.prototype, "joining_date", void 0);
190
+ __decorate([
191
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
192
+ __metadata("design:type", Object)
193
+ ], RegisterCandidateRequests.prototype, "salary", void 0);
194
+ __decorate([
195
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
196
+ __metadata("design:type", Object)
197
+ ], RegisterCandidateRequests.prototype, "currency", void 0);
182
198
  __decorate([
183
199
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
184
200
  __metadata("design:type", Object)
185
201
  ], RegisterCandidateRequests.prototype, "expected_salary", void 0);
202
+ __decorate([
203
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
204
+ __metadata("design:type", Object)
205
+ ], RegisterCandidateRequests.prototype, "expected_currency", void 0);
186
206
  __decorate([
187
207
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
188
208
  __metadata("design:type", Object)
@@ -0,0 +1,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class QuestionTags extends BaseModel {
3
+ name: string;
4
+ question_Id: number;
5
+ constructor(name: string, question_Id: number);
6
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.109",
3
+ "version": "1.3.111",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -123,6 +123,12 @@ import { LMSExternalEntityTrainedApprovalDetails } from './models/LMSExternalEnt
123
123
  import { LMSExternalEntityTrainedRequestAttachment } from './models/LMSExternalEntityTrainedAttachmentModel';
124
124
  import { LMSExternalEntityTrainedRequestChat } from './models/LMSExternalEntityTrainedChatModel';
125
125
  import { LMSExternalEntityTrainedWorkFlow } from './models/LMSExternalEntityTrainedWorkflowModel';
126
+ import { LMSExternalCourseParticipationRequests } from './models/LMSExternalCourseParticipationRequestModel';
127
+ import { LMSExternalCourseParticipationApprovalDetails } from './models/LMSExternalCourseParticipationApprovalModel';
128
+ import { LMSExternalCourseParticipationRequestAttachment } from './models/LMSExternalCourseParticipationAttachmentModel';
129
+ import { LMSExternalCourseParticipationRequestChat } from './models/LMSExternalCourseParticipationChatModel';
130
+ import { LMSExternalCourseParticipationWorkFlow } from './models/LMSExternalCourseParticipationWorkflowModel';
131
+ import { LMSExternalCourseParticipationCandidate } from './models/LMSExternalCourseParticipationCandidateModel';
126
132
  import { RequestParcelRequests } from './models/RequestParcelRequestModel';
127
133
  import { RequestParcelApprovalDetails } from './models/RequestParcelApprovalModel';
128
134
  import { RequestParcelRequestAttachment } from './models/RequestParcelAttachmentModel';
@@ -284,6 +290,12 @@ export const AppDataSource = new DataSource({
284
290
  LMSExternalEntityTrainedRequestAttachment,
285
291
  LMSExternalEntityTrainedRequestChat,
286
292
  LMSExternalEntityTrainedWorkFlow,
293
+ LMSExternalCourseParticipationRequests,
294
+ LMSExternalCourseParticipationApprovalDetails,
295
+ LMSExternalCourseParticipationRequestAttachment,
296
+ LMSExternalCourseParticipationRequestChat,
297
+ LMSExternalCourseParticipationWorkFlow,
298
+ LMSExternalCourseParticipationCandidate,
287
299
  RequestParcelRequests,
288
300
  RequestParcelApprovalDetails,
289
301
  RequestParcelRequestAttachment,
package/src/index.ts CHANGED
@@ -120,6 +120,12 @@ export * from './models/LMSExternalEntityTrainedApprovalModel';
120
120
  export * from './models/LMSExternalEntityTrainedAttachmentModel';
121
121
  export * from './models/LMSExternalEntityTrainedChatModel';
122
122
  export * from './models/LMSExternalEntityTrainedWorkflowModel';
123
+ export * from './models/LMSExternalCourseParticipationRequestModel';
124
+ export * from './models/LMSExternalCourseParticipationApprovalModel';
125
+ export * from './models/LMSExternalCourseParticipationAttachmentModel';
126
+ export * from './models/LMSExternalCourseParticipationChatModel';
127
+ export * from './models/LMSExternalCourseParticipationWorkflowModel';
128
+ export * from './models/LMSExternalCourseParticipationCandidateModel';
123
129
  export * from './models/RequestParcelRequestModel';
124
130
  export * from './models/RequestParcelApprovalModel';
125
131
  export * from './models/RequestParcelAttachmentModel';
@@ -1,54 +1,54 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- export enum DocumentTranslationStatus {
5
- SUBMITTED = "Submitted",
6
- PENDING = "Pending",
7
- ASSIGNED = "Assigned",
8
- IN_PROGRESS = "In Progress",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- export enum DocumentClassificationType {
14
- NORMAL = "Normal",
15
- CONFIDENTIAL = "Confidential"
16
- }
17
-
18
- @Entity({ name: 'document_translation_requests' })
19
- export class DocumentTranslationRequests extends BaseModel {
20
-
21
- // Common columns
22
- @Column({ type: 'int', nullable: true })
23
- req_user_department_id: number | null;
24
-
25
- @Column({ type: 'int', nullable: true })
26
- req_user_section_id: number | null;
27
-
28
- @Column({ type: 'int', nullable: true })
29
- service_id: number | null;
30
-
31
- @Column({ type: 'int', nullable: true })
32
- sub_service_id: number | null;
33
-
34
- @Column({ type: 'int', nullable: false })
35
- user_id: number;
36
-
37
- // Document Translation specific columns
38
- @Column({ type: 'varchar', length: 255, nullable: false })
39
- document_type: string;
40
-
41
- @Column({ type: 'varchar', length: 500, nullable: false })
42
- document_name: string;
43
-
44
- @Column({ type: 'enum', enum: DocumentClassificationType, nullable: false })
45
- document_classification: DocumentClassificationType;
46
-
47
- @Column({ type: 'enum', enum: DocumentTranslationStatus, default: DocumentTranslationStatus.PENDING, nullable: false })
48
- status: DocumentTranslationStatus;
49
-
50
- @Column({ type: 'varchar', nullable: true })
51
- workflow_execution_id: string | null;
52
-
53
- }
54
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum DocumentTranslationStatus {
5
+ SUBMITTED = "Submitted",
6
+ PENDING = "Pending",
7
+ ASSIGNED = "Assigned",
8
+ IN_PROGRESS = "In Progress",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ export enum DocumentClassificationType {
14
+ NORMAL = "Normal",
15
+ CONFIDENTIAL = "Confidential"
16
+ }
17
+
18
+ @Entity({ name: 'document_translation_requests' })
19
+ export class DocumentTranslationRequests extends BaseModel {
20
+
21
+ // Common columns
22
+ @Column({ type: 'int', nullable: true })
23
+ req_user_department_id: number | null;
24
+
25
+ @Column({ type: 'int', nullable: true })
26
+ req_user_section_id: number | null;
27
+
28
+ @Column({ type: 'int', nullable: true })
29
+ service_id: number | null;
30
+
31
+ @Column({ type: 'int', nullable: true })
32
+ sub_service_id: number | null;
33
+
34
+ @Column({ type: 'int', nullable: false })
35
+ user_id: number;
36
+
37
+ // Document Translation specific columns
38
+ @Column({ type: 'varchar', length: 255, nullable: false })
39
+ document_type: string;
40
+
41
+ @Column({ type: 'varchar', length: 500, nullable: false })
42
+ document_name: string;
43
+
44
+ @Column({ type: 'enum', enum: DocumentClassificationType, nullable: false })
45
+ document_classification: DocumentClassificationType;
46
+
47
+ @Column({ type: 'enum', enum: DocumentTranslationStatus, default: DocumentTranslationStatus.PENDING, nullable: false })
48
+ status: DocumentTranslationStatus;
49
+
50
+ @Column({ type: 'varchar', nullable: true })
51
+ workflow_execution_id: string | null;
52
+
53
+ }
54
+
@@ -0,0 +1,54 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum LMSExternalCourseParticipationApprovalStatus {
5
+ PENDING = "Pending",
6
+ IN_PROGRESS = "In Progress",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected"
9
+ }
10
+
11
+ @Entity({ name: 'lms_external_course_participation_approvals' })
12
+ export class LMSExternalCourseParticipationApprovalDetails 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: LMSExternalCourseParticipationApprovalStatus, default: LMSExternalCourseParticipationApprovalStatus.PENDING, nullable: false })
47
+ approval_status: LMSExternalCourseParticipationApprovalStatus;
48
+
49
+ @Column({ type: 'boolean', default: true, nullable: false })
50
+ is_allowed: boolean;
51
+
52
+ @Column({ type: 'varchar', length: 255, nullable: true })
53
+ task_name: string | null;
54
+ }
@@ -0,0 +1,30 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'lms_external_course_participation_attachments' })
5
+ export class LMSExternalCourseParticipationRequestAttachment 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,17 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'lms_external_course_participation_candidates' })
5
+ export class LMSExternalCourseParticipationCandidate extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: false })
10
+ candidate_id: number;
11
+
12
+ @Column({ type: 'varchar', length: 255, nullable: true })
13
+ candidate_name: string | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: true })
16
+ candidate_profile_url: string | null;
17
+ }
@@ -0,0 +1,65 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+ import { LMSExternalCourseParticipationApprovalStatus } from './LMSExternalCourseParticipationApprovalModel';
4
+
5
+ export enum LMSExternalCourseParticipationMessageType {
6
+ TEXT = "text",
7
+ IMAGE = "image",
8
+ VIDEO = "video",
9
+ FILE = "file",
10
+ LINK = "link"
11
+ }
12
+
13
+ @Entity({ name: 'lms_external_course_participation_chats' })
14
+ export class LMSExternalCourseParticipationRequestChat 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: LMSExternalCourseParticipationMessageType,
37
+ default: LMSExternalCourseParticipationMessageType.TEXT,
38
+ nullable: false
39
+ })
40
+ messageType: LMSExternalCourseParticipationMessageType;
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?: LMSExternalCourseParticipationMessageType,
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 || LMSExternalCourseParticipationMessageType.TEXT;
63
+ this.status = status || LMSExternalCourseParticipationApprovalStatus.PENDING;
64
+ }
65
+ }