@platform-modules/civil-aviation-authority 2.3.171 → 2.3.173
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 +10 -10
- package/dist/data-source.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/ScholarshipAttendeeModel.d.ts +6 -0
- package/dist/models/{ITServicesTypesMuscatModel.js → ScholarshipAttendeeModel.js} +15 -17
- package/dist/models/ScholarshipRequestModel.d.ts +10 -0
- package/dist/models/ScholarshipRequestModel.js +36 -0
- package/dist/models/user.d.ts +1 -1
- package/dist/models/user.js +1 -1
- package/package.json +1 -1
- package/src/data-source.ts +2 -0
- package/src/index.ts +1 -0
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ScholarshipAttendeeModel.ts +14 -0
- package/src/models/ScholarshipRequestModel.ts +28 -0
- package/src/models/UserSkillModel.ts +56 -56
- package/src/models/user.ts +2 -2
- 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/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
package/.env
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
6
|
|
|
7
7
|
|
|
8
|
-
DB_HOST=localhost
|
|
9
|
-
DB_PORT=5432
|
|
10
|
-
DB_USER=postgres
|
|
11
|
-
DB_PASS=stevejobs
|
|
12
|
-
DB_NAME=CAA
|
|
8
|
+
# DB_HOST=localhost
|
|
9
|
+
# DB_PORT=5432
|
|
10
|
+
# DB_USER=postgres
|
|
11
|
+
# DB_PASS=stevejobs
|
|
12
|
+
# DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -120,6 +120,7 @@ const StudyLeaveAttachmentModel_1 = require("./models/StudyLeaveAttachmentModel"
|
|
|
120
120
|
const ScholarshipRequestModel_1 = require("./models/ScholarshipRequestModel");
|
|
121
121
|
const ScholarshipApprovalModel_1 = require("./models/ScholarshipApprovalModel");
|
|
122
122
|
const ScholarshipAttachmentModel_1 = require("./models/ScholarshipAttachmentModel");
|
|
123
|
+
const ScholarshipAttendeeModel_1 = require("./models/ScholarshipAttendeeModel");
|
|
123
124
|
const ScholarshipChatModel_1 = require("./models/ScholarshipChatModel");
|
|
124
125
|
const ScholarshipWorkflowModel_1 = require("./models/ScholarshipWorkflowModel");
|
|
125
126
|
const CancellationRequestModel_1 = require("./models/CancellationRequestModel");
|
|
@@ -286,6 +287,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
286
287
|
ScholarshipRequestModel_1.ScholarshipRequests,
|
|
287
288
|
ScholarshipApprovalModel_1.ScholarshipApprovalDetails,
|
|
288
289
|
ScholarshipAttachmentModel_1.ScholarshipRequestAttachment,
|
|
290
|
+
ScholarshipAttendeeModel_1.ScholarshipAttendee,
|
|
289
291
|
ScholarshipChatModel_1.ScholarshipRequestChat,
|
|
290
292
|
ScholarshipWorkflowModel_1.ScholarshipWorkFlow,
|
|
291
293
|
CancellationRequestModel_1.CancellationRequests,
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export * from './models/StudyLeaveAttachmentModel';
|
|
|
92
92
|
export * from './models/ScholarshipRequestModel';
|
|
93
93
|
export * from './models/ScholarshipApprovalModel';
|
|
94
94
|
export * from './models/ScholarshipAttachmentModel';
|
|
95
|
+
export * from './models/ScholarshipAttendeeModel';
|
|
95
96
|
export * from './models/ScholarshipChatModel';
|
|
96
97
|
export * from './models/ScholarshipWorkflowModel';
|
|
97
98
|
export * from './models/CancellationRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -120,6 +120,7 @@ __exportStar(require("./models/StudyLeaveAttachmentModel"), exports);
|
|
|
120
120
|
__exportStar(require("./models/ScholarshipRequestModel"), exports);
|
|
121
121
|
__exportStar(require("./models/ScholarshipApprovalModel"), exports);
|
|
122
122
|
__exportStar(require("./models/ScholarshipAttachmentModel"), exports);
|
|
123
|
+
__exportStar(require("./models/ScholarshipAttendeeModel"), exports);
|
|
123
124
|
__exportStar(require("./models/ScholarshipChatModel"), exports);
|
|
124
125
|
__exportStar(require("./models/ScholarshipWorkflowModel"), exports);
|
|
125
126
|
__exportStar(require("./models/CancellationRequestModel"), exports);
|
|
@@ -9,26 +9,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ScholarshipAttendee = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
16
|
-
constructor(name, name_in_arabic) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.name_in_arabic = name_in_arabic;
|
|
20
|
-
}
|
|
15
|
+
let ScholarshipAttendee = class ScholarshipAttendee extends BaseModel_1.BaseModel {
|
|
21
16
|
};
|
|
22
|
-
exports.
|
|
17
|
+
exports.ScholarshipAttendee = ScholarshipAttendee;
|
|
23
18
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
-
__metadata("design:type",
|
|
26
|
-
],
|
|
19
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], ScholarshipAttendee.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ScholarshipAttendee.prototype, "attendee_id", void 0);
|
|
27
26
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
27
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 320, nullable: false }),
|
|
29
28
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
31
|
-
exports.
|
|
32
|
-
(0, typeorm_1.Entity)({ name:
|
|
33
|
-
|
|
34
|
-
], ITServicesTypesMuscat);
|
|
29
|
+
], ScholarshipAttendee.prototype, "attendee_email", void 0);
|
|
30
|
+
exports.ScholarshipAttendee = ScholarshipAttendee = __decorate([
|
|
31
|
+
(0, typeorm_1.Entity)({ name: "scholarship_attendees" })
|
|
32
|
+
], ScholarshipAttendee);
|
|
@@ -21,10 +21,20 @@ export declare class ScholarshipRequests extends BaseModel {
|
|
|
21
21
|
workflow_execution_id: string | null;
|
|
22
22
|
scholarship_name: string | null;
|
|
23
23
|
type: ScholarshipType;
|
|
24
|
+
/** Planned-flow only: whether amount exceeds threshold; Unplanned rows store null. */
|
|
25
|
+
is_amount_more_than_tenthousand: "Yes" | "No" | null;
|
|
24
26
|
reason: string | null;
|
|
25
27
|
description: string | null;
|
|
26
28
|
start_date: string | null;
|
|
27
29
|
end_date: string | null;
|
|
28
30
|
number_of_attendees: number | null;
|
|
29
31
|
place: string | null;
|
|
32
|
+
is_confirm: boolean;
|
|
33
|
+
training_entity: string | null;
|
|
34
|
+
media_coverage: "Yes" | "No" | null;
|
|
35
|
+
training_start_date: string | null;
|
|
36
|
+
training_end_date: string | null;
|
|
37
|
+
travel_date: string | null;
|
|
38
|
+
return_date: string | null;
|
|
39
|
+
comment: string | null;
|
|
30
40
|
}
|
|
@@ -65,6 +65,10 @@ __decorate([
|
|
|
65
65
|
(0, typeorm_1.Column)({ type: "enum", enum: ScholarshipType, nullable: false }),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], ScholarshipRequests.prototype, "type", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], ScholarshipRequests.prototype, "is_amount_more_than_tenthousand", void 0);
|
|
68
72
|
__decorate([
|
|
69
73
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
70
74
|
__metadata("design:type", Object)
|
|
@@ -89,6 +93,38 @@ __decorate([
|
|
|
89
93
|
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
90
94
|
__metadata("design:type", Object)
|
|
91
95
|
], ScholarshipRequests.prototype, "place", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
98
|
+
__metadata("design:type", Boolean)
|
|
99
|
+
], ScholarshipRequests.prototype, "is_confirm", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], ScholarshipRequests.prototype, "training_entity", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], ScholarshipRequests.prototype, "media_coverage", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], ScholarshipRequests.prototype, "training_start_date", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], ScholarshipRequests.prototype, "training_end_date", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], ScholarshipRequests.prototype, "travel_date", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], ScholarshipRequests.prototype, "return_date", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], ScholarshipRequests.prototype, "comment", void 0);
|
|
92
128
|
exports.ScholarshipRequests = ScholarshipRequests = __decorate([
|
|
93
129
|
(0, typeorm_1.Entity)({ name: "scholarship_requests" })
|
|
94
130
|
], ScholarshipRequests);
|
package/dist/models/user.d.ts
CHANGED
package/dist/models/user.js
CHANGED
|
@@ -147,7 +147,7 @@ __decorate([
|
|
|
147
147
|
__metadata("design:type", Number)
|
|
148
148
|
], User.prototype, "department", void 0);
|
|
149
149
|
__decorate([
|
|
150
|
-
(0, typeorm_1.Column)({ nullable:
|
|
150
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["CAA", "Embassy"], nullable: false, default: "CAA" }),
|
|
151
151
|
__metadata("design:type", String)
|
|
152
152
|
], User.prototype, "category", void 0);
|
|
153
153
|
__decorate([
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -118,6 +118,7 @@ import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel'
|
|
|
118
118
|
import { ScholarshipRequests } from './models/ScholarshipRequestModel';
|
|
119
119
|
import { ScholarshipApprovalDetails } from './models/ScholarshipApprovalModel';
|
|
120
120
|
import { ScholarshipRequestAttachment } from './models/ScholarshipAttachmentModel';
|
|
121
|
+
import { ScholarshipAttendee } from './models/ScholarshipAttendeeModel';
|
|
121
122
|
import { ScholarshipRequestChat } from './models/ScholarshipChatModel';
|
|
122
123
|
import { ScholarshipWorkFlow } from './models/ScholarshipWorkflowModel';
|
|
123
124
|
import { CancellationRequests } from './models/CancellationRequestModel';
|
|
@@ -285,6 +286,7 @@ export const AppDataSource = new DataSource({
|
|
|
285
286
|
ScholarshipRequests,
|
|
286
287
|
ScholarshipApprovalDetails,
|
|
287
288
|
ScholarshipRequestAttachment,
|
|
289
|
+
ScholarshipAttendee,
|
|
288
290
|
ScholarshipRequestChat,
|
|
289
291
|
ScholarshipWorkFlow,
|
|
290
292
|
CancellationRequests,
|
package/src/index.ts
CHANGED
|
@@ -98,6 +98,7 @@ export * from './models/StudyLeaveAttachmentModel';
|
|
|
98
98
|
export * from './models/ScholarshipRequestModel';
|
|
99
99
|
export * from './models/ScholarshipApprovalModel';
|
|
100
100
|
export * from './models/ScholarshipAttachmentModel';
|
|
101
|
+
export * from './models/ScholarshipAttendeeModel';
|
|
101
102
|
export * from './models/ScholarshipChatModel';
|
|
102
103
|
export * from './models/ScholarshipWorkflowModel';
|
|
103
104
|
export * from './models/CancellationRequestModel';
|
|
@@ -35,14 +35,14 @@ export class AccommodationApproval extends BaseModel {
|
|
|
35
35
|
@Column({ type: 'int', nullable: true })
|
|
36
36
|
department_id: number;
|
|
37
37
|
|
|
38
|
-
@Column({ type: 'int', nullable: true })
|
|
39
|
-
section_id: number;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
-
is_allowed: boolean;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'int', nullable: false })
|
|
45
|
-
level: number;
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
section_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
+
is_allowed: boolean;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'int', nullable: false })
|
|
45
|
+
level: number;
|
|
46
46
|
|
|
47
47
|
@Column({
|
|
48
48
|
type: 'enum',
|
|
@@ -134,14 +134,14 @@ export class AccommodationRequest extends BaseModel {
|
|
|
134
134
|
@Column({ type: 'int', nullable: true })
|
|
135
135
|
assigned_to_user_id: number | null;
|
|
136
136
|
|
|
137
|
-
@Column({ type: 'text', nullable: true })
|
|
138
|
-
approver_comment: string | null;
|
|
139
|
-
|
|
140
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
-
accommodation_allocated: string | null;
|
|
142
|
-
|
|
143
|
-
@Column({ type: 'int', nullable: true })
|
|
144
|
-
approved_by: number | null;
|
|
137
|
+
@Column({ type: 'text', nullable: true })
|
|
138
|
+
approver_comment: string | null;
|
|
139
|
+
|
|
140
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
+
accommodation_allocated: string | null;
|
|
142
|
+
|
|
143
|
+
@Column({ type: 'int', nullable: true })
|
|
144
|
+
approved_by: number | null;
|
|
145
145
|
|
|
146
146
|
@Column({ type: 'date', nullable: true })
|
|
147
147
|
approved_at: Date | null;
|
|
@@ -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;
|
|
@@ -75,29 +75,29 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
|
|
|
75
75
|
@Column({ type: "text", nullable: false })
|
|
76
76
|
decision_subject: string;
|
|
77
77
|
|
|
78
|
-
@Column({ type: "text", nullable: false })
|
|
79
|
-
grievance_details: string;
|
|
80
|
-
|
|
81
|
-
@Column({ type: "jsonb", nullable: true })
|
|
82
|
-
individuals_involved: string[] | null;
|
|
83
|
-
|
|
84
|
-
@Column({ type: "jsonb", nullable: true })
|
|
85
|
-
times: string[] | null;
|
|
86
|
-
|
|
87
|
-
@Column({ type: "date", nullable: true })
|
|
88
|
-
dates: Date | null;
|
|
89
|
-
|
|
90
|
-
@Column({ type: "text", nullable: true })
|
|
91
|
-
location: string | null;
|
|
92
|
-
|
|
93
|
-
@Column({ type: "jsonb", nullable: true })
|
|
94
|
-
requests: string[] | null;
|
|
95
|
-
|
|
96
|
-
@Column({ type: "jsonb", nullable: true })
|
|
97
|
-
events: string[] | null;
|
|
98
|
-
|
|
99
|
-
@Column({ type: "varchar", length: 500, nullable: false })
|
|
100
|
-
grievant_name: string;
|
|
78
|
+
@Column({ type: "text", nullable: false })
|
|
79
|
+
grievance_details: string;
|
|
80
|
+
|
|
81
|
+
@Column({ type: "jsonb", nullable: true })
|
|
82
|
+
individuals_involved: string[] | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: "jsonb", nullable: true })
|
|
85
|
+
times: string[] | null;
|
|
86
|
+
|
|
87
|
+
@Column({ type: "date", nullable: true })
|
|
88
|
+
dates: Date | null;
|
|
89
|
+
|
|
90
|
+
@Column({ type: "text", nullable: true })
|
|
91
|
+
location: string | null;
|
|
92
|
+
|
|
93
|
+
@Column({ type: "jsonb", nullable: true })
|
|
94
|
+
requests: string[] | null;
|
|
95
|
+
|
|
96
|
+
@Column({ type: "jsonb", nullable: true })
|
|
97
|
+
events: string[] | null;
|
|
98
|
+
|
|
99
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
100
|
+
grievant_name: string;
|
|
101
101
|
|
|
102
102
|
@Column({ type: "varchar", length: 100, nullable: false })
|
|
103
103
|
grievant_employee_number: string;
|
|
@@ -8,36 +8,36 @@ export class CAAServices extends BaseModel {
|
|
|
8
8
|
@Column({ type: 'varchar', length: 64, nullable: false, unique: true })
|
|
9
9
|
code: string;
|
|
10
10
|
|
|
11
|
-
@Column({ nullable: false })
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "text", nullable: true })
|
|
15
|
-
arabic_name: string | null;
|
|
16
|
-
|
|
17
|
-
@Column({ nullable: false })
|
|
18
|
-
description: string;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "text", nullable: true })
|
|
21
|
-
arabic_description: string | null;
|
|
22
|
-
|
|
23
|
-
@Column({ nullable: true })
|
|
24
|
-
logo_url: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
constructor(
|
|
28
|
-
name: string,
|
|
29
|
-
description: string,
|
|
30
|
-
arabic_name?: string | null,
|
|
31
|
-
arabic_description?: string | null,
|
|
32
|
-
code?: string,
|
|
33
|
-
logo_url?: string
|
|
34
|
-
) {
|
|
35
|
-
super();
|
|
36
|
-
this.name = name;
|
|
37
|
-
this.description = description;
|
|
38
|
-
this.arabic_name = arabic_name || null;
|
|
39
|
-
this.arabic_description = arabic_description || null;
|
|
40
|
-
this.code = code || '';
|
|
41
|
-
this.logo_url = logo_url || '';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
11
|
+
@Column({ nullable: false })
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "text", nullable: true })
|
|
15
|
+
arabic_name: string | null;
|
|
16
|
+
|
|
17
|
+
@Column({ nullable: false })
|
|
18
|
+
description: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "text", nullable: true })
|
|
21
|
+
arabic_description: string | null;
|
|
22
|
+
|
|
23
|
+
@Column({ nullable: true })
|
|
24
|
+
logo_url: string;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
name: string,
|
|
29
|
+
description: string,
|
|
30
|
+
arabic_name?: string | null,
|
|
31
|
+
arabic_description?: string | null,
|
|
32
|
+
code?: string,
|
|
33
|
+
logo_url?: string
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
this.name = name;
|
|
37
|
+
this.description = description;
|
|
38
|
+
this.arabic_name = arabic_name || null;
|
|
39
|
+
this.arabic_description = arabic_description || null;
|
|
40
|
+
this.code = code || '';
|
|
41
|
+
this.logo_url = logo_url || '';
|
|
42
|
+
}
|
|
43
|
+
}
|