@platform-modules/civil-aviation-authority 2.3.225 → 2.3.226
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 +12 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/models/VipHallApprovalModel.d.ts +22 -0
- package/dist/models/VipHallApprovalModel.js +84 -0
- package/dist/models/VipHallAttachmentModel.d.ts +11 -0
- package/dist/models/VipHallAttachmentModel.js +52 -0
- package/dist/models/VipHallChatModel.d.ts +18 -0
- package/dist/models/VipHallChatModel.js +65 -0
- package/dist/models/VipHallHistoryModel.d.ts +12 -0
- package/dist/models/VipHallHistoryModel.js +52 -0
- package/dist/models/VipHallRequestModel.d.ts +43 -0
- package/dist/models/VipHallRequestModel.js +151 -0
- package/dist/models/VipHallWorkflowModel.d.ts +17 -0
- package/dist/models/VipHallWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +12 -0
- package/src/index.ts +6 -0
- package/src/models/VipHallApprovalModel.ts +56 -0
- package/src/models/VipHallAttachmentModel.ts +29 -0
- package/src/models/VipHallChatModel.ts +42 -0
- package/src/models/VipHallHistoryModel.ts +30 -0
- package/src/models/VipHallRequestModel.ts +114 -0
- package/src/models/VipHallWorkflowModel.ts +43 -0
package/dist/data-source.js
CHANGED
|
@@ -146,6 +146,12 @@ const MultiPurposeHallWorkflowModel_1 = require("./models/MultiPurposeHallWorkfl
|
|
|
146
146
|
const MultiPurposeHallChatModel_1 = require("./models/MultiPurposeHallChatModel");
|
|
147
147
|
const MultiPurposeHallAttachmentModel_1 = require("./models/MultiPurposeHallAttachmentModel");
|
|
148
148
|
const MultiPurposeHallHistoryModel_1 = require("./models/MultiPurposeHallHistoryModel");
|
|
149
|
+
const VipHallRequestModel_1 = require("./models/VipHallRequestModel");
|
|
150
|
+
const VipHallApprovalModel_1 = require("./models/VipHallApprovalModel");
|
|
151
|
+
const VipHallWorkflowModel_1 = require("./models/VipHallWorkflowModel");
|
|
152
|
+
const VipHallChatModel_1 = require("./models/VipHallChatModel");
|
|
153
|
+
const VipHallAttachmentModel_1 = require("./models/VipHallAttachmentModel");
|
|
154
|
+
const VipHallHistoryModel_1 = require("./models/VipHallHistoryModel");
|
|
149
155
|
const FoodRequestModel_1 = require("./models/FoodRequestModel");
|
|
150
156
|
const FoodApprovalModel_1 = require("./models/FoodApprovalModel");
|
|
151
157
|
const FoodWorkflowModel_1 = require("./models/FoodWorkflowModel");
|
|
@@ -367,6 +373,12 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
367
373
|
MultiPurposeHallChatModel_1.MultiPurposeHallRequestChat,
|
|
368
374
|
MultiPurposeHallAttachmentModel_1.MultiPurposeHallRequestAttachment,
|
|
369
375
|
MultiPurposeHallHistoryModel_1.MultiPurposeHallHistory,
|
|
376
|
+
VipHallRequestModel_1.VipHallRequests,
|
|
377
|
+
VipHallApprovalModel_1.VipHallApprovalDetails,
|
|
378
|
+
VipHallWorkflowModel_1.VipHallWorkFlow,
|
|
379
|
+
VipHallChatModel_1.VipHallRequestChat,
|
|
380
|
+
VipHallAttachmentModel_1.VipHallRequestAttachment,
|
|
381
|
+
VipHallHistoryModel_1.VipHallHistory,
|
|
370
382
|
FoodRequestModel_1.FoodRequests,
|
|
371
383
|
FoodApprovalModel_1.FoodApprovalDetails,
|
|
372
384
|
FoodWorkflowModel_1.FoodWorkFlow,
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,12 @@ export * from './models/MultiPurposeHallWorkflowModel';
|
|
|
118
118
|
export * from './models/MultiPurposeHallChatModel';
|
|
119
119
|
export * from './models/MultiPurposeHallAttachmentModel';
|
|
120
120
|
export * from './models/MultiPurposeHallHistoryModel';
|
|
121
|
+
export * from './models/VipHallRequestModel';
|
|
122
|
+
export * from './models/VipHallApprovalModel';
|
|
123
|
+
export * from './models/VipHallWorkflowModel';
|
|
124
|
+
export * from './models/VipHallChatModel';
|
|
125
|
+
export * from './models/VipHallAttachmentModel';
|
|
126
|
+
export * from './models/VipHallHistoryModel';
|
|
121
127
|
export * from './models/FoodRequestModel';
|
|
122
128
|
export * from './models/FoodApprovalModel';
|
|
123
129
|
export * from './models/FoodWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -146,6 +146,12 @@ __exportStar(require("./models/MultiPurposeHallWorkflowModel"), exports);
|
|
|
146
146
|
__exportStar(require("./models/MultiPurposeHallChatModel"), exports);
|
|
147
147
|
__exportStar(require("./models/MultiPurposeHallAttachmentModel"), exports);
|
|
148
148
|
__exportStar(require("./models/MultiPurposeHallHistoryModel"), exports);
|
|
149
|
+
__exportStar(require("./models/VipHallRequestModel"), exports);
|
|
150
|
+
__exportStar(require("./models/VipHallApprovalModel"), exports);
|
|
151
|
+
__exportStar(require("./models/VipHallWorkflowModel"), exports);
|
|
152
|
+
__exportStar(require("./models/VipHallChatModel"), exports);
|
|
153
|
+
__exportStar(require("./models/VipHallAttachmentModel"), exports);
|
|
154
|
+
__exportStar(require("./models/VipHallHistoryModel"), exports);
|
|
149
155
|
__exportStar(require("./models/FoodRequestModel"), exports);
|
|
150
156
|
__exportStar(require("./models/FoodApprovalModel"), exports);
|
|
151
157
|
__exportStar(require("./models/FoodWorkflowModel"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VipHallApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class VipHallApprovalDetails 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: VipHallApprovalStatus;
|
|
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.VipHallApprovalDetails = exports.VipHallApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VipHallApprovalStatus;
|
|
16
|
+
(function (VipHallApprovalStatus) {
|
|
17
|
+
VipHallApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
VipHallApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
VipHallApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
VipHallApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(VipHallApprovalStatus || (exports.VipHallApprovalStatus = VipHallApprovalStatus = {}));
|
|
22
|
+
let VipHallApprovalDetails = class VipHallApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.VipHallApprovalDetails = VipHallApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], VipHallApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], VipHallApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], VipHallApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], VipHallApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], VipHallApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], VipHallApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], VipHallApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], VipHallApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], VipHallApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], VipHallApprovalDetails.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
|
+
], VipHallApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: VipHallApprovalStatus,
|
|
73
|
+
default: VipHallApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], VipHallApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], VipHallApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.VipHallApprovalDetails = VipHallApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: "vip_hall_approvals" })
|
|
84
|
+
], VipHallApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class VipHallRequestAttachment 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.VipHallRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let VipHallRequestAttachment = class VipHallRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.VipHallRequestAttachment = VipHallRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], VipHallRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], VipHallRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], VipHallRequestAttachment.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
|
+
], VipHallRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], VipHallRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], VipHallRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], VipHallRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], VipHallRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.VipHallRequestAttachment = VipHallRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: "vip_hall_attachments" })
|
|
52
|
+
], VipHallRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VipHallMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class VipHallRequestChat 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: VipHallMessageType;
|
|
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.VipHallRequestChat = exports.VipHallMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VipHallMessageType;
|
|
16
|
+
(function (VipHallMessageType) {
|
|
17
|
+
VipHallMessageType["TEXT"] = "text";
|
|
18
|
+
VipHallMessageType["IMAGE"] = "image";
|
|
19
|
+
VipHallMessageType["VIDEO"] = "video";
|
|
20
|
+
VipHallMessageType["FILE"] = "file";
|
|
21
|
+
VipHallMessageType["LINK"] = "link";
|
|
22
|
+
})(VipHallMessageType || (exports.VipHallMessageType = VipHallMessageType = {}));
|
|
23
|
+
let VipHallRequestChat = class VipHallRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.VipHallRequestChat = VipHallRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], VipHallRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], VipHallRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], VipHallRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], VipHallRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], VipHallRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], VipHallRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: "enum",
|
|
53
|
+
enum: VipHallMessageType,
|
|
54
|
+
default: VipHallMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], VipHallRequestChat.prototype, "messageType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], VipHallRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.VipHallRequestChat = VipHallRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: "vip_hall_chats" })
|
|
65
|
+
], VipHallRequestChat);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class VipHallHistory extends BaseModel {
|
|
3
|
+
/** Source `vip_hall_requests.id` when history was created on final approval. */
|
|
4
|
+
request_id: number | null;
|
|
5
|
+
hall_id: number | null;
|
|
6
|
+
location_id: number | null;
|
|
7
|
+
department_id: number | null;
|
|
8
|
+
booked_start_date: string | null;
|
|
9
|
+
booked_end_date: string | null;
|
|
10
|
+
from_time: string | null;
|
|
11
|
+
to_time: string | null;
|
|
12
|
+
}
|
|
@@ -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.VipHallHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let VipHallHistory = class VipHallHistory extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.VipHallHistory = VipHallHistory;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], VipHallHistory.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], VipHallHistory.prototype, "hall_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], VipHallHistory.prototype, "location_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], VipHallHistory.prototype, "department_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], VipHallHistory.prototype, "booked_start_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], VipHallHistory.prototype, "booked_end_date", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], VipHallHistory.prototype, "from_time", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], VipHallHistory.prototype, "to_time", void 0);
|
|
50
|
+
exports.VipHallHistory = VipHallHistory = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: "vip_hall_histories" })
|
|
52
|
+
], VipHallHistory);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VipHallRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
CANCELLED = "Cancelled"
|
|
8
|
+
}
|
|
9
|
+
export declare enum VipHallInternalExternal {
|
|
10
|
+
INTERNAL = "Internal",
|
|
11
|
+
EXTERNAL = "External"
|
|
12
|
+
}
|
|
13
|
+
export declare enum VipHallMealType {
|
|
14
|
+
BREAKFAST = "Breakfast",
|
|
15
|
+
LUNCH = "Lunch",
|
|
16
|
+
DINNER = "Dinner"
|
|
17
|
+
}
|
|
18
|
+
export declare class VipHallRequests extends BaseModel {
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
service_id: number | null;
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
hall_id: number | null;
|
|
24
|
+
location_id: number | null;
|
|
25
|
+
department_id: number | null;
|
|
26
|
+
user_id: number;
|
|
27
|
+
event_type: VipHallInternalExternal;
|
|
28
|
+
request_type: VipHallInternalExternal;
|
|
29
|
+
event_date: string;
|
|
30
|
+
event_start_time: string;
|
|
31
|
+
event_end_time: string;
|
|
32
|
+
/** Purpose of the meeting (mandatory in API validation). */
|
|
33
|
+
meeting_purpose: string;
|
|
34
|
+
meal_required: boolean;
|
|
35
|
+
meal_type: VipHallMealType | null;
|
|
36
|
+
network_support_required: boolean;
|
|
37
|
+
media_coverage_required: boolean;
|
|
38
|
+
project_maintenance_support_required: boolean;
|
|
39
|
+
number_of_guests: number | null;
|
|
40
|
+
special_requirements: string | null;
|
|
41
|
+
status: VipHallRequestStatus;
|
|
42
|
+
workflow_execution_id: string | null;
|
|
43
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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.VipHallRequests = exports.VipHallMealType = exports.VipHallInternalExternal = exports.VipHallRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VipHallRequestStatus;
|
|
16
|
+
(function (VipHallRequestStatus) {
|
|
17
|
+
VipHallRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
VipHallRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
VipHallRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
VipHallRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
VipHallRequestStatus["CANCELLED"] = "Cancelled";
|
|
22
|
+
})(VipHallRequestStatus || (exports.VipHallRequestStatus = VipHallRequestStatus = {}));
|
|
23
|
+
var VipHallInternalExternal;
|
|
24
|
+
(function (VipHallInternalExternal) {
|
|
25
|
+
VipHallInternalExternal["INTERNAL"] = "Internal";
|
|
26
|
+
VipHallInternalExternal["EXTERNAL"] = "External";
|
|
27
|
+
})(VipHallInternalExternal || (exports.VipHallInternalExternal = VipHallInternalExternal = {}));
|
|
28
|
+
var VipHallMealType;
|
|
29
|
+
(function (VipHallMealType) {
|
|
30
|
+
VipHallMealType["BREAKFAST"] = "Breakfast";
|
|
31
|
+
VipHallMealType["LUNCH"] = "Lunch";
|
|
32
|
+
VipHallMealType["DINNER"] = "Dinner";
|
|
33
|
+
})(VipHallMealType || (exports.VipHallMealType = VipHallMealType = {}));
|
|
34
|
+
let VipHallRequests = class VipHallRequests extends BaseModel_1.BaseModel {
|
|
35
|
+
};
|
|
36
|
+
exports.VipHallRequests = VipHallRequests;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], VipHallRequests.prototype, "req_user_department_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], VipHallRequests.prototype, "req_user_section_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], VipHallRequests.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], VipHallRequests.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], VipHallRequests.prototype, "hall_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], VipHallRequests.prototype, "location_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], VipHallRequests.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], VipHallRequests.prototype, "user_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: VipHallInternalExternal,
|
|
73
|
+
enumName: "vip_hall_event_type_en",
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], VipHallRequests.prototype, "event_type", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({
|
|
80
|
+
type: "enum",
|
|
81
|
+
enum: VipHallInternalExternal,
|
|
82
|
+
enumName: "vip_hall_request_type_en",
|
|
83
|
+
nullable: false,
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], VipHallRequests.prototype, "request_type", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], VipHallRequests.prototype, "event_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "time", nullable: false }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], VipHallRequests.prototype, "event_start_time", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "time", nullable: false }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], VipHallRequests.prototype, "event_end_time", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], VipHallRequests.prototype, "meeting_purpose", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
105
|
+
__metadata("design:type", Boolean)
|
|
106
|
+
], VipHallRequests.prototype, "meal_required", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({
|
|
109
|
+
type: "enum",
|
|
110
|
+
enum: VipHallMealType,
|
|
111
|
+
enumName: "vip_hall_meal_type_en",
|
|
112
|
+
nullable: true,
|
|
113
|
+
}),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], VipHallRequests.prototype, "meal_type", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
118
|
+
__metadata("design:type", Boolean)
|
|
119
|
+
], VipHallRequests.prototype, "network_support_required", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
122
|
+
__metadata("design:type", Boolean)
|
|
123
|
+
], VipHallRequests.prototype, "media_coverage_required", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
126
|
+
__metadata("design:type", Boolean)
|
|
127
|
+
], VipHallRequests.prototype, "project_maintenance_support_required", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], VipHallRequests.prototype, "number_of_guests", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
134
|
+
__metadata("design:type", Object)
|
|
135
|
+
], VipHallRequests.prototype, "special_requirements", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({
|
|
138
|
+
type: "enum",
|
|
139
|
+
enum: VipHallRequestStatus,
|
|
140
|
+
default: VipHallRequestStatus.PENDING,
|
|
141
|
+
nullable: false,
|
|
142
|
+
}),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], VipHallRequests.prototype, "status", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], VipHallRequests.prototype, "workflow_execution_id", void 0);
|
|
149
|
+
exports.VipHallRequests = VipHallRequests = __decorate([
|
|
150
|
+
(0, typeorm_1.Entity)({ name: "vip_hall_requests" })
|
|
151
|
+
], VipHallRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum VipHallWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class VipHallWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: VipHallWorkFlowStatus;
|
|
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.VipHallWorkFlow = exports.VipHallWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VipHallWorkFlowStatus;
|
|
16
|
+
(function (VipHallWorkFlowStatus) {
|
|
17
|
+
VipHallWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
VipHallWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
VipHallWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(VipHallWorkFlowStatus || (exports.VipHallWorkFlowStatus = VipHallWorkFlowStatus = {}));
|
|
21
|
+
let VipHallWorkFlow = class VipHallWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.VipHallWorkFlow = VipHallWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], VipHallWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], VipHallWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], VipHallWorkFlow.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
|
+
], VipHallWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: "enum",
|
|
43
|
+
enum: VipHallWorkFlowStatus,
|
|
44
|
+
default: VipHallWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], VipHallWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], VipHallWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], VipHallWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], VipHallWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], VipHallWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.VipHallWorkFlow = VipHallWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: "vip_hall_workflows" })
|
|
67
|
+
], VipHallWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -144,6 +144,12 @@ import { MultiPurposeHallWorkFlow } from './models/MultiPurposeHallWorkflowModel
|
|
|
144
144
|
import { MultiPurposeHallRequestChat } from './models/MultiPurposeHallChatModel';
|
|
145
145
|
import { MultiPurposeHallRequestAttachment } from './models/MultiPurposeHallAttachmentModel';
|
|
146
146
|
import { MultiPurposeHallHistory } from './models/MultiPurposeHallHistoryModel';
|
|
147
|
+
import { VipHallRequests } from './models/VipHallRequestModel';
|
|
148
|
+
import { VipHallApprovalDetails } from './models/VipHallApprovalModel';
|
|
149
|
+
import { VipHallWorkFlow } from './models/VipHallWorkflowModel';
|
|
150
|
+
import { VipHallRequestChat } from './models/VipHallChatModel';
|
|
151
|
+
import { VipHallRequestAttachment } from './models/VipHallAttachmentModel';
|
|
152
|
+
import { VipHallHistory } from './models/VipHallHistoryModel';
|
|
147
153
|
import { FoodRequests } from './models/FoodRequestModel';
|
|
148
154
|
import { FoodApprovalDetails } from './models/FoodApprovalModel';
|
|
149
155
|
import { FoodWorkFlow } from './models/FoodWorkflowModel';
|
|
@@ -366,6 +372,12 @@ export const AppDataSource = new DataSource({
|
|
|
366
372
|
MultiPurposeHallRequestChat,
|
|
367
373
|
MultiPurposeHallRequestAttachment,
|
|
368
374
|
MultiPurposeHallHistory,
|
|
375
|
+
VipHallRequests,
|
|
376
|
+
VipHallApprovalDetails,
|
|
377
|
+
VipHallWorkFlow,
|
|
378
|
+
VipHallRequestChat,
|
|
379
|
+
VipHallRequestAttachment,
|
|
380
|
+
VipHallHistory,
|
|
369
381
|
FoodRequests,
|
|
370
382
|
FoodApprovalDetails,
|
|
371
383
|
FoodWorkFlow,
|
package/src/index.ts
CHANGED
|
@@ -124,6 +124,12 @@ export * from './models/MultiPurposeHallWorkflowModel';
|
|
|
124
124
|
export * from './models/MultiPurposeHallChatModel';
|
|
125
125
|
export * from './models/MultiPurposeHallAttachmentModel';
|
|
126
126
|
export * from './models/MultiPurposeHallHistoryModel';
|
|
127
|
+
export * from './models/VipHallRequestModel';
|
|
128
|
+
export * from './models/VipHallApprovalModel';
|
|
129
|
+
export * from './models/VipHallWorkflowModel';
|
|
130
|
+
export * from './models/VipHallChatModel';
|
|
131
|
+
export * from './models/VipHallAttachmentModel';
|
|
132
|
+
export * from './models/VipHallHistoryModel';
|
|
127
133
|
export * from './models/FoodRequestModel';
|
|
128
134
|
export * from './models/FoodApprovalModel';
|
|
129
135
|
export * from './models/FoodWorkflowModel';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum VipHallApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "vip_hall_approvals" })
|
|
12
|
+
export class VipHallApprovalDetails 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: VipHallApprovalStatus,
|
|
49
|
+
default: VipHallApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: VipHallApprovalStatus;
|
|
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: "vip_hall_attachments" })
|
|
5
|
+
export class VipHallRequestAttachment 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 VipHallMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "vip_hall_chats" })
|
|
13
|
+
export class VipHallRequestChat 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: VipHallMessageType,
|
|
35
|
+
default: VipHallMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: VipHallMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "text", nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "vip_hall_histories" })
|
|
5
|
+
export class VipHallHistory extends BaseModel {
|
|
6
|
+
/** Source `vip_hall_requests.id` when history was created on final approval. */
|
|
7
|
+
@Column({ type: "int", nullable: true })
|
|
8
|
+
request_id: number | null;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "int", nullable: true })
|
|
11
|
+
hall_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "int", nullable: true })
|
|
14
|
+
location_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "int", nullable: true })
|
|
17
|
+
department_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "date", nullable: true })
|
|
20
|
+
booked_start_date: string | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "date", nullable: true })
|
|
23
|
+
booked_end_date: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
26
|
+
from_time: string | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
29
|
+
to_time: string | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum VipHallRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
CANCELLED = "Cancelled",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum VipHallInternalExternal {
|
|
13
|
+
INTERNAL = "Internal",
|
|
14
|
+
EXTERNAL = "External",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum VipHallMealType {
|
|
18
|
+
BREAKFAST = "Breakfast",
|
|
19
|
+
LUNCH = "Lunch",
|
|
20
|
+
DINNER = "Dinner",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Entity({ name: "vip_hall_requests" })
|
|
24
|
+
export class VipHallRequests extends BaseModel {
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
req_user_department_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
req_user_section_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
service_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
sub_service_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: true })
|
|
38
|
+
hall_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: true })
|
|
41
|
+
location_id: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "integer", nullable: true })
|
|
44
|
+
department_id: number | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: "integer", nullable: false })
|
|
47
|
+
user_id: number;
|
|
48
|
+
|
|
49
|
+
@Column({
|
|
50
|
+
type: "enum",
|
|
51
|
+
enum: VipHallInternalExternal,
|
|
52
|
+
enumName: "vip_hall_event_type_en",
|
|
53
|
+
nullable: false,
|
|
54
|
+
})
|
|
55
|
+
event_type: VipHallInternalExternal;
|
|
56
|
+
|
|
57
|
+
@Column({
|
|
58
|
+
type: "enum",
|
|
59
|
+
enum: VipHallInternalExternal,
|
|
60
|
+
enumName: "vip_hall_request_type_en",
|
|
61
|
+
nullable: false,
|
|
62
|
+
})
|
|
63
|
+
request_type: VipHallInternalExternal;
|
|
64
|
+
|
|
65
|
+
@Column({ type: "date", nullable: false })
|
|
66
|
+
event_date: string;
|
|
67
|
+
|
|
68
|
+
@Column({ type: "time", nullable: false })
|
|
69
|
+
event_start_time: string;
|
|
70
|
+
|
|
71
|
+
@Column({ type: "time", nullable: false })
|
|
72
|
+
event_end_time: string;
|
|
73
|
+
|
|
74
|
+
/** Purpose of the meeting (mandatory in API validation). */
|
|
75
|
+
@Column({ type: "text", nullable: false })
|
|
76
|
+
meeting_purpose: string;
|
|
77
|
+
|
|
78
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
79
|
+
meal_required: boolean;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
type: "enum",
|
|
83
|
+
enum: VipHallMealType,
|
|
84
|
+
enumName: "vip_hall_meal_type_en",
|
|
85
|
+
nullable: true,
|
|
86
|
+
})
|
|
87
|
+
meal_type: VipHallMealType | null;
|
|
88
|
+
|
|
89
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
90
|
+
network_support_required: boolean;
|
|
91
|
+
|
|
92
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
93
|
+
media_coverage_required: boolean;
|
|
94
|
+
|
|
95
|
+
@Column({ type: "boolean", default: false, nullable: false })
|
|
96
|
+
project_maintenance_support_required: boolean;
|
|
97
|
+
|
|
98
|
+
@Column({ type: "integer", nullable: true })
|
|
99
|
+
number_of_guests: number | null;
|
|
100
|
+
|
|
101
|
+
@Column({ type: "text", nullable: true })
|
|
102
|
+
special_requirements: string | null;
|
|
103
|
+
|
|
104
|
+
@Column({
|
|
105
|
+
type: "enum",
|
|
106
|
+
enum: VipHallRequestStatus,
|
|
107
|
+
default: VipHallRequestStatus.PENDING,
|
|
108
|
+
nullable: false,
|
|
109
|
+
})
|
|
110
|
+
status: VipHallRequestStatus;
|
|
111
|
+
|
|
112
|
+
@Column({ type: "varchar", nullable: true })
|
|
113
|
+
workflow_execution_id: string | null;
|
|
114
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum VipHallWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: "vip_hall_workflows" })
|
|
11
|
+
export class VipHallWorkFlow 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: VipHallWorkFlowStatus,
|
|
27
|
+
default: VipHallWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: VipHallWorkFlowStatus;
|
|
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
|
+
}
|