@platform-modules/foreign-ministry 1.3.270 → 1.3.271
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.
|
@@ -4,18 +4,17 @@ import { BaseModel } from './BaseModel';
|
|
|
4
4
|
* for that cycle (e.g. excluded in January, eligible again in May via a different month row).
|
|
5
5
|
*/
|
|
6
6
|
export declare class EvaluationEligibilitySetting extends BaseModel {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
department_id: number;
|
|
8
|
+
section_id: number;
|
|
9
9
|
/** Calendar month 1–12 */
|
|
10
10
|
month: number;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
evaluation_end_date: Date;
|
|
12
|
+
is_active: boolean;
|
|
13
13
|
employees?: EvaluationEligibilitySettingEmployee[];
|
|
14
14
|
}
|
|
15
15
|
export declare class EvaluationEligibilitySettingEmployee extends BaseModel {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
employeeId: number;
|
|
16
|
+
evaluation_eligibility_setting: EvaluationEligibilitySetting;
|
|
17
|
+
employee_id: number;
|
|
19
18
|
/** When true, employee is excluded from evaluation for this setting’s month/department/section. */
|
|
20
|
-
|
|
19
|
+
is_excluded_from_evaluation: boolean;
|
|
21
20
|
}
|
|
@@ -20,27 +20,27 @@ let EvaluationEligibilitySetting = class EvaluationEligibilitySetting extends Ba
|
|
|
20
20
|
};
|
|
21
21
|
exports.EvaluationEligibilitySetting = EvaluationEligibilitySetting;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
|
-
], EvaluationEligibilitySetting.prototype, "
|
|
25
|
+
], EvaluationEligibilitySetting.prototype, "department_id", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
|
-
], EvaluationEligibilitySetting.prototype, "
|
|
29
|
+
], EvaluationEligibilitySetting.prototype, "section_id", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
33
|
], EvaluationEligibilitySetting.prototype, "month", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date' }),
|
|
36
36
|
__metadata("design:type", Date)
|
|
37
|
-
], EvaluationEligibilitySetting.prototype, "
|
|
37
|
+
], EvaluationEligibilitySetting.prototype, "evaluation_end_date", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
40
40
|
__metadata("design:type", Boolean)
|
|
41
|
-
], EvaluationEligibilitySetting.prototype, "
|
|
41
|
+
], EvaluationEligibilitySetting.prototype, "is_active", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, typeorm_1.OneToMany)(() => EvaluationEligibilitySettingEmployee, (e) => e.
|
|
43
|
+
(0, typeorm_1.OneToMany)(() => EvaluationEligibilitySettingEmployee, (e) => e.evaluation_eligibility_setting),
|
|
44
44
|
__metadata("design:type", Array)
|
|
45
45
|
], EvaluationEligibilitySetting.prototype, "employees", void 0);
|
|
46
46
|
exports.EvaluationEligibilitySetting = EvaluationEligibilitySetting = __decorate([
|
|
@@ -49,23 +49,19 @@ exports.EvaluationEligibilitySetting = EvaluationEligibilitySetting = __decorate
|
|
|
49
49
|
let EvaluationEligibilitySettingEmployee = class EvaluationEligibilitySettingEmployee extends BaseModel_1.BaseModel {
|
|
50
50
|
};
|
|
51
51
|
exports.EvaluationEligibilitySettingEmployee = EvaluationEligibilitySettingEmployee;
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ name: 'setting_id', type: 'int' }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], EvaluationEligibilitySettingEmployee.prototype, "settingId", void 0);
|
|
56
52
|
__decorate([
|
|
57
53
|
(0, typeorm_1.ManyToOne)(() => EvaluationEligibilitySetting, (s) => s.employees, { onDelete: 'CASCADE' }),
|
|
58
54
|
(0, typeorm_1.JoinColumn)({ name: 'setting_id' }),
|
|
59
55
|
__metadata("design:type", EvaluationEligibilitySetting)
|
|
60
|
-
], EvaluationEligibilitySettingEmployee.prototype, "
|
|
56
|
+
], EvaluationEligibilitySettingEmployee.prototype, "evaluation_eligibility_setting", void 0);
|
|
61
57
|
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
63
59
|
__metadata("design:type", Number)
|
|
64
|
-
], EvaluationEligibilitySettingEmployee.prototype, "
|
|
60
|
+
], EvaluationEligibilitySettingEmployee.prototype, "employee_id", void 0);
|
|
65
61
|
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
67
63
|
__metadata("design:type", Boolean)
|
|
68
|
-
], EvaluationEligibilitySettingEmployee.prototype, "
|
|
64
|
+
], EvaluationEligibilitySettingEmployee.prototype, "is_excluded_from_evaluation", void 0);
|
|
69
65
|
exports.EvaluationEligibilitySettingEmployee = EvaluationEligibilitySettingEmployee = __decorate([
|
|
70
66
|
(0, typeorm_1.Entity)({ name: 'evaluation_eligibility_setting_employees' })
|
|
71
67
|
], EvaluationEligibilitySettingEmployee);
|
package/package.json
CHANGED
|
@@ -7,39 +7,36 @@ import { BaseModel } from './BaseModel';
|
|
|
7
7
|
*/
|
|
8
8
|
@Entity({ name: 'evaluation_eligibility_settings' })
|
|
9
9
|
export class EvaluationEligibilitySetting extends BaseModel {
|
|
10
|
-
@Column({
|
|
11
|
-
|
|
10
|
+
@Column({ type: 'int' })
|
|
11
|
+
department_id: number;
|
|
12
12
|
|
|
13
|
-
@Column({
|
|
14
|
-
|
|
13
|
+
@Column({ type: 'int' })
|
|
14
|
+
section_id: number;
|
|
15
15
|
|
|
16
16
|
/** Calendar month 1–12 */
|
|
17
17
|
@Column({ type: 'int' })
|
|
18
18
|
month: number;
|
|
19
19
|
|
|
20
|
-
@Column({
|
|
21
|
-
|
|
20
|
+
@Column({ type: 'date' })
|
|
21
|
+
evaluation_end_date: Date;
|
|
22
22
|
|
|
23
|
-
@Column({
|
|
24
|
-
|
|
23
|
+
@Column({ type: 'boolean', default: true })
|
|
24
|
+
is_active: boolean;
|
|
25
25
|
|
|
26
|
-
@OneToMany(() => EvaluationEligibilitySettingEmployee, (e) => e.
|
|
26
|
+
@OneToMany(() => EvaluationEligibilitySettingEmployee, (e) => e.evaluation_eligibility_setting)
|
|
27
27
|
employees?: EvaluationEligibilitySettingEmployee[];
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@Entity({ name: 'evaluation_eligibility_setting_employees' })
|
|
31
31
|
export class EvaluationEligibilitySettingEmployee extends BaseModel {
|
|
32
|
-
@Column({ name: 'setting_id', type: 'int' })
|
|
33
|
-
settingId: number;
|
|
34
|
-
|
|
35
32
|
@ManyToOne(() => EvaluationEligibilitySetting, (s) => s.employees, { onDelete: 'CASCADE' })
|
|
36
33
|
@JoinColumn({ name: 'setting_id' })
|
|
37
|
-
|
|
34
|
+
evaluation_eligibility_setting: EvaluationEligibilitySetting;
|
|
38
35
|
|
|
39
|
-
@Column({
|
|
40
|
-
|
|
36
|
+
@Column({ type: 'int' })
|
|
37
|
+
employee_id: number;
|
|
41
38
|
|
|
42
39
|
/** When true, employee is excluded from evaluation for this setting’s month/department/section. */
|
|
43
|
-
@Column({
|
|
44
|
-
|
|
40
|
+
@Column({ type: 'boolean', default: true })
|
|
41
|
+
is_excluded_from_evaluation: boolean;
|
|
45
42
|
}
|