@platform-modules/foreign-ministry 1.3.220 → 1.3.225

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 (121) hide show
  1. package/.env +10 -5
  2. package/dist/data-source.js +56 -0
  3. package/dist/index.d.ts +29 -1
  4. package/dist/index.js +35 -1
  5. package/dist/models/AppointmentRequestModel.d.ts +3 -0
  6. package/dist/models/AppointmentRequestModel.js +9 -0
  7. package/dist/models/ChildrensDetailsModel.d.ts +12 -0
  8. package/dist/models/{EmbassyMasterModel.js → ChildrensDetailsModel.js} +20 -39
  9. package/dist/models/ChildrensEducationApprovalModel.d.ts +22 -0
  10. package/dist/models/ChildrensEducationApprovalModel.js +84 -0
  11. package/dist/models/ChildrensEducationAttachmentModel.d.ts +11 -0
  12. package/dist/models/ChildrensEducationAttachmentModel.js +52 -0
  13. package/dist/models/ChildrensEducationChatModel.d.ts +19 -0
  14. package/dist/models/ChildrensEducationChatModel.js +77 -0
  15. package/dist/models/ChildrensEducationRequestModel.d.ts +18 -0
  16. package/dist/models/ChildrensEducationRequestModel.js +62 -0
  17. package/dist/models/ChildrensEducationWorkflowModel.d.ts +17 -0
  18. package/dist/models/ChildrensEducationWorkflowModel.js +67 -0
  19. package/dist/models/LMSExternalEntityTrainedPersonModel.d.ts +1 -0
  20. package/dist/models/LMSExternalEntityTrainedPersonModel.js +4 -0
  21. package/dist/models/MedicalExpensesApprovalModel.d.ts +22 -0
  22. package/dist/models/MedicalExpensesApprovalModel.js +84 -0
  23. package/dist/models/MedicalExpensesAttachmentModel.d.ts +11 -0
  24. package/dist/models/MedicalExpensesAttachmentModel.js +52 -0
  25. package/dist/models/MedicalExpensesChatModel.d.ts +19 -0
  26. package/dist/models/MedicalExpensesChatModel.js +77 -0
  27. package/dist/models/MedicalExpensesFamilyDetailsModel.d.ts +7 -0
  28. package/dist/models/MedicalExpensesFamilyDetailsModel.js +36 -0
  29. package/dist/models/MedicalExpensesRequestModel.d.ts +18 -0
  30. package/dist/models/MedicalExpensesRequestModel.js +62 -0
  31. package/dist/models/MedicalExpensesWorkflowModel.d.ts +17 -0
  32. package/dist/models/MedicalExpensesWorkflowModel.js +67 -0
  33. package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
  34. package/dist/models/MissionTravelClassConfigModel.js +50 -0
  35. package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
  36. package/dist/models/MissionTravelPerdiemModel.js +54 -0
  37. package/dist/models/RecruitmentDomesticWorkersApprovalModel.d.ts +22 -0
  38. package/dist/models/RecruitmentDomesticWorkersApprovalModel.js +84 -0
  39. package/dist/models/RecruitmentDomesticWorkersAttachmentModel.d.ts +11 -0
  40. package/dist/models/RecruitmentDomesticWorkersAttachmentModel.js +52 -0
  41. package/dist/models/RecruitmentDomesticWorkersChatModel.d.ts +19 -0
  42. package/dist/models/RecruitmentDomesticWorkersChatModel.js +77 -0
  43. package/dist/models/RecruitmentDomesticWorkersDetailsModel.d.ts +7 -0
  44. package/dist/models/RecruitmentDomesticWorkersDetailsModel.js +36 -0
  45. package/dist/models/RecruitmentDomesticWorkersRequestModel.d.ts +18 -0
  46. package/dist/models/RecruitmentDomesticWorkersRequestModel.js +62 -0
  47. package/dist/models/RecruitmentDomesticWorkersWorkflowModel.d.ts +17 -0
  48. package/dist/models/RecruitmentDomesticWorkersWorkflowModel.js +67 -0
  49. package/dist/models/TransferAllowanceApprovalModel.d.ts +22 -0
  50. package/dist/models/TransferAllowanceApprovalModel.js +84 -0
  51. package/dist/models/TransferAllowanceAttachmentModel.d.ts +11 -0
  52. package/dist/models/TransferAllowanceAttachmentModel.js +52 -0
  53. package/dist/models/TransferAllowanceChatModel.d.ts +19 -0
  54. package/dist/models/TransferAllowanceChatModel.js +77 -0
  55. package/dist/models/TransferAllowanceRequestModel.d.ts +24 -0
  56. package/dist/models/TransferAllowanceRequestModel.js +86 -0
  57. package/dist/models/TransferAllowanceWorkflowModel.d.ts +17 -0
  58. package/dist/models/TransferAllowanceWorkflowModel.js +67 -0
  59. package/dist/models/TransferSalaryBankAccountApprovalModel.d.ts +22 -0
  60. package/dist/models/TransferSalaryBankAccountApprovalModel.js +84 -0
  61. package/dist/models/TransferSalaryBankAccountAttachmentModel.d.ts +11 -0
  62. package/dist/models/TransferSalaryBankAccountAttachmentModel.js +52 -0
  63. package/dist/models/TransferSalaryBankAccountChatModel.d.ts +19 -0
  64. package/dist/models/TransferSalaryBankAccountChatModel.js +77 -0
  65. package/dist/models/TransferSalaryBankAccountRequestModel.d.ts +21 -0
  66. package/dist/models/TransferSalaryBankAccountRequestModel.js +74 -0
  67. package/dist/models/TransferSalaryBankAccountWorkflowModel.d.ts +17 -0
  68. package/dist/models/TransferSalaryBankAccountWorkflowModel.js +67 -0
  69. package/package.json +1 -1
  70. package/src/data-source.ts +56 -0
  71. package/src/index.ts +34 -1
  72. package/src/models/AppointmentRequestModel.ts +7 -0
  73. package/src/models/ChildrensDetailsModel.ts +32 -0
  74. package/src/models/ChildrensEducationApprovalModel.ts +56 -0
  75. package/src/models/ChildrensEducationAttachmentModel.ts +29 -0
  76. package/src/models/ChildrensEducationChatModel.ts +63 -0
  77. package/src/models/ChildrensEducationRequestModel.ts +40 -0
  78. package/src/models/ChildrensEducationWorkflowModel.ts +43 -0
  79. package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
  80. package/src/models/FinancialWorkFlowModel.ts +15 -15
  81. package/src/models/GatePassVisitorsModel.ts +7 -7
  82. package/src/models/LMSExternalEntityTrainedPersonModel.ts +3 -0
  83. package/src/models/LanguageCourseRequestModel.ts +67 -67
  84. package/src/models/LeaveConfigModel.ts +71 -71
  85. package/src/models/MedicalExpensesApprovalModel.ts +56 -0
  86. package/src/models/MedicalExpensesAttachmentModel.ts +29 -0
  87. package/src/models/MedicalExpensesChatModel.ts +63 -0
  88. package/src/models/MedicalExpensesFamilyDetailsModel.ts +17 -0
  89. package/src/models/MedicalExpensesRequestModel.ts +40 -0
  90. package/src/models/MedicalExpensesWorkflowModel.ts +43 -0
  91. package/src/models/MissionTravelApprovalModel.ts +101 -101
  92. package/src/models/MissionTravelAttachmentModel.ts +56 -56
  93. package/src/models/MissionTravelChatModel.ts +52 -52
  94. package/src/models/MissionTravelPersonModel.ts +105 -105
  95. package/src/models/MissionTravelWorkflowModel.ts +54 -54
  96. package/src/models/PollOptionsModel.ts +26 -26
  97. package/src/models/PollVotesModel.ts +37 -37
  98. package/src/models/PollsModel.ts +49 -49
  99. package/src/models/ProjectModel.ts +65 -65
  100. package/src/models/RecruitmentDomesticWorkersApprovalModel.ts +56 -0
  101. package/src/models/RecruitmentDomesticWorkersAttachmentModel.ts +29 -0
  102. package/src/models/RecruitmentDomesticWorkersChatModel.ts +63 -0
  103. package/src/models/RecruitmentDomesticWorkersDetailsModel.ts +17 -0
  104. package/src/models/RecruitmentDomesticWorkersRequestModel.ts +40 -0
  105. package/src/models/RecruitmentDomesticWorkersWorkflowModel.ts +43 -0
  106. package/src/models/SectionModel.ts +35 -35
  107. package/src/models/ServicesNotificationConfigsModel.ts +55 -55
  108. package/src/models/TelephoneDirectoryModel.ts +20 -20
  109. package/src/models/TransferAllowanceApprovalModel.ts +56 -0
  110. package/src/models/TransferAllowanceAttachmentModel.ts +29 -0
  111. package/src/models/TransferAllowanceChatModel.ts +63 -0
  112. package/src/models/TransferAllowanceRequestModel.ts +58 -0
  113. package/src/models/TransferAllowanceWorkflowModel.ts +43 -0
  114. package/src/models/TransferSalaryBankAccountApprovalModel.ts +56 -0
  115. package/src/models/TransferSalaryBankAccountAttachmentModel.ts +29 -0
  116. package/src/models/TransferSalaryBankAccountChatModel.ts +63 -0
  117. package/src/models/TransferSalaryBankAccountRequestModel.ts +49 -0
  118. package/src/models/TransferSalaryBankAccountWorkflowModel.ts +43 -0
  119. package/dist/models/EmbassyMasterModel.d.ts +0 -16
  120. package/dist/models/UserDependentsModel.d.ts +0 -18
  121. package/dist/models/UserDependentsModel.js +0 -94
@@ -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.ChildrensEducationRequests = exports.ChildrensEducationRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ChildrensEducationRequestStatus;
16
+ (function (ChildrensEducationRequestStatus) {
17
+ ChildrensEducationRequestStatus["PENDING"] = "Pending";
18
+ ChildrensEducationRequestStatus["ASSIGNED"] = "Assigned";
19
+ ChildrensEducationRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ ChildrensEducationRequestStatus["APPROVED"] = "Approved";
21
+ ChildrensEducationRequestStatus["REJECTED"] = "Rejected";
22
+ ChildrensEducationRequestStatus["CANCELLED"] = "Cancelled";
23
+ })(ChildrensEducationRequestStatus || (exports.ChildrensEducationRequestStatus = ChildrensEducationRequestStatus = {}));
24
+ let ChildrensEducationRequests = class ChildrensEducationRequests extends BaseModel_1.BaseModel {
25
+ };
26
+ exports.ChildrensEducationRequests = ChildrensEducationRequests;
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], ChildrensEducationRequests.prototype, "req_user_department_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], ChildrensEducationRequests.prototype, "req_user_section_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], ChildrensEducationRequests.prototype, "service_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], ChildrensEducationRequests.prototype, "sub_service_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
45
+ __metadata("design:type", Number)
46
+ ], ChildrensEducationRequests.prototype, "user_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({
49
+ type: 'enum',
50
+ enum: ChildrensEducationRequestStatus,
51
+ default: ChildrensEducationRequestStatus.PENDING,
52
+ nullable: false,
53
+ }),
54
+ __metadata("design:type", String)
55
+ ], ChildrensEducationRequests.prototype, "status", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], ChildrensEducationRequests.prototype, "workflow_execution_id", void 0);
60
+ exports.ChildrensEducationRequests = ChildrensEducationRequests = __decorate([
61
+ (0, typeorm_1.Entity)({ name: 'childrens_education_requests' })
62
+ ], ChildrensEducationRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum ChildrensEducationWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class ChildrensEducationWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: ChildrensEducationWorkFlowStatus;
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ }
@@ -0,0 +1,67 @@
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.ChildrensEducationWorkFlow = exports.ChildrensEducationWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ChildrensEducationWorkFlowStatus;
16
+ (function (ChildrensEducationWorkFlowStatus) {
17
+ ChildrensEducationWorkFlowStatus["COMPLETED"] = "Completed";
18
+ ChildrensEducationWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ ChildrensEducationWorkFlowStatus["PENDING"] = "Pending";
20
+ })(ChildrensEducationWorkFlowStatus || (exports.ChildrensEducationWorkFlowStatus = ChildrensEducationWorkFlowStatus = {}));
21
+ let ChildrensEducationWorkFlow = class ChildrensEducationWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.ChildrensEducationWorkFlow = ChildrensEducationWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], ChildrensEducationWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], ChildrensEducationWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], ChildrensEducationWorkFlow.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
+ ], ChildrensEducationWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ type: 'enum',
43
+ enum: ChildrensEducationWorkFlowStatus,
44
+ default: ChildrensEducationWorkFlowStatus.NOT_YET_STARTED,
45
+ nullable: false,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], ChildrensEducationWorkFlow.prototype, "status", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], ChildrensEducationWorkFlow.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], ChildrensEducationWorkFlow.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], ChildrensEducationWorkFlow.prototype, "department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], ChildrensEducationWorkFlow.prototype, "section_id", void 0);
65
+ exports.ChildrensEducationWorkFlow = ChildrensEducationWorkFlow = __decorate([
66
+ (0, typeorm_1.Entity)({ name: 'childrens_education_workflows' })
67
+ ], ChildrensEducationWorkFlow);
@@ -13,5 +13,6 @@ export declare class LMSExternalEntityTrainedPerson extends BaseModel {
13
13
  qualification: string | null;
14
14
  learning_curriculum: string | null;
15
15
  training_period: string | null;
16
+ is_selected: boolean;
16
17
  display_order: number;
17
18
  }
@@ -58,6 +58,10 @@ __decorate([
58
58
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
59
59
  __metadata("design:type", Object)
60
60
  ], LMSExternalEntityTrainedPerson.prototype, "training_period", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
63
+ __metadata("design:type", Boolean)
64
+ ], LMSExternalEntityTrainedPerson.prototype, "is_selected", void 0);
61
65
  __decorate([
62
66
  (0, typeorm_1.Column)({ type: 'int', default: 0 }),
63
67
  __metadata("design:type", Number)
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MedicalExpensesApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class MedicalExpensesApprovalDetails 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: MedicalExpensesApprovalStatus;
21
+ is_allowed: boolean;
22
+ }
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MedicalExpensesApprovalDetails = exports.MedicalExpensesApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MedicalExpensesApprovalStatus;
16
+ (function (MedicalExpensesApprovalStatus) {
17
+ MedicalExpensesApprovalStatus["PENDING"] = "Pending";
18
+ MedicalExpensesApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ MedicalExpensesApprovalStatus["APPROVED"] = "Approved";
20
+ MedicalExpensesApprovalStatus["REJECTED"] = "Rejected";
21
+ })(MedicalExpensesApprovalStatus || (exports.MedicalExpensesApprovalStatus = MedicalExpensesApprovalStatus = {}));
22
+ let MedicalExpensesApprovalDetails = class MedicalExpensesApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.MedicalExpensesApprovalDetails = MedicalExpensesApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], MedicalExpensesApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], MedicalExpensesApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], MedicalExpensesApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], MedicalExpensesApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], MedicalExpensesApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], MedicalExpensesApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MedicalExpensesApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MedicalExpensesApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MedicalExpensesApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MedicalExpensesApprovalDetails.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
+ ], MedicalExpensesApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: 'enum',
72
+ enum: MedicalExpensesApprovalStatus,
73
+ default: MedicalExpensesApprovalStatus.PENDING,
74
+ nullable: false,
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], MedicalExpensesApprovalDetails.prototype, "approval_status", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], MedicalExpensesApprovalDetails.prototype, "is_allowed", void 0);
82
+ exports.MedicalExpensesApprovalDetails = MedicalExpensesApprovalDetails = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'medical_expenses_approvals' })
84
+ ], MedicalExpensesApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class MedicalExpensesRequestAttachment 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.MedicalExpensesRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let MedicalExpensesRequestAttachment = class MedicalExpensesRequestAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.MedicalExpensesRequestAttachment = MedicalExpensesRequestAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], MedicalExpensesRequestAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], MedicalExpensesRequestAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], MedicalExpensesRequestAttachment.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
+ ], MedicalExpensesRequestAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", String)
37
+ ], MedicalExpensesRequestAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], MedicalExpensesRequestAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], MedicalExpensesRequestAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], MedicalExpensesRequestAttachment.prototype, "chat_id", void 0);
50
+ exports.MedicalExpensesRequestAttachment = MedicalExpensesRequestAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'medical_expenses_attachments' })
52
+ ], MedicalExpensesRequestAttachment);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MedicalExpensesMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class MedicalExpensesRequestChat 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: MedicalExpensesMessageType;
17
+ status: string;
18
+ constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: MedicalExpensesMessageType, status?: string);
19
+ }
@@ -0,0 +1,77 @@
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.MedicalExpensesRequestChat = exports.MedicalExpensesMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MedicalExpensesMessageType;
16
+ (function (MedicalExpensesMessageType) {
17
+ MedicalExpensesMessageType["TEXT"] = "text";
18
+ MedicalExpensesMessageType["IMAGE"] = "image";
19
+ MedicalExpensesMessageType["VIDEO"] = "video";
20
+ MedicalExpensesMessageType["FILE"] = "file";
21
+ MedicalExpensesMessageType["LINK"] = "link";
22
+ })(MedicalExpensesMessageType || (exports.MedicalExpensesMessageType = MedicalExpensesMessageType = {}));
23
+ let MedicalExpensesRequestChat = class MedicalExpensesRequestChat extends BaseModel_1.BaseModel {
24
+ constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
25
+ super();
26
+ this.request_id = request_id;
27
+ this.service_id = service_id ?? null;
28
+ this.sub_service_id = sub_service_id ?? null;
29
+ this.user_id = user_id;
30
+ this.role_id = role_id;
31
+ this.message = message;
32
+ this.messageType = messageType ?? MedicalExpensesMessageType.TEXT;
33
+ this.status = status ?? 'Pending';
34
+ }
35
+ };
36
+ exports.MedicalExpensesRequestChat = MedicalExpensesRequestChat;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], MedicalExpensesRequestChat.prototype, "request_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], MedicalExpensesRequestChat.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], MedicalExpensesRequestChat.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
51
+ __metadata("design:type", Number)
52
+ ], MedicalExpensesRequestChat.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], MedicalExpensesRequestChat.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
59
+ __metadata("design:type", String)
60
+ ], MedicalExpensesRequestChat.prototype, "message", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({
63
+ type: 'enum',
64
+ enum: MedicalExpensesMessageType,
65
+ default: MedicalExpensesMessageType.TEXT,
66
+ nullable: false,
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], MedicalExpensesRequestChat.prototype, "messageType", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
72
+ __metadata("design:type", String)
73
+ ], MedicalExpensesRequestChat.prototype, "status", void 0);
74
+ exports.MedicalExpensesRequestChat = MedicalExpensesRequestChat = __decorate([
75
+ (0, typeorm_1.Entity)({ name: 'medical_expenses_chats' }),
76
+ __metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
77
+ ], MedicalExpensesRequestChat);
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class MedicalExpensesFamilyDetails extends BaseModel {
3
+ request_id: number;
4
+ name: string | null;
5
+ relationship: string | null;
6
+ type_of_treatment: 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.MedicalExpensesFamilyDetails = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let MedicalExpensesFamilyDetails = class MedicalExpensesFamilyDetails extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.MedicalExpensesFamilyDetails = MedicalExpensesFamilyDetails;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], MedicalExpensesFamilyDetails.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], MedicalExpensesFamilyDetails.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], MedicalExpensesFamilyDetails.prototype, "relationship", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], MedicalExpensesFamilyDetails.prototype, "type_of_treatment", void 0);
34
+ exports.MedicalExpensesFamilyDetails = MedicalExpensesFamilyDetails = __decorate([
35
+ (0, typeorm_1.Entity)({ name: 'medical_expenses_family_details' })
36
+ ], MedicalExpensesFamilyDetails);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MedicalExpensesRequestStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ APPROVED = "Approved",
7
+ REJECTED = "Rejected",
8
+ CANCELLED = "Cancelled"
9
+ }
10
+ export declare class MedicalExpensesRequests extends BaseModel {
11
+ req_user_department_id: number | null;
12
+ req_user_section_id: number | null;
13
+ service_id: number | null;
14
+ sub_service_id: number | null;
15
+ user_id: number;
16
+ status: MedicalExpensesRequestStatus;
17
+ workflow_execution_id: string | null;
18
+ }
@@ -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.MedicalExpensesRequests = exports.MedicalExpensesRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MedicalExpensesRequestStatus;
16
+ (function (MedicalExpensesRequestStatus) {
17
+ MedicalExpensesRequestStatus["PENDING"] = "Pending";
18
+ MedicalExpensesRequestStatus["ASSIGNED"] = "Assigned";
19
+ MedicalExpensesRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ MedicalExpensesRequestStatus["APPROVED"] = "Approved";
21
+ MedicalExpensesRequestStatus["REJECTED"] = "Rejected";
22
+ MedicalExpensesRequestStatus["CANCELLED"] = "Cancelled";
23
+ })(MedicalExpensesRequestStatus || (exports.MedicalExpensesRequestStatus = MedicalExpensesRequestStatus = {}));
24
+ let MedicalExpensesRequests = class MedicalExpensesRequests extends BaseModel_1.BaseModel {
25
+ };
26
+ exports.MedicalExpensesRequests = MedicalExpensesRequests;
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], MedicalExpensesRequests.prototype, "req_user_department_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], MedicalExpensesRequests.prototype, "req_user_section_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], MedicalExpensesRequests.prototype, "service_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], MedicalExpensesRequests.prototype, "sub_service_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
45
+ __metadata("design:type", Number)
46
+ ], MedicalExpensesRequests.prototype, "user_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({
49
+ type: 'enum',
50
+ enum: MedicalExpensesRequestStatus,
51
+ default: MedicalExpensesRequestStatus.PENDING,
52
+ nullable: false,
53
+ }),
54
+ __metadata("design:type", String)
55
+ ], MedicalExpensesRequests.prototype, "status", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], MedicalExpensesRequests.prototype, "workflow_execution_id", void 0);
60
+ exports.MedicalExpensesRequests = MedicalExpensesRequests = __decorate([
61
+ (0, typeorm_1.Entity)({ name: 'medical_expenses_requests' })
62
+ ], MedicalExpensesRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MedicalExpensesWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class MedicalExpensesWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: MedicalExpensesWorkFlowStatus;
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ }
@@ -0,0 +1,67 @@
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.MedicalExpensesWorkFlow = exports.MedicalExpensesWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MedicalExpensesWorkFlowStatus;
16
+ (function (MedicalExpensesWorkFlowStatus) {
17
+ MedicalExpensesWorkFlowStatus["COMPLETED"] = "Completed";
18
+ MedicalExpensesWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ MedicalExpensesWorkFlowStatus["PENDING"] = "Pending";
20
+ })(MedicalExpensesWorkFlowStatus || (exports.MedicalExpensesWorkFlowStatus = MedicalExpensesWorkFlowStatus = {}));
21
+ let MedicalExpensesWorkFlow = class MedicalExpensesWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.MedicalExpensesWorkFlow = MedicalExpensesWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], MedicalExpensesWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], MedicalExpensesWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], MedicalExpensesWorkFlow.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
+ ], MedicalExpensesWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ type: 'enum',
43
+ enum: MedicalExpensesWorkFlowStatus,
44
+ default: MedicalExpensesWorkFlowStatus.NOT_YET_STARTED,
45
+ nullable: false,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], MedicalExpensesWorkFlow.prototype, "status", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MedicalExpensesWorkFlow.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MedicalExpensesWorkFlow.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MedicalExpensesWorkFlow.prototype, "department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MedicalExpensesWorkFlow.prototype, "section_id", void 0);
65
+ exports.MedicalExpensesWorkFlow = MedicalExpensesWorkFlow = __decorate([
66
+ (0, typeorm_1.Entity)({ name: 'medical_expenses_workflows' })
67
+ ], MedicalExpensesWorkFlow);