@platform-modules/civil-aviation-authority 2.3.214 → 2.3.215

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.
Files changed (33) hide show
  1. package/.env +10 -10
  2. package/dist/models/HumanResourceAnnualPlanningRequestModel.d.ts +14 -1
  3. package/dist/models/HumanResourceAnnualPlanningRequestModel.js +67 -2
  4. package/dist/models/ITApprovalSettings.d.ts +7 -0
  5. package/dist/models/ITApprovalSettings.js +40 -0
  6. package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
  7. package/dist/models/ITServicesTypesMuscatModel.js +34 -0
  8. package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
  9. package/dist/models/ITServicesTypesSalalahModel.js +34 -0
  10. package/dist/models/Workflows.d.ts +9 -0
  11. package/dist/models/Workflows.js +31 -0
  12. package/package.json +1 -1
  13. package/src/models/AccommodationApprovalModel.ts +8 -8
  14. package/src/models/AccommodationRequestModel.ts +8 -8
  15. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  16. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  17. package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
  18. package/src/models/CAAServices.ts +33 -33
  19. package/src/models/CAASubServices.ts +33 -33
  20. package/src/models/CAIRatingMasterModel.ts +39 -39
  21. package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
  22. package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
  23. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  24. package/src/models/HrServiceRequestModel.ts +193 -193
  25. package/src/models/HumanResourceAnnualPlanningRequestModel.ts +84 -19
  26. package/src/models/PerformanceCyclePeriodModel.ts +26 -26
  27. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  28. package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
  29. package/src/models/PerformanceManagementRequestModel.ts +14 -14
  30. package/src/models/PromotionRequestModel.ts +11 -11
  31. package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
  32. package/src/models/SkillsEnhancementRequestModel.ts +17 -17
  33. package/src/models/UserSkillModel.ts +56 -56
package/.env CHANGED
@@ -1,12 +1,12 @@
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
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
@@ -27,9 +27,22 @@ export declare class HumanResourceAnnualPlanningRequest extends BaseModel {
27
27
  assigned_at: Date | null;
28
28
  workflow_execution_id: string | null;
29
29
  description: string | null;
30
+ employee_name: string | null;
31
+ employee_id: string | null;
32
+ current_position: string | null;
33
+ skills: string | null;
34
+ work_experience: number | null;
35
+ productivity_rating: string | null;
36
+ productivity_other: string | null;
37
+ behavior_rating: string | null;
38
+ behavior_other: string | null;
39
+ leadership_rating: string | null;
40
+ leadership_other: string | null;
41
+ emotional_intelligence_rating: string | null;
42
+ emotional_intelligence_other: string | null;
30
43
  comment: string | null;
31
44
  extension_number: string | null;
32
45
  quarter: Quarter | null;
33
46
  year: number | null;
34
- constructor(user_id: number, status?: HumanResourceAnnualPlanningRequestStatus, 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, comment?: string | null, extension_number?: string | null, quarter?: Quarter | null, year?: number | null);
47
+ constructor(user_id: number, status?: HumanResourceAnnualPlanningRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string | null, employee_id?: string | null, current_position?: string | null, skills?: string | null, work_experience?: number | null, productivity_rating?: string | null, productivity_other?: string | null, behavior_rating?: string | null, behavior_other?: string | null, leadership_rating?: string | null, leadership_other?: string | null, emotional_intelligence_rating?: string | null, emotional_intelligence_other?: string | null, comment?: string | null, extension_number?: string | null, quarter?: Quarter | null, year?: number | null);
35
48
  }
@@ -30,7 +30,7 @@ var Quarter;
30
30
  Quarter["Q4"] = "Q4"; // Oct-Dec
31
31
  })(Quarter || (exports.Quarter = Quarter = {}));
32
32
  let HumanResourceAnnualPlanningRequest = class HumanResourceAnnualPlanningRequest extends BaseModel_1.BaseModel {
33
- constructor(user_id, status = HumanResourceAnnualPlanningRequestStatus.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, comment, extension_number, quarter, year) {
33
+ constructor(user_id, status = HumanResourceAnnualPlanningRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, current_position, skills, work_experience, productivity_rating, productivity_other, behavior_rating, behavior_other, leadership_rating, leadership_other, emotional_intelligence_rating, emotional_intelligence_other, comment, extension_number, quarter, year) {
34
34
  super();
35
35
  this.user_id = user_id;
36
36
  this.status = status;
@@ -44,6 +44,19 @@ let HumanResourceAnnualPlanningRequest = class HumanResourceAnnualPlanningReques
44
44
  this.assigned_to_user_id = assigned_to_user_id || null;
45
45
  this.assigned_at = assigned_at || null;
46
46
  this.workflow_execution_id = workflow_execution_id || null;
47
+ this.employee_name = employee_name || null;
48
+ this.employee_id = employee_id || null;
49
+ this.current_position = current_position || null;
50
+ this.skills = skills || null;
51
+ this.work_experience = work_experience || null;
52
+ this.productivity_rating = productivity_rating || null;
53
+ this.productivity_other = productivity_other || null;
54
+ this.behavior_rating = behavior_rating || null;
55
+ this.behavior_other = behavior_other || null;
56
+ this.leadership_rating = leadership_rating || null;
57
+ this.leadership_other = leadership_other || null;
58
+ this.emotional_intelligence_rating = emotional_intelligence_rating || null;
59
+ this.emotional_intelligence_other = emotional_intelligence_other || null;
47
60
  this.comment = comment || null;
48
61
  this.extension_number = extension_number || null;
49
62
  this.quarter = quarter || null;
@@ -99,6 +112,58 @@ __decorate([
99
112
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
100
113
  __metadata("design:type", Object)
101
114
  ], HumanResourceAnnualPlanningRequest.prototype, "description", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
117
+ __metadata("design:type", Object)
118
+ ], HumanResourceAnnualPlanningRequest.prototype, "employee_name", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
121
+ __metadata("design:type", Object)
122
+ ], HumanResourceAnnualPlanningRequest.prototype, "employee_id", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
125
+ __metadata("design:type", Object)
126
+ ], HumanResourceAnnualPlanningRequest.prototype, "current_position", void 0);
127
+ __decorate([
128
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
129
+ __metadata("design:type", Object)
130
+ ], HumanResourceAnnualPlanningRequest.prototype, "skills", void 0);
131
+ __decorate([
132
+ (0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: true }),
133
+ __metadata("design:type", Object)
134
+ ], HumanResourceAnnualPlanningRequest.prototype, "work_experience", void 0);
135
+ __decorate([
136
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
137
+ __metadata("design:type", Object)
138
+ ], HumanResourceAnnualPlanningRequest.prototype, "productivity_rating", void 0);
139
+ __decorate([
140
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
141
+ __metadata("design:type", Object)
142
+ ], HumanResourceAnnualPlanningRequest.prototype, "productivity_other", void 0);
143
+ __decorate([
144
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
145
+ __metadata("design:type", Object)
146
+ ], HumanResourceAnnualPlanningRequest.prototype, "behavior_rating", void 0);
147
+ __decorate([
148
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
149
+ __metadata("design:type", Object)
150
+ ], HumanResourceAnnualPlanningRequest.prototype, "behavior_other", void 0);
151
+ __decorate([
152
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
153
+ __metadata("design:type", Object)
154
+ ], HumanResourceAnnualPlanningRequest.prototype, "leadership_rating", void 0);
155
+ __decorate([
156
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
157
+ __metadata("design:type", Object)
158
+ ], HumanResourceAnnualPlanningRequest.prototype, "leadership_other", void 0);
159
+ __decorate([
160
+ (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
161
+ __metadata("design:type", Object)
162
+ ], HumanResourceAnnualPlanningRequest.prototype, "emotional_intelligence_rating", void 0);
163
+ __decorate([
164
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
165
+ __metadata("design:type", Object)
166
+ ], HumanResourceAnnualPlanningRequest.prototype, "emotional_intelligence_other", void 0);
102
167
  __decorate([
103
168
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
104
169
  __metadata("design:type", Object)
@@ -117,5 +182,5 @@ __decorate([
117
182
  ], HumanResourceAnnualPlanningRequest.prototype, "year", void 0);
118
183
  exports.HumanResourceAnnualPlanningRequest = HumanResourceAnnualPlanningRequest = __decorate([
119
184
  (0, typeorm_1.Entity)({ name: "human_resource_annual_planning_requests" }),
120
- __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
185
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
121
186
  ], HumanResourceAnnualPlanningRequest);
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class ITApprovalSettings extends BaseModel {
3
+ level: number;
4
+ approval_role_id: number;
5
+ workflow_id: number;
6
+ constructor(level: number, approval_role_id: number, workflow_id: number);
7
+ }
@@ -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,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class ITServicesTypesMuscat extends BaseModel {
3
+ name: string;
4
+ name_in_arabic: string;
5
+ constructor(name: string, name_in_arabic: string);
6
+ }
@@ -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,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class ITServicesTypesSalalah extends BaseModel {
3
+ name: string;
4
+ name_in_arabic: string;
5
+ constructor(name: string, name_in_arabic: string);
6
+ }
@@ -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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.214",
3
+ "version": "2.3.215",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -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;