@molochko-dev/data 1.4.102 → 1.4.104

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:
@@ -2,3 +2,4 @@ import { filter as _filter } from './animal-event-filter';
2
2
  import * as _enums from './enums';
3
3
  export { _filter as filter };
4
4
  export { _enums as enums };
5
+ export { EVENT_ERROR_REASON_ENUM, EVENT_EXEC_STATUS_ENUM, TRANSFEROUT_TYPES_ENUM, TRANSFEROUT_REASON_ENUM, DISEASES_ENUM, MEDMETHOD_ENUM, EVENT_TYPES_ENUM } from './enums';
@@ -23,8 +23,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.enums = exports.filter = void 0;
26
+ exports.EVENT_TYPES_ENUM = exports.MEDMETHOD_ENUM = exports.DISEASES_ENUM = exports.TRANSFEROUT_REASON_ENUM = exports.TRANSFEROUT_TYPES_ENUM = exports.EVENT_EXEC_STATUS_ENUM = exports.EVENT_ERROR_REASON_ENUM = exports.enums = exports.filter = void 0;
27
27
  const animal_event_filter_1 = require("./animal-event-filter");
28
28
  Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return animal_event_filter_1.filter; } });
29
29
  const _enums = __importStar(require("./enums"));
30
30
  exports.enums = _enums;
31
+ var enums_1 = require("./enums");
32
+ Object.defineProperty(exports, "EVENT_ERROR_REASON_ENUM", { enumerable: true, get: function () { return enums_1.EVENT_ERROR_REASON_ENUM; } });
33
+ Object.defineProperty(exports, "EVENT_EXEC_STATUS_ENUM", { enumerable: true, get: function () { return enums_1.EVENT_EXEC_STATUS_ENUM; } });
34
+ Object.defineProperty(exports, "TRANSFEROUT_TYPES_ENUM", { enumerable: true, get: function () { return enums_1.TRANSFEROUT_TYPES_ENUM; } });
35
+ Object.defineProperty(exports, "TRANSFEROUT_REASON_ENUM", { enumerable: true, get: function () { return enums_1.TRANSFEROUT_REASON_ENUM; } });
36
+ Object.defineProperty(exports, "DISEASES_ENUM", { enumerable: true, get: function () { return enums_1.DISEASES_ENUM; } });
37
+ Object.defineProperty(exports, "MEDMETHOD_ENUM", { enumerable: true, get: function () { return enums_1.MEDMETHOD_ENUM; } });
38
+ Object.defineProperty(exports, "EVENT_TYPES_ENUM", { enumerable: true, get: function () { return enums_1.EVENT_TYPES_ENUM; } });
package/dist/index.d.ts CHANGED
@@ -55,3 +55,5 @@ export declare const animalEnums: typeof _animalEnums.enums;
55
55
  export declare const eventEnums: typeof _animalForEventFilters.enums;
56
56
  export declare const eqEnums: typeof _eqEnums.enums;
57
57
  export declare const orgConstants: typeof _orgConstants.constants;
58
+ export * as events from './event';
59
+ export type { EVENT_ERROR_REASON_ENUM, EVENT_EXEC_STATUS_ENUM, TRANSFEROUT_TYPES_ENUM, TRANSFEROUT_REASON_ENUM, DISEASES_ENUM, MEDMETHOD_ENUM, EVENT_TYPES_ENUM } from './event';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.orgConstants = exports.eqEnums = exports.eventEnums = exports.animalEnums = exports.animalForEventFilters = exports.importEnums = exports.animalTagEnums = exports.customListEnums = exports.types = exports.rolePermissions = exports.enums = void 0;
26
+ exports.events = exports.orgConstants = exports.eqEnums = exports.eventEnums = exports.animalEnums = exports.animalForEventFilters = exports.importEnums = exports.animalTagEnums = exports.customListEnums = exports.types = exports.rolePermissions = exports.enums = void 0;
27
27
  const dataEnums = __importStar(require("./enums"));
28
28
  const breed_1 = require("./breed");
29
29
  const typeDefinitions = __importStar(require("./types"));
@@ -47,3 +47,4 @@ exports.animalEnums = _animalEnums.enums;
47
47
  exports.eventEnums = _eventEnums.enums;
48
48
  exports.eqEnums = _eqEnums.enums;
49
49
  exports.orgConstants = _orgConstants.constants;
50
+ exports.events = __importStar(require("./event"));
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.104",
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:
@@ -3,3 +3,13 @@ import * as _enums from './enums';
3
3
 
4
4
  export { _filter as filter };
5
5
  export { _enums as enums };
6
+
7
+ export {
8
+ EVENT_ERROR_REASON_ENUM,
9
+ EVENT_EXEC_STATUS_ENUM,
10
+ TRANSFEROUT_TYPES_ENUM,
11
+ TRANSFEROUT_REASON_ENUM,
12
+ DISEASES_ENUM,
13
+ MEDMETHOD_ENUM,
14
+ EVENT_TYPES_ENUM
15
+ } from './enums'
package/src/index.ts CHANGED
@@ -21,4 +21,15 @@ export const animalForEventFilters = _animalForEventFilters;
21
21
  export const animalEnums = _animalEnums.enums;
22
22
  export const eventEnums = _eventEnums.enums;
23
23
  export const eqEnums = _eqEnums.enums
24
- export const orgConstants = _orgConstants.constants
24
+ export const orgConstants = _orgConstants.constants
25
+
26
+ export * as events from './event';
27
+ export type {
28
+ EVENT_ERROR_REASON_ENUM,
29
+ EVENT_EXEC_STATUS_ENUM,
30
+ TRANSFEROUT_TYPES_ENUM,
31
+ TRANSFEROUT_REASON_ENUM,
32
+ DISEASES_ENUM,
33
+ MEDMETHOD_ENUM,
34
+ EVENT_TYPES_ENUM
35
+ } from './event'