@platform-modules/civil-aviation-authority 2.3.225 → 2.3.227

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.
Files changed (33) hide show
  1. package/dist/data-source.js +12 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +7 -0
  4. package/dist/models/NotificationModel.d.ts +4 -0
  5. package/dist/models/NotificationModel.js +8 -0
  6. package/dist/models/SecurityAwarenessRequestModel.d.ts +4 -0
  7. package/dist/models/SecurityAwarenessRequestModel.js +8 -0
  8. package/dist/models/VipHallApprovalModel.d.ts +22 -0
  9. package/dist/models/VipHallApprovalModel.js +84 -0
  10. package/dist/models/VipHallAttachmentModel.d.ts +11 -0
  11. package/dist/models/VipHallAttachmentModel.js +52 -0
  12. package/dist/models/VipHallChatModel.d.ts +18 -0
  13. package/dist/models/VipHallChatModel.js +65 -0
  14. package/dist/models/VipHallHistoryModel.d.ts +12 -0
  15. package/dist/models/VipHallHistoryModel.js +52 -0
  16. package/dist/models/VipHallRequestModel.d.ts +43 -0
  17. package/dist/models/VipHallRequestModel.js +151 -0
  18. package/dist/models/VipHallWorkflowModel.d.ts +17 -0
  19. package/dist/models/VipHallWorkflowModel.js +67 -0
  20. package/dist/sla/sla-table-sync.service.d.ts +23 -0
  21. package/dist/sla/sla-table-sync.service.js +59 -0
  22. package/package.json +1 -1
  23. package/src/data-source.ts +12 -0
  24. package/src/index.ts +8 -1
  25. package/src/models/NotificationModel.ts +8 -0
  26. package/src/models/SecurityAwarenessRequestModel.ts +8 -0
  27. package/src/models/VipHallApprovalModel.ts +56 -0
  28. package/src/models/VipHallAttachmentModel.ts +29 -0
  29. package/src/models/VipHallChatModel.ts +42 -0
  30. package/src/models/VipHallHistoryModel.ts +30 -0
  31. package/src/models/VipHallRequestModel.ts +114 -0
  32. package/src/models/VipHallWorkflowModel.ts +43 -0
  33. package/src/sla/sla-table-sync.service.ts +87 -0
@@ -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';
@@ -389,3 +395,4 @@ export * from './models/ContractServiceRequestModel';
389
395
  export * from './models/SlaConfigModel';
390
396
  export * from './models/SlaRequestModel';
391
397
  export * from './models/ServiceSlaApprovalModel';
398
+ export * from './sla/sla-table-sync.service';
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);
@@ -568,3 +574,4 @@ __exportStar(require("./models/ContractServiceRequestModel"), exports);
568
574
  __exportStar(require("./models/SlaConfigModel"), exports);
569
575
  __exportStar(require("./models/SlaRequestModel"), exports);
570
576
  __exportStar(require("./models/ServiceSlaApprovalModel"), exports);
577
+ __exportStar(require("./sla/sla-table-sync.service"), exports);
@@ -19,5 +19,9 @@ export declare class Notification extends BaseModel {
19
19
  service_id: number;
20
20
  sub_service_id: number;
21
21
  route_path: string;
22
+ /** Mirrors SLA reminder metadata also stored in `content` for cron-created rows (optional DB migration). */
23
+ is_sla: boolean;
24
+ /** Remaining SLA reminder taps allowed (starts at 3 for SLA cron notifications). Optional column — see `content.sla_count`. */
25
+ sla_count: number | null;
22
26
  constructor(type: NotificationType, user_id: number, role_id: number, department_id: number, section_id: number, content: any, is_read: boolean, request_id: number, service_id: number, sub_service_id: number, route_path: string);
23
27
  }
@@ -86,6 +86,14 @@ __decorate([
86
86
  (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
87
87
  __metadata("design:type", String)
88
88
  ], Notification.prototype, "route_path", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
91
+ __metadata("design:type", Boolean)
92
+ ], Notification.prototype, "is_sla", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
95
+ __metadata("design:type", Object)
96
+ ], Notification.prototype, "sla_count", void 0);
89
97
  exports.Notification = Notification = __decorate([
90
98
  (0, typeorm_1.Entity)({ name: 'notification' }),
91
99
  __metadata("design:paramtypes", [String, Number, Number, Number, Number, Object, Boolean, Number, Number, Number, String])
@@ -13,6 +13,10 @@ export declare enum MediaCoverageRequired {
13
13
  export declare class SecurityAwarenessRequest extends BaseModel {
14
14
  req_user_department_id: number | null;
15
15
  req_user_section_id: number | null;
16
+ /** Target department from create payload (approval routing / reporting). */
17
+ department_id: number | null;
18
+ /** Target section from create payload; may reference a section or be omitted when "All Sections". */
19
+ section_id: number | null;
16
20
  service_id: number;
17
21
  sub_service_id: number;
18
22
  user_id: number;
@@ -54,6 +54,14 @@ __decorate([
54
54
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
55
55
  __metadata("design:type", Object)
56
56
  ], SecurityAwarenessRequest.prototype, "req_user_section_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], SecurityAwarenessRequest.prototype, "department_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], SecurityAwarenessRequest.prototype, "section_id", void 0);
57
65
  __decorate([
58
66
  (0, typeorm_1.Column)({ nullable: true }),
59
67
  __metadata("design:type", Number)
@@ -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
+ }