@molochko-dev/data 1.4.69 → 1.4.71

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.
@@ -30,6 +30,15 @@ class AnimalEventFilter {
30
30
  neosemFilter(animals) {
31
31
  return this.abortFilter(animals);
32
32
  }
33
+ weightFilter(animals) {
34
+ return animals;
35
+ }
36
+ heightFilter(animals) {
37
+ return animals;
38
+ }
39
+ fatnessFilter(animals) {
40
+ return animals;
41
+ }
33
42
  osemenenieFilter(animals) {
34
43
  const result = animals.filter((animal) => {
35
44
  const genderOk = this.genderFilter(animal, enums_1.ANIMAL_GENDER_ENUM.cow);
@@ -122,6 +131,11 @@ class AnimalEventFilter {
122
131
  return this.transferOutFilter(animals);
123
132
  case enums_1.EVENT_TYPES_ENUM.treatment:
124
133
  return this.treatmentFilter(animals);
134
+ case (enums_1.EVENT_TYPES_ENUM.ves,
135
+ enums_1.EVENT_TYPES_ENUM.rost,
136
+ enums_1.EVENT_TYPES_ENUM.upitannost,
137
+ enums_1.EVENT_TYPES_ENUM.ohota):
138
+ return this.weightFilter(animals);
125
139
  default:
126
140
  return animals;
127
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.69",
3
+ "version": "1.4.71",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -42,6 +42,18 @@ class AnimalEventFilter {
42
42
  return this.abortFilter(animals);
43
43
  }
44
44
 
45
+ weightFilter<T extends BaseAnimal>(animals: T[]): T[] {
46
+ return animals;
47
+ }
48
+
49
+ heightFilter<T extends BaseAnimal>(animals: T[]): T[] {
50
+ return animals;
51
+ }
52
+
53
+ fatnessFilter<T extends BaseAnimal>(animals: T[]): T[] {
54
+ return animals;
55
+ }
56
+
45
57
  osemenenieFilter<T extends BaseAnimal>(animals: T[]): T[] {
46
58
  const result = animals.filter((animal) => {
47
59
  const genderOk = this.genderFilter(animal, ANIMAL_GENDER_ENUM.cow);
@@ -147,6 +159,11 @@ class AnimalEventFilter {
147
159
  return this.transferOutFilter(animals);
148
160
  case EVENT_TYPES_ENUM.treatment:
149
161
  return this.treatmentFilter(animals);
162
+ case (EVENT_TYPES_ENUM.ves,
163
+ EVENT_TYPES_ENUM.rost,
164
+ EVENT_TYPES_ENUM.upitannost,
165
+ EVENT_TYPES_ENUM.ohota):
166
+ return this.weightFilter(animals);
150
167
  default:
151
168
  return animals;
152
169
  }