@molochko-dev/data 1.4.130 → 1.4.132

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/CLAUDE.md CHANGED
@@ -28,6 +28,7 @@ Published to npm: `https://registry.npmjs.org/@molochko-dev/data`
28
28
  npm run build # rm -rf dist/ && tsc (compile to dist/)
29
29
  npm test # jest
30
30
  npm run lint:fix # eslint auto-fix
31
+ npm run format # formats code
31
32
  npm run pub # lint:fix → test → patch-version → build → npm publish
32
33
  npm run patch-version # npm version patch --no-git-tag-version
33
34
  ```
@@ -406,22 +407,15 @@ Then run `npm install` / `yarn install` in each consumer.
406
407
  ## 11. Domain Terms (Russian → English)
407
408
 
408
409
  Event type enum values use transliterated Russian:
409
- - `otel` / `calving` — calving (birth)
410
+ - `calving` — calving (birth)
410
411
  - `ohota` — estrus / heat
411
412
  - `suhostoi` — dry period
412
413
  - `pozSuhostoi` — late dry period
413
- - `stelnaya` — pregnant
414
- - `yalovaya` — barren
415
414
  - `neosem` — failed insemination
416
415
  - `perevod` — transfer between groups
417
416
  - `prodazha` — sale
418
- - `pala` — death
419
- - `zaboi` — slaughter
420
417
  - `sinchronizatsia` — synchronization protocol
421
418
  - `transferOut` — disposal/removal
422
- - `upitannost` — body condition score
423
- - `ves` — weight
424
- - `rost` — height
425
- - `obrKopit` — hoof trimming
426
- - `zamenaNomera` — tag replacement
427
- - `kbiku` — bull breeding
419
+ - `biometry` — body condition score + weight + height
420
+ - `retagging` — tag replacement
421
+ - `changeGroup` — animal group changing
@@ -101,9 +101,9 @@ export declare enum EVENT_TYPES_ENUM {
101
101
  }
102
102
  export interface EVENT_BY_GROUPS {
103
103
  [EVENT_GROUPS.lifecycle]: [
104
+ EVENT_TYPES_ENUM.ohota,
104
105
  EVENT_TYPES_ENUM.insemenation,
105
106
  EVENT_TYPES_ENUM.recheck,
106
- EVENT_TYPES_ENUM.ohota,
107
107
  EVENT_TYPES_ENUM.suhostoi,
108
108
  EVENT_TYPES_ENUM.pozSuhostoi,
109
109
  EVENT_TYPES_ENUM.abort,
@@ -111,4 +111,11 @@ export interface EVENT_BY_GROUPS {
111
111
  EVENT_TYPES_ENUM.calving
112
112
  ];
113
113
  [EVENT_GROUPS.veterinary]: [EVENT_TYPES_ENUM.treatment];
114
+ [EVENT_GROUPS.other]: [
115
+ EVENT_TYPES_ENUM.biometry,
116
+ EVENT_TYPES_ENUM.transferOut,
117
+ EVENT_TYPES_ENUM.treatment,
118
+ EVENT_TYPES_ENUM.retagging,
119
+ EVENT_TYPES_ENUM.changeGroup
120
+ ];
114
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.130",
3
+ "version": "1.4.132",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -116,9 +116,9 @@ export enum EVENT_TYPES_ENUM {
116
116
 
117
117
  export interface EVENT_BY_GROUPS {
118
118
  [EVENT_GROUPS.lifecycle]: [
119
+ EVENT_TYPES_ENUM.ohota,
119
120
  EVENT_TYPES_ENUM.insemenation,
120
121
  EVENT_TYPES_ENUM.recheck,
121
- EVENT_TYPES_ENUM.ohota,
122
122
  EVENT_TYPES_ENUM.suhostoi,
123
123
  EVENT_TYPES_ENUM.pozSuhostoi,
124
124
  EVENT_TYPES_ENUM.abort,
@@ -126,4 +126,11 @@ export interface EVENT_BY_GROUPS {
126
126
  EVENT_TYPES_ENUM.calving,
127
127
  ];
128
128
  [EVENT_GROUPS.veterinary]: [EVENT_TYPES_ENUM.treatment];
129
+ [EVENT_GROUPS.other]: [
130
+ EVENT_TYPES_ENUM.biometry,
131
+ EVENT_TYPES_ENUM.transferOut, // выбытие
132
+ EVENT_TYPES_ENUM.treatment,
133
+ EVENT_TYPES_ENUM.retagging,
134
+ EVENT_TYPES_ENUM.changeGroup,
135
+ ];
129
136
  }