@platform-modules/civil-aviation-authority 2.3.207 → 2.3.208

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 +11 -1
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.js +6 -0
  5. package/dist/models/MaintenanceExternalStationsApprovalModel.d.ts +22 -0
  6. package/dist/models/MaintenanceExternalStationsApprovalModel.js +84 -0
  7. package/dist/models/MaintenanceExternalStationsAttachmentModel.d.ts +11 -0
  8. package/dist/models/MaintenanceExternalStationsAttachmentModel.js +52 -0
  9. package/dist/models/MaintenanceExternalStationsChatModel.d.ts +18 -0
  10. package/dist/models/MaintenanceExternalStationsChatModel.js +65 -0
  11. package/dist/models/MaintenanceExternalStationsRequestModel.d.ts +49 -0
  12. package/dist/models/MaintenanceExternalStationsRequestModel.js +147 -0
  13. package/dist/models/MaintenanceExternalStationsWorkflowModel.d.ts +17 -0
  14. package/dist/models/MaintenanceExternalStationsWorkflowModel.js +67 -0
  15. package/package.json +1 -1
  16. package/src/data-source.ts +11 -1
  17. package/src/index.ts +8 -1
  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/HrServiceRequestModel.ts +193 -193
  30. package/src/models/MaintenanceExternalStationsApprovalModel.ts +56 -0
  31. package/src/models/MaintenanceExternalStationsAttachmentModel.ts +29 -0
  32. package/src/models/MaintenanceExternalStationsChatModel.ts +42 -0
  33. package/src/models/MaintenanceExternalStationsRequestModel.ts +113 -0
  34. package/src/models/MaintenanceExternalStationsWorkflowModel.ts +43 -0
  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
@@ -206,6 +206,11 @@ const WorkingHoursExtensionChatModel_1 = require("./models/WorkingHoursExtension
206
206
  const WorkingHoursExtensionAttachmentModel_1 = require("./models/WorkingHoursExtensionAttachmentModel");
207
207
  const RequestATenderRequestModel_1 = require("./models/RequestATenderRequestModel");
208
208
  const RequestTenderAnalysisRequestModel_1 = require("./models/RequestTenderAnalysisRequestModel");
209
+ const MaintenanceExternalStationsRequestModel_1 = require("./models/MaintenanceExternalStationsRequestModel");
210
+ const MaintenanceExternalStationsApprovalModel_1 = require("./models/MaintenanceExternalStationsApprovalModel");
211
+ const MaintenanceExternalStationsAttachmentModel_1 = require("./models/MaintenanceExternalStationsAttachmentModel");
212
+ const MaintenanceExternalStationsChatModel_1 = require("./models/MaintenanceExternalStationsChatModel");
213
+ const MaintenanceExternalStationsWorkflowModel_1 = require("./models/MaintenanceExternalStationsWorkflowModel");
209
214
  exports.AppDataSource = new typeorm_1.DataSource({
210
215
  type: 'postgres',
211
216
  host: process.env.DB_HOST || 'localhost',
@@ -415,6 +420,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
415
420
  WorkingHoursExtensionChatModel_1.WorkingHoursExtensionChat,
416
421
  WorkingHoursExtensionAttachmentModel_1.WorkingHoursExtensionAttachment,
417
422
  RequestATenderRequestModel_1.RequestATenderRequest,
418
- RequestTenderAnalysisRequestModel_1.RequestTenderAnalysisRequest
423
+ RequestTenderAnalysisRequestModel_1.RequestTenderAnalysisRequest,
424
+ MaintenanceExternalStationsRequestModel_1.MaintenanceExternalStationsRequests,
425
+ MaintenanceExternalStationsApprovalModel_1.MaintenanceExternalStationsApprovalDetails,
426
+ MaintenanceExternalStationsAttachmentModel_1.MaintenanceExternalStationsAttachment,
427
+ MaintenanceExternalStationsChatModel_1.MaintenanceExternalStationsChat,
428
+ MaintenanceExternalStationsWorkflowModel_1.MaintenanceExternalStationsWorkFlow,
419
429
  ],
420
430
  });
package/dist/index.d.ts CHANGED
@@ -309,6 +309,11 @@ export * from './models/HousingContractCancelWorkflowModel';
309
309
  export * from './models/HousingContractCancelApprovalModel';
310
310
  export * from './models/HousingContractCancelChatModel';
311
311
  export * from './models/HousingContractCancelAttachmentModel';
312
+ export * from './models/MaintenanceExternalStationsRequestModel';
313
+ export * from './models/MaintenanceExternalStationsApprovalModel';
314
+ export * from './models/MaintenanceExternalStationsAttachmentModel';
315
+ export * from './models/MaintenanceExternalStationsChatModel';
316
+ export * from './models/MaintenanceExternalStationsWorkflowModel';
312
317
  export * from './models/LegalConsultationRequestModel';
313
318
  export * from './models/LegalConsultationWorkflowModel';
314
319
  export * from './models/LegalConsultationApprovalModel';
package/dist/index.js CHANGED
@@ -471,6 +471,12 @@ __exportStar(require("./models/HousingContractCancelWorkflowModel"), exports);
471
471
  __exportStar(require("./models/HousingContractCancelApprovalModel"), exports);
472
472
  __exportStar(require("./models/HousingContractCancelChatModel"), exports);
473
473
  __exportStar(require("./models/HousingContractCancelAttachmentModel"), exports);
474
+ // Maintenance External Stations (Asset Affairs)
475
+ __exportStar(require("./models/MaintenanceExternalStationsRequestModel"), exports);
476
+ __exportStar(require("./models/MaintenanceExternalStationsApprovalModel"), exports);
477
+ __exportStar(require("./models/MaintenanceExternalStationsAttachmentModel"), exports);
478
+ __exportStar(require("./models/MaintenanceExternalStationsChatModel"), exports);
479
+ __exportStar(require("./models/MaintenanceExternalStationsWorkflowModel"), exports);
474
480
  // Legal Consultation — Review of Administrative Decisions
475
481
  __exportStar(require("./models/LegalConsultationRequestModel"), exports);
476
482
  __exportStar(require("./models/LegalConsultationWorkflowModel"), exports);
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MaintenanceExternalStationsApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class MaintenanceExternalStationsApprovalDetails 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: MaintenanceExternalStationsApprovalStatus;
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.MaintenanceExternalStationsApprovalDetails = exports.MaintenanceExternalStationsApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MaintenanceExternalStationsApprovalStatus;
16
+ (function (MaintenanceExternalStationsApprovalStatus) {
17
+ MaintenanceExternalStationsApprovalStatus["PENDING"] = "Pending";
18
+ MaintenanceExternalStationsApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ MaintenanceExternalStationsApprovalStatus["APPROVED"] = "Approved";
20
+ MaintenanceExternalStationsApprovalStatus["REJECTED"] = "Rejected";
21
+ })(MaintenanceExternalStationsApprovalStatus || (exports.MaintenanceExternalStationsApprovalStatus = MaintenanceExternalStationsApprovalStatus = {}));
22
+ let MaintenanceExternalStationsApprovalDetails = class MaintenanceExternalStationsApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.MaintenanceExternalStationsApprovalDetails = MaintenanceExternalStationsApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MaintenanceExternalStationsApprovalDetails.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
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: 'enum',
72
+ enum: MaintenanceExternalStationsApprovalStatus,
73
+ default: MaintenanceExternalStationsApprovalStatus.PENDING,
74
+ nullable: false,
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "approval_status", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], MaintenanceExternalStationsApprovalDetails.prototype, "is_allowed", void 0);
82
+ exports.MaintenanceExternalStationsApprovalDetails = MaintenanceExternalStationsApprovalDetails = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'maintenance_external_stations_approvals' })
84
+ ], MaintenanceExternalStationsApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class MaintenanceExternalStationsAttachment 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.MaintenanceExternalStationsAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let MaintenanceExternalStationsAttachment = class MaintenanceExternalStationsAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.MaintenanceExternalStationsAttachment = MaintenanceExternalStationsAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], MaintenanceExternalStationsAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], MaintenanceExternalStationsAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], MaintenanceExternalStationsAttachment.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
+ ], MaintenanceExternalStationsAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", String)
37
+ ], MaintenanceExternalStationsAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], MaintenanceExternalStationsAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], MaintenanceExternalStationsAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], MaintenanceExternalStationsAttachment.prototype, "chat_id", void 0);
50
+ exports.MaintenanceExternalStationsAttachment = MaintenanceExternalStationsAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'maintenance_external_stations_attachments' })
52
+ ], MaintenanceExternalStationsAttachment);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MaintenanceExternalStationsMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class MaintenanceExternalStationsChat 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: MaintenanceExternalStationsMessageType;
17
+ status: string;
18
+ }
@@ -0,0 +1,65 @@
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.MaintenanceExternalStationsChat = exports.MaintenanceExternalStationsMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MaintenanceExternalStationsMessageType;
16
+ (function (MaintenanceExternalStationsMessageType) {
17
+ MaintenanceExternalStationsMessageType["TEXT"] = "text";
18
+ MaintenanceExternalStationsMessageType["IMAGE"] = "image";
19
+ MaintenanceExternalStationsMessageType["VIDEO"] = "video";
20
+ MaintenanceExternalStationsMessageType["FILE"] = "file";
21
+ MaintenanceExternalStationsMessageType["LINK"] = "link";
22
+ })(MaintenanceExternalStationsMessageType || (exports.MaintenanceExternalStationsMessageType = MaintenanceExternalStationsMessageType = {}));
23
+ let MaintenanceExternalStationsChat = class MaintenanceExternalStationsChat extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.MaintenanceExternalStationsChat = MaintenanceExternalStationsChat;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
28
+ __metadata("design:type", Number)
29
+ ], MaintenanceExternalStationsChat.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], MaintenanceExternalStationsChat.prototype, "service_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], MaintenanceExternalStationsChat.prototype, "sub_service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], MaintenanceExternalStationsChat.prototype, "user_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
44
+ __metadata("design:type", Number)
45
+ ], MaintenanceExternalStationsChat.prototype, "role_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], MaintenanceExternalStationsChat.prototype, "message", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({
52
+ type: 'enum',
53
+ enum: MaintenanceExternalStationsMessageType,
54
+ default: MaintenanceExternalStationsMessageType.TEXT,
55
+ nullable: false,
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], MaintenanceExternalStationsChat.prototype, "messageType", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], MaintenanceExternalStationsChat.prototype, "status", void 0);
63
+ exports.MaintenanceExternalStationsChat = MaintenanceExternalStationsChat = __decorate([
64
+ (0, typeorm_1.Entity)({ name: 'maintenance_external_stations_chats' })
65
+ ], MaintenanceExternalStationsChat);
@@ -0,0 +1,49 @@
1
+ import { BaseModel } from './BaseModel';
2
+ /** Location / use category for the external station context */
3
+ export declare enum MaintenanceExternalStationsStationCategory {
4
+ WORKSHOP = "Workshop",
5
+ TRAINING = "Training",
6
+ DUTY_MISSION = "Duty Mission",
7
+ ASSIGNMENT = "Assignment",
8
+ OTHER = "Other"
9
+ }
10
+ export declare enum MaintenanceExternalStationsIssueType {
11
+ EQUIPMENT = "Equipment",
12
+ FACILITY = "Facility",
13
+ INFRASTRUCTURE = "Infrastructure",
14
+ OTHER = "Other"
15
+ }
16
+ export declare enum MaintenanceExternalStationsUrgencyLevel {
17
+ LOW = "Low",
18
+ MEDIUM = "Medium",
19
+ HIGH = "High",
20
+ CRITICAL = "Critical"
21
+ }
22
+ export declare enum MaintenanceExternalStationsRequestStatus {
23
+ PENDING = "Pending",
24
+ ASSIGNED = "Assigned",
25
+ IN_PROGRESS = "In Progress",
26
+ APPROVED = "Approved",
27
+ REJECTED = "Rejected"
28
+ }
29
+ export declare class MaintenanceExternalStationsRequests extends BaseModel {
30
+ req_user_department_id: number | null;
31
+ req_user_section_id: number | null;
32
+ service_id: number;
33
+ sub_service_id: number;
34
+ user_id: number;
35
+ external_station_name_or_location: string;
36
+ station_category: MaintenanceExternalStationsStationCategory;
37
+ station_category_other_specify: string | null;
38
+ type_of_issue: MaintenanceExternalStationsIssueType;
39
+ type_of_issue_other_specify: string | null;
40
+ detailed_description: string;
41
+ urgency_level: MaintenanceExternalStationsUrgencyLevel;
42
+ date_of_issue_occurred: Date;
43
+ contact_person_name: string | null;
44
+ contact_person_number: string | null;
45
+ contact_person_designation: string | null;
46
+ request_submission_date: Date;
47
+ status: MaintenanceExternalStationsRequestStatus;
48
+ workflow_execution_id: string | null;
49
+ }
@@ -0,0 +1,147 @@
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.MaintenanceExternalStationsRequests = exports.MaintenanceExternalStationsRequestStatus = exports.MaintenanceExternalStationsUrgencyLevel = exports.MaintenanceExternalStationsIssueType = exports.MaintenanceExternalStationsStationCategory = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ /** Location / use category for the external station context */
16
+ var MaintenanceExternalStationsStationCategory;
17
+ (function (MaintenanceExternalStationsStationCategory) {
18
+ MaintenanceExternalStationsStationCategory["WORKSHOP"] = "Workshop";
19
+ MaintenanceExternalStationsStationCategory["TRAINING"] = "Training";
20
+ MaintenanceExternalStationsStationCategory["DUTY_MISSION"] = "Duty Mission";
21
+ MaintenanceExternalStationsStationCategory["ASSIGNMENT"] = "Assignment";
22
+ MaintenanceExternalStationsStationCategory["OTHER"] = "Other";
23
+ })(MaintenanceExternalStationsStationCategory || (exports.MaintenanceExternalStationsStationCategory = MaintenanceExternalStationsStationCategory = {}));
24
+ var MaintenanceExternalStationsIssueType;
25
+ (function (MaintenanceExternalStationsIssueType) {
26
+ MaintenanceExternalStationsIssueType["EQUIPMENT"] = "Equipment";
27
+ MaintenanceExternalStationsIssueType["FACILITY"] = "Facility";
28
+ MaintenanceExternalStationsIssueType["INFRASTRUCTURE"] = "Infrastructure";
29
+ MaintenanceExternalStationsIssueType["OTHER"] = "Other";
30
+ })(MaintenanceExternalStationsIssueType || (exports.MaintenanceExternalStationsIssueType = MaintenanceExternalStationsIssueType = {}));
31
+ var MaintenanceExternalStationsUrgencyLevel;
32
+ (function (MaintenanceExternalStationsUrgencyLevel) {
33
+ MaintenanceExternalStationsUrgencyLevel["LOW"] = "Low";
34
+ MaintenanceExternalStationsUrgencyLevel["MEDIUM"] = "Medium";
35
+ MaintenanceExternalStationsUrgencyLevel["HIGH"] = "High";
36
+ MaintenanceExternalStationsUrgencyLevel["CRITICAL"] = "Critical";
37
+ })(MaintenanceExternalStationsUrgencyLevel || (exports.MaintenanceExternalStationsUrgencyLevel = MaintenanceExternalStationsUrgencyLevel = {}));
38
+ var MaintenanceExternalStationsRequestStatus;
39
+ (function (MaintenanceExternalStationsRequestStatus) {
40
+ MaintenanceExternalStationsRequestStatus["PENDING"] = "Pending";
41
+ MaintenanceExternalStationsRequestStatus["ASSIGNED"] = "Assigned";
42
+ MaintenanceExternalStationsRequestStatus["IN_PROGRESS"] = "In Progress";
43
+ MaintenanceExternalStationsRequestStatus["APPROVED"] = "Approved";
44
+ MaintenanceExternalStationsRequestStatus["REJECTED"] = "Rejected";
45
+ })(MaintenanceExternalStationsRequestStatus || (exports.MaintenanceExternalStationsRequestStatus = MaintenanceExternalStationsRequestStatus = {}));
46
+ let MaintenanceExternalStationsRequests = class MaintenanceExternalStationsRequests extends BaseModel_1.BaseModel {
47
+ };
48
+ exports.MaintenanceExternalStationsRequests = MaintenanceExternalStationsRequests;
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MaintenanceExternalStationsRequests.prototype, "req_user_department_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MaintenanceExternalStationsRequests.prototype, "req_user_section_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], MaintenanceExternalStationsRequests.prototype, "service_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ nullable: true }),
63
+ __metadata("design:type", Number)
64
+ ], MaintenanceExternalStationsRequests.prototype, "sub_service_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ nullable: false }),
67
+ __metadata("design:type", Number)
68
+ ], MaintenanceExternalStationsRequests.prototype, "user_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
71
+ __metadata("design:type", String)
72
+ ], MaintenanceExternalStationsRequests.prototype, "external_station_name_or_location", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({
75
+ type: 'enum',
76
+ enum: MaintenanceExternalStationsStationCategory,
77
+ enumName: 'maintenance_external_stations_station_category_en',
78
+ nullable: false,
79
+ }),
80
+ __metadata("design:type", String)
81
+ ], MaintenanceExternalStationsRequests.prototype, "station_category", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], MaintenanceExternalStationsRequests.prototype, "station_category_other_specify", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({
88
+ type: 'enum',
89
+ enum: MaintenanceExternalStationsIssueType,
90
+ enumName: 'maintenance_external_stations_issue_type_en',
91
+ nullable: false,
92
+ }),
93
+ __metadata("design:type", String)
94
+ ], MaintenanceExternalStationsRequests.prototype, "type_of_issue", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
97
+ __metadata("design:type", Object)
98
+ ], MaintenanceExternalStationsRequests.prototype, "type_of_issue_other_specify", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
101
+ __metadata("design:type", String)
102
+ ], MaintenanceExternalStationsRequests.prototype, "detailed_description", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({
105
+ type: 'enum',
106
+ enum: MaintenanceExternalStationsUrgencyLevel,
107
+ enumName: 'maintenance_external_stations_urgency_en',
108
+ nullable: false,
109
+ }),
110
+ __metadata("design:type", String)
111
+ ], MaintenanceExternalStationsRequests.prototype, "urgency_level", void 0);
112
+ __decorate([
113
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
114
+ __metadata("design:type", Date)
115
+ ], MaintenanceExternalStationsRequests.prototype, "date_of_issue_occurred", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
118
+ __metadata("design:type", Object)
119
+ ], MaintenanceExternalStationsRequests.prototype, "contact_person_name", void 0);
120
+ __decorate([
121
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
122
+ __metadata("design:type", Object)
123
+ ], MaintenanceExternalStationsRequests.prototype, "contact_person_number", void 0);
124
+ __decorate([
125
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
126
+ __metadata("design:type", Object)
127
+ ], MaintenanceExternalStationsRequests.prototype, "contact_person_designation", void 0);
128
+ __decorate([
129
+ (0, typeorm_1.Column)({ type: 'date', nullable: false, default: () => 'CURRENT_DATE' }),
130
+ __metadata("design:type", Date)
131
+ ], MaintenanceExternalStationsRequests.prototype, "request_submission_date", void 0);
132
+ __decorate([
133
+ (0, typeorm_1.Column)({
134
+ type: 'enum',
135
+ enum: MaintenanceExternalStationsRequestStatus,
136
+ default: MaintenanceExternalStationsRequestStatus.PENDING,
137
+ nullable: false,
138
+ }),
139
+ __metadata("design:type", String)
140
+ ], MaintenanceExternalStationsRequests.prototype, "status", void 0);
141
+ __decorate([
142
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
143
+ __metadata("design:type", Object)
144
+ ], MaintenanceExternalStationsRequests.prototype, "workflow_execution_id", void 0);
145
+ exports.MaintenanceExternalStationsRequests = MaintenanceExternalStationsRequests = __decorate([
146
+ (0, typeorm_1.Entity)({ name: 'maintenance_external_stations_requests' })
147
+ ], MaintenanceExternalStationsRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MaintenanceExternalStationsWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class MaintenanceExternalStationsWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: MaintenanceExternalStationsWorkFlowStatus;
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.MaintenanceExternalStationsWorkFlow = exports.MaintenanceExternalStationsWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MaintenanceExternalStationsWorkFlowStatus;
16
+ (function (MaintenanceExternalStationsWorkFlowStatus) {
17
+ MaintenanceExternalStationsWorkFlowStatus["COMPLETED"] = "Completed";
18
+ MaintenanceExternalStationsWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ MaintenanceExternalStationsWorkFlowStatus["PENDING"] = "Pending";
20
+ })(MaintenanceExternalStationsWorkFlowStatus || (exports.MaintenanceExternalStationsWorkFlowStatus = MaintenanceExternalStationsWorkFlowStatus = {}));
21
+ let MaintenanceExternalStationsWorkFlow = class MaintenanceExternalStationsWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.MaintenanceExternalStationsWorkFlow = MaintenanceExternalStationsWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], MaintenanceExternalStationsWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], MaintenanceExternalStationsWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], MaintenanceExternalStationsWorkFlow.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
+ ], MaintenanceExternalStationsWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ type: 'enum',
43
+ enum: MaintenanceExternalStationsWorkFlowStatus,
44
+ default: MaintenanceExternalStationsWorkFlowStatus.NOT_YET_STARTED,
45
+ nullable: false,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], MaintenanceExternalStationsWorkFlow.prototype, "status", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MaintenanceExternalStationsWorkFlow.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MaintenanceExternalStationsWorkFlow.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MaintenanceExternalStationsWorkFlow.prototype, "department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MaintenanceExternalStationsWorkFlow.prototype, "section_id", void 0);
65
+ exports.MaintenanceExternalStationsWorkFlow = MaintenanceExternalStationsWorkFlow = __decorate([
66
+ (0, typeorm_1.Entity)({ name: 'maintenance_external_stations_workflows' })
67
+ ], MaintenanceExternalStationsWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.207",
3
+ "version": "2.3.208",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {