@platform-modules/civil-aviation-authority 2.2.100 → 2.2.200
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.d.ts +4 -0
- package/dist/data-source.js +150 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +82 -0
- package/dist/models/AccessCardApprovalModel.d.ts +22 -0
- package/dist/models/AccessCardApprovalModel.js +96 -0
- package/dist/models/AccessCardAttachmentModel.d.ts +12 -0
- package/dist/models/AccessCardAttachmentModel.js +64 -0
- package/dist/models/AccessCardChatModel.d.ts +20 -0
- package/dist/models/AccessCardChatModel.js +78 -0
- package/dist/models/AccessCardRequestModel.d.ts +43 -0
- package/dist/models/AccessCardRequestModel.js +148 -0
- package/dist/models/AccessCardWorkflowModel.d.ts +18 -0
- package/dist/models/AccessCardWorkflowModel.js +80 -0
- package/dist/models/BaseModel.d.ts +14 -0
- package/dist/models/BaseModel.js +66 -0
- package/dist/models/CAAServices.d.ts +8 -0
- package/dist/models/CAAServices.js +44 -0
- package/dist/models/CAASubServices.d.ts +11 -0
- package/dist/models/CAASubServices.js +55 -0
- package/dist/models/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DirectorateModel.d.ts +7 -0
- package/dist/models/DirectorateModel.js +39 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HotelApprovalModel.d.ts +22 -0
- package/dist/models/HotelApprovalModel.js +91 -0
- package/dist/models/HotelAttachedModel.d.ts +14 -0
- package/dist/models/HotelAttachedModel.js +74 -0
- package/dist/models/HotelChatModel.d.ts +17 -0
- package/dist/models/HotelChatModel.js +67 -0
- package/dist/models/HotelWorkFlowModel.d.ts +14 -0
- package/dist/models/HotelWorkFlowModel.js +56 -0
- package/dist/models/HotelreservationModel.d.ts +45 -0
- package/dist/models/HotelreservationModel.js +177 -0
- package/dist/models/ITHelpDeskModel.d.ts +33 -0
- package/dist/models/ITHelpDeskModel.js +136 -0
- package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
- package/dist/models/ITRequestAttachmentModel.js +81 -0
- package/dist/models/ITRequestChatModel.d.ts +16 -0
- package/dist/models/ITRequestChatModel.js +76 -0
- package/dist/models/ItApprovalsModel.d.ts +23 -0
- package/dist/models/ItApprovalsModel.js +92 -0
- package/dist/models/ItWorkflowModel.d.ts +19 -0
- package/dist/models/ItWorkflowModel.js +81 -0
- package/dist/models/LogisticsApprovalModel.d.ts +22 -0
- package/dist/models/LogisticsApprovalModel.js +91 -0
- package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsAttachmentModel.js +64 -0
- package/dist/models/LogisticsChatModel.d.ts +20 -0
- package/dist/models/LogisticsChatModel.js +78 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +42 -0
- package/dist/models/LogisticsForeignVehicleModel.js +153 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
- package/dist/models/LogisticsModel.d.ts +57 -0
- package/dist/models/LogisticsModel.js +195 -0
- package/dist/models/LogisticsWorkflowModel.d.ts +18 -0
- package/dist/models/LogisticsWorkflowModel.js +76 -0
- package/dist/models/NotificationModel.d.ts +23 -0
- package/dist/models/NotificationModel.js +92 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/PositionModel.d.ts +6 -0
- package/dist/models/PositionModel.js +34 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +22 -0
- package/dist/models/SecurityAwarenessApprovalModel.js +91 -0
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAwarenessAttachmentModel.js +64 -0
- package/dist/models/SecurityAwarenessChatModel.d.ts +20 -0
- package/dist/models/SecurityAwarenessChatModel.js +78 -0
- package/dist/models/SecurityAwarenessRequestModel.d.ts +30 -0
- package/dist/models/SecurityAwarenessRequestModel.js +122 -0
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityAwarenessWorkflowModel.js +76 -0
- package/dist/models/SecurityThreatApprovalModel.d.ts +24 -0
- package/dist/models/SecurityThreatApprovalModel.js +97 -0
- package/dist/models/SecurityThreatAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityThreatAttachmentModel.js +64 -0
- package/dist/models/SecurityThreatChatModel.d.ts +20 -0
- package/dist/models/SecurityThreatChatModel.js +78 -0
- package/dist/models/SecurityThreatRequestModel.d.ts +29 -0
- package/dist/models/SecurityThreatRequestModel.js +104 -0
- package/dist/models/SecurityThreatWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityThreatWorkflowModel.js +76 -0
- package/dist/models/ServiceTypeModel.d.ts +20 -0
- package/dist/models/ServiceTypeModel.js +88 -0
- package/dist/models/VpnApprovalModel.d.ts +21 -0
- package/dist/models/VpnApprovalModel.js +87 -0
- package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
- package/dist/models/VpnRequestAttachmentModel.js +59 -0
- package/dist/models/VpnRequestChatModel.d.ts +26 -0
- package/dist/models/VpnRequestChatModel.js +86 -0
- package/dist/models/VpnRequestModel.d.ts +70 -0
- package/dist/models/VpnRequestModel.js +175 -0
- package/dist/models/VpnWorkflowModel.d.ts +17 -0
- package/dist/models/VpnWorkflowModel.js +71 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +17 -0
- package/dist/models/WorkflowHierarchy.js +86 -0
- package/dist/models/WorkflowTask.d.ts +13 -0
- package/dist/models/WorkflowTask.js +78 -0
- package/dist/models/WorkflowTaskNames.d.ts +17 -0
- package/dist/models/WorkflowTaskNames.js +63 -0
- package/dist/models/contactInfoModel.d.ts +18 -0
- package/dist/models/contactInfoModel.js +80 -0
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/role.d.ts +16 -0
- package/dist/models/role.js +44 -0
- package/dist/models/roleRightsModel.d.ts +16 -0
- package/dist/models/roleRightsModel.js +44 -0
- package/dist/models/serviceBookmarksModel.d.ts +6 -0
- package/dist/models/serviceBookmarksModel.js +34 -0
- package/dist/models/user-sessions.d.ts +18 -0
- package/dist/models/user-sessions.js +54 -0
- package/dist/models/user.d.ts +47 -0
- package/dist/models/user.js +238 -0
- package/dist/models/userRolesModel.d.ts +19 -0
- package/dist/models/userRolesModel.js +59 -0
- package/dist/scripts.d.ts +1 -0
- package/dist/scripts.js +11 -0
- package/package.json +1 -1
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItWorkflowModel.ts +55 -55
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum Request_Type {
|
|
3
|
+
DAILY = "Daily",
|
|
4
|
+
EMERGENCY = "Emergency"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Status {
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
ASSIGNED = "Assigned",
|
|
9
|
+
IN_PROGRESS = "In Progress",
|
|
10
|
+
APPROVED = "Approved",
|
|
11
|
+
REJECTED = "Rejected"
|
|
12
|
+
}
|
|
13
|
+
export declare enum Vehicle_Required_For {
|
|
14
|
+
CONFERENCES = "Conferences",
|
|
15
|
+
CELEBRATIONS = "Celebrations and Official Meetings",
|
|
16
|
+
OTHERS = "Others"
|
|
17
|
+
}
|
|
18
|
+
export declare enum Vehicle_Required_Location {
|
|
19
|
+
INSIDE = "Inside Muscat",
|
|
20
|
+
OUTSIDE = "Outside Muscat"
|
|
21
|
+
}
|
|
22
|
+
export declare enum Purpose_of_Travel {
|
|
23
|
+
SITE = "Site Visit",
|
|
24
|
+
AIRPORT = "Airport Duty",
|
|
25
|
+
OFFICIAL = "Official Meeting",
|
|
26
|
+
OTHER = "Other"
|
|
27
|
+
}
|
|
28
|
+
export declare enum Type_of_Vehicle {
|
|
29
|
+
SEDAN = "Sedan",
|
|
30
|
+
SUV = "SUV"
|
|
31
|
+
}
|
|
32
|
+
export declare enum Type_of_Request {
|
|
33
|
+
NEW_REQUEST = "New Request",
|
|
34
|
+
EXTENSION = "Extension of Previous Request"
|
|
35
|
+
}
|
|
36
|
+
export declare class LogisticsRequests extends BaseModel {
|
|
37
|
+
req_user_department_id: number | null;
|
|
38
|
+
req_user_section_id: number | null;
|
|
39
|
+
service_id: number;
|
|
40
|
+
sub_service_id: number;
|
|
41
|
+
user_id: number;
|
|
42
|
+
category: Request_Type;
|
|
43
|
+
vehicle_required_for: Vehicle_Required_For;
|
|
44
|
+
vehicle_required_location: Vehicle_Required_Location;
|
|
45
|
+
title: string;
|
|
46
|
+
purpose_of_travel: Purpose_of_Travel;
|
|
47
|
+
type_of_vehicle_required: Type_of_Vehicle;
|
|
48
|
+
type_of_request: Type_of_Request;
|
|
49
|
+
date_of_travel: Date;
|
|
50
|
+
time_of_travel: string;
|
|
51
|
+
exp_duration_of_use_hrs: number;
|
|
52
|
+
exp_duration_of_use_days: number;
|
|
53
|
+
description: string;
|
|
54
|
+
status: Status;
|
|
55
|
+
workflow_execution_id: string | null;
|
|
56
|
+
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, category: Request_Type, vehicle_required_for: Vehicle_Required_For, vehicle_required_location: Vehicle_Required_Location, title: string, purpose_of_travel: Purpose_of_Travel, type_of_vehicle_required: Type_of_Vehicle, type_of_request: Type_of_Request, date_of_travel: Date, time_of_travel: string, exp_duration_of_use_hrs: number, exp_duration_of_use_days: number, description: string, status: Status, workflow_execution_id?: string | null);
|
|
57
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
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.LogisticsRequests = exports.Type_of_Request = exports.Type_of_Vehicle = exports.Purpose_of_Travel = exports.Vehicle_Required_Location = exports.Vehicle_Required_For = exports.Status = exports.Request_Type = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var Request_Type;
|
|
16
|
+
(function (Request_Type) {
|
|
17
|
+
Request_Type["DAILY"] = "Daily";
|
|
18
|
+
Request_Type["EMERGENCY"] = "Emergency";
|
|
19
|
+
})(Request_Type || (exports.Request_Type = Request_Type = {}));
|
|
20
|
+
var Status;
|
|
21
|
+
(function (Status) {
|
|
22
|
+
Status["PENDING"] = "Pending";
|
|
23
|
+
Status["ASSIGNED"] = "Assigned";
|
|
24
|
+
Status["IN_PROGRESS"] = "In Progress";
|
|
25
|
+
Status["APPROVED"] = "Approved";
|
|
26
|
+
Status["REJECTED"] = "Rejected";
|
|
27
|
+
})(Status || (exports.Status = Status = {}));
|
|
28
|
+
var Vehicle_Required_For;
|
|
29
|
+
(function (Vehicle_Required_For) {
|
|
30
|
+
Vehicle_Required_For["CONFERENCES"] = "Conferences";
|
|
31
|
+
Vehicle_Required_For["CELEBRATIONS"] = "Celebrations and Official Meetings";
|
|
32
|
+
Vehicle_Required_For["OTHERS"] = "Others";
|
|
33
|
+
})(Vehicle_Required_For || (exports.Vehicle_Required_For = Vehicle_Required_For = {}));
|
|
34
|
+
var Vehicle_Required_Location;
|
|
35
|
+
(function (Vehicle_Required_Location) {
|
|
36
|
+
Vehicle_Required_Location["INSIDE"] = "Inside Muscat";
|
|
37
|
+
Vehicle_Required_Location["OUTSIDE"] = "Outside Muscat";
|
|
38
|
+
})(Vehicle_Required_Location || (exports.Vehicle_Required_Location = Vehicle_Required_Location = {}));
|
|
39
|
+
var Purpose_of_Travel;
|
|
40
|
+
(function (Purpose_of_Travel) {
|
|
41
|
+
Purpose_of_Travel["SITE"] = "Site Visit";
|
|
42
|
+
Purpose_of_Travel["AIRPORT"] = "Airport Duty";
|
|
43
|
+
Purpose_of_Travel["OFFICIAL"] = "Official Meeting";
|
|
44
|
+
Purpose_of_Travel["OTHER"] = "Other";
|
|
45
|
+
})(Purpose_of_Travel || (exports.Purpose_of_Travel = Purpose_of_Travel = {}));
|
|
46
|
+
var Type_of_Vehicle;
|
|
47
|
+
(function (Type_of_Vehicle) {
|
|
48
|
+
Type_of_Vehicle["SEDAN"] = "Sedan";
|
|
49
|
+
Type_of_Vehicle["SUV"] = "SUV";
|
|
50
|
+
})(Type_of_Vehicle || (exports.Type_of_Vehicle = Type_of_Vehicle = {}));
|
|
51
|
+
var Type_of_Request;
|
|
52
|
+
(function (Type_of_Request) {
|
|
53
|
+
Type_of_Request["NEW_REQUEST"] = "New Request";
|
|
54
|
+
Type_of_Request["EXTENSION"] = "Extension of Previous Request";
|
|
55
|
+
})(Type_of_Request || (exports.Type_of_Request = Type_of_Request = {}));
|
|
56
|
+
let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
|
|
57
|
+
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, category, vehicle_required_for, vehicle_required_location, title, purpose_of_travel, type_of_vehicle_required, type_of_request, date_of_travel, time_of_travel, exp_duration_of_use_hrs, exp_duration_of_use_days, description, status, workflow_execution_id) {
|
|
58
|
+
super();
|
|
59
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
60
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
61
|
+
this.service_id = service_id;
|
|
62
|
+
this.sub_service_id = sub_service_id;
|
|
63
|
+
this.user_id = user_id;
|
|
64
|
+
this.category = category;
|
|
65
|
+
this.vehicle_required_for = vehicle_required_for;
|
|
66
|
+
this.vehicle_required_location = vehicle_required_location;
|
|
67
|
+
this.title = title;
|
|
68
|
+
this.purpose_of_travel = purpose_of_travel;
|
|
69
|
+
this.type_of_vehicle_required = type_of_vehicle_required;
|
|
70
|
+
this.type_of_request = type_of_request;
|
|
71
|
+
this.date_of_travel = date_of_travel;
|
|
72
|
+
this.time_of_travel = time_of_travel;
|
|
73
|
+
this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
|
|
74
|
+
this.exp_duration_of_use_days = exp_duration_of_use_days;
|
|
75
|
+
this.description = description;
|
|
76
|
+
this.status = status;
|
|
77
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
exports.LogisticsRequests = LogisticsRequests;
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], LogisticsRequests.prototype, "req_user_department_id", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], LogisticsRequests.prototype, "req_user_section_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], LogisticsRequests.prototype, "service_id", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], LogisticsRequests.prototype, "sub_service_id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], LogisticsRequests.prototype, "user_id", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({
|
|
103
|
+
type: "enum",
|
|
104
|
+
enum: Request_Type,
|
|
105
|
+
default: Request_Type.DAILY,
|
|
106
|
+
nullable: false,
|
|
107
|
+
}),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], LogisticsRequests.prototype, "category", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({
|
|
112
|
+
type: "enum",
|
|
113
|
+
enum: Vehicle_Required_For,
|
|
114
|
+
default: Vehicle_Required_For.OTHERS,
|
|
115
|
+
nullable: false,
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], LogisticsRequests.prototype, "vehicle_required_for", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({
|
|
121
|
+
type: "enum",
|
|
122
|
+
enum: Vehicle_Required_Location,
|
|
123
|
+
default: Vehicle_Required_Location.INSIDE,
|
|
124
|
+
nullable: false,
|
|
125
|
+
}),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], LogisticsRequests.prototype, "vehicle_required_location", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], LogisticsRequests.prototype, "title", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({
|
|
134
|
+
type: "enum",
|
|
135
|
+
enum: Purpose_of_Travel,
|
|
136
|
+
default: Purpose_of_Travel.OTHER,
|
|
137
|
+
nullable: false,
|
|
138
|
+
}),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], LogisticsRequests.prototype, "purpose_of_travel", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({
|
|
143
|
+
type: "enum",
|
|
144
|
+
enum: Type_of_Vehicle,
|
|
145
|
+
default: Type_of_Vehicle.SEDAN,
|
|
146
|
+
nullable: false,
|
|
147
|
+
}),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], LogisticsRequests.prototype, "type_of_vehicle_required", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.Column)({
|
|
152
|
+
type: "enum",
|
|
153
|
+
enum: Type_of_Request,
|
|
154
|
+
default: Type_of_Request.NEW_REQUEST,
|
|
155
|
+
nullable: false,
|
|
156
|
+
}),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], LogisticsRequests.prototype, "type_of_request", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
161
|
+
__metadata("design:type", Date)
|
|
162
|
+
], LogisticsRequests.prototype, "date_of_travel", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, typeorm_1.Column)({ type: "time", nullable: true }),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], LogisticsRequests.prototype, "time_of_travel", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
169
|
+
__metadata("design:type", Number)
|
|
170
|
+
], LogisticsRequests.prototype, "exp_duration_of_use_hrs", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
173
|
+
__metadata("design:type", Number)
|
|
174
|
+
], LogisticsRequests.prototype, "exp_duration_of_use_days", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], LogisticsRequests.prototype, "description", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({
|
|
181
|
+
type: "enum",
|
|
182
|
+
enum: Status,
|
|
183
|
+
default: Status.PENDING,
|
|
184
|
+
nullable: false,
|
|
185
|
+
}),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], LogisticsRequests.prototype, "status", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
190
|
+
__metadata("design:type", Object)
|
|
191
|
+
], LogisticsRequests.prototype, "workflow_execution_id", void 0);
|
|
192
|
+
exports.LogisticsRequests = LogisticsRequests = __decorate([
|
|
193
|
+
(0, typeorm_1.Entity)({ name: 'logistics_requests' }),
|
|
194
|
+
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, String, Date, String, Number, Number, String, String, Object])
|
|
195
|
+
], LogisticsRequests);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LogisticsWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class LogisticsWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: LogisticsWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
constructor(request_id: number, content: string, status: LogisticsWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.LogisticsWorkFlow = exports.LogisticsWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LogisticsWorkFlowStatus;
|
|
16
|
+
(function (LogisticsWorkFlowStatus) {
|
|
17
|
+
LogisticsWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
LogisticsWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
LogisticsWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(LogisticsWorkFlowStatus || (exports.LogisticsWorkFlowStatus = LogisticsWorkFlowStatus = {}));
|
|
21
|
+
//This model is used to store the logistics workflow status and activity logs
|
|
22
|
+
let LogisticsWorkFlow = class LogisticsWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_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.content = content;
|
|
29
|
+
this.status = status;
|
|
30
|
+
this.user_id = user_id || null;
|
|
31
|
+
this.role_id = role_id || null;
|
|
32
|
+
this.department_id = department_id || null;
|
|
33
|
+
this.section_id = section_id || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.LogisticsWorkFlow = LogisticsWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LogisticsWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], LogisticsWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LogisticsWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LogisticsWorkFlow.prototype, "content", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: LogisticsWorkFlowStatus, default: LogisticsWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], LogisticsWorkFlow.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LogisticsWorkFlow.prototype, "user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], LogisticsWorkFlow.prototype, "role_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], LogisticsWorkFlow.prototype, "department_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], LogisticsWorkFlow.prototype, "section_id", void 0);
|
|
73
|
+
exports.LogisticsWorkFlow = LogisticsWorkFlow = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'logistics_workflows' }),
|
|
75
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
76
|
+
], LogisticsWorkFlow);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum NotificationType {
|
|
3
|
+
REQUEST_RAISED = "request raised",
|
|
4
|
+
REQUEST_APPROVE = "request approve",
|
|
5
|
+
REQUEST_REJECT = "request reject",
|
|
6
|
+
REQUEST_WITHDRAW = "request withdraw",
|
|
7
|
+
REMINDER = "reminder",
|
|
8
|
+
IMPORT = "import"
|
|
9
|
+
}
|
|
10
|
+
export declare class Notification extends BaseModel {
|
|
11
|
+
type: NotificationType;
|
|
12
|
+
user_id: number;
|
|
13
|
+
role_id: number;
|
|
14
|
+
department_id: number;
|
|
15
|
+
section_id: number;
|
|
16
|
+
content: any;
|
|
17
|
+
is_read: boolean;
|
|
18
|
+
request_id: number;
|
|
19
|
+
service_id: number;
|
|
20
|
+
sub_service_id: number;
|
|
21
|
+
route_path: string;
|
|
22
|
+
constructor(type: NotificationType, user_id: number, role_id: number, department_id: number, section_id: number, content: any, is_read: boolean, request_id: number, service_id: number, sub_service_id: number, route_path: string);
|
|
23
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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);
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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);
|
|
@@ -0,0 +1,34 @@
|
|
|
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);
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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);
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|