@platform-modules/civil-aviation-authority 2.3.195 → 2.3.201
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 +9 -17
- package/dist/data-source.js +30 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +17 -0
- package/dist/models/ContractServiceRequestModel.d.ts +23 -0
- package/dist/models/ContractServiceRequestModel.js +102 -0
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/ImportExportMaterialApprovalModel.d.ts +23 -0
- package/dist/models/ImportExportMaterialApprovalModel.js +101 -0
- package/dist/models/ImportExportMaterialAttachmentModel.d.ts +12 -0
- package/dist/models/ImportExportMaterialAttachmentModel.js +64 -0
- package/dist/models/ImportExportMaterialChatModel.d.ts +28 -0
- package/dist/models/ImportExportMaterialChatModel.js +86 -0
- package/dist/models/ImportExportMaterialRequestModel.d.ts +33 -0
- package/dist/models/ImportExportMaterialRequestModel.js +118 -0
- package/dist/models/ImportExportMaterialWorkflowModel.d.ts +18 -0
- package/dist/models/ImportExportMaterialWorkflowModel.js +80 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.d.ts +23 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.js +101 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.d.ts +12 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.js +64 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.js +86 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.js +108 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.d.ts +18 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.js +80 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.d.ts +23 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.js +101 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.d.ts +12 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.js +64 -0
- package/dist/models/WorkingHoursExtensionChatModel.d.ts +28 -0
- package/dist/models/WorkingHoursExtensionChatModel.js +86 -0
- package/dist/models/WorkingHoursExtensionRequestModel.d.ts +25 -0
- package/dist/models/WorkingHoursExtensionRequestModel.js +96 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.d.ts +18 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.js +80 -0
- package/package.json +24 -24
- package/src/data-source.ts +30 -0
- package/src/index.ts +18 -0
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/ContractServiceRequestModel.ts +68 -0
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ImportExportMaterialApprovalModel.ts +87 -0
- package/src/models/ImportExportMaterialAttachmentModel.ts +50 -0
- package/src/models/ImportExportMaterialChatModel.ts +61 -0
- package/src/models/ImportExportMaterialRequestModel.ts +85 -0
- package/src/models/ImportExportMaterialWorkflowModel.ts +51 -0
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- 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/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -0
- package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -0
- package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -0
- package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -0
- package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/UserSkillModel.ts +56 -56
- package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -0
- package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -0
- package/src/models/WorkingHoursExtensionChatModel.ts +61 -0
- package/src/models/WorkingHoursExtensionRequestModel.ts +66 -0
- package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -0
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/ImportExportMaterialModels.d.ts +0 -92
- package/dist/models/ImportExportMaterialModels.js +0 -307
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/SecurityAccessApprovalModel.d.ts +0 -23
- package/dist/models/SecurityAccessApprovalModel.js +0 -82
- package/dist/models/SecurityAccessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAccessAttachmentModel.js +0 -56
- package/dist/models/SecurityAccessChatModel.d.ts +0 -12
- package/dist/models/SecurityAccessChatModel.js +0 -56
- package/dist/models/SecurityAccessRequestModel.d.ts +0 -25
- package/dist/models/SecurityAccessRequestModel.js +0 -80
- package/dist/models/SecurityAccessWorkflowModel.d.ts +0 -24
- package/dist/models/SecurityAccessWorkflowModel.js +0 -84
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +0 -93
- package/dist/models/ServiceExtensionAfterAge60Models.js +0 -312
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
- package/dist/models/WorkingHoursExtensionModels.d.ts +0 -88
- package/dist/models/WorkingHoursExtensionModels.js +0 -295
|
@@ -0,0 +1,96 @@
|
|
|
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.WorkingHoursExtensionRequest = exports.WorkingHoursExtensionRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var WorkingHoursExtensionRequestStatus;
|
|
16
|
+
(function (WorkingHoursExtensionRequestStatus) {
|
|
17
|
+
WorkingHoursExtensionRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
WorkingHoursExtensionRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
WorkingHoursExtensionRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
WorkingHoursExtensionRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(WorkingHoursExtensionRequestStatus || (exports.WorkingHoursExtensionRequestStatus = WorkingHoursExtensionRequestStatus = {}));
|
|
22
|
+
let WorkingHoursExtensionRequest = class WorkingHoursExtensionRequest extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.WorkingHoursExtensionRequest = WorkingHoursExtensionRequest;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], WorkingHoursExtensionRequest.prototype, "req_user_department_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], WorkingHoursExtensionRequest.prototype, "req_user_section_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], WorkingHoursExtensionRequest.prototype, "service_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], WorkingHoursExtensionRequest.prototype, "sub_service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], WorkingHoursExtensionRequest.prototype, "user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({
|
|
50
|
+
type: "enum",
|
|
51
|
+
enum: WorkingHoursExtensionRequestStatus,
|
|
52
|
+
default: WorkingHoursExtensionRequestStatus.PENDING,
|
|
53
|
+
nullable: false
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], WorkingHoursExtensionRequest.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], WorkingHoursExtensionRequest.prototype, "workflow_execution_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], WorkingHoursExtensionRequest.prototype, "extension_date", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 16, nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], WorkingHoursExtensionRequest.prototype, "requested_start_time", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 16, nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], WorkingHoursExtensionRequest.prototype, "requested_end_time", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], WorkingHoursExtensionRequest.prototype, "reason", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], WorkingHoursExtensionRequest.prototype, "room_area", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], WorkingHoursExtensionRequest.prototype, "description", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], WorkingHoursExtensionRequest.prototype, "created_by", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], WorkingHoursExtensionRequest.prototype, "reference_number", void 0);
|
|
93
|
+
exports.WorkingHoursExtensionRequest = WorkingHoursExtensionRequest = __decorate([
|
|
94
|
+
(0, typeorm_1.Entity)({ name: "working_hours_extension_requests" }),
|
|
95
|
+
__metadata("design:paramtypes", [])
|
|
96
|
+
], WorkingHoursExtensionRequest);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class WorkingHoursExtensionWorkflow extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
workflow_definition_id: number;
|
|
7
|
+
current_level: number;
|
|
8
|
+
content: string;
|
|
9
|
+
status: string;
|
|
10
|
+
step_order: number;
|
|
11
|
+
user_id: number;
|
|
12
|
+
role_id: number;
|
|
13
|
+
department_id: number;
|
|
14
|
+
section_id: number;
|
|
15
|
+
workflow_data: string;
|
|
16
|
+
created_by: number;
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.WorkingHoursExtensionWorkflow = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let WorkingHoursExtensionWorkflow = class WorkingHoursExtensionWorkflow extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.WorkingHoursExtensionWorkflow = WorkingHoursExtensionWorkflow;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], WorkingHoursExtensionWorkflow.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], WorkingHoursExtensionWorkflow.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], WorkingHoursExtensionWorkflow.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], WorkingHoursExtensionWorkflow.prototype, "workflow_definition_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], WorkingHoursExtensionWorkflow.prototype, "current_level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], WorkingHoursExtensionWorkflow.prototype, "content", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], WorkingHoursExtensionWorkflow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], WorkingHoursExtensionWorkflow.prototype, "step_order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], WorkingHoursExtensionWorkflow.prototype, "user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], WorkingHoursExtensionWorkflow.prototype, "role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], WorkingHoursExtensionWorkflow.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], WorkingHoursExtensionWorkflow.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], WorkingHoursExtensionWorkflow.prototype, "workflow_data", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], WorkingHoursExtensionWorkflow.prototype, "created_by", void 0);
|
|
77
|
+
exports.WorkingHoursExtensionWorkflow = WorkingHoursExtensionWorkflow = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: "working_hours_extension_workflow" }),
|
|
79
|
+
__metadata("design:paramtypes", [])
|
|
80
|
+
], WorkingHoursExtensionWorkflow);
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@platform-modules/civil-aviation-authority",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"dev": "ts-node src/scripts.ts"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"moment-timezone": "^0.6.0",
|
|
15
|
-
"pg": "^8.16.0",
|
|
16
|
-
"typeorm": "^0.3.17"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/moment-timezone": "^0.5.30",
|
|
20
|
-
"dotenv": "^16.5.0",
|
|
21
|
-
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.2.0"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@platform-modules/civil-aviation-authority",
|
|
3
|
+
"version": "2.3.201",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"dev": "ts-node src/scripts.ts"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"moment-timezone": "^0.6.0",
|
|
15
|
+
"pg": "^8.16.0",
|
|
16
|
+
"typeorm": "^0.3.17"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/moment-timezone": "^0.5.30",
|
|
20
|
+
"dotenv": "^16.5.0",
|
|
21
|
+
"ts-node": "^10.9.2",
|
|
22
|
+
"typescript": "^5.2.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/data-source.ts
CHANGED
|
@@ -187,6 +187,21 @@ import { RespondToEnquiriesWorkFlow } from './models/RespondToEnquiriesWorkflowM
|
|
|
187
187
|
import { RespondToEnquiriesApprovalDetails } from './models/RespondToEnquiriesApprovalModel';
|
|
188
188
|
import { RespondToEnquiriesRequestChat } from './models/RespondToEnquiriesChatModel';
|
|
189
189
|
import { RespondToEnquiriesRequestAttachment } from './models/RespondToEnquiriesAttachmentModel';
|
|
190
|
+
import { ServiceExtensionAfter60Request } from './models/ServiceExtensionAfter60RequestModel';
|
|
191
|
+
import { ServiceExtensionAfter60Approval } from './models/ServiceExtensionAfter60ApprovalModel';
|
|
192
|
+
import { ServiceExtensionAfter60Workflow } from './models/ServiceExtensionAfter60WorkflowModel';
|
|
193
|
+
import { ServiceExtensionAfter60Chat } from './models/ServiceExtensionAfter60ChatModel';
|
|
194
|
+
import { ServiceExtensionAfter60Attachment } from './models/ServiceExtensionAfter60AttachmentModel';
|
|
195
|
+
import { ImportExportMaterialRequest } from './models/ImportExportMaterialRequestModel';
|
|
196
|
+
import { ImportExportMaterialApproval } from './models/ImportExportMaterialApprovalModel';
|
|
197
|
+
import { ImportExportMaterialWorkflow } from './models/ImportExportMaterialWorkflowModel';
|
|
198
|
+
import { ImportExportMaterialChat } from './models/ImportExportMaterialChatModel';
|
|
199
|
+
import { ImportExportMaterialAttachment } from './models/ImportExportMaterialAttachmentModel';
|
|
200
|
+
import { WorkingHoursExtensionRequest } from './models/WorkingHoursExtensionRequestModel';
|
|
201
|
+
import { WorkingHoursExtensionApproval } from './models/WorkingHoursExtensionApprovalModel';
|
|
202
|
+
import { WorkingHoursExtensionWorkflow } from './models/WorkingHoursExtensionWorkflowModel';
|
|
203
|
+
import { WorkingHoursExtensionChat } from './models/WorkingHoursExtensionChatModel';
|
|
204
|
+
import { WorkingHoursExtensionAttachment } from './models/WorkingHoursExtensionAttachmentModel';
|
|
190
205
|
import { RequestATenderRequest } from './models/RequestATenderRequestModel';
|
|
191
206
|
import { RequestTenderAnalysisRequest } from './models/RequestTenderAnalysisRequestModel';
|
|
192
207
|
|
|
@@ -383,6 +398,21 @@ export const AppDataSource = new DataSource({
|
|
|
383
398
|
RespondToEnquiriesApprovalDetails,
|
|
384
399
|
RespondToEnquiriesRequestChat,
|
|
385
400
|
RespondToEnquiriesRequestAttachment,
|
|
401
|
+
ServiceExtensionAfter60Request,
|
|
402
|
+
ServiceExtensionAfter60Approval,
|
|
403
|
+
ServiceExtensionAfter60Workflow,
|
|
404
|
+
ServiceExtensionAfter60Chat,
|
|
405
|
+
ServiceExtensionAfter60Attachment,
|
|
406
|
+
ImportExportMaterialRequest,
|
|
407
|
+
ImportExportMaterialApproval,
|
|
408
|
+
ImportExportMaterialWorkflow,
|
|
409
|
+
ImportExportMaterialChat,
|
|
410
|
+
ImportExportMaterialAttachment,
|
|
411
|
+
WorkingHoursExtensionRequest,
|
|
412
|
+
WorkingHoursExtensionApproval,
|
|
413
|
+
WorkingHoursExtensionWorkflow,
|
|
414
|
+
WorkingHoursExtensionChat,
|
|
415
|
+
WorkingHoursExtensionAttachment,
|
|
386
416
|
RequestATenderRequest,
|
|
387
417
|
RequestTenderAnalysisRequest
|
|
388
418
|
],
|
package/src/index.ts
CHANGED
|
@@ -392,6 +392,23 @@ export * from './models/LegalComplaintAttachmentModel';
|
|
|
392
392
|
export * from './models/AssetApartmentTypeModel';
|
|
393
393
|
export * from './models/AssetUnitLocationModel';
|
|
394
394
|
|
|
395
|
+
// Service extension after age 60, import/export material, working hours extension
|
|
396
|
+
export * from './models/ServiceExtensionAfter60RequestModel';
|
|
397
|
+
export * from './models/ServiceExtensionAfter60ApprovalModel';
|
|
398
|
+
export * from './models/ServiceExtensionAfter60WorkflowModel';
|
|
399
|
+
export * from './models/ServiceExtensionAfter60ChatModel';
|
|
400
|
+
export * from './models/ServiceExtensionAfter60AttachmentModel';
|
|
401
|
+
export * from './models/ImportExportMaterialRequestModel';
|
|
402
|
+
export * from './models/ImportExportMaterialApprovalModel';
|
|
403
|
+
export * from './models/ImportExportMaterialWorkflowModel';
|
|
404
|
+
export * from './models/ImportExportMaterialChatModel';
|
|
405
|
+
export * from './models/ImportExportMaterialAttachmentModel';
|
|
406
|
+
export * from './models/WorkingHoursExtensionRequestModel';
|
|
407
|
+
export * from './models/WorkingHoursExtensionApprovalModel';
|
|
408
|
+
export * from './models/WorkingHoursExtensionWorkflowModel';
|
|
409
|
+
export * from './models/WorkingHoursExtensionChatModel';
|
|
410
|
+
export * from './models/WorkingHoursExtensionAttachmentModel';
|
|
411
|
+
|
|
395
412
|
// Tender — Request a Service to Respond to Enquiries
|
|
396
413
|
export * from './models/RespondToEnquiriesRequestModel';
|
|
397
414
|
export {
|
|
@@ -412,3 +429,4 @@ export * from './models/RespondToEnquiriesAttachmentModel';
|
|
|
412
429
|
export {RespondToEnquiriesRequestAttachment} from './models/RespondToEnquiriesAttachmentModel';
|
|
413
430
|
export * from './models/RequestATenderRequestModel';
|
|
414
431
|
export * from './models/RequestTenderAnalysisRequestModel';
|
|
432
|
+
export * from './models/ContractServiceRequestModel';
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum AccessCardRequestFor {
|
|
5
|
-
SELF = "Self",
|
|
6
|
-
BEHALF = "Behalf"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum AccessCardRequestType {
|
|
10
|
-
NEW = "New",
|
|
11
|
-
RENEWAL = "Renewal"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum AccessCardCategory {
|
|
15
|
-
TRAINEE = "Trainee",
|
|
16
|
-
WORKER = "Workers",
|
|
17
|
-
EMPLOYEE = "Employees",
|
|
18
|
-
CONTRACTOR = "Contractors"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum AccessCardRequestStatus {
|
|
22
|
-
PENDING = "Pending",
|
|
23
|
-
IN_PROGRESS = "In Progress",
|
|
24
|
-
APPROVED = "Approved",
|
|
25
|
-
REJECTED = "Rejected"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Entity({ name: "access_card_requests" })
|
|
29
|
-
export class AccessCardRequest extends BaseModel {
|
|
30
|
-
@Column({ type: "int", nullable: true })
|
|
31
|
-
req_user_department_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "int", nullable: true })
|
|
34
|
-
req_user_section_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "int", nullable: true })
|
|
37
|
-
service_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "int", nullable: true })
|
|
40
|
-
sub_service_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "int", nullable: false })
|
|
43
|
-
user_id: number;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "enum", enum: AccessCardRequestFor, nullable: false })
|
|
46
|
-
request_for: AccessCardRequestFor;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
49
|
-
name: string;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
52
|
-
id_number: string;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "varchar", length: 50, nullable: false })
|
|
55
|
-
phone_number: string;
|
|
56
|
-
|
|
57
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
58
|
-
email_id: string;
|
|
59
|
-
|
|
60
|
-
@Column({ type: "enum", enum: AccessCardRequestType, nullable: false })
|
|
61
|
-
request_type: AccessCardRequestType;
|
|
62
|
-
|
|
63
|
-
@Column({ type: "enum", enum: AccessCardCategory, nullable: false })
|
|
64
|
-
category: AccessCardCategory;
|
|
65
|
-
|
|
66
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
|
-
approval_route: string | null;
|
|
68
|
-
|
|
69
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
-
organization: string | null;
|
|
71
|
-
|
|
72
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
|
-
access_card_no: string | null;
|
|
74
|
-
|
|
75
|
-
@Column({ type: "text", nullable: false })
|
|
76
|
-
reason: string;
|
|
77
|
-
|
|
78
|
-
@Column({ type: "date", nullable: true })
|
|
79
|
-
request_date: Date;
|
|
80
|
-
|
|
81
|
-
@Column({
|
|
82
|
-
type: "enum",
|
|
83
|
-
enum: AccessCardRequestStatus,
|
|
84
|
-
default: AccessCardRequestStatus.PENDING,
|
|
85
|
-
nullable: false
|
|
86
|
-
})
|
|
87
|
-
status: AccessCardRequestStatus;
|
|
88
|
-
|
|
89
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
90
|
-
workflow_execution_id: string | null;
|
|
91
|
-
|
|
92
|
-
constructor(
|
|
93
|
-
request_for: AccessCardRequestFor,
|
|
94
|
-
name: string,
|
|
95
|
-
id_number: string,
|
|
96
|
-
phone_number: string,
|
|
97
|
-
email_id: string,
|
|
98
|
-
request_type: AccessCardRequestType,
|
|
99
|
-
category: AccessCardCategory,
|
|
100
|
-
organization: string | null,
|
|
101
|
-
reason: string,
|
|
102
|
-
request_date: Date,
|
|
103
|
-
user_id: number,
|
|
104
|
-
status: AccessCardRequestStatus = AccessCardRequestStatus.PENDING,
|
|
105
|
-
approval_route?: string | null,
|
|
106
|
-
service_id?: number,
|
|
107
|
-
sub_service_id?: number,
|
|
108
|
-
req_user_department_id?: number,
|
|
109
|
-
req_user_section_id?: number,
|
|
110
|
-
access_card_no?: string | null,
|
|
111
|
-
workflow_execution_id?: string | null
|
|
112
|
-
) {
|
|
113
|
-
super();
|
|
114
|
-
this.request_for = request_for;
|
|
115
|
-
this.name = name;
|
|
116
|
-
this.id_number = id_number;
|
|
117
|
-
this.phone_number = phone_number;
|
|
118
|
-
this.email_id = email_id;
|
|
119
|
-
this.request_type = request_type;
|
|
120
|
-
this.category = category;
|
|
121
|
-
this.organization = organization ?? null;
|
|
122
|
-
this.reason = reason;
|
|
123
|
-
this.request_date = request_date;
|
|
124
|
-
this.user_id = user_id;
|
|
125
|
-
this.status = status;
|
|
126
|
-
this.approval_route = approval_route ?? null;
|
|
127
|
-
this.service_id = service_id ?? null;
|
|
128
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
129
|
-
this.req_user_department_id = req_user_department_id ?? null;
|
|
130
|
-
this.req_user_section_id = req_user_section_id ?? null;
|
|
131
|
-
this.access_card_no = access_card_no ?? null;
|
|
132
|
-
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AccessCardRequestFor {
|
|
5
|
+
SELF = "Self",
|
|
6
|
+
BEHALF = "Behalf"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum AccessCardRequestType {
|
|
10
|
+
NEW = "New",
|
|
11
|
+
RENEWAL = "Renewal"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum AccessCardCategory {
|
|
15
|
+
TRAINEE = "Trainee",
|
|
16
|
+
WORKER = "Workers",
|
|
17
|
+
EMPLOYEE = "Employees",
|
|
18
|
+
CONTRACTOR = "Contractors"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum AccessCardRequestStatus {
|
|
22
|
+
PENDING = "Pending",
|
|
23
|
+
IN_PROGRESS = "In Progress",
|
|
24
|
+
APPROVED = "Approved",
|
|
25
|
+
REJECTED = "Rejected"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@Entity({ name: "access_card_requests" })
|
|
29
|
+
export class AccessCardRequest extends BaseModel {
|
|
30
|
+
@Column({ type: "int", nullable: true })
|
|
31
|
+
req_user_department_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "int", nullable: true })
|
|
34
|
+
req_user_section_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "int", nullable: true })
|
|
37
|
+
service_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "int", nullable: true })
|
|
40
|
+
sub_service_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "int", nullable: false })
|
|
43
|
+
user_id: number;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "enum", enum: AccessCardRequestFor, nullable: false })
|
|
46
|
+
request_for: AccessCardRequestFor;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
49
|
+
name: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
52
|
+
id_number: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "varchar", length: 50, nullable: false })
|
|
55
|
+
phone_number: string;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
58
|
+
email_id: string;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "enum", enum: AccessCardRequestType, nullable: false })
|
|
61
|
+
request_type: AccessCardRequestType;
|
|
62
|
+
|
|
63
|
+
@Column({ type: "enum", enum: AccessCardCategory, nullable: false })
|
|
64
|
+
category: AccessCardCategory;
|
|
65
|
+
|
|
66
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
|
+
approval_route: string | null;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
+
organization: string | null;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
|
+
access_card_no: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: "text", nullable: false })
|
|
76
|
+
reason: string;
|
|
77
|
+
|
|
78
|
+
@Column({ type: "date", nullable: true })
|
|
79
|
+
request_date: Date;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
type: "enum",
|
|
83
|
+
enum: AccessCardRequestStatus,
|
|
84
|
+
default: AccessCardRequestStatus.PENDING,
|
|
85
|
+
nullable: false
|
|
86
|
+
})
|
|
87
|
+
status: AccessCardRequestStatus;
|
|
88
|
+
|
|
89
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
90
|
+
workflow_execution_id: string | null;
|
|
91
|
+
|
|
92
|
+
constructor(
|
|
93
|
+
request_for: AccessCardRequestFor,
|
|
94
|
+
name: string,
|
|
95
|
+
id_number: string,
|
|
96
|
+
phone_number: string,
|
|
97
|
+
email_id: string,
|
|
98
|
+
request_type: AccessCardRequestType,
|
|
99
|
+
category: AccessCardCategory,
|
|
100
|
+
organization: string | null,
|
|
101
|
+
reason: string,
|
|
102
|
+
request_date: Date,
|
|
103
|
+
user_id: number,
|
|
104
|
+
status: AccessCardRequestStatus = AccessCardRequestStatus.PENDING,
|
|
105
|
+
approval_route?: string | null,
|
|
106
|
+
service_id?: number,
|
|
107
|
+
sub_service_id?: number,
|
|
108
|
+
req_user_department_id?: number,
|
|
109
|
+
req_user_section_id?: number,
|
|
110
|
+
access_card_no?: string | null,
|
|
111
|
+
workflow_execution_id?: string | null
|
|
112
|
+
) {
|
|
113
|
+
super();
|
|
114
|
+
this.request_for = request_for;
|
|
115
|
+
this.name = name;
|
|
116
|
+
this.id_number = id_number;
|
|
117
|
+
this.phone_number = phone_number;
|
|
118
|
+
this.email_id = email_id;
|
|
119
|
+
this.request_type = request_type;
|
|
120
|
+
this.category = category;
|
|
121
|
+
this.organization = organization ?? null;
|
|
122
|
+
this.reason = reason;
|
|
123
|
+
this.request_date = request_date;
|
|
124
|
+
this.user_id = user_id;
|
|
125
|
+
this.status = status;
|
|
126
|
+
this.approval_route = approval_route ?? null;
|
|
127
|
+
this.service_id = service_id ?? null;
|
|
128
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
129
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
130
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
131
|
+
this.access_card_no = access_card_no ?? null;
|
|
132
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -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',
|
|
@@ -134,14 +134,14 @@ export class AccommodationRequest extends BaseModel {
|
|
|
134
134
|
@Column({ type: 'int', nullable: true })
|
|
135
135
|
assigned_to_user_id: number | null;
|
|
136
136
|
|
|
137
|
-
@Column({ type: 'text', nullable: true })
|
|
138
|
-
approver_comment: string | null;
|
|
139
|
-
|
|
140
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
-
accommodation_allocated: string | null;
|
|
142
|
-
|
|
143
|
-
@Column({ type: 'int', nullable: true })
|
|
144
|
-
approved_by: number | null;
|
|
137
|
+
@Column({ type: 'text', nullable: true })
|
|
138
|
+
approver_comment: string | null;
|
|
139
|
+
|
|
140
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
+
accommodation_allocated: string | null;
|
|
142
|
+
|
|
143
|
+
@Column({ type: 'int', nullable: true })
|
|
144
|
+
approved_by: number | null;
|
|
145
145
|
|
|
146
146
|
@Column({ type: 'date', nullable: true })
|
|
147
147
|
approved_at: Date | null;
|