@platform-modules/civil-aviation-authority 2.0.81 → 2.0.82
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 +11 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -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/HotelreservationModal.d.ts +30 -0
- package/dist/models/HotelreservationModal.js +119 -0
- package/dist/models/HotelreservationModel.d.ts +44 -0
- package/dist/models/HotelreservationModel.js +172 -0
- package/dist/models/ITHelpDeskModel.d.ts +1 -5
- package/dist/models/ITHelpDeskModel.js +2 -22
- package/dist/models/ITRequestAttachmentModel.d.ts +1 -3
- package/dist/models/ITRequestAttachmentModel.js +2 -12
- package/dist/models/ItApprovalsModel.d.ts +1 -3
- package/dist/models/ItApprovalsModel.js +2 -12
- package/dist/models/ItWorkflowModel.d.ts +1 -3
- package/dist/models/ItWorkflowModel.js +2 -12
- package/dist/models/VpnApprovalModel.d.ts +2 -4
- package/dist/models/VpnApprovalModel.js +2 -8
- package/dist/models/WorkflowTask.d.ts +1 -4
- package/dist/models/WorkflowTask.js +2 -17
- package/package.json +1 -1
- package/src/data-source.ts +11 -1
- package/src/index.ts +5 -0
- package/src/models/HotelApprovalModel.ts +79 -0
- package/src/models/HotelAttachedModel.ts +64 -0
- package/src/models/HotelChatModel.ts +55 -0
- package/src/models/HotelWorkFlowModel.ts +42 -0
- package/src/models/HotelreservationModel.ts +161 -0
- package/src/models/ITHelpDeskModel.ts +1 -21
- package/src/models/ITRequestAttachmentModel.ts +1 -11
- package/src/models/ItApprovalsModel.ts +1 -11
- package/src/models/ItWorkflowModel.ts +1 -9
- package/src/models/VpnApprovalModel.ts +2 -8
- package/src/models/WorkflowTask.ts +1 -16
- package/src/models/user.ts +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
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.HotelReservation = exports.HotelReservationStatus = exports.ServiceTypes = exports.MealType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var MealType;
|
|
16
|
+
(function (MealType) {
|
|
17
|
+
MealType["BREAKFAST"] = "Breakfast";
|
|
18
|
+
MealType["LUNCH"] = "Lunch";
|
|
19
|
+
MealType["DINNER"] = "Dinner";
|
|
20
|
+
})(MealType || (exports.MealType = MealType = {}));
|
|
21
|
+
var ServiceTypes;
|
|
22
|
+
(function (ServiceTypes) {
|
|
23
|
+
ServiceTypes["LAUNDRY"] = "Laundry";
|
|
24
|
+
ServiceTypes["TELEPHONE"] = "Telephone Service";
|
|
25
|
+
})(ServiceTypes || (exports.ServiceTypes = ServiceTypes = {}));
|
|
26
|
+
var HotelReservationStatus;
|
|
27
|
+
(function (HotelReservationStatus) {
|
|
28
|
+
HotelReservationStatus["PENDING"] = "Pending";
|
|
29
|
+
HotelReservationStatus["APPROVED"] = "Approved";
|
|
30
|
+
HotelReservationStatus["REJECTED"] = "Rejected";
|
|
31
|
+
HotelReservationStatus["IN_PROGRESS"] = "In Progress";
|
|
32
|
+
})(HotelReservationStatus || (exports.HotelReservationStatus = HotelReservationStatus = {}));
|
|
33
|
+
let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
|
|
34
|
+
constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, visitor_name, user_id, status = HotelReservationStatus.PENDING, hr_approval = false, pr_approval = false, service_id, sub_service_id, service_type, workflow_execution_id, req_user_department_id, req_user_section_id, attachment_url) {
|
|
35
|
+
super();
|
|
36
|
+
this.type_of_accommodation = type_of_accommodation;
|
|
37
|
+
this.price = price;
|
|
38
|
+
this.meal = meal;
|
|
39
|
+
this.service = service;
|
|
40
|
+
this.date_of_request = date_of_request;
|
|
41
|
+
this.hotel_name = hotel_name;
|
|
42
|
+
this.check_in_date = check_in_date;
|
|
43
|
+
this.check_in_time = check_in_time;
|
|
44
|
+
this.check_out_date = check_out_date;
|
|
45
|
+
this.check_out_time = check_out_time;
|
|
46
|
+
this.number_of_guests = number_of_guests;
|
|
47
|
+
this.description = description;
|
|
48
|
+
this.requested_by = requested_by;
|
|
49
|
+
this.visitor_name = visitor_name;
|
|
50
|
+
this.user_id = user_id;
|
|
51
|
+
this.status = status;
|
|
52
|
+
this.hr_approval = hr_approval;
|
|
53
|
+
this.pr_approval = pr_approval;
|
|
54
|
+
this.service_id = service_id ?? null;
|
|
55
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
56
|
+
this.service_type = service_type ?? null;
|
|
57
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
58
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
59
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
60
|
+
this.attachment_url = attachment_url ?? null;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.HotelReservation = HotelReservation;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], HotelReservation.prototype, "req_user_department_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], HotelReservation.prototype, "req_user_section_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], HotelReservation.prototype, "service_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], HotelReservation.prototype, "sub_service_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], HotelReservation.prototype, "service_type", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], HotelReservation.prototype, "workflow_execution_id", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({
|
|
90
|
+
type: "enum",
|
|
91
|
+
enum: HotelReservationStatus,
|
|
92
|
+
default: HotelReservationStatus.PENDING,
|
|
93
|
+
nullable: false,
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], HotelReservation.prototype, "status", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], HotelReservation.prototype, "user_id", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], HotelReservation.prototype, "type_of_accommodation", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: false }),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], HotelReservation.prototype, "price", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MealType, nullable: false, }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], HotelReservation.prototype, "meal", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ServiceTypes, nullable: false, }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], HotelReservation.prototype, "service", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: false }),
|
|
119
|
+
__metadata("design:type", Date)
|
|
120
|
+
], HotelReservation.prototype, "date_of_request", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], HotelReservation.prototype, "hotel_name", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
127
|
+
__metadata("design:type", Date)
|
|
128
|
+
], HotelReservation.prototype, "check_in_date", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], HotelReservation.prototype, "check_in_time", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
135
|
+
__metadata("design:type", Date)
|
|
136
|
+
], HotelReservation.prototype, "check_out_date", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], HotelReservation.prototype, "check_out_time", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], HotelReservation.prototype, "number_of_guests", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], HotelReservation.prototype, "description", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], HotelReservation.prototype, "attachment_url", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], HotelReservation.prototype, "requested_by", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], HotelReservation.prototype, "visitor_name", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
163
|
+
__metadata("design:type", Boolean)
|
|
164
|
+
], HotelReservation.prototype, "hr_approval", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
167
|
+
__metadata("design:type", Boolean)
|
|
168
|
+
], HotelReservation.prototype, "pr_approval", void 0);
|
|
169
|
+
exports.HotelReservation = HotelReservation = __decorate([
|
|
170
|
+
(0, typeorm_1.Entity)({ name: 'hotelreservations' }),
|
|
171
|
+
__metadata("design:paramtypes", [String, Number, String, String, Date, String, Date, String, Date, String, Number, String, String, String, Number, String, Boolean, Boolean, Object, Object, Object, Object, Object, Object, Object])
|
|
172
|
+
], HotelReservation);
|
|
@@ -21,13 +21,9 @@ export declare class ITHelpDeskRequests extends BaseModel {
|
|
|
21
21
|
description: string;
|
|
22
22
|
extn_num: string;
|
|
23
23
|
contact_num: string;
|
|
24
|
-
email: string | null;
|
|
25
|
-
request_type: string;
|
|
26
|
-
person_name: string | null;
|
|
27
|
-
person_contact_number: string | null;
|
|
28
24
|
request_date: Date;
|
|
29
25
|
user_id: number;
|
|
30
26
|
status: status;
|
|
31
27
|
workflow_execution_id: string | null;
|
|
32
|
-
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, status: status, workflow_execution_id?: string, req_user_department_id?: number | null, req_user_section_id?: number | null, service_type_id?: number | null
|
|
28
|
+
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, status: status, workflow_execution_id?: string, req_user_department_id?: number | null, req_user_section_id?: number | null, service_type_id?: number | null);
|
|
33
29
|
}
|
|
@@ -26,7 +26,7 @@ var status;
|
|
|
26
26
|
status["REJECTED"] = "Rejected";
|
|
27
27
|
})(status || (exports.status = status = {}));
|
|
28
28
|
let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
|
|
29
|
-
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date, status, workflow_execution_id, req_user_department_id, req_user_section_id, service_type_id
|
|
29
|
+
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date, status, workflow_execution_id, req_user_department_id, req_user_section_id, service_type_id) {
|
|
30
30
|
super();
|
|
31
31
|
this.service_id = service_id;
|
|
32
32
|
this.sub_service_id = sub_service_id;
|
|
@@ -35,10 +35,6 @@ let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel
|
|
|
35
35
|
this.description = description;
|
|
36
36
|
this.extn_num = extn_num;
|
|
37
37
|
this.contact_num = contact_num;
|
|
38
|
-
this.email = email || null;
|
|
39
|
-
this.request_type = request_type || 'internal';
|
|
40
|
-
this.person_name = person_name || null;
|
|
41
|
-
this.person_contact_number = person_contact_number || null;
|
|
42
38
|
this.request_date = request_date;
|
|
43
39
|
this.status = status;
|
|
44
40
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
@@ -93,22 +89,6 @@ __decorate([
|
|
|
93
89
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
94
90
|
__metadata("design:type", String)
|
|
95
91
|
], ITHelpDeskRequests.prototype, "contact_num", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
98
|
-
__metadata("design:type", Object)
|
|
99
|
-
], ITHelpDeskRequests.prototype, "email", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 30, nullable: true }),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], ITHelpDeskRequests.prototype, "request_type", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
106
|
-
__metadata("design:type", Object)
|
|
107
|
-
], ITHelpDeskRequests.prototype, "person_name", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
110
|
-
__metadata("design:type", Object)
|
|
111
|
-
], ITHelpDeskRequests.prototype, "person_contact_number", void 0);
|
|
112
92
|
__decorate([
|
|
113
93
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
114
94
|
__metadata("design:type", Date)
|
|
@@ -132,5 +112,5 @@ __decorate([
|
|
|
132
112
|
], ITHelpDeskRequests.prototype, "workflow_execution_id", void 0);
|
|
133
113
|
exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
|
|
134
114
|
(0, typeorm_1.Entity)({ name: 'it_help_desk_requests' }),
|
|
135
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String, String, Object, Object, Object
|
|
115
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String, String, Object, Object, Object])
|
|
136
116
|
], ITHelpDeskRequests);
|
|
@@ -4,8 +4,6 @@ import { User } from './user';
|
|
|
4
4
|
export declare class ITRequestAttachment extends BaseModel {
|
|
5
5
|
request_id: number;
|
|
6
6
|
request: ITHelpDeskRequests;
|
|
7
|
-
service_id: number | null;
|
|
8
|
-
sub_service_id: number | null;
|
|
9
7
|
uploaded_by: number;
|
|
10
8
|
user: User;
|
|
11
9
|
file_url: string;
|
|
@@ -13,5 +11,5 @@ export declare class ITRequestAttachment extends BaseModel {
|
|
|
13
11
|
file_type: string;
|
|
14
12
|
file_size: number | null;
|
|
15
13
|
description: string;
|
|
16
|
-
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, description?: string
|
|
14
|
+
constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, description?: string);
|
|
17
15
|
}
|
|
@@ -15,7 +15,7 @@ const BaseModel_1 = require("./BaseModel");
|
|
|
15
15
|
const ITHelpDeskModel_1 = require("./ITHelpDeskModel");
|
|
16
16
|
const user_1 = require("./user");
|
|
17
17
|
let ITRequestAttachment = class ITRequestAttachment extends BaseModel_1.BaseModel {
|
|
18
|
-
constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, description
|
|
18
|
+
constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, description) {
|
|
19
19
|
super();
|
|
20
20
|
this.request_id = request_id;
|
|
21
21
|
this.uploaded_by = uploaded_by;
|
|
@@ -24,8 +24,6 @@ let ITRequestAttachment = class ITRequestAttachment extends BaseModel_1.BaseMode
|
|
|
24
24
|
this.file_type = file_type || '';
|
|
25
25
|
this.file_size = file_size || null;
|
|
26
26
|
this.description = description || '';
|
|
27
|
-
this.service_id = service_id ?? null;
|
|
28
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
29
27
|
}
|
|
30
28
|
};
|
|
31
29
|
exports.ITRequestAttachment = ITRequestAttachment;
|
|
@@ -38,14 +36,6 @@ __decorate([
|
|
|
38
36
|
(0, typeorm_1.JoinColumn)({ name: 'request_id' }),
|
|
39
37
|
__metadata("design:type", ITHelpDeskModel_1.ITHelpDeskRequests)
|
|
40
38
|
], ITRequestAttachment.prototype, "request", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], ITRequestAttachment.prototype, "service_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], ITRequestAttachment.prototype, "sub_service_id", void 0);
|
|
49
39
|
__decorate([
|
|
50
40
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
51
41
|
__metadata("design:type", Number)
|
|
@@ -77,5 +67,5 @@ __decorate([
|
|
|
77
67
|
], ITRequestAttachment.prototype, "description", void 0);
|
|
78
68
|
exports.ITRequestAttachment = ITRequestAttachment = __decorate([
|
|
79
69
|
(0, typeorm_1.Entity)({ name: 'it_request_attachments' }),
|
|
80
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, Number, String
|
|
70
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, Number, String])
|
|
81
71
|
], ITRequestAttachment);
|
|
@@ -6,8 +6,6 @@ export declare enum ApprovalStatus {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class ItApprovalDetails extends BaseModel {
|
|
8
8
|
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
9
|
level: number;
|
|
12
10
|
approver_user_id: number | null;
|
|
13
11
|
approver_role_id: number | null;
|
|
@@ -16,5 +14,5 @@ export declare class ItApprovalDetails extends BaseModel {
|
|
|
16
14
|
approved_by: number | null;
|
|
17
15
|
comment: string;
|
|
18
16
|
approval_status: ApprovalStatus;
|
|
19
|
-
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: ApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null
|
|
17
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: ApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null);
|
|
20
18
|
}
|
|
@@ -19,7 +19,7 @@ var ApprovalStatus;
|
|
|
19
19
|
ApprovalStatus["REJECTED"] = "Rejected";
|
|
20
20
|
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
21
21
|
let ItApprovalDetails = class ItApprovalDetails extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by
|
|
22
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by) {
|
|
23
23
|
super();
|
|
24
24
|
this.request_id = request_id;
|
|
25
25
|
this.approver_user_id = approver_user_id;
|
|
@@ -30,8 +30,6 @@ let ItApprovalDetails = class ItApprovalDetails extends BaseModel_1.BaseModel {
|
|
|
30
30
|
this.department_id = department_id || null;
|
|
31
31
|
this.section_id = section_id || null;
|
|
32
32
|
this.approved_by = approved_by || null;
|
|
33
|
-
this.service_id = service_id ?? null;
|
|
34
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
35
33
|
}
|
|
36
34
|
};
|
|
37
35
|
exports.ItApprovalDetails = ItApprovalDetails;
|
|
@@ -39,14 +37,6 @@ __decorate([
|
|
|
39
37
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
38
|
__metadata("design:type", Number)
|
|
41
39
|
], ItApprovalDetails.prototype, "request_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], ItApprovalDetails.prototype, "service_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], ItApprovalDetails.prototype, "sub_service_id", void 0);
|
|
50
40
|
__decorate([
|
|
51
41
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
42
|
__metadata("design:type", Number)
|
|
@@ -81,5 +71,5 @@ __decorate([
|
|
|
81
71
|
], ItApprovalDetails.prototype, "approval_status", void 0);
|
|
82
72
|
exports.ItApprovalDetails = ItApprovalDetails = __decorate([
|
|
83
73
|
(0, typeorm_1.Entity)({ name: 'it_approvals' }),
|
|
84
|
-
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object
|
|
74
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object])
|
|
85
75
|
], ItApprovalDetails);
|
|
@@ -6,10 +6,8 @@ export declare enum workFlowStatus {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class ItWorkFlow extends BaseModel {
|
|
8
8
|
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
9
|
order: number | null;
|
|
12
10
|
content: string;
|
|
13
11
|
status: workFlowStatus;
|
|
14
|
-
constructor(request_id: number, content: string, status: workFlowStatus, order?: number
|
|
12
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number);
|
|
15
13
|
}
|
|
@@ -20,14 +20,12 @@ var workFlowStatus;
|
|
|
20
20
|
})(workFlowStatus || (exports.workFlowStatus = workFlowStatus = {}));
|
|
21
21
|
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
22
22
|
let ItWorkFlow = class ItWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status, order
|
|
23
|
+
constructor(request_id, content, status, order) {
|
|
24
24
|
super();
|
|
25
25
|
this.request_id = request_id;
|
|
26
26
|
this.content = content;
|
|
27
27
|
this.status = status;
|
|
28
28
|
this.order = order || null;
|
|
29
|
-
this.service_id = service_id ?? null;
|
|
30
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
31
29
|
}
|
|
32
30
|
};
|
|
33
31
|
exports.ItWorkFlow = ItWorkFlow;
|
|
@@ -35,14 +33,6 @@ __decorate([
|
|
|
35
33
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
36
34
|
__metadata("design:type", Number)
|
|
37
35
|
], ItWorkFlow.prototype, "request_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], ItWorkFlow.prototype, "service_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], ItWorkFlow.prototype, "sub_service_id", void 0);
|
|
46
36
|
__decorate([
|
|
47
37
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
48
38
|
__metadata("design:type", Object)
|
|
@@ -57,5 +47,5 @@ __decorate([
|
|
|
57
47
|
], ItWorkFlow.prototype, "status", void 0);
|
|
58
48
|
exports.ItWorkFlow = ItWorkFlow = __decorate([
|
|
59
49
|
(0, typeorm_1.Entity)({ name: 'it_work_flows' }),
|
|
60
|
-
__metadata("design:paramtypes", [Number, String, String, Number
|
|
50
|
+
__metadata("design:paramtypes", [Number, String, String, Number])
|
|
61
51
|
], ItWorkFlow);
|
|
@@ -3,8 +3,7 @@ export declare enum VpnApprovalStatus {
|
|
|
3
3
|
PENDING = "Pending",
|
|
4
4
|
IN_PROGRESS = "In Progress",
|
|
5
5
|
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
ASSIGNED = "Assigned"
|
|
6
|
+
REJECTED = "Rejected"
|
|
8
7
|
}
|
|
9
8
|
export declare class VpnApprovalDetails extends BaseModel {
|
|
10
9
|
request_id: number;
|
|
@@ -16,6 +15,5 @@ export declare class VpnApprovalDetails extends BaseModel {
|
|
|
16
15
|
approved_by: number | null;
|
|
17
16
|
comment: string;
|
|
18
17
|
approval_status: VpnApprovalStatus;
|
|
19
|
-
|
|
20
|
-
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null, is_manager?: boolean);
|
|
18
|
+
constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null);
|
|
21
19
|
}
|
|
@@ -18,10 +18,9 @@ var VpnApprovalStatus;
|
|
|
18
18
|
VpnApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
19
|
VpnApprovalStatus["APPROVED"] = "Approved";
|
|
20
20
|
VpnApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
VpnApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
21
|
})(VpnApprovalStatus || (exports.VpnApprovalStatus = VpnApprovalStatus = {}));
|
|
23
22
|
let VpnApprovalDetails = class VpnApprovalDetails extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by
|
|
23
|
+
constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by) {
|
|
25
24
|
super();
|
|
26
25
|
this.request_id = request_id;
|
|
27
26
|
this.approver_user_id = approver_user_id;
|
|
@@ -32,7 +31,6 @@ let VpnApprovalDetails = class VpnApprovalDetails extends BaseModel_1.BaseModel
|
|
|
32
31
|
this.department_id = department_id || null;
|
|
33
32
|
this.section_id = section_id || null;
|
|
34
33
|
this.approved_by = approved_by || null;
|
|
35
|
-
this.is_manager = is_manager ?? false;
|
|
36
34
|
}
|
|
37
35
|
};
|
|
38
36
|
exports.VpnApprovalDetails = VpnApprovalDetails;
|
|
@@ -77,11 +75,7 @@ __decorate([
|
|
|
77
75
|
}),
|
|
78
76
|
__metadata("design:type", String)
|
|
79
77
|
], VpnApprovalDetails.prototype, "approval_status", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
82
|
-
__metadata("design:type", Boolean)
|
|
83
|
-
], VpnApprovalDetails.prototype, "is_manager", void 0);
|
|
84
78
|
exports.VpnApprovalDetails = VpnApprovalDetails = __decorate([
|
|
85
79
|
(0, typeorm_1.Entity)({ name: "vpn_approvals" }),
|
|
86
|
-
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object
|
|
80
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object])
|
|
87
81
|
], VpnApprovalDetails);
|
|
@@ -4,10 +4,7 @@ import { CategoryType } from "./WorkflowTaskNames";
|
|
|
4
4
|
export declare class WorkflowTask extends BaseModel {
|
|
5
5
|
task_id: number;
|
|
6
6
|
name: string;
|
|
7
|
-
service_id?: number | null;
|
|
8
|
-
sub_service_id?: number | null;
|
|
9
|
-
service_type?: string | null;
|
|
10
7
|
task_type: TaskType;
|
|
11
8
|
category: CategoryType;
|
|
12
|
-
constructor(name: string, task_id?: number, task_type?: TaskType, category?: CategoryType
|
|
9
|
+
constructor(name: string, task_id?: number, task_type?: TaskType, category?: CategoryType);
|
|
13
10
|
}
|
|
@@ -24,15 +24,12 @@ const WorkflowTaskNames_2 = require("./WorkflowTaskNames");
|
|
|
24
24
|
// NOTIFICATION = 'NOTIFICATION'
|
|
25
25
|
// }
|
|
26
26
|
let WorkflowTask = class WorkflowTask extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(name, task_id, task_type, category
|
|
27
|
+
constructor(name, task_id, task_type, category) {
|
|
28
28
|
super();
|
|
29
29
|
this.name = name;
|
|
30
30
|
this.task_id = task_id || 0;
|
|
31
31
|
this.task_type = task_type || WorkflowTaskNames_1.TaskType.SIMPLE;
|
|
32
32
|
this.category = category || WorkflowTaskNames_2.CategoryType.CREATE;
|
|
33
|
-
this.service_id = service_id ?? null;
|
|
34
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
35
|
-
this.service_type = service_type ?? null;
|
|
36
33
|
}
|
|
37
34
|
};
|
|
38
35
|
exports.WorkflowTask = WorkflowTask;
|
|
@@ -44,18 +41,6 @@ __decorate([
|
|
|
44
41
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
45
42
|
__metadata("design:type", String)
|
|
46
43
|
], WorkflowTask.prototype, "name", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
-
__metadata("design:type", Object)
|
|
50
|
-
], WorkflowTask.prototype, "service_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
-
__metadata("design:type", Object)
|
|
54
|
-
], WorkflowTask.prototype, "sub_service_id", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], WorkflowTask.prototype, "service_type", void 0);
|
|
59
44
|
__decorate([
|
|
60
45
|
(0, typeorm_1.Column)({
|
|
61
46
|
type: 'enum',
|
|
@@ -74,5 +59,5 @@ __decorate([
|
|
|
74
59
|
], WorkflowTask.prototype, "category", void 0);
|
|
75
60
|
exports.WorkflowTask = WorkflowTask = __decorate([
|
|
76
61
|
(0, typeorm_1.Entity)({ name: 'workflow_tasks' }),
|
|
77
|
-
__metadata("design:paramtypes", [String, Number, String, String
|
|
62
|
+
__metadata("design:paramtypes", [String, Number, String, String])
|
|
78
63
|
], WorkflowTask);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -47,6 +47,11 @@ import { VpnWorkFlow } from './models/VpnWorkflowModel';
|
|
|
47
47
|
import { VpnRequestAttachment } from './models/VpnRequestAttachmentModel';
|
|
48
48
|
import { VpnRequestChat } from './models/VpnRequestChatModel';
|
|
49
49
|
|
|
50
|
+
import { HotelReservation } from './models/HotelreservationModel'
|
|
51
|
+
import { HotelApprovalDetails } from './models/HotelApprovalModel';
|
|
52
|
+
import { HotelWorkFlow } from './models/HotelWorkFlowModel';
|
|
53
|
+
import { HotelRequestChat } from './models/HotelChatModel';
|
|
54
|
+
import { HotelRequestAttachment } from './models/HotelAttachedModel';
|
|
50
55
|
|
|
51
56
|
export const AppDataSource = new DataSource({
|
|
52
57
|
type: 'postgres',
|
|
@@ -100,6 +105,11 @@ export const AppDataSource = new DataSource({
|
|
|
100
105
|
VpnApprovalDetails,
|
|
101
106
|
VpnWorkFlow,
|
|
102
107
|
VpnRequestAttachment,
|
|
103
|
-
VpnRequestChat
|
|
108
|
+
VpnRequestChat,
|
|
109
|
+
HotelReservation,
|
|
110
|
+
HotelApprovalDetails,
|
|
111
|
+
HotelWorkFlow,
|
|
112
|
+
HotelRequestChat,
|
|
113
|
+
HotelRequestAttachment
|
|
104
114
|
],
|
|
105
115
|
});
|
package/src/index.ts
CHANGED
|
@@ -42,3 +42,8 @@ export * from './models/VpnApprovalModel';
|
|
|
42
42
|
export * from './models/VpnWorkflowModel';
|
|
43
43
|
export * from './models/VpnRequestChatModel';
|
|
44
44
|
export * from './models/VpnRequestAttachmentModel';
|
|
45
|
+
export * from './models/HotelreservationModel';
|
|
46
|
+
export * from './models/HotelApprovalModel';
|
|
47
|
+
export * from './models/HotelWorkFlowModel';
|
|
48
|
+
export * from './models/HotelChatModel';
|
|
49
|
+
export * from './models/HotelAttachedModel';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export enum HotelApprovalStatus {
|
|
6
|
+
PENDING = "Pending",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'hotelapprovals' })
|
|
13
|
+
|
|
14
|
+
export class HotelApprovalDetails extends BaseModel {
|
|
15
|
+
@Column({ type: 'integer', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'integer', nullable: true })
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: false })
|
|
25
|
+
level: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: false })
|
|
28
|
+
approver_role_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
department_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
section_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
approver_user_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'integer', nullable: true })
|
|
40
|
+
delegate_user_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'integer', nullable: true })
|
|
43
|
+
approved_by: number | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
46
|
+
comment: string;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'enum', enum: HotelApprovalStatus,default: HotelApprovalStatus.PENDING, nullable: false })
|
|
49
|
+
approval_status: HotelApprovalStatus;
|
|
50
|
+
|
|
51
|
+
constructor(
|
|
52
|
+
request_id: number,
|
|
53
|
+
approver_role_id: number,
|
|
54
|
+
comment: string,
|
|
55
|
+
approval_status: HotelApprovalStatus,
|
|
56
|
+
level: number,
|
|
57
|
+
department_id?: number | null,
|
|
58
|
+
section_id?: number | null,
|
|
59
|
+
approver_user_id?: number | null,
|
|
60
|
+
delegate_user_id?: number | null,
|
|
61
|
+
approved_by?: number | null,
|
|
62
|
+
service_id?: number,
|
|
63
|
+
sub_service_id?: number
|
|
64
|
+
) {
|
|
65
|
+
super();
|
|
66
|
+
this.request_id = request_id;
|
|
67
|
+
this.service_id = service_id || null;
|
|
68
|
+
this.sub_service_id = sub_service_id || null;
|
|
69
|
+
this.approver_role_id = approver_role_id;
|
|
70
|
+
this.comment = comment;
|
|
71
|
+
this.approval_status = approval_status;
|
|
72
|
+
this.level = level;
|
|
73
|
+
this.department_id = department_id || null;
|
|
74
|
+
this.section_id = section_id || null;
|
|
75
|
+
this.approver_user_id = approver_user_id || null;
|
|
76
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
77
|
+
this.approved_by = approved_by || null;
|
|
78
|
+
}
|
|
79
|
+
}
|