@platform-modules/civil-aviation-authority 2.3.172 → 2.3.174
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 +13 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +24 -1
- package/dist/models/RespondToEnquiriesApprovalModel.d.ts +27 -0
- package/dist/models/RespondToEnquiriesApprovalModel.js +118 -0
- package/dist/models/RespondToEnquiriesAttachmentModel.d.ts +13 -0
- package/dist/models/RespondToEnquiriesAttachmentModel.js +69 -0
- package/dist/models/RespondToEnquiriesChatModel.d.ts +29 -0
- package/dist/models/RespondToEnquiriesChatModel.js +99 -0
- package/dist/models/RespondToEnquiriesRequestModel.d.ts +42 -0
- package/dist/models/RespondToEnquiriesRequestModel.js +175 -0
- package/dist/models/RespondToEnquiriesWorkflowModel.d.ts +19 -0
- package/dist/models/RespondToEnquiriesWorkflowModel.js +82 -0
- package/dist/models/ScholarshipAttendeeModel.d.ts +6 -0
- package/dist/models/ScholarshipAttendeeModel.js +32 -0
- package/dist/models/ScholarshipRequestModel.d.ts +10 -0
- package/dist/models/ScholarshipRequestModel.js +36 -0
- package/dist/models/user.d.ts +3 -3
- package/dist/models/user.js +4 -4
- package/package.json +1 -1
- package/src/data-source.ts +13 -1
- package/src/index.ts +21 -0
- package/src/models/RespondToEnquiriesApprovalModel.ts +104 -0
- package/src/models/RespondToEnquiriesAttachmentModel.ts +55 -0
- package/src/models/RespondToEnquiriesChatModel.ts +85 -0
- package/src/models/RespondToEnquiriesRequestModel.ts +160 -0
- package/src/models/RespondToEnquiriesWorkflowModel.ts +68 -0
- package/src/models/ScholarshipAttendeeModel.ts +14 -0
- package/src/models/ScholarshipRequestModel.ts +28 -0
- package/src/models/user.ts +5 -5
|
@@ -0,0 +1,175 @@
|
|
|
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.RespondToEnquiriesRequest = exports.RespondToEnquiriesEnquiryCategory = exports.RespondToEnquiriesRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RespondToEnquiriesRequestStatus;
|
|
16
|
+
(function (RespondToEnquiriesRequestStatus) {
|
|
17
|
+
RespondToEnquiriesRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
RespondToEnquiriesRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
RespondToEnquiriesRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
RespondToEnquiriesRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
RespondToEnquiriesRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
RespondToEnquiriesRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(RespondToEnquiriesRequestStatus || (exports.RespondToEnquiriesRequestStatus = RespondToEnquiriesRequestStatus = {}));
|
|
24
|
+
var RespondToEnquiriesEnquiryCategory;
|
|
25
|
+
(function (RespondToEnquiriesEnquiryCategory) {
|
|
26
|
+
RespondToEnquiriesEnquiryCategory["GENERAL"] = "general";
|
|
27
|
+
RespondToEnquiriesEnquiryCategory["CANCELLED_TENDER"] = "cancelled_tender";
|
|
28
|
+
RespondToEnquiriesEnquiryCategory["REFLOATED_TENDER"] = "refloated_tender";
|
|
29
|
+
})(RespondToEnquiriesEnquiryCategory || (exports.RespondToEnquiriesEnquiryCategory = RespondToEnquiriesEnquiryCategory = {}));
|
|
30
|
+
let RespondToEnquiriesRequest = class RespondToEnquiriesRequest extends BaseModel_1.BaseModel {
|
|
31
|
+
constructor(user_id, title_of_enquiry, description, date_of_submission, phone, status = RespondToEnquiriesRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, enquiry_category, tender_date_of_submission, tender_phone, budget_code, estimated_cost, implementation_period, requesting_entity, relevant_department_id) {
|
|
32
|
+
super();
|
|
33
|
+
this.user_id = user_id;
|
|
34
|
+
this.title_of_enquiry = title_of_enquiry;
|
|
35
|
+
this.description = description;
|
|
36
|
+
this.date_of_submission = date_of_submission;
|
|
37
|
+
this.phone = phone;
|
|
38
|
+
this.status = status;
|
|
39
|
+
this.service_id = service_id || null;
|
|
40
|
+
this.sub_service_id = sub_service_id || null;
|
|
41
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
42
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
43
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
44
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
45
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
46
|
+
this.assigned_at = assigned_at || null;
|
|
47
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
48
|
+
this.reference_number = null;
|
|
49
|
+
this.request_id = request_id || null;
|
|
50
|
+
this.enquiry_category = enquiry_category ?? RespondToEnquiriesEnquiryCategory.GENERAL;
|
|
51
|
+
this.tender_date_of_submission = tender_date_of_submission ?? null;
|
|
52
|
+
this.tender_phone = tender_phone ?? null;
|
|
53
|
+
this.budget_code = budget_code ?? null;
|
|
54
|
+
this.estimated_cost = estimated_cost ?? null;
|
|
55
|
+
this.implementation_period = implementation_period ?? null;
|
|
56
|
+
this.requesting_entity = requesting_entity ?? null;
|
|
57
|
+
this.relevant_department_id = relevant_department_id ?? null;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.RespondToEnquiriesRequest = RespondToEnquiriesRequest;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RespondToEnquiriesRequest.prototype, "req_user_department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], RespondToEnquiriesRequest.prototype, "req_user_section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], RespondToEnquiriesRequest.prototype, "req_user_position_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], RespondToEnquiriesRequest.prototype, "service_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], RespondToEnquiriesRequest.prototype, "sub_service_id", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], RespondToEnquiriesRequest.prototype, "user_id", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], RespondToEnquiriesRequest.prototype, "description", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({
|
|
91
|
+
type: "enum",
|
|
92
|
+
enum: RespondToEnquiriesRequestStatus,
|
|
93
|
+
default: RespondToEnquiriesRequestStatus.PENDING,
|
|
94
|
+
nullable: false
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], RespondToEnquiriesRequest.prototype, "status", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], RespondToEnquiriesRequest.prototype, "reviewer_user_id", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], RespondToEnquiriesRequest.prototype, "assigned_to_user_id", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], RespondToEnquiriesRequest.prototype, "assigned_at", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
112
|
+
__metadata("design:type", Object)
|
|
113
|
+
], RespondToEnquiriesRequest.prototype, "workflow_execution_id", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
116
|
+
__metadata("design:type", Object)
|
|
117
|
+
], RespondToEnquiriesRequest.prototype, "reference_number", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], RespondToEnquiriesRequest.prototype, "title_of_enquiry", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
124
|
+
__metadata("design:type", Object)
|
|
125
|
+
], RespondToEnquiriesRequest.prototype, "request_id", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
128
|
+
__metadata("design:type", Date)
|
|
129
|
+
], RespondToEnquiriesRequest.prototype, "date_of_submission", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, nullable: false }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], RespondToEnquiriesRequest.prototype, "phone", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({
|
|
136
|
+
type: "enum",
|
|
137
|
+
enum: RespondToEnquiriesEnquiryCategory,
|
|
138
|
+
default: RespondToEnquiriesEnquiryCategory.GENERAL,
|
|
139
|
+
nullable: false,
|
|
140
|
+
enumName: "respond_to_enquiries_category_en"
|
|
141
|
+
}),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], RespondToEnquiriesRequest.prototype, "enquiry_category", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], RespondToEnquiriesRequest.prototype, "tender_date_of_submission", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, nullable: true }),
|
|
150
|
+
__metadata("design:type", Object)
|
|
151
|
+
], RespondToEnquiriesRequest.prototype, "tender_phone", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
154
|
+
__metadata("design:type", Object)
|
|
155
|
+
], RespondToEnquiriesRequest.prototype, "budget_code", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 18, scale: 2, nullable: true }),
|
|
158
|
+
__metadata("design:type", Object)
|
|
159
|
+
], RespondToEnquiriesRequest.prototype, "estimated_cost", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
162
|
+
__metadata("design:type", Object)
|
|
163
|
+
], RespondToEnquiriesRequest.prototype, "implementation_period", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
166
|
+
__metadata("design:type", Object)
|
|
167
|
+
], RespondToEnquiriesRequest.prototype, "requesting_entity", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
170
|
+
__metadata("design:type", Object)
|
|
171
|
+
], RespondToEnquiriesRequest.prototype, "relevant_department_id", void 0);
|
|
172
|
+
exports.RespondToEnquiriesRequest = RespondToEnquiriesRequest = __decorate([
|
|
173
|
+
(0, typeorm_1.Entity)({ name: "respond_to_enquiries_requests" }),
|
|
174
|
+
__metadata("design:paramtypes", [Number, String, String, Date, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, Object, Object, Object, Object, Object, Object])
|
|
175
|
+
], RespondToEnquiriesRequest);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum RespondToEnquiriesWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class RespondToEnquiriesWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
order: number | null;
|
|
13
|
+
content: string;
|
|
14
|
+
approver_role_id: number | null;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
approved_by: number | null;
|
|
17
|
+
status: RespondToEnquiriesWorkFlowStatus;
|
|
18
|
+
constructor(request_id: number, content: string, status: RespondToEnquiriesWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
|
|
19
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.RespondToEnquiriesWorkFlow = exports.RespondToEnquiriesWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var RespondToEnquiriesWorkFlowStatus;
|
|
16
|
+
(function (RespondToEnquiriesWorkFlowStatus) {
|
|
17
|
+
RespondToEnquiriesWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
RespondToEnquiriesWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
RespondToEnquiriesWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
RespondToEnquiriesWorkFlowStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(RespondToEnquiriesWorkFlowStatus || (exports.RespondToEnquiriesWorkFlowStatus = RespondToEnquiriesWorkFlowStatus = {}));
|
|
22
|
+
let RespondToEnquiriesWorkFlow = class RespondToEnquiriesWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
|
|
24
|
+
super();
|
|
25
|
+
this.request_id = request_id;
|
|
26
|
+
this.service_id = service_id || null;
|
|
27
|
+
this.sub_service_id = sub_service_id || null;
|
|
28
|
+
this.content = content;
|
|
29
|
+
this.status = status;
|
|
30
|
+
this.order = order || null;
|
|
31
|
+
this.approver_role_id = approver_role_id || null;
|
|
32
|
+
this.approver_user_id = approver_user_id || null;
|
|
33
|
+
this.approved_by = approved_by || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.RespondToEnquiriesWorkFlow = RespondToEnquiriesWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], RespondToEnquiriesWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], RespondToEnquiriesWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], RespondToEnquiriesWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], RespondToEnquiriesWorkFlow.prototype, "order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], RespondToEnquiriesWorkFlow.prototype, "content", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], RespondToEnquiriesWorkFlow.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RespondToEnquiriesWorkFlow.prototype, "approver_user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], RespondToEnquiriesWorkFlow.prototype, "approved_by", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: RespondToEnquiriesWorkFlowStatus,
|
|
73
|
+
default: RespondToEnquiriesWorkFlowStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
enumName: "respond_to_enquiries_workflow_status_en"
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], RespondToEnquiriesWorkFlow.prototype, "status", void 0);
|
|
79
|
+
exports.RespondToEnquiriesWorkFlow = RespondToEnquiriesWorkFlow = __decorate([
|
|
80
|
+
(0, typeorm_1.Entity)({ name: "respond_to_enquiries_work_flows" }),
|
|
81
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
|
|
82
|
+
], RespondToEnquiriesWorkFlow);
|
|
@@ -0,0 +1,32 @@
|
|
|
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.ScholarshipAttendee = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ScholarshipAttendee = class ScholarshipAttendee extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.ScholarshipAttendee = ScholarshipAttendee;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], ScholarshipAttendee.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ScholarshipAttendee.prototype, "attendee_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 320, nullable: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ScholarshipAttendee.prototype, "attendee_email", void 0);
|
|
30
|
+
exports.ScholarshipAttendee = ScholarshipAttendee = __decorate([
|
|
31
|
+
(0, typeorm_1.Entity)({ name: "scholarship_attendees" })
|
|
32
|
+
], ScholarshipAttendee);
|
|
@@ -21,10 +21,20 @@ export declare class ScholarshipRequests extends BaseModel {
|
|
|
21
21
|
workflow_execution_id: string | null;
|
|
22
22
|
scholarship_name: string | null;
|
|
23
23
|
type: ScholarshipType;
|
|
24
|
+
/** Planned-flow only: whether amount exceeds threshold; Unplanned rows store null. */
|
|
25
|
+
is_amount_more_than_tenthousand: "Yes" | "No" | null;
|
|
24
26
|
reason: string | null;
|
|
25
27
|
description: string | null;
|
|
26
28
|
start_date: string | null;
|
|
27
29
|
end_date: string | null;
|
|
28
30
|
number_of_attendees: number | null;
|
|
29
31
|
place: string | null;
|
|
32
|
+
is_confirm: boolean;
|
|
33
|
+
training_entity: string | null;
|
|
34
|
+
media_coverage: "Yes" | "No" | null;
|
|
35
|
+
training_start_date: string | null;
|
|
36
|
+
training_end_date: string | null;
|
|
37
|
+
travel_date: string | null;
|
|
38
|
+
return_date: string | null;
|
|
39
|
+
comment: string | null;
|
|
30
40
|
}
|
|
@@ -65,6 +65,10 @@ __decorate([
|
|
|
65
65
|
(0, typeorm_1.Column)({ type: "enum", enum: ScholarshipType, nullable: false }),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], ScholarshipRequests.prototype, "type", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], ScholarshipRequests.prototype, "is_amount_more_than_tenthousand", void 0);
|
|
68
72
|
__decorate([
|
|
69
73
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
70
74
|
__metadata("design:type", Object)
|
|
@@ -89,6 +93,38 @@ __decorate([
|
|
|
89
93
|
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
90
94
|
__metadata("design:type", Object)
|
|
91
95
|
], ScholarshipRequests.prototype, "place", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
98
|
+
__metadata("design:type", Boolean)
|
|
99
|
+
], ScholarshipRequests.prototype, "is_confirm", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], ScholarshipRequests.prototype, "training_entity", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], ScholarshipRequests.prototype, "media_coverage", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], ScholarshipRequests.prototype, "training_start_date", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], ScholarshipRequests.prototype, "training_end_date", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], ScholarshipRequests.prototype, "travel_date", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], ScholarshipRequests.prototype, "return_date", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], ScholarshipRequests.prototype, "comment", void 0);
|
|
92
128
|
exports.ScholarshipRequests = ScholarshipRequests = __decorate([
|
|
93
129
|
(0, typeorm_1.Entity)({ name: "scholarship_requests" })
|
|
94
130
|
], ScholarshipRequests);
|
package/dist/models/user.d.ts
CHANGED
|
@@ -16,12 +16,12 @@ export declare class User extends BaseModel {
|
|
|
16
16
|
nationality?: string;
|
|
17
17
|
email?: string;
|
|
18
18
|
blood_type?: string;
|
|
19
|
-
national_id?:
|
|
19
|
+
national_id?: number;
|
|
20
20
|
manpower_id?: number;
|
|
21
21
|
mobile?: string;
|
|
22
22
|
office_number?: string;
|
|
23
23
|
department?: number;
|
|
24
|
-
category:
|
|
24
|
+
category: "CAA" | "Embassy";
|
|
25
25
|
directorate?: string;
|
|
26
26
|
section?: number;
|
|
27
27
|
position?: number;
|
|
@@ -45,5 +45,5 @@ export declare class User extends BaseModel {
|
|
|
45
45
|
religion?: string;
|
|
46
46
|
current_basic_salary: number;
|
|
47
47
|
previous_basic_salary: number;
|
|
48
|
-
constructor(employee_id?: number, civil_employee_id?: number, employee_name?: string, employee_arabic_name?: string, person_type?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, qualification?: string, marital_status?: string, nationality?: string, email?: string, blood_type?: string, national_id?:
|
|
48
|
+
constructor(employee_id?: number, civil_employee_id?: number, employee_name?: string, employee_arabic_name?: string, person_type?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, qualification?: string, marital_status?: string, nationality?: string, email?: string, blood_type?: string, national_id?: number, manpower_id?: number, mobile?: string, office_number?: string, department?: number, category?: "CAA" | "Embassy", directorate?: string, section?: number, position?: number, arabic_position?: string, grade?: number, location?: string, supervisor_emp_id?: number, supervisor_emp_name?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, avatar?: string, father_name?: string, spouse_name?: string, children1_name?: string, children2_name?: string, address?: string, religion?: string, current_basic_salary?: number, previous_basic_salary?: number);
|
|
49
49
|
}
|
package/dist/models/user.js
CHANGED
|
@@ -127,8 +127,8 @@ __decorate([
|
|
|
127
127
|
__metadata("design:type", String)
|
|
128
128
|
], User.prototype, "blood_type", void 0);
|
|
129
129
|
__decorate([
|
|
130
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
131
|
-
__metadata("design:type",
|
|
130
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
132
|
], User.prototype, "national_id", void 0);
|
|
133
133
|
__decorate([
|
|
134
134
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
@@ -147,7 +147,7 @@ __decorate([
|
|
|
147
147
|
__metadata("design:type", Number)
|
|
148
148
|
], User.prototype, "department", void 0);
|
|
149
149
|
__decorate([
|
|
150
|
-
(0, typeorm_1.Column)({ nullable:
|
|
150
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["CAA", "Embassy"], nullable: false, default: "CAA" }),
|
|
151
151
|
__metadata("design:type", String)
|
|
152
152
|
], User.prototype, "category", void 0);
|
|
153
153
|
__decorate([
|
|
@@ -244,5 +244,5 @@ __decorate([
|
|
|
244
244
|
], User.prototype, "previous_basic_salary", void 0);
|
|
245
245
|
exports.User = User = __decorate([
|
|
246
246
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
247
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, String, String, String, String, String, String, String, String, String,
|
|
247
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, String, String, String, String, String, String, String, String, String, Number, Number, String, String, Number, String, String, Number, Number, String, Number, String, Number, String, String, String, Number, String, String, String, String, String, String, String, String, String, Number, Number])
|
|
248
248
|
], User);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -118,6 +118,7 @@ import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel'
|
|
|
118
118
|
import { ScholarshipRequests } from './models/ScholarshipRequestModel';
|
|
119
119
|
import { ScholarshipApprovalDetails } from './models/ScholarshipApprovalModel';
|
|
120
120
|
import { ScholarshipRequestAttachment } from './models/ScholarshipAttachmentModel';
|
|
121
|
+
import { ScholarshipAttendee } from './models/ScholarshipAttendeeModel';
|
|
121
122
|
import { ScholarshipRequestChat } from './models/ScholarshipChatModel';
|
|
122
123
|
import { ScholarshipWorkFlow } from './models/ScholarshipWorkflowModel';
|
|
123
124
|
import { CancellationRequests } from './models/CancellationRequestModel';
|
|
@@ -181,6 +182,11 @@ import { LegalComplaintWorkflow } from './models/LegalComplaintWorkflowModel';
|
|
|
181
182
|
import { LegalComplaintApproval } from './models/LegalComplaintApprovalModel';
|
|
182
183
|
import { LegalComplaintChat } from './models/LegalComplaintChatModel';
|
|
183
184
|
import { LegalComplaintAttachment } from './models/LegalComplaintAttachmentModel';
|
|
185
|
+
import {RespondToEnquiriesRequest} from './models/RespondToEnquiriesRequestModel';
|
|
186
|
+
import { RespondToEnquiriesWorkFlow } from './models/RespondToEnquiriesWorkflowModel';
|
|
187
|
+
import { RespondToEnquiriesApprovalDetails } from './models/RespondToEnquiriesApprovalModel';
|
|
188
|
+
import { RespondToEnquiriesRequestChat } from './models/RespondToEnquiriesChatModel';
|
|
189
|
+
import { RespondToEnquiriesRequestAttachment } from './models/RespondToEnquiriesAttachmentModel';
|
|
184
190
|
|
|
185
191
|
export const AppDataSource = new DataSource({
|
|
186
192
|
type: 'postgres',
|
|
@@ -285,6 +291,7 @@ export const AppDataSource = new DataSource({
|
|
|
285
291
|
ScholarshipRequests,
|
|
286
292
|
ScholarshipApprovalDetails,
|
|
287
293
|
ScholarshipRequestAttachment,
|
|
294
|
+
ScholarshipAttendee,
|
|
288
295
|
ScholarshipRequestChat,
|
|
289
296
|
ScholarshipWorkFlow,
|
|
290
297
|
CancellationRequests,
|
|
@@ -368,6 +375,11 @@ export const AppDataSource = new DataSource({
|
|
|
368
375
|
DocumentAuditLog,
|
|
369
376
|
DocumentVersion,
|
|
370
377
|
DocumentAccess,
|
|
371
|
-
DepartmentDocumentOwner
|
|
378
|
+
DepartmentDocumentOwner,
|
|
379
|
+
RespondToEnquiriesRequest,
|
|
380
|
+
RespondToEnquiriesWorkFlow,
|
|
381
|
+
RespondToEnquiriesApprovalDetails,
|
|
382
|
+
RespondToEnquiriesRequestChat,
|
|
383
|
+
RespondToEnquiriesRequestAttachment
|
|
372
384
|
],
|
|
373
385
|
});
|
package/src/index.ts
CHANGED
|
@@ -98,6 +98,7 @@ export * from './models/StudyLeaveAttachmentModel';
|
|
|
98
98
|
export * from './models/ScholarshipRequestModel';
|
|
99
99
|
export * from './models/ScholarshipApprovalModel';
|
|
100
100
|
export * from './models/ScholarshipAttachmentModel';
|
|
101
|
+
export * from './models/ScholarshipAttendeeModel';
|
|
101
102
|
export * from './models/ScholarshipChatModel';
|
|
102
103
|
export * from './models/ScholarshipWorkflowModel';
|
|
103
104
|
export * from './models/CancellationRequestModel';
|
|
@@ -390,3 +391,23 @@ export * from './models/LegalComplaintAttachmentModel';
|
|
|
390
391
|
// Asset Affairs Admin Configuration
|
|
391
392
|
export * from './models/AssetApartmentTypeModel';
|
|
392
393
|
export * from './models/AssetUnitLocationModel';
|
|
394
|
+
|
|
395
|
+
// Tender — Request a Service to Respond to Enquiries
|
|
396
|
+
export * from './models/RespondToEnquiriesRequestModel';
|
|
397
|
+
export {
|
|
398
|
+
RespondToEnquiriesRequestStatus,
|
|
399
|
+
RespondToEnquiriesRequest,
|
|
400
|
+
RespondToEnquiriesEnquiryCategory
|
|
401
|
+
} from './models/RespondToEnquiriesRequestModel';
|
|
402
|
+
export * from './models/RespondToEnquiriesApprovalModel';
|
|
403
|
+
export {RespondToEnquiriesApprovalStatus, RespondToEnquiriesApprovalDetails} from './models/RespondToEnquiriesApprovalModel';
|
|
404
|
+
export * from './models/RespondToEnquiriesChatModel';
|
|
405
|
+
export {
|
|
406
|
+
RespondToEnquiriesMessageType,
|
|
407
|
+
RespondToEnquiriesChatStatus,
|
|
408
|
+
RespondToEnquiriesRequestChat
|
|
409
|
+
} from './models/RespondToEnquiriesChatModel';
|
|
410
|
+
export * from './models/RespondToEnquiriesWorkflowModel';
|
|
411
|
+
export {RespondToEnquiriesWorkFlowStatus, RespondToEnquiriesWorkFlow} from './models/RespondToEnquiriesWorkflowModel';
|
|
412
|
+
export * from './models/RespondToEnquiriesAttachmentModel';
|
|
413
|
+
export {RespondToEnquiriesRequestAttachment} from './models/RespondToEnquiriesAttachmentModel';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum RespondToEnquiriesApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
ASSIGNED = "Assigned"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: "respond_to_enquiries_approvals" })
|
|
13
|
+
export class RespondToEnquiriesApprovalDetails 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
|
+
level: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: "integer", nullable: true })
|
|
27
|
+
approver_user_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: "integer", nullable: true })
|
|
30
|
+
approver_role_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: "integer", nullable: true })
|
|
33
|
+
department_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: "integer", nullable: true })
|
|
36
|
+
section_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: "integer", nullable: true })
|
|
39
|
+
delegate_user_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: "integer", nullable: true })
|
|
42
|
+
approved_by: number | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: "varchar", length: 255, nullable: true, default: "" })
|
|
45
|
+
comment: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
type: "enum",
|
|
49
|
+
enum: RespondToEnquiriesApprovalStatus,
|
|
50
|
+
default: RespondToEnquiriesApprovalStatus.PENDING,
|
|
51
|
+
nullable: false,
|
|
52
|
+
enumName: "respond_to_enquiries_approval_status_en"
|
|
53
|
+
})
|
|
54
|
+
approval_status: RespondToEnquiriesApprovalStatus;
|
|
55
|
+
|
|
56
|
+
@Column({ type: "boolean", default: null, nullable: true })
|
|
57
|
+
is_manager: boolean;
|
|
58
|
+
|
|
59
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
60
|
+
is_president: boolean;
|
|
61
|
+
|
|
62
|
+
@Column({ type: "boolean", default: false, nullable: true })
|
|
63
|
+
is_replace: boolean;
|
|
64
|
+
|
|
65
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
66
|
+
is_allowed: boolean;
|
|
67
|
+
|
|
68
|
+
constructor(
|
|
69
|
+
request_id: number,
|
|
70
|
+
approver_user_id: number | null,
|
|
71
|
+
approver_role_id: number | null,
|
|
72
|
+
comment: string,
|
|
73
|
+
approval_status: RespondToEnquiriesApprovalStatus,
|
|
74
|
+
level: number,
|
|
75
|
+
service_id?: number | null,
|
|
76
|
+
sub_service_id?: number | null,
|
|
77
|
+
department_id?: number | null,
|
|
78
|
+
section_id?: number | null,
|
|
79
|
+
delegate_user_id?: number | null,
|
|
80
|
+
approved_by?: number | null,
|
|
81
|
+
is_manager?: boolean,
|
|
82
|
+
is_president?: boolean,
|
|
83
|
+
is_replace?: boolean,
|
|
84
|
+
is_allowed?: boolean
|
|
85
|
+
) {
|
|
86
|
+
super();
|
|
87
|
+
this.request_id = request_id;
|
|
88
|
+
this.service_id = service_id || null;
|
|
89
|
+
this.sub_service_id = sub_service_id || null;
|
|
90
|
+
this.approver_user_id = approver_user_id;
|
|
91
|
+
this.approver_role_id = approver_role_id;
|
|
92
|
+
this.comment = comment;
|
|
93
|
+
this.approval_status = approval_status;
|
|
94
|
+
this.level = level;
|
|
95
|
+
this.department_id = department_id || null;
|
|
96
|
+
this.section_id = section_id || null;
|
|
97
|
+
this.delegate_user_id = delegate_user_id || null;
|
|
98
|
+
this.approved_by = approved_by || null;
|
|
99
|
+
this.is_manager = is_manager ?? false;
|
|
100
|
+
this.is_president = is_president ?? false;
|
|
101
|
+
this.is_replace = is_replace ?? false;
|
|
102
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
103
|
+
}
|
|
104
|
+
}
|