@platform-modules/foreign-ministry 1.3.115 → 1.3.116

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 (64) hide show
  1. package/.env +17 -3
  2. package/dist/data-source.js +5 -1
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +2 -0
  5. package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
  6. package/dist/models/{DiplomaticClubCardChatModel.js → HelpContentMappedCategoriesModel.js} +16 -18
  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/LMSCourseExternalLecturerCostModel.d.ts +13 -0
  12. package/dist/models/LMSCourseExternalLecturerCostModel.js +60 -0
  13. package/dist/models/LMSCourseExternalLecturerLecturerModel.d.ts +15 -0
  14. package/dist/models/LMSCourseExternalLecturerLecturerModel.js +68 -0
  15. package/dist/models/LMSCourseExternalLecturerRequestModel.d.ts +9 -22
  16. package/dist/models/LMSCourseExternalLecturerRequestModel.js +19 -71
  17. package/dist/models/LMSExternalCourseParticipationCandidateModel.d.ts +16 -0
  18. package/dist/models/LMSExternalCourseParticipationCandidateModel.js +48 -1
  19. package/dist/models/questionTagsModel.d.ts +6 -0
  20. package/dist/models/questionTagsModel.js +34 -0
  21. package/fix-lms-external-course-enum-conflict.sql +11 -0
  22. package/package.json +1 -1
  23. package/src/data-source.ts +5 -1
  24. package/src/index.ts +2 -0
  25. package/src/models/DiplomaticClubCardMembersModel.ts +75 -75
  26. package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
  27. package/src/models/DiplomaticRequestsModel.ts +157 -157
  28. package/src/models/LMSCourseExternalLecturerCostModel.ts +36 -0
  29. package/src/models/LMSCourseExternalLecturerLecturerModel.ts +42 -0
  30. package/src/models/LMSCourseExternalLecturerRequestModel.ts +18 -60
  31. package/src/models/LMSExternalCourseParticipationCandidateModel.ts +37 -0
  32. package/src/models/RegisterCandidateRequestModel.ts +177 -177
  33. package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
  34. package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
  35. package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
  36. package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
  37. package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
  38. package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
  39. package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
  40. package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
  41. package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
  42. package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
  43. package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
  44. package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
  45. package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
  46. package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
  47. package/dist/models/DiplomaticSettingsModel.js +0 -59
  48. package/dist/models/DiplomaticTitleModel.d.ts +0 -12
  49. package/dist/models/DiplomaticTitleModel.js +0 -45
  50. package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
  51. package/dist/models/PassportRequestApprovalModel.js +0 -91
  52. package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
  53. package/dist/models/PassportRequestAttachmentModel.js +0 -54
  54. package/dist/models/PassportRequestChatModel.d.ts +0 -8
  55. package/dist/models/PassportRequestChatModel.js +0 -44
  56. package/dist/models/PassportRequestDependentModel.d.ts +0 -20
  57. package/dist/models/PassportRequestDependentModel.js +0 -85
  58. package/dist/models/PassportRequestModel.d.ts +0 -40
  59. package/dist/models/PassportRequestModel.js +0 -128
  60. package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
  61. package/dist/models/PassportRequestWorkFlowModel.js +0 -60
  62. package/dist/models/SubscriptionAmountModel.d.ts +0 -67
  63. package/dist/models/SubscriptionAmountModel.js +0 -114
  64. /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
@@ -113,6 +113,8 @@ const LMSCourseExternalLecturerApprovalModel_1 = require("./models/LMSCourseExte
113
113
  const LMSCourseExternalLecturerAttachmentModel_1 = require("./models/LMSCourseExternalLecturerAttachmentModel");
114
114
  const LMSCourseExternalLecturerChatModel_1 = require("./models/LMSCourseExternalLecturerChatModel");
115
115
  const LMSCourseExternalLecturerWorkflowModel_1 = require("./models/LMSCourseExternalLecturerWorkflowModel");
116
+ const LMSCourseExternalLecturerCostModel_1 = require("./models/LMSCourseExternalLecturerCostModel");
117
+ const LMSCourseExternalLecturerLecturerModel_1 = require("./models/LMSCourseExternalLecturerLecturerModel");
116
118
  const LMSExternalEntityTrainedRequestModel_1 = require("./models/LMSExternalEntityTrainedRequestModel");
117
119
  const LMSExternalEntityTrainedApprovalModel_1 = require("./models/LMSExternalEntityTrainedApprovalModel");
118
120
  const LMSExternalEntityTrainedAttachmentModel_1 = require("./models/LMSExternalEntityTrainedAttachmentModel");
@@ -166,7 +168,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
166
168
  username: process.env.DB_USER || 'postgres',
167
169
  password: process.env.DB_PASS || 'postgres',
168
170
  database: process.env.DB_NAME || 'common_models',
169
- synchronize: false, // auto-create tables (disable in prod)
171
+ synchronize: true, // auto-create tables (disable in prod)
170
172
  logging: false,
171
173
  entities: [
172
174
  user_1.User,
@@ -277,6 +279,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
277
279
  LMSCourseExternalLecturerAttachmentModel_1.LMSCourseExternalLecturerRequestAttachment,
278
280
  LMSCourseExternalLecturerChatModel_1.LMSCourseExternalLecturerRequestChat,
279
281
  LMSCourseExternalLecturerWorkflowModel_1.LMSCourseExternalLecturerWorkFlow,
282
+ LMSCourseExternalLecturerCostModel_1.LMSCourseExternalLecturerCost,
283
+ LMSCourseExternalLecturerLecturerModel_1.LMSCourseExternalLecturerLecturer,
280
284
  LMSExternalEntityTrainedRequestModel_1.LMSExternalEntityTrainedRequests,
281
285
  LMSExternalEntityTrainedApprovalModel_1.LMSExternalEntityTrainedApprovalDetails,
282
286
  LMSExternalEntityTrainedAttachmentModel_1.LMSExternalEntityTrainedRequestAttachment,
package/dist/index.d.ts CHANGED
@@ -115,6 +115,8 @@ export * from './models/LMSCourseExternalLecturerApprovalModel';
115
115
  export * from './models/LMSCourseExternalLecturerAttachmentModel';
116
116
  export * from './models/LMSCourseExternalLecturerChatModel';
117
117
  export * from './models/LMSCourseExternalLecturerWorkflowModel';
118
+ export * from './models/LMSCourseExternalLecturerCostModel';
119
+ export * from './models/LMSCourseExternalLecturerLecturerModel';
118
120
  export * from './models/LMSExternalEntityTrainedRequestModel';
119
121
  export * from './models/LMSExternalEntityTrainedApprovalModel';
120
122
  export * from './models/LMSExternalEntityTrainedAttachmentModel';
package/dist/index.js CHANGED
@@ -133,6 +133,8 @@ __exportStar(require("./models/LMSCourseExternalLecturerApprovalModel"), exports
133
133
  __exportStar(require("./models/LMSCourseExternalLecturerAttachmentModel"), exports);
134
134
  __exportStar(require("./models/LMSCourseExternalLecturerChatModel"), exports);
135
135
  __exportStar(require("./models/LMSCourseExternalLecturerWorkflowModel"), exports);
136
+ __exportStar(require("./models/LMSCourseExternalLecturerCostModel"), exports);
137
+ __exportStar(require("./models/LMSCourseExternalLecturerLecturerModel"), exports);
136
138
  __exportStar(require("./models/LMSExternalEntityTrainedRequestModel"), exports);
137
139
  __exportStar(require("./models/LMSExternalEntityTrainedApprovalModel"), exports);
138
140
  __exportStar(require("./models/LMSExternalEntityTrainedAttachmentModel"), 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
+ }
@@ -9,28 +9,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DiplomaticClubCardChat = void 0;
12
+ exports.HelpContentMappedCategories = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let DiplomaticClubCardChat = class DiplomaticClubCardChat extends BaseModel_1.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
+ }
16
21
  };
17
- exports.DiplomaticClubCardChat = DiplomaticClubCardChat;
22
+ exports.HelpContentMappedCategories = HelpContentMappedCategories;
18
23
  __decorate([
19
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
24
+ (0, typeorm_1.Column)({ nullable: true }),
20
25
  __metadata("design:type", Number)
21
- ], DiplomaticClubCardChat.prototype, "request_id", void 0);
26
+ ], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
22
27
  __decorate([
23
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
28
+ (0, typeorm_1.Column)({ nullable: true }),
24
29
  __metadata("design:type", Number)
25
- ], DiplomaticClubCardChat.prototype, "user_id", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)({ type: 'text', nullable: false }),
28
- __metadata("design:type", String)
29
- ], DiplomaticClubCardChat.prototype, "message", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
32
- __metadata("design:type", Object)
33
- ], DiplomaticClubCardChat.prototype, "message_type", void 0);
34
- exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
35
- (0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
36
- ], DiplomaticClubCardChat);
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,13 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class LMSCourseExternalLecturerCost extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ material_price: number | null;
7
+ transportation: number | null;
8
+ accommodation: number | null;
9
+ allowances: number | null;
10
+ food: number | null;
11
+ present: number | null;
12
+ total_cost: number | null;
13
+ }
@@ -0,0 +1,60 @@
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.LMSCourseExternalLecturerCost = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let LMSCourseExternalLecturerCost = class LMSCourseExternalLecturerCost extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.LMSCourseExternalLecturerCost = LMSCourseExternalLecturerCost;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], LMSCourseExternalLecturerCost.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], LMSCourseExternalLecturerCost.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], LMSCourseExternalLecturerCost.prototype, "sub_service_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
32
+ __metadata("design:type", Object)
33
+ ], LMSCourseExternalLecturerCost.prototype, "material_price", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
36
+ __metadata("design:type", Object)
37
+ ], LMSCourseExternalLecturerCost.prototype, "transportation", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
40
+ __metadata("design:type", Object)
41
+ ], LMSCourseExternalLecturerCost.prototype, "accommodation", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
44
+ __metadata("design:type", Object)
45
+ ], LMSCourseExternalLecturerCost.prototype, "allowances", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
48
+ __metadata("design:type", Object)
49
+ ], LMSCourseExternalLecturerCost.prototype, "food", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
52
+ __metadata("design:type", Object)
53
+ ], LMSCourseExternalLecturerCost.prototype, "present", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true, default: 0 }),
56
+ __metadata("design:type", Object)
57
+ ], LMSCourseExternalLecturerCost.prototype, "total_cost", void 0);
58
+ exports.LMSCourseExternalLecturerCost = LMSCourseExternalLecturerCost = __decorate([
59
+ (0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_costs' })
60
+ ], LMSCourseExternalLecturerCost);
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class LMSCourseExternalLecturerLecturer extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ full_name: string;
7
+ passport_or_id: string;
8
+ age: number;
9
+ qualifications: string;
10
+ experience: string;
11
+ cv_file_url: string | null;
12
+ cv_file_name: string | null;
13
+ cv_file_type: string | null;
14
+ cv_file_size: number | null;
15
+ }
@@ -0,0 +1,68 @@
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.LMSCourseExternalLecturerLecturer = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let LMSCourseExternalLecturerLecturer = class LMSCourseExternalLecturerLecturer extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.LMSCourseExternalLecturerLecturer = LMSCourseExternalLecturerLecturer;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], LMSCourseExternalLecturerLecturer.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], LMSCourseExternalLecturerLecturer.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], LMSCourseExternalLecturerLecturer.prototype, "sub_service_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
32
+ __metadata("design:type", String)
33
+ ], LMSCourseExternalLecturerLecturer.prototype, "full_name", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
36
+ __metadata("design:type", String)
37
+ ], LMSCourseExternalLecturerLecturer.prototype, "passport_or_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], LMSCourseExternalLecturerLecturer.prototype, "age", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
44
+ __metadata("design:type", String)
45
+ ], LMSCourseExternalLecturerLecturer.prototype, "qualifications", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], LMSCourseExternalLecturerLecturer.prototype, "experience", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], LMSCourseExternalLecturerLecturer.prototype, "cv_file_url", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], LMSCourseExternalLecturerLecturer.prototype, "cv_file_name", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], LMSCourseExternalLecturerLecturer.prototype, "cv_file_type", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], LMSCourseExternalLecturerLecturer.prototype, "cv_file_size", void 0);
66
+ exports.LMSCourseExternalLecturerLecturer = LMSCourseExternalLecturerLecturer = __decorate([
67
+ (0, typeorm_1.Entity)({ name: 'lms_course_external_lecturer_lecturers' })
68
+ ], LMSCourseExternalLecturerLecturer);
@@ -12,28 +12,15 @@ export declare class LMSCourseExternalLecturerRequests extends BaseModel {
12
12
  service_id: number | null;
13
13
  sub_service_id: number | null;
14
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
- currency_type: string | null;
24
- reason_of_course: string | null;
25
- estimated_number_of_participants: number | null;
26
- date_from: Date | null;
27
- date_to: Date | null;
28
- time_from: string | null;
29
- time_to: string | null;
30
- lecturer_full_name: string | null;
31
- passport: string | null;
32
- age: number | null;
33
- qualifications: string | null;
34
- experience: string | null;
35
- cv_attachment: string | null;
36
- course_material: string | null;
15
+ course_name: string;
16
+ course_level: string;
17
+ institution: string;
18
+ reason_of_course: string;
19
+ estimated_number_of_participants: number;
20
+ date_from: Date;
21
+ date_to: Date;
22
+ time_from: string;
23
+ time_to: string;
37
24
  status: LMSCourseExternalLecturerStatus;
38
25
  workflow_execution_id: string | null;
39
26
  }
@@ -44,93 +44,41 @@ __decorate([
44
44
  __metadata("design:type", Number)
45
45
  ], LMSCourseExternalLecturerRequests.prototype, "user_id", void 0);
46
46
  __decorate([
47
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
48
- __metadata("design:type", Object)
47
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
48
+ __metadata("design:type", String)
49
49
  ], LMSCourseExternalLecturerRequests.prototype, "course_name", void 0);
50
50
  __decorate([
51
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
52
- __metadata("design:type", Object)
51
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
52
+ __metadata("design:type", String)
53
53
  ], LMSCourseExternalLecturerRequests.prototype, "course_level", void 0);
54
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: 'varchar', length: 255, nullable: true }),
80
- __metadata("design:type", Object)
81
- ], LMSCourseExternalLecturerRequests.prototype, "currency_type", void 0);
55
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
56
+ __metadata("design:type", String)
57
+ ], LMSCourseExternalLecturerRequests.prototype, "institution", void 0);
82
58
  __decorate([
83
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
84
- __metadata("design:type", Object)
59
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
60
+ __metadata("design:type", String)
85
61
  ], LMSCourseExternalLecturerRequests.prototype, "reason_of_course", void 0);
86
62
  __decorate([
87
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
88
- __metadata("design:type", Object)
63
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
64
+ __metadata("design:type", Number)
89
65
  ], LMSCourseExternalLecturerRequests.prototype, "estimated_number_of_participants", void 0);
90
66
  __decorate([
91
- (0, typeorm_1.Column)({ type: 'date', nullable: true }),
92
- __metadata("design:type", Object)
67
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
68
+ __metadata("design:type", Date)
93
69
  ], LMSCourseExternalLecturerRequests.prototype, "date_from", void 0);
94
70
  __decorate([
95
- (0, typeorm_1.Column)({ type: 'date', nullable: true }),
96
- __metadata("design:type", Object)
71
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
72
+ __metadata("design:type", Date)
97
73
  ], LMSCourseExternalLecturerRequests.prototype, "date_to", void 0);
98
74
  __decorate([
99
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
100
- __metadata("design:type", Object)
75
+ (0, typeorm_1.Column)({ type: 'time', nullable: false }),
76
+ __metadata("design:type", String)
101
77
  ], LMSCourseExternalLecturerRequests.prototype, "time_from", void 0);
102
78
  __decorate([
103
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
104
- __metadata("design:type", Object)
79
+ (0, typeorm_1.Column)({ type: 'time', nullable: false }),
80
+ __metadata("design:type", String)
105
81
  ], LMSCourseExternalLecturerRequests.prototype, "time_to", void 0);
106
- __decorate([
107
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
108
- __metadata("design:type", Object)
109
- ], LMSCourseExternalLecturerRequests.prototype, "lecturer_full_name", void 0);
110
- __decorate([
111
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
112
- __metadata("design:type", Object)
113
- ], LMSCourseExternalLecturerRequests.prototype, "passport", void 0);
114
- __decorate([
115
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
116
- __metadata("design:type", Object)
117
- ], LMSCourseExternalLecturerRequests.prototype, "age", void 0);
118
- __decorate([
119
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
120
- __metadata("design:type", Object)
121
- ], LMSCourseExternalLecturerRequests.prototype, "qualifications", void 0);
122
- __decorate([
123
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
124
- __metadata("design:type", Object)
125
- ], LMSCourseExternalLecturerRequests.prototype, "experience", void 0);
126
- __decorate([
127
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
128
- __metadata("design:type", Object)
129
- ], LMSCourseExternalLecturerRequests.prototype, "cv_attachment", void 0);
130
- __decorate([
131
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
132
- __metadata("design:type", Object)
133
- ], LMSCourseExternalLecturerRequests.prototype, "course_material", void 0);
134
82
  __decorate([
135
83
  (0, typeorm_1.Column)({ type: 'enum', enum: LMSCourseExternalLecturerStatus, default: LMSCourseExternalLecturerStatus.PENDING, nullable: false }),
136
84
  __metadata("design:type", String)
@@ -1,7 +1,23 @@
1
1
  import { BaseModel } from './BaseModel';
2
+ export declare enum LMSExternalCourseParticipationCandidateApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
2
8
  export declare class LMSExternalCourseParticipationCandidate extends BaseModel {
3
9
  request_id: number;
4
10
  candidate_id: number;
5
11
  candidate_name: string | null;
6
12
  candidate_profile_url: string | null;
13
+ service_id: number | null;
14
+ sub_service_id: number | null;
15
+ approver_role_id: number;
16
+ department_id: number | null;
17
+ section_id: number | null;
18
+ approver_user_id: number | null;
19
+ delegate_user_id: number | null;
20
+ approved_by: number | null;
21
+ comment: string;
22
+ approval_status: LMSExternalCourseParticipationCandidateApprovalStatus;
7
23
  }
@@ -9,9 +9,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LMSExternalCourseParticipationCandidate = void 0;
12
+ exports.LMSExternalCourseParticipationCandidate = exports.LMSExternalCourseParticipationCandidateApprovalStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
+ var LMSExternalCourseParticipationCandidateApprovalStatus;
16
+ (function (LMSExternalCourseParticipationCandidateApprovalStatus) {
17
+ LMSExternalCourseParticipationCandidateApprovalStatus["PENDING"] = "Pending";
18
+ LMSExternalCourseParticipationCandidateApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ LMSExternalCourseParticipationCandidateApprovalStatus["APPROVED"] = "Approved";
20
+ LMSExternalCourseParticipationCandidateApprovalStatus["REJECTED"] = "Rejected";
21
+ })(LMSExternalCourseParticipationCandidateApprovalStatus || (exports.LMSExternalCourseParticipationCandidateApprovalStatus = LMSExternalCourseParticipationCandidateApprovalStatus = {}));
15
22
  let LMSExternalCourseParticipationCandidate = class LMSExternalCourseParticipationCandidate extends BaseModel_1.BaseModel {
16
23
  };
17
24
  exports.LMSExternalCourseParticipationCandidate = LMSExternalCourseParticipationCandidate;
@@ -31,6 +38,46 @@ __decorate([
31
38
  (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
32
39
  __metadata("design:type", Object)
33
40
  ], LMSExternalCourseParticipationCandidate.prototype, "candidate_profile_url", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], LMSExternalCourseParticipationCandidate.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], LMSExternalCourseParticipationCandidate.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Number)
52
+ ], LMSExternalCourseParticipationCandidate.prototype, "approver_role_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], LMSExternalCourseParticipationCandidate.prototype, "department_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], LMSExternalCourseParticipationCandidate.prototype, "section_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], LMSExternalCourseParticipationCandidate.prototype, "approver_user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], LMSExternalCourseParticipationCandidate.prototype, "delegate_user_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], LMSExternalCourseParticipationCandidate.prototype, "approved_by", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
75
+ __metadata("design:type", String)
76
+ ], LMSExternalCourseParticipationCandidate.prototype, "comment", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'enum', enum: LMSExternalCourseParticipationCandidateApprovalStatus, enumName: 'lms_external_course_participation_candidate_approval_status_enum', default: LMSExternalCourseParticipationCandidateApprovalStatus.PENDING, nullable: false }),
79
+ __metadata("design:type", String)
80
+ ], LMSExternalCourseParticipationCandidate.prototype, "approval_status", void 0);
34
81
  exports.LMSExternalCourseParticipationCandidate = LMSExternalCourseParticipationCandidate = __decorate([
35
82
  (0, typeorm_1.Entity)({ name: 'lms_external_course_participation_candidates' })
36
83
  ], LMSExternalCourseParticipationCandidate);
@@ -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
+ }