@platform-modules/civil-aviation-authority 2.3.97 → 2.3.99
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/index.d.ts +10 -0
- package/dist/index.js +12 -0
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/HousingContractCancelApprovalModel.d.ts +23 -0
- package/dist/models/HousingContractCancelApprovalModel.js +88 -0
- package/dist/models/HousingContractCancelAttachmentModel.d.ts +12 -0
- package/dist/models/HousingContractCancelAttachmentModel.js +56 -0
- package/dist/models/HousingContractCancelChatModel.d.ts +18 -0
- package/dist/models/HousingContractCancelChatModel.js +60 -0
- package/dist/models/HousingContractCancelRequestModel.d.ts +31 -0
- package/dist/models/HousingContractCancelRequestModel.js +107 -0
- package/dist/models/HousingContractCancelWorkflowModel.d.ts +25 -0
- package/dist/models/HousingContractCancelWorkflowModel.js +88 -0
- package/dist/models/HousingContractRenewalApprovalModel.d.ts +23 -0
- package/dist/models/HousingContractRenewalApprovalModel.js +88 -0
- package/dist/models/HousingContractRenewalAttachmentModel.d.ts +12 -0
- package/dist/models/HousingContractRenewalAttachmentModel.js +56 -0
- package/dist/models/HousingContractRenewalChatModel.d.ts +18 -0
- package/dist/models/HousingContractRenewalChatModel.js +60 -0
- package/dist/models/HousingContractRenewalRequestModel.d.ts +32 -0
- package/dist/models/HousingContractRenewalRequestModel.js +107 -0
- package/dist/models/HousingContractRenewalWorkflowModel.d.ts +25 -0
- package/dist/models/HousingContractRenewalWorkflowModel.js +88 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -10
- package/src/index.ts +15 -1
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/HousingContractCancelApprovalModel.ts +61 -0
- package/src/models/HousingContractCancelAttachmentModel.ts +34 -0
- package/src/models/HousingContractCancelChatModel.ts +39 -0
- package/src/models/HousingContractCancelRequestModel.ts +76 -0
- package/src/models/HousingContractCancelWorkflowModel.ts +60 -0
- package/src/models/HousingContractRenewalApprovalModel.ts +61 -0
- package/src/models/HousingContractRenewalAttachmentModel.ts +34 -0
- package/src/models/HousingContractRenewalChatModel.ts +39 -0
- package/src/models/HousingContractRenewalRequestModel.ts +77 -0
- package/src/models/HousingContractRenewalWorkflowModel.ts +60 -0
- package/src/models/HrServiceRequestModel.ts +193 -193
- 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/PerformanceCyclePeriodModel.ts +23 -23
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
|
@@ -0,0 +1,107 @@
|
|
|
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.HousingContractRenewalRequest = exports.HousingContractRenewalRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HousingContractRenewalRequestStatus;
|
|
16
|
+
(function (HousingContractRenewalRequestStatus) {
|
|
17
|
+
HousingContractRenewalRequestStatus["Pending"] = "Pending";
|
|
18
|
+
HousingContractRenewalRequestStatus["Approved"] = "Approved";
|
|
19
|
+
HousingContractRenewalRequestStatus["Rejected"] = "Rejected";
|
|
20
|
+
HousingContractRenewalRequestStatus["RFC"] = "RFC";
|
|
21
|
+
})(HousingContractRenewalRequestStatus || (exports.HousingContractRenewalRequestStatus = HousingContractRenewalRequestStatus = {}));
|
|
22
|
+
let HousingContractRenewalRequest = class HousingContractRenewalRequest extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.HousingContractRenewalRequest = HousingContractRenewalRequest;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], HousingContractRenewalRequest.prototype, "request_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], HousingContractRenewalRequest.prototype, "service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], HousingContractRenewalRequest.prototype, "sub_service_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], HousingContractRenewalRequest.prototype, "requested_unit_type", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], HousingContractRenewalRequest.prototype, "current_unit_type", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], HousingContractRenewalRequest.prototype, "location_of_unit", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], HousingContractRenewalRequest.prototype, "current_contract_start_date", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], HousingContractRenewalRequest.prototype, "current_contract_end_date", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], HousingContractRenewalRequest.prototype, "requested_renewal_duration", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], HousingContractRenewalRequest.prototype, "family_size", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], HousingContractRenewalRequest.prototype, "reason_for_renewal", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], HousingContractRenewalRequest.prototype, "comment", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false, default: 'Pending' }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], HousingContractRenewalRequest.prototype, "status", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], HousingContractRenewalRequest.prototype, "user_id", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], HousingContractRenewalRequest.prototype, "workflow_execution_id", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], HousingContractRenewalRequest.prototype, "created_by", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], HousingContractRenewalRequest.prototype, "approved_by", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
98
|
+
__metadata("design:type", Date)
|
|
99
|
+
], HousingContractRenewalRequest.prototype, "approved_at", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], HousingContractRenewalRequest.prototype, "approver_comment", void 0);
|
|
104
|
+
exports.HousingContractRenewalRequest = HousingContractRenewalRequest = __decorate([
|
|
105
|
+
(0, typeorm_1.Entity)({ name: 'housing_contract_renewal_requests' }),
|
|
106
|
+
__metadata("design:paramtypes", [])
|
|
107
|
+
], HousingContractRenewalRequest);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum HousingContractRenewalWorkFlowStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
InProgress = "In Progress",
|
|
5
|
+
Approved = "Approved",
|
|
6
|
+
Rejected = "Rejected",
|
|
7
|
+
RFC = "RFC"
|
|
8
|
+
}
|
|
9
|
+
export declare class HousingContractRenewalWorkflow extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number;
|
|
12
|
+
sub_service_id: number;
|
|
13
|
+
workflow_definition_id: number;
|
|
14
|
+
current_level: number;
|
|
15
|
+
content: string;
|
|
16
|
+
status: string;
|
|
17
|
+
step_order: number;
|
|
18
|
+
user_id: number;
|
|
19
|
+
role_id: number;
|
|
20
|
+
department_id: number;
|
|
21
|
+
section_id: number;
|
|
22
|
+
workflow_data: string;
|
|
23
|
+
created_by: number;
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HousingContractRenewalWorkflow = exports.HousingContractRenewalWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HousingContractRenewalWorkFlowStatus;
|
|
16
|
+
(function (HousingContractRenewalWorkFlowStatus) {
|
|
17
|
+
HousingContractRenewalWorkFlowStatus["Pending"] = "Pending";
|
|
18
|
+
HousingContractRenewalWorkFlowStatus["InProgress"] = "In Progress";
|
|
19
|
+
HousingContractRenewalWorkFlowStatus["Approved"] = "Approved";
|
|
20
|
+
HousingContractRenewalWorkFlowStatus["Rejected"] = "Rejected";
|
|
21
|
+
HousingContractRenewalWorkFlowStatus["RFC"] = "RFC";
|
|
22
|
+
})(HousingContractRenewalWorkFlowStatus || (exports.HousingContractRenewalWorkFlowStatus = HousingContractRenewalWorkFlowStatus = {}));
|
|
23
|
+
let HousingContractRenewalWorkflow = class HousingContractRenewalWorkflow extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.HousingContractRenewalWorkflow = HousingContractRenewalWorkflow;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], HousingContractRenewalWorkflow.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], HousingContractRenewalWorkflow.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], HousingContractRenewalWorkflow.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], HousingContractRenewalWorkflow.prototype, "workflow_definition_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], HousingContractRenewalWorkflow.prototype, "current_level", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], HousingContractRenewalWorkflow.prototype, "content", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], HousingContractRenewalWorkflow.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], HousingContractRenewalWorkflow.prototype, "step_order", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], HousingContractRenewalWorkflow.prototype, "user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], HousingContractRenewalWorkflow.prototype, "role_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], HousingContractRenewalWorkflow.prototype, "department_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], HousingContractRenewalWorkflow.prototype, "section_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], HousingContractRenewalWorkflow.prototype, "workflow_data", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], HousingContractRenewalWorkflow.prototype, "created_by", void 0);
|
|
85
|
+
exports.HousingContractRenewalWorkflow = HousingContractRenewalWorkflow = __decorate([
|
|
86
|
+
(0, typeorm_1.Entity)({ name: 'housing_contract_renewal_workflow' }),
|
|
87
|
+
__metadata("design:paramtypes", [])
|
|
88
|
+
], HousingContractRenewalWorkflow);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Role } from './role';
|
|
2
|
+
import { UUIDBaseModel } from './UUIDBaseModel';
|
|
3
|
+
export declare enum PermissionType {
|
|
4
|
+
VIEW = "view",
|
|
5
|
+
UPLOAD = "upload",
|
|
6
|
+
UPDATE = "update",
|
|
7
|
+
DELETE = "delete",
|
|
8
|
+
PUBLISH = "publish"
|
|
9
|
+
}
|
|
10
|
+
export declare class Permission extends UUIDBaseModel {
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
type: PermissionType;
|
|
14
|
+
description?: string;
|
|
15
|
+
is_active: boolean;
|
|
16
|
+
roles: Role[];
|
|
17
|
+
constructor(name: string, code: string, type: PermissionType, created_by: string, description?: string, is_active?: boolean);
|
|
18
|
+
}
|
|
@@ -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.Permission = exports.PermissionType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const role_1 = require("./role");
|
|
15
|
+
const UUIDBaseModel_1 = require("./UUIDBaseModel");
|
|
16
|
+
var PermissionType;
|
|
17
|
+
(function (PermissionType) {
|
|
18
|
+
PermissionType["VIEW"] = "view";
|
|
19
|
+
PermissionType["UPLOAD"] = "upload";
|
|
20
|
+
PermissionType["UPDATE"] = "update";
|
|
21
|
+
PermissionType["DELETE"] = "delete";
|
|
22
|
+
PermissionType["PUBLISH"] = "publish";
|
|
23
|
+
})(PermissionType || (exports.PermissionType = PermissionType = {}));
|
|
24
|
+
let Permission = class Permission extends UUIDBaseModel_1.UUIDBaseModel {
|
|
25
|
+
constructor(name, code, type, created_by, description, is_active = true) {
|
|
26
|
+
super();
|
|
27
|
+
this.name = name;
|
|
28
|
+
this.code = code;
|
|
29
|
+
this.type = type;
|
|
30
|
+
this.created_by = created_by;
|
|
31
|
+
this.description = description;
|
|
32
|
+
this.is_active = is_active;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.Permission = Permission;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Permission.prototype, "name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Permission.prototype, "code", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: PermissionType }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Permission.prototype, "type", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Permission.prototype, "description", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], Permission.prototype, "is_active", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToMany)(() => role_1.Role),
|
|
58
|
+
(0, typeorm_1.JoinTable)({
|
|
59
|
+
name: 'role_permissions',
|
|
60
|
+
joinColumn: { name: 'permission_id', referencedColumnName: 'id' },
|
|
61
|
+
inverseJoinColumn: { name: 'role_id', referencedColumnName: 'id' },
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], Permission.prototype, "roles", void 0);
|
|
65
|
+
exports.Permission = Permission = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'permissions' }),
|
|
67
|
+
__metadata("design:paramtypes", [String, String, String, String, String, Boolean])
|
|
68
|
+
], Permission);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare abstract class UUIDModel0 {
|
|
2
|
+
jsonIgnore: string[];
|
|
3
|
+
created_by?: string;
|
|
4
|
+
created_at?: Date;
|
|
5
|
+
updated_by?: string;
|
|
6
|
+
updated_at?: Date;
|
|
7
|
+
insertCreated(): void;
|
|
8
|
+
is_deleted?: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class UUIDBaseModel extends UUIDModel0 {
|
|
12
|
+
id: string;
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UUIDBaseModel = exports.UUIDModel0 = void 0;
|
|
16
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
class UUIDModel0 {
|
|
19
|
+
insertCreated() {
|
|
20
|
+
const currentTime = (0, moment_timezone_1.default)().utc().tz('Asia/Kolkata').toDate();
|
|
21
|
+
this.created_at = currentTime;
|
|
22
|
+
this.updated_at = currentTime;
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
this.jsonIgnore = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
26
|
+
this.is_deleted = false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.UUIDModel0 = UUIDModel0;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UUIDModel0.prototype, "created_by", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], UUIDModel0.prototype, "created_at", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UUIDModel0.prototype, "updated_by", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.UpdateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], UUIDModel0.prototype, "updated_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", void 0)
|
|
51
|
+
], UUIDModel0.prototype, "insertCreated", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UUIDModel0.prototype, "is_deleted", void 0);
|
|
56
|
+
class UUIDBaseModel extends UUIDModel0 {
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
this.id = ''; // This will be set by the database when the entity is saved
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.UUIDBaseModel = UUIDBaseModel;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UUIDBaseModel.prototype, "id", void 0);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -128,11 +128,11 @@ import { RequestForCoverageWorkFlow } from './models/RequestForCoverageWorkflowM
|
|
|
128
128
|
import { RequestForCoverageApprovalDetails } from './models/RequestForCoverageApprovalModel';
|
|
129
129
|
import { RequestForCoverageRequestChat } from './models/RequestForCoverageChatModel';
|
|
130
130
|
import { RequestForCoverageRequestAttachment } from './models/RequestForCoverageAttachmentModel';
|
|
131
|
-
import { CashAllowanceLeaveRequest } from './models/CashAllowanceLeaveRequestModel';
|
|
132
|
-
import { PromotionRequest } from './models/PromotionRequestModel';
|
|
133
|
-
import { AnnualIncrementRequest } from './models/AnnualIncrementRequestModel';
|
|
134
|
-
import { AnnualIncrementRequestEmployee } from './models/AnnualIncrementRequestEmployeeModel';
|
|
135
|
-
import { SkillsEnhancementRequest } from './models/SkillsEnhancementRequestModel';
|
|
131
|
+
import { CashAllowanceLeaveRequest } from './models/CashAllowanceLeaveRequestModel';
|
|
132
|
+
import { PromotionRequest } from './models/PromotionRequestModel';
|
|
133
|
+
import { AnnualIncrementRequest } from './models/AnnualIncrementRequestModel';
|
|
134
|
+
import { AnnualIncrementRequestEmployee } from './models/AnnualIncrementRequestEmployeeModel';
|
|
135
|
+
import { SkillsEnhancementRequest } from './models/SkillsEnhancementRequestModel';
|
|
136
136
|
import { CityMaster } from './models/CityMasterModel';
|
|
137
137
|
import { ResidentialUnitRentalRequest } from './models/ResidentialUnitRentalRequestModel';
|
|
138
138
|
import { ResidentialUnitRentalWorkflow } from './models/ResidentialUnitRentalWorkflowModel';
|
|
@@ -268,11 +268,11 @@ export const AppDataSource = new DataSource({
|
|
|
268
268
|
AssignTasksEmpWorkFlow,
|
|
269
269
|
AssignTasksEmpRequestAttachment,
|
|
270
270
|
AssignTasksEmpRequestChat,
|
|
271
|
-
CashAllowanceLeaveRequest,
|
|
272
|
-
PromotionRequest,
|
|
273
|
-
AnnualIncrementRequest,
|
|
274
|
-
AnnualIncrementRequestEmployee,
|
|
275
|
-
SkillsEnhancementRequest,
|
|
271
|
+
CashAllowanceLeaveRequest,
|
|
272
|
+
PromotionRequest,
|
|
273
|
+
AnnualIncrementRequest,
|
|
274
|
+
AnnualIncrementRequestEmployee,
|
|
275
|
+
SkillsEnhancementRequest,
|
|
276
276
|
CityMaster,
|
|
277
277
|
ResidentialUnitRentalRequest,
|
|
278
278
|
ResidentialUnitRentalWorkflow,
|
package/src/index.ts
CHANGED
|
@@ -265,4 +265,18 @@ export * from './models/ResidentialUnitRentalRequestModel';
|
|
|
265
265
|
export * from './models/ResidentialUnitRentalWorkflowModel';
|
|
266
266
|
export * from './models/ResidentialUnitRentalApprovalModel';
|
|
267
267
|
export * from './models/ResidentialUnitRentalChatModel';
|
|
268
|
-
export * from './models/ResidentialUnitRentalAttachmentModel';
|
|
268
|
+
export * from './models/ResidentialUnitRentalAttachmentModel';
|
|
269
|
+
|
|
270
|
+
// Housing Contract Renewal (CAA042)
|
|
271
|
+
export * from './models/HousingContractRenewalRequestModel';
|
|
272
|
+
export * from './models/HousingContractRenewalWorkflowModel';
|
|
273
|
+
export * from './models/HousingContractRenewalApprovalModel';
|
|
274
|
+
export * from './models/HousingContractRenewalChatModel';
|
|
275
|
+
export * from './models/HousingContractRenewalAttachmentModel';
|
|
276
|
+
|
|
277
|
+
// Housing Contract Cancel
|
|
278
|
+
export * from './models/HousingContractCancelRequestModel';
|
|
279
|
+
export * from './models/HousingContractCancelWorkflowModel';
|
|
280
|
+
export * from './models/HousingContractCancelApprovalModel';
|
|
281
|
+
export * from './models/HousingContractCancelChatModel';
|
|
282
|
+
export * from './models/HousingContractCancelAttachmentModel';
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { AnnualIncrementRequest } from "./AnnualIncrementRequestModel";
|
|
4
|
-
|
|
5
|
-
@Entity({ name: "annual_increment_request_employees" })
|
|
6
|
-
export class AnnualIncrementRequestEmployee extends BaseModel {
|
|
7
|
-
@Column({ type: "integer", nullable: false })
|
|
8
|
-
request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: "integer", nullable: true })
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "integer", nullable: true })
|
|
14
|
-
sub_service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
17
|
-
employee_name: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
20
|
-
employee_id: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "integer", nullable: false })
|
|
23
|
-
allowance_year: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "date", nullable: false })
|
|
26
|
-
effective_date: Date;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
29
|
-
current_basic_salary: number | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
32
|
-
increment_percentage: number | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
35
|
-
new_basic_salary: number | null;
|
|
36
|
-
|
|
37
|
-
@ManyToOne(() => AnnualIncrementRequest, { onDelete: "CASCADE" })
|
|
38
|
-
@JoinColumn({ name: "request_id", referencedColumnName: "id" })
|
|
39
|
-
request: AnnualIncrementRequest;
|
|
40
|
-
|
|
41
|
-
constructor(
|
|
42
|
-
request_id: number,
|
|
43
|
-
employee_name: string,
|
|
44
|
-
employee_id: string,
|
|
45
|
-
allowance_year: number,
|
|
46
|
-
effective_date: Date,
|
|
47
|
-
service_id?: number | null,
|
|
48
|
-
sub_service_id?: number | null,
|
|
49
|
-
current_basic_salary?: number | null,
|
|
50
|
-
increment_percentage?: number | null,
|
|
51
|
-
new_basic_salary?: number | null
|
|
52
|
-
) {
|
|
53
|
-
super();
|
|
54
|
-
this.request_id = request_id;
|
|
55
|
-
this.service_id = service_id ?? null;
|
|
56
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
57
|
-
this.employee_name = employee_name;
|
|
58
|
-
this.employee_id = employee_id;
|
|
59
|
-
this.allowance_year = allowance_year;
|
|
60
|
-
this.effective_date = effective_date;
|
|
61
|
-
this.current_basic_salary = current_basic_salary ?? null;
|
|
62
|
-
this.increment_percentage = increment_percentage ?? null;
|
|
63
|
-
this.new_basic_salary = new_basic_salary ?? null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { AnnualIncrementRequest } from "./AnnualIncrementRequestModel";
|
|
4
|
+
|
|
5
|
+
@Entity({ name: "annual_increment_request_employees" })
|
|
6
|
+
export class AnnualIncrementRequestEmployee extends BaseModel {
|
|
7
|
+
@Column({ type: "integer", nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "integer", nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "integer", nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
17
|
+
employee_name: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
20
|
+
employee_id: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: false })
|
|
23
|
+
allowance_year: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "date", nullable: false })
|
|
26
|
+
effective_date: Date;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
29
|
+
current_basic_salary: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
32
|
+
increment_percentage: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
35
|
+
new_basic_salary: number | null;
|
|
36
|
+
|
|
37
|
+
@ManyToOne(() => AnnualIncrementRequest, { onDelete: "CASCADE" })
|
|
38
|
+
@JoinColumn({ name: "request_id", referencedColumnName: "id" })
|
|
39
|
+
request: AnnualIncrementRequest;
|
|
40
|
+
|
|
41
|
+
constructor(
|
|
42
|
+
request_id: number,
|
|
43
|
+
employee_name: string,
|
|
44
|
+
employee_id: string,
|
|
45
|
+
allowance_year: number,
|
|
46
|
+
effective_date: Date,
|
|
47
|
+
service_id?: number | null,
|
|
48
|
+
sub_service_id?: number | null,
|
|
49
|
+
current_basic_salary?: number | null,
|
|
50
|
+
increment_percentage?: number | null,
|
|
51
|
+
new_basic_salary?: number | null
|
|
52
|
+
) {
|
|
53
|
+
super();
|
|
54
|
+
this.request_id = request_id;
|
|
55
|
+
this.service_id = service_id ?? null;
|
|
56
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
57
|
+
this.employee_name = employee_name;
|
|
58
|
+
this.employee_id = employee_id;
|
|
59
|
+
this.allowance_year = allowance_year;
|
|
60
|
+
this.effective_date = effective_date;
|
|
61
|
+
this.current_basic_salary = current_basic_salary ?? null;
|
|
62
|
+
this.increment_percentage = increment_percentage ?? null;
|
|
63
|
+
this.new_basic_salary = new_basic_salary ?? null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -45,24 +45,24 @@ export class AnnualIncrementRequest extends BaseModel {
|
|
|
45
45
|
@Column({ type: "timestamp", nullable: true })
|
|
46
46
|
assigned_at: Date | null;
|
|
47
47
|
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
-
workflow_execution_id: string | null;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
-
reference_number: string | null;
|
|
53
|
-
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
+
workflow_execution_id: string | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
+
reference_number: string | null;
|
|
53
|
+
|
|
54
54
|
// Annual Increment specific fields
|
|
55
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
56
|
-
employee_name: string | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
59
|
-
employee_id: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "integer", nullable: true })
|
|
62
|
-
allowance_year: number | null;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "date", nullable: true })
|
|
65
|
-
effective_date: Date | null;
|
|
55
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
56
|
+
employee_name: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
59
|
+
employee_id: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "integer", nullable: true })
|
|
62
|
+
allowance_year: number | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "date", nullable: true })
|
|
65
|
+
effective_date: Date | null;
|
|
66
66
|
|
|
67
67
|
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
68
68
|
current_basic_salary: number | null;
|
|
@@ -104,14 +104,14 @@ export class AnnualIncrementRequest extends BaseModel {
|
|
|
104
104
|
this.req_user_position_id = req_user_position_id || null;
|
|
105
105
|
this.description = description || null;
|
|
106
106
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
107
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
108
|
-
this.assigned_at = assigned_at || null;
|
|
109
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
110
|
-
this.reference_number = null;
|
|
111
|
-
this.employee_name = employee_name || null;
|
|
112
|
-
this.employee_id = employee_id || null;
|
|
113
|
-
this.allowance_year = allowance_year || null;
|
|
114
|
-
this.effective_date = effective_date || null;
|
|
107
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
108
|
+
this.assigned_at = assigned_at || null;
|
|
109
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
110
|
+
this.reference_number = null;
|
|
111
|
+
this.employee_name = employee_name || null;
|
|
112
|
+
this.employee_id = employee_id || null;
|
|
113
|
+
this.allowance_year = allowance_year || null;
|
|
114
|
+
this.effective_date = effective_date || null;
|
|
115
115
|
this.current_basic_salary = current_basic_salary || null;
|
|
116
116
|
this.increment_percentage = increment_percentage || null;
|
|
117
117
|
this.new_basic_salary = new_basic_salary || null;
|