@platform-modules/foreign-ministry 1.2.3 → 1.2.5
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.
|
@@ -16,5 +16,7 @@ export declare class LeaveConfiguration extends BaseModel {
|
|
|
16
16
|
from_date: Date;
|
|
17
17
|
to_date: Date;
|
|
18
18
|
reason: string;
|
|
19
|
-
|
|
19
|
+
emergency_balance_days: number | null;
|
|
20
|
+
last_credited: Date | null;
|
|
21
|
+
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number | null, last_credited?: Date | null);
|
|
20
22
|
}
|
|
@@ -19,7 +19,7 @@ var enumFrequency;
|
|
|
19
19
|
})(enumFrequency || (exports.enumFrequency = enumFrequency = {}));
|
|
20
20
|
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
21
21
|
let LeaveConfiguration = class LeaveConfiguration extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(category, MandC_id, leave_type_id, frequency, region, country, location, is_carryforward, carryforward_limit, from_date, to_date, reason) {
|
|
22
|
+
constructor(category, MandC_id, leave_type_id, frequency, region, country, location, is_carryforward, carryforward_limit, from_date, to_date, reason, emergency_balance_days, last_credited) {
|
|
23
23
|
super();
|
|
24
24
|
this.category = category;
|
|
25
25
|
this.MandC_id = MandC_id;
|
|
@@ -33,6 +33,8 @@ let LeaveConfiguration = class LeaveConfiguration extends BaseModel_1.BaseModel
|
|
|
33
33
|
this.from_date = from_date;
|
|
34
34
|
this.to_date = to_date;
|
|
35
35
|
this.reason = reason;
|
|
36
|
+
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
37
|
+
this.last_credited = last_credited ?? null;
|
|
36
38
|
}
|
|
37
39
|
};
|
|
38
40
|
exports.LeaveConfiguration = LeaveConfiguration;
|
|
@@ -84,7 +86,15 @@ __decorate([
|
|
|
84
86
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
85
87
|
__metadata("design:type", String)
|
|
86
88
|
], LeaveConfiguration.prototype, "reason", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], LeaveConfiguration.prototype, "emergency_balance_days", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], LeaveConfiguration.prototype, "last_credited", void 0);
|
|
87
97
|
exports.LeaveConfiguration = LeaveConfiguration = __decorate([
|
|
88
98
|
(0, typeorm_1.Entity)({ name: 'leave_configuration' }),
|
|
89
|
-
__metadata("design:paramtypes", [String, Number, Number, String, String, String, String, Boolean, Number, Date, Date, String])
|
|
99
|
+
__metadata("design:paramtypes", [String, Number, Number, String, String, String, String, Boolean, Number, Date, Date, String, Object, Object])
|
|
90
100
|
], LeaveConfiguration);
|
package/package.json
CHANGED
|
@@ -46,7 +46,13 @@ export class LeaveConfiguration extends BaseModel {
|
|
|
46
46
|
@Column({ type: 'varchar', nullable: true })
|
|
47
47
|
reason: string;
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
@Column({ type: 'int', nullable: true })
|
|
50
|
+
emergency_balance_days: number | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: true })
|
|
53
|
+
last_credited: Date | null;
|
|
54
|
+
|
|
55
|
+
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
50
56
|
super();
|
|
51
57
|
this.category = category;
|
|
52
58
|
this.MandC_id = MandC_id;
|
|
@@ -60,5 +66,7 @@ export class LeaveConfiguration extends BaseModel {
|
|
|
60
66
|
this.from_date = from_date;
|
|
61
67
|
this.to_date = to_date;
|
|
62
68
|
this.reason = reason;
|
|
69
|
+
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
+
this.last_credited = last_credited ?? null;
|
|
63
71
|
}
|
|
64
72
|
}
|