@platform-modules/foreign-ministry 1.3.135 → 1.3.136

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.
@@ -170,6 +170,11 @@ const MeetingAttachmentModel_1 = require("./models/MeetingAttachmentModel");
170
170
  const MeetingChatModel_1 = require("./models/MeetingChatModel");
171
171
  const MeetingWorkflowModel_1 = require("./models/MeetingWorkflowModel");
172
172
  const MeetingAttendeeModel_1 = require("./models/MeetingAttendeeModel");
173
+ const HallRequestModel_1 = require("./models/HallRequestModel");
174
+ const HallApprovalModel_1 = require("./models/HallApprovalModel");
175
+ const HallAttachmentModel_1 = require("./models/HallAttachmentModel");
176
+ const HallChatModel_1 = require("./models/HallChatModel");
177
+ const HallWorkflowModel_1 = require("./models/HallWorkflowModel");
173
178
  exports.AppDataSource = new typeorm_1.DataSource({
174
179
  type: 'postgres',
175
180
  host: process.env.DB_HOST || 'localhost',
@@ -345,5 +350,10 @@ exports.AppDataSource = new typeorm_1.DataSource({
345
350
  MeetingChatModel_1.MeetingRequestChat,
346
351
  MeetingWorkflowModel_1.MeetingWorkFlow,
347
352
  MeetingAttendeeModel_1.MeetingAttendees,
353
+ HallRequestModel_1.HallRequests,
354
+ HallApprovalModel_1.HallApprovalDetails,
355
+ HallAttachmentModel_1.HallRequestAttachment,
356
+ HallChatModel_1.HallRequestChat,
357
+ HallWorkflowModel_1.HallWorkFlow,
348
358
  ],
349
359
  });
package/dist/index.d.ts CHANGED
@@ -260,6 +260,11 @@ export * from './models/MeetingAttachmentModel';
260
260
  export * from './models/MeetingChatModel';
261
261
  export * from './models/MeetingWorkflowModel';
262
262
  export * from './models/MeetingAttendeeModel';
263
+ export * from './models/HallRequestModel';
264
+ export * from './models/HallApprovalModel';
265
+ export * from './models/HallAttachmentModel';
266
+ export * from './models/HallChatModel';
267
+ export * from './models/HallWorkflowModel';
263
268
  export * from './models/EmployeeMilestonesModel';
264
269
  export * from './models/EmployeeMilestoneDetailsModel';
265
270
  export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
package/dist/index.js CHANGED
@@ -320,6 +320,12 @@ __exportStar(require("./models/MeetingAttachmentModel"), exports);
320
320
  __exportStar(require("./models/MeetingChatModel"), exports);
321
321
  __exportStar(require("./models/MeetingWorkflowModel"), exports);
322
322
  __exportStar(require("./models/MeetingAttendeeModel"), exports);
323
+ // Hall Models
324
+ __exportStar(require("./models/HallRequestModel"), exports);
325
+ __exportStar(require("./models/HallApprovalModel"), exports);
326
+ __exportStar(require("./models/HallAttachmentModel"), exports);
327
+ __exportStar(require("./models/HallChatModel"), exports);
328
+ __exportStar(require("./models/HallWorkflowModel"), exports);
323
329
  // Employee Milestones Models
324
330
  __exportStar(require("./models/EmployeeMilestonesModel"), exports);
325
331
  __exportStar(require("./models/EmployeeMilestoneDetailsModel"), exports);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ import { MeetingApprovalStatus } from './MeetingApprovalModel';
3
+ export declare class HallApprovalDetails extends BaseModel {
4
+ request_id: number;
5
+ service_id: number | null;
6
+ sub_service_id: number | null;
7
+ level: number;
8
+ approver_role_id: number;
9
+ department_id: number | null;
10
+ section_id: number | null;
11
+ approver_user_id: number | null;
12
+ delegate_user_id: number | null;
13
+ approved_by: number | null;
14
+ comment: string;
15
+ approval_status: MeetingApprovalStatus;
16
+ is_allowed: boolean;
17
+ }
@@ -0,0 +1,78 @@
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 = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const MeetingApprovalModel_1 = require("./MeetingApprovalModel");
16
+ let HallApprovalDetails = class HallApprovalDetails extends BaseModel_1.BaseModel {
17
+ };
18
+ exports.HallApprovalDetails = HallApprovalDetails;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
21
+ __metadata("design:type", Number)
22
+ ], HallApprovalDetails.prototype, "request_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
25
+ __metadata("design:type", Object)
26
+ ], HallApprovalDetails.prototype, "service_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], HallApprovalDetails.prototype, "sub_service_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
33
+ __metadata("design:type", Number)
34
+ ], HallApprovalDetails.prototype, "level", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
37
+ __metadata("design:type", Number)
38
+ ], HallApprovalDetails.prototype, "approver_role_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], HallApprovalDetails.prototype, "department_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], HallApprovalDetails.prototype, "section_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], HallApprovalDetails.prototype, "approver_user_id", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
53
+ __metadata("design:type", Object)
54
+ ], HallApprovalDetails.prototype, "delegate_user_id", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], HallApprovalDetails.prototype, "approved_by", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
61
+ __metadata("design:type", String)
62
+ ], HallApprovalDetails.prototype, "comment", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({
65
+ type: 'enum',
66
+ enum: MeetingApprovalModel_1.MeetingApprovalStatus,
67
+ default: MeetingApprovalModel_1.MeetingApprovalStatus.PENDING,
68
+ nullable: false,
69
+ }),
70
+ __metadata("design:type", String)
71
+ ], HallApprovalDetails.prototype, "approval_status", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
74
+ __metadata("design:type", Boolean)
75
+ ], HallApprovalDetails.prototype, "is_allowed", void 0);
76
+ exports.HallApprovalDetails = HallApprovalDetails = __decorate([
77
+ (0, typeorm_1.Entity)({ name: 'hall_approvals' })
78
+ ], 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,13 @@
1
+ import { BaseModel } from './BaseModel';
2
+ import { MeetingMessageType } from './MeetingChatModel';
3
+ export declare class HallRequestChat extends BaseModel {
4
+ request_id: number;
5
+ service_id: number | null;
6
+ sub_service_id: number | null;
7
+ user_id: number;
8
+ role_id: number | null;
9
+ message: string;
10
+ messageType: MeetingMessageType;
11
+ status: string | null;
12
+ constructor(request_id?: number, user_id?: number, role_id?: number | null, message?: string, service_id?: number | null, sub_service_id?: number | null, messageType?: MeetingMessageType, status?: string);
13
+ }
@@ -0,0 +1,70 @@
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 = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const MeetingChatModel_1 = require("./MeetingChatModel");
16
+ let HallRequestChat = class HallRequestChat extends BaseModel_1.BaseModel {
17
+ constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
18
+ super();
19
+ this.request_id = request_id ?? 0;
20
+ this.service_id = service_id ?? null;
21
+ this.sub_service_id = sub_service_id ?? null;
22
+ this.user_id = user_id ?? 0;
23
+ this.role_id = role_id ?? null;
24
+ this.message = message ?? '';
25
+ this.messageType = messageType ?? MeetingChatModel_1.MeetingMessageType.TEXT;
26
+ this.status = status ?? 'Pending';
27
+ }
28
+ };
29
+ exports.HallRequestChat = HallRequestChat;
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
32
+ __metadata("design:type", Number)
33
+ ], HallRequestChat.prototype, "request_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], HallRequestChat.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], HallRequestChat.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
44
+ __metadata("design:type", Number)
45
+ ], HallRequestChat.prototype, "user_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], HallRequestChat.prototype, "role_id", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
52
+ __metadata("design:type", String)
53
+ ], HallRequestChat.prototype, "message", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({
56
+ type: 'enum',
57
+ enum: MeetingChatModel_1.MeetingMessageType,
58
+ default: MeetingChatModel_1.MeetingMessageType.TEXT,
59
+ nullable: false,
60
+ }),
61
+ __metadata("design:type", String)
62
+ ], HallRequestChat.prototype, "messageType", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], HallRequestChat.prototype, "status", void 0);
67
+ exports.HallRequestChat = HallRequestChat = __decorate([
68
+ (0, typeorm_1.Entity)({ name: 'hall_chats' }),
69
+ __metadata("design:paramtypes", [Number, Number, Object, String, Object, Object, String, String])
70
+ ], HallRequestChat);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ import { MeetingRequestStatus } from './MeetingRequestModel';
3
+ export declare class HallRequests extends BaseModel {
4
+ req_user_department_id: number | null;
5
+ req_user_section_id: number | null;
6
+ service_id: number | null;
7
+ sub_service_id: number | null;
8
+ user_id: number;
9
+ meeting_id: number | null;
10
+ hall_id: number | null;
11
+ date: string | null;
12
+ from_time: string | null;
13
+ to_time: string | null;
14
+ location_id: number | null;
15
+ status: MeetingRequestStatus;
16
+ workflow_execution_id: string | null;
17
+ }
@@ -0,0 +1,73 @@
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 = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const MeetingRequestModel_1 = require("./MeetingRequestModel");
16
+ let HallRequests = class HallRequests extends BaseModel_1.BaseModel {
17
+ };
18
+ exports.HallRequests = HallRequests;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
21
+ __metadata("design:type", Object)
22
+ ], HallRequests.prototype, "req_user_department_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
25
+ __metadata("design:type", Object)
26
+ ], HallRequests.prototype, "req_user_section_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], HallRequests.prototype, "service_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], HallRequests.prototype, "sub_service_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
37
+ __metadata("design:type", Number)
38
+ ], HallRequests.prototype, "user_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], HallRequests.prototype, "meeting_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], HallRequests.prototype, "hall_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], HallRequests.prototype, "date", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'time', nullable: true }),
53
+ __metadata("design:type", Object)
54
+ ], HallRequests.prototype, "from_time", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'time', nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], HallRequests.prototype, "to_time", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], HallRequests.prototype, "location_id", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: 'enum', enum: MeetingRequestModel_1.MeetingRequestStatus, default: MeetingRequestModel_1.MeetingRequestStatus.PENDING, nullable: false }),
65
+ __metadata("design:type", String)
66
+ ], HallRequests.prototype, "status", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
69
+ __metadata("design:type", Object)
70
+ ], HallRequests.prototype, "workflow_execution_id", void 0);
71
+ exports.HallRequests = HallRequests = __decorate([
72
+ (0, typeorm_1.Entity)({ name: 'hall_requests' })
73
+ ], HallRequests);
@@ -0,0 +1,13 @@
1
+ import { BaseModel } from './BaseModel';
2
+ import { MeetingWorkFlowStatus } from './MeetingWorkflowModel';
3
+ export declare class HallWorkFlow extends BaseModel {
4
+ request_id: number;
5
+ service_id: number | null;
6
+ sub_service_id: number | null;
7
+ content: string;
8
+ status: MeetingWorkFlowStatus;
9
+ user_id: number | null;
10
+ role_id: number | null;
11
+ department_id: number | null;
12
+ section_id: number | null;
13
+ }
@@ -0,0 +1,57 @@
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 = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const MeetingWorkflowModel_1 = require("./MeetingWorkflowModel");
16
+ let HallWorkFlow = class HallWorkFlow extends BaseModel_1.BaseModel {
17
+ };
18
+ exports.HallWorkFlow = HallWorkFlow;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
21
+ __metadata("design:type", Number)
22
+ ], HallWorkFlow.prototype, "request_id", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
25
+ __metadata("design:type", Object)
26
+ ], HallWorkFlow.prototype, "service_id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
29
+ __metadata("design:type", Object)
30
+ ], HallWorkFlow.prototype, "sub_service_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
33
+ __metadata("design:type", String)
34
+ ], HallWorkFlow.prototype, "content", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'enum', enum: MeetingWorkflowModel_1.MeetingWorkFlowStatus, default: MeetingWorkflowModel_1.MeetingWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
37
+ __metadata("design:type", String)
38
+ ], HallWorkFlow.prototype, "status", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], HallWorkFlow.prototype, "user_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], HallWorkFlow.prototype, "role_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], HallWorkFlow.prototype, "department_id", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
53
+ __metadata("design:type", Object)
54
+ ], HallWorkFlow.prototype, "section_id", void 0);
55
+ exports.HallWorkFlow = HallWorkFlow = __decorate([
56
+ (0, typeorm_1.Entity)({ name: 'hall_workflows' })
57
+ ], HallWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.135",
3
+ "version": "1.3.136",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -176,6 +176,11 @@ import { MeetingRequestAttachment } from './models/MeetingAttachmentModel';
176
176
  import { MeetingRequestChat } from './models/MeetingChatModel';
177
177
  import { MeetingWorkFlow } from './models/MeetingWorkflowModel';
178
178
  import { MeetingAttendees } from './models/MeetingAttendeeModel';
179
+ import { HallRequests } from './models/HallRequestModel';
180
+ import { HallApprovalDetails } from './models/HallApprovalModel';
181
+ import { HallRequestAttachment } from './models/HallAttachmentModel';
182
+ import { HallRequestChat } from './models/HallChatModel';
183
+ import { HallWorkFlow } from './models/HallWorkflowModel';
179
184
 
180
185
 
181
186
  export const AppDataSource = new DataSource({
@@ -353,5 +358,10 @@ export const AppDataSource = new DataSource({
353
358
  MeetingRequestChat,
354
359
  MeetingWorkFlow,
355
360
  MeetingAttendees,
361
+ HallRequests,
362
+ HallApprovalDetails,
363
+ HallRequestAttachment,
364
+ HallRequestChat,
365
+ HallWorkFlow,
356
366
  ],
357
367
  });
package/src/index.ts CHANGED
@@ -267,6 +267,12 @@ export * from './models/MeetingAttachmentModel';
267
267
  export * from './models/MeetingChatModel';
268
268
  export * from './models/MeetingWorkflowModel';
269
269
  export * from './models/MeetingAttendeeModel';
270
+ // Hall Models
271
+ export * from './models/HallRequestModel';
272
+ export * from './models/HallApprovalModel';
273
+ export * from './models/HallAttachmentModel';
274
+ export * from './models/HallChatModel';
275
+ export * from './models/HallWorkflowModel';
270
276
 
271
277
  // Employee Milestones Models
272
278
  export * from './models/EmployeeMilestonesModel';
@@ -0,0 +1,50 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+ import { MeetingApprovalStatus } from './MeetingApprovalModel';
4
+
5
+ @Entity({ name: 'hall_approvals' })
6
+ export class HallApprovalDetails extends BaseModel {
7
+ @Column({ type: 'integer', nullable: false })
8
+ request_id: number;
9
+
10
+ @Column({ type: 'integer', nullable: true })
11
+ service_id: number | null;
12
+
13
+ @Column({ type: 'integer', nullable: true })
14
+ sub_service_id: number | null;
15
+
16
+ @Column({ type: 'integer', nullable: false })
17
+ level: number;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ approver_role_id: number;
21
+
22
+ @Column({ type: 'integer', nullable: true })
23
+ department_id: number | null;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ section_id: number | null;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ approver_user_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ delegate_user_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approved_by: number | null;
36
+
37
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
38
+ comment: string;
39
+
40
+ @Column({
41
+ type: 'enum',
42
+ enum: MeetingApprovalStatus,
43
+ default: MeetingApprovalStatus.PENDING,
44
+ nullable: false,
45
+ })
46
+ approval_status: MeetingApprovalStatus;
47
+
48
+ @Column({ type: 'boolean', default: true, nullable: false })
49
+ is_allowed: boolean;
50
+ }
@@ -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,56 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+ import { MeetingMessageType } from './MeetingChatModel';
4
+
5
+ @Entity({ name: 'hall_chats' })
6
+ export class HallRequestChat extends BaseModel {
7
+ @Column({ type: 'integer', nullable: false })
8
+ request_id: number;
9
+
10
+ @Column({ type: 'integer', nullable: true })
11
+ service_id: number | null;
12
+
13
+ @Column({ type: 'integer', nullable: true })
14
+ sub_service_id: number | null;
15
+
16
+ @Column({ type: 'integer', nullable: false })
17
+ user_id: number;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ role_id: number | null;
21
+
22
+ @Column({ type: 'text', nullable: false })
23
+ message: string;
24
+
25
+ @Column({
26
+ type: 'enum',
27
+ enum: MeetingMessageType,
28
+ default: MeetingMessageType.TEXT,
29
+ nullable: false,
30
+ })
31
+ messageType: MeetingMessageType;
32
+
33
+ @Column({ type: 'text', nullable: true })
34
+ status: string | null;
35
+
36
+ constructor(
37
+ request_id?: number,
38
+ user_id?: number,
39
+ role_id?: number | null,
40
+ message?: string,
41
+ service_id?: number | null,
42
+ sub_service_id?: number | null,
43
+ messageType?: MeetingMessageType,
44
+ status?: string
45
+ ) {
46
+ super();
47
+ this.request_id = request_id ?? 0;
48
+ this.service_id = service_id ?? null;
49
+ this.sub_service_id = sub_service_id ?? null;
50
+ this.user_id = user_id ?? 0;
51
+ this.role_id = role_id ?? null;
52
+ this.message = message ?? '';
53
+ this.messageType = messageType ?? MeetingMessageType.TEXT;
54
+ this.status = status ?? 'Pending';
55
+ }
56
+ }
@@ -0,0 +1,45 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+ import { MeetingRequestStatus } from './MeetingRequestModel';
4
+
5
+ @Entity({ name: 'hall_requests' })
6
+ export class HallRequests extends BaseModel {
7
+ @Column({ type: 'int', nullable: true })
8
+ req_user_department_id: number | null;
9
+
10
+ @Column({ type: 'int', nullable: true })
11
+ req_user_section_id: number | null;
12
+
13
+ @Column({ type: 'int', nullable: true })
14
+ service_id: number | null;
15
+
16
+ @Column({ type: 'int', nullable: true })
17
+ sub_service_id: number | null;
18
+
19
+ @Column({ type: 'int', nullable: false })
20
+ user_id: number;
21
+
22
+ @Column({ type: 'int', nullable: true })
23
+ meeting_id: number | null;
24
+
25
+ @Column({ type: 'int', nullable: true })
26
+ hall_id: number | null;
27
+
28
+ @Column({ type: 'date', nullable: true })
29
+ date: string | null;
30
+
31
+ @Column({ type: 'time', nullable: true })
32
+ from_time: string | null;
33
+
34
+ @Column({ type: 'time', nullable: true })
35
+ to_time: string | null;
36
+
37
+ @Column({ type: 'int', nullable: true })
38
+ location_id: number | null;
39
+
40
+ @Column({ type: 'enum', enum: MeetingRequestStatus, default: MeetingRequestStatus.PENDING, nullable: false })
41
+ status: MeetingRequestStatus;
42
+
43
+ @Column({ type: 'varchar', nullable: true })
44
+ workflow_execution_id: string | null;
45
+ }
@@ -0,0 +1,33 @@
1
+ import { Column, Entity } from 'typeorm';
2
+ import { BaseModel } from './BaseModel';
3
+ import { MeetingWorkFlowStatus } from './MeetingWorkflowModel';
4
+
5
+ @Entity({ name: 'hall_workflows' })
6
+ export class HallWorkFlow extends BaseModel {
7
+ @Column({ type: 'integer', nullable: false })
8
+ request_id: number;
9
+
10
+ @Column({ type: 'integer', nullable: true })
11
+ service_id: number | null;
12
+
13
+ @Column({ type: 'integer', nullable: true })
14
+ sub_service_id: number | null;
15
+
16
+ @Column({ type: 'varchar', length: 500, nullable: false })
17
+ content: string;
18
+
19
+ @Column({ type: 'enum', enum: MeetingWorkFlowStatus, default: MeetingWorkFlowStatus.NOT_YET_STARTED, nullable: false })
20
+ status: MeetingWorkFlowStatus;
21
+
22
+ @Column({ type: 'integer', nullable: true })
23
+ user_id: number | null;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ 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
+ }