@platform-modules/civil-aviation-authority 2.3.211 → 2.3.212

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 (50) hide show
  1. package/.env +10 -10
  2. package/dist/data-source.js +10 -10
  3. package/dist/index.d.ts +5 -5
  4. package/dist/index.js +5 -5
  5. package/dist/models/FollowUpReportApprovalModel.d.ts +24 -0
  6. package/dist/models/FollowUpReportApprovalModel.js +85 -0
  7. package/dist/models/FollowUpReportAttachmentModel.d.ts +12 -0
  8. package/dist/models/FollowUpReportAttachmentModel.js +53 -0
  9. package/dist/models/FollowUpReportChatModel.d.ts +20 -0
  10. package/dist/models/FollowUpReportChatModel.js +66 -0
  11. package/dist/models/FollowUpReportRequestModel.d.ts +46 -0
  12. package/dist/models/FollowUpReportRequestModel.js +126 -0
  13. package/dist/models/FollowUpReportWorkflowModel.d.ts +19 -0
  14. package/dist/models/FollowUpReportWorkflowModel.js +68 -0
  15. package/package.json +1 -1
  16. package/src/data-source.ts +10 -10
  17. package/src/index.ts +5 -5
  18. package/src/models/AccommodationApprovalModel.ts +8 -8
  19. package/src/models/AccommodationRequestModel.ts +8 -8
  20. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  21. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  22. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  23. package/src/models/CAAServices.ts +33 -33
  24. package/src/models/CAASubServices.ts +33 -33
  25. package/src/models/CAIRatingMasterModel.ts +39 -39
  26. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  27. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  28. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  29. package/src/models/{MaintenanceApprovalModel.ts → FollowUpReportApprovalModel.ts} +10 -6
  30. package/src/models/{MaintenanceAttachmentModel.ts → FollowUpReportAttachmentModel.ts} +5 -2
  31. package/src/models/{MaintenanceChatModel.ts → FollowUpReportChatModel.ts} +10 -6
  32. package/src/models/{MaintenanceRequestModel.ts → FollowUpReportRequestModel.ts} +18 -12
  33. package/src/models/{MaintenanceWorkflowModel.ts → FollowUpReportWorkflowModel.ts} +10 -6
  34. package/src/models/HrServiceRequestModel.ts +193 -193
  35. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  36. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  37. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  38. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  39. package/src/models/PromotionRequestModel.ts +11 -11
  40. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  41. package/src/models/SkillsEnhancementRequestModel.ts +17 -17
  42. package/src/models/UserSkillModel.ts +56 -56
  43. package/dist/models/ITApprovalSettings.d.ts +0 -7
  44. package/dist/models/ITApprovalSettings.js +0 -40
  45. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  46. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  47. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  48. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  49. package/dist/models/Workflows.d.ts +0 -9
  50. package/dist/models/Workflows.js +0 -31
package/.env CHANGED
@@ -1,12 +1,12 @@
1
- # DB_HOST=164.52.222.169
2
- # DB_PORT=5432
3
- # DB_USER=postgres_admin_user
4
- # DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
5
- # DB_NAME=CAA
1
+ DB_HOST=164.52.222.169
2
+ DB_PORT=5432
3
+ DB_USER=postgres_admin_user
4
+ DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
5
+ DB_NAME=CAA
6
6
 
7
7
 
8
- DB_HOST=localhost
9
- DB_PORT=5432
10
- DB_USER=postgres
11
- DB_PASS=stevejobs
12
- DB_NAME=CAA
8
+ # DB_HOST=localhost
9
+ # DB_PORT=5432
10
+ # DB_USER=postgres
11
+ # DB_PASS=stevejobs
12
+ # DB_NAME=CAA
@@ -211,11 +211,11 @@ const MaintenanceExternalStationsApprovalModel_1 = require("./models/Maintenance
211
211
  const MaintenanceExternalStationsAttachmentModel_1 = require("./models/MaintenanceExternalStationsAttachmentModel");
212
212
  const MaintenanceExternalStationsChatModel_1 = require("./models/MaintenanceExternalStationsChatModel");
213
213
  const MaintenanceExternalStationsWorkflowModel_1 = require("./models/MaintenanceExternalStationsWorkflowModel");
214
- const MaintenanceRequestModel_1 = require("./models/MaintenanceRequestModel");
215
- const MaintenanceApprovalModel_1 = require("./models/MaintenanceApprovalModel");
216
- const MaintenanceAttachmentModel_1 = require("./models/MaintenanceAttachmentModel");
217
- const MaintenanceChatModel_1 = require("./models/MaintenanceChatModel");
218
- const MaintenanceWorkflowModel_1 = require("./models/MaintenanceWorkflowModel");
214
+ const FollowUpReportRequestModel_1 = require("./models/FollowUpReportRequestModel");
215
+ const FollowUpReportApprovalModel_1 = require("./models/FollowUpReportApprovalModel");
216
+ const FollowUpReportAttachmentModel_1 = require("./models/FollowUpReportAttachmentModel");
217
+ const FollowUpReportChatModel_1 = require("./models/FollowUpReportChatModel");
218
+ const FollowUpReportWorkflowModel_1 = require("./models/FollowUpReportWorkflowModel");
219
219
  const MediaPublicationsRequestModel_1 = require("./models/MediaPublicationsRequestModel");
220
220
  const MediaPublicationsApprovalModel_1 = require("./models/MediaPublicationsApprovalModel");
221
221
  const MediaPublicationsAttachmentModel_1 = require("./models/MediaPublicationsAttachmentModel");
@@ -436,11 +436,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
436
436
  MaintenanceExternalStationsAttachmentModel_1.MaintenanceExternalStationsAttachment,
437
437
  MaintenanceExternalStationsChatModel_1.MaintenanceExternalStationsChat,
438
438
  MaintenanceExternalStationsWorkflowModel_1.MaintenanceExternalStationsWorkFlow,
439
- MaintenanceRequestModel_1.MaintenanceRequests,
440
- MaintenanceApprovalModel_1.MaintenanceApprovalDetails,
441
- MaintenanceAttachmentModel_1.MaintenanceAttachment,
442
- MaintenanceChatModel_1.MaintenanceChat,
443
- MaintenanceWorkflowModel_1.MaintenanceWorkFlow,
439
+ FollowUpReportRequestModel_1.FollowUpReportRequests,
440
+ FollowUpReportApprovalModel_1.FollowUpReportApprovalDetails,
441
+ FollowUpReportAttachmentModel_1.FollowUpReportAttachment,
442
+ FollowUpReportChatModel_1.FollowUpReportChat,
443
+ FollowUpReportWorkflowModel_1.FollowUpReportWorkFlow,
444
444
  MediaPublicationsRequestModel_1.MediaPublicationsRequests,
445
445
  MediaPublicationsApprovalModel_1.MediaPublicationsApprovalDetails,
446
446
  MediaPublicationsAttachmentModel_1.MediaPublicationsAttachment,
package/dist/index.d.ts CHANGED
@@ -314,11 +314,11 @@ export * from './models/MaintenanceExternalStationsApprovalModel';
314
314
  export * from './models/MaintenanceExternalStationsAttachmentModel';
315
315
  export * from './models/MaintenanceExternalStationsChatModel';
316
316
  export * from './models/MaintenanceExternalStationsWorkflowModel';
317
- export * from './models/MaintenanceRequestModel';
318
- export * from './models/MaintenanceApprovalModel';
319
- export * from './models/MaintenanceAttachmentModel';
320
- export * from './models/MaintenanceChatModel';
321
- export * from './models/MaintenanceWorkflowModel';
317
+ export * from './models/FollowUpReportRequestModel';
318
+ export * from './models/FollowUpReportApprovalModel';
319
+ export * from './models/FollowUpReportAttachmentModel';
320
+ export * from './models/FollowUpReportChatModel';
321
+ export * from './models/FollowUpReportWorkflowModel';
322
322
  export * from './models/MediaPublicationsRequestModel';
323
323
  export * from './models/MediaPublicationsApprovalModel';
324
324
  export * from './models/MediaPublicationsAttachmentModel';
package/dist/index.js CHANGED
@@ -477,11 +477,11 @@ __exportStar(require("./models/MaintenanceExternalStationsApprovalModel"), expor
477
477
  __exportStar(require("./models/MaintenanceExternalStationsAttachmentModel"), exports);
478
478
  __exportStar(require("./models/MaintenanceExternalStationsChatModel"), exports);
479
479
  __exportStar(require("./models/MaintenanceExternalStationsWorkflowModel"), exports);
480
- __exportStar(require("./models/MaintenanceRequestModel"), exports);
481
- __exportStar(require("./models/MaintenanceApprovalModel"), exports);
482
- __exportStar(require("./models/MaintenanceAttachmentModel"), exports);
483
- __exportStar(require("./models/MaintenanceChatModel"), exports);
484
- __exportStar(require("./models/MaintenanceWorkflowModel"), exports);
480
+ __exportStar(require("./models/FollowUpReportRequestModel"), exports);
481
+ __exportStar(require("./models/FollowUpReportApprovalModel"), exports);
482
+ __exportStar(require("./models/FollowUpReportAttachmentModel"), exports);
483
+ __exportStar(require("./models/FollowUpReportChatModel"), exports);
484
+ __exportStar(require("./models/FollowUpReportWorkflowModel"), exports);
485
485
  // Media Publications (Asset Affairs)
486
486
  __exportStar(require("./models/MediaPublicationsRequestModel"), exports);
487
487
  __exportStar(require("./models/MediaPublicationsApprovalModel"), exports);
@@ -0,0 +1,24 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum FollowUpReportApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class FollowUpReportApprovalDetails 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: FollowUpReportApprovalStatus;
21
+ is_allowed: boolean;
22
+ }
23
+ export { FollowUpReportApprovalDetails as MaintenanceApprovalDetails };
24
+ export { FollowUpReportApprovalStatus as MaintenanceApprovalStatus };
@@ -0,0 +1,85 @@
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.MaintenanceApprovalStatus = exports.MaintenanceApprovalDetails = exports.FollowUpReportApprovalDetails = exports.FollowUpReportApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var FollowUpReportApprovalStatus;
16
+ (function (FollowUpReportApprovalStatus) {
17
+ FollowUpReportApprovalStatus["PENDING"] = "Pending";
18
+ FollowUpReportApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ FollowUpReportApprovalStatus["APPROVED"] = "Approved";
20
+ FollowUpReportApprovalStatus["REJECTED"] = "Rejected";
21
+ })(FollowUpReportApprovalStatus || (exports.MaintenanceApprovalStatus = exports.FollowUpReportApprovalStatus = FollowUpReportApprovalStatus = {}));
22
+ let FollowUpReportApprovalDetails = class FollowUpReportApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.FollowUpReportApprovalDetails = FollowUpReportApprovalDetails;
25
+ exports.MaintenanceApprovalDetails = FollowUpReportApprovalDetails;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
28
+ __metadata("design:type", Number)
29
+ ], FollowUpReportApprovalDetails.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], FollowUpReportApprovalDetails.prototype, "service_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], FollowUpReportApprovalDetails.prototype, "sub_service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], FollowUpReportApprovalDetails.prototype, "level", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
44
+ __metadata("design:type", Number)
45
+ ], FollowUpReportApprovalDetails.prototype, "approver_role_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], FollowUpReportApprovalDetails.prototype, "department_id", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], FollowUpReportApprovalDetails.prototype, "section_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], FollowUpReportApprovalDetails.prototype, "approver_user_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], FollowUpReportApprovalDetails.prototype, "delegate_user_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], FollowUpReportApprovalDetails.prototype, "approved_by", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
68
+ __metadata("design:type", String)
69
+ ], FollowUpReportApprovalDetails.prototype, "comment", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({
72
+ type: 'enum',
73
+ enum: FollowUpReportApprovalStatus,
74
+ default: FollowUpReportApprovalStatus.PENDING,
75
+ nullable: false,
76
+ }),
77
+ __metadata("design:type", String)
78
+ ], FollowUpReportApprovalDetails.prototype, "approval_status", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
81
+ __metadata("design:type", Boolean)
82
+ ], FollowUpReportApprovalDetails.prototype, "is_allowed", void 0);
83
+ exports.MaintenanceApprovalDetails = exports.FollowUpReportApprovalDetails = FollowUpReportApprovalDetails = __decorate([
84
+ (0, typeorm_1.Entity)({ name: 'followup_report_approvals' })
85
+ ], FollowUpReportApprovalDetails);
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class FollowUpReportAttachment 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
+ }
12
+ export { FollowUpReportAttachment as MaintenanceAttachment };
@@ -0,0 +1,53 @@
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.MaintenanceAttachment = exports.FollowUpReportAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let FollowUpReportAttachment = class FollowUpReportAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.FollowUpReportAttachment = FollowUpReportAttachment;
18
+ exports.MaintenanceAttachment = FollowUpReportAttachment;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
21
+ __metadata("design:type", Number)
22
+ ], FollowUpReportAttachment.prototype, "request_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
25
+ __metadata("design:type", Object)
26
+ ], FollowUpReportAttachment.prototype, "service_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], FollowUpReportAttachment.prototype, "sub_service_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
33
+ __metadata("design:type", String)
34
+ ], FollowUpReportAttachment.prototype, "file_url", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], FollowUpReportAttachment.prototype, "file_name", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], FollowUpReportAttachment.prototype, "file_type", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], FollowUpReportAttachment.prototype, "file_size", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], FollowUpReportAttachment.prototype, "chat_id", void 0);
51
+ exports.MaintenanceAttachment = exports.FollowUpReportAttachment = FollowUpReportAttachment = __decorate([
52
+ (0, typeorm_1.Entity)({ name: 'followup_report_attachments' })
53
+ ], FollowUpReportAttachment);
@@ -0,0 +1,20 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum FollowUpReportMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class FollowUpReportChat 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: FollowUpReportMessageType;
17
+ status: string;
18
+ }
19
+ export { FollowUpReportChat as MaintenanceChat };
20
+ export { FollowUpReportMessageType as MaintenanceMessageType };
@@ -0,0 +1,66 @@
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.MaintenanceMessageType = exports.MaintenanceChat = exports.FollowUpReportChat = exports.FollowUpReportMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var FollowUpReportMessageType;
16
+ (function (FollowUpReportMessageType) {
17
+ FollowUpReportMessageType["TEXT"] = "text";
18
+ FollowUpReportMessageType["IMAGE"] = "image";
19
+ FollowUpReportMessageType["VIDEO"] = "video";
20
+ FollowUpReportMessageType["FILE"] = "file";
21
+ FollowUpReportMessageType["LINK"] = "link";
22
+ })(FollowUpReportMessageType || (exports.MaintenanceMessageType = exports.FollowUpReportMessageType = FollowUpReportMessageType = {}));
23
+ let FollowUpReportChat = class FollowUpReportChat extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.FollowUpReportChat = FollowUpReportChat;
26
+ exports.MaintenanceChat = FollowUpReportChat;
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
29
+ __metadata("design:type", Number)
30
+ ], FollowUpReportChat.prototype, "request_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], FollowUpReportChat.prototype, "service_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], FollowUpReportChat.prototype, "sub_service_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
41
+ __metadata("design:type", Number)
42
+ ], FollowUpReportChat.prototype, "user_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
45
+ __metadata("design:type", Number)
46
+ ], FollowUpReportChat.prototype, "role_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
49
+ __metadata("design:type", String)
50
+ ], FollowUpReportChat.prototype, "message", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({
53
+ type: 'enum',
54
+ enum: FollowUpReportMessageType,
55
+ default: FollowUpReportMessageType.TEXT,
56
+ nullable: false,
57
+ }),
58
+ __metadata("design:type", String)
59
+ ], FollowUpReportChat.prototype, "messageType", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
62
+ __metadata("design:type", String)
63
+ ], FollowUpReportChat.prototype, "status", void 0);
64
+ exports.MaintenanceChat = exports.FollowUpReportChat = FollowUpReportChat = __decorate([
65
+ (0, typeorm_1.Entity)({ name: 'followup_report_chats' })
66
+ ], FollowUpReportChat);
@@ -0,0 +1,46 @@
1
+ import { BaseModel } from './BaseModel';
2
+ /** Subject / handling priority classification */
3
+ export declare enum FollowUpReportSubjectClassification {
4
+ URGENT = "Urgent",
5
+ VERY_URGENT = "Very Urgent",
6
+ CONFIDENTIAL = "Confidential",
7
+ INFORMATIONAL = "Informational",
8
+ NORMAL = "Normal"
9
+ }
10
+ /** Concerned department under General Manager of Support Services */
11
+ export declare enum FollowUpReportConcernedDepartment {
12
+ IT = "IT",
13
+ HR = "HR",
14
+ TRAINING = "Training",
15
+ FINANCE = "Finance",
16
+ PROJECTS_AND_MAINTENANCE = "Projects & Maintenance"
17
+ }
18
+ export declare enum FollowUpReportRequestStatus {
19
+ PENDING = "Pending",
20
+ ASSIGNED = "Assigned",
21
+ IN_PROGRESS = "In Progress",
22
+ APPROVED = "Approved",
23
+ REJECTED = "Rejected"
24
+ }
25
+ export declare class FollowUpReportRequests extends BaseModel {
26
+ req_user_department_id: number | null;
27
+ req_user_section_id: number | null;
28
+ service_id: number;
29
+ sub_service_id: number;
30
+ user_id: number;
31
+ sent_by: string;
32
+ letter_date: Date;
33
+ subject: string;
34
+ subject_classification: FollowUpReportSubjectClassification;
35
+ topic: string;
36
+ concerned_department: FollowUpReportConcernedDepartment;
37
+ date_from: Date;
38
+ date_to: Date;
39
+ request_submission_date: Date;
40
+ status: FollowUpReportRequestStatus;
41
+ workflow_execution_id: string | null;
42
+ }
43
+ export { FollowUpReportRequests as MaintenanceRequests };
44
+ export { FollowUpReportRequestStatus as MaintenanceRequestStatus };
45
+ export { FollowUpReportSubjectClassification as MaintenanceSubjectClassification };
46
+ export { FollowUpReportConcernedDepartment as MaintenanceConcernedDepartment };
@@ -0,0 +1,126 @@
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.MaintenanceConcernedDepartment = exports.MaintenanceSubjectClassification = exports.MaintenanceRequestStatus = exports.MaintenanceRequests = exports.FollowUpReportRequests = exports.FollowUpReportRequestStatus = exports.FollowUpReportConcernedDepartment = exports.FollowUpReportSubjectClassification = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ /** Subject / handling priority classification */
16
+ var FollowUpReportSubjectClassification;
17
+ (function (FollowUpReportSubjectClassification) {
18
+ FollowUpReportSubjectClassification["URGENT"] = "Urgent";
19
+ FollowUpReportSubjectClassification["VERY_URGENT"] = "Very Urgent";
20
+ FollowUpReportSubjectClassification["CONFIDENTIAL"] = "Confidential";
21
+ FollowUpReportSubjectClassification["INFORMATIONAL"] = "Informational";
22
+ FollowUpReportSubjectClassification["NORMAL"] = "Normal";
23
+ })(FollowUpReportSubjectClassification || (exports.MaintenanceSubjectClassification = exports.FollowUpReportSubjectClassification = FollowUpReportSubjectClassification = {}));
24
+ /** Concerned department under General Manager of Support Services */
25
+ var FollowUpReportConcernedDepartment;
26
+ (function (FollowUpReportConcernedDepartment) {
27
+ FollowUpReportConcernedDepartment["IT"] = "IT";
28
+ FollowUpReportConcernedDepartment["HR"] = "HR";
29
+ FollowUpReportConcernedDepartment["TRAINING"] = "Training";
30
+ FollowUpReportConcernedDepartment["FINANCE"] = "Finance";
31
+ FollowUpReportConcernedDepartment["PROJECTS_AND_MAINTENANCE"] = "Projects & Maintenance";
32
+ })(FollowUpReportConcernedDepartment || (exports.MaintenanceConcernedDepartment = exports.FollowUpReportConcernedDepartment = FollowUpReportConcernedDepartment = {}));
33
+ var FollowUpReportRequestStatus;
34
+ (function (FollowUpReportRequestStatus) {
35
+ FollowUpReportRequestStatus["PENDING"] = "Pending";
36
+ FollowUpReportRequestStatus["ASSIGNED"] = "Assigned";
37
+ FollowUpReportRequestStatus["IN_PROGRESS"] = "In Progress";
38
+ FollowUpReportRequestStatus["APPROVED"] = "Approved";
39
+ FollowUpReportRequestStatus["REJECTED"] = "Rejected";
40
+ })(FollowUpReportRequestStatus || (exports.MaintenanceRequestStatus = exports.FollowUpReportRequestStatus = FollowUpReportRequestStatus = {}));
41
+ let FollowUpReportRequests = class FollowUpReportRequests extends BaseModel_1.BaseModel {
42
+ };
43
+ exports.FollowUpReportRequests = FollowUpReportRequests;
44
+ exports.MaintenanceRequests = FollowUpReportRequests;
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], FollowUpReportRequests.prototype, "req_user_department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], FollowUpReportRequests.prototype, "req_user_section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], FollowUpReportRequests.prototype, "service_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], FollowUpReportRequests.prototype, "sub_service_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ nullable: false }),
63
+ __metadata("design:type", Number)
64
+ ], FollowUpReportRequests.prototype, "user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
67
+ __metadata("design:type", String)
68
+ ], FollowUpReportRequests.prototype, "sent_by", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
71
+ __metadata("design:type", Date)
72
+ ], FollowUpReportRequests.prototype, "letter_date", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
75
+ __metadata("design:type", String)
76
+ ], FollowUpReportRequests.prototype, "subject", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({
79
+ type: 'enum',
80
+ enum: FollowUpReportSubjectClassification,
81
+ enumName: 'maintenance_subject_classification_en',
82
+ nullable: false,
83
+ }),
84
+ __metadata("design:type", String)
85
+ ], FollowUpReportRequests.prototype, "subject_classification", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
88
+ __metadata("design:type", String)
89
+ ], FollowUpReportRequests.prototype, "topic", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({
92
+ type: 'enum',
93
+ enum: FollowUpReportConcernedDepartment,
94
+ enumName: 'maintenance_concerned_department_en',
95
+ nullable: false,
96
+ }),
97
+ __metadata("design:type", String)
98
+ ], FollowUpReportRequests.prototype, "concerned_department", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
101
+ __metadata("design:type", Date)
102
+ ], FollowUpReportRequests.prototype, "date_from", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
105
+ __metadata("design:type", Date)
106
+ ], FollowUpReportRequests.prototype, "date_to", void 0);
107
+ __decorate([
108
+ (0, typeorm_1.Column)({ type: 'date', nullable: false, default: () => 'CURRENT_DATE' }),
109
+ __metadata("design:type", Date)
110
+ ], FollowUpReportRequests.prototype, "request_submission_date", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.Column)({
113
+ type: 'enum',
114
+ enum: FollowUpReportRequestStatus,
115
+ default: FollowUpReportRequestStatus.PENDING,
116
+ nullable: false,
117
+ }),
118
+ __metadata("design:type", String)
119
+ ], FollowUpReportRequests.prototype, "status", void 0);
120
+ __decorate([
121
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
122
+ __metadata("design:type", Object)
123
+ ], FollowUpReportRequests.prototype, "workflow_execution_id", void 0);
124
+ exports.MaintenanceRequests = exports.FollowUpReportRequests = FollowUpReportRequests = __decorate([
125
+ (0, typeorm_1.Entity)({ name: 'followup_report_requests' })
126
+ ], FollowUpReportRequests);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum FollowUpReportWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class FollowUpReportWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: FollowUpReportWorkFlowStatus;
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ }
18
+ export { FollowUpReportWorkFlow as MaintenanceWorkFlow };
19
+ export { FollowUpReportWorkFlowStatus as MaintenanceWorkFlowStatus };
@@ -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.MaintenanceWorkFlowStatus = exports.MaintenanceWorkFlow = exports.FollowUpReportWorkFlow = exports.FollowUpReportWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var FollowUpReportWorkFlowStatus;
16
+ (function (FollowUpReportWorkFlowStatus) {
17
+ FollowUpReportWorkFlowStatus["COMPLETED"] = "Completed";
18
+ FollowUpReportWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ FollowUpReportWorkFlowStatus["PENDING"] = "Pending";
20
+ })(FollowUpReportWorkFlowStatus || (exports.MaintenanceWorkFlowStatus = exports.FollowUpReportWorkFlowStatus = FollowUpReportWorkFlowStatus = {}));
21
+ let FollowUpReportWorkFlow = class FollowUpReportWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.FollowUpReportWorkFlow = FollowUpReportWorkFlow;
24
+ exports.MaintenanceWorkFlow = FollowUpReportWorkFlow;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], FollowUpReportWorkFlow.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], FollowUpReportWorkFlow.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], FollowUpReportWorkFlow.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
39
+ __metadata("design:type", String)
40
+ ], FollowUpReportWorkFlow.prototype, "content", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({
43
+ type: 'enum',
44
+ enum: FollowUpReportWorkFlowStatus,
45
+ default: FollowUpReportWorkFlowStatus.NOT_YET_STARTED,
46
+ nullable: false,
47
+ }),
48
+ __metadata("design:type", String)
49
+ ], FollowUpReportWorkFlow.prototype, "status", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], FollowUpReportWorkFlow.prototype, "user_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], FollowUpReportWorkFlow.prototype, "role_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], FollowUpReportWorkFlow.prototype, "department_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], FollowUpReportWorkFlow.prototype, "section_id", void 0);
66
+ exports.MaintenanceWorkFlow = exports.FollowUpReportWorkFlow = FollowUpReportWorkFlow = __decorate([
67
+ (0, typeorm_1.Entity)({ name: 'followup_report_workflows' })
68
+ ], FollowUpReportWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.211",
3
+ "version": "2.3.212",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {