@platform-modules/civil-aviation-authority 2.2.95 → 2.2.100
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/.env +1 -7
- package/package.json +1 -1
- package/src/models/ITRequestChatModel.ts +21 -1
- package/src/models/ItWorkflowModel.ts +17 -1
- package/dist/data-source.d.ts +0 -4
- package/dist/data-source.js +0 -150
- package/dist/helpers/utils/enum.d.ts +0 -75
- package/dist/helpers/utils/enum.js +0 -53
- package/dist/index.d.ts +0 -62
- package/dist/index.js +0 -82
- package/dist/models/AccessCardApprovalModel.d.ts +0 -22
- package/dist/models/AccessCardApprovalModel.js +0 -96
- package/dist/models/AccessCardAttachmentModel.d.ts +0 -12
- package/dist/models/AccessCardAttachmentModel.js +0 -64
- package/dist/models/AccessCardChatModel.d.ts +0 -20
- package/dist/models/AccessCardChatModel.js +0 -78
- package/dist/models/AccessCardRequestModel.d.ts +0 -43
- package/dist/models/AccessCardRequestModel.js +0 -148
- package/dist/models/AccessCardWorkflowModel.d.ts +0 -18
- package/dist/models/AccessCardWorkflowModel.js +0 -80
- package/dist/models/BaseModel.d.ts +0 -14
- package/dist/models/BaseModel.js +0 -66
- package/dist/models/CAAServices.d.ts +0 -8
- package/dist/models/CAAServices.js +0 -44
- package/dist/models/CAASubServices.d.ts +0 -11
- package/dist/models/CAASubServices.js +0 -55
- package/dist/models/DelegateSettingsModel.d.ts +0 -9
- package/dist/models/DelegateSettingsModel.js +0 -50
- package/dist/models/DepartmentsModel.d.ts +0 -7
- package/dist/models/DepartmentsModel.js +0 -39
- package/dist/models/DirectorateModel.d.ts +0 -7
- package/dist/models/DirectorateModel.js +0 -39
- package/dist/models/GroupModel.d.ts +0 -16
- package/dist/models/GroupModel.js +0 -44
- package/dist/models/GroupNamesModel.d.ts +0 -6
- package/dist/models/GroupNamesModel.js +0 -34
- package/dist/models/HotelApprovalModel.d.ts +0 -22
- package/dist/models/HotelApprovalModel.js +0 -91
- package/dist/models/HotelAttachedModel.d.ts +0 -14
- package/dist/models/HotelAttachedModel.js +0 -74
- package/dist/models/HotelChatModel.d.ts +0 -17
- package/dist/models/HotelChatModel.js +0 -67
- package/dist/models/HotelWorkFlowModel.d.ts +0 -14
- package/dist/models/HotelWorkFlowModel.js +0 -56
- package/dist/models/HotelreservationModel.d.ts +0 -45
- package/dist/models/HotelreservationModel.js +0 -177
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITHelpDeskModel.d.ts +0 -33
- package/dist/models/ITHelpDeskModel.js +0 -136
- package/dist/models/ITRequestAttachmentModel.d.ts +0 -17
- package/dist/models/ITRequestAttachmentModel.js +0 -81
- package/dist/models/ITRequestChatModel.d.ts +0 -12
- package/dist/models/ITRequestChatModel.js +0 -56
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/ItApprovalsModel.d.ts +0 -23
- package/dist/models/ItApprovalsModel.js +0 -92
- package/dist/models/ItWorkflowModel.d.ts +0 -15
- package/dist/models/ItWorkflowModel.js +0 -61
- package/dist/models/LogisticsApprovalModel.d.ts +0 -22
- package/dist/models/LogisticsApprovalModel.js +0 -91
- package/dist/models/LogisticsAttachmentModel.d.ts +0 -12
- package/dist/models/LogisticsAttachmentModel.js +0 -64
- package/dist/models/LogisticsChatModel.d.ts +0 -20
- package/dist/models/LogisticsChatModel.js +0 -78
- package/dist/models/LogisticsForeignVehicleModel.d.ts +0 -42
- package/dist/models/LogisticsForeignVehicleModel.js +0 -153
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +0 -6
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +0 -34
- package/dist/models/LogisticsModel.d.ts +0 -57
- package/dist/models/LogisticsModel.js +0 -195
- package/dist/models/LogisticsWorkflowModel.d.ts +0 -18
- package/dist/models/LogisticsWorkflowModel.js +0 -76
- package/dist/models/NotificationModel.d.ts +0 -23
- package/dist/models/NotificationModel.js +0 -92
- package/dist/models/PortalFeedbackModel.d.ts +0 -8
- package/dist/models/PortalFeedbackModel.js +0 -44
- package/dist/models/PositionModel.d.ts +0 -6
- package/dist/models/PositionModel.js +0 -34
- package/dist/models/SectionModel.d.ts +0 -8
- package/dist/models/SectionModel.js +0 -44
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +0 -22
- package/dist/models/SecurityAwarenessApprovalModel.js +0 -91
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAwarenessAttachmentModel.js +0 -64
- package/dist/models/SecurityAwarenessChatModel.d.ts +0 -20
- package/dist/models/SecurityAwarenessChatModel.js +0 -78
- package/dist/models/SecurityAwarenessRequestModel.d.ts +0 -30
- package/dist/models/SecurityAwarenessRequestModel.js +0 -122
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityAwarenessWorkflowModel.js +0 -76
- package/dist/models/SecurityThreatApprovalModel.d.ts +0 -24
- package/dist/models/SecurityThreatApprovalModel.js +0 -97
- package/dist/models/SecurityThreatAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityThreatAttachmentModel.js +0 -64
- package/dist/models/SecurityThreatChatModel.d.ts +0 -20
- package/dist/models/SecurityThreatChatModel.js +0 -78
- package/dist/models/SecurityThreatRequestModel.d.ts +0 -29
- package/dist/models/SecurityThreatRequestModel.js +0 -104
- package/dist/models/SecurityThreatWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityThreatWorkflowModel.js +0 -76
- package/dist/models/ServiceTypeModel.d.ts +0 -20
- package/dist/models/ServiceTypeModel.js +0 -88
- package/dist/models/VpnApprovalModel.d.ts +0 -21
- package/dist/models/VpnApprovalModel.js +0 -87
- package/dist/models/VpnRequestAttachmentModel.d.ts +0 -11
- package/dist/models/VpnRequestAttachmentModel.js +0 -59
- package/dist/models/VpnRequestChatModel.d.ts +0 -26
- package/dist/models/VpnRequestChatModel.js +0 -86
- package/dist/models/VpnRequestModel.d.ts +0 -70
- package/dist/models/VpnRequestModel.js +0 -175
- package/dist/models/VpnWorkflowModel.d.ts +0 -17
- package/dist/models/VpnWorkflowModel.js +0 -71
- package/dist/models/WorkflowDefinitions.d.ts +0 -16
- package/dist/models/WorkflowDefinitions.js +0 -86
- package/dist/models/WorkflowHierarchy.d.ts +0 -17
- package/dist/models/WorkflowHierarchy.js +0 -86
- package/dist/models/WorkflowTask.d.ts +0 -13
- package/dist/models/WorkflowTask.js +0 -78
- package/dist/models/WorkflowTaskNames.d.ts +0 -17
- package/dist/models/WorkflowTaskNames.js +0 -63
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
- package/dist/models/contactInfoModel.d.ts +0 -18
- package/dist/models/contactInfoModel.js +0 -80
- package/dist/models/feedbackModel.d.ts +0 -16
- package/dist/models/feedbackModel.js +0 -61
- package/dist/models/importantLinksModel.d.ts +0 -6
- package/dist/models/importantLinksModel.js +0 -34
- package/dist/models/role.d.ts +0 -16
- package/dist/models/role.js +0 -44
- package/dist/models/roleRightsModel.d.ts +0 -16
- package/dist/models/roleRightsModel.js +0 -44
- package/dist/models/serviceBookmarksModel.d.ts +0 -6
- package/dist/models/serviceBookmarksModel.js +0 -34
- package/dist/models/user-sessions.d.ts +0 -18
- package/dist/models/user-sessions.js +0 -54
- package/dist/models/user.d.ts +0 -47
- package/dist/models/user.js +0 -238
- package/dist/models/userRolesModel.d.ts +0 -19
- package/dist/models/userRolesModel.js +0 -59
- package/dist/scripts.d.ts +0 -1
- package/dist/scripts.js +0 -11
|
@@ -1,92 +0,0 @@
|
|
|
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.Notification = exports.NotificationType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var NotificationType;
|
|
16
|
-
(function (NotificationType) {
|
|
17
|
-
NotificationType["REQUEST_RAISED"] = "request raised";
|
|
18
|
-
NotificationType["REQUEST_APPROVE"] = "request approve";
|
|
19
|
-
NotificationType["REQUEST_REJECT"] = "request reject";
|
|
20
|
-
NotificationType["REQUEST_WITHDRAW"] = "request withdraw";
|
|
21
|
-
NotificationType["REMINDER"] = "reminder";
|
|
22
|
-
NotificationType["IMPORT"] = "import";
|
|
23
|
-
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
24
|
-
let Notification = class Notification extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(type, user_id, role_id, department_id, section_id, content, is_read, request_id, service_id, sub_service_id, route_path) {
|
|
26
|
-
super();
|
|
27
|
-
this.type = type;
|
|
28
|
-
this.user_id = user_id;
|
|
29
|
-
this.role_id = role_id;
|
|
30
|
-
this.department_id = department_id;
|
|
31
|
-
this.section_id = section_id;
|
|
32
|
-
this.content = content;
|
|
33
|
-
this.is_read = is_read;
|
|
34
|
-
this.request_id = request_id;
|
|
35
|
-
this.service_id = service_id;
|
|
36
|
-
this.sub_service_id = sub_service_id;
|
|
37
|
-
this.route_path = route_path;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.Notification = Notification;
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({
|
|
43
|
-
type: "enum",
|
|
44
|
-
enum: NotificationType,
|
|
45
|
-
nullable: false,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Notification.prototype, "type", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], Notification.prototype, "user_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], Notification.prototype, "role_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], Notification.prototype, "department_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
63
|
-
__metadata("design:type", Number)
|
|
64
|
-
], Notification.prototype, "section_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], Notification.prototype, "content", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
71
|
-
__metadata("design:type", Boolean)
|
|
72
|
-
], Notification.prototype, "is_read", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
75
|
-
__metadata("design:type", Number)
|
|
76
|
-
], Notification.prototype, "request_id", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
79
|
-
__metadata("design:type", Number)
|
|
80
|
-
], Notification.prototype, "service_id", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
83
|
-
__metadata("design:type", Number)
|
|
84
|
-
], Notification.prototype, "sub_service_id", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], Notification.prototype, "route_path", void 0);
|
|
89
|
-
exports.Notification = Notification = __decorate([
|
|
90
|
-
(0, typeorm_1.Entity)({ name: 'notification' }),
|
|
91
|
-
__metadata("design:paramtypes", [String, Number, Number, Number, Number, Object, Boolean, Number, Number, Number, String])
|
|
92
|
-
], Notification);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { Rating } from './feedbackModel';
|
|
3
|
-
export declare class PortalFeedback extends BaseModel {
|
|
4
|
-
comment: string;
|
|
5
|
-
rating: Rating;
|
|
6
|
-
user_Id: number;
|
|
7
|
-
constructor(comment: string, rating: Rating, user_Id: number);
|
|
8
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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.PortalFeedback = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const feedbackModel_1 = require("./feedbackModel");
|
|
16
|
-
let PortalFeedback = class PortalFeedback extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(comment, rating, user_Id) {
|
|
18
|
-
super();
|
|
19
|
-
this.comment = comment,
|
|
20
|
-
this.rating = rating,
|
|
21
|
-
this.user_Id = user_Id;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.PortalFeedback = PortalFeedback;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], PortalFeedback.prototype, "comment", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({
|
|
31
|
-
type: "enum",
|
|
32
|
-
enum: feedbackModel_1.Rating,
|
|
33
|
-
nullable: true,
|
|
34
|
-
}),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], PortalFeedback.prototype, "rating", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], PortalFeedback.prototype, "user_Id", void 0);
|
|
41
|
-
exports.PortalFeedback = PortalFeedback = __decorate([
|
|
42
|
-
(0, typeorm_1.Entity)({ name: 'portal_feedback' }),
|
|
43
|
-
__metadata("design:paramtypes", [String, Number, Number])
|
|
44
|
-
], PortalFeedback);
|
|
@@ -1,34 +0,0 @@
|
|
|
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.Position = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let Position = class Position extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, is_deleted) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.is_deleted = is_deleted;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.Position = Position;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], Position.prototype, "name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Boolean)
|
|
30
|
-
], Position.prototype, "is_deleted", void 0);
|
|
31
|
-
exports.Position = Position = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'position' }),
|
|
33
|
-
__metadata("design:paramtypes", [String, Boolean])
|
|
34
|
-
], Position);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class Sections extends BaseModel {
|
|
3
|
-
section_name: string;
|
|
4
|
-
section_code: string;
|
|
5
|
-
section_description: string;
|
|
6
|
-
department_id: number;
|
|
7
|
-
constructor(section_name: string, section_code: string, section_description: string, department_id: number);
|
|
8
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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.Sections = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let Sections = class Sections extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(section_name, section_code, section_description, department_id) {
|
|
17
|
-
super();
|
|
18
|
-
this.section_name = section_name;
|
|
19
|
-
this.section_code = section_code;
|
|
20
|
-
this.section_description = section_description;
|
|
21
|
-
this.department_id = department_id;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.Sections = Sections;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Sections.prototype, "section_name", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Sections.prototype, "section_code", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Sections.prototype, "section_description", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Sections.prototype, "department_id", void 0);
|
|
41
|
-
exports.Sections = Sections = __decorate([
|
|
42
|
-
(0, typeorm_1.Entity)({ name: 'sections' }),
|
|
43
|
-
__metadata("design:paramtypes", [String, String, String, Number])
|
|
44
|
-
], Sections);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum SecurityAwarenessApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare class SecurityAwarenessApproval 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: SecurityAwarenessApprovalStatus;
|
|
21
|
-
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: SecurityAwarenessApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number);
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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.SecurityAwarenessApproval = exports.SecurityAwarenessApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var SecurityAwarenessApprovalStatus;
|
|
16
|
-
(function (SecurityAwarenessApprovalStatus) {
|
|
17
|
-
SecurityAwarenessApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
SecurityAwarenessApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
SecurityAwarenessApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
SecurityAwarenessApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(SecurityAwarenessApprovalStatus || (exports.SecurityAwarenessApprovalStatus = SecurityAwarenessApprovalStatus = {}));
|
|
22
|
-
let SecurityAwarenessApproval = class SecurityAwarenessApproval extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
|
|
24
|
-
super();
|
|
25
|
-
this.request_id = request_id;
|
|
26
|
-
this.service_id = service_id || null;
|
|
27
|
-
this.sub_service_id = sub_service_id || null;
|
|
28
|
-
this.approver_role_id = approver_role_id;
|
|
29
|
-
this.comment = comment;
|
|
30
|
-
this.approval_status = approval_status;
|
|
31
|
-
this.level = level;
|
|
32
|
-
this.department_id = department_id || null;
|
|
33
|
-
this.section_id = section_id || null;
|
|
34
|
-
this.approver_user_id = approver_user_id || null;
|
|
35
|
-
this.delegate_user_id = delegate_user_id || null;
|
|
36
|
-
this.approved_by = approved_by || null;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.SecurityAwarenessApproval = SecurityAwarenessApproval;
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], SecurityAwarenessApproval.prototype, "request_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], SecurityAwarenessApproval.prototype, "service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], SecurityAwarenessApproval.prototype, "sub_service_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], SecurityAwarenessApproval.prototype, "level", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], SecurityAwarenessApproval.prototype, "approver_role_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], SecurityAwarenessApproval.prototype, "department_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], SecurityAwarenessApproval.prototype, "section_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], SecurityAwarenessApproval.prototype, "approver_user_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], SecurityAwarenessApproval.prototype, "delegate_user_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], SecurityAwarenessApproval.prototype, "approved_by", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], SecurityAwarenessApproval.prototype, "comment", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessApprovalStatus, default: SecurityAwarenessApprovalStatus.PENDING, nullable: false }),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], SecurityAwarenessApproval.prototype, "approval_status", void 0);
|
|
88
|
-
exports.SecurityAwarenessApproval = SecurityAwarenessApproval = __decorate([
|
|
89
|
-
(0, typeorm_1.Entity)({ name: 'security_awareness_approvals' }),
|
|
90
|
-
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
|
|
91
|
-
], SecurityAwarenessApproval);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class SecurityAwarenessAttachment 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
|
-
constructor(request_id: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number);
|
|
12
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
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.SecurityAwarenessAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let SecurityAwarenessAttachment = class SecurityAwarenessAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id) {
|
|
17
|
-
super();
|
|
18
|
-
this.request_id = request_id;
|
|
19
|
-
this.service_id = service_id || null;
|
|
20
|
-
this.sub_service_id = sub_service_id || null;
|
|
21
|
-
this.file_url = file_url;
|
|
22
|
-
this.file_name = file_name || '';
|
|
23
|
-
this.file_type = file_type || '';
|
|
24
|
-
this.file_size = file_size || null;
|
|
25
|
-
this.chat_id = chat_id || null;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.SecurityAwarenessAttachment = SecurityAwarenessAttachment;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], SecurityAwarenessAttachment.prototype, "request_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], SecurityAwarenessAttachment.prototype, "service_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], SecurityAwarenessAttachment.prototype, "sub_service_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], SecurityAwarenessAttachment.prototype, "file_url", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], SecurityAwarenessAttachment.prototype, "file_name", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], SecurityAwarenessAttachment.prototype, "file_type", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], SecurityAwarenessAttachment.prototype, "file_size", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], SecurityAwarenessAttachment.prototype, "chat_id", void 0);
|
|
61
|
-
exports.SecurityAwarenessAttachment = SecurityAwarenessAttachment = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)({ name: 'security_awareness_attachments' }),
|
|
63
|
-
__metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
|
|
64
|
-
], SecurityAwarenessAttachment);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { SecurityAwarenessApprovalStatus } from './SecurityAwarenessApprovalModel';
|
|
3
|
-
export declare enum SecurityAwarenessMessageType {
|
|
4
|
-
TEXT = "text",
|
|
5
|
-
IMAGE = "image",
|
|
6
|
-
VIDEO = "video",
|
|
7
|
-
FILE = "file",
|
|
8
|
-
LINK = "link"
|
|
9
|
-
}
|
|
10
|
-
export declare class SecurityAwarenessChat extends BaseModel {
|
|
11
|
-
request_id: number;
|
|
12
|
-
service_id: number | null;
|
|
13
|
-
sub_service_id: number | null;
|
|
14
|
-
user_id: number;
|
|
15
|
-
role_id: number;
|
|
16
|
-
message: string;
|
|
17
|
-
messageType: SecurityAwarenessMessageType;
|
|
18
|
-
status: string;
|
|
19
|
-
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: SecurityAwarenessMessageType, status?: SecurityAwarenessApprovalStatus);
|
|
20
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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.SecurityAwarenessChat = exports.SecurityAwarenessMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const SecurityAwarenessApprovalModel_1 = require("./SecurityAwarenessApprovalModel");
|
|
16
|
-
var SecurityAwarenessMessageType;
|
|
17
|
-
(function (SecurityAwarenessMessageType) {
|
|
18
|
-
SecurityAwarenessMessageType["TEXT"] = "text";
|
|
19
|
-
SecurityAwarenessMessageType["IMAGE"] = "image";
|
|
20
|
-
SecurityAwarenessMessageType["VIDEO"] = "video";
|
|
21
|
-
SecurityAwarenessMessageType["FILE"] = "file";
|
|
22
|
-
SecurityAwarenessMessageType["LINK"] = "link";
|
|
23
|
-
})(SecurityAwarenessMessageType || (exports.SecurityAwarenessMessageType = SecurityAwarenessMessageType = {}));
|
|
24
|
-
let SecurityAwarenessChat = class SecurityAwarenessChat extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
-
super();
|
|
27
|
-
this.request_id = request_id;
|
|
28
|
-
this.service_id = service_id || null;
|
|
29
|
-
this.sub_service_id = sub_service_id || null;
|
|
30
|
-
this.user_id = user_id;
|
|
31
|
-
this.role_id = role_id;
|
|
32
|
-
this.message = message;
|
|
33
|
-
this.messageType = messageType || SecurityAwarenessMessageType.TEXT;
|
|
34
|
-
this.status = status || SecurityAwarenessApprovalModel_1.SecurityAwarenessApprovalStatus.PENDING;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.SecurityAwarenessChat = SecurityAwarenessChat;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], SecurityAwarenessChat.prototype, "request_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], SecurityAwarenessChat.prototype, "service_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], SecurityAwarenessChat.prototype, "sub_service_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], SecurityAwarenessChat.prototype, "user_id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], SecurityAwarenessChat.prototype, "role_id", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], SecurityAwarenessChat.prototype, "message", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({
|
|
64
|
-
type: 'enum',
|
|
65
|
-
enum: SecurityAwarenessMessageType,
|
|
66
|
-
default: SecurityAwarenessMessageType.TEXT,
|
|
67
|
-
nullable: false
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], SecurityAwarenessChat.prototype, "messageType", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], SecurityAwarenessChat.prototype, "status", void 0);
|
|
75
|
-
exports.SecurityAwarenessChat = SecurityAwarenessChat = __decorate([
|
|
76
|
-
(0, typeorm_1.Entity)({ name: 'security_awareness_chats' }),
|
|
77
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
-
], SecurityAwarenessChat);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum SecurityAwarenessRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
APPROVED = "Approved",
|
|
7
|
-
REJECTED = "Rejected"
|
|
8
|
-
}
|
|
9
|
-
export declare enum MediaCoverageRequired {
|
|
10
|
-
YES = "Yes",
|
|
11
|
-
NO = "No"
|
|
12
|
-
}
|
|
13
|
-
export declare class SecurityAwarenessRequest extends BaseModel {
|
|
14
|
-
req_user_department_id: number | null;
|
|
15
|
-
req_user_section_id: number | null;
|
|
16
|
-
service_id: number;
|
|
17
|
-
sub_service_id: number;
|
|
18
|
-
user_id: number;
|
|
19
|
-
title: string;
|
|
20
|
-
date_of_submission: Date;
|
|
21
|
-
phone_number: string;
|
|
22
|
-
place: string | null;
|
|
23
|
-
description: string | null;
|
|
24
|
-
event_date: Date | null;
|
|
25
|
-
event_time: string | null;
|
|
26
|
-
media_coverage_required: MediaCoverageRequired;
|
|
27
|
-
status: SecurityAwarenessRequestStatus;
|
|
28
|
-
workflow_execution_id: string | null;
|
|
29
|
-
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, title: string, date_of_submission: Date, phone_number: string, place: string | null, description: string | null, event_date: Date | null, event_time: string | null, media_coverage_required: MediaCoverageRequired, status: SecurityAwarenessRequestStatus, workflow_execution_id?: string | null);
|
|
30
|
-
}
|