@platform-modules/civil-aviation-authority 2.3.157 → 2.3.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +10 -10
- package/dist/data-source.js +14 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/models/HallApprovalModel.d.ts +22 -0
- package/dist/models/HallApprovalModel.js +84 -0
- package/dist/models/HallAttachmentModel.d.ts +11 -0
- package/dist/models/HallAttachmentModel.js +52 -0
- package/dist/models/HallChatModel.d.ts +18 -0
- package/dist/models/HallChatModel.js +65 -0
- package/dist/models/HallHistoryModel.d.ts +10 -0
- package/dist/models/HallHistoryModel.js +48 -0
- package/dist/models/HallMasterModel.d.ts +8 -0
- package/dist/models/HallMasterModel.js +40 -0
- package/dist/models/HallRequestModel.d.ts +26 -0
- package/dist/models/HallRequestModel.js +97 -0
- package/dist/models/HallWorkflowModel.d.ts +17 -0
- package/dist/models/HallWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +14 -0
- package/src/index.ts +7 -0
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
- package/src/models/HallApprovalModel.ts +56 -0
- package/src/models/HallAttachmentModel.ts +29 -0
- package/src/models/HallChatModel.ts +42 -0
- package/src/models/HallHistoryModel.ts +26 -0
- package/src/models/HallMasterModel.ts +20 -0
- package/src/models/HallRequestModel.ts +66 -0
- package/src/models/HallWorkflowModel.ts +43 -0
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/UserSkillModel.ts +56 -56
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
package/.env
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
DB_HOST=164.52.222.169
|
|
2
|
+
DB_PORT=5432
|
|
3
|
+
DB_USER=postgres_admin_user
|
|
4
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
DB_NAME=CAA
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
DB_HOST=localhost
|
|
9
|
-
DB_PORT=5432
|
|
10
|
-
DB_USER=postgres
|
|
11
|
-
DB_PASS=stevejobs
|
|
12
|
-
DB_NAME=CAA
|
|
8
|
+
# DB_HOST=localhost
|
|
9
|
+
# DB_PORT=5432
|
|
10
|
+
# DB_USER=postgres
|
|
11
|
+
# DB_PASS=stevejobs
|
|
12
|
+
# DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -131,6 +131,13 @@ const EventSupportApprovalModel_1 = require("./models/EventSupportApprovalModel"
|
|
|
131
131
|
const EventSupportAttachmentModel_1 = require("./models/EventSupportAttachmentModel");
|
|
132
132
|
const EventSupportChatModel_1 = require("./models/EventSupportChatModel");
|
|
133
133
|
const EventSupportWorkflowModel_1 = require("./models/EventSupportWorkflowModel");
|
|
134
|
+
const HallRequestModel_1 = require("./models/HallRequestModel");
|
|
135
|
+
const HallApprovalModel_1 = require("./models/HallApprovalModel");
|
|
136
|
+
const HallWorkflowModel_1 = require("./models/HallWorkflowModel");
|
|
137
|
+
const HallChatModel_1 = require("./models/HallChatModel");
|
|
138
|
+
const HallAttachmentModel_1 = require("./models/HallAttachmentModel");
|
|
139
|
+
const HallHistoryModel_1 = require("./models/HallHistoryModel");
|
|
140
|
+
const HallMasterModel_1 = require("./models/HallMasterModel");
|
|
134
141
|
const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
135
142
|
const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
136
143
|
const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
@@ -290,6 +297,13 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
290
297
|
EventSupportAttachmentModel_1.EventSupportRequestAttachment,
|
|
291
298
|
EventSupportChatModel_1.EventSupportRequestChat,
|
|
292
299
|
EventSupportWorkflowModel_1.EventSupportWorkFlow,
|
|
300
|
+
HallRequestModel_1.HallRequests,
|
|
301
|
+
HallApprovalModel_1.HallApprovalDetails,
|
|
302
|
+
HallWorkflowModel_1.HallWorkFlow,
|
|
303
|
+
HallChatModel_1.HallRequestChat,
|
|
304
|
+
HallAttachmentModel_1.HallRequestAttachment,
|
|
305
|
+
HallHistoryModel_1.HallHistory,
|
|
306
|
+
HallMasterModel_1.HallMaster,
|
|
293
307
|
AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
|
|
294
308
|
AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
|
|
295
309
|
AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
|
package/dist/index.d.ts
CHANGED
|
@@ -104,6 +104,13 @@ export * from './models/EventSupportApprovalModel';
|
|
|
104
104
|
export * from './models/EventSupportAttachmentModel';
|
|
105
105
|
export * from './models/EventSupportChatModel';
|
|
106
106
|
export * from './models/EventSupportWorkflowModel';
|
|
107
|
+
export * from './models/HallRequestModel';
|
|
108
|
+
export * from './models/HallApprovalModel';
|
|
109
|
+
export * from './models/HallWorkflowModel';
|
|
110
|
+
export * from './models/HallChatModel';
|
|
111
|
+
export * from './models/HallAttachmentModel';
|
|
112
|
+
export * from './models/HallHistoryModel';
|
|
113
|
+
export * from './models/HallMasterModel';
|
|
107
114
|
export { CancellationRequestStatus } from './models/CancellationRequestModel';
|
|
108
115
|
export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
|
|
109
116
|
export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
|
package/dist/index.js
CHANGED
|
@@ -132,6 +132,13 @@ __exportStar(require("./models/EventSupportApprovalModel"), exports);
|
|
|
132
132
|
__exportStar(require("./models/EventSupportAttachmentModel"), exports);
|
|
133
133
|
__exportStar(require("./models/EventSupportChatModel"), exports);
|
|
134
134
|
__exportStar(require("./models/EventSupportWorkflowModel"), exports);
|
|
135
|
+
__exportStar(require("./models/HallRequestModel"), exports);
|
|
136
|
+
__exportStar(require("./models/HallApprovalModel"), exports);
|
|
137
|
+
__exportStar(require("./models/HallWorkflowModel"), exports);
|
|
138
|
+
__exportStar(require("./models/HallChatModel"), exports);
|
|
139
|
+
__exportStar(require("./models/HallAttachmentModel"), exports);
|
|
140
|
+
__exportStar(require("./models/HallHistoryModel"), exports);
|
|
141
|
+
__exportStar(require("./models/HallMasterModel"), exports);
|
|
135
142
|
var CancellationRequestModel_1 = require("./models/CancellationRequestModel");
|
|
136
143
|
Object.defineProperty(exports, "CancellationRequestStatus", { enumerable: true, get: function () { return CancellationRequestModel_1.CancellationRequestStatus; } });
|
|
137
144
|
var EventSupportRequestModel_1 = require("./models/EventSupportRequestModel");
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class HallApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: HallApprovalStatus;
|
|
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.HallApprovalDetails = exports.HallApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallApprovalStatus;
|
|
16
|
+
(function (HallApprovalStatus) {
|
|
17
|
+
HallApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
HallApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
HallApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
HallApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(HallApprovalStatus || (exports.HallApprovalStatus = HallApprovalStatus = {}));
|
|
22
|
+
let HallApprovalDetails = class HallApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.HallApprovalDetails = HallApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], HallApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], HallApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], HallApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], HallApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], HallApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], HallApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], HallApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], HallApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], HallApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], HallApprovalDetails.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
|
+
], HallApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: HallApprovalStatus,
|
|
73
|
+
default: HallApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], HallApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], HallApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.HallApprovalDetails = HallApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: "hall_approvals" })
|
|
84
|
+
], 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,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class HallRequestChat 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: HallMessageType;
|
|
17
|
+
status: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HallRequestChat = exports.HallMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallMessageType;
|
|
16
|
+
(function (HallMessageType) {
|
|
17
|
+
HallMessageType["TEXT"] = "text";
|
|
18
|
+
HallMessageType["IMAGE"] = "image";
|
|
19
|
+
HallMessageType["VIDEO"] = "video";
|
|
20
|
+
HallMessageType["FILE"] = "file";
|
|
21
|
+
HallMessageType["LINK"] = "link";
|
|
22
|
+
})(HallMessageType || (exports.HallMessageType = HallMessageType = {}));
|
|
23
|
+
let HallRequestChat = class HallRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.HallRequestChat = HallRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], HallRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], HallRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], HallRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], HallRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: "enum",
|
|
53
|
+
enum: HallMessageType,
|
|
54
|
+
default: HallMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], HallRequestChat.prototype, "messageType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], HallRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.HallRequestChat = HallRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: "hall_chats" })
|
|
65
|
+
], HallRequestChat);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class HallHistory 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.HallHistory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HallHistory = class HallHistory extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.HallHistory = HallHistory;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
20
|
+
__metadata("design:type", Object)
|
|
21
|
+
], HallHistory.prototype, "hall_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], HallHistory.prototype, "location_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallHistory.prototype, "department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallHistory.prototype, "booked_start_date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallHistory.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
|
+
], HallHistory.prototype, "from_time", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], HallHistory.prototype, "to_time", void 0);
|
|
46
|
+
exports.HallHistory = HallHistory = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: "hall_histories" })
|
|
48
|
+
], HallHistory);
|
|
@@ -0,0 +1,40 @@
|
|
|
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.HallMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HallMaster = class HallMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.HallMaster = HallMaster;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], HallMaster.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], HallMaster.prototype, "location", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallMaster.prototype, "department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallMaster.prototype, "location_name_in_arabic", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallMaster.prototype, "hall_name_in_arabic", void 0);
|
|
38
|
+
exports.HallMaster = HallMaster = __decorate([
|
|
39
|
+
(0, typeorm_1.Entity)({ name: "halls" })
|
|
40
|
+
], HallMaster);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
CANCELLED = "Cancelled"
|
|
8
|
+
}
|
|
9
|
+
export declare class HallRequests extends BaseModel {
|
|
10
|
+
req_user_department_id: number | null;
|
|
11
|
+
req_user_section_id: number | null;
|
|
12
|
+
service_id: number | null;
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
user_id: number;
|
|
15
|
+
purpose_of_event: string | null;
|
|
16
|
+
hall_id: number | null;
|
|
17
|
+
type_of_hall: string | null;
|
|
18
|
+
start_date: string | null;
|
|
19
|
+
end_date: string | null;
|
|
20
|
+
start_time: string | null;
|
|
21
|
+
end_time: string | null;
|
|
22
|
+
no_of_attendees: number | null;
|
|
23
|
+
remarks: string | null;
|
|
24
|
+
status: HallRequestStatus;
|
|
25
|
+
workflow_execution_id: string | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 = exports.HallRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallRequestStatus;
|
|
16
|
+
(function (HallRequestStatus) {
|
|
17
|
+
HallRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
HallRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
HallRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
HallRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
HallRequestStatus["CANCELLED"] = "Cancelled";
|
|
22
|
+
})(HallRequestStatus || (exports.HallRequestStatus = HallRequestStatus = {}));
|
|
23
|
+
let HallRequests = class HallRequests extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.HallRequests = HallRequests;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], HallRequests.prototype, "req_user_department_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HallRequests.prototype, "req_user_section_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], HallRequests.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], HallRequests.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], HallRequests.prototype, "user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], HallRequests.prototype, "purpose_of_event", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], HallRequests.prototype, "hall_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], HallRequests.prototype, "type_of_hall", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], HallRequests.prototype, "start_date", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], HallRequests.prototype, "end_date", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "time", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], HallRequests.prototype, "start_time", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "time", nullable: true }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], HallRequests.prototype, "end_time", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], HallRequests.prototype, "no_of_attendees", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], HallRequests.prototype, "remarks", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({
|
|
84
|
+
type: "enum",
|
|
85
|
+
enum: HallRequestStatus,
|
|
86
|
+
default: HallRequestStatus.PENDING,
|
|
87
|
+
nullable: false,
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], HallRequests.prototype, "status", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], HallRequests.prototype, "workflow_execution_id", void 0);
|
|
95
|
+
exports.HallRequests = HallRequests = __decorate([
|
|
96
|
+
(0, typeorm_1.Entity)({ name: "hall_requests" })
|
|
97
|
+
], HallRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HallWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class HallWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: HallWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|