@platform-modules/civil-aviation-authority 2.3.62 → 2.3.67
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 +17 -9
- package/dist/data-source.js +13 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +19 -1
- package/dist/models/AirportEntryPermitModel.js +1 -1
- package/dist/models/AnnualIncrementRequestModel.d.ts +31 -0
- package/dist/models/AnnualIncrementRequestModel.js +128 -0
- package/dist/models/DocumentAuditLogModel.d.ts +19 -0
- package/dist/models/DocumentAuditLogModel.js +68 -0
- package/dist/models/DocumentMetadataModel.d.ts +48 -0
- package/dist/models/DocumentMetadataModel.js +160 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +18 -0
- package/dist/models/DocumentationDepartmentsModel.js +72 -0
- package/dist/models/FolderModel.d.ts +19 -0
- package/dist/models/FolderModel.js +89 -0
- package/dist/models/PermissionModel.d.ts +21 -0
- package/dist/models/PermissionModel.js +77 -0
- package/package.json +1 -1
- package/src/data-source.ts +13 -1
- package/src/index.ts +14 -3
- package/src/models/AirportEntryPermitModel.ts +1 -1
- package/src/models/AnnualIncrementRequestModel.ts +115 -0
- package/src/models/DocumentAuditLogModel.ts +52 -0
- package/src/models/DocumentMetadataModel.ts +125 -0
- package/src/models/DocumentationDepartmentsModel.ts +55 -0
- package/src/models/FolderModel.ts +71 -0
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PermissionModel.ts +60 -0
- package/src/models/RequestForCoverageRequestModel.ts +174 -174
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/models/HotelreservationModal.d.ts +0 -30
- package/dist/models/HotelreservationModal.js +0 -119
- 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 -0
- package/dist/models/Workflows.js +0 -31
package/.env
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
DB_HOST=164.52.222.169
|
|
2
|
+
DB_PORT=5432
|
|
3
|
+
DB_USER=postgres_admin_user
|
|
4
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
DB_NAME=CAA
|
|
6
|
+
|
|
7
|
+
# DB_HOST=216.48.187.46
|
|
2
8
|
# DB_PORT=5432
|
|
3
|
-
# DB_USER=
|
|
4
|
-
# DB_PASS=
|
|
5
|
-
# DB_NAME=
|
|
9
|
+
# DB_USER=adminuser
|
|
10
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
11
|
+
# DB_NAME=CAA_QA
|
|
6
12
|
|
|
7
13
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# DB_HOST=localhost
|
|
17
|
+
# DB_PORT=5432
|
|
18
|
+
# DB_USER=postgres
|
|
19
|
+
# DB_PASS=stevejobs
|
|
20
|
+
# DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -126,6 +126,12 @@ const RequestForCoverageChatModel_1 = require("./models/RequestForCoverageChatMo
|
|
|
126
126
|
const RequestForCoverageAttachmentModel_1 = require("./models/RequestForCoverageAttachmentModel");
|
|
127
127
|
const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
|
|
128
128
|
const PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
129
|
+
const AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
|
|
130
|
+
const DocumentMetadataModel_1 = require("./models/DocumentMetadataModel");
|
|
131
|
+
const PermissionModel_1 = require("./models/PermissionModel");
|
|
132
|
+
const DocumentAuditLogModel_1 = require("./models/DocumentAuditLogModel");
|
|
133
|
+
const FolderModel_1 = require("./models/FolderModel");
|
|
134
|
+
const DocumentationDepartmentsModel_1 = require("./models/DocumentationDepartmentsModel");
|
|
129
135
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
130
136
|
type: 'postgres',
|
|
131
137
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -255,6 +261,12 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
255
261
|
AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment,
|
|
256
262
|
AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat,
|
|
257
263
|
CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest,
|
|
258
|
-
PromotionRequestModel_1.PromotionRequest
|
|
264
|
+
PromotionRequestModel_1.PromotionRequest,
|
|
265
|
+
AnnualIncrementRequestModel_1.AnnualIncrementRequest,
|
|
266
|
+
DocumentMetadataModel_1.DocumentMetadata,
|
|
267
|
+
PermissionModel_1.Permission,
|
|
268
|
+
DocumentAuditLogModel_1.DocumentAuditLog,
|
|
269
|
+
FolderModel_1.Folder,
|
|
270
|
+
DocumentationDepartmentsModel_1.DocumentationDepartments
|
|
259
271
|
],
|
|
260
272
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -199,3 +199,13 @@ export * from './models/CashAllowanceLeaveRequestModel';
|
|
|
199
199
|
export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel';
|
|
200
200
|
export * from './models/PromotionRequestModel';
|
|
201
201
|
export { PromotionRequestStatus } from './models/PromotionRequestModel';
|
|
202
|
+
export * from './models/AnnualIncrementRequestModel';
|
|
203
|
+
export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestModel';
|
|
204
|
+
export * from './models/DocumentMetadataModel';
|
|
205
|
+
export * from './models/PermissionModel';
|
|
206
|
+
export * from './models/DocumentAuditLogModel';
|
|
207
|
+
export * from './models/FolderModel';
|
|
208
|
+
export * from './models/DocumentationDepartmentsModel';
|
|
209
|
+
export { DocumentType, DocumentStatus, AccessLevel } from './models/DocumentMetadataModel';
|
|
210
|
+
export { PermissionType } from './models/PermissionModel';
|
|
211
|
+
export { AuditAction } from './models/DocumentAuditLogModel';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
-
exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
18
|
+
exports.AuditAction = exports.PermissionType = exports.AccessLevel = exports.DocumentStatus = exports.DocumentType = exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -300,3 +300,21 @@ Object.defineProperty(exports, "CashAllowanceLeaveRequestStatus", { enumerable:
|
|
|
300
300
|
__exportStar(require("./models/PromotionRequestModel"), exports);
|
|
301
301
|
var PromotionRequestModel_1 = require("./models/PromotionRequestModel");
|
|
302
302
|
Object.defineProperty(exports, "PromotionRequestStatus", { enumerable: true, get: function () { return PromotionRequestModel_1.PromotionRequestStatus; } });
|
|
303
|
+
// Annual Increment (Periodic Allowance) Request Service
|
|
304
|
+
__exportStar(require("./models/AnnualIncrementRequestModel"), exports);
|
|
305
|
+
var AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
|
|
306
|
+
Object.defineProperty(exports, "AnnualIncrementRequestStatus", { enumerable: true, get: function () { return AnnualIncrementRequestModel_1.AnnualIncrementRequestStatus; } });
|
|
307
|
+
// Documentation Service Models
|
|
308
|
+
__exportStar(require("./models/DocumentMetadataModel"), exports);
|
|
309
|
+
__exportStar(require("./models/PermissionModel"), exports);
|
|
310
|
+
__exportStar(require("./models/DocumentAuditLogModel"), exports);
|
|
311
|
+
__exportStar(require("./models/FolderModel"), exports);
|
|
312
|
+
__exportStar(require("./models/DocumentationDepartmentsModel"), exports);
|
|
313
|
+
var DocumentMetadataModel_1 = require("./models/DocumentMetadataModel");
|
|
314
|
+
Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return DocumentMetadataModel_1.DocumentType; } });
|
|
315
|
+
Object.defineProperty(exports, "DocumentStatus", { enumerable: true, get: function () { return DocumentMetadataModel_1.DocumentStatus; } });
|
|
316
|
+
Object.defineProperty(exports, "AccessLevel", { enumerable: true, get: function () { return DocumentMetadataModel_1.AccessLevel; } });
|
|
317
|
+
var PermissionModel_1 = require("./models/PermissionModel");
|
|
318
|
+
Object.defineProperty(exports, "PermissionType", { enumerable: true, get: function () { return PermissionModel_1.PermissionType; } });
|
|
319
|
+
var DocumentAuditLogModel_1 = require("./models/DocumentAuditLogModel");
|
|
320
|
+
Object.defineProperty(exports, "AuditAction", { enumerable: true, get: function () { return DocumentAuditLogModel_1.AuditAction; } });
|
|
@@ -210,7 +210,7 @@ __decorate([
|
|
|
210
210
|
__metadata("design:type", Object)
|
|
211
211
|
], AirportEntryPermit.prototype, "temporary_duration", void 0);
|
|
212
212
|
__decorate([
|
|
213
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable:
|
|
213
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: false }),
|
|
214
214
|
__metadata("design:type", Array)
|
|
215
215
|
], AirportEntryPermit.prototype, "permission_to_required_areas", void 0);
|
|
216
216
|
__decorate([
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AnnualIncrementRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
export declare class AnnualIncrementRequest extends BaseModel {
|
|
11
|
+
req_user_department_id: number | null;
|
|
12
|
+
req_user_section_id: number | null;
|
|
13
|
+
req_user_position_id: number | null;
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
sub_service_id: number | null;
|
|
16
|
+
user_id: number;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: AnnualIncrementRequestStatus;
|
|
19
|
+
reviewer_user_id: number | null;
|
|
20
|
+
assigned_to_user_id: number | null;
|
|
21
|
+
assigned_at: Date | null;
|
|
22
|
+
workflow_execution_id: string | null;
|
|
23
|
+
employee_name: string;
|
|
24
|
+
employee_id: string;
|
|
25
|
+
allowance_year: number;
|
|
26
|
+
effective_date: Date;
|
|
27
|
+
current_basic_salary: number | null;
|
|
28
|
+
increment_percentage: number | null;
|
|
29
|
+
new_basic_salary: number | null;
|
|
30
|
+
constructor(user_id: number, status?: AnnualIncrementRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, allowance_year?: number, effective_date?: Date, current_basic_salary?: number | null, increment_percentage?: number | null, new_basic_salary?: number | null);
|
|
31
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.AnnualIncrementRequest = exports.AnnualIncrementRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AnnualIncrementRequestStatus;
|
|
16
|
+
(function (AnnualIncrementRequestStatus) {
|
|
17
|
+
AnnualIncrementRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
AnnualIncrementRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
AnnualIncrementRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
AnnualIncrementRequestStatus["COMPLETED"] = "Completed";
|
|
21
|
+
AnnualIncrementRequestStatus["APPROVED"] = "Approved";
|
|
22
|
+
AnnualIncrementRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
+
})(AnnualIncrementRequestStatus || (exports.AnnualIncrementRequestStatus = AnnualIncrementRequestStatus = {}));
|
|
24
|
+
let AnnualIncrementRequest = class AnnualIncrementRequest extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(user_id, status = AnnualIncrementRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, allowance_year, effective_date, current_basic_salary, increment_percentage, new_basic_salary) {
|
|
26
|
+
super();
|
|
27
|
+
this.user_id = user_id;
|
|
28
|
+
this.status = status;
|
|
29
|
+
this.service_id = service_id || null;
|
|
30
|
+
this.sub_service_id = sub_service_id || null;
|
|
31
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
32
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
33
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
34
|
+
this.description = description || null;
|
|
35
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
36
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
37
|
+
this.assigned_at = assigned_at || null;
|
|
38
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
39
|
+
this.employee_name = employee_name || "";
|
|
40
|
+
this.employee_id = employee_id || "";
|
|
41
|
+
this.allowance_year = allowance_year || new Date().getFullYear();
|
|
42
|
+
this.effective_date = effective_date || new Date();
|
|
43
|
+
this.current_basic_salary = current_basic_salary || null;
|
|
44
|
+
this.increment_percentage = increment_percentage || null;
|
|
45
|
+
this.new_basic_salary = new_basic_salary || null;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.AnnualIncrementRequest = AnnualIncrementRequest;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], AnnualIncrementRequest.prototype, "req_user_department_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], AnnualIncrementRequest.prototype, "req_user_section_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AnnualIncrementRequest.prototype, "req_user_position_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AnnualIncrementRequest.prototype, "service_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], AnnualIncrementRequest.prototype, "sub_service_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], AnnualIncrementRequest.prototype, "user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], AnnualIncrementRequest.prototype, "description", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "enum", enum: AnnualIncrementRequestStatus, default: AnnualIncrementRequestStatus.PENDING, nullable: false }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], AnnualIncrementRequest.prototype, "status", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], AnnualIncrementRequest.prototype, "reviewer_user_id", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], AnnualIncrementRequest.prototype, "assigned_to_user_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], AnnualIncrementRequest.prototype, "assigned_at", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], AnnualIncrementRequest.prototype, "workflow_execution_id", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], AnnualIncrementRequest.prototype, "employee_name", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], AnnualIncrementRequest.prototype, "employee_id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], AnnualIncrementRequest.prototype, "allowance_year", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], AnnualIncrementRequest.prototype, "effective_date", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: true }),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], AnnualIncrementRequest.prototype, "current_basic_salary", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 5, scale: 2, nullable: true }),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
|
+
], AnnualIncrementRequest.prototype, "increment_percentage", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: true }),
|
|
123
|
+
__metadata("design:type", Object)
|
|
124
|
+
], AnnualIncrementRequest.prototype, "new_basic_salary", void 0);
|
|
125
|
+
exports.AnnualIncrementRequest = AnnualIncrementRequest = __decorate([
|
|
126
|
+
(0, typeorm_1.Entity)({ name: "annual_increment_requests" }),
|
|
127
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Number, Date, Object, Object, Object])
|
|
128
|
+
], AnnualIncrementRequest);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum AuditAction {
|
|
2
|
+
UPLOAD = "upload",
|
|
3
|
+
VIEW = "view",
|
|
4
|
+
DOWNLOAD = "download",
|
|
5
|
+
UPDATE = "update",
|
|
6
|
+
DELETE = "delete",
|
|
7
|
+
PUBLISH = "publish"
|
|
8
|
+
}
|
|
9
|
+
export declare class DocumentAuditLog {
|
|
10
|
+
id: string;
|
|
11
|
+
document_id: string;
|
|
12
|
+
user_id: string;
|
|
13
|
+
user_name: string;
|
|
14
|
+
action: AuditAction;
|
|
15
|
+
ip_address: string;
|
|
16
|
+
user_agent: string;
|
|
17
|
+
metadata: Record<string, any>;
|
|
18
|
+
timestamp: Date;
|
|
19
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.DocumentAuditLog = exports.AuditAction = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
// Note: DocumentMetadata import removed to avoid circular dependency
|
|
15
|
+
var AuditAction;
|
|
16
|
+
(function (AuditAction) {
|
|
17
|
+
AuditAction["UPLOAD"] = "upload";
|
|
18
|
+
AuditAction["VIEW"] = "view";
|
|
19
|
+
AuditAction["DOWNLOAD"] = "download";
|
|
20
|
+
AuditAction["UPDATE"] = "update";
|
|
21
|
+
AuditAction["DELETE"] = "delete";
|
|
22
|
+
AuditAction["PUBLISH"] = "publish";
|
|
23
|
+
})(AuditAction || (exports.AuditAction = AuditAction = {}));
|
|
24
|
+
let DocumentAuditLog = class DocumentAuditLog {
|
|
25
|
+
};
|
|
26
|
+
exports.DocumentAuditLog = DocumentAuditLog;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DocumentAuditLog.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DocumentAuditLog.prototype, "document_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
37
|
+
(0, typeorm_1.Index)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DocumentAuditLog.prototype, "user_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], DocumentAuditLog.prototype, "user_name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AuditAction }),
|
|
46
|
+
(0, typeorm_1.Index)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], DocumentAuditLog.prototype, "action", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], DocumentAuditLog.prototype, "ip_address", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], DocumentAuditLog.prototype, "user_agent", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], DocumentAuditLog.prototype, "metadata", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
|
63
|
+
(0, typeorm_1.Index)(),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], DocumentAuditLog.prototype, "timestamp", void 0);
|
|
66
|
+
exports.DocumentAuditLog = DocumentAuditLog = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ name: 'document_audit_logs' })
|
|
68
|
+
], DocumentAuditLog);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Departments } from './DepartmentsModel';
|
|
2
|
+
export declare enum DocumentType {
|
|
3
|
+
POLICY = "policy",
|
|
4
|
+
PROCEDURE = "procedure",
|
|
5
|
+
MANUAL = "manual",
|
|
6
|
+
TEMPLATE = "template",
|
|
7
|
+
REPORT = "report"
|
|
8
|
+
}
|
|
9
|
+
export declare enum DocumentStatus {
|
|
10
|
+
ACTIVE = "active",
|
|
11
|
+
ARCHIVED = "archived",
|
|
12
|
+
DRAFT = "draft"
|
|
13
|
+
}
|
|
14
|
+
export declare enum AccessLevel {
|
|
15
|
+
GENERAL = "general",
|
|
16
|
+
RESTRICTED = "restricted"
|
|
17
|
+
}
|
|
18
|
+
export declare class DocumentMetadata {
|
|
19
|
+
id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
original_name: string;
|
|
23
|
+
mime_type: string;
|
|
24
|
+
size: number;
|
|
25
|
+
mongodb_file_id: string;
|
|
26
|
+
document_type: DocumentType;
|
|
27
|
+
access_level: AccessLevel;
|
|
28
|
+
status: DocumentStatus;
|
|
29
|
+
version: string;
|
|
30
|
+
tags: string[];
|
|
31
|
+
is_sensitive: boolean;
|
|
32
|
+
department: Departments;
|
|
33
|
+
department_id: number;
|
|
34
|
+
folder_id: string | null;
|
|
35
|
+
folder_path: string;
|
|
36
|
+
uploaded_by: string;
|
|
37
|
+
uploaded_by_name: string;
|
|
38
|
+
authorized_person: string;
|
|
39
|
+
allowed_roles: string[];
|
|
40
|
+
allowed_users: string[];
|
|
41
|
+
download_count: number;
|
|
42
|
+
last_accessed_at: Date;
|
|
43
|
+
metadata: Record<string, any>;
|
|
44
|
+
created_by: string;
|
|
45
|
+
updated_by: string;
|
|
46
|
+
created_at: Date;
|
|
47
|
+
updated_at: Date;
|
|
48
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
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.DocumentMetadata = exports.AccessLevel = exports.DocumentStatus = exports.DocumentType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const DepartmentsModel_1 = require("./DepartmentsModel");
|
|
15
|
+
var DocumentType;
|
|
16
|
+
(function (DocumentType) {
|
|
17
|
+
DocumentType["POLICY"] = "policy";
|
|
18
|
+
DocumentType["PROCEDURE"] = "procedure";
|
|
19
|
+
DocumentType["MANUAL"] = "manual";
|
|
20
|
+
DocumentType["TEMPLATE"] = "template";
|
|
21
|
+
DocumentType["REPORT"] = "report";
|
|
22
|
+
})(DocumentType || (exports.DocumentType = DocumentType = {}));
|
|
23
|
+
var DocumentStatus;
|
|
24
|
+
(function (DocumentStatus) {
|
|
25
|
+
DocumentStatus["ACTIVE"] = "active";
|
|
26
|
+
DocumentStatus["ARCHIVED"] = "archived";
|
|
27
|
+
DocumentStatus["DRAFT"] = "draft";
|
|
28
|
+
})(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
|
|
29
|
+
var AccessLevel;
|
|
30
|
+
(function (AccessLevel) {
|
|
31
|
+
AccessLevel["GENERAL"] = "general";
|
|
32
|
+
AccessLevel["RESTRICTED"] = "restricted";
|
|
33
|
+
})(AccessLevel || (exports.AccessLevel = AccessLevel = {}));
|
|
34
|
+
let DocumentMetadata = class DocumentMetadata {
|
|
35
|
+
};
|
|
36
|
+
exports.DocumentMetadata = DocumentMetadata;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], DocumentMetadata.prototype, "id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
43
|
+
(0, typeorm_1.Index)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], DocumentMetadata.prototype, "title", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], DocumentMetadata.prototype, "description", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], DocumentMetadata.prototype, "original_name", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], DocumentMetadata.prototype, "mime_type", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], DocumentMetadata.prototype, "size", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, unique: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], DocumentMetadata.prototype, "mongodb_file_id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentType }),
|
|
68
|
+
(0, typeorm_1.Index)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], DocumentMetadata.prototype, "document_type", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AccessLevel, default: AccessLevel.GENERAL }),
|
|
73
|
+
(0, typeorm_1.Index)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], DocumentMetadata.prototype, "access_level", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentStatus, default: DocumentStatus.ACTIVE }),
|
|
78
|
+
(0, typeorm_1.Index)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], DocumentMetadata.prototype, "status", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, default: '1.0.0' }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], DocumentMetadata.prototype, "version", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], DocumentMetadata.prototype, "tags", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], DocumentMetadata.prototype, "is_sensitive", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.ManyToOne)('Departments', { eager: true }),
|
|
95
|
+
(0, typeorm_1.JoinColumn)({ name: 'department_id' }),
|
|
96
|
+
__metadata("design:type", DepartmentsModel_1.Departments)
|
|
97
|
+
], DocumentMetadata.prototype, "department", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], DocumentMetadata.prototype, "department_id", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], DocumentMetadata.prototype, "folder_id", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, default: '/' }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], DocumentMetadata.prototype, "folder_path", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], DocumentMetadata.prototype, "uploaded_by", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], DocumentMetadata.prototype, "uploaded_by_name", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], DocumentMetadata.prototype, "authorized_person", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
|
|
124
|
+
__metadata("design:type", Array)
|
|
125
|
+
], DocumentMetadata.prototype, "allowed_roles", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
|
|
128
|
+
__metadata("design:type", Array)
|
|
129
|
+
], DocumentMetadata.prototype, "allowed_users", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
132
|
+
__metadata("design:type", Number)
|
|
133
|
+
], DocumentMetadata.prototype, "download_count", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
136
|
+
__metadata("design:type", Date)
|
|
137
|
+
], DocumentMetadata.prototype, "last_accessed_at", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], DocumentMetadata.prototype, "metadata", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], DocumentMetadata.prototype, "created_by", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], DocumentMetadata.prototype, "updated_by", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
|
|
152
|
+
__metadata("design:type", Date)
|
|
153
|
+
], DocumentMetadata.prototype, "created_at", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
|
|
156
|
+
__metadata("design:type", Date)
|
|
157
|
+
], DocumentMetadata.prototype, "updated_at", void 0);
|
|
158
|
+
exports.DocumentMetadata = DocumentMetadata = __decorate([
|
|
159
|
+
(0, typeorm_1.Entity)({ name: 'document_metadata' })
|
|
160
|
+
], DocumentMetadata);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Departments } from './DepartmentsModel';
|
|
2
|
+
/**
|
|
3
|
+
* Documentation Service specific department configuration
|
|
4
|
+
* Links departments with authorized persons for document management
|
|
5
|
+
*/
|
|
6
|
+
export declare class DocumentationDepartments {
|
|
7
|
+
id: string;
|
|
8
|
+
department: Departments;
|
|
9
|
+
department_id: number;
|
|
10
|
+
authorized_person_id: string;
|
|
11
|
+
authorized_person_name: string;
|
|
12
|
+
authorized_person_email: string;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
created_by: string;
|
|
15
|
+
updated_by: string;
|
|
16
|
+
created_at: Date;
|
|
17
|
+
updated_at: Date;
|
|
18
|
+
}
|