@molochko-dev/data 1.4.133 → 1.4.136

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.
@@ -99,22 +99,8 @@ export declare enum EVENT_TYPES_ENUM {
99
99
  retagging = "retagging",
100
100
  changeGroup = "changeGroup"
101
101
  }
102
- export interface EVENT_BY_GROUPS {
103
- [EVENT_GROUPS.lifecycle]: [
104
- EVENT_TYPES_ENUM.ohota,
105
- EVENT_TYPES_ENUM.insemenation,
106
- EVENT_TYPES_ENUM.recheck,
107
- EVENT_TYPES_ENUM.suhostoi,
108
- EVENT_TYPES_ENUM.pozSuhostoi,
109
- EVENT_TYPES_ENUM.abort,
110
- EVENT_TYPES_ENUM.neosem,
111
- EVENT_TYPES_ENUM.calving
112
- ];
113
- [EVENT_GROUPS.veterinary]: [EVENT_TYPES_ENUM.treatment];
114
- [EVENT_GROUPS.outOfPlan]: [
115
- EVENT_TYPES_ENUM.biometry,
116
- EVENT_TYPES_ENUM.transferOut,
117
- EVENT_TYPES_ENUM.retagging,
118
- EVENT_TYPES_ENUM.changeGroup
119
- ];
120
- }
102
+ export declare const EVENT_BY_GROUPS: {
103
+ lifecycle: EVENT_TYPES_ENUM[];
104
+ veterinary: EVENT_TYPES_ENUM[];
105
+ outOfPlan: EVENT_TYPES_ENUM[];
106
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_GROUPS = exports.EVENT_ERROR_REASON_ENUM = void 0;
3
+ exports.EVENT_BY_GROUPS = 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_GROUPS = exports.EVENT_ERROR_REASON_ENUM = void 0;
4
4
  var EVENT_ERROR_REASON_ENUM;
5
5
  (function (EVENT_ERROR_REASON_ENUM) {
6
6
  EVENT_ERROR_REASON_ENUM["animalMustBeACow"] = "animal-must-be-a-cow";
@@ -113,3 +113,22 @@ var EVENT_TYPES_ENUM;
113
113
  EVENT_TYPES_ENUM["retagging"] = "retagging";
114
114
  EVENT_TYPES_ENUM["changeGroup"] = "changeGroup";
115
115
  })(EVENT_TYPES_ENUM = exports.EVENT_TYPES_ENUM || (exports.EVENT_TYPES_ENUM = {}));
116
+ exports.EVENT_BY_GROUPS = {
117
+ [EVENT_GROUPS.lifecycle]: [
118
+ EVENT_TYPES_ENUM.ohota,
119
+ EVENT_TYPES_ENUM.insemenation,
120
+ EVENT_TYPES_ENUM.recheck,
121
+ EVENT_TYPES_ENUM.suhostoi,
122
+ EVENT_TYPES_ENUM.pozSuhostoi,
123
+ EVENT_TYPES_ENUM.abort,
124
+ EVENT_TYPES_ENUM.neosem,
125
+ EVENT_TYPES_ENUM.calving,
126
+ ],
127
+ [EVENT_GROUPS.veterinary]: [EVENT_TYPES_ENUM.treatment],
128
+ [EVENT_GROUPS.outOfPlan]: [
129
+ EVENT_TYPES_ENUM.biometry,
130
+ EVENT_TYPES_ENUM.transferOut,
131
+ EVENT_TYPES_ENUM.retagging,
132
+ EVENT_TYPES_ENUM.changeGroup,
133
+ ],
134
+ };
@@ -1,12 +1,16 @@
1
1
  export declare const CDefaultOrgSettings: {
2
2
  events: {
3
- minInsemenationAgeDays: number;
4
- periodForRecheckAfterInsemenation: number[];
5
3
  periodInsemenationAfterLastCalving: number[];
6
4
  periodForDryAfterInsemenation: number[];
7
5
  periodForLateDryAfterInsemenation: number[];
8
6
  periodCalvingAfterInsemenation: number[];
9
7
  periodGuessCalving: number[];
8
+ minInsemenationAgeDays: number;
9
+ periodFirstHeatAfterBirth: number[];
10
+ periodInsemenationAfterOhota: number[];
11
+ periodForRecheckAfterInsemenation: number[];
12
+ periodInseminationAfterOpenRecheck: number[];
13
+ periodAbortAfterPregnantRecheck: number[];
10
14
  };
11
15
  reports: {
12
16
  pagingPeriod: number;
package/dist/org/const.js CHANGED
@@ -3,13 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CDefaultOrgSettings = void 0;
4
4
  exports.CDefaultOrgSettings = {
5
5
  events: {
6
- minInsemenationAgeDays: 540,
7
- periodForRecheckAfterInsemenation: [30, 220],
8
6
  periodInsemenationAfterLastCalving: [40, 60],
9
7
  periodForDryAfterInsemenation: [220, 250],
10
8
  periodForLateDryAfterInsemenation: [250, 275],
11
9
  periodCalvingAfterInsemenation: [275, 310],
12
10
  periodGuessCalving: [365, 410],
11
+ minInsemenationAgeDays: 540,
12
+ periodFirstHeatAfterBirth: [300, 450],
13
+ periodInsemenationAfterOhota: [0, 1],
14
+ periodForRecheckAfterInsemenation: [30, 220],
15
+ periodInseminationAfterOpenRecheck: [18, 24],
16
+ periodAbortAfterPregnantRecheck: [30, 60],
13
17
  },
14
18
  reports: {
15
19
  pagingPeriod: 21,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.133",
3
+ "version": "1.4.136",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -114,7 +114,7 @@ export enum EVENT_TYPES_ENUM {
114
114
  changeGroup = 'changeGroup', // смена группы
115
115
  }
116
116
 
117
- export interface EVENT_BY_GROUPS {
117
+ export const EVENT_BY_GROUPS = {
118
118
  [EVENT_GROUPS.lifecycle]: [
119
119
  EVENT_TYPES_ENUM.ohota,
120
120
  EVENT_TYPES_ENUM.insemenation,
@@ -124,12 +124,12 @@ export interface EVENT_BY_GROUPS {
124
124
  EVENT_TYPES_ENUM.abort,
125
125
  EVENT_TYPES_ENUM.neosem,
126
126
  EVENT_TYPES_ENUM.calving,
127
- ];
128
- [EVENT_GROUPS.veterinary]: [EVENT_TYPES_ENUM.treatment];
127
+ ],
128
+ [EVENT_GROUPS.veterinary]: [EVENT_TYPES_ENUM.treatment],
129
129
  [EVENT_GROUPS.outOfPlan]: [
130
130
  EVENT_TYPES_ENUM.biometry,
131
131
  EVENT_TYPES_ENUM.transferOut, // выбытие
132
132
  EVENT_TYPES_ENUM.retagging,
133
133
  EVENT_TYPES_ENUM.changeGroup,
134
- ];
135
- }
134
+ ],
135
+ };
package/src/org/const.ts CHANGED
@@ -1,12 +1,16 @@
1
1
  export const CDefaultOrgSettings = {
2
2
  events: {
3
- minInsemenationAgeDays: 540,
4
- periodForRecheckAfterInsemenation: [30, 220],
5
3
  periodInsemenationAfterLastCalving: [40, 60],
6
4
  periodForDryAfterInsemenation: [220, 250],
7
5
  periodForLateDryAfterInsemenation: [250, 275],
8
6
  periodCalvingAfterInsemenation: [275, 310],
9
7
  periodGuessCalving: [365, 410],
8
+ minInsemenationAgeDays: 540,
9
+ periodFirstHeatAfterBirth: [300, 450],
10
+ periodInsemenationAfterOhota: [0, 1],
11
+ periodForRecheckAfterInsemenation: [30, 220],
12
+ periodInseminationAfterOpenRecheck: [18, 24],
13
+ periodAbortAfterPregnantRecheck: [30, 60],
10
14
  },
11
15
  reports: {
12
16
  pagingPeriod: 21, // days