@platform-modules/civil-aviation-authority 2.3.150 → 2.3.152
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/dist/data-source.js +10 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +20 -3
- package/dist/models/EventSupportApprovalModel.d.ts +23 -0
- package/dist/models/EventSupportApprovalModel.js +88 -0
- package/dist/models/EventSupportAttachmentModel.d.ts +12 -0
- package/dist/models/EventSupportAttachmentModel.js +56 -0
- package/dist/models/EventSupportChatModel.d.ts +18 -0
- package/dist/models/EventSupportChatModel.js +65 -0
- package/dist/models/EventSupportRequestModel.d.ts +27 -0
- package/dist/models/EventSupportRequestModel.js +89 -0
- package/dist/models/EventSupportWorkflowModel.d.ts +18 -0
- package/dist/models/EventSupportWorkflowModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +11 -0
- package/src/models/EventSupportApprovalModel.ts +59 -0
- package/src/models/EventSupportAttachmentModel.ts +32 -0
- package/src/models/EventSupportChatModel.ts +42 -0
- package/src/models/EventSupportRequestModel.ts +60 -0
- package/src/models/EventSupportWorkflowModel.ts +41 -0
package/dist/data-source.js
CHANGED
|
@@ -126,6 +126,11 @@ const CancellationApprovalModel_1 = require("./models/CancellationApprovalModel"
|
|
|
126
126
|
const CancellationAttachmentModel_1 = require("./models/CancellationAttachmentModel");
|
|
127
127
|
const CancellationChatModel_1 = require("./models/CancellationChatModel");
|
|
128
128
|
const CancellationWorkflowModel_1 = require("./models/CancellationWorkflowModel");
|
|
129
|
+
const EventSupportRequestModel_1 = require("./models/EventSupportRequestModel");
|
|
130
|
+
const EventSupportApprovalModel_1 = require("./models/EventSupportApprovalModel");
|
|
131
|
+
const EventSupportAttachmentModel_1 = require("./models/EventSupportAttachmentModel");
|
|
132
|
+
const EventSupportChatModel_1 = require("./models/EventSupportChatModel");
|
|
133
|
+
const EventSupportWorkflowModel_1 = require("./models/EventSupportWorkflowModel");
|
|
129
134
|
const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
130
135
|
const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
131
136
|
const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
@@ -280,6 +285,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
280
285
|
CancellationAttachmentModel_1.CancellationRequestAttachment,
|
|
281
286
|
CancellationChatModel_1.CancellationRequestChat,
|
|
282
287
|
CancellationWorkflowModel_1.CancellationWorkFlow,
|
|
288
|
+
EventSupportRequestModel_1.EventSupportRequests,
|
|
289
|
+
EventSupportApprovalModel_1.EventSupportApprovalDetails,
|
|
290
|
+
EventSupportAttachmentModel_1.EventSupportRequestAttachment,
|
|
291
|
+
EventSupportChatModel_1.EventSupportRequestChat,
|
|
292
|
+
EventSupportWorkflowModel_1.EventSupportWorkFlow,
|
|
283
293
|
AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
|
|
284
294
|
AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
|
|
285
295
|
AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,18 @@ export * from './models/CancellationApprovalModel';
|
|
|
99
99
|
export * from './models/CancellationAttachmentModel';
|
|
100
100
|
export * from './models/CancellationChatModel';
|
|
101
101
|
export * from './models/CancellationWorkflowModel';
|
|
102
|
+
export * from './models/EventSupportRequestModel';
|
|
103
|
+
export * from './models/EventSupportApprovalModel';
|
|
104
|
+
export * from './models/EventSupportAttachmentModel';
|
|
105
|
+
export * from './models/EventSupportChatModel';
|
|
106
|
+
export * from './models/EventSupportWorkflowModel';
|
|
102
107
|
export { CancellationRequestStatus } from './models/CancellationRequestModel';
|
|
108
|
+
export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
|
|
109
|
+
export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
|
|
110
|
+
export { EventSupportWorkFlowStatus } from './models/EventSupportWorkflowModel';
|
|
111
|
+
export { EventSupportRequestAttachment } from './models/EventSupportAttachmentModel';
|
|
112
|
+
export { EventSupportRequestChat } from './models/EventSupportChatModel';
|
|
113
|
+
export { EventSupportMessageType } from './models/EventSupportChatModel';
|
|
103
114
|
export { CancellationApprovalStatus } from './models/CancellationApprovalModel';
|
|
104
115
|
export { CancellationWorkFlowStatus } from './models/CancellationWorkflowModel';
|
|
105
116
|
export { CancellationRequestAttachment } from './models/CancellationAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = void 0;
|
|
17
|
+
exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.CancellationMessageType = exports.CancellationRequestChat = exports.CancellationRequestAttachment = exports.CancellationWorkFlowStatus = exports.CancellationApprovalStatus = exports.EventSupportMessageType = exports.EventSupportRequestChat = exports.EventSupportRequestAttachment = exports.EventSupportWorkFlowStatus = exports.EventSupportApprovalStatus = exports.EventSupportRequestStatus = exports.CancellationRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
+
exports.LegalContractReviewRequestStatus = exports.LegalContractReviewRequest = exports.CyberSecurityRiskImpactedCategory = exports.CyberSecurityRiskManagementRisk = exports.CyberSecurityRiskManagementRequestStatus = exports.CyberSecurityRiskManagementRequest = exports.CyberSecurityAuditApplicationType = exports.CyberSecurityAuditClassification = exports.CyberSecurityAuditRequestStatus = exports.CyberSecurityAuditRequest = exports.RequestForVaptClassification = exports.RequestForVaptType = exports.RequestForVaptStatus = exports.RequestForVaptRequest = exports.InformationSecurityRequestAttachment = exports.InformationSecurityWorkFlow = exports.InformationSecurityWorkFlowStatus = exports.InformationSecurityRequestChat = exports.InformationSecurityChatStatus = exports.InformationSecurityMessageType = exports.InformationSecurityApprovalDetails = exports.InformationSecurityApprovalStatus = exports.RequestForProjectApproval = exports.RequestForProjectApprovalStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = void 0;
|
|
19
|
+
exports.DurationUnit = exports.RepeatFrequency = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = exports.PerformanceManagementCyclePeriod = exports.PerformanceManagementRequestStatus = exports.SkillsEnhancementRequestStatus = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.AppealAgainstAdministrativeDecisionRequestStatus = exports.AppealAgainstAdministrativeDecisionRequest = exports.LegalContractReviewRequestType = void 0;
|
|
20
20
|
__exportStar(require("./models/user"), exports);
|
|
21
21
|
__exportStar(require("./models/role"), exports);
|
|
22
22
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -127,8 +127,25 @@ __exportStar(require("./models/CancellationApprovalModel"), exports);
|
|
|
127
127
|
__exportStar(require("./models/CancellationAttachmentModel"), exports);
|
|
128
128
|
__exportStar(require("./models/CancellationChatModel"), exports);
|
|
129
129
|
__exportStar(require("./models/CancellationWorkflowModel"), exports);
|
|
130
|
+
__exportStar(require("./models/EventSupportRequestModel"), exports);
|
|
131
|
+
__exportStar(require("./models/EventSupportApprovalModel"), exports);
|
|
132
|
+
__exportStar(require("./models/EventSupportAttachmentModel"), exports);
|
|
133
|
+
__exportStar(require("./models/EventSupportChatModel"), exports);
|
|
134
|
+
__exportStar(require("./models/EventSupportWorkflowModel"), exports);
|
|
130
135
|
var CancellationRequestModel_1 = require("./models/CancellationRequestModel");
|
|
131
136
|
Object.defineProperty(exports, "CancellationRequestStatus", { enumerable: true, get: function () { return CancellationRequestModel_1.CancellationRequestStatus; } });
|
|
137
|
+
var EventSupportRequestModel_1 = require("./models/EventSupportRequestModel");
|
|
138
|
+
Object.defineProperty(exports, "EventSupportRequestStatus", { enumerable: true, get: function () { return EventSupportRequestModel_1.EventSupportRequestStatus; } });
|
|
139
|
+
var EventSupportApprovalModel_1 = require("./models/EventSupportApprovalModel");
|
|
140
|
+
Object.defineProperty(exports, "EventSupportApprovalStatus", { enumerable: true, get: function () { return EventSupportApprovalModel_1.EventSupportApprovalStatus; } });
|
|
141
|
+
var EventSupportWorkflowModel_1 = require("./models/EventSupportWorkflowModel");
|
|
142
|
+
Object.defineProperty(exports, "EventSupportWorkFlowStatus", { enumerable: true, get: function () { return EventSupportWorkflowModel_1.EventSupportWorkFlowStatus; } });
|
|
143
|
+
var EventSupportAttachmentModel_1 = require("./models/EventSupportAttachmentModel");
|
|
144
|
+
Object.defineProperty(exports, "EventSupportRequestAttachment", { enumerable: true, get: function () { return EventSupportAttachmentModel_1.EventSupportRequestAttachment; } });
|
|
145
|
+
var EventSupportChatModel_1 = require("./models/EventSupportChatModel");
|
|
146
|
+
Object.defineProperty(exports, "EventSupportRequestChat", { enumerable: true, get: function () { return EventSupportChatModel_1.EventSupportRequestChat; } });
|
|
147
|
+
var EventSupportChatModel_2 = require("./models/EventSupportChatModel");
|
|
148
|
+
Object.defineProperty(exports, "EventSupportMessageType", { enumerable: true, get: function () { return EventSupportChatModel_2.EventSupportMessageType; } });
|
|
132
149
|
var CancellationApprovalModel_1 = require("./models/CancellationApprovalModel");
|
|
133
150
|
Object.defineProperty(exports, "CancellationApprovalStatus", { enumerable: true, get: function () { return CancellationApprovalModel_1.CancellationApprovalStatus; } });
|
|
134
151
|
var CancellationWorkflowModel_1 = require("./models/CancellationWorkflowModel");
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum EventSupportApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class EventSupportApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
workflow_step_order: number | null;
|
|
14
|
+
approver_role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
approver_user_id: number | null;
|
|
18
|
+
delegate_user_id: number | null;
|
|
19
|
+
approved_by: number | null;
|
|
20
|
+
comment: string;
|
|
21
|
+
approval_status: EventSupportApprovalStatus;
|
|
22
|
+
is_allowed: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.EventSupportApprovalDetails = exports.EventSupportApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EventSupportApprovalStatus;
|
|
16
|
+
(function (EventSupportApprovalStatus) {
|
|
17
|
+
EventSupportApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
EventSupportApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
EventSupportApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
EventSupportApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(EventSupportApprovalStatus || (exports.EventSupportApprovalStatus = EventSupportApprovalStatus = {}));
|
|
22
|
+
let EventSupportApprovalDetails = class EventSupportApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.EventSupportApprovalDetails = EventSupportApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], EventSupportApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], EventSupportApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], EventSupportApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], EventSupportApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], EventSupportApprovalDetails.prototype, "workflow_step_order", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], EventSupportApprovalDetails.prototype, "approver_role_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], EventSupportApprovalDetails.prototype, "department_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], EventSupportApprovalDetails.prototype, "section_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], EventSupportApprovalDetails.prototype, "approver_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], EventSupportApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], EventSupportApprovalDetails.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], EventSupportApprovalDetails.prototype, "comment", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({
|
|
75
|
+
type: "enum",
|
|
76
|
+
enum: EventSupportApprovalStatus,
|
|
77
|
+
default: EventSupportApprovalStatus.PENDING,
|
|
78
|
+
nullable: false,
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], EventSupportApprovalDetails.prototype, "approval_status", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
84
|
+
__metadata("design:type", Boolean)
|
|
85
|
+
], EventSupportApprovalDetails.prototype, "is_allowed", void 0);
|
|
86
|
+
exports.EventSupportApprovalDetails = EventSupportApprovalDetails = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)({ name: "event_support_approvals" })
|
|
88
|
+
], EventSupportApprovalDetails);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class EventSupportRequestAttachment 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
|
+
attachment_for: string | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.EventSupportRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let EventSupportRequestAttachment = class EventSupportRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.EventSupportRequestAttachment = EventSupportRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], EventSupportRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], EventSupportRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], EventSupportRequestAttachment.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
|
+
], EventSupportRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], EventSupportRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], EventSupportRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], EventSupportRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], EventSupportRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], EventSupportRequestAttachment.prototype, "attachment_for", void 0);
|
|
54
|
+
exports.EventSupportRequestAttachment = EventSupportRequestAttachment = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)({ name: "event_support_attachments" })
|
|
56
|
+
], EventSupportRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum EventSupportMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class EventSupportRequestChat 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: EventSupportMessageType;
|
|
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.EventSupportRequestChat = exports.EventSupportMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EventSupportMessageType;
|
|
16
|
+
(function (EventSupportMessageType) {
|
|
17
|
+
EventSupportMessageType["TEXT"] = "text";
|
|
18
|
+
EventSupportMessageType["IMAGE"] = "image";
|
|
19
|
+
EventSupportMessageType["VIDEO"] = "video";
|
|
20
|
+
EventSupportMessageType["FILE"] = "file";
|
|
21
|
+
EventSupportMessageType["LINK"] = "link";
|
|
22
|
+
})(EventSupportMessageType || (exports.EventSupportMessageType = EventSupportMessageType = {}));
|
|
23
|
+
let EventSupportRequestChat = class EventSupportRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.EventSupportRequestChat = EventSupportRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], EventSupportRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], EventSupportRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], EventSupportRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], EventSupportRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], EventSupportRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], EventSupportRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: "enum",
|
|
53
|
+
enum: EventSupportMessageType,
|
|
54
|
+
default: EventSupportMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], EventSupportRequestChat.prototype, "messageType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], EventSupportRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.EventSupportRequestChat = EventSupportRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: "event_support_chats" })
|
|
65
|
+
], EventSupportRequestChat);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum EventSupportRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
CANCELLED = "Cancelled"
|
|
9
|
+
}
|
|
10
|
+
export declare class EventSupportRequests extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
service_id: number | null;
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
user_id: number;
|
|
16
|
+
status: EventSupportRequestStatus;
|
|
17
|
+
workflow_execution_id: string | null;
|
|
18
|
+
event_title: string;
|
|
19
|
+
/** Department associated with the event / support request (distinct from requester dept) */
|
|
20
|
+
event_department_id: number | null;
|
|
21
|
+
request_for: string | null;
|
|
22
|
+
date_of_event: string;
|
|
23
|
+
location_of_event: string | null;
|
|
24
|
+
type_of_event: string | null;
|
|
25
|
+
phone_number: string | null;
|
|
26
|
+
reason_for_request: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.EventSupportRequests = exports.EventSupportRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EventSupportRequestStatus;
|
|
16
|
+
(function (EventSupportRequestStatus) {
|
|
17
|
+
EventSupportRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
EventSupportRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
EventSupportRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
EventSupportRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
EventSupportRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
EventSupportRequestStatus["CANCELLED"] = "Cancelled";
|
|
23
|
+
})(EventSupportRequestStatus || (exports.EventSupportRequestStatus = EventSupportRequestStatus = {}));
|
|
24
|
+
let EventSupportRequests = class EventSupportRequests extends BaseModel_1.BaseModel {
|
|
25
|
+
};
|
|
26
|
+
exports.EventSupportRequests = EventSupportRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], EventSupportRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], EventSupportRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], EventSupportRequests.prototype, "service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], EventSupportRequests.prototype, "sub_service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], EventSupportRequests.prototype, "user_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "enum", enum: EventSupportRequestStatus, default: EventSupportRequestStatus.PENDING, nullable: false }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], EventSupportRequests.prototype, "status", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], EventSupportRequests.prototype, "workflow_execution_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], EventSupportRequests.prototype, "event_title", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], EventSupportRequests.prototype, "event_department_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], EventSupportRequests.prototype, "request_for", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], EventSupportRequests.prototype, "date_of_event", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], EventSupportRequests.prototype, "location_of_event", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], EventSupportRequests.prototype, "type_of_event", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], EventSupportRequests.prototype, "phone_number", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], EventSupportRequests.prototype, "reason_for_request", void 0);
|
|
87
|
+
exports.EventSupportRequests = EventSupportRequests = __decorate([
|
|
88
|
+
(0, typeorm_1.Entity)({ name: "event_support_requests" })
|
|
89
|
+
], EventSupportRequests);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum EventSupportWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class EventSupportWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: EventSupportWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
step_order: number | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.EventSupportWorkFlow = exports.EventSupportWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EventSupportWorkFlowStatus;
|
|
16
|
+
(function (EventSupportWorkFlowStatus) {
|
|
17
|
+
EventSupportWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
EventSupportWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
EventSupportWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(EventSupportWorkFlowStatus || (exports.EventSupportWorkFlowStatus = EventSupportWorkFlowStatus = {}));
|
|
21
|
+
let EventSupportWorkFlow = class EventSupportWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.EventSupportWorkFlow = EventSupportWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], EventSupportWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], EventSupportWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], EventSupportWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EventSupportWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "enum", enum: EventSupportWorkFlowStatus, default: EventSupportWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], EventSupportWorkFlow.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], EventSupportWorkFlow.prototype, "user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], EventSupportWorkFlow.prototype, "role_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], EventSupportWorkFlow.prototype, "department_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], EventSupportWorkFlow.prototype, "section_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], EventSupportWorkFlow.prototype, "step_order", void 0);
|
|
64
|
+
exports.EventSupportWorkFlow = EventSupportWorkFlow = __decorate([
|
|
65
|
+
(0, typeorm_1.Entity)({ name: "event_support_workflows" })
|
|
66
|
+
], EventSupportWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -124,6 +124,11 @@ import { CancellationApprovalDetails } from './models/CancellationApprovalModel'
|
|
|
124
124
|
import { CancellationRequestAttachment } from './models/CancellationAttachmentModel';
|
|
125
125
|
import { CancellationRequestChat } from './models/CancellationChatModel';
|
|
126
126
|
import { CancellationWorkFlow } from './models/CancellationWorkflowModel';
|
|
127
|
+
import { EventSupportRequests } from './models/EventSupportRequestModel';
|
|
128
|
+
import { EventSupportApprovalDetails } from './models/EventSupportApprovalModel';
|
|
129
|
+
import { EventSupportRequestAttachment } from './models/EventSupportAttachmentModel';
|
|
130
|
+
import { EventSupportRequestChat } from './models/EventSupportChatModel';
|
|
131
|
+
import { EventSupportWorkFlow } from './models/EventSupportWorkflowModel';
|
|
127
132
|
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
128
133
|
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
129
134
|
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
@@ -279,6 +284,11 @@ export const AppDataSource = new DataSource({
|
|
|
279
284
|
CancellationRequestAttachment,
|
|
280
285
|
CancellationRequestChat,
|
|
281
286
|
CancellationWorkFlow,
|
|
287
|
+
EventSupportRequests,
|
|
288
|
+
EventSupportApprovalDetails,
|
|
289
|
+
EventSupportRequestAttachment,
|
|
290
|
+
EventSupportRequestChat,
|
|
291
|
+
EventSupportWorkFlow,
|
|
282
292
|
AnnualTrainingPlanRequest,
|
|
283
293
|
AnnualTrainingPlanWorkFlow,
|
|
284
294
|
AnnualTrainingPlanApprovalDetails,
|
package/src/index.ts
CHANGED
|
@@ -105,7 +105,18 @@ export * from './models/CancellationApprovalModel';
|
|
|
105
105
|
export * from './models/CancellationAttachmentModel';
|
|
106
106
|
export * from './models/CancellationChatModel';
|
|
107
107
|
export * from './models/CancellationWorkflowModel';
|
|
108
|
+
export * from './models/EventSupportRequestModel';
|
|
109
|
+
export * from './models/EventSupportApprovalModel';
|
|
110
|
+
export * from './models/EventSupportAttachmentModel';
|
|
111
|
+
export * from './models/EventSupportChatModel';
|
|
112
|
+
export * from './models/EventSupportWorkflowModel';
|
|
108
113
|
export { CancellationRequestStatus } from './models/CancellationRequestModel';
|
|
114
|
+
export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
|
|
115
|
+
export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
|
|
116
|
+
export { EventSupportWorkFlowStatus } from './models/EventSupportWorkflowModel';
|
|
117
|
+
export { EventSupportRequestAttachment } from './models/EventSupportAttachmentModel';
|
|
118
|
+
export { EventSupportRequestChat } from './models/EventSupportChatModel';
|
|
119
|
+
export { EventSupportMessageType } from './models/EventSupportChatModel';
|
|
109
120
|
export { CancellationApprovalStatus } from './models/CancellationApprovalModel';
|
|
110
121
|
export { CancellationWorkFlowStatus } from './models/CancellationWorkflowModel';
|
|
111
122
|
export { CancellationRequestAttachment } from './models/CancellationAttachmentModel';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum EventSupportApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "event_support_approvals" })
|
|
12
|
+
export class EventSupportApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: "integer", nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "integer", nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "integer", nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
workflow_step_order: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "integer", nullable: true })
|
|
29
|
+
approver_role_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "integer", nullable: true })
|
|
32
|
+
department_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "integer", nullable: true })
|
|
35
|
+
section_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "integer", nullable: true })
|
|
38
|
+
approver_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "integer", nullable: true })
|
|
41
|
+
delegate_user_id: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "integer", nullable: true })
|
|
44
|
+
approved_by: number | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: "varchar", length: 500, nullable: true, default: "" })
|
|
47
|
+
comment: string;
|
|
48
|
+
|
|
49
|
+
@Column({
|
|
50
|
+
type: "enum",
|
|
51
|
+
enum: EventSupportApprovalStatus,
|
|
52
|
+
default: EventSupportApprovalStatus.PENDING,
|
|
53
|
+
nullable: false,
|
|
54
|
+
})
|
|
55
|
+
approval_status: EventSupportApprovalStatus;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
58
|
+
is_allowed: boolean;
|
|
59
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "event_support_attachments" })
|
|
5
|
+
export class EventSupportRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: "integer", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "integer", nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "integer", nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "bigint", nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
31
|
+
attachment_for: string | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum EventSupportMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "event_support_chats" })
|
|
13
|
+
export class EventSupportRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
role_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "text", nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: "enum",
|
|
34
|
+
enum: EventSupportMessageType,
|
|
35
|
+
default: EventSupportMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: EventSupportMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "text", nullable: true })
|
|
41
|
+
status: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum EventSupportRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected",
|
|
10
|
+
CANCELLED = "Cancelled",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: "event_support_requests" })
|
|
14
|
+
export class EventSupportRequests extends BaseModel {
|
|
15
|
+
@Column({ type: "integer", nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "integer", nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "integer", nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "integer", nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "enum", enum: EventSupportRequestStatus, default: EventSupportRequestStatus.PENDING, nullable: false })
|
|
31
|
+
status: EventSupportRequestStatus;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "varchar", nullable: true })
|
|
34
|
+
workflow_execution_id: string | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
37
|
+
event_title: string;
|
|
38
|
+
|
|
39
|
+
/** Department associated with the event / support request (distinct from requester dept) */
|
|
40
|
+
@Column({ type: "integer", nullable: true })
|
|
41
|
+
event_department_id: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
44
|
+
request_for: string | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: "date", nullable: false })
|
|
47
|
+
date_of_event: string;
|
|
48
|
+
|
|
49
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
50
|
+
location_of_event: string | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
53
|
+
type_of_event: string | null;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "varchar", length: 64, nullable: true })
|
|
56
|
+
phone_number: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "text", nullable: false })
|
|
59
|
+
reason_for_request: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum EventSupportWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: "event_support_workflows" })
|
|
11
|
+
export class EventSupportWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: "integer", nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "integer", nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "integer", nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "enum", enum: EventSupportWorkFlowStatus, default: EventSupportWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: EventSupportWorkFlowStatus;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "integer", nullable: true })
|
|
28
|
+
user_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
role_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: true })
|
|
34
|
+
department_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: true })
|
|
37
|
+
section_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
step_order: number | null;
|
|
41
|
+
}
|