@platform-modules/civil-aviation-authority 2.3.208 → 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.
- package/dist/data-source.js +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +11 -0
- package/dist/models/MaintenanceApprovalModel.d.ts +22 -0
- package/dist/models/MaintenanceApprovalModel.js +84 -0
- package/dist/models/MaintenanceAttachmentModel.d.ts +11 -0
- package/dist/models/MaintenanceAttachmentModel.js +52 -0
- package/dist/models/MaintenanceChatModel.d.ts +18 -0
- package/dist/models/MaintenanceChatModel.js +65 -0
- package/dist/models/MaintenanceRequestModel.d.ts +42 -0
- package/dist/models/MaintenanceRequestModel.js +125 -0
- package/dist/models/MaintenanceWorkflowModel.d.ts +17 -0
- package/dist/models/MaintenanceWorkflowModel.js +67 -0
- package/dist/models/MediaPublicationsApprovalModel.d.ts +22 -0
- package/dist/models/MediaPublicationsApprovalModel.js +84 -0
- package/dist/models/MediaPublicationsAttachmentModel.d.ts +11 -0
- package/dist/models/MediaPublicationsAttachmentModel.js +52 -0
- package/dist/models/MediaPublicationsChatModel.d.ts +18 -0
- package/dist/models/MediaPublicationsChatModel.js +65 -0
- package/dist/models/MediaPublicationsRequestModel.d.ts +40 -0
- package/dist/models/MediaPublicationsRequestModel.js +138 -0
- package/dist/models/MediaPublicationsWorkflowModel.d.ts +17 -0
- package/dist/models/MediaPublicationsWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +20 -0
- package/src/index.ts +12 -0
- package/src/models/MaintenanceApprovalModel.ts +56 -0
- package/src/models/MaintenanceAttachmentModel.ts +29 -0
- package/src/models/MaintenanceChatModel.ts +42 -0
- package/src/models/MaintenanceRequestModel.ts +94 -0
- package/src/models/MaintenanceWorkflowModel.ts +43 -0
- package/src/models/MediaPublicationsApprovalModel.ts +56 -0
- package/src/models/MediaPublicationsAttachmentModel.ts +29 -0
- package/src/models/MediaPublicationsChatModel.ts +42 -0
- package/src/models/MediaPublicationsRequestModel.ts +102 -0
- package/src/models/MediaPublicationsWorkflowModel.ts +43 -0
|
@@ -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
package/src/data-source.ts
CHANGED
|
@@ -209,6 +209,16 @@ import { MaintenanceExternalStationsApprovalDetails } from './models/Maintenance
|
|
|
209
209
|
import { MaintenanceExternalStationsAttachment } from './models/MaintenanceExternalStationsAttachmentModel';
|
|
210
210
|
import { MaintenanceExternalStationsChat } from './models/MaintenanceExternalStationsChatModel';
|
|
211
211
|
import { MaintenanceExternalStationsWorkFlow } from './models/MaintenanceExternalStationsWorkflowModel';
|
|
212
|
+
import { MaintenanceRequests } from './models/MaintenanceRequestModel';
|
|
213
|
+
import { MaintenanceApprovalDetails } from './models/MaintenanceApprovalModel';
|
|
214
|
+
import { MaintenanceAttachment } from './models/MaintenanceAttachmentModel';
|
|
215
|
+
import { MaintenanceChat } from './models/MaintenanceChatModel';
|
|
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';
|
|
212
222
|
|
|
213
223
|
export const AppDataSource = new DataSource({
|
|
214
224
|
type: 'postgres',
|
|
@@ -425,5 +435,15 @@ export const AppDataSource = new DataSource({
|
|
|
425
435
|
MaintenanceExternalStationsAttachment,
|
|
426
436
|
MaintenanceExternalStationsChat,
|
|
427
437
|
MaintenanceExternalStationsWorkFlow,
|
|
438
|
+
MaintenanceRequests,
|
|
439
|
+
MaintenanceApprovalDetails,
|
|
440
|
+
MaintenanceAttachment,
|
|
441
|
+
MaintenanceChat,
|
|
442
|
+
MaintenanceWorkFlow,
|
|
443
|
+
MediaPublicationsRequests,
|
|
444
|
+
MediaPublicationsApprovalDetails,
|
|
445
|
+
MediaPublicationsAttachment,
|
|
446
|
+
MediaPublicationsChat,
|
|
447
|
+
MediaPublicationsWorkFlow,
|
|
428
448
|
],
|
|
429
449
|
});
|
package/src/index.ts
CHANGED
|
@@ -380,6 +380,18 @@ export * from './models/MaintenanceExternalStationsApprovalModel';
|
|
|
380
380
|
export * from './models/MaintenanceExternalStationsAttachmentModel';
|
|
381
381
|
export * from './models/MaintenanceExternalStationsChatModel';
|
|
382
382
|
export * from './models/MaintenanceExternalStationsWorkflowModel';
|
|
383
|
+
export * from './models/MaintenanceRequestModel';
|
|
384
|
+
export * from './models/MaintenanceApprovalModel';
|
|
385
|
+
export * from './models/MaintenanceAttachmentModel';
|
|
386
|
+
export * from './models/MaintenanceChatModel';
|
|
387
|
+
export * from './models/MaintenanceWorkflowModel';
|
|
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';
|
|
383
395
|
|
|
384
396
|
// Legal Consultation — Review of Administrative Decisions
|
|
385
397
|
export * from './models/LegalConsultationRequestModel';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MaintenanceApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'maintenance_approvals' })
|
|
12
|
+
export class MaintenanceApprovalDetails 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: MaintenanceApprovalStatus,
|
|
49
|
+
default: MaintenanceApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: MaintenanceApprovalStatus;
|
|
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: 'maintenance_attachments' })
|
|
5
|
+
export class MaintenanceAttachment 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
|
+
}
|