@molochko-dev/data 1.0.4 → 1.0.6

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.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm version patch --no-git-tag-version
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm version minor --no-git-tag-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -10,6 +10,7 @@
10
10
  "scripts": {
11
11
  "build": "rm -rf dist/ && tsc",
12
12
  "test": "jest --config=jest.config.js",
13
+ "prepare": "husky install",
13
14
  "format": "prettier --write \"src/**/*.ts\""
14
15
  },
15
16
  "keywords": [
package/src/enums.ts CHANGED
@@ -102,3 +102,24 @@ export enum SEED_STATUS_ENUM {
102
102
  }
103
103
 
104
104
  export const SEED_STATUS_AS_OBJECT = enumToObject(SEED_STATUS_ENUM);
105
+
106
+ export enum SEED_CODES_ENUM {
107
+ DOUBLE_OVSYNC = 'doubleOvsync',
108
+ PRESYNC = 'dresync',
109
+ RESYNC = 'resync',
110
+ OVSYNC = 'ovsync',
111
+ HEAT = 'heat',
112
+ ACTIVITY_SENSOR = 'activitySensor',
113
+ PRID_DELTA = 'PRIDDelta',
114
+ G6G = 'G6G',
115
+ }
116
+
117
+ export enum EVENT_ERROR_REASON_ENUM {
118
+ statusNotAllowed = 'animal-status-not-allowed',
119
+ notACow = 'animal-not-a-cow',
120
+ tooYoung = 'animal-too-yang'
121
+ }
122
+
123
+ export const EVENT_ERROR_REASON_AS_OBJECT = enumToObject(EVENT_ERROR_REASON_ENUM);
124
+
125
+ export const SEED_CODES_AS_OBJECT = enumToObject(SEED_CODES_ENUM);