@platform-modules/foreign-ministry 1.3.110 → 1.3.112

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 (47) hide show
  1. package/.env +17 -3
  2. package/dist/data-source.js +12 -0
  3. package/dist/index.d.ts +6 -1
  4. package/dist/index.js +6 -1
  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/fix-enum-conflict-complete.sql +150 -0
  28. package/fix-enum-conflict-simple.sql +38 -0
  29. package/fix-enum-conflict.sql +23 -0
  30. package/package.json +1 -1
  31. package/src/data-source.ts +12 -0
  32. package/src/index.ts +6 -1
  33. package/src/models/LMSExternalCourseParticipationApprovalModel.ts +54 -0
  34. package/src/models/LMSExternalCourseParticipationAttachmentModel.ts +30 -0
  35. package/src/models/LMSExternalCourseParticipationCandidateModel.ts +17 -0
  36. package/src/models/LMSExternalCourseParticipationChatModel.ts +65 -0
  37. package/src/models/LMSExternalCourseParticipationRequestModel.ts +63 -0
  38. package/src/models/LMSExternalCourseParticipationWorkflowModel.ts +38 -0
  39. package/src/models/RegisterCandidateRequestModel.ts +177 -162
  40. package/dist/models/EmbassyMasterModel.d.ts +0 -16
  41. package/dist/models/EmbassyMasterModel.js +0 -75
  42. package/dist/models/StationeryRequestMaterialsModel.d.ts +0 -15
  43. package/dist/models/StationeryRequestMaterialsModel.js +0 -60
  44. package/dist/models/UserDependentsModel.d.ts +0 -18
  45. package/dist/models/UserDependentsModel.js +0 -94
  46. package/src/models/StationeryRequestMaterialsModel.ts +0 -43
  47. /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=postgres
4
- DB_PASS=Fa@123
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
@@ -118,6 +118,12 @@ const LMSExternalEntityTrainedApprovalModel_1 = require("./models/LMSExternalEnt
118
118
  const LMSExternalEntityTrainedAttachmentModel_1 = require("./models/LMSExternalEntityTrainedAttachmentModel");
119
119
  const LMSExternalEntityTrainedChatModel_1 = require("./models/LMSExternalEntityTrainedChatModel");
120
120
  const LMSExternalEntityTrainedWorkflowModel_1 = require("./models/LMSExternalEntityTrainedWorkflowModel");
121
+ const LMSExternalCourseParticipationRequestModel_1 = require("./models/LMSExternalCourseParticipationRequestModel");
122
+ const LMSExternalCourseParticipationApprovalModel_1 = require("./models/LMSExternalCourseParticipationApprovalModel");
123
+ const LMSExternalCourseParticipationAttachmentModel_1 = require("./models/LMSExternalCourseParticipationAttachmentModel");
124
+ const LMSExternalCourseParticipationChatModel_1 = require("./models/LMSExternalCourseParticipationChatModel");
125
+ const LMSExternalCourseParticipationWorkflowModel_1 = require("./models/LMSExternalCourseParticipationWorkflowModel");
126
+ const LMSExternalCourseParticipationCandidateModel_1 = require("./models/LMSExternalCourseParticipationCandidateModel");
121
127
  const RequestParcelRequestModel_1 = require("./models/RequestParcelRequestModel");
122
128
  const RequestParcelApprovalModel_1 = require("./models/RequestParcelApprovalModel");
123
129
  const RequestParcelAttachmentModel_1 = require("./models/RequestParcelAttachmentModel");
@@ -276,6 +282,12 @@ exports.AppDataSource = new typeorm_1.DataSource({
276
282
  LMSExternalEntityTrainedAttachmentModel_1.LMSExternalEntityTrainedRequestAttachment,
277
283
  LMSExternalEntityTrainedChatModel_1.LMSExternalEntityTrainedRequestChat,
278
284
  LMSExternalEntityTrainedWorkflowModel_1.LMSExternalEntityTrainedWorkFlow,
285
+ LMSExternalCourseParticipationRequestModel_1.LMSExternalCourseParticipationRequests,
286
+ LMSExternalCourseParticipationApprovalModel_1.LMSExternalCourseParticipationApprovalDetails,
287
+ LMSExternalCourseParticipationAttachmentModel_1.LMSExternalCourseParticipationRequestAttachment,
288
+ LMSExternalCourseParticipationChatModel_1.LMSExternalCourseParticipationRequestChat,
289
+ LMSExternalCourseParticipationWorkflowModel_1.LMSExternalCourseParticipationWorkFlow,
290
+ LMSExternalCourseParticipationCandidateModel_1.LMSExternalCourseParticipationCandidate,
279
291
  RequestParcelRequestModel_1.RequestParcelRequests,
280
292
  RequestParcelApprovalModel_1.RequestParcelApprovalDetails,
281
293
  RequestParcelAttachmentModel_1.RequestParcelRequestAttachment,
package/dist/index.d.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';
@@ -167,7 +173,6 @@ export * from './models/StayAfterHoursTransactionModel';
167
173
  export { StayAfterHoursTransaction, StayAfterHoursTransactionStatus } from './models/StayAfterHoursTransactionModel';
168
174
  export * from './models/TelephoneDirectoryModel';
169
175
  export * from './models/StationeryRequestsModel';
170
- export * from './models/StationeryRequestMaterialsModel';
171
176
  export * from './models/StationeryMaterialMasterModel';
172
177
  export * from './models/ProfileUpdateRequestsModel';
173
178
  export * from './models/UserPersonalDetailsModel';
package/dist/index.js CHANGED
@@ -138,6 +138,12 @@ __exportStar(require("./models/LMSExternalEntityTrainedApprovalModel"), exports)
138
138
  __exportStar(require("./models/LMSExternalEntityTrainedAttachmentModel"), exports);
139
139
  __exportStar(require("./models/LMSExternalEntityTrainedChatModel"), exports);
140
140
  __exportStar(require("./models/LMSExternalEntityTrainedWorkflowModel"), exports);
141
+ __exportStar(require("./models/LMSExternalCourseParticipationRequestModel"), exports);
142
+ __exportStar(require("./models/LMSExternalCourseParticipationApprovalModel"), exports);
143
+ __exportStar(require("./models/LMSExternalCourseParticipationAttachmentModel"), exports);
144
+ __exportStar(require("./models/LMSExternalCourseParticipationChatModel"), exports);
145
+ __exportStar(require("./models/LMSExternalCourseParticipationWorkflowModel"), exports);
146
+ __exportStar(require("./models/LMSExternalCourseParticipationCandidateModel"), exports);
141
147
  __exportStar(require("./models/RequestParcelRequestModel"), exports);
142
148
  __exportStar(require("./models/RequestParcelApprovalModel"), exports);
143
149
  __exportStar(require("./models/RequestParcelAttachmentModel"), exports);
@@ -199,7 +205,6 @@ Object.defineProperty(exports, "StayAfterHoursTransaction", { enumerable: true,
199
205
  Object.defineProperty(exports, "StayAfterHoursTransactionStatus", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransactionStatus; } });
200
206
  __exportStar(require("./models/TelephoneDirectoryModel"), exports);
201
207
  __exportStar(require("./models/StationeryRequestsModel"), exports);
202
- __exportStar(require("./models/StationeryRequestMaterialsModel"), exports);
203
208
  __exportStar(require("./models/StationeryMaterialMasterModel"), exports);
204
209
  __exportStar(require("./models/ProfileUpdateRequestsModel"), exports);
205
210
  __exportStar(require("./models/UserPersonalDetailsModel"), exports);
@@ -0,0 +1,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class HelpContentMappedCategories extends BaseModel {
3
+ help_content_category_Id: number;
4
+ help_content_Id: number;
5
+ constructor(help_content_category_Id: number, help_content_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.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,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class HelpContentMappedTags extends BaseModel {
3
+ help_content_tag_Id: number;
4
+ help_content_Id: number;
5
+ constructor(help_content_tag_Id: number, help_content_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.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,5 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class HelpContentTags extends BaseModel {
3
+ name: string;
4
+ constructor(name: string);
5
+ }
@@ -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,23 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum LMSExternalCourseParticipationApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class LMSExternalCourseParticipationApprovalDetails 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: LMSExternalCourseParticipationApprovalStatus;
21
+ is_allowed: boolean;
22
+ task_name: string | null;
23
+ }
@@ -0,0 +1,83 @@
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.LMSExternalCourseParticipationApprovalDetails = exports.LMSExternalCourseParticipationApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var LMSExternalCourseParticipationApprovalStatus;
16
+ (function (LMSExternalCourseParticipationApprovalStatus) {
17
+ LMSExternalCourseParticipationApprovalStatus["PENDING"] = "Pending";
18
+ LMSExternalCourseParticipationApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ LMSExternalCourseParticipationApprovalStatus["APPROVED"] = "Approved";
20
+ LMSExternalCourseParticipationApprovalStatus["REJECTED"] = "Rejected";
21
+ })(LMSExternalCourseParticipationApprovalStatus || (exports.LMSExternalCourseParticipationApprovalStatus = LMSExternalCourseParticipationApprovalStatus = {}));
22
+ let LMSExternalCourseParticipationApprovalDetails = class LMSExternalCourseParticipationApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.LMSExternalCourseParticipationApprovalDetails = LMSExternalCourseParticipationApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], LMSExternalCourseParticipationApprovalDetails.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
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'enum', enum: LMSExternalCourseParticipationApprovalStatus, enumName: 'lms_external_course_participation_approval_status_enum', default: LMSExternalCourseParticipationApprovalStatus.PENDING, nullable: false }),
71
+ __metadata("design:type", String)
72
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "approval_status", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
75
+ __metadata("design:type", Boolean)
76
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "is_allowed", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
79
+ __metadata("design:type", Object)
80
+ ], LMSExternalCourseParticipationApprovalDetails.prototype, "task_name", void 0);
81
+ exports.LMSExternalCourseParticipationApprovalDetails = LMSExternalCourseParticipationApprovalDetails = __decorate([
82
+ (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_approvals' })
83
+ ], LMSExternalCourseParticipationApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class LMSExternalCourseParticipationRequestAttachment 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.LMSExternalCourseParticipationRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let LMSExternalCourseParticipationRequestAttachment = class LMSExternalCourseParticipationRequestAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.LMSExternalCourseParticipationRequestAttachment = LMSExternalCourseParticipationRequestAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], LMSExternalCourseParticipationRequestAttachment.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
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", String)
37
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], LMSExternalCourseParticipationRequestAttachment.prototype, "chat_id", void 0);
50
+ exports.LMSExternalCourseParticipationRequestAttachment = LMSExternalCourseParticipationRequestAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_attachments' })
52
+ ], LMSExternalCourseParticipationRequestAttachment);
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class LMSExternalCourseParticipationCandidate extends BaseModel {
3
+ request_id: number;
4
+ candidate_id: number;
5
+ candidate_name: string | null;
6
+ candidate_profile_url: string | null;
7
+ }
@@ -0,0 +1,36 @@
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.LMSExternalCourseParticipationCandidate = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let LMSExternalCourseParticipationCandidate = class LMSExternalCourseParticipationCandidate extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.LMSExternalCourseParticipationCandidate = LMSExternalCourseParticipationCandidate;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], LMSExternalCourseParticipationCandidate.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
24
+ __metadata("design:type", Number)
25
+ ], LMSExternalCourseParticipationCandidate.prototype, "candidate_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], LMSExternalCourseParticipationCandidate.prototype, "candidate_name", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], LMSExternalCourseParticipationCandidate.prototype, "candidate_profile_url", void 0);
34
+ exports.LMSExternalCourseParticipationCandidate = LMSExternalCourseParticipationCandidate = __decorate([
35
+ (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_candidates' })
36
+ ], LMSExternalCourseParticipationCandidate);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum LMSExternalCourseParticipationMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class LMSExternalCourseParticipationRequestChat 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: LMSExternalCourseParticipationMessageType;
17
+ status: string;
18
+ constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: LMSExternalCourseParticipationMessageType, 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.LMSExternalCourseParticipationRequestChat = exports.LMSExternalCourseParticipationMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const LMSExternalCourseParticipationApprovalModel_1 = require("./LMSExternalCourseParticipationApprovalModel");
16
+ var LMSExternalCourseParticipationMessageType;
17
+ (function (LMSExternalCourseParticipationMessageType) {
18
+ LMSExternalCourseParticipationMessageType["TEXT"] = "text";
19
+ LMSExternalCourseParticipationMessageType["IMAGE"] = "image";
20
+ LMSExternalCourseParticipationMessageType["VIDEO"] = "video";
21
+ LMSExternalCourseParticipationMessageType["FILE"] = "file";
22
+ LMSExternalCourseParticipationMessageType["LINK"] = "link";
23
+ })(LMSExternalCourseParticipationMessageType || (exports.LMSExternalCourseParticipationMessageType = LMSExternalCourseParticipationMessageType = {}));
24
+ let LMSExternalCourseParticipationRequestChat = class LMSExternalCourseParticipationRequestChat 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 || LMSExternalCourseParticipationMessageType.TEXT;
34
+ this.status = status || LMSExternalCourseParticipationApprovalModel_1.LMSExternalCourseParticipationApprovalStatus.PENDING;
35
+ }
36
+ };
37
+ exports.LMSExternalCourseParticipationRequestChat = LMSExternalCourseParticipationRequestChat;
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], LMSExternalCourseParticipationRequestChat.prototype, "request_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], LMSExternalCourseParticipationRequestChat.prototype, "service_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], LMSExternalCourseParticipationRequestChat.prototype, "sub_service_id", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
52
+ __metadata("design:type", Number)
53
+ ], LMSExternalCourseParticipationRequestChat.prototype, "user_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
56
+ __metadata("design:type", Number)
57
+ ], LMSExternalCourseParticipationRequestChat.prototype, "role_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
60
+ __metadata("design:type", String)
61
+ ], LMSExternalCourseParticipationRequestChat.prototype, "message", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({
64
+ type: 'enum',
65
+ enum: LMSExternalCourseParticipationMessageType,
66
+ default: LMSExternalCourseParticipationMessageType.TEXT,
67
+ nullable: false
68
+ }),
69
+ __metadata("design:type", String)
70
+ ], LMSExternalCourseParticipationRequestChat.prototype, "messageType", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
73
+ __metadata("design:type", String)
74
+ ], LMSExternalCourseParticipationRequestChat.prototype, "status", void 0);
75
+ exports.LMSExternalCourseParticipationRequestChat = LMSExternalCourseParticipationRequestChat = __decorate([
76
+ (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_chats' }),
77
+ __metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
78
+ ], LMSExternalCourseParticipationRequestChat);
@@ -0,0 +1,26 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum LMSExternalCourseParticipationStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ APPROVED = "Approved",
7
+ REJECTED = "Rejected"
8
+ }
9
+ export declare class LMSExternalCourseParticipationRequests 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
+ status: LMSExternalCourseParticipationStatus;
16
+ workflow_execution_id: string | null;
17
+ course_name: string | null;
18
+ institution: string | null;
19
+ course_required_qualifications: string | null;
20
+ course_start_date: Date | null;
21
+ course_end_date: Date | null;
22
+ course_location: string | null;
23
+ cost: number | null;
24
+ currency_type: string | null;
25
+ comment: string | null;
26
+ }