@platform-modules/civil-aviation-authority 2.3.131 → 2.3.133
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/PerformanceCyclePeriodModel.d.ts +2 -1
- package/dist/models/PerformanceCyclePeriodModel.js +7 -2
- package/dist/models/PerformanceManagementRequestGoalModel.d.ts +3 -1
- package/dist/models/PerformanceManagementRequestGoalModel.js +12 -2
- package/dist/models/ResidentialUnitRentalRequestModel.d.ts +2 -7
- package/dist/models/UserSkillModel.d.ts +14 -0
- package/dist/models/UserSkillModel.js +70 -0
- package/package.json +1 -1
- package/src/index.ts +6 -5
- package/src/models/PerformanceCyclePeriodModel.ts +5 -2
- package/src/models/PerformanceManagementRequestGoalModel.ts +11 -1
- package/src/models/ResidentialUnitRentalRequestModel.ts +4 -14
- package/src/models/UserSkillModel.ts +56 -0
package/dist/index.d.ts
CHANGED
|
@@ -220,6 +220,7 @@ export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestMod
|
|
|
220
220
|
export * from './models/AnnualIncrementRequestEmployeeModel';
|
|
221
221
|
export * from './models/SkillsEnhancementRequestModel';
|
|
222
222
|
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
223
|
+
export * from './models/UserSkillModel';
|
|
223
224
|
export * from './models/PerformanceManagementRequestModel';
|
|
224
225
|
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
225
226
|
export * from './models/PerformanceManagementRequestGoalModel';
|
package/dist/index.js
CHANGED
|
@@ -347,6 +347,7 @@ __exportStar(require("./models/AnnualIncrementRequestEmployeeModel"), exports);
|
|
|
347
347
|
__exportStar(require("./models/SkillsEnhancementRequestModel"), exports);
|
|
348
348
|
var SkillsEnhancementRequestModel_1 = require("./models/SkillsEnhancementRequestModel");
|
|
349
349
|
Object.defineProperty(exports, "SkillsEnhancementRequestStatus", { enumerable: true, get: function () { return SkillsEnhancementRequestModel_1.SkillsEnhancementRequestStatus; } });
|
|
350
|
+
__exportStar(require("./models/UserSkillModel"), exports);
|
|
350
351
|
// Performance Management Service
|
|
351
352
|
__exportStar(require("./models/PerformanceManagementRequestModel"), exports);
|
|
352
353
|
var PerformanceManagementRequestModel_1 = require("./models/PerformanceManagementRequestModel");
|
|
@@ -2,6 +2,7 @@ import { BaseModel } from "./BaseModel";
|
|
|
2
2
|
export declare class PerformanceCyclePeriod extends BaseModel {
|
|
3
3
|
cycle_period: string;
|
|
4
4
|
cycle_year: number;
|
|
5
|
+
title: string;
|
|
5
6
|
is_active: boolean;
|
|
6
|
-
constructor(cycle_period?: string, cycle_year?: number);
|
|
7
|
+
constructor(cycle_period?: string, cycle_year?: number, title?: string);
|
|
7
8
|
}
|
|
@@ -13,10 +13,11 @@ exports.PerformanceCyclePeriod = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let PerformanceCyclePeriod = class PerformanceCyclePeriod extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(cycle_period, cycle_year) {
|
|
16
|
+
constructor(cycle_period, cycle_year, title) {
|
|
17
17
|
super();
|
|
18
18
|
this.cycle_period = cycle_period || "";
|
|
19
19
|
this.cycle_year = cycle_year || new Date().getFullYear();
|
|
20
|
+
this.title = title || "";
|
|
20
21
|
this.is_active = false;
|
|
21
22
|
}
|
|
22
23
|
};
|
|
@@ -29,6 +30,10 @@ __decorate([
|
|
|
29
30
|
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
30
31
|
__metadata("design:type", Number)
|
|
31
32
|
], PerformanceCyclePeriod.prototype, "cycle_year", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false, default: "" }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PerformanceCyclePeriod.prototype, "title", void 0);
|
|
32
37
|
__decorate([
|
|
33
38
|
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
34
39
|
__metadata("design:type", Boolean)
|
|
@@ -36,5 +41,5 @@ __decorate([
|
|
|
36
41
|
exports.PerformanceCyclePeriod = PerformanceCyclePeriod = __decorate([
|
|
37
42
|
(0, typeorm_1.Entity)({ name: "performance_cycle_periods" }),
|
|
38
43
|
(0, typeorm_1.Index)("uq_performance_cycle_period", ["cycle_period", "cycle_year"], { unique: true }),
|
|
39
|
-
__metadata("design:paramtypes", [String, Number])
|
|
44
|
+
__metadata("design:paramtypes", [String, Number, String])
|
|
40
45
|
], PerformanceCyclePeriod);
|
|
@@ -5,5 +5,7 @@ export declare class PerformanceManagementRequestGoal extends BaseModel {
|
|
|
5
5
|
goal_id: string;
|
|
6
6
|
goal_description: string;
|
|
7
7
|
goal_weight: number;
|
|
8
|
-
|
|
8
|
+
rating: number | null;
|
|
9
|
+
remark: string | null;
|
|
10
|
+
constructor(request_id?: number, goal_title?: string, goal_id?: string, goal_description?: string, goal_weight?: number, rating?: number | null, remark?: string | null);
|
|
9
11
|
}
|
|
@@ -13,13 +13,15 @@ exports.PerformanceManagementRequestGoal = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let PerformanceManagementRequestGoal = class PerformanceManagementRequestGoal extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(request_id, goal_title, goal_id, goal_description, goal_weight) {
|
|
16
|
+
constructor(request_id, goal_title, goal_id, goal_description, goal_weight, rating, remark) {
|
|
17
17
|
super();
|
|
18
18
|
this.request_id = request_id || 0;
|
|
19
19
|
this.goal_title = goal_title || "";
|
|
20
20
|
this.goal_id = goal_id || "";
|
|
21
21
|
this.goal_description = goal_description || "";
|
|
22
22
|
this.goal_weight = goal_weight || 0;
|
|
23
|
+
this.rating = rating ?? null;
|
|
24
|
+
this.remark = remark ?? null;
|
|
23
25
|
}
|
|
24
26
|
};
|
|
25
27
|
exports.PerformanceManagementRequestGoal = PerformanceManagementRequestGoal;
|
|
@@ -44,7 +46,15 @@ __decorate([
|
|
|
44
46
|
(0, typeorm_1.Column)({ type: "integer", nullable: false, default: 0 }),
|
|
45
47
|
__metadata("design:type", Number)
|
|
46
48
|
], PerformanceManagementRequestGoal.prototype, "goal_weight", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true, default: null }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], PerformanceManagementRequestGoal.prototype, "rating", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true, default: null }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], PerformanceManagementRequestGoal.prototype, "remark", void 0);
|
|
47
57
|
exports.PerformanceManagementRequestGoal = PerformanceManagementRequestGoal = __decorate([
|
|
48
58
|
(0, typeorm_1.Entity)({ name: "performance_management_request_goals" }),
|
|
49
|
-
__metadata("design:paramtypes", [Number, String, String, String, Number])
|
|
59
|
+
__metadata("design:paramtypes", [Number, String, String, String, Number, Object, Object])
|
|
50
60
|
], PerformanceManagementRequestGoal);
|
|
@@ -10,13 +10,8 @@ export declare class ResidentialUnitRentalRequest extends BaseModel {
|
|
|
10
10
|
service_id: number;
|
|
11
11
|
sub_service_id: number;
|
|
12
12
|
requested_unit_type: string;
|
|
13
|
-
/**
|
|
14
|
-
apartment_type:
|
|
15
|
-
studio?: boolean;
|
|
16
|
-
one_bhk?: boolean;
|
|
17
|
-
two_bhk?: boolean;
|
|
18
|
-
three_bhk?: boolean;
|
|
19
|
-
};
|
|
13
|
+
/** UI sends apartment type as a plain string value */
|
|
14
|
+
apartment_type: string | null;
|
|
20
15
|
/** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
|
|
21
16
|
villa_type: {
|
|
22
17
|
one_room?: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
import { SkillCategory } from "./SkillsEnhancementRequestModel";
|
|
3
|
+
export declare class UserSkill extends BaseModel {
|
|
4
|
+
user_id: number;
|
|
5
|
+
skill_name: string;
|
|
6
|
+
skill_category: SkillCategory | null;
|
|
7
|
+
issuing_authority: string | null;
|
|
8
|
+
completion_date: Date | null;
|
|
9
|
+
skill_summary: string | null;
|
|
10
|
+
source_request_id: number | null;
|
|
11
|
+
source_request_type: string | null;
|
|
12
|
+
is_active: boolean;
|
|
13
|
+
constructor(user_id: number, skill_name: string, skill_category?: SkillCategory | null, issuing_authority?: string | null, completion_date?: Date | null, skill_summary?: string | null, source_request_id?: number | null, source_request_type?: string | null, is_active?: boolean);
|
|
14
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.UserSkill = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const SkillsEnhancementRequestModel_1 = require("./SkillsEnhancementRequestModel");
|
|
16
|
+
let UserSkill = class UserSkill extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(user_id, skill_name, skill_category, issuing_authority, completion_date, skill_summary, source_request_id, source_request_type, is_active) {
|
|
18
|
+
super();
|
|
19
|
+
this.user_id = user_id;
|
|
20
|
+
this.skill_name = skill_name;
|
|
21
|
+
this.skill_category = skill_category || null;
|
|
22
|
+
this.issuing_authority = issuing_authority || null;
|
|
23
|
+
this.completion_date = completion_date || null;
|
|
24
|
+
this.skill_summary = skill_summary || null;
|
|
25
|
+
this.source_request_id = source_request_id || null;
|
|
26
|
+
this.source_request_type = source_request_type || null;
|
|
27
|
+
this.is_active = is_active !== undefined ? is_active : true;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.UserSkill = UserSkill;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], UserSkill.prototype, "user_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], UserSkill.prototype, "skill_name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "enum", enum: SkillsEnhancementRequestModel_1.SkillCategory, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], UserSkill.prototype, "skill_category", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], UserSkill.prototype, "issuing_authority", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], UserSkill.prototype, "completion_date", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], UserSkill.prototype, "skill_summary", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], UserSkill.prototype, "source_request_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], UserSkill.prototype, "source_request_type", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: true }),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], UserSkill.prototype, "is_active", void 0);
|
|
67
|
+
exports.UserSkill = UserSkill = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)({ name: "user_skills" }),
|
|
69
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Boolean])
|
|
70
|
+
], UserSkill);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -255,11 +255,12 @@ export * from './models/AnnualIncrementRequestModel';
|
|
|
255
255
|
export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestModel';
|
|
256
256
|
export * from './models/AnnualIncrementRequestEmployeeModel';
|
|
257
257
|
|
|
258
|
-
export * from './models/SkillsEnhancementRequestModel';
|
|
259
|
-
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
258
|
+
export * from './models/SkillsEnhancementRequestModel';
|
|
259
|
+
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
260
|
+
export * from './models/UserSkillModel';
|
|
261
|
+
|
|
262
|
+
// Performance Management Service
|
|
263
|
+
export * from './models/PerformanceManagementRequestModel';
|
|
263
264
|
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
264
265
|
export * from './models/PerformanceManagementRequestGoalModel';
|
|
265
266
|
export * from './models/PerformanceCyclePeriodModel';
|
|
@@ -10,14 +10,17 @@ export class PerformanceCyclePeriod extends BaseModel {
|
|
|
10
10
|
@Column({ type: "integer", nullable: false })
|
|
11
11
|
cycle_year: number;
|
|
12
12
|
|
|
13
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "" })
|
|
14
|
+
title: string;
|
|
15
|
+
|
|
13
16
|
@Column({ type: "boolean", default: false })
|
|
14
17
|
is_active: boolean;
|
|
15
18
|
|
|
16
|
-
constructor(cycle_period?: string, cycle_year?: number) {
|
|
19
|
+
constructor(cycle_period?: string, cycle_year?: number, title?: string) {
|
|
17
20
|
super();
|
|
18
21
|
this.cycle_period = cycle_period || "";
|
|
19
22
|
this.cycle_year = cycle_year || new Date().getFullYear();
|
|
23
|
+
this.title = title || "";
|
|
20
24
|
this.is_active = false;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
|
-
|
|
@@ -19,12 +19,20 @@ export class PerformanceManagementRequestGoal extends BaseModel {
|
|
|
19
19
|
@Column({ type: "integer", nullable: false, default: 0 })
|
|
20
20
|
goal_weight: number;
|
|
21
21
|
|
|
22
|
+
@Column({ type: "integer", nullable: true, default: null })
|
|
23
|
+
rating: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "text", nullable: true, default: null })
|
|
26
|
+
remark: string | null;
|
|
27
|
+
|
|
22
28
|
constructor(
|
|
23
29
|
request_id?: number,
|
|
24
30
|
goal_title?: string,
|
|
25
31
|
goal_id?: string,
|
|
26
32
|
goal_description?: string,
|
|
27
|
-
goal_weight?: number
|
|
33
|
+
goal_weight?: number,
|
|
34
|
+
rating?: number | null,
|
|
35
|
+
remark?: string | null
|
|
28
36
|
) {
|
|
29
37
|
super();
|
|
30
38
|
this.request_id = request_id || 0;
|
|
@@ -32,5 +40,7 @@ export class PerformanceManagementRequestGoal extends BaseModel {
|
|
|
32
40
|
this.goal_id = goal_id || "";
|
|
33
41
|
this.goal_description = goal_description || "";
|
|
34
42
|
this.goal_weight = goal_weight || 0;
|
|
43
|
+
this.rating = rating ?? null;
|
|
44
|
+
this.remark = remark ?? null;
|
|
35
45
|
}
|
|
36
46
|
}
|
|
@@ -55,21 +55,11 @@ export class ResidentialUnitRentalRequest extends BaseModel {
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/** UI sends apartment type as a plain string value */
|
|
59
|
+
|
|
60
60
|
@Column({ type: 'json', nullable: true })
|
|
61
|
-
|
|
62
|
-
apartment_type:
|
|
63
|
-
|
|
64
|
-
studio?: boolean;
|
|
65
|
-
|
|
66
|
-
one_bhk?: boolean;
|
|
67
|
-
|
|
68
|
-
two_bhk?: boolean;
|
|
69
|
-
|
|
70
|
-
three_bhk?: boolean;
|
|
71
|
-
|
|
72
|
-
};
|
|
61
|
+
|
|
62
|
+
apartment_type: string | null;
|
|
73
63
|
|
|
74
64
|
|
|
75
65
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { SkillCategory } from "./SkillsEnhancementRequestModel";
|
|
4
|
+
|
|
5
|
+
@Entity({ name: "user_skills" })
|
|
6
|
+
export class UserSkill extends BaseModel {
|
|
7
|
+
@Column({ type: "integer", nullable: false })
|
|
8
|
+
user_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
11
|
+
skill_name: string;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "enum", enum: SkillCategory, nullable: true })
|
|
14
|
+
skill_category: SkillCategory | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
17
|
+
issuing_authority: string | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "date", nullable: true })
|
|
20
|
+
completion_date: Date | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "text", nullable: true })
|
|
23
|
+
skill_summary: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "integer", nullable: true })
|
|
26
|
+
source_request_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
29
|
+
source_request_type: string | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
32
|
+
is_active: boolean;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
user_id: number,
|
|
36
|
+
skill_name: string,
|
|
37
|
+
skill_category?: SkillCategory | null,
|
|
38
|
+
issuing_authority?: string | null,
|
|
39
|
+
completion_date?: Date | null,
|
|
40
|
+
skill_summary?: string | null,
|
|
41
|
+
source_request_id?: number | null,
|
|
42
|
+
source_request_type?: string | null,
|
|
43
|
+
is_active?: boolean
|
|
44
|
+
) {
|
|
45
|
+
super();
|
|
46
|
+
this.user_id = user_id;
|
|
47
|
+
this.skill_name = skill_name;
|
|
48
|
+
this.skill_category = skill_category || null;
|
|
49
|
+
this.issuing_authority = issuing_authority || null;
|
|
50
|
+
this.completion_date = completion_date || null;
|
|
51
|
+
this.skill_summary = skill_summary || null;
|
|
52
|
+
this.source_request_id = source_request_id || null;
|
|
53
|
+
this.source_request_type = source_request_type || null;
|
|
54
|
+
this.is_active = is_active !== undefined ? is_active : true;
|
|
55
|
+
}
|
|
56
|
+
}
|