@platform-modules/civil-aviation-authority 2.3.100 → 2.3.101
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 +2 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -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/PerformanceManagementRequestGoalModel.d.ts +9 -0
- package/dist/models/PerformanceManagementRequestGoalModel.js +50 -0
- package/dist/models/PerformanceManagementRequestModel.d.ts +1 -5
- package/dist/models/PerformanceManagementRequestModel.js +2 -22
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -10
- package/src/index.ts +7 -6
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/PerformanceCyclePeriodModel.ts +23 -23
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +36 -0
- package/src/models/PerformanceManagementRequestModel.ts +14 -35
- package/src/models/PromotionRequestModel.ts +11 -11
package/.env
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export * from './models/SkillsEnhancementRequestModel';
|
|
|
208
208
|
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
209
209
|
export * from './models/PerformanceManagementRequestModel';
|
|
210
210
|
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
211
|
+
export * from './models/PerformanceManagementRequestGoalModel';
|
|
211
212
|
export * from './models/PerformanceCyclePeriodModel';
|
|
212
213
|
export * from './models/PerformanceGoalMasterModel';
|
|
213
214
|
export * from './models/HumanResourceAnnualPlanningRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -317,6 +317,7 @@ __exportStar(require("./models/PerformanceManagementRequestModel"), exports);
|
|
|
317
317
|
var PerformanceManagementRequestModel_1 = require("./models/PerformanceManagementRequestModel");
|
|
318
318
|
Object.defineProperty(exports, "PerformanceManagementRequestStatus", { enumerable: true, get: function () { return PerformanceManagementRequestModel_1.PerformanceManagementRequestStatus; } });
|
|
319
319
|
Object.defineProperty(exports, "PerformanceManagementCyclePeriod", { enumerable: true, get: function () { return PerformanceManagementRequestModel_1.PerformanceManagementCyclePeriod; } });
|
|
320
|
+
__exportStar(require("./models/PerformanceManagementRequestGoalModel"), exports);
|
|
320
321
|
__exportStar(require("./models/PerformanceCyclePeriodModel"), exports);
|
|
321
322
|
__exportStar(require("./models/PerformanceGoalMasterModel"), exports);
|
|
322
323
|
// Human Resource Annual Planning Service
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ITApprovalSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(level, approval_role_id, workflow_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.level = level;
|
|
19
|
+
this.approval_role_id = approval_role_id;
|
|
20
|
+
this.workflow_id = workflow_id;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.ITApprovalSettings = ITApprovalSettings;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ITApprovalSettings.prototype, "level", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ITApprovalSettings.prototype, "approval_role_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ITApprovalSettings.prototype, "workflow_id", void 0);
|
|
36
|
+
exports.ITApprovalSettings = ITApprovalSettings = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
|
|
38
|
+
(0, typeorm_1.Unique)(['workflow_id', 'level']),
|
|
39
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
40
|
+
], ITApprovalSettings);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesMuscat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesMuscat.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesMuscat);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesSalalah = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesSalalah.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesSalalah);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class PerformanceManagementRequestGoal extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
goal_title: string;
|
|
5
|
+
goal_id: string;
|
|
6
|
+
goal_description: string;
|
|
7
|
+
goal_weight: number;
|
|
8
|
+
constructor(request_id?: number, goal_title?: string, goal_id?: string, goal_description?: string, goal_weight?: number);
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.PerformanceManagementRequestGoal = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let PerformanceManagementRequestGoal = class PerformanceManagementRequestGoal extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, goal_title, goal_id, goal_description, goal_weight) {
|
|
17
|
+
super();
|
|
18
|
+
this.request_id = request_id || 0;
|
|
19
|
+
this.goal_title = goal_title || "";
|
|
20
|
+
this.goal_id = goal_id || "";
|
|
21
|
+
this.goal_description = goal_description || "";
|
|
22
|
+
this.goal_weight = goal_weight || 0;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.PerformanceManagementRequestGoal = PerformanceManagementRequestGoal;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Index)("idx_pm_request_goals_request_id"),
|
|
28
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], PerformanceManagementRequestGoal.prototype, "request_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], PerformanceManagementRequestGoal.prototype, "goal_title", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], PerformanceManagementRequestGoal.prototype, "goal_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PerformanceManagementRequestGoal.prototype, "goal_description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false, default: 0 }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], PerformanceManagementRequestGoal.prototype, "goal_weight", void 0);
|
|
47
|
+
exports.PerformanceManagementRequestGoal = PerformanceManagementRequestGoal = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: "performance_management_request_goals" }),
|
|
49
|
+
__metadata("design:paramtypes", [Number, String, String, String, Number])
|
|
50
|
+
], PerformanceManagementRequestGoal);
|
|
@@ -24,11 +24,7 @@ export declare class PerformanceManagementRequest extends BaseModel {
|
|
|
24
24
|
assigned_at: Date | null;
|
|
25
25
|
workflow_execution_id: string | null;
|
|
26
26
|
description: string | null;
|
|
27
|
-
goal_title: string;
|
|
28
|
-
goal_id: string;
|
|
29
|
-
goal_description: string;
|
|
30
27
|
cycle_period: PerformanceManagementCyclePeriod;
|
|
31
|
-
goal_weight: number;
|
|
32
28
|
cycle_year: number | null;
|
|
33
|
-
constructor(user_id: number, status?: PerformanceManagementRequestStatus, 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,
|
|
29
|
+
constructor(user_id: number, status?: PerformanceManagementRequestStatus, 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, cycle_period?: PerformanceManagementCyclePeriod, cycle_year?: number | null);
|
|
34
30
|
}
|
|
@@ -27,7 +27,7 @@ var PerformanceManagementCyclePeriod;
|
|
|
27
27
|
PerformanceManagementCyclePeriod["JUL_DEC"] = "Jul-Dec";
|
|
28
28
|
})(PerformanceManagementCyclePeriod || (exports.PerformanceManagementCyclePeriod = PerformanceManagementCyclePeriod = {}));
|
|
29
29
|
let PerformanceManagementRequest = class PerformanceManagementRequest extends BaseModel_1.BaseModel {
|
|
30
|
-
constructor(user_id, status = PerformanceManagementRequestStatus.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,
|
|
30
|
+
constructor(user_id, status = PerformanceManagementRequestStatus.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, cycle_period, cycle_year) {
|
|
31
31
|
super();
|
|
32
32
|
this.user_id = user_id;
|
|
33
33
|
this.status = status;
|
|
@@ -41,11 +41,7 @@ let PerformanceManagementRequest = class PerformanceManagementRequest extends Ba
|
|
|
41
41
|
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
42
42
|
this.assigned_at = assigned_at || null;
|
|
43
43
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
44
|
-
this.goal_title = goal_title || "";
|
|
45
|
-
this.goal_id = goal_id || "";
|
|
46
|
-
this.goal_description = goal_description || "";
|
|
47
44
|
this.cycle_period = cycle_period || PerformanceManagementCyclePeriod.JAN_JUN;
|
|
48
|
-
this.goal_weight = goal_weight || 0;
|
|
49
45
|
this.cycle_year = cycle_year || null;
|
|
50
46
|
}
|
|
51
47
|
};
|
|
@@ -98,31 +94,15 @@ __decorate([
|
|
|
98
94
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
99
95
|
__metadata("design:type", Object)
|
|
100
96
|
], PerformanceManagementRequest.prototype, "description", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], PerformanceManagementRequest.prototype, "goal_title", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
107
|
-
__metadata("design:type", String)
|
|
108
|
-
], PerformanceManagementRequest.prototype, "goal_id", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], PerformanceManagementRequest.prototype, "goal_description", void 0);
|
|
113
97
|
__decorate([
|
|
114
98
|
(0, typeorm_1.Column)({ type: "enum", enum: PerformanceManagementCyclePeriod, nullable: false }),
|
|
115
99
|
__metadata("design:type", String)
|
|
116
100
|
], PerformanceManagementRequest.prototype, "cycle_period", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false, default: 0 }),
|
|
119
|
-
__metadata("design:type", Number)
|
|
120
|
-
], PerformanceManagementRequest.prototype, "goal_weight", void 0);
|
|
121
101
|
__decorate([
|
|
122
102
|
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
123
103
|
__metadata("design:type", Object)
|
|
124
104
|
], PerformanceManagementRequest.prototype, "cycle_year", void 0);
|
|
125
105
|
exports.PerformanceManagementRequest = PerformanceManagementRequest = __decorate([
|
|
126
106
|
(0, typeorm_1.Entity)({ name: "performance_management_requests" }),
|
|
127
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String,
|
|
107
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object])
|
|
128
108
|
], PerformanceManagementRequest);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Workflows extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
request_for: string;
|
|
7
|
+
levels: number;
|
|
8
|
+
constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { Column, Entity, Unique } from "typeorm";
|
|
3
|
+
// import { BaseModel } from './BaseModel';
|
|
4
|
+
// @Entity({ name: 'workflows' })
|
|
5
|
+
// @Unique(['service_id', 'sub_service_id', 'request_for'])
|
|
6
|
+
// export class Workflows extends BaseModel {
|
|
7
|
+
// @Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
|
+
// name: string;
|
|
9
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
10
|
+
// service_id: number;
|
|
11
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
12
|
+
// sub_service_id: number;
|
|
13
|
+
// @Column({ type: 'varchar', length: 20, nullable: false })
|
|
14
|
+
// request_for: string; // 'Self' | 'Behalf of' | 'Internal'
|
|
15
|
+
// @Column({ type: 'int', nullable: false })
|
|
16
|
+
// levels: number;
|
|
17
|
+
// constructor(
|
|
18
|
+
// name: string,
|
|
19
|
+
// service_id: number,
|
|
20
|
+
// sub_service_id: number,
|
|
21
|
+
// request_for: string,
|
|
22
|
+
// levels: number,
|
|
23
|
+
// ) {
|
|
24
|
+
// super();
|
|
25
|
+
// this.name = name;
|
|
26
|
+
// this.service_id = service_id;
|
|
27
|
+
// this.sub_service_id = sub_service_id;
|
|
28
|
+
// this.request_for = request_for;
|
|
29
|
+
// this.levels = levels;
|
|
30
|
+
// }
|
|
31
|
+
// }
|
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
|
@@ -240,11 +240,12 @@ export * from './models/AnnualIncrementRequestEmployeeModel';
|
|
|
240
240
|
export * from './models/SkillsEnhancementRequestModel';
|
|
241
241
|
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
242
242
|
|
|
243
|
-
// Performance Management Service
|
|
244
|
-
export * from './models/PerformanceManagementRequestModel';
|
|
245
|
-
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
246
|
-
export * from './models/
|
|
247
|
-
export * from './models/
|
|
243
|
+
// Performance Management Service
|
|
244
|
+
export * from './models/PerformanceManagementRequestModel';
|
|
245
|
+
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
246
|
+
export * from './models/PerformanceManagementRequestGoalModel';
|
|
247
|
+
export * from './models/PerformanceCyclePeriodModel';
|
|
248
|
+
export * from './models/PerformanceGoalMasterModel';
|
|
248
249
|
|
|
249
250
|
// Human Resource Annual Planning Service
|
|
250
251
|
export * from './models/HumanResourceAnnualPlanningRequestModel';
|
|
@@ -279,4 +280,4 @@ export * from './models/HousingContractCancelRequestModel';
|
|
|
279
280
|
export * from './models/HousingContractCancelWorkflowModel';
|
|
280
281
|
export * from './models/HousingContractCancelApprovalModel';
|
|
281
282
|
export * from './models/HousingContractCancelChatModel';
|
|
282
|
-
export * from './models/HousingContractCancelAttachmentModel';
|
|
283
|
+
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;
|
|
@@ -45,12 +45,12 @@ export class CashAllowanceLeaveRequest 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
|
// Cash Allowance for Leave specific fields
|
|
55
55
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
56
56
|
employee_name: string;
|
|
@@ -112,11 +112,11 @@ export class CashAllowanceLeaveRequest extends BaseModel {
|
|
|
112
112
|
this.req_user_position_id = req_user_position_id || null;
|
|
113
113
|
this.description = description || null;
|
|
114
114
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
115
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
116
|
-
this.assigned_at = assigned_at || null;
|
|
117
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
118
|
-
this.reference_number = null;
|
|
119
|
-
this.employee_name = employee_name || "";
|
|
115
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
116
|
+
this.assigned_at = assigned_at || null;
|
|
117
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
118
|
+
this.reference_number = null;
|
|
119
|
+
this.employee_name = employee_name || "";
|
|
120
120
|
this.employee_id = employee_id || "";
|
|
121
121
|
this.job_title = job_title || "";
|
|
122
122
|
this.salary_grade = salary_grade || "";
|