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

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.
@@ -216,6 +216,11 @@ const MaintenanceApprovalModel_1 = require("./models/MaintenanceApprovalModel");
216
216
  const MaintenanceAttachmentModel_1 = require("./models/MaintenanceAttachmentModel");
217
217
  const MaintenanceChatModel_1 = require("./models/MaintenanceChatModel");
218
218
  const MaintenanceWorkflowModel_1 = require("./models/MaintenanceWorkflowModel");
219
+ const MediaPublicationsRequestModel_1 = require("./models/MediaPublicationsRequestModel");
220
+ const MediaPublicationsApprovalModel_1 = require("./models/MediaPublicationsApprovalModel");
221
+ const MediaPublicationsAttachmentModel_1 = require("./models/MediaPublicationsAttachmentModel");
222
+ const MediaPublicationsChatModel_1 = require("./models/MediaPublicationsChatModel");
223
+ const MediaPublicationsWorkflowModel_1 = require("./models/MediaPublicationsWorkflowModel");
219
224
  exports.AppDataSource = new typeorm_1.DataSource({
220
225
  type: 'postgres',
221
226
  host: process.env.DB_HOST || 'localhost',
@@ -436,5 +441,10 @@ exports.AppDataSource = new typeorm_1.DataSource({
436
441
  MaintenanceAttachmentModel_1.MaintenanceAttachment,
437
442
  MaintenanceChatModel_1.MaintenanceChat,
438
443
  MaintenanceWorkflowModel_1.MaintenanceWorkFlow,
444
+ MediaPublicationsRequestModel_1.MediaPublicationsRequests,
445
+ MediaPublicationsApprovalModel_1.MediaPublicationsApprovalDetails,
446
+ MediaPublicationsAttachmentModel_1.MediaPublicationsAttachment,
447
+ MediaPublicationsChatModel_1.MediaPublicationsChat,
448
+ MediaPublicationsWorkflowModel_1.MediaPublicationsWorkFlow,
439
449
  ],
440
450
  });
package/dist/index.d.ts CHANGED
@@ -319,6 +319,11 @@ export * from './models/MaintenanceApprovalModel';
319
319
  export * from './models/MaintenanceAttachmentModel';
320
320
  export * from './models/MaintenanceChatModel';
321
321
  export * from './models/MaintenanceWorkflowModel';
322
+ export * from './models/MediaPublicationsRequestModel';
323
+ export * from './models/MediaPublicationsApprovalModel';
324
+ export * from './models/MediaPublicationsAttachmentModel';
325
+ export * from './models/MediaPublicationsChatModel';
326
+ export * from './models/MediaPublicationsWorkflowModel';
322
327
  export * from './models/LegalConsultationRequestModel';
323
328
  export * from './models/LegalConsultationWorkflowModel';
324
329
  export * from './models/LegalConsultationApprovalModel';
package/dist/index.js CHANGED
@@ -482,6 +482,12 @@ __exportStar(require("./models/MaintenanceApprovalModel"), exports);
482
482
  __exportStar(require("./models/MaintenanceAttachmentModel"), exports);
483
483
  __exportStar(require("./models/MaintenanceChatModel"), exports);
484
484
  __exportStar(require("./models/MaintenanceWorkflowModel"), exports);
485
+ // Media Publications (Asset Affairs)
486
+ __exportStar(require("./models/MediaPublicationsRequestModel"), exports);
487
+ __exportStar(require("./models/MediaPublicationsApprovalModel"), exports);
488
+ __exportStar(require("./models/MediaPublicationsAttachmentModel"), exports);
489
+ __exportStar(require("./models/MediaPublicationsChatModel"), exports);
490
+ __exportStar(require("./models/MediaPublicationsWorkflowModel"), exports);
485
491
  // Legal Consultation — Review of Administrative Decisions
486
492
  __exportStar(require("./models/LegalConsultationRequestModel"), exports);
487
493
  __exportStar(require("./models/LegalConsultationWorkflowModel"), exports);
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MediaPublicationsApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class MediaPublicationsApprovalDetails 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: MediaPublicationsApprovalStatus;
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.MediaPublicationsApprovalDetails = exports.MediaPublicationsApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MediaPublicationsApprovalStatus;
16
+ (function (MediaPublicationsApprovalStatus) {
17
+ MediaPublicationsApprovalStatus["PENDING"] = "Pending";
18
+ MediaPublicationsApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ MediaPublicationsApprovalStatus["APPROVED"] = "Approved";
20
+ MediaPublicationsApprovalStatus["REJECTED"] = "Rejected";
21
+ })(MediaPublicationsApprovalStatus || (exports.MediaPublicationsApprovalStatus = MediaPublicationsApprovalStatus = {}));
22
+ let MediaPublicationsApprovalDetails = class MediaPublicationsApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.MediaPublicationsApprovalDetails = MediaPublicationsApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], MediaPublicationsApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], MediaPublicationsApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], MediaPublicationsApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], MediaPublicationsApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], MediaPublicationsApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], MediaPublicationsApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MediaPublicationsApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MediaPublicationsApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MediaPublicationsApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MediaPublicationsApprovalDetails.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
+ ], MediaPublicationsApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: 'enum',
72
+ enum: MediaPublicationsApprovalStatus,
73
+ default: MediaPublicationsApprovalStatus.PENDING,
74
+ nullable: false,
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], MediaPublicationsApprovalDetails.prototype, "approval_status", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], MediaPublicationsApprovalDetails.prototype, "is_allowed", void 0);
82
+ exports.MediaPublicationsApprovalDetails = MediaPublicationsApprovalDetails = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'media_publications_approvals' })
84
+ ], MediaPublicationsApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class MediaPublicationsAttachment 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.MediaPublicationsAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let MediaPublicationsAttachment = class MediaPublicationsAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.MediaPublicationsAttachment = MediaPublicationsAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], MediaPublicationsAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], MediaPublicationsAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], MediaPublicationsAttachment.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
+ ], MediaPublicationsAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", String)
37
+ ], MediaPublicationsAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], MediaPublicationsAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], MediaPublicationsAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], MediaPublicationsAttachment.prototype, "chat_id", void 0);
50
+ exports.MediaPublicationsAttachment = MediaPublicationsAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'media_publications_attachments' })
52
+ ], MediaPublicationsAttachment);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MediaPublicationsMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class MediaPublicationsChat 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: MediaPublicationsMessageType;
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.MediaPublicationsChat = exports.MediaPublicationsMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MediaPublicationsMessageType;
16
+ (function (MediaPublicationsMessageType) {
17
+ MediaPublicationsMessageType["TEXT"] = "text";
18
+ MediaPublicationsMessageType["IMAGE"] = "image";
19
+ MediaPublicationsMessageType["VIDEO"] = "video";
20
+ MediaPublicationsMessageType["FILE"] = "file";
21
+ MediaPublicationsMessageType["LINK"] = "link";
22
+ })(MediaPublicationsMessageType || (exports.MediaPublicationsMessageType = MediaPublicationsMessageType = {}));
23
+ let MediaPublicationsChat = class MediaPublicationsChat extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.MediaPublicationsChat = MediaPublicationsChat;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
28
+ __metadata("design:type", Number)
29
+ ], MediaPublicationsChat.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], MediaPublicationsChat.prototype, "service_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], MediaPublicationsChat.prototype, "sub_service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
40
+ __metadata("design:type", Number)
41
+ ], MediaPublicationsChat.prototype, "user_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
44
+ __metadata("design:type", Number)
45
+ ], MediaPublicationsChat.prototype, "role_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], MediaPublicationsChat.prototype, "message", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({
52
+ type: 'enum',
53
+ enum: MediaPublicationsMessageType,
54
+ default: MediaPublicationsMessageType.TEXT,
55
+ nullable: false,
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], MediaPublicationsChat.prototype, "messageType", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], MediaPublicationsChat.prototype, "status", void 0);
63
+ exports.MediaPublicationsChat = MediaPublicationsChat = __decorate([
64
+ (0, typeorm_1.Entity)({ name: 'media_publications_chats' })
65
+ ], MediaPublicationsChat);
@@ -0,0 +1,40 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MediaPublicationsRequestType {
3
+ NORMAL = "Normal",
4
+ URGENT = "Urgent"
5
+ }
6
+ export declare enum MediaPublicationsEventType {
7
+ LOCAL_INTERNAL = "Local Internal Event",
8
+ LOCAL_EXTERNAL = "Local External Event",
9
+ REGIONAL_OR_INTERNATIONAL = "Regional or International Event"
10
+ }
11
+ export declare enum MediaPublicationsRequestStatus {
12
+ PENDING = "Pending",
13
+ ASSIGNED = "Assigned",
14
+ IN_PROGRESS = "In Progress",
15
+ APPROVED = "Approved",
16
+ REJECTED = "Rejected"
17
+ }
18
+ export declare class MediaPublicationsRequests extends BaseModel {
19
+ req_user_department_id: number | null;
20
+ req_user_section_id: number | null;
21
+ service_id: number;
22
+ sub_service_id: number;
23
+ user_id: number;
24
+ request_submission_date: Date;
25
+ requestor_name: string | null;
26
+ requestor_department: string | null;
27
+ requestor_designation: string | null;
28
+ contact_number: string | null;
29
+ email: string | null;
30
+ request_type: MediaPublicationsRequestType;
31
+ item_code: string;
32
+ description: string;
33
+ cost: number;
34
+ publication_date: Date;
35
+ event_type: MediaPublicationsEventType;
36
+ quantity: number | null;
37
+ unit_price: number | null;
38
+ status: MediaPublicationsRequestStatus;
39
+ workflow_execution_id: string | null;
40
+ }
@@ -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);
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.210",
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';
@@ -0,0 +1,56 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum MediaPublicationsApprovalStatus {
5
+ PENDING = 'Pending',
6
+ IN_PROGRESS = 'In Progress',
7
+ APPROVED = 'Approved',
8
+ REJECTED = 'Rejected',
9
+ }
10
+
11
+ @Entity({ name: 'media_publications_approvals' })
12
+ export class MediaPublicationsApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({
47
+ type: 'enum',
48
+ enum: MediaPublicationsApprovalStatus,
49
+ default: MediaPublicationsApprovalStatus.PENDING,
50
+ nullable: false,
51
+ })
52
+ approval_status: MediaPublicationsApprovalStatus;
53
+
54
+ @Column({ type: 'boolean', default: true, nullable: false })
55
+ is_allowed: boolean;
56
+ }
@@ -0,0 +1,29 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'media_publications_attachments' })
5
+ export class MediaPublicationsAttachment extends BaseModel {
6
+ @Column({ type: 'integer', nullable: false })
7
+ request_id: number;
8
+
9
+ @Column({ type: 'integer', nullable: true })
10
+ service_id: number | null;
11
+
12
+ @Column({ type: 'integer', nullable: true })
13
+ sub_service_id: number | null;
14
+
15
+ @Column({ type: 'varchar', length: 500, nullable: false })
16
+ file_url: string;
17
+
18
+ @Column({ type: 'varchar', length: 255, nullable: true })
19
+ file_name: string;
20
+
21
+ @Column({ type: 'varchar', length: 100, nullable: true })
22
+ file_type: string;
23
+
24
+ @Column({ type: 'bigint', nullable: true })
25
+ file_size: number | null;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ chat_id: number | null;
29
+ }
@@ -0,0 +1,42 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum MediaPublicationsMessageType {
5
+ TEXT = 'text',
6
+ IMAGE = 'image',
7
+ VIDEO = 'video',
8
+ FILE = 'file',
9
+ LINK = 'link',
10
+ }
11
+
12
+ @Entity({ name: 'media_publications_chats' })
13
+ export class MediaPublicationsChat extends BaseModel {
14
+ @Column({ type: 'integer', nullable: false })
15
+ request_id: number;
16
+
17
+ @Column({ type: 'integer', nullable: true })
18
+ service_id: number | null;
19
+
20
+ @Column({ type: 'integer', nullable: true })
21
+ sub_service_id: number | null;
22
+
23
+ @Column({ type: 'integer', nullable: false })
24
+ user_id: number;
25
+
26
+ @Column({ type: 'integer', nullable: true })
27
+ role_id: number;
28
+
29
+ @Column({ type: 'text', nullable: false })
30
+ message: string;
31
+
32
+ @Column({
33
+ type: 'enum',
34
+ enum: MediaPublicationsMessageType,
35
+ default: MediaPublicationsMessageType.TEXT,
36
+ nullable: false,
37
+ })
38
+ messageType: MediaPublicationsMessageType;
39
+
40
+ @Column({ type: 'text', nullable: true })
41
+ status: string;
42
+ }
@@ -0,0 +1,102 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum MediaPublicationsRequestType {
5
+ NORMAL = 'Normal',
6
+ URGENT = 'Urgent',
7
+ }
8
+
9
+ export enum MediaPublicationsEventType {
10
+ LOCAL_INTERNAL = 'Local Internal Event',
11
+ LOCAL_EXTERNAL = 'Local External Event',
12
+ REGIONAL_OR_INTERNATIONAL = 'Regional or International Event',
13
+ }
14
+
15
+ export enum MediaPublicationsRequestStatus {
16
+ PENDING = 'Pending',
17
+ ASSIGNED = 'Assigned',
18
+ IN_PROGRESS = 'In Progress',
19
+ APPROVED = 'Approved',
20
+ REJECTED = 'Rejected',
21
+ }
22
+
23
+ @Entity({ name: 'media_publications_requests' })
24
+ export class MediaPublicationsRequests extends BaseModel {
25
+ @Column({ type: 'int', nullable: true })
26
+ req_user_department_id: number | null;
27
+
28
+ @Column({ type: 'int', nullable: true })
29
+ req_user_section_id: number | null;
30
+
31
+ @Column({ nullable: true })
32
+ service_id: number;
33
+
34
+ @Column({ nullable: true })
35
+ sub_service_id: number;
36
+
37
+ @Column({ nullable: false })
38
+ user_id: number;
39
+
40
+ @Column({ type: 'date', nullable: false, default: () => 'CURRENT_DATE' })
41
+ request_submission_date: Date;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true })
44
+ requestor_name: string | null;
45
+
46
+ @Column({ type: 'varchar', length: 500, nullable: true })
47
+ requestor_department: string | null;
48
+
49
+ @Column({ type: 'varchar', length: 500, nullable: true })
50
+ requestor_designation: string | null;
51
+
52
+ @Column({ type: 'varchar', length: 100, nullable: true })
53
+ contact_number: string | null;
54
+
55
+ @Column({ type: 'varchar', length: 320, nullable: true })
56
+ email: string | null;
57
+
58
+ @Column({
59
+ type: 'enum',
60
+ enum: MediaPublicationsRequestType,
61
+ enumName: 'media_publications_request_type_en',
62
+ nullable: false,
63
+ })
64
+ request_type: MediaPublicationsRequestType;
65
+
66
+ @Column({ type: 'varchar', length: 120, nullable: false })
67
+ item_code: string;
68
+
69
+ @Column({ type: 'text', nullable: false })
70
+ description: string;
71
+
72
+ @Column({ type: 'decimal', precision: 14, scale: 2, nullable: false })
73
+ cost: number;
74
+
75
+ @Column({ type: 'date', nullable: false })
76
+ publication_date: Date;
77
+
78
+ @Column({
79
+ type: 'enum',
80
+ enum: MediaPublicationsEventType,
81
+ enumName: 'media_publications_event_type_en',
82
+ nullable: false,
83
+ })
84
+ event_type: MediaPublicationsEventType;
85
+
86
+ @Column({ type: 'int', nullable: true })
87
+ quantity: number | null;
88
+
89
+ @Column({ type: 'decimal', precision: 14, scale: 2, nullable: true })
90
+ unit_price: number | null;
91
+
92
+ @Column({
93
+ type: 'enum',
94
+ enum: MediaPublicationsRequestStatus,
95
+ default: MediaPublicationsRequestStatus.PENDING,
96
+ nullable: false,
97
+ })
98
+ status: MediaPublicationsRequestStatus;
99
+
100
+ @Column({ type: 'varchar', nullable: true })
101
+ workflow_execution_id: string | null;
102
+ }
@@ -0,0 +1,43 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum MediaPublicationsWorkFlowStatus {
5
+ COMPLETED = 'Completed',
6
+ NOT_YET_STARTED = 'Not Yet Started',
7
+ PENDING = 'Pending',
8
+ }
9
+
10
+ @Entity({ name: 'media_publications_workflows' })
11
+ export class MediaPublicationsWorkFlow extends BaseModel {
12
+ @Column({ type: 'integer', nullable: false })
13
+ request_id: number;
14
+
15
+ @Column({ type: 'integer', nullable: true })
16
+ service_id: number | null;
17
+
18
+ @Column({ type: 'integer', nullable: true })
19
+ sub_service_id: number | null;
20
+
21
+ @Column({ type: 'varchar', length: 500, nullable: false })
22
+ content: string;
23
+
24
+ @Column({
25
+ type: 'enum',
26
+ enum: MediaPublicationsWorkFlowStatus,
27
+ default: MediaPublicationsWorkFlowStatus.NOT_YET_STARTED,
28
+ nullable: false,
29
+ })
30
+ status: MediaPublicationsWorkFlowStatus;
31
+
32
+ @Column({ type: 'integer', nullable: true })
33
+ user_id: number | null;
34
+
35
+ @Column({ type: 'integer', nullable: true })
36
+ role_id: number | null;
37
+
38
+ @Column({ type: 'integer', nullable: true })
39
+ department_id: number | null;
40
+
41
+ @Column({ type: 'integer', nullable: true })
42
+ section_id: number | null;
43
+ }