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

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 (56) hide show
  1. package/.env +10 -10
  2. package/dist/data-source.js +10 -0
  3. package/dist/index.d.ts +7 -0
  4. package/dist/index.js +8 -0
  5. package/dist/models/ITApprovalSettings.d.ts +7 -0
  6. package/dist/models/ITApprovalSettings.js +40 -0
  7. package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
  8. package/dist/models/ITServicesTypesMuscatModel.js +34 -0
  9. package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
  10. package/dist/models/ITServicesTypesSalalahModel.js +34 -0
  11. package/dist/models/MediaPublicationsApprovalModel.d.ts +22 -0
  12. package/dist/models/MediaPublicationsApprovalModel.js +84 -0
  13. package/dist/models/MediaPublicationsAttachmentModel.d.ts +11 -0
  14. package/dist/models/MediaPublicationsAttachmentModel.js +52 -0
  15. package/dist/models/MediaPublicationsChatModel.d.ts +18 -0
  16. package/dist/models/MediaPublicationsChatModel.js +65 -0
  17. package/dist/models/MediaPublicationsRequestModel.d.ts +40 -0
  18. package/dist/models/MediaPublicationsRequestModel.js +138 -0
  19. package/dist/models/MediaPublicationsWorkflowModel.d.ts +17 -0
  20. package/dist/models/MediaPublicationsWorkflowModel.js +67 -0
  21. package/dist/models/ServiceSlaApprovalModel.d.ts +19 -0
  22. package/dist/models/ServiceSlaApprovalModel.js +69 -0
  23. package/dist/models/SlaConfigModel.d.ts +22 -0
  24. package/dist/models/SlaConfigModel.js +67 -0
  25. package/dist/models/Workflows.d.ts +9 -0
  26. package/dist/models/Workflows.js +31 -0
  27. package/package.json +1 -1
  28. package/src/data-source.ts +10 -0
  29. package/src/index.ts +11 -1
  30. package/src/models/AccommodationApprovalModel.ts +8 -8
  31. package/src/models/AccommodationRequestModel.ts +8 -8
  32. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  33. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  34. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  35. package/src/models/CAAServices.ts +33 -33
  36. package/src/models/CAASubServices.ts +33 -33
  37. package/src/models/CAIRatingMasterModel.ts +39 -39
  38. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  39. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  40. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  41. package/src/models/HrServiceRequestModel.ts +193 -193
  42. package/src/models/MediaPublicationsApprovalModel.ts +56 -0
  43. package/src/models/MediaPublicationsAttachmentModel.ts +29 -0
  44. package/src/models/MediaPublicationsChatModel.ts +42 -0
  45. package/src/models/MediaPublicationsRequestModel.ts +102 -0
  46. package/src/models/MediaPublicationsWorkflowModel.ts +43 -0
  47. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  48. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  49. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  50. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  51. package/src/models/PromotionRequestModel.ts +11 -11
  52. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  53. package/src/models/ServiceSlaApprovalModel.ts +44 -0
  54. package/src/models/SkillsEnhancementRequestModel.ts +17 -17
  55. package/src/models/SlaConfigModel.ts +44 -0
  56. package/src/models/UserSkillModel.ts +56 -56
@@ -0,0 +1,138 @@
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.MediaPublicationsRequests = exports.MediaPublicationsRequestStatus = exports.MediaPublicationsEventType = exports.MediaPublicationsRequestType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MediaPublicationsRequestType;
16
+ (function (MediaPublicationsRequestType) {
17
+ MediaPublicationsRequestType["NORMAL"] = "Normal";
18
+ MediaPublicationsRequestType["URGENT"] = "Urgent";
19
+ })(MediaPublicationsRequestType || (exports.MediaPublicationsRequestType = MediaPublicationsRequestType = {}));
20
+ var MediaPublicationsEventType;
21
+ (function (MediaPublicationsEventType) {
22
+ MediaPublicationsEventType["LOCAL_INTERNAL"] = "Local Internal Event";
23
+ MediaPublicationsEventType["LOCAL_EXTERNAL"] = "Local External Event";
24
+ MediaPublicationsEventType["REGIONAL_OR_INTERNATIONAL"] = "Regional or International Event";
25
+ })(MediaPublicationsEventType || (exports.MediaPublicationsEventType = MediaPublicationsEventType = {}));
26
+ var MediaPublicationsRequestStatus;
27
+ (function (MediaPublicationsRequestStatus) {
28
+ MediaPublicationsRequestStatus["PENDING"] = "Pending";
29
+ MediaPublicationsRequestStatus["ASSIGNED"] = "Assigned";
30
+ MediaPublicationsRequestStatus["IN_PROGRESS"] = "In Progress";
31
+ MediaPublicationsRequestStatus["APPROVED"] = "Approved";
32
+ MediaPublicationsRequestStatus["REJECTED"] = "Rejected";
33
+ })(MediaPublicationsRequestStatus || (exports.MediaPublicationsRequestStatus = MediaPublicationsRequestStatus = {}));
34
+ let MediaPublicationsRequests = class MediaPublicationsRequests extends BaseModel_1.BaseModel {
35
+ };
36
+ exports.MediaPublicationsRequests = MediaPublicationsRequests;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
39
+ __metadata("design:type", Object)
40
+ ], MediaPublicationsRequests.prototype, "req_user_department_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], MediaPublicationsRequests.prototype, "req_user_section_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], MediaPublicationsRequests.prototype, "service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ nullable: true }),
51
+ __metadata("design:type", Number)
52
+ ], MediaPublicationsRequests.prototype, "sub_service_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ nullable: false }),
55
+ __metadata("design:type", Number)
56
+ ], MediaPublicationsRequests.prototype, "user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'date', nullable: false, default: () => 'CURRENT_DATE' }),
59
+ __metadata("design:type", Date)
60
+ ], MediaPublicationsRequests.prototype, "request_submission_date", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MediaPublicationsRequests.prototype, "requestor_name", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], MediaPublicationsRequests.prototype, "requestor_department", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], MediaPublicationsRequests.prototype, "requestor_designation", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], MediaPublicationsRequests.prototype, "contact_number", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'varchar', length: 320, nullable: true }),
79
+ __metadata("design:type", Object)
80
+ ], MediaPublicationsRequests.prototype, "email", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({
83
+ type: 'enum',
84
+ enum: MediaPublicationsRequestType,
85
+ enumName: 'media_publications_request_type_en',
86
+ nullable: false,
87
+ }),
88
+ __metadata("design:type", String)
89
+ ], MediaPublicationsRequests.prototype, "request_type", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: 'varchar', length: 120, nullable: false }),
92
+ __metadata("design:type", String)
93
+ ], MediaPublicationsRequests.prototype, "item_code", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
96
+ __metadata("design:type", String)
97
+ ], MediaPublicationsRequests.prototype, "description", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 14, scale: 2, nullable: false }),
100
+ __metadata("design:type", Number)
101
+ ], MediaPublicationsRequests.prototype, "cost", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
104
+ __metadata("design:type", Date)
105
+ ], MediaPublicationsRequests.prototype, "publication_date", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)({
108
+ type: 'enum',
109
+ enum: MediaPublicationsEventType,
110
+ enumName: 'media_publications_event_type_en',
111
+ nullable: false,
112
+ }),
113
+ __metadata("design:type", String)
114
+ ], MediaPublicationsRequests.prototype, "event_type", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
117
+ __metadata("design:type", Object)
118
+ ], MediaPublicationsRequests.prototype, "quantity", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 14, scale: 2, nullable: true }),
121
+ __metadata("design:type", Object)
122
+ ], MediaPublicationsRequests.prototype, "unit_price", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({
125
+ type: 'enum',
126
+ enum: MediaPublicationsRequestStatus,
127
+ default: MediaPublicationsRequestStatus.PENDING,
128
+ nullable: false,
129
+ }),
130
+ __metadata("design:type", String)
131
+ ], MediaPublicationsRequests.prototype, "status", void 0);
132
+ __decorate([
133
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
134
+ __metadata("design:type", Object)
135
+ ], MediaPublicationsRequests.prototype, "workflow_execution_id", void 0);
136
+ exports.MediaPublicationsRequests = MediaPublicationsRequests = __decorate([
137
+ (0, typeorm_1.Entity)({ name: 'media_publications_requests' })
138
+ ], MediaPublicationsRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MediaPublicationsWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class MediaPublicationsWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: MediaPublicationsWorkFlowStatus;
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.MediaPublicationsWorkFlow = exports.MediaPublicationsWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MediaPublicationsWorkFlowStatus;
16
+ (function (MediaPublicationsWorkFlowStatus) {
17
+ MediaPublicationsWorkFlowStatus["COMPLETED"] = "Completed";
18
+ MediaPublicationsWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ MediaPublicationsWorkFlowStatus["PENDING"] = "Pending";
20
+ })(MediaPublicationsWorkFlowStatus || (exports.MediaPublicationsWorkFlowStatus = MediaPublicationsWorkFlowStatus = {}));
21
+ let MediaPublicationsWorkFlow = class MediaPublicationsWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.MediaPublicationsWorkFlow = MediaPublicationsWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], MediaPublicationsWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], MediaPublicationsWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], MediaPublicationsWorkFlow.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
+ ], MediaPublicationsWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ type: 'enum',
43
+ enum: MediaPublicationsWorkFlowStatus,
44
+ default: MediaPublicationsWorkFlowStatus.NOT_YET_STARTED,
45
+ nullable: false,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], MediaPublicationsWorkFlow.prototype, "status", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MediaPublicationsWorkFlow.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MediaPublicationsWorkFlow.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MediaPublicationsWorkFlow.prototype, "department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MediaPublicationsWorkFlow.prototype, "section_id", void 0);
65
+ exports.MediaPublicationsWorkFlow = MediaPublicationsWorkFlow = __decorate([
66
+ (0, typeorm_1.Entity)({ name: 'media_publications_workflows' })
67
+ ], MediaPublicationsWorkFlow);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ /**
3
+ * Cross-service SLA tracking row for any microservice (HR, IT, Tender, …).
4
+ * Segregated by service_id, sub_service_id, request_id.
5
+ * source_approval_id = native approval row PK in the owning service (e.g. hr_service_approvals.id, vpn_approvals.id); not a DB FK.
6
+ */
7
+ export declare class ServiceSlaApproval extends BaseModel {
8
+ request_id: number;
9
+ source_approval_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ approval_status: string;
13
+ level: number;
14
+ approver_user_id: number | null;
15
+ approver_role_id: number | null;
16
+ department_id: number | null;
17
+ section_id: number | null;
18
+ constructor();
19
+ }
@@ -0,0 +1,69 @@
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.ServiceSlaApproval = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ /**
16
+ * Cross-service SLA tracking row for any microservice (HR, IT, Tender, …).
17
+ * Segregated by service_id, sub_service_id, request_id.
18
+ * source_approval_id = native approval row PK in the owning service (e.g. hr_service_approvals.id, vpn_approvals.id); not a DB FK.
19
+ */
20
+ let ServiceSlaApproval = class ServiceSlaApproval extends BaseModel_1.BaseModel {
21
+ constructor() {
22
+ super();
23
+ }
24
+ };
25
+ exports.ServiceSlaApproval = ServiceSlaApproval;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "int" }),
28
+ __metadata("design:type", Number)
29
+ ], ServiceSlaApproval.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "int" }),
32
+ __metadata("design:type", Number)
33
+ ], ServiceSlaApproval.prototype, "source_approval_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], ServiceSlaApproval.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], ServiceSlaApproval.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "varchar", length: 64 }),
44
+ __metadata("design:type", String)
45
+ ], ServiceSlaApproval.prototype, "approval_status", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "int" }),
48
+ __metadata("design:type", Number)
49
+ ], ServiceSlaApproval.prototype, "level", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], ServiceSlaApproval.prototype, "approver_user_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], ServiceSlaApproval.prototype, "approver_role_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], ServiceSlaApproval.prototype, "department_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], ServiceSlaApproval.prototype, "section_id", void 0);
66
+ exports.ServiceSlaApproval = ServiceSlaApproval = __decorate([
67
+ (0, typeorm_1.Entity)({ name: "sla_approval" }),
68
+ __metadata("design:paramtypes", [])
69
+ ], ServiceSlaApproval);
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ /** How SLA reminders are delivered (any microservice). */
3
+ export declare enum SlaDeliveryType {
4
+ EMAIL = "EMAIL",
5
+ NOTIFICATION = "NOTIFICATION",
6
+ BOTH = "BOTH"
7
+ }
8
+ /**
9
+ * Cross-service SLA rule: match tracking rows by service_id / sub_service_id, status[], days, optional level.
10
+ * Admin CRUD from User Service; central SLA cron reads this table.
11
+ */
12
+ export declare class SlaConfig extends BaseModel {
13
+ service_id: number | null;
14
+ sub_service_id: number | null;
15
+ status: string[];
16
+ type: SlaDeliveryType;
17
+ days: number;
18
+ content: string;
19
+ level: number | null;
20
+ is_active: boolean;
21
+ constructor();
22
+ }
@@ -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.SlaConfig = exports.SlaDeliveryType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ /** How SLA reminders are delivered (any microservice). */
16
+ var SlaDeliveryType;
17
+ (function (SlaDeliveryType) {
18
+ SlaDeliveryType["EMAIL"] = "EMAIL";
19
+ SlaDeliveryType["NOTIFICATION"] = "NOTIFICATION";
20
+ SlaDeliveryType["BOTH"] = "BOTH";
21
+ })(SlaDeliveryType || (exports.SlaDeliveryType = SlaDeliveryType = {}));
22
+ /**
23
+ * Cross-service SLA rule: match tracking rows by service_id / sub_service_id, status[], days, optional level.
24
+ * Admin CRUD from User Service; central SLA cron reads this table.
25
+ */
26
+ let SlaConfig = class SlaConfig extends BaseModel_1.BaseModel {
27
+ constructor() {
28
+ super();
29
+ }
30
+ };
31
+ exports.SlaConfig = SlaConfig;
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], SlaConfig.prototype, "service_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
38
+ __metadata("design:type", Object)
39
+ ], SlaConfig.prototype, "sub_service_id", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: "jsonb", default: () => "'[]'::jsonb" }),
42
+ __metadata("design:type", Array)
43
+ ], SlaConfig.prototype, "status", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, default: SlaDeliveryType.NOTIFICATION }),
46
+ __metadata("design:type", String)
47
+ ], SlaConfig.prototype, "type", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: "int", name: "days" }),
50
+ __metadata("design:type", Number)
51
+ ], SlaConfig.prototype, "days", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: "text" }),
54
+ __metadata("design:type", String)
55
+ ], SlaConfig.prototype, "content", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], SlaConfig.prototype, "level", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: "boolean", default: true }),
62
+ __metadata("design:type", Boolean)
63
+ ], SlaConfig.prototype, "is_active", void 0);
64
+ exports.SlaConfig = SlaConfig = __decorate([
65
+ (0, typeorm_1.Entity)({ name: "sla_config" }),
66
+ __metadata("design:paramtypes", [])
67
+ ], SlaConfig);
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class Workflows extends BaseModel {
3
+ name: string;
4
+ service_id: number;
5
+ sub_service_id: number;
6
+ request_for: string;
7
+ levels: number;
8
+ constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
9
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // import { Column, Entity, Unique } from "typeorm";
3
+ // import { BaseModel } from './BaseModel';
4
+ // @Entity({ name: 'workflows' })
5
+ // @Unique(['service_id', 'sub_service_id', 'request_for'])
6
+ // export class Workflows extends BaseModel {
7
+ // @Column({ type: 'varchar', length: 100, nullable: false })
8
+ // name: string;
9
+ // @Column({ type: 'bigint', nullable: false })
10
+ // service_id: number;
11
+ // @Column({ type: 'bigint', nullable: false })
12
+ // sub_service_id: number;
13
+ // @Column({ type: 'varchar', length: 20, nullable: false })
14
+ // request_for: string; // 'Self' | 'Behalf of' | 'Internal'
15
+ // @Column({ type: 'int', nullable: false })
16
+ // levels: number;
17
+ // constructor(
18
+ // name: string,
19
+ // service_id: number,
20
+ // sub_service_id: number,
21
+ // request_for: string,
22
+ // levels: number,
23
+ // ) {
24
+ // super();
25
+ // this.name = name;
26
+ // this.service_id = service_id;
27
+ // this.sub_service_id = sub_service_id;
28
+ // this.request_for = request_for;
29
+ // this.levels = levels;
30
+ // }
31
+ // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.209",
3
+ "version": "2.3.211",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -214,6 +214,11 @@ import { MaintenanceApprovalDetails } from './models/MaintenanceApprovalModel';
214
214
  import { MaintenanceAttachment } from './models/MaintenanceAttachmentModel';
215
215
  import { MaintenanceChat } from './models/MaintenanceChatModel';
216
216
  import { MaintenanceWorkFlow } from './models/MaintenanceWorkflowModel';
217
+ import { MediaPublicationsRequests } from './models/MediaPublicationsRequestModel';
218
+ import { MediaPublicationsApprovalDetails } from './models/MediaPublicationsApprovalModel';
219
+ import { MediaPublicationsAttachment } from './models/MediaPublicationsAttachmentModel';
220
+ import { MediaPublicationsChat } from './models/MediaPublicationsChatModel';
221
+ import { MediaPublicationsWorkFlow } from './models/MediaPublicationsWorkflowModel';
217
222
 
218
223
  export const AppDataSource = new DataSource({
219
224
  type: 'postgres',
@@ -435,5 +440,10 @@ export const AppDataSource = new DataSource({
435
440
  MaintenanceAttachment,
436
441
  MaintenanceChat,
437
442
  MaintenanceWorkFlow,
443
+ MediaPublicationsRequests,
444
+ MediaPublicationsApprovalDetails,
445
+ MediaPublicationsAttachment,
446
+ MediaPublicationsChat,
447
+ MediaPublicationsWorkFlow,
438
448
  ],
439
449
  });
package/src/index.ts CHANGED
@@ -386,6 +386,13 @@ export * from './models/MaintenanceAttachmentModel';
386
386
  export * from './models/MaintenanceChatModel';
387
387
  export * from './models/MaintenanceWorkflowModel';
388
388
 
389
+ // Media Publications (Asset Affairs)
390
+ export * from './models/MediaPublicationsRequestModel';
391
+ export * from './models/MediaPublicationsApprovalModel';
392
+ export * from './models/MediaPublicationsAttachmentModel';
393
+ export * from './models/MediaPublicationsChatModel';
394
+ export * from './models/MediaPublicationsWorkflowModel';
395
+
389
396
  // Legal Consultation — Review of Administrative Decisions
390
397
  export * from './models/LegalConsultationRequestModel';
391
398
  export * from './models/LegalConsultationWorkflowModel';
@@ -446,4 +453,7 @@ export * from './models/RespondToEnquiriesAttachmentModel';
446
453
  export {RespondToEnquiriesRequestAttachment} from './models/RespondToEnquiriesAttachmentModel';
447
454
  export * from './models/RequestATenderRequestModel';
448
455
  export * from './models/RequestTenderAnalysisRequestModel';
449
- export * from './models/ContractServiceRequestModel';
456
+ export * from './models/ContractServiceRequestModel';
457
+
458
+ export * from './models/SlaConfigModel';
459
+ export * from './models/ServiceSlaApprovalModel';
@@ -35,14 +35,14 @@ export class AccommodationApproval extends BaseModel {
35
35
  @Column({ type: 'int', nullable: true })
36
36
  department_id: number;
37
37
 
38
- @Column({ type: 'int', nullable: true })
39
- section_id: number;
40
-
41
- @Column({ type: 'boolean', nullable: false, default: true })
42
- is_allowed: boolean;
43
-
44
- @Column({ type: 'int', nullable: false })
45
- level: number;
38
+ @Column({ type: 'int', nullable: true })
39
+ section_id: number;
40
+
41
+ @Column({ type: 'boolean', nullable: false, default: true })
42
+ is_allowed: boolean;
43
+
44
+ @Column({ type: 'int', nullable: false })
45
+ level: number;
46
46
 
47
47
  @Column({
48
48
  type: 'enum',
@@ -134,14 +134,14 @@ export class AccommodationRequest extends BaseModel {
134
134
  @Column({ type: 'int', nullable: true })
135
135
  assigned_to_user_id: number | null;
136
136
 
137
- @Column({ type: 'text', nullable: true })
138
- approver_comment: string | null;
139
-
140
- @Column({ type: 'varchar', length: 255, nullable: true })
141
- accommodation_allocated: string | null;
142
-
143
- @Column({ type: 'int', nullable: true })
144
- approved_by: number | null;
137
+ @Column({ type: 'text', nullable: true })
138
+ approver_comment: string | null;
139
+
140
+ @Column({ type: 'varchar', length: 255, nullable: true })
141
+ accommodation_allocated: string | null;
142
+
143
+ @Column({ type: 'int', nullable: true })
144
+ approved_by: number | null;
145
145
 
146
146
  @Column({ type: 'date', nullable: true })
147
147
  approved_at: Date | null;