@platform-modules/civil-aviation-authority 2.3.149 → 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/.env +10 -10
- package/dist/data-source.js +20 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +37 -3
- package/dist/models/CancellationApprovalModel.d.ts +23 -0
- package/dist/models/CancellationApprovalModel.js +88 -0
- package/dist/models/CancellationAttachmentModel.d.ts +12 -0
- package/dist/models/CancellationAttachmentModel.js +56 -0
- package/dist/models/CancellationChatModel.d.ts +18 -0
- package/dist/models/CancellationChatModel.js +65 -0
- package/dist/models/CancellationRequestModel.d.ts +23 -0
- package/dist/models/CancellationRequestModel.js +73 -0
- package/dist/models/CancellationWorkflowModel.d.ts +18 -0
- package/dist/models/CancellationWorkflowModel.js +66 -0
- 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 +20 -0
- package/src/index.ts +22 -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/CancellationApprovalModel.ts +59 -0
- package/src/models/CancellationAttachmentModel.ts +32 -0
- package/src/models/CancellationChatModel.ts +42 -0
- package/src/models/CancellationRequestModel.ts +48 -0
- package/src/models/CancellationWorkflowModel.ts +41 -0
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
- 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/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
|
@@ -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
|
@@ -119,6 +119,16 @@ import { ScholarshipApprovalDetails } from './models/ScholarshipApprovalModel';
|
|
|
119
119
|
import { ScholarshipRequestAttachment } from './models/ScholarshipAttachmentModel';
|
|
120
120
|
import { ScholarshipRequestChat } from './models/ScholarshipChatModel';
|
|
121
121
|
import { ScholarshipWorkFlow } from './models/ScholarshipWorkflowModel';
|
|
122
|
+
import { CancellationRequests } from './models/CancellationRequestModel';
|
|
123
|
+
import { CancellationApprovalDetails } from './models/CancellationApprovalModel';
|
|
124
|
+
import { CancellationRequestAttachment } from './models/CancellationAttachmentModel';
|
|
125
|
+
import { CancellationRequestChat } from './models/CancellationChatModel';
|
|
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';
|
|
122
132
|
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
123
133
|
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
124
134
|
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
@@ -269,6 +279,16 @@ export const AppDataSource = new DataSource({
|
|
|
269
279
|
ScholarshipRequestAttachment,
|
|
270
280
|
ScholarshipRequestChat,
|
|
271
281
|
ScholarshipWorkFlow,
|
|
282
|
+
CancellationRequests,
|
|
283
|
+
CancellationApprovalDetails,
|
|
284
|
+
CancellationRequestAttachment,
|
|
285
|
+
CancellationRequestChat,
|
|
286
|
+
CancellationWorkFlow,
|
|
287
|
+
EventSupportRequests,
|
|
288
|
+
EventSupportApprovalDetails,
|
|
289
|
+
EventSupportRequestAttachment,
|
|
290
|
+
EventSupportRequestChat,
|
|
291
|
+
EventSupportWorkFlow,
|
|
272
292
|
AnnualTrainingPlanRequest,
|
|
273
293
|
AnnualTrainingPlanWorkFlow,
|
|
274
294
|
AnnualTrainingPlanApprovalDetails,
|
package/src/index.ts
CHANGED
|
@@ -100,6 +100,28 @@ export * from './models/ScholarshipApprovalModel';
|
|
|
100
100
|
export * from './models/ScholarshipAttachmentModel';
|
|
101
101
|
export * from './models/ScholarshipChatModel';
|
|
102
102
|
export * from './models/ScholarshipWorkflowModel';
|
|
103
|
+
export * from './models/CancellationRequestModel';
|
|
104
|
+
export * from './models/CancellationApprovalModel';
|
|
105
|
+
export * from './models/CancellationAttachmentModel';
|
|
106
|
+
export * from './models/CancellationChatModel';
|
|
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';
|
|
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';
|
|
120
|
+
export { CancellationApprovalStatus } from './models/CancellationApprovalModel';
|
|
121
|
+
export { CancellationWorkFlowStatus } from './models/CancellationWorkflowModel';
|
|
122
|
+
export { CancellationRequestAttachment } from './models/CancellationAttachmentModel';
|
|
123
|
+
export { CancellationRequestChat } from './models/CancellationChatModel';
|
|
124
|
+
export { CancellationMessageType } from './models/CancellationChatModel';
|
|
103
125
|
export {HrServiceRequestStatus} from './models/HrServiceRequestModel';
|
|
104
126
|
export {HrServiceApprovalStatus} from './models/HrServiceApprovalModel';
|
|
105
127
|
export {HrServiceWorkFlowStatus} from './models/HrServiceWorkflowModel';
|
|
@@ -35,14 +35,14 @@ export class AccommodationApproval extends BaseModel {
|
|
|
35
35
|
@Column({ type: 'int', nullable: true })
|
|
36
36
|
department_id: number;
|
|
37
37
|
|
|
38
|
-
@Column({ type: 'int', nullable: true })
|
|
39
|
-
section_id: number;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
-
is_allowed: boolean;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'int', nullable: false })
|
|
45
|
-
level: number;
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
section_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
+
is_allowed: boolean;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'int', nullable: false })
|
|
45
|
+
level: number;
|
|
46
46
|
|
|
47
47
|
@Column({
|
|
48
48
|
type: 'enum',
|