@platform-modules/foreign-ministry 1.1.113 → 1.1.115

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,7 +16,5 @@ export declare class LeaveConfiguration extends BaseModel {
16
16
  from_date: Date;
17
17
  to_date: Date;
18
18
  reason: string;
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);
19
+ 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);
22
20
  }
@@ -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, emergency_balance_days, last_credited) {
22
+ constructor(category, MandC_id, leave_type_id, frequency, region, country, location, is_carryforward, carryforward_limit, from_date, to_date, reason) {
23
23
  super();
24
24
  this.category = category;
25
25
  this.MandC_id = MandC_id;
@@ -33,8 +33,6 @@ 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;
38
36
  }
39
37
  };
40
38
  exports.LeaveConfiguration = LeaveConfiguration;
@@ -86,15 +84,7 @@ __decorate([
86
84
  (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
87
85
  __metadata("design:type", String)
88
86
  ], 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);
97
87
  exports.LeaveConfiguration = LeaveConfiguration = __decorate([
98
88
  (0, typeorm_1.Entity)({ name: 'leave_configuration' }),
99
- __metadata("design:paramtypes", [String, Number, Number, String, String, String, String, Boolean, Number, Date, Date, String, Object, Object])
89
+ __metadata("design:paramtypes", [String, Number, Number, String, String, String, String, Boolean, Number, Date, Date, String])
100
90
  ], LeaveConfiguration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.1.113",
3
+ "version": "1.1.115",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,72 +1,64 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- export enum enumFrequency {
5
- Monthly = 'Monthly',
6
- Yearly = 'Yearly',
7
- }
8
-
9
- //This model is used to store the Financial Grade declaration on the Admin Side
10
- @Entity({ name: 'leave_configuration' })
11
- export class LeaveConfiguration extends BaseModel {
12
-
13
- @Column({ type: 'varchar', nullable: true })
14
- category: string;
15
-
16
- @Column({ type: 'int', nullable: true })
17
- MandC_id: number;
18
-
19
- @Column({ type: 'int', nullable: true })
20
- leave_type_id: number;
21
-
22
- @Column({ type: 'varchar', nullable: true })
23
- frequency: enumFrequency;
24
-
25
- @Column({ type: 'varchar', nullable: true })
26
- region: string;
27
-
28
- @Column({ type: 'varchar', nullable: true })
29
- country: string;
30
-
31
- @Column({ type: 'varchar', nullable: true })
32
- location: string;
33
-
34
- @Column({ nullable: true, default: false })
35
- is_carryforward: boolean;
36
-
37
- @Column({ type: 'int', nullable: true, default: 0 })
38
- carryforward_limit: number;
39
-
40
- @Column({ type: 'date', nullable: true })
41
- from_date: Date;
42
-
43
- @Column({ type: 'date', nullable: true })
44
- to_date: Date;
45
-
46
- @Column({ type: 'varchar', nullable: true })
47
- reason: string;
48
-
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) {
56
- super();
57
- this.category = category;
58
- this.MandC_id = MandC_id;
59
- this.leave_type_id = leave_type_id;
60
- this.frequency = frequency;
61
- this.region = region;
62
- this.country = country;
63
- this.location = location;
64
- this.is_carryforward = is_carryforward;
65
- this.carryforward_limit = carryforward_limit;
66
- this.from_date = from_date;
67
- this.to_date = to_date;
68
- this.reason = reason;
69
- this.emergency_balance_days = emergency_balance_days ?? null;
70
- this.last_credited = last_credited ?? null;
71
- }
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum enumFrequency {
5
+ Monthly = 'Monthly',
6
+ Yearly = 'Yearly',
7
+ }
8
+
9
+ //This model is used to store the Financial Grade declaration on the Admin Side
10
+ @Entity({ name: 'leave_configuration' })
11
+ export class LeaveConfiguration extends BaseModel {
12
+
13
+ @Column({ type: 'varchar', nullable: true })
14
+ category: string;
15
+
16
+ @Column({ type: 'int', nullable: true })
17
+ MandC_id: number;
18
+
19
+ @Column({ type: 'int', nullable: true })
20
+ leave_type_id: number;
21
+
22
+ @Column({ type: 'varchar', nullable: true })
23
+ frequency: enumFrequency;
24
+
25
+ @Column({ type: 'varchar', nullable: true })
26
+ region: string;
27
+
28
+ @Column({ type: 'varchar', nullable: true })
29
+ country: string;
30
+
31
+ @Column({ type: 'varchar', nullable: true })
32
+ location: string;
33
+
34
+ @Column({ nullable: true, default: false })
35
+ is_carryforward: boolean;
36
+
37
+ @Column({ type: 'int', nullable: true, default: 0 })
38
+ carryforward_limit: number;
39
+
40
+ @Column({ type: 'date', nullable: true })
41
+ from_date: Date;
42
+
43
+ @Column({ type: 'date', nullable: true })
44
+ to_date: Date;
45
+
46
+ @Column({ type: 'varchar', nullable: true })
47
+ reason: string;
48
+
49
+ 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) {
50
+ super();
51
+ this.category = category;
52
+ this.MandC_id = MandC_id;
53
+ this.leave_type_id = leave_type_id;
54
+ this.frequency = frequency;
55
+ this.region = region;
56
+ this.country = country;
57
+ this.location = location;
58
+ this.is_carryforward = is_carryforward;
59
+ this.carryforward_limit = carryforward_limit;
60
+ this.from_date = from_date;
61
+ this.to_date = to_date;
62
+ this.reason = reason;
63
+ }
72
64
  }