@platform-modules/civil-aviation-authority 2.3.11 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +20 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +46 -1
- package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
- package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
- package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
- package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
- package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
- package/dist/models/ServiceTransferRequestModel.d.ts +46 -0
- package/dist/models/ServiceTransferRequestModel.js +174 -0
- package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
- package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
- package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
- package/dist/models/TrainingRoomBookingChatModel.js +89 -0
- package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
- package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
- package/package.json +1 -1
- package/src/data-source.ts +225 -205
- package/src/index.ts +26 -0
- package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
- package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
- package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
- package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
- package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/ServiceTransferRequestModel.ts +164 -0
- package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
- package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
- package/src/models/TrainingRoomBookingChatModel.ts +76 -0
- package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
- package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- 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/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
|
@@ -0,0 +1,69 @@
|
|
|
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.TrainingRoomBookingRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let TrainingRoomBookingRequestAttachment = class TrainingRoomBookingRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, uploaded_by, file_url, service_id, sub_service_id, file_name, file_type, file_size, description) {
|
|
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.uploaded_by = uploaded_by;
|
|
22
|
+
this.file_url = file_url;
|
|
23
|
+
this.file_name = file_name || "";
|
|
24
|
+
this.file_type = file_type || "";
|
|
25
|
+
this.file_size = file_size || null;
|
|
26
|
+
this.description = description || "";
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.TrainingRoomBookingRequestAttachment = TrainingRoomBookingRequestAttachment;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], TrainingRoomBookingRequestAttachment.prototype, "request_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], TrainingRoomBookingRequestAttachment.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], TrainingRoomBookingRequestAttachment.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], TrainingRoomBookingRequestAttachment.prototype, "uploaded_by", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], TrainingRoomBookingRequestAttachment.prototype, "file_url", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], TrainingRoomBookingRequestAttachment.prototype, "file_name", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], TrainingRoomBookingRequestAttachment.prototype, "file_type", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], TrainingRoomBookingRequestAttachment.prototype, "file_size", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], TrainingRoomBookingRequestAttachment.prototype, "description", void 0);
|
|
66
|
+
exports.TrainingRoomBookingRequestAttachment = TrainingRoomBookingRequestAttachment = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_request_attachments" }),
|
|
68
|
+
__metadata("design:paramtypes", [Number, Number, String, Object, Object, String, String, Number, String])
|
|
69
|
+
], TrainingRoomBookingRequestAttachment);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum TrainingRoomBookingMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TrainingRoomBookingChatStatus {
|
|
10
|
+
PENDING = "Pending",
|
|
11
|
+
APPROVED = "Approved",
|
|
12
|
+
REJECTED = "Rejected",
|
|
13
|
+
IN_PROGRESS = "In Progress"
|
|
14
|
+
}
|
|
15
|
+
export declare class TrainingRoomBookingRequestChat extends BaseModel {
|
|
16
|
+
request_id: number;
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
sub_service_id: number | null;
|
|
19
|
+
user_id: number;
|
|
20
|
+
message: string;
|
|
21
|
+
approver_role_id: number | null;
|
|
22
|
+
messageType: TrainingRoomBookingMessageType;
|
|
23
|
+
is_internal: boolean;
|
|
24
|
+
status: string;
|
|
25
|
+
constructor(request_id: number, user_id: number, message: string, service_id?: number | null, sub_service_id?: number | null, messageType?: TrainingRoomBookingMessageType, is_internal?: boolean, status?: string, approver_role_id?: number);
|
|
26
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TrainingRoomBookingMessageType;
|
|
16
|
+
(function (TrainingRoomBookingMessageType) {
|
|
17
|
+
TrainingRoomBookingMessageType["TEXT"] = "text";
|
|
18
|
+
TrainingRoomBookingMessageType["IMAGE"] = "image";
|
|
19
|
+
TrainingRoomBookingMessageType["VIDEO"] = "video";
|
|
20
|
+
TrainingRoomBookingMessageType["FILE"] = "file";
|
|
21
|
+
TrainingRoomBookingMessageType["LINK"] = "link";
|
|
22
|
+
})(TrainingRoomBookingMessageType || (exports.TrainingRoomBookingMessageType = TrainingRoomBookingMessageType = {}));
|
|
23
|
+
var TrainingRoomBookingChatStatus;
|
|
24
|
+
(function (TrainingRoomBookingChatStatus) {
|
|
25
|
+
TrainingRoomBookingChatStatus["PENDING"] = "Pending";
|
|
26
|
+
TrainingRoomBookingChatStatus["APPROVED"] = "Approved";
|
|
27
|
+
TrainingRoomBookingChatStatus["REJECTED"] = "Rejected";
|
|
28
|
+
TrainingRoomBookingChatStatus["IN_PROGRESS"] = "In Progress";
|
|
29
|
+
})(TrainingRoomBookingChatStatus || (exports.TrainingRoomBookingChatStatus = TrainingRoomBookingChatStatus = {}));
|
|
30
|
+
let TrainingRoomBookingRequestChat = class TrainingRoomBookingRequestChat extends BaseModel_1.BaseModel {
|
|
31
|
+
constructor(request_id, user_id, message, service_id, sub_service_id, messageType, is_internal, status, approver_role_id) {
|
|
32
|
+
super();
|
|
33
|
+
this.request_id = request_id;
|
|
34
|
+
this.service_id = service_id || null;
|
|
35
|
+
this.sub_service_id = sub_service_id || null;
|
|
36
|
+
this.user_id = user_id;
|
|
37
|
+
this.message = message;
|
|
38
|
+
this.messageType = messageType || TrainingRoomBookingMessageType.TEXT;
|
|
39
|
+
this.is_internal = is_internal || false;
|
|
40
|
+
this.status = status || 'Pending';
|
|
41
|
+
this.approver_role_id = approver_role_id || null;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.TrainingRoomBookingRequestChat = TrainingRoomBookingRequestChat;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], TrainingRoomBookingRequestChat.prototype, "request_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], TrainingRoomBookingRequestChat.prototype, "service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], TrainingRoomBookingRequestChat.prototype, "sub_service_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], TrainingRoomBookingRequestChat.prototype, "user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], TrainingRoomBookingRequestChat.prototype, "message", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], TrainingRoomBookingRequestChat.prototype, "approver_role_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: TrainingRoomBookingMessageType,
|
|
73
|
+
default: TrainingRoomBookingMessageType.TEXT,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], TrainingRoomBookingRequestChat.prototype, "messageType", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], TrainingRoomBookingRequestChat.prototype, "is_internal", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], TrainingRoomBookingRequestChat.prototype, "status", void 0);
|
|
86
|
+
exports.TrainingRoomBookingRequestChat = TrainingRoomBookingRequestChat = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_request_chat" }),
|
|
88
|
+
__metadata("design:paramtypes", [Number, Number, String, Object, Object, String, Boolean, String, Number])
|
|
89
|
+
], TrainingRoomBookingRequestChat);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum TrainingRoomBookingRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare enum TrainingRoomBookingRoomType {
|
|
10
|
+
CLASSROOM_1 = "Classroom 1",
|
|
11
|
+
CLASSROOM_2 = "Classroom 2",
|
|
12
|
+
CLASSROOM_3 = "Classroom 3",
|
|
13
|
+
CLASSROOM_4 = "Classroom 4",
|
|
14
|
+
TRAINING_CENTRE_HALL = "Training Centre Hall"
|
|
15
|
+
}
|
|
16
|
+
export declare class TrainingRoomBookingRequest extends BaseModel {
|
|
17
|
+
req_user_department_id: number | null;
|
|
18
|
+
req_user_section_id: number | null;
|
|
19
|
+
req_user_position_id: number | null;
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
user_id: number;
|
|
23
|
+
purpose_of_training: string;
|
|
24
|
+
date_of_event: Date;
|
|
25
|
+
start_time: string;
|
|
26
|
+
end_time: string;
|
|
27
|
+
room_type: TrainingRoomBookingRoomType;
|
|
28
|
+
network_support_required: boolean;
|
|
29
|
+
meals_required: boolean;
|
|
30
|
+
number_of_attendees: number;
|
|
31
|
+
remarks: string | null;
|
|
32
|
+
status: TrainingRoomBookingRequestStatus;
|
|
33
|
+
reviewer_user_id: number | null;
|
|
34
|
+
assigned_to_user_id: number | null;
|
|
35
|
+
assigned_at: Date | null;
|
|
36
|
+
workflow_execution_id: string | null;
|
|
37
|
+
constructor(user_id: number, purpose_of_training: string, date_of_event: Date, start_time: string, end_time: string, room_type: TrainingRoomBookingRoomType, number_of_attendees: number, network_support_required?: boolean, meals_required?: boolean, status?: TrainingRoomBookingRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null);
|
|
38
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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.TrainingRoomBookingRequest = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TrainingRoomBookingRequestStatus;
|
|
16
|
+
(function (TrainingRoomBookingRequestStatus) {
|
|
17
|
+
TrainingRoomBookingRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
TrainingRoomBookingRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
TrainingRoomBookingRequestStatus["COMPLETED"] = "Completed";
|
|
20
|
+
TrainingRoomBookingRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
TrainingRoomBookingRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(TrainingRoomBookingRequestStatus || (exports.TrainingRoomBookingRequestStatus = TrainingRoomBookingRequestStatus = {}));
|
|
23
|
+
var TrainingRoomBookingRoomType;
|
|
24
|
+
(function (TrainingRoomBookingRoomType) {
|
|
25
|
+
TrainingRoomBookingRoomType["CLASSROOM_1"] = "Classroom 1";
|
|
26
|
+
TrainingRoomBookingRoomType["CLASSROOM_2"] = "Classroom 2";
|
|
27
|
+
TrainingRoomBookingRoomType["CLASSROOM_3"] = "Classroom 3";
|
|
28
|
+
TrainingRoomBookingRoomType["CLASSROOM_4"] = "Classroom 4";
|
|
29
|
+
TrainingRoomBookingRoomType["TRAINING_CENTRE_HALL"] = "Training Centre Hall";
|
|
30
|
+
})(TrainingRoomBookingRoomType || (exports.TrainingRoomBookingRoomType = TrainingRoomBookingRoomType = {}));
|
|
31
|
+
let TrainingRoomBookingRequest = class TrainingRoomBookingRequest extends BaseModel_1.BaseModel {
|
|
32
|
+
constructor(user_id, purpose_of_training, date_of_event, start_time, end_time, room_type, number_of_attendees, network_support_required = false, meals_required = false, status = TrainingRoomBookingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
|
|
33
|
+
super();
|
|
34
|
+
this.user_id = user_id;
|
|
35
|
+
this.purpose_of_training = purpose_of_training;
|
|
36
|
+
this.date_of_event = date_of_event;
|
|
37
|
+
this.start_time = start_time;
|
|
38
|
+
this.end_time = end_time;
|
|
39
|
+
this.room_type = room_type;
|
|
40
|
+
this.number_of_attendees = number_of_attendees;
|
|
41
|
+
this.network_support_required = network_support_required;
|
|
42
|
+
this.meals_required = meals_required;
|
|
43
|
+
this.status = status;
|
|
44
|
+
this.service_id = service_id || null;
|
|
45
|
+
this.sub_service_id = sub_service_id || null;
|
|
46
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
47
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
48
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
49
|
+
this.remarks = remarks || null;
|
|
50
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
51
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
52
|
+
this.assigned_at = assigned_at || null;
|
|
53
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], TrainingRoomBookingRequest.prototype, "req_user_department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TrainingRoomBookingRequest.prototype, "req_user_section_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], TrainingRoomBookingRequest.prototype, "req_user_position_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], TrainingRoomBookingRequest.prototype, "service_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], TrainingRoomBookingRequest.prototype, "sub_service_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], TrainingRoomBookingRequest.prototype, "user_id", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], TrainingRoomBookingRequest.prototype, "purpose_of_training", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], TrainingRoomBookingRequest.prototype, "date_of_event", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "time", nullable: false }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], TrainingRoomBookingRequest.prototype, "start_time", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "time", nullable: false }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], TrainingRoomBookingRequest.prototype, "end_time", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({
|
|
99
|
+
type: "enum",
|
|
100
|
+
enum: TrainingRoomBookingRoomType,
|
|
101
|
+
nullable: false
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], TrainingRoomBookingRequest.prototype, "room_type", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], TrainingRoomBookingRequest.prototype, "network_support_required", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], TrainingRoomBookingRequest.prototype, "meals_required", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], TrainingRoomBookingRequest.prototype, "number_of_attendees", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], TrainingRoomBookingRequest.prototype, "remarks", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({
|
|
123
|
+
type: "enum",
|
|
124
|
+
enum: TrainingRoomBookingRequestStatus,
|
|
125
|
+
default: TrainingRoomBookingRequestStatus.PENDING,
|
|
126
|
+
nullable: false
|
|
127
|
+
}),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], TrainingRoomBookingRequest.prototype, "status", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], TrainingRoomBookingRequest.prototype, "reviewer_user_id", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
136
|
+
__metadata("design:type", Object)
|
|
137
|
+
], TrainingRoomBookingRequest.prototype, "assigned_to_user_id", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], TrainingRoomBookingRequest.prototype, "assigned_at", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], TrainingRoomBookingRequest.prototype, "workflow_execution_id", void 0);
|
|
146
|
+
exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest = __decorate([
|
|
147
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_requests" }),
|
|
148
|
+
__metadata("design:paramtypes", [Number, String, Date, String, String, String, Number, Boolean, Boolean, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
149
|
+
], TrainingRoomBookingRequest);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum TrainingRoomBookingWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class TrainingRoomBookingWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
order: number | null;
|
|
13
|
+
content: string;
|
|
14
|
+
approver_role_id: number | null;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
approved_by: number | null;
|
|
17
|
+
status: TrainingRoomBookingWorkFlowStatus;
|
|
18
|
+
constructor(request_id: number, content: string, status: TrainingRoomBookingWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
|
|
19
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.TrainingRoomBookingWorkFlow = exports.TrainingRoomBookingWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TrainingRoomBookingWorkFlowStatus;
|
|
16
|
+
(function (TrainingRoomBookingWorkFlowStatus) {
|
|
17
|
+
TrainingRoomBookingWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
TrainingRoomBookingWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
TrainingRoomBookingWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
TrainingRoomBookingWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(TrainingRoomBookingWorkFlowStatus || (exports.TrainingRoomBookingWorkFlowStatus = TrainingRoomBookingWorkFlowStatus = {}));
|
|
22
|
+
let TrainingRoomBookingWorkFlow = class TrainingRoomBookingWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
|
|
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.order = order || null;
|
|
31
|
+
this.approver_role_id = approver_role_id || null;
|
|
32
|
+
this.approver_user_id = approver_user_id || null;
|
|
33
|
+
this.approved_by = approved_by || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.TrainingRoomBookingWorkFlow = TrainingRoomBookingWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TrainingRoomBookingWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], TrainingRoomBookingWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], TrainingRoomBookingWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], TrainingRoomBookingWorkFlow.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TrainingRoomBookingWorkFlow.prototype, "content", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], TrainingRoomBookingWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TrainingRoomBookingWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], TrainingRoomBookingWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: TrainingRoomBookingWorkFlowStatus,
|
|
73
|
+
default: TrainingRoomBookingWorkFlowStatus.PENDING,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], TrainingRoomBookingWorkFlow.prototype, "status", void 0);
|
|
78
|
+
exports.TrainingRoomBookingWorkFlow = TrainingRoomBookingWorkFlow = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)({ name: "training_room_booking_workflows" }),
|
|
80
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
81
|
+
], TrainingRoomBookingWorkFlow);
|