@platform-modules/civil-aviation-authority 2.3.157 → 2.3.159
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 +14 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/models/AccommodationRequestModel.d.ts +1 -0
- package/dist/models/AccommodationRequestModel.js +4 -0
- package/dist/models/HallApprovalModel.d.ts +22 -0
- package/dist/models/HallApprovalModel.js +84 -0
- package/dist/models/HallAttachmentModel.d.ts +11 -0
- package/dist/models/HallAttachmentModel.js +52 -0
- package/dist/models/HallChatModel.d.ts +18 -0
- package/dist/models/HallChatModel.js +65 -0
- package/dist/models/HallHistoryModel.d.ts +10 -0
- package/dist/models/HallHistoryModel.js +48 -0
- package/dist/models/HallMasterModel.d.ts +8 -0
- package/dist/models/HallMasterModel.js +40 -0
- package/dist/models/HallRequestModel.d.ts +26 -0
- package/dist/models/HallRequestModel.js +97 -0
- package/dist/models/HallWorkflowModel.d.ts +17 -0
- package/dist/models/HallWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +14 -0
- package/src/index.ts +7 -0
- package/src/models/AccommodationRequestModel.ts +8 -5
- package/src/models/HallApprovalModel.ts +56 -0
- package/src/models/HallAttachmentModel.ts +29 -0
- package/src/models/HallChatModel.ts +42 -0
- package/src/models/HallHistoryModel.ts +26 -0
- package/src/models/HallMasterModel.ts +20 -0
- package/src/models/HallRequestModel.ts +66 -0
- package/src/models/HallWorkflowModel.ts +43 -0
package/dist/data-source.js
CHANGED
|
@@ -131,6 +131,13 @@ const EventSupportApprovalModel_1 = require("./models/EventSupportApprovalModel"
|
|
|
131
131
|
const EventSupportAttachmentModel_1 = require("./models/EventSupportAttachmentModel");
|
|
132
132
|
const EventSupportChatModel_1 = require("./models/EventSupportChatModel");
|
|
133
133
|
const EventSupportWorkflowModel_1 = require("./models/EventSupportWorkflowModel");
|
|
134
|
+
const HallRequestModel_1 = require("./models/HallRequestModel");
|
|
135
|
+
const HallApprovalModel_1 = require("./models/HallApprovalModel");
|
|
136
|
+
const HallWorkflowModel_1 = require("./models/HallWorkflowModel");
|
|
137
|
+
const HallChatModel_1 = require("./models/HallChatModel");
|
|
138
|
+
const HallAttachmentModel_1 = require("./models/HallAttachmentModel");
|
|
139
|
+
const HallHistoryModel_1 = require("./models/HallHistoryModel");
|
|
140
|
+
const HallMasterModel_1 = require("./models/HallMasterModel");
|
|
134
141
|
const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
135
142
|
const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
136
143
|
const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
@@ -290,6 +297,13 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
290
297
|
EventSupportAttachmentModel_1.EventSupportRequestAttachment,
|
|
291
298
|
EventSupportChatModel_1.EventSupportRequestChat,
|
|
292
299
|
EventSupportWorkflowModel_1.EventSupportWorkFlow,
|
|
300
|
+
HallRequestModel_1.HallRequests,
|
|
301
|
+
HallApprovalModel_1.HallApprovalDetails,
|
|
302
|
+
HallWorkflowModel_1.HallWorkFlow,
|
|
303
|
+
HallChatModel_1.HallRequestChat,
|
|
304
|
+
HallAttachmentModel_1.HallRequestAttachment,
|
|
305
|
+
HallHistoryModel_1.HallHistory,
|
|
306
|
+
HallMasterModel_1.HallMaster,
|
|
293
307
|
AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
|
|
294
308
|
AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
|
|
295
309
|
AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
|
package/dist/index.d.ts
CHANGED
|
@@ -104,6 +104,13 @@ export * from './models/EventSupportApprovalModel';
|
|
|
104
104
|
export * from './models/EventSupportAttachmentModel';
|
|
105
105
|
export * from './models/EventSupportChatModel';
|
|
106
106
|
export * from './models/EventSupportWorkflowModel';
|
|
107
|
+
export * from './models/HallRequestModel';
|
|
108
|
+
export * from './models/HallApprovalModel';
|
|
109
|
+
export * from './models/HallWorkflowModel';
|
|
110
|
+
export * from './models/HallChatModel';
|
|
111
|
+
export * from './models/HallAttachmentModel';
|
|
112
|
+
export * from './models/HallHistoryModel';
|
|
113
|
+
export * from './models/HallMasterModel';
|
|
107
114
|
export { CancellationRequestStatus } from './models/CancellationRequestModel';
|
|
108
115
|
export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
|
|
109
116
|
export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
|
package/dist/index.js
CHANGED
|
@@ -132,6 +132,13 @@ __exportStar(require("./models/EventSupportApprovalModel"), exports);
|
|
|
132
132
|
__exportStar(require("./models/EventSupportAttachmentModel"), exports);
|
|
133
133
|
__exportStar(require("./models/EventSupportChatModel"), exports);
|
|
134
134
|
__exportStar(require("./models/EventSupportWorkflowModel"), exports);
|
|
135
|
+
__exportStar(require("./models/HallRequestModel"), exports);
|
|
136
|
+
__exportStar(require("./models/HallApprovalModel"), exports);
|
|
137
|
+
__exportStar(require("./models/HallWorkflowModel"), exports);
|
|
138
|
+
__exportStar(require("./models/HallChatModel"), exports);
|
|
139
|
+
__exportStar(require("./models/HallAttachmentModel"), exports);
|
|
140
|
+
__exportStar(require("./models/HallHistoryModel"), exports);
|
|
141
|
+
__exportStar(require("./models/HallMasterModel"), exports);
|
|
135
142
|
var CancellationRequestModel_1 = require("./models/CancellationRequestModel");
|
|
136
143
|
Object.defineProperty(exports, "CancellationRequestStatus", { enumerable: true, get: function () { return CancellationRequestModel_1.CancellationRequestStatus; } });
|
|
137
144
|
var EventSupportRequestModel_1 = require("./models/EventSupportRequestModel");
|
|
@@ -52,6 +52,7 @@ export declare class AccommodationRequest extends BaseModel {
|
|
|
52
52
|
description: string | null;
|
|
53
53
|
assigned_to_user_id: number | null;
|
|
54
54
|
approver_comment: string | null;
|
|
55
|
+
accommodation_allocated: string | null;
|
|
55
56
|
approved_by: number | null;
|
|
56
57
|
approved_at: Date | null;
|
|
57
58
|
constructor();
|
|
@@ -155,6 +155,10 @@ __decorate([
|
|
|
155
155
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
156
156
|
__metadata("design:type", Object)
|
|
157
157
|
], AccommodationRequest.prototype, "approver_comment", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], AccommodationRequest.prototype, "accommodation_allocated", void 0);
|
|
158
162
|
__decorate([
|
|
159
163
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
160
164
|
__metadata("design:type", Object)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class HallApprovalDetails 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 | null;
|
|
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: HallApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HallApprovalDetails = exports.HallApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallApprovalStatus;
|
|
16
|
+
(function (HallApprovalStatus) {
|
|
17
|
+
HallApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
HallApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
HallApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
HallApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(HallApprovalStatus || (exports.HallApprovalStatus = HallApprovalStatus = {}));
|
|
22
|
+
let HallApprovalDetails = class HallApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.HallApprovalDetails = HallApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], HallApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], HallApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], HallApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], HallApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], HallApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], HallApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], HallApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], HallApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], HallApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], HallApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], HallApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: HallApprovalStatus,
|
|
73
|
+
default: HallApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], HallApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], HallApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.HallApprovalDetails = HallApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: "hall_approvals" })
|
|
84
|
+
], HallApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class HallRequestAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HallRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HallRequestAttachment = class HallRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.HallRequestAttachment = HallRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], HallRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], HallRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], HallRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], HallRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], HallRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], HallRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], HallRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.HallRequestAttachment = HallRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: "hall_attachments" })
|
|
52
|
+
], HallRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class HallRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
message: string;
|
|
16
|
+
messageType: HallMessageType;
|
|
17
|
+
status: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HallRequestChat = exports.HallMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallMessageType;
|
|
16
|
+
(function (HallMessageType) {
|
|
17
|
+
HallMessageType["TEXT"] = "text";
|
|
18
|
+
HallMessageType["IMAGE"] = "image";
|
|
19
|
+
HallMessageType["VIDEO"] = "video";
|
|
20
|
+
HallMessageType["FILE"] = "file";
|
|
21
|
+
HallMessageType["LINK"] = "link";
|
|
22
|
+
})(HallMessageType || (exports.HallMessageType = HallMessageType = {}));
|
|
23
|
+
let HallRequestChat = class HallRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.HallRequestChat = HallRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], HallRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], HallRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], HallRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], HallRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: "enum",
|
|
53
|
+
enum: HallMessageType,
|
|
54
|
+
default: HallMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], HallRequestChat.prototype, "messageType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], HallRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.HallRequestChat = HallRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: "hall_chats" })
|
|
65
|
+
], HallRequestChat);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class HallHistory extends BaseModel {
|
|
3
|
+
hall_id: number | null;
|
|
4
|
+
location_id: number | null;
|
|
5
|
+
department_id: number | null;
|
|
6
|
+
booked_start_date: string | null;
|
|
7
|
+
booked_end_date: string | null;
|
|
8
|
+
from_time: string | null;
|
|
9
|
+
to_time: string | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.HallHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HallHistory = class HallHistory extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.HallHistory = HallHistory;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], HallHistory.prototype, "hall_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], HallHistory.prototype, "location_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallHistory.prototype, "department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallHistory.prototype, "booked_start_date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallHistory.prototype, "booked_end_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], HallHistory.prototype, "from_time", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], HallHistory.prototype, "to_time", void 0);
|
|
46
|
+
exports.HallHistory = HallHistory = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: "hall_histories" })
|
|
48
|
+
], HallHistory);
|
|
@@ -0,0 +1,40 @@
|
|
|
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.HallMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HallMaster = class HallMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.HallMaster = HallMaster;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], HallMaster.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], HallMaster.prototype, "location", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallMaster.prototype, "department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallMaster.prototype, "location_name_in_arabic", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallMaster.prototype, "hall_name_in_arabic", void 0);
|
|
38
|
+
exports.HallMaster = HallMaster = __decorate([
|
|
39
|
+
(0, typeorm_1.Entity)({ name: "halls" })
|
|
40
|
+
], HallMaster);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
CANCELLED = "Cancelled"
|
|
8
|
+
}
|
|
9
|
+
export declare class HallRequests extends BaseModel {
|
|
10
|
+
req_user_department_id: number | null;
|
|
11
|
+
req_user_section_id: number | null;
|
|
12
|
+
service_id: number | null;
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
user_id: number;
|
|
15
|
+
purpose_of_event: string | null;
|
|
16
|
+
hall_id: number | null;
|
|
17
|
+
type_of_hall: string | null;
|
|
18
|
+
start_date: string | null;
|
|
19
|
+
end_date: string | null;
|
|
20
|
+
start_time: string | null;
|
|
21
|
+
end_time: string | null;
|
|
22
|
+
no_of_attendees: number | null;
|
|
23
|
+
remarks: string | null;
|
|
24
|
+
status: HallRequestStatus;
|
|
25
|
+
workflow_execution_id: string | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.HallRequests = exports.HallRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallRequestStatus;
|
|
16
|
+
(function (HallRequestStatus) {
|
|
17
|
+
HallRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
HallRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
HallRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
HallRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
HallRequestStatus["CANCELLED"] = "Cancelled";
|
|
22
|
+
})(HallRequestStatus || (exports.HallRequestStatus = HallRequestStatus = {}));
|
|
23
|
+
let HallRequests = class HallRequests extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.HallRequests = HallRequests;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallRequests.prototype, "req_user_department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallRequests.prototype, "req_user_section_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallRequests.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], HallRequests.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], HallRequests.prototype, "user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], HallRequests.prototype, "purpose_of_event", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], HallRequests.prototype, "hall_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], HallRequests.prototype, "type_of_hall", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], HallRequests.prototype, "start_date", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], HallRequests.prototype, "end_date", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "time", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], HallRequests.prototype, "start_time", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "time", nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], HallRequests.prototype, "end_time", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], HallRequests.prototype, "no_of_attendees", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], HallRequests.prototype, "remarks", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({
|
|
84
|
+
type: "enum",
|
|
85
|
+
enum: HallRequestStatus,
|
|
86
|
+
default: HallRequestStatus.PENDING,
|
|
87
|
+
nullable: false,
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], HallRequests.prototype, "status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], HallRequests.prototype, "workflow_execution_id", void 0);
|
|
95
|
+
exports.HallRequests = HallRequests = __decorate([
|
|
96
|
+
(0, typeorm_1.Entity)({ name: "hall_requests" })
|
|
97
|
+
], HallRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class HallWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: HallWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HallWorkFlow = exports.HallWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallWorkFlowStatus;
|
|
16
|
+
(function (HallWorkFlowStatus) {
|
|
17
|
+
HallWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
HallWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
HallWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(HallWorkFlowStatus || (exports.HallWorkFlowStatus = HallWorkFlowStatus = {}));
|
|
21
|
+
let HallWorkFlow = class HallWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.HallWorkFlow = HallWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], HallWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], HallWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], HallWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], HallWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: "enum",
|
|
43
|
+
enum: HallWorkFlowStatus,
|
|
44
|
+
default: HallWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], HallWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], HallWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], HallWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], HallWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], HallWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.HallWorkFlow = HallWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: "hall_workflows" })
|
|
67
|
+
], HallWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -129,6 +129,13 @@ import { EventSupportApprovalDetails } from './models/EventSupportApprovalModel'
|
|
|
129
129
|
import { EventSupportRequestAttachment } from './models/EventSupportAttachmentModel';
|
|
130
130
|
import { EventSupportRequestChat } from './models/EventSupportChatModel';
|
|
131
131
|
import { EventSupportWorkFlow } from './models/EventSupportWorkflowModel';
|
|
132
|
+
import { HallRequests } from './models/HallRequestModel';
|
|
133
|
+
import { HallApprovalDetails } from './models/HallApprovalModel';
|
|
134
|
+
import { HallWorkFlow } from './models/HallWorkflowModel';
|
|
135
|
+
import { HallRequestChat } from './models/HallChatModel';
|
|
136
|
+
import { HallRequestAttachment } from './models/HallAttachmentModel';
|
|
137
|
+
import { HallHistory } from './models/HallHistoryModel';
|
|
138
|
+
import { HallMaster } from './models/HallMasterModel';
|
|
132
139
|
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
133
140
|
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
134
141
|
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
@@ -289,6 +296,13 @@ export const AppDataSource = new DataSource({
|
|
|
289
296
|
EventSupportRequestAttachment,
|
|
290
297
|
EventSupportRequestChat,
|
|
291
298
|
EventSupportWorkFlow,
|
|
299
|
+
HallRequests,
|
|
300
|
+
HallApprovalDetails,
|
|
301
|
+
HallWorkFlow,
|
|
302
|
+
HallRequestChat,
|
|
303
|
+
HallRequestAttachment,
|
|
304
|
+
HallHistory,
|
|
305
|
+
HallMaster,
|
|
292
306
|
AnnualTrainingPlanRequest,
|
|
293
307
|
AnnualTrainingPlanWorkFlow,
|
|
294
308
|
AnnualTrainingPlanApprovalDetails,
|
package/src/index.ts
CHANGED
|
@@ -110,6 +110,13 @@ export * from './models/EventSupportApprovalModel';
|
|
|
110
110
|
export * from './models/EventSupportAttachmentModel';
|
|
111
111
|
export * from './models/EventSupportChatModel';
|
|
112
112
|
export * from './models/EventSupportWorkflowModel';
|
|
113
|
+
export * from './models/HallRequestModel';
|
|
114
|
+
export * from './models/HallApprovalModel';
|
|
115
|
+
export * from './models/HallWorkflowModel';
|
|
116
|
+
export * from './models/HallChatModel';
|
|
117
|
+
export * from './models/HallAttachmentModel';
|
|
118
|
+
export * from './models/HallHistoryModel';
|
|
119
|
+
export * from './models/HallMasterModel';
|
|
113
120
|
export { CancellationRequestStatus } from './models/CancellationRequestModel';
|
|
114
121
|
export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
|
|
115
122
|
export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
|
|
@@ -134,11 +134,14 @@ export class AccommodationRequest extends BaseModel {
|
|
|
134
134
|
@Column({ type: 'int', nullable: true })
|
|
135
135
|
assigned_to_user_id: number | null;
|
|
136
136
|
|
|
137
|
-
@Column({ type: 'text', nullable: true })
|
|
138
|
-
approver_comment: string | null;
|
|
139
|
-
|
|
140
|
-
@Column({ type: '
|
|
141
|
-
|
|
137
|
+
@Column({ type: 'text', nullable: true })
|
|
138
|
+
approver_comment: string | null;
|
|
139
|
+
|
|
140
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
+
accommodation_allocated: string | null;
|
|
142
|
+
|
|
143
|
+
@Column({ type: 'int', nullable: true })
|
|
144
|
+
approved_by: number | null;
|
|
142
145
|
|
|
143
146
|
@Column({ type: 'date', nullable: true })
|
|
144
147
|
approved_at: Date | null;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HallApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "hall_approvals" })
|
|
12
|
+
export class HallApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: "integer", nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "integer", nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "integer", nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
approver_role_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "varchar", length: 500, nullable: true, default: "" })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
type: "enum",
|
|
48
|
+
enum: HallApprovalStatus,
|
|
49
|
+
default: HallApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: HallApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "hall_attachments" })
|
|
5
|
+
export class HallRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "bigint", nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HallMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "hall_chats" })
|
|
13
|
+
export class HallRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
role_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "text", nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: "enum",
|
|
34
|
+
enum: HallMessageType,
|
|
35
|
+
default: HallMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: HallMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "text", nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "hall_histories" })
|
|
5
|
+
export class HallHistory extends BaseModel {
|
|
6
|
+
@Column({ type: "int", nullable: true })
|
|
7
|
+
hall_id: number | null;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "int", nullable: true })
|
|
10
|
+
location_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "int", nullable: true })
|
|
13
|
+
department_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "date", nullable: true })
|
|
16
|
+
booked_start_date: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "date", nullable: true })
|
|
19
|
+
booked_end_date: string | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
22
|
+
from_time: string | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
25
|
+
to_time: string | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "halls" })
|
|
5
|
+
export class HallMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
7
|
+
name: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
10
|
+
location: string | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "int", nullable: true })
|
|
13
|
+
department_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
16
|
+
location_name_in_arabic: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
19
|
+
hall_name_in_arabic: string | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HallRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
CANCELLED = "Cancelled",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "hall_requests" })
|
|
13
|
+
export class HallRequests extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: true })
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
req_user_section_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: true })
|
|
24
|
+
sub_service_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: false })
|
|
27
|
+
user_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
30
|
+
purpose_of_event: string | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
hall_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
36
|
+
type_of_hall: string | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "date", nullable: true })
|
|
39
|
+
start_date: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "date", nullable: true })
|
|
42
|
+
end_date: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "time", nullable: true })
|
|
45
|
+
start_time: string | null;
|
|
46
|
+
|
|
47
|
+
@Column({ type: "time", nullable: true })
|
|
48
|
+
end_time: string | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: "integer", nullable: true })
|
|
51
|
+
no_of_attendees: number | null;
|
|
52
|
+
|
|
53
|
+
@Column({ type: "text", nullable: true })
|
|
54
|
+
remarks: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({
|
|
57
|
+
type: "enum",
|
|
58
|
+
enum: HallRequestStatus,
|
|
59
|
+
default: HallRequestStatus.PENDING,
|
|
60
|
+
nullable: false,
|
|
61
|
+
})
|
|
62
|
+
status: HallRequestStatus;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "varchar", nullable: true })
|
|
65
|
+
workflow_execution_id: string | null;
|
|
66
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum HallWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: "hall_workflows" })
|
|
11
|
+
export class HallWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: "integer", nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "integer", nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "integer", nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({
|
|
25
|
+
type: "enum",
|
|
26
|
+
enum: HallWorkFlowStatus,
|
|
27
|
+
default: HallWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: HallWorkFlowStatus;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
user_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "integer", nullable: true })
|
|
36
|
+
role_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "integer", nullable: true })
|
|
39
|
+
department_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "integer", nullable: true })
|
|
42
|
+
section_id: number | null;
|
|
43
|
+
}
|