@platform-modules/foreign-ministry 1.3.219 → 1.3.221

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 (93) hide show
  1. package/dist/data-source.js +56 -0
  2. package/dist/index.d.ts +29 -1
  3. package/dist/index.js +35 -1
  4. package/dist/models/AppointmentRequestModel.d.ts +3 -0
  5. package/dist/models/AppointmentRequestModel.js +9 -0
  6. package/dist/models/ChildrensDetailsModel.d.ts +12 -0
  7. package/dist/models/ChildrensDetailsModel.js +56 -0
  8. package/dist/models/ChildrensEducationApprovalModel.d.ts +22 -0
  9. package/dist/models/ChildrensEducationApprovalModel.js +84 -0
  10. package/dist/models/ChildrensEducationAttachmentModel.d.ts +11 -0
  11. package/dist/models/ChildrensEducationAttachmentModel.js +52 -0
  12. package/dist/models/ChildrensEducationChatModel.d.ts +19 -0
  13. package/dist/models/ChildrensEducationChatModel.js +77 -0
  14. package/dist/models/ChildrensEducationRequestModel.d.ts +18 -0
  15. package/dist/models/ChildrensEducationRequestModel.js +62 -0
  16. package/dist/models/ChildrensEducationWorkflowModel.d.ts +17 -0
  17. package/dist/models/ChildrensEducationWorkflowModel.js +67 -0
  18. package/dist/models/MedicalExpensesApprovalModel.d.ts +22 -0
  19. package/dist/models/MedicalExpensesApprovalModel.js +84 -0
  20. package/dist/models/MedicalExpensesAttachmentModel.d.ts +11 -0
  21. package/dist/models/MedicalExpensesAttachmentModel.js +52 -0
  22. package/dist/models/MedicalExpensesChatModel.d.ts +19 -0
  23. package/dist/models/MedicalExpensesChatModel.js +77 -0
  24. package/dist/models/MedicalExpensesFamilyDetailsModel.d.ts +7 -0
  25. package/dist/models/MedicalExpensesFamilyDetailsModel.js +36 -0
  26. package/dist/models/MedicalExpensesRequestModel.d.ts +18 -0
  27. package/dist/models/MedicalExpensesRequestModel.js +62 -0
  28. package/dist/models/MedicalExpensesWorkflowModel.d.ts +17 -0
  29. package/dist/models/MedicalExpensesWorkflowModel.js +67 -0
  30. package/dist/models/RecruitmentDomesticWorkersApprovalModel.d.ts +22 -0
  31. package/dist/models/RecruitmentDomesticWorkersApprovalModel.js +84 -0
  32. package/dist/models/RecruitmentDomesticWorkersAttachmentModel.d.ts +11 -0
  33. package/dist/models/RecruitmentDomesticWorkersAttachmentModel.js +52 -0
  34. package/dist/models/RecruitmentDomesticWorkersChatModel.d.ts +19 -0
  35. package/dist/models/RecruitmentDomesticWorkersChatModel.js +77 -0
  36. package/dist/models/RecruitmentDomesticWorkersDetailsModel.d.ts +7 -0
  37. package/dist/models/RecruitmentDomesticWorkersDetailsModel.js +36 -0
  38. package/dist/models/RecruitmentDomesticWorkersRequestModel.d.ts +18 -0
  39. package/dist/models/RecruitmentDomesticWorkersRequestModel.js +62 -0
  40. package/dist/models/RecruitmentDomesticWorkersWorkflowModel.d.ts +17 -0
  41. package/dist/models/RecruitmentDomesticWorkersWorkflowModel.js +67 -0
  42. package/dist/models/TransferAllowanceApprovalModel.d.ts +22 -0
  43. package/dist/models/TransferAllowanceApprovalModel.js +84 -0
  44. package/dist/models/TransferAllowanceAttachmentModel.d.ts +11 -0
  45. package/dist/models/TransferAllowanceAttachmentModel.js +52 -0
  46. package/dist/models/TransferAllowanceChatModel.d.ts +19 -0
  47. package/dist/models/TransferAllowanceChatModel.js +77 -0
  48. package/dist/models/TransferAllowanceRequestModel.d.ts +24 -0
  49. package/dist/models/TransferAllowanceRequestModel.js +86 -0
  50. package/dist/models/TransferAllowanceWorkflowModel.d.ts +17 -0
  51. package/dist/models/TransferAllowanceWorkflowModel.js +67 -0
  52. package/dist/models/TransferSalaryBankAccountApprovalModel.d.ts +22 -0
  53. package/dist/models/TransferSalaryBankAccountApprovalModel.js +84 -0
  54. package/dist/models/TransferSalaryBankAccountAttachmentModel.d.ts +11 -0
  55. package/dist/models/TransferSalaryBankAccountAttachmentModel.js +52 -0
  56. package/dist/models/TransferSalaryBankAccountChatModel.d.ts +19 -0
  57. package/dist/models/TransferSalaryBankAccountChatModel.js +77 -0
  58. package/dist/models/TransferSalaryBankAccountRequestModel.d.ts +21 -0
  59. package/dist/models/TransferSalaryBankAccountRequestModel.js +74 -0
  60. package/dist/models/TransferSalaryBankAccountWorkflowModel.d.ts +17 -0
  61. package/dist/models/TransferSalaryBankAccountWorkflowModel.js +67 -0
  62. package/package.json +1 -1
  63. package/src/data-source.ts +56 -0
  64. package/src/index.ts +34 -1
  65. package/src/models/AppointmentRequestModel.ts +7 -0
  66. package/src/models/ChildrensDetailsModel.ts +32 -0
  67. package/src/models/ChildrensEducationApprovalModel.ts +56 -0
  68. package/src/models/ChildrensEducationAttachmentModel.ts +29 -0
  69. package/src/models/ChildrensEducationChatModel.ts +63 -0
  70. package/src/models/ChildrensEducationRequestModel.ts +40 -0
  71. package/src/models/ChildrensEducationWorkflowModel.ts +43 -0
  72. package/src/models/MedicalExpensesApprovalModel.ts +56 -0
  73. package/src/models/MedicalExpensesAttachmentModel.ts +29 -0
  74. package/src/models/MedicalExpensesChatModel.ts +63 -0
  75. package/src/models/MedicalExpensesFamilyDetailsModel.ts +17 -0
  76. package/src/models/MedicalExpensesRequestModel.ts +40 -0
  77. package/src/models/MedicalExpensesWorkflowModel.ts +43 -0
  78. package/src/models/RecruitmentDomesticWorkersApprovalModel.ts +56 -0
  79. package/src/models/RecruitmentDomesticWorkersAttachmentModel.ts +29 -0
  80. package/src/models/RecruitmentDomesticWorkersChatModel.ts +63 -0
  81. package/src/models/RecruitmentDomesticWorkersDetailsModel.ts +17 -0
  82. package/src/models/RecruitmentDomesticWorkersRequestModel.ts +40 -0
  83. package/src/models/RecruitmentDomesticWorkersWorkflowModel.ts +43 -0
  84. package/src/models/TransferAllowanceApprovalModel.ts +56 -0
  85. package/src/models/TransferAllowanceAttachmentModel.ts +29 -0
  86. package/src/models/TransferAllowanceChatModel.ts +63 -0
  87. package/src/models/TransferAllowanceRequestModel.ts +58 -0
  88. package/src/models/TransferAllowanceWorkflowModel.ts +43 -0
  89. package/src/models/TransferSalaryBankAccountApprovalModel.ts +56 -0
  90. package/src/models/TransferSalaryBankAccountAttachmentModel.ts +29 -0
  91. package/src/models/TransferSalaryBankAccountChatModel.ts +63 -0
  92. package/src/models/TransferSalaryBankAccountRequestModel.ts +49 -0
  93. package/src/models/TransferSalaryBankAccountWorkflowModel.ts +43 -0
@@ -0,0 +1,74 @@
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.TransferSalaryBankAccountRequests = exports.TransferSalaryBankAccountRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TransferSalaryBankAccountRequestStatus;
16
+ (function (TransferSalaryBankAccountRequestStatus) {
17
+ TransferSalaryBankAccountRequestStatus["PENDING"] = "Pending";
18
+ TransferSalaryBankAccountRequestStatus["ASSIGNED"] = "Assigned";
19
+ TransferSalaryBankAccountRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ TransferSalaryBankAccountRequestStatus["APPROVED"] = "Approved";
21
+ TransferSalaryBankAccountRequestStatus["REJECTED"] = "Rejected";
22
+ TransferSalaryBankAccountRequestStatus["CANCELLED"] = "Cancelled";
23
+ })(TransferSalaryBankAccountRequestStatus || (exports.TransferSalaryBankAccountRequestStatus = TransferSalaryBankAccountRequestStatus = {}));
24
+ let TransferSalaryBankAccountRequests = class TransferSalaryBankAccountRequests extends BaseModel_1.BaseModel {
25
+ };
26
+ exports.TransferSalaryBankAccountRequests = TransferSalaryBankAccountRequests;
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], TransferSalaryBankAccountRequests.prototype, "req_user_department_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], TransferSalaryBankAccountRequests.prototype, "req_user_section_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], TransferSalaryBankAccountRequests.prototype, "service_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], TransferSalaryBankAccountRequests.prototype, "sub_service_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
45
+ __metadata("design:type", Number)
46
+ ], TransferSalaryBankAccountRequests.prototype, "user_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({
49
+ type: 'enum',
50
+ enum: TransferSalaryBankAccountRequestStatus,
51
+ default: TransferSalaryBankAccountRequestStatus.PENDING,
52
+ nullable: false,
53
+ }),
54
+ __metadata("design:type", String)
55
+ ], TransferSalaryBankAccountRequests.prototype, "status", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], TransferSalaryBankAccountRequests.prototype, "workflow_execution_id", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: true }),
62
+ __metadata("design:type", Object)
63
+ ], TransferSalaryBankAccountRequests.prototype, "domestic_worker_salary", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
66
+ __metadata("design:type", Object)
67
+ ], TransferSalaryBankAccountRequests.prototype, "domestic_worker_name", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
70
+ __metadata("design:type", Object)
71
+ ], TransferSalaryBankAccountRequests.prototype, "date_of_joining", void 0);
72
+ exports.TransferSalaryBankAccountRequests = TransferSalaryBankAccountRequests = __decorate([
73
+ (0, typeorm_1.Entity)({ name: 'transfer_salary_bank_account_requests' })
74
+ ], TransferSalaryBankAccountRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum TransferSalaryBankAccountWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class TransferSalaryBankAccountWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: TransferSalaryBankAccountWorkFlowStatus;
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.TransferSalaryBankAccountWorkFlow = exports.TransferSalaryBankAccountWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TransferSalaryBankAccountWorkFlowStatus;
16
+ (function (TransferSalaryBankAccountWorkFlowStatus) {
17
+ TransferSalaryBankAccountWorkFlowStatus["COMPLETED"] = "Completed";
18
+ TransferSalaryBankAccountWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ TransferSalaryBankAccountWorkFlowStatus["PENDING"] = "Pending";
20
+ })(TransferSalaryBankAccountWorkFlowStatus || (exports.TransferSalaryBankAccountWorkFlowStatus = TransferSalaryBankAccountWorkFlowStatus = {}));
21
+ let TransferSalaryBankAccountWorkFlow = class TransferSalaryBankAccountWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.TransferSalaryBankAccountWorkFlow = TransferSalaryBankAccountWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], TransferSalaryBankAccountWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], TransferSalaryBankAccountWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], TransferSalaryBankAccountWorkFlow.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
+ ], TransferSalaryBankAccountWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ type: 'enum',
43
+ enum: TransferSalaryBankAccountWorkFlowStatus,
44
+ default: TransferSalaryBankAccountWorkFlowStatus.NOT_YET_STARTED,
45
+ nullable: false,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], TransferSalaryBankAccountWorkFlow.prototype, "status", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], TransferSalaryBankAccountWorkFlow.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], TransferSalaryBankAccountWorkFlow.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], TransferSalaryBankAccountWorkFlow.prototype, "department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], TransferSalaryBankAccountWorkFlow.prototype, "section_id", void 0);
65
+ exports.TransferSalaryBankAccountWorkFlow = TransferSalaryBankAccountWorkFlow = __decorate([
66
+ (0, typeorm_1.Entity)({ name: 'transfer_salary_bank_account_workflows' })
67
+ ], TransferSalaryBankAccountWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.219",
3
+ "version": "1.3.221",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -184,6 +184,34 @@ import { MeetingApprovalDetails } from './models/MeetingApprovalModel';
184
184
  import { MeetingRequestAttachment } from './models/MeetingAttachmentModel';
185
185
  import { MeetingRequestChat } from './models/MeetingChatModel';
186
186
  import { MeetingWorkFlow } from './models/MeetingWorkflowModel';
187
+ import { ChildrensEducationRequests } from './models/ChildrensEducationRequestModel';
188
+ import { ChildrensDetails } from './models/ChildrensDetailsModel';
189
+ import { ChildrensEducationApprovalDetails } from './models/ChildrensEducationApprovalModel';
190
+ import { ChildrensEducationRequestAttachment } from './models/ChildrensEducationAttachmentModel';
191
+ import { ChildrensEducationRequestChat } from './models/ChildrensEducationChatModel';
192
+ import { ChildrensEducationWorkFlow } from './models/ChildrensEducationWorkflowModel';
193
+ import { MedicalExpensesRequests } from './models/MedicalExpensesRequestModel';
194
+ import { MedicalExpensesFamilyDetails } from './models/MedicalExpensesFamilyDetailsModel';
195
+ import { MedicalExpensesApprovalDetails } from './models/MedicalExpensesApprovalModel';
196
+ import { MedicalExpensesRequestAttachment } from './models/MedicalExpensesAttachmentModel';
197
+ import { MedicalExpensesRequestChat } from './models/MedicalExpensesChatModel';
198
+ import { MedicalExpensesWorkFlow } from './models/MedicalExpensesWorkflowModel';
199
+ import { RecruitmentDomesticWorkersRequests } from './models/RecruitmentDomesticWorkersRequestModel';
200
+ import { RecruitmentDomesticWorkersDetails } from './models/RecruitmentDomesticWorkersDetailsModel';
201
+ import { RecruitmentDomesticWorkersApprovalDetails } from './models/RecruitmentDomesticWorkersApprovalModel';
202
+ import { RecruitmentDomesticWorkersRequestAttachment } from './models/RecruitmentDomesticWorkersAttachmentModel';
203
+ import { RecruitmentDomesticWorkersRequestChat } from './models/RecruitmentDomesticWorkersChatModel';
204
+ import { RecruitmentDomesticWorkersWorkFlow } from './models/RecruitmentDomesticWorkersWorkflowModel';
205
+ import { TransferSalaryBankAccountRequests } from './models/TransferSalaryBankAccountRequestModel';
206
+ import { TransferSalaryBankAccountApprovalDetails } from './models/TransferSalaryBankAccountApprovalModel';
207
+ import { TransferSalaryBankAccountRequestAttachment } from './models/TransferSalaryBankAccountAttachmentModel';
208
+ import { TransferSalaryBankAccountRequestChat } from './models/TransferSalaryBankAccountChatModel';
209
+ import { TransferSalaryBankAccountWorkFlow } from './models/TransferSalaryBankAccountWorkflowModel';
210
+ import { TransferAllowanceRequests } from './models/TransferAllowanceRequestModel';
211
+ import { TransferAllowanceApprovalDetails } from './models/TransferAllowanceApprovalModel';
212
+ import { TransferAllowanceRequestAttachment } from './models/TransferAllowanceAttachmentModel';
213
+ import { TransferAllowanceRequestChat } from './models/TransferAllowanceChatModel';
214
+ import { TransferAllowanceWorkFlow } from './models/TransferAllowanceWorkflowModel';
187
215
  import { MeetingAttendees } from './models/MeetingAttendeeModel';
188
216
  import { MeetingDocumentsPermission } from './models/MeetingDocumentsPermissionModel';
189
217
  import { AppointmentRequests } from './models/AppointmentRequestModel';
@@ -409,6 +437,34 @@ export const AppDataSource = new DataSource({
409
437
  MeetingRequestAttachment,
410
438
  MeetingRequestChat,
411
439
  MeetingWorkFlow,
440
+ ChildrensEducationRequests,
441
+ ChildrensDetails,
442
+ ChildrensEducationApprovalDetails,
443
+ ChildrensEducationRequestAttachment,
444
+ ChildrensEducationRequestChat,
445
+ ChildrensEducationWorkFlow,
446
+ MedicalExpensesRequests,
447
+ MedicalExpensesFamilyDetails,
448
+ MedicalExpensesApprovalDetails,
449
+ MedicalExpensesRequestAttachment,
450
+ MedicalExpensesRequestChat,
451
+ MedicalExpensesWorkFlow,
452
+ RecruitmentDomesticWorkersRequests,
453
+ RecruitmentDomesticWorkersDetails,
454
+ RecruitmentDomesticWorkersApprovalDetails,
455
+ RecruitmentDomesticWorkersRequestAttachment,
456
+ RecruitmentDomesticWorkersRequestChat,
457
+ RecruitmentDomesticWorkersWorkFlow,
458
+ TransferSalaryBankAccountRequests,
459
+ TransferSalaryBankAccountApprovalDetails,
460
+ TransferSalaryBankAccountRequestAttachment,
461
+ TransferSalaryBankAccountRequestChat,
462
+ TransferSalaryBankAccountWorkFlow,
463
+ TransferAllowanceRequests,
464
+ TransferAllowanceApprovalDetails,
465
+ TransferAllowanceRequestAttachment,
466
+ TransferAllowanceRequestChat,
467
+ TransferAllowanceWorkFlow,
412
468
  MeetingAttendees,
413
469
  MeetingDocumentsPermission,
414
470
  AppointmentRequests,
package/src/index.ts CHANGED
@@ -280,8 +280,41 @@ export * from './models/MeetingChatModel';
280
280
  export * from './models/MeetingWorkflowModel';
281
281
  export * from './models/MeetingAttendeeModel';
282
282
  export * from './models/MeetingDocumentsPermissionModel';
283
+ // Children's Education (Missions) Models
284
+ export * from './models/ChildrensEducationRequestModel';
285
+ export * from './models/ChildrensDetailsModel';
286
+ export * from './models/ChildrensEducationApprovalModel';
287
+ export * from './models/ChildrensEducationAttachmentModel';
288
+ export * from './models/ChildrensEducationChatModel';
289
+ export * from './models/ChildrensEducationWorkflowModel';
290
+ // Medical Expenses (Missions) Models
291
+ export * from './models/MedicalExpensesRequestModel';
292
+ export * from './models/MedicalExpensesFamilyDetailsModel';
293
+ export * from './models/MedicalExpensesApprovalModel';
294
+ export * from './models/MedicalExpensesAttachmentModel';
295
+ export * from './models/MedicalExpensesChatModel';
296
+ export * from './models/MedicalExpensesWorkflowModel';
297
+ // Recruitment Domestic Workers (Missions) Models
298
+ export * from './models/RecruitmentDomesticWorkersRequestModel';
299
+ export * from './models/RecruitmentDomesticWorkersDetailsModel';
300
+ export * from './models/RecruitmentDomesticWorkersApprovalModel';
301
+ export * from './models/RecruitmentDomesticWorkersAttachmentModel';
302
+ export * from './models/RecruitmentDomesticWorkersChatModel';
303
+ export * from './models/RecruitmentDomesticWorkersWorkflowModel';
304
+ // Transfer Salary Bank Account (Missions) Models
305
+ export * from './models/TransferSalaryBankAccountRequestModel';
306
+ export * from './models/TransferSalaryBankAccountApprovalModel';
307
+ export * from './models/TransferSalaryBankAccountAttachmentModel';
308
+ export * from './models/TransferSalaryBankAccountChatModel';
309
+ export * from './models/TransferSalaryBankAccountWorkflowModel';
310
+ // Transfer Allowance (Missions) Models
311
+ export * from './models/TransferAllowanceRequestModel';
312
+ export * from './models/TransferAllowanceApprovalModel';
313
+ export * from './models/TransferAllowanceAttachmentModel';
314
+ export * from './models/TransferAllowanceChatModel';
315
+ export * from './models/TransferAllowanceWorkflowModel';
283
316
  // Appointment Models (export entities only to avoid name collisions)
284
- export { AppointmentRequests } from './models/AppointmentRequestModel';
317
+ export { AppointmentRequests, AppointmentRequestStatus } from './models/AppointmentRequestModel';
285
318
  export { AppointmentApprovalDetails } from './models/AppointmentApprovalModel';
286
319
  export { AppointmentRequestAttachment } from './models/AppointmentAttachmentModel';
287
320
  export { AppointmentRequestChat } from './models/AppointmentChatModel';
@@ -1,5 +1,6 @@
1
1
  import { Column, Entity } from 'typeorm';
2
2
  import { BaseModel } from './BaseModel';
3
+ import { RequestResourceSystem } from './MeetingRequestModel';
3
4
 
4
5
  export enum AppointmentRequestStatus {
5
6
  PENDING = 'Pending',
@@ -53,6 +54,12 @@ export class AppointmentRequests extends BaseModel {
53
54
  @Column({ type: 'jsonb', nullable: true })
54
55
  departments: number[] | null;
55
56
 
57
+ @Column({ type: 'int', nullable: true })
58
+ project_id: number | null;
59
+
60
+ @Column({ type: 'enum', enum: RequestResourceSystem, nullable: true })
61
+ request_resource_system: RequestResourceSystem | null;
62
+
56
63
  @Column({ type: 'int', nullable: true })
57
64
  receiving_department_id: number | null;
58
65
 
@@ -0,0 +1,32 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'childrens_details' })
5
+ export class ChildrensDetails extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'varchar', length: 255, nullable: true })
10
+ child_name: string | null;
11
+
12
+ @Column({ type: 'int', nullable: true })
13
+ age: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 255, nullable: true })
16
+ country: string | null;
17
+
18
+ @Column({ type: 'text', nullable: true })
19
+ purpose: string | null;
20
+
21
+ @Column({ type: 'varchar', length: 500, nullable: true })
22
+ school_name: string | null;
23
+
24
+ @Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
25
+ cost: string | null;
26
+
27
+ @Column({ type: 'varchar', length: 50, nullable: true })
28
+ currency_type: string | null;
29
+
30
+ @Column({ type: 'text', nullable: true })
31
+ remark: string | null;
32
+ }
@@ -0,0 +1,56 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ChildrensEducationApprovalStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ @Entity({ name: 'childrens_education_approvals' })
12
+ export class ChildrensEducationApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({
47
+ type: 'enum',
48
+ enum: ChildrensEducationApprovalStatus,
49
+ default: ChildrensEducationApprovalStatus.PENDING,
50
+ nullable: false,
51
+ })
52
+ approval_status: ChildrensEducationApprovalStatus;
53
+
54
+ @Column({ type: 'boolean', default: true, nullable: false })
55
+ is_allowed: boolean;
56
+ }
@@ -0,0 +1,29 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'childrens_education_attachments' })
5
+ export class ChildrensEducationRequestAttachment extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: false })
16
+ file_url: string;
17
+
18
+ @Column({ type: 'varchar', length: 255, nullable: true })
19
+ file_name: string;
20
+
21
+ @Column({ type: 'varchar', length: 100, nullable: true })
22
+ file_type: string;
23
+
24
+ @Column({ type: 'bigint', nullable: true })
25
+ file_size: number | null;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ chat_id: number | null;
29
+ }
@@ -0,0 +1,63 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ChildrensEducationMessageType {
5
+ TEXT = 'text',
6
+ IMAGE = 'image',
7
+ VIDEO = 'video',
8
+ FILE = 'file',
9
+ LINK = 'link',
10
+ }
11
+
12
+ @Entity({ name: 'childrens_education_chats' })
13
+ export class ChildrensEducationRequestChat extends BaseModel {
14
+ @Column({ type: 'integer', nullable: false })
15
+ request_id: number;
16
+
17
+ @Column({ type: 'integer', nullable: true })
18
+ service_id: number | null;
19
+
20
+ @Column({ type: 'integer', nullable: true })
21
+ sub_service_id: number | null;
22
+
23
+ @Column({ type: 'integer', nullable: false })
24
+ user_id: number;
25
+
26
+ @Column({ type: 'integer', nullable: true })
27
+ role_id: number;
28
+
29
+ @Column({ type: 'text', nullable: false })
30
+ message: string;
31
+
32
+ @Column({
33
+ type: 'enum',
34
+ enum: ChildrensEducationMessageType,
35
+ default: ChildrensEducationMessageType.TEXT,
36
+ nullable: false,
37
+ })
38
+ messageType: ChildrensEducationMessageType;
39
+
40
+ @Column({ type: 'text', nullable: true })
41
+ status: string;
42
+
43
+ constructor(
44
+ request_id: number,
45
+ user_id: number,
46
+ role_id: number,
47
+ message: string,
48
+ service_id?: number,
49
+ sub_service_id?: number,
50
+ messageType?: ChildrensEducationMessageType,
51
+ status?: string
52
+ ) {
53
+ super();
54
+ this.request_id = request_id;
55
+ this.service_id = service_id ?? null;
56
+ this.sub_service_id = sub_service_id ?? null;
57
+ this.user_id = user_id;
58
+ this.role_id = role_id;
59
+ this.message = message;
60
+ this.messageType = messageType ?? ChildrensEducationMessageType.TEXT;
61
+ this.status = status ?? 'Pending';
62
+ }
63
+ }
@@ -0,0 +1,40 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ChildrensEducationRequestStatus {
5
+ PENDING = 'Pending',
6
+ ASSIGNED = 'Assigned',
7
+ IN_PROGRESS = 'In Progress',
8
+ APPROVED = 'Approved',
9
+ REJECTED = 'Rejected',
10
+ CANCELLED = 'Cancelled',
11
+ }
12
+
13
+ @Entity({ name: 'childrens_education_requests' })
14
+ export class ChildrensEducationRequests extends BaseModel {
15
+ @Column({ type: 'int', nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: 'int', nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: 'int', nullable: true })
22
+ service_id: number | null;
23
+
24
+ @Column({ type: 'int', nullable: true })
25
+ sub_service_id: number | null;
26
+
27
+ @Column({ type: 'int', nullable: false })
28
+ user_id: number;
29
+
30
+ @Column({
31
+ type: 'enum',
32
+ enum: ChildrensEducationRequestStatus,
33
+ default: ChildrensEducationRequestStatus.PENDING,
34
+ nullable: false,
35
+ })
36
+ status: ChildrensEducationRequestStatus;
37
+
38
+ @Column({ type: 'varchar', nullable: true })
39
+ workflow_execution_id: string | null;
40
+ }
@@ -0,0 +1,43 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ChildrensEducationWorkFlowStatus {
5
+ COMPLETED = 'Completed',
6
+ NOT_YET_STARTED = 'Not Yet Started',
7
+ PENDING = 'Pending',
8
+ }
9
+
10
+ @Entity({ name: 'childrens_education_workflows' })
11
+ export class ChildrensEducationWorkFlow extends BaseModel {
12
+ @Column({ type: 'integer', nullable: false })
13
+ request_id: number;
14
+
15
+ @Column({ type: 'integer', nullable: true })
16
+ service_id: number | null;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ sub_service_id: number | null;
20
+
21
+ @Column({ type: 'varchar', length: 500, nullable: false })
22
+ content: string;
23
+
24
+ @Column({
25
+ type: 'enum',
26
+ enum: ChildrensEducationWorkFlowStatus,
27
+ default: ChildrensEducationWorkFlowStatus.NOT_YET_STARTED,
28
+ nullable: false,
29
+ })
30
+ status: ChildrensEducationWorkFlowStatus;
31
+
32
+ @Column({ type: 'integer', nullable: true })
33
+ user_id: number | null;
34
+
35
+ @Column({ type: 'integer', nullable: true })
36
+ role_id: number | null;
37
+
38
+ @Column({ type: 'integer', nullable: true })
39
+ department_id: number | null;
40
+
41
+ @Column({ type: 'integer', nullable: true })
42
+ section_id: number | null;
43
+ }
@@ -0,0 +1,56 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum MedicalExpensesApprovalStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ @Entity({ name: 'medical_expenses_approvals' })
12
+ export class MedicalExpensesApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({
47
+ type: 'enum',
48
+ enum: MedicalExpensesApprovalStatus,
49
+ default: MedicalExpensesApprovalStatus.PENDING,
50
+ nullable: false,
51
+ })
52
+ approval_status: MedicalExpensesApprovalStatus;
53
+
54
+ @Column({ type: 'boolean', default: true, nullable: false })
55
+ is_allowed: boolean;
56
+ }
@@ -0,0 +1,29 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'medical_expenses_attachments' })
5
+ export class MedicalExpensesRequestAttachment extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: false })
16
+ file_url: string;
17
+
18
+ @Column({ type: 'varchar', length: 255, nullable: true })
19
+ file_name: string;
20
+
21
+ @Column({ type: 'varchar', length: 100, nullable: true })
22
+ file_type: string;
23
+
24
+ @Column({ type: 'bigint', nullable: true })
25
+ file_size: number | null;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ chat_id: number | null;
29
+ }