@platform-modules/foreign-ministry 1.3.134 → 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.
Files changed (39) hide show
  1. package/dist/data-source.js +23 -1
  2. package/dist/index.d.ts +11 -0
  3. package/dist/index.js +13 -0
  4. package/dist/models/HallApprovalModel.d.ts +17 -0
  5. package/dist/models/HallApprovalModel.js +78 -0
  6. package/dist/models/HallAttachmentModel.d.ts +11 -0
  7. package/dist/models/HallAttachmentModel.js +52 -0
  8. package/dist/models/HallChatModel.d.ts +13 -0
  9. package/dist/models/HallChatModel.js +70 -0
  10. package/dist/models/HallRequestModel.d.ts +17 -0
  11. package/dist/models/HallRequestModel.js +73 -0
  12. package/dist/models/HallWorkflowModel.d.ts +13 -0
  13. package/dist/models/HallWorkflowModel.js +57 -0
  14. package/dist/models/MeetingApprovalModel.d.ts +22 -0
  15. package/dist/models/MeetingApprovalModel.js +84 -0
  16. package/dist/models/MeetingAttachmentModel.d.ts +11 -0
  17. package/dist/models/MeetingAttachmentModel.js +52 -0
  18. package/dist/models/MeetingAttendeeModel.d.ts +12 -0
  19. package/dist/models/MeetingAttendeeModel.js +39 -0
  20. package/dist/models/MeetingChatModel.d.ts +19 -0
  21. package/dist/models/MeetingChatModel.js +77 -0
  22. package/dist/models/MeetingRequestModel.d.ts +68 -0
  23. package/dist/models/MeetingRequestModel.js +174 -0
  24. package/dist/models/MeetingWorkflowModel.d.ts +17 -0
  25. package/dist/models/MeetingWorkflowModel.js +62 -0
  26. package/package.json +1 -1
  27. package/src/data-source.ts +23 -1
  28. package/src/index.ts +13 -1
  29. package/src/models/HallApprovalModel.ts +50 -0
  30. package/src/models/HallAttachmentModel.ts +29 -0
  31. package/src/models/HallChatModel.ts +56 -0
  32. package/src/models/HallRequestModel.ts +45 -0
  33. package/src/models/HallWorkflowModel.ts +33 -0
  34. package/src/models/MeetingApprovalModel.ts +56 -0
  35. package/src/models/MeetingAttachmentModel.ts +29 -0
  36. package/src/models/MeetingAttendeeModel.ts +21 -0
  37. package/src/models/MeetingChatModel.ts +63 -0
  38. package/src/models/MeetingRequestModel.ts +132 -0
  39. package/src/models/MeetingWorkflowModel.ts +38 -0
@@ -164,6 +164,17 @@ const SecurityChatsModel_1 = require("./models/SecurityChatsModel");
164
164
  const MissionTravelPassportExpiryNotificationConfigModel_1 = require("./models/MissionTravelPassportExpiryNotificationConfigModel");
165
165
  const ServicesNotificationConfigsModel_1 = require("./models/ServicesNotificationConfigsModel");
166
166
  const MoodleUsersModel_1 = require("./models/MoodleUsersModel");
167
+ const MeetingRequestModel_1 = require("./models/MeetingRequestModel");
168
+ const MeetingApprovalModel_1 = require("./models/MeetingApprovalModel");
169
+ const MeetingAttachmentModel_1 = require("./models/MeetingAttachmentModel");
170
+ const MeetingChatModel_1 = require("./models/MeetingChatModel");
171
+ const MeetingWorkflowModel_1 = require("./models/MeetingWorkflowModel");
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");
167
178
  exports.AppDataSource = new typeorm_1.DataSource({
168
179
  type: 'postgres',
169
180
  host: process.env.DB_HOST || 'localhost',
@@ -332,6 +343,17 @@ exports.AppDataSource = new typeorm_1.DataSource({
332
343
  SecurityChatsModel_1.SecurityChat,
333
344
  MissionTravelPassportExpiryNotificationConfigModel_1.MissionTravelPassportExpiryNotificationConfig,
334
345
  ServicesNotificationConfigsModel_1.ServicesNotificationConfigs,
335
- MoodleUsersModel_1.MoodleUsers
346
+ MoodleUsersModel_1.MoodleUsers,
347
+ MeetingRequestModel_1.MeetingRequests,
348
+ MeetingApprovalModel_1.MeetingApprovalDetails,
349
+ MeetingAttachmentModel_1.MeetingRequestAttachment,
350
+ MeetingChatModel_1.MeetingRequestChat,
351
+ MeetingWorkflowModel_1.MeetingWorkFlow,
352
+ MeetingAttendeeModel_1.MeetingAttendees,
353
+ HallRequestModel_1.HallRequests,
354
+ HallApprovalModel_1.HallApprovalDetails,
355
+ HallAttachmentModel_1.HallRequestAttachment,
356
+ HallChatModel_1.HallRequestChat,
357
+ HallWorkflowModel_1.HallWorkFlow,
336
358
  ],
337
359
  });
package/dist/index.d.ts CHANGED
@@ -254,6 +254,17 @@ export * from './models/LanguageCourseChatModel';
254
254
  export * from './models/LanguageCourseWorkflowModel';
255
255
  export * from './models/LanguageCourseCostModel';
256
256
  export * from './models/LanguageCourseLecturerModel';
257
+ export * from './models/MeetingRequestModel';
258
+ export * from './models/MeetingApprovalModel';
259
+ export * from './models/MeetingAttachmentModel';
260
+ export * from './models/MeetingChatModel';
261
+ export * from './models/MeetingWorkflowModel';
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';
257
268
  export * from './models/EmployeeMilestonesModel';
258
269
  export * from './models/EmployeeMilestoneDetailsModel';
259
270
  export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
package/dist/index.js CHANGED
@@ -313,6 +313,19 @@ __exportStar(require("./models/LanguageCourseChatModel"), exports);
313
313
  __exportStar(require("./models/LanguageCourseWorkflowModel"), exports);
314
314
  __exportStar(require("./models/LanguageCourseCostModel"), exports);
315
315
  __exportStar(require("./models/LanguageCourseLecturerModel"), exports);
316
+ // Meeting Models
317
+ __exportStar(require("./models/MeetingRequestModel"), exports);
318
+ __exportStar(require("./models/MeetingApprovalModel"), exports);
319
+ __exportStar(require("./models/MeetingAttachmentModel"), exports);
320
+ __exportStar(require("./models/MeetingChatModel"), exports);
321
+ __exportStar(require("./models/MeetingWorkflowModel"), exports);
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);
316
329
  // Employee Milestones Models
317
330
  __exportStar(require("./models/EmployeeMilestonesModel"), exports);
318
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);
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum MeetingApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class MeetingApprovalDetails 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;
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: MeetingApprovalStatus;
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.MeetingApprovalDetails = exports.MeetingApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var MeetingApprovalStatus;
16
+ (function (MeetingApprovalStatus) {
17
+ MeetingApprovalStatus["PENDING"] = "Pending";
18
+ MeetingApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ MeetingApprovalStatus["APPROVED"] = "Approved";
20
+ MeetingApprovalStatus["REJECTED"] = "Rejected";
21
+ })(MeetingApprovalStatus || (exports.MeetingApprovalStatus = MeetingApprovalStatus = {}));
22
+ let MeetingApprovalDetails = class MeetingApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.MeetingApprovalDetails = MeetingApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], MeetingApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], MeetingApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], MeetingApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], MeetingApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], MeetingApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], MeetingApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], MeetingApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], MeetingApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], MeetingApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], MeetingApprovalDetails.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
+ ], MeetingApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: 'enum',
72
+ enum: MeetingApprovalStatus,
73
+ default: MeetingApprovalStatus.PENDING,
74
+ nullable: false,
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], MeetingApprovalDetails.prototype, "approval_status", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], MeetingApprovalDetails.prototype, "is_allowed", void 0);
82
+ exports.MeetingApprovalDetails = MeetingApprovalDetails = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'meeting_approvals' })
84
+ ], MeetingApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class MeetingRequestAttachment 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
+ }