@molochko-dev/data 1.4.102 → 1.4.103

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.
package/dist/enums.d.ts CHANGED
@@ -29,7 +29,7 @@ export declare enum EVENT_TYPES_ENUM {
29
29
  otel = "otel",
30
30
  recheck = "recheck",
31
31
  ohota = "ohota",
32
- osemenenie = "osemenenie",
32
+ insemenation = "insemenation",
33
33
  stelnaya = "stelnaya",
34
34
  yalovaya = "yalovaya",
35
35
  stelneotpos = "stelneotpos",
package/dist/enums.js CHANGED
@@ -47,7 +47,7 @@ var EVENT_TYPES_ENUM;
47
47
  EVENT_TYPES_ENUM["otel"] = "otel";
48
48
  EVENT_TYPES_ENUM["recheck"] = "recheck";
49
49
  EVENT_TYPES_ENUM["ohota"] = "ohota";
50
- EVENT_TYPES_ENUM["osemenenie"] = "osemenenie";
50
+ EVENT_TYPES_ENUM["insemenation"] = "insemenation";
51
51
  EVENT_TYPES_ENUM["stelnaya"] = "stelnaya";
52
52
  EVENT_TYPES_ENUM["yalovaya"] = "yalovaya";
53
53
  EVENT_TYPES_ENUM["stelneotpos"] = "stelneotpos";
@@ -56,7 +56,7 @@ class AnimalEventFilter {
56
56
  });
57
57
  return result;
58
58
  }
59
- breedingFilter(animals) {
59
+ insemenationFilter(animals) {
60
60
  const result = animals.filter((animal) => {
61
61
  const genderOk = this.genderFilter(animal, enums_1.ANIMAL_GENDER_ENUM.cow);
62
62
  const statusOk = this.statusFilter(animal, [
@@ -132,8 +132,8 @@ class AnimalEventFilter {
132
132
  return this.abortFilter(animals);
133
133
  case enums_1.EVENT_TYPES_ENUM.neosem:
134
134
  return this.neosemFilter(animals);
135
- case enums_1.EVENT_TYPES_ENUM.osemenenie:
136
- return this.breedingFilter(animals);
135
+ case enums_1.EVENT_TYPES_ENUM.insemenation:
136
+ return this.insemenationFilter(animals);
137
137
  case enums_1.EVENT_TYPES_ENUM.otel:
138
138
  return this.otelFilter(animals);
139
139
  case enums_1.EVENT_TYPES_ENUM.recheck:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.102",
3
+ "version": "1.4.103",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
package/src/enums.ts CHANGED
@@ -45,7 +45,7 @@ export enum EVENT_TYPES_ENUM {
45
45
  otel = 'otel', // ОТЕЛ ----- addTocalendar
46
46
  recheck = 'recheck', // ПЕРЕПРОВЕРИТЬ * ----- addTocalendar
47
47
  ohota = 'ohota', // ОХОТА ----- addTocalendar
48
- osemenenie = 'osemenenie', // ОСЕМЕНЕНИЕ *
48
+ insemenation = 'insemenation', // ОСЕМЕНЕНИЕ *
49
49
  stelnaya = 'stelnaya', // СТЕЛЬНАЯ
50
50
  yalovaya = 'yalovaya', // ЯЛОВАЯ (НЕ СТЕЛЬНАЯ) ----- addTocalendar
51
51
  stelneotpos = 'stelneotpos', // СТЕЛЬНАЯ НЕ ОТ ПОС ОСЕМЕНЕНИЯ ----- addTocalendar
@@ -72,7 +72,7 @@ class AnimalEventFilter {
72
72
  return result;
73
73
  }
74
74
 
75
- breedingFilter<T extends BaseAnimal>(animals: T[]): T[] {
75
+ insemenationFilter<T extends BaseAnimal>(animals: T[]): T[] {
76
76
  const result = animals.filter((animal) => {
77
77
  const genderOk = this.genderFilter(animal, ANIMAL_GENDER_ENUM.cow);
78
78
  const statusOk = this.statusFilter(animal, [
@@ -161,8 +161,8 @@ class AnimalEventFilter {
161
161
  return this.abortFilter(animals);
162
162
  case EVENT_TYPES_ENUM.neosem:
163
163
  return this.neosemFilter(animals);
164
- case EVENT_TYPES_ENUM.osemenenie:
165
- return this.breedingFilter(animals);
164
+ case EVENT_TYPES_ENUM.insemenation:
165
+ return this.insemenationFilter(animals);
166
166
  case EVENT_TYPES_ENUM.otel:
167
167
  return this.otelFilter(animals);
168
168
  case EVENT_TYPES_ENUM.recheck: