@platform-modules/civil-aviation-authority 2.3.218 → 2.3.221

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 (78) hide show
  1. package/.env +0 -15
  2. package/dist/data-source.js +12 -0
  3. package/dist/index.d.ts +6 -0
  4. package/dist/index.js +6 -0
  5. package/dist/models/HumanResourceAnnualPlanningRequestModel.d.ts +14 -1
  6. package/dist/models/HumanResourceAnnualPlanningRequestModel.js +67 -2
  7. package/dist/models/{SecurityAccessApprovalModel.d.ts → MultiPurposeHallApprovalModel.d.ts} +6 -7
  8. package/dist/models/{SecurityAccessApprovalModel.js → MultiPurposeHallApprovalModel.js} +31 -29
  9. package/dist/models/MultiPurposeHallAttachmentModel.d.ts +11 -0
  10. package/dist/models/{SecurityAccessAttachmentModel.js → MultiPurposeHallAttachmentModel.js} +19 -23
  11. package/dist/models/MultiPurposeHallChatModel.d.ts +18 -0
  12. package/dist/models/{SecurityAccessChatModel.js → MultiPurposeHallChatModel.js} +32 -23
  13. package/dist/models/MultiPurposeHallHistoryModel.d.ts +10 -0
  14. package/dist/models/MultiPurposeHallHistoryModel.js +48 -0
  15. package/dist/models/MultiPurposeHallRequestModel.d.ts +39 -0
  16. package/dist/models/MultiPurposeHallRequestModel.js +136 -0
  17. package/dist/models/MultiPurposeHallWorkflowModel.d.ts +17 -0
  18. package/dist/models/MultiPurposeHallWorkflowModel.js +67 -0
  19. package/package.json +1 -1
  20. package/src/data-source.ts +12 -0
  21. package/src/index.ts +470 -464
  22. package/src/models/AccessCardRequestModel.ts +135 -135
  23. package/src/models/AirportEntryPermitModel.ts +276 -276
  24. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  25. package/src/models/DepartmentsModel.ts +25 -25
  26. package/src/models/DocumentDriveModel.ts +28 -28
  27. package/src/models/DocumentFolderModel.ts +45 -45
  28. package/src/models/HousingContractCancelApprovalModel.ts +64 -64
  29. package/src/models/HousingContractCancelChatModel.ts +56 -56
  30. package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
  31. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  32. package/src/models/HumanResourceAnnualPlanningRequestModel.ts +65 -0
  33. package/src/models/ITRequestAttachmentModel.ts +73 -73
  34. package/src/models/ITRequestChatModel.ts +74 -74
  35. package/src/models/ItApprovalsModel.ts +84 -84
  36. package/src/models/ItWorkflowModel.ts +55 -55
  37. package/src/models/LegalConsultationApprovalModel.ts +65 -65
  38. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  39. package/src/models/MultiPurposeHallApprovalModel.ts +56 -0
  40. package/src/models/MultiPurposeHallAttachmentModel.ts +29 -0
  41. package/src/models/MultiPurposeHallChatModel.ts +42 -0
  42. package/src/models/MultiPurposeHallHistoryModel.ts +26 -0
  43. package/src/models/MultiPurposeHallRequestModel.ts +102 -0
  44. package/src/models/MultiPurposeHallWorkflowModel.ts +43 -0
  45. package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -143
  46. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  47. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  48. package/src/models/ServiceSlaApprovalModel.ts +52 -52
  49. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  50. package/src/models/SlaRequestModel.ts +64 -64
  51. package/src/models/StudyLeaveRequestModel.ts +144 -144
  52. package/src/models/TrainingRequestModel.ts +164 -164
  53. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  54. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  55. package/src/models/role.ts +34 -34
  56. package/src/models/user.ts +233 -233
  57. package/dist/models/DocumentMetadataModel.d.ts +0 -45
  58. package/dist/models/DocumentMetadataModel.js +0 -171
  59. package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
  60. package/dist/models/DocumentationDepartmentsModel.js +0 -53
  61. package/dist/models/FolderModel.d.ts +0 -16
  62. package/dist/models/FolderModel.js +0 -85
  63. package/dist/models/ImportExportMaterialModels.d.ts +0 -92
  64. package/dist/models/ImportExportMaterialModels.js +0 -307
  65. package/dist/models/PermissionModel.d.ts +0 -18
  66. package/dist/models/PermissionModel.js +0 -68
  67. package/dist/models/SecurityAccessAttachmentModel.d.ts +0 -12
  68. package/dist/models/SecurityAccessChatModel.d.ts +0 -12
  69. package/dist/models/SecurityAccessRequestModel.d.ts +0 -25
  70. package/dist/models/SecurityAccessRequestModel.js +0 -80
  71. package/dist/models/SecurityAccessWorkflowModel.d.ts +0 -24
  72. package/dist/models/SecurityAccessWorkflowModel.js +0 -84
  73. package/dist/models/ServiceExtensionAfterAge60Models.d.ts +0 -93
  74. package/dist/models/ServiceExtensionAfterAge60Models.js +0 -312
  75. package/dist/models/UUIDBaseModel.d.ts +0 -14
  76. package/dist/models/UUIDBaseModel.js +0 -66
  77. package/dist/models/WorkingHoursExtensionModels.d.ts +0 -88
  78. package/dist/models/WorkingHoursExtensionModels.js +0 -295
package/.env CHANGED
@@ -1,24 +1,9 @@
1
- # DB_HOST=localhost
2
- # DB_PORT=5432
3
- # DB_USER=postgres
4
- # DB_PASS=stevejobs
5
- # DB_NAME=CAA
6
-
7
-
8
1
  DB_HOST=164.52.222.169
9
2
  DB_PORT=5432
10
3
  DB_USER=postgres_admin_user
11
4
  DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
12
5
  DB_NAME=CAA
13
6
 
14
- # DB_HOST=216.48.187.46
15
- # DB_PORT=5432
16
- # DB_USER=adminuser
17
- # DB_PASS=postgres_caa_fm_qa_34567
18
- # DB_NAME=CAA_QA
19
-
20
-
21
-
22
7
 
23
8
  # DB_HOST=localhost
24
9
  # DB_PORT=5432
@@ -140,6 +140,12 @@ const HallChatModel_1 = require("./models/HallChatModel");
140
140
  const HallAttachmentModel_1 = require("./models/HallAttachmentModel");
141
141
  const HallHistoryModel_1 = require("./models/HallHistoryModel");
142
142
  const HallMasterModel_1 = require("./models/HallMasterModel");
143
+ const MultiPurposeHallRequestModel_1 = require("./models/MultiPurposeHallRequestModel");
144
+ const MultiPurposeHallApprovalModel_1 = require("./models/MultiPurposeHallApprovalModel");
145
+ const MultiPurposeHallWorkflowModel_1 = require("./models/MultiPurposeHallWorkflowModel");
146
+ const MultiPurposeHallChatModel_1 = require("./models/MultiPurposeHallChatModel");
147
+ const MultiPurposeHallAttachmentModel_1 = require("./models/MultiPurposeHallAttachmentModel");
148
+ const MultiPurposeHallHistoryModel_1 = require("./models/MultiPurposeHallHistoryModel");
143
149
  const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
144
150
  const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
145
151
  const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
@@ -349,6 +355,12 @@ exports.AppDataSource = new typeorm_1.DataSource({
349
355
  HallAttachmentModel_1.HallRequestAttachment,
350
356
  HallHistoryModel_1.HallHistory,
351
357
  HallMasterModel_1.HallMaster,
358
+ MultiPurposeHallRequestModel_1.MultiPurposeHallRequests,
359
+ MultiPurposeHallApprovalModel_1.MultiPurposeHallApprovalDetails,
360
+ MultiPurposeHallWorkflowModel_1.MultiPurposeHallWorkFlow,
361
+ MultiPurposeHallChatModel_1.MultiPurposeHallRequestChat,
362
+ MultiPurposeHallAttachmentModel_1.MultiPurposeHallRequestAttachment,
363
+ MultiPurposeHallHistoryModel_1.MultiPurposeHallHistory,
352
364
  AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
353
365
  AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
354
366
  AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
package/dist/index.d.ts CHANGED
@@ -112,6 +112,12 @@ export * from './models/HallChatModel';
112
112
  export * from './models/HallAttachmentModel';
113
113
  export * from './models/HallHistoryModel';
114
114
  export * from './models/HallMasterModel';
115
+ export * from './models/MultiPurposeHallRequestModel';
116
+ export * from './models/MultiPurposeHallApprovalModel';
117
+ export * from './models/MultiPurposeHallWorkflowModel';
118
+ export * from './models/MultiPurposeHallChatModel';
119
+ export * from './models/MultiPurposeHallAttachmentModel';
120
+ export * from './models/MultiPurposeHallHistoryModel';
115
121
  export { CancellationRequestStatus } from './models/CancellationRequestModel';
116
122
  export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
117
123
  export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
package/dist/index.js CHANGED
@@ -140,6 +140,12 @@ __exportStar(require("./models/HallChatModel"), exports);
140
140
  __exportStar(require("./models/HallAttachmentModel"), exports);
141
141
  __exportStar(require("./models/HallHistoryModel"), exports);
142
142
  __exportStar(require("./models/HallMasterModel"), exports);
143
+ __exportStar(require("./models/MultiPurposeHallRequestModel"), exports);
144
+ __exportStar(require("./models/MultiPurposeHallApprovalModel"), exports);
145
+ __exportStar(require("./models/MultiPurposeHallWorkflowModel"), exports);
146
+ __exportStar(require("./models/MultiPurposeHallChatModel"), exports);
147
+ __exportStar(require("./models/MultiPurposeHallAttachmentModel"), exports);
148
+ __exportStar(require("./models/MultiPurposeHallHistoryModel"), exports);
143
149
  var CancellationRequestModel_1 = require("./models/CancellationRequestModel");
144
150
  Object.defineProperty(exports, "CancellationRequestStatus", { enumerable: true, get: function () { return CancellationRequestModel_1.CancellationRequestStatus; } });
145
151
  var EventSupportRequestModel_1 = require("./models/EventSupportRequestModel");
@@ -27,9 +27,22 @@ export declare class HumanResourceAnnualPlanningRequest extends BaseModel {
27
27
  assigned_at: Date | null;
28
28
  workflow_execution_id: string | null;
29
29
  description: string | null;
30
+ employee_name: string | null;
31
+ employee_id: string | null;
32
+ current_position: string | null;
33
+ skills: string | null;
34
+ work_experience: number | null;
35
+ productivity_rating: string | null;
36
+ productivity_other: string | null;
37
+ behavior_rating: string | null;
38
+ behavior_other: string | null;
39
+ leadership_rating: string | null;
40
+ leadership_other: string | null;
41
+ emotional_intelligence_rating: string | null;
42
+ emotional_intelligence_other: string | null;
30
43
  comment: string | null;
31
44
  extension_number: string | null;
32
45
  quarter: Quarter | null;
33
46
  year: number | null;
34
- constructor(user_id: number, status?: HumanResourceAnnualPlanningRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, comment?: string | null, extension_number?: string | null, quarter?: Quarter | null, year?: number | null);
47
+ constructor(user_id: number, status?: HumanResourceAnnualPlanningRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string | null, employee_id?: string | null, current_position?: string | null, skills?: string | null, work_experience?: number | null, productivity_rating?: string | null, productivity_other?: string | null, behavior_rating?: string | null, behavior_other?: string | null, leadership_rating?: string | null, leadership_other?: string | null, emotional_intelligence_rating?: string | null, emotional_intelligence_other?: string | null, comment?: string | null, extension_number?: string | null, quarter?: Quarter | null, year?: number | null);
35
48
  }
@@ -30,7 +30,7 @@ var Quarter;
30
30
  Quarter["Q4"] = "Q4"; // Oct-Dec
31
31
  })(Quarter || (exports.Quarter = Quarter = {}));
32
32
  let HumanResourceAnnualPlanningRequest = class HumanResourceAnnualPlanningRequest extends BaseModel_1.BaseModel {
33
- constructor(user_id, status = HumanResourceAnnualPlanningRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, comment, extension_number, quarter, year) {
33
+ constructor(user_id, status = HumanResourceAnnualPlanningRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, current_position, skills, work_experience, productivity_rating, productivity_other, behavior_rating, behavior_other, leadership_rating, leadership_other, emotional_intelligence_rating, emotional_intelligence_other, comment, extension_number, quarter, year) {
34
34
  super();
35
35
  this.user_id = user_id;
36
36
  this.status = status;
@@ -44,6 +44,19 @@ let HumanResourceAnnualPlanningRequest = class HumanResourceAnnualPlanningReques
44
44
  this.assigned_to_user_id = assigned_to_user_id || null;
45
45
  this.assigned_at = assigned_at || null;
46
46
  this.workflow_execution_id = workflow_execution_id || null;
47
+ this.employee_name = employee_name || null;
48
+ this.employee_id = employee_id || null;
49
+ this.current_position = current_position || null;
50
+ this.skills = skills || null;
51
+ this.work_experience = work_experience || null;
52
+ this.productivity_rating = productivity_rating || null;
53
+ this.productivity_other = productivity_other || null;
54
+ this.behavior_rating = behavior_rating || null;
55
+ this.behavior_other = behavior_other || null;
56
+ this.leadership_rating = leadership_rating || null;
57
+ this.leadership_other = leadership_other || null;
58
+ this.emotional_intelligence_rating = emotional_intelligence_rating || null;
59
+ this.emotional_intelligence_other = emotional_intelligence_other || null;
47
60
  this.comment = comment || null;
48
61
  this.extension_number = extension_number || null;
49
62
  this.quarter = quarter || null;
@@ -99,6 +112,58 @@ __decorate([
99
112
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
100
113
  __metadata("design:type", Object)
101
114
  ], HumanResourceAnnualPlanningRequest.prototype, "description", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
117
+ __metadata("design:type", Object)
118
+ ], HumanResourceAnnualPlanningRequest.prototype, "employee_name", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
121
+ __metadata("design:type", Object)
122
+ ], HumanResourceAnnualPlanningRequest.prototype, "employee_id", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
125
+ __metadata("design:type", Object)
126
+ ], HumanResourceAnnualPlanningRequest.prototype, "current_position", void 0);
127
+ __decorate([
128
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
129
+ __metadata("design:type", Object)
130
+ ], HumanResourceAnnualPlanningRequest.prototype, "skills", void 0);
131
+ __decorate([
132
+ (0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: true }),
133
+ __metadata("design:type", Object)
134
+ ], HumanResourceAnnualPlanningRequest.prototype, "work_experience", void 0);
135
+ __decorate([
136
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
137
+ __metadata("design:type", Object)
138
+ ], HumanResourceAnnualPlanningRequest.prototype, "productivity_rating", void 0);
139
+ __decorate([
140
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
141
+ __metadata("design:type", Object)
142
+ ], HumanResourceAnnualPlanningRequest.prototype, "productivity_other", void 0);
143
+ __decorate([
144
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
145
+ __metadata("design:type", Object)
146
+ ], HumanResourceAnnualPlanningRequest.prototype, "behavior_rating", void 0);
147
+ __decorate([
148
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
149
+ __metadata("design:type", Object)
150
+ ], HumanResourceAnnualPlanningRequest.prototype, "behavior_other", void 0);
151
+ __decorate([
152
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
153
+ __metadata("design:type", Object)
154
+ ], HumanResourceAnnualPlanningRequest.prototype, "leadership_rating", void 0);
155
+ __decorate([
156
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
157
+ __metadata("design:type", Object)
158
+ ], HumanResourceAnnualPlanningRequest.prototype, "leadership_other", void 0);
159
+ __decorate([
160
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
161
+ __metadata("design:type", Object)
162
+ ], HumanResourceAnnualPlanningRequest.prototype, "emotional_intelligence_rating", void 0);
163
+ __decorate([
164
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
165
+ __metadata("design:type", Object)
166
+ ], HumanResourceAnnualPlanningRequest.prototype, "emotional_intelligence_other", void 0);
102
167
  __decorate([
103
168
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
104
169
  __metadata("design:type", Object)
@@ -117,5 +182,5 @@ __decorate([
117
182
  ], HumanResourceAnnualPlanningRequest.prototype, "year", void 0);
118
183
  exports.HumanResourceAnnualPlanningRequest = HumanResourceAnnualPlanningRequest = __decorate([
119
184
  (0, typeorm_1.Entity)({ name: "human_resource_annual_planning_requests" }),
120
- __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
185
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
121
186
  ], HumanResourceAnnualPlanningRequest);
@@ -1,23 +1,22 @@
1
1
  import { BaseModel } from "./BaseModel";
2
- export declare enum SecurityAccessApprovalStatus {
2
+ export declare enum MultiPurposeHallApprovalStatus {
3
3
  PENDING = "Pending",
4
4
  IN_PROGRESS = "In Progress",
5
5
  APPROVED = "Approved",
6
- REJECTED = "Rejected",
7
- RFC = "RFC",
8
- REASSIGNED = "Reassigned"
6
+ REJECTED = "Rejected"
9
7
  }
10
- export declare class SecurityAccessApproval extends BaseModel {
8
+ export declare class MultiPurposeHallApprovalDetails extends BaseModel {
11
9
  request_id: number;
12
10
  service_id: number | null;
13
11
  sub_service_id: number | null;
14
12
  level: number;
15
- approver_user_id: number | null;
16
13
  approver_role_id: number | null;
17
14
  department_id: number | null;
18
15
  section_id: number | null;
16
+ approver_user_id: number | null;
19
17
  delegate_user_id: number | null;
20
18
  approved_by: number | null;
21
19
  comment: string;
22
- approval_status: SecurityAccessApprovalStatus;
20
+ approval_status: MultiPurposeHallApprovalStatus;
21
+ is_allowed: boolean;
23
22
  }
@@ -9,74 +9,76 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SecurityAccessApproval = exports.SecurityAccessApprovalStatus = void 0;
12
+ exports.MultiPurposeHallApprovalDetails = exports.MultiPurposeHallApprovalStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- var SecurityAccessApprovalStatus;
16
- (function (SecurityAccessApprovalStatus) {
17
- SecurityAccessApprovalStatus["PENDING"] = "Pending";
18
- SecurityAccessApprovalStatus["IN_PROGRESS"] = "In Progress";
19
- SecurityAccessApprovalStatus["APPROVED"] = "Approved";
20
- SecurityAccessApprovalStatus["REJECTED"] = "Rejected";
21
- SecurityAccessApprovalStatus["RFC"] = "RFC";
22
- SecurityAccessApprovalStatus["REASSIGNED"] = "Reassigned";
23
- })(SecurityAccessApprovalStatus || (exports.SecurityAccessApprovalStatus = SecurityAccessApprovalStatus = {}));
24
- let SecurityAccessApproval = class SecurityAccessApproval extends BaseModel_1.BaseModel {
15
+ var MultiPurposeHallApprovalStatus;
16
+ (function (MultiPurposeHallApprovalStatus) {
17
+ MultiPurposeHallApprovalStatus["PENDING"] = "Pending";
18
+ MultiPurposeHallApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ MultiPurposeHallApprovalStatus["APPROVED"] = "Approved";
20
+ MultiPurposeHallApprovalStatus["REJECTED"] = "Rejected";
21
+ })(MultiPurposeHallApprovalStatus || (exports.MultiPurposeHallApprovalStatus = MultiPurposeHallApprovalStatus = {}));
22
+ let MultiPurposeHallApprovalDetails = class MultiPurposeHallApprovalDetails extends BaseModel_1.BaseModel {
25
23
  };
26
- exports.SecurityAccessApproval = SecurityAccessApproval;
24
+ exports.MultiPurposeHallApprovalDetails = MultiPurposeHallApprovalDetails;
27
25
  __decorate([
28
26
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
29
27
  __metadata("design:type", Number)
30
- ], SecurityAccessApproval.prototype, "request_id", void 0);
28
+ ], MultiPurposeHallApprovalDetails.prototype, "request_id", void 0);
31
29
  __decorate([
32
30
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
33
31
  __metadata("design:type", Object)
34
- ], SecurityAccessApproval.prototype, "service_id", void 0);
32
+ ], MultiPurposeHallApprovalDetails.prototype, "service_id", void 0);
35
33
  __decorate([
36
34
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
37
35
  __metadata("design:type", Object)
38
- ], SecurityAccessApproval.prototype, "sub_service_id", void 0);
36
+ ], MultiPurposeHallApprovalDetails.prototype, "sub_service_id", void 0);
39
37
  __decorate([
40
38
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
41
39
  __metadata("design:type", Number)
42
- ], SecurityAccessApproval.prototype, "level", void 0);
40
+ ], MultiPurposeHallApprovalDetails.prototype, "level", void 0);
43
41
  __decorate([
44
42
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
45
43
  __metadata("design:type", Object)
46
- ], SecurityAccessApproval.prototype, "approver_user_id", void 0);
44
+ ], MultiPurposeHallApprovalDetails.prototype, "approver_role_id", void 0);
47
45
  __decorate([
48
46
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
49
47
  __metadata("design:type", Object)
50
- ], SecurityAccessApproval.prototype, "approver_role_id", void 0);
48
+ ], MultiPurposeHallApprovalDetails.prototype, "department_id", void 0);
51
49
  __decorate([
52
50
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
53
51
  __metadata("design:type", Object)
54
- ], SecurityAccessApproval.prototype, "department_id", void 0);
52
+ ], MultiPurposeHallApprovalDetails.prototype, "section_id", void 0);
55
53
  __decorate([
56
54
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
57
55
  __metadata("design:type", Object)
58
- ], SecurityAccessApproval.prototype, "section_id", void 0);
56
+ ], MultiPurposeHallApprovalDetails.prototype, "approver_user_id", void 0);
59
57
  __decorate([
60
58
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
61
59
  __metadata("design:type", Object)
62
- ], SecurityAccessApproval.prototype, "delegate_user_id", void 0);
60
+ ], MultiPurposeHallApprovalDetails.prototype, "delegate_user_id", void 0);
63
61
  __decorate([
64
62
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
65
63
  __metadata("design:type", Object)
66
- ], SecurityAccessApproval.prototype, "approved_by", void 0);
64
+ ], MultiPurposeHallApprovalDetails.prototype, "approved_by", void 0);
67
65
  __decorate([
68
66
  (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
69
67
  __metadata("design:type", String)
70
- ], SecurityAccessApproval.prototype, "comment", void 0);
68
+ ], MultiPurposeHallApprovalDetails.prototype, "comment", void 0);
71
69
  __decorate([
72
70
  (0, typeorm_1.Column)({
73
71
  type: "enum",
74
- enum: SecurityAccessApprovalStatus,
75
- default: SecurityAccessApprovalStatus.PENDING,
72
+ enum: MultiPurposeHallApprovalStatus,
73
+ default: MultiPurposeHallApprovalStatus.PENDING,
76
74
  nullable: false,
77
75
  }),
78
76
  __metadata("design:type", String)
79
- ], SecurityAccessApproval.prototype, "approval_status", void 0);
80
- exports.SecurityAccessApproval = SecurityAccessApproval = __decorate([
81
- (0, typeorm_1.Entity)({ name: "security_access_approvals" })
82
- ], SecurityAccessApproval);
77
+ ], MultiPurposeHallApprovalDetails.prototype, "approval_status", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], MultiPurposeHallApprovalDetails.prototype, "is_allowed", void 0);
82
+ exports.MultiPurposeHallApprovalDetails = MultiPurposeHallApprovalDetails = __decorate([
83
+ (0, typeorm_1.Entity)({ name: "multi_purpose_hall_approvals" })
84
+ ], MultiPurposeHallApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class MultiPurposeHallRequestAttachment 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
+ }
@@ -9,48 +9,44 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SecurityAccessRequestAttachment = void 0;
12
+ exports.MultiPurposeHallRequestAttachment = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let SecurityAccessRequestAttachment = class SecurityAccessRequestAttachment extends BaseModel_1.BaseModel {
15
+ let MultiPurposeHallRequestAttachment = class MultiPurposeHallRequestAttachment extends BaseModel_1.BaseModel {
16
16
  };
17
- exports.SecurityAccessRequestAttachment = SecurityAccessRequestAttachment;
17
+ exports.MultiPurposeHallRequestAttachment = MultiPurposeHallRequestAttachment;
18
18
  __decorate([
19
19
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
20
20
  __metadata("design:type", Number)
21
- ], SecurityAccessRequestAttachment.prototype, "request_id", void 0);
21
+ ], MultiPurposeHallRequestAttachment.prototype, "request_id", void 0);
22
22
  __decorate([
23
23
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
24
24
  __metadata("design:type", Object)
25
- ], SecurityAccessRequestAttachment.prototype, "service_id", void 0);
25
+ ], MultiPurposeHallRequestAttachment.prototype, "service_id", void 0);
26
26
  __decorate([
27
27
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
28
28
  __metadata("design:type", Object)
29
- ], SecurityAccessRequestAttachment.prototype, "sub_service_id", void 0);
29
+ ], MultiPurposeHallRequestAttachment.prototype, "sub_service_id", void 0);
30
30
  __decorate([
31
- (0, typeorm_1.Column)({ type: "varchar", length: 512, nullable: false }),
31
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
32
32
  __metadata("design:type", String)
33
- ], SecurityAccessRequestAttachment.prototype, "file_url", void 0);
33
+ ], MultiPurposeHallRequestAttachment.prototype, "file_url", void 0);
34
34
  __decorate([
35
35
  (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
36
- __metadata("design:type", Object)
37
- ], SecurityAccessRequestAttachment.prototype, "file_name", void 0);
38
- __decorate([
39
- (0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
40
- __metadata("design:type", Object)
41
- ], SecurityAccessRequestAttachment.prototype, "file_type", void 0);
36
+ __metadata("design:type", String)
37
+ ], MultiPurposeHallRequestAttachment.prototype, "file_name", void 0);
42
38
  __decorate([
43
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
44
- __metadata("design:type", Object)
45
- ], SecurityAccessRequestAttachment.prototype, "file_size", void 0);
39
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], MultiPurposeHallRequestAttachment.prototype, "file_type", void 0);
46
42
  __decorate([
47
- (0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
43
+ (0, typeorm_1.Column)({ type: "bigint", nullable: true }),
48
44
  __metadata("design:type", Object)
49
- ], SecurityAccessRequestAttachment.prototype, "attachment_kind", void 0);
45
+ ], MultiPurposeHallRequestAttachment.prototype, "file_size", void 0);
50
46
  __decorate([
51
47
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
52
48
  __metadata("design:type", Object)
53
- ], SecurityAccessRequestAttachment.prototype, "uploaded_by", void 0);
54
- exports.SecurityAccessRequestAttachment = SecurityAccessRequestAttachment = __decorate([
55
- (0, typeorm_1.Entity)({ name: "security_access_request_attachments" })
56
- ], SecurityAccessRequestAttachment);
49
+ ], MultiPurposeHallRequestAttachment.prototype, "chat_id", void 0);
50
+ exports.MultiPurposeHallRequestAttachment = MultiPurposeHallRequestAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: "multi_purpose_hall_attachments" })
52
+ ], MultiPurposeHallRequestAttachment);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum MultiPurposeHallMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class MultiPurposeHallRequestChat 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: MultiPurposeHallMessageType;
17
+ status: string | null;
18
+ }
@@ -9,48 +9,57 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SecurityAccessRequestChat = void 0;
12
+ exports.MultiPurposeHallRequestChat = exports.MultiPurposeHallMessageType = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let SecurityAccessRequestChat = class SecurityAccessRequestChat extends BaseModel_1.BaseModel {
15
+ var MultiPurposeHallMessageType;
16
+ (function (MultiPurposeHallMessageType) {
17
+ MultiPurposeHallMessageType["TEXT"] = "text";
18
+ MultiPurposeHallMessageType["IMAGE"] = "image";
19
+ MultiPurposeHallMessageType["VIDEO"] = "video";
20
+ MultiPurposeHallMessageType["FILE"] = "file";
21
+ MultiPurposeHallMessageType["LINK"] = "link";
22
+ })(MultiPurposeHallMessageType || (exports.MultiPurposeHallMessageType = MultiPurposeHallMessageType = {}));
23
+ let MultiPurposeHallRequestChat = class MultiPurposeHallRequestChat extends BaseModel_1.BaseModel {
16
24
  };
17
- exports.SecurityAccessRequestChat = SecurityAccessRequestChat;
25
+ exports.MultiPurposeHallRequestChat = MultiPurposeHallRequestChat;
18
26
  __decorate([
19
27
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
20
28
  __metadata("design:type", Number)
21
- ], SecurityAccessRequestChat.prototype, "request_id", void 0);
29
+ ], MultiPurposeHallRequestChat.prototype, "request_id", void 0);
22
30
  __decorate([
23
31
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
24
32
  __metadata("design:type", Object)
25
- ], SecurityAccessRequestChat.prototype, "service_id", void 0);
33
+ ], MultiPurposeHallRequestChat.prototype, "service_id", void 0);
26
34
  __decorate([
27
35
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
28
36
  __metadata("design:type", Object)
29
- ], SecurityAccessRequestChat.prototype, "sub_service_id", void 0);
37
+ ], MultiPurposeHallRequestChat.prototype, "sub_service_id", void 0);
30
38
  __decorate([
31
39
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
32
40
  __metadata("design:type", Number)
33
- ], SecurityAccessRequestChat.prototype, "user_id", void 0);
41
+ ], MultiPurposeHallRequestChat.prototype, "user_id", void 0);
34
42
  __decorate([
35
- (0, typeorm_1.Column)({ type: "text", nullable: false }),
36
- __metadata("design:type", String)
37
- ], SecurityAccessRequestChat.prototype, "message", void 0);
43
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], MultiPurposeHallRequestChat.prototype, "role_id", void 0);
38
46
  __decorate([
39
- (0, typeorm_1.Column)({ type: "varchar", length: 32, nullable: false, default: "text" }),
47
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
40
48
  __metadata("design:type", String)
41
- ], SecurityAccessRequestChat.prototype, "message_type", void 0);
42
- __decorate([
43
- (0, typeorm_1.Column)({ type: "boolean", default: false }),
44
- __metadata("design:type", Boolean)
45
- ], SecurityAccessRequestChat.prototype, "is_internal", void 0);
49
+ ], MultiPurposeHallRequestChat.prototype, "message", void 0);
46
50
  __decorate([
47
- (0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: false, default: "Pending" }),
51
+ (0, typeorm_1.Column)({
52
+ type: "enum",
53
+ enum: MultiPurposeHallMessageType,
54
+ default: MultiPurposeHallMessageType.TEXT,
55
+ nullable: false,
56
+ }),
48
57
  __metadata("design:type", String)
49
- ], SecurityAccessRequestChat.prototype, "status", void 0);
58
+ ], MultiPurposeHallRequestChat.prototype, "messageType", void 0);
50
59
  __decorate([
51
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
60
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
52
61
  __metadata("design:type", Object)
53
- ], SecurityAccessRequestChat.prototype, "approver_role_id", void 0);
54
- exports.SecurityAccessRequestChat = SecurityAccessRequestChat = __decorate([
55
- (0, typeorm_1.Entity)({ name: "security_access_request_chat" })
56
- ], SecurityAccessRequestChat);
62
+ ], MultiPurposeHallRequestChat.prototype, "status", void 0);
63
+ exports.MultiPurposeHallRequestChat = MultiPurposeHallRequestChat = __decorate([
64
+ (0, typeorm_1.Entity)({ name: "multi_purpose_hall_chats" })
65
+ ], MultiPurposeHallRequestChat);
@@ -0,0 +1,10 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class MultiPurposeHallHistory extends BaseModel {
3
+ hall_id: number | null;
4
+ location_id: number | null;
5
+ department_id: number | null;
6
+ booked_start_date: string | null;
7
+ booked_end_date: string | null;
8
+ from_time: string | null;
9
+ to_time: string | null;
10
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MultiPurposeHallHistory = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let MultiPurposeHallHistory = class MultiPurposeHallHistory extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.MultiPurposeHallHistory = MultiPurposeHallHistory;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
20
+ __metadata("design:type", Object)
21
+ ], MultiPurposeHallHistory.prototype, "hall_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], MultiPurposeHallHistory.prototype, "location_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], MultiPurposeHallHistory.prototype, "department_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], MultiPurposeHallHistory.prototype, "booked_start_date", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], MultiPurposeHallHistory.prototype, "booked_end_date", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], MultiPurposeHallHistory.prototype, "from_time", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], MultiPurposeHallHistory.prototype, "to_time", void 0);
46
+ exports.MultiPurposeHallHistory = MultiPurposeHallHistory = __decorate([
47
+ (0, typeorm_1.Entity)({ name: "multi_purpose_hall_histories" })
48
+ ], MultiPurposeHallHistory);
@@ -0,0 +1,39 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum MultiPurposeHallRequestStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected",
7
+ CANCELLED = "Cancelled"
8
+ }
9
+ /** Internal vs External classification for `event_type` and `request_type`. */
10
+ export declare enum MultiPurposeHallInternalExternal {
11
+ INTERNAL = "Internal",
12
+ EXTERNAL = "External"
13
+ }
14
+ export declare enum MultiPurposeHallMealType {
15
+ BREAKFAST = "Breakfast",
16
+ LUNCH = "Lunch",
17
+ DINNER = "Dinner"
18
+ }
19
+ export declare class MultiPurposeHallRequests extends BaseModel {
20
+ req_user_department_id: number | null;
21
+ req_user_section_id: number | null;
22
+ service_id: number | null;
23
+ sub_service_id: number | null;
24
+ user_id: number;
25
+ event_type: MultiPurposeHallInternalExternal;
26
+ request_type: MultiPurposeHallInternalExternal;
27
+ event_date: string;
28
+ event_start_time: string;
29
+ event_end_time: string;
30
+ meal_required: boolean;
31
+ meal_type: MultiPurposeHallMealType | null;
32
+ network_support_required: boolean;
33
+ media_coverage_required: boolean;
34
+ project_maintenance_support_required: boolean;
35
+ number_of_guests: number | null;
36
+ special_requirements: string | null;
37
+ status: MultiPurposeHallRequestStatus;
38
+ workflow_execution_id: string | null;
39
+ }