@molochko-dev/data 1.4.68 → 1.4.70

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,8 @@ 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, enums_1.EVENT_TYPES_ENUM.rost, enums_1.EVENT_TYPES_ENUM.upitannost):
135
+ return this.weightFilter(animals);
125
136
  default:
126
137
  return animals;
127
138
  }
@@ -1,5 +1,5 @@
1
1
  export declare enum IMPDATA_SOURCES_ENUM {
2
- diaryComp = "diaryComp"
2
+ dairyComp = "dairyComp"
3
3
  }
4
4
  export declare enum IMPDATA_STATUS_ENUM {
5
5
  waiting = "waiting",
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IMPDATA_STATUS_ENUM = exports.IMPDATA_SOURCES_ENUM = void 0;
4
4
  var IMPDATA_SOURCES_ENUM;
5
5
  (function (IMPDATA_SOURCES_ENUM) {
6
- IMPDATA_SOURCES_ENUM["diaryComp"] = "diaryComp";
6
+ IMPDATA_SOURCES_ENUM["dairyComp"] = "dairyComp";
7
7
  })(IMPDATA_SOURCES_ENUM = exports.IMPDATA_SOURCES_ENUM || (exports.IMPDATA_SOURCES_ENUM = {}));
8
8
  var IMPDATA_STATUS_ENUM;
9
9
  (function (IMPDATA_STATUS_ENUM) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.68",
3
+ "version": "1.4.70",
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,8 @@ 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, EVENT_TYPES_ENUM.rost, EVENT_TYPES_ENUM.upitannost):
163
+ return this.weightFilter(animals);
150
164
  default:
151
165
  return animals;
152
166
  }
@@ -1,5 +1,5 @@
1
1
  export enum IMPDATA_SOURCES_ENUM {
2
- diaryComp = 'diaryComp',
2
+ dairyComp = 'dairyComp',
3
3
  }
4
4
 
5
5
  export enum IMPDATA_STATUS_ENUM {