@molochko-dev/data 1.4.3 → 1.4.5

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
@@ -114,13 +114,14 @@ export declare const ANIMAL_STATUS_AS_OBJECT: {
114
114
  };
115
115
  export declare enum EVENT_ERROR_REASON_ENUM {
116
116
  statusNotAllowed = "animal-status-not-allowed",
117
- statusNotAlowed_pregnant = "animal-status-not-allowed-pregnant",
118
- statusNotAlowed_dry = "animal-status-not-allowed-dry",
119
- statusNotAlowed_dnb = "animal-status-not-allowed-dnb",
120
- statusNotAlowed_sold = "animal-status-not-allowed-sold",
121
- statusNotAlowed_died = "animal-status-not-allowed-",
117
+ statusNotAllowedPregnant = "animal-status-not-allowed-pregnant",
118
+ statusNotAllowedDry = "animal-status-not-allowed-dry",
119
+ statusNotAllowedDnb = "animal-status-not-allowed-dnb",
120
+ statusNotAllowedSold = "animal-status-not-allowed-sold",
121
+ statusNotAllowedDied = "animal-status-not-allowed",
122
+ statusForFirstRecheckBredOnly = "animal-status-for-first-recheck-bred-only",
122
123
  notACow = "animal-not-a-cow",
123
- tooYoung = "animal-too-yang"
124
+ tooYoung = "animal-too-young"
124
125
  }
125
126
  export declare const EVENT_ERROR_REASON_AS_OBJECT: {
126
127
  [key: string]: string;
@@ -132,3 +133,11 @@ export declare enum COMMON_SIMPLE_STATUS_ENUM {
132
133
  export declare const COMMON_SIMPLE_STATUS_AS_OBJECT: {
133
134
  [key: string]: string;
134
135
  };
136
+ export declare enum TAG_TYPE_ENUM {
137
+ user = "user",
138
+ system = "system",
139
+ event = "event"
140
+ }
141
+ export declare const TAG_TYPE_AS_OBJECT: {
142
+ [key: string]: string;
143
+ };
package/dist/enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMMON_SIMPLE_STATUS_AS_OBJECT = exports.COMMON_SIMPLE_STATUS_ENUM = exports.EVENT_ERROR_REASON_AS_OBJECT = exports.EVENT_ERROR_REASON_ENUM = exports.ANIMAL_STATUS_AS_OBJECT = exports.ANIMAL_STATUS_ENUM = exports.SEED_CODES_AS_OBJECT = exports.SEED_CODES_ENUM = exports.SEED_STATUS_AS_OBJECT = exports.SEED_STATUS_ENUM = exports.SEED_TYPE_AS_OBJECT = exports.SEED_TYPE_ENUM = exports.EVENT_TYPES_AS_OBJECT = exports.EVENT_TYPES_ENUM = exports.ANIMAL_GENDER_AS_OBJECT = exports.ANIMAL_GENDER_ENUM = exports.TOKEN_TYPES_AS_OBJECT = exports.TOKEN_TYPE_ENUM = exports.ORG_TYPE_AS_OBJECT = exports.ORG_TYPE_ENUM = exports.USER_STATUSES_AS_OBJECT = exports.USER_STATUSES_ENUM = exports.SYSTEM_USER_ROLES_AS_OBJECT = exports.SYSTEM_USER_ROLES_ENUM = exports.BCRYPT_SALT = void 0;
3
+ exports.TAG_TYPE_AS_OBJECT = exports.TAG_TYPE_ENUM = exports.COMMON_SIMPLE_STATUS_AS_OBJECT = exports.COMMON_SIMPLE_STATUS_ENUM = exports.EVENT_ERROR_REASON_AS_OBJECT = exports.EVENT_ERROR_REASON_ENUM = exports.ANIMAL_STATUS_AS_OBJECT = exports.ANIMAL_STATUS_ENUM = exports.SEED_CODES_AS_OBJECT = exports.SEED_CODES_ENUM = exports.SEED_STATUS_AS_OBJECT = exports.SEED_STATUS_ENUM = exports.SEED_TYPE_AS_OBJECT = exports.SEED_TYPE_ENUM = exports.EVENT_TYPES_AS_OBJECT = exports.EVENT_TYPES_ENUM = exports.ANIMAL_GENDER_AS_OBJECT = exports.ANIMAL_GENDER_ENUM = exports.TOKEN_TYPES_AS_OBJECT = exports.TOKEN_TYPE_ENUM = exports.ORG_TYPE_AS_OBJECT = exports.ORG_TYPE_ENUM = exports.USER_STATUSES_AS_OBJECT = exports.USER_STATUSES_ENUM = exports.SYSTEM_USER_ROLES_AS_OBJECT = exports.SYSTEM_USER_ROLES_ENUM = exports.BCRYPT_SALT = void 0;
4
4
  const helpers_1 = require("./helpers");
5
5
  exports.BCRYPT_SALT = 12;
6
6
  var SYSTEM_USER_ROLES_ENUM;
@@ -110,13 +110,14 @@ exports.ANIMAL_STATUS_AS_OBJECT = (0, helpers_1.enumToObject)(ANIMAL_STATUS_ENUM
110
110
  var EVENT_ERROR_REASON_ENUM;
111
111
  (function (EVENT_ERROR_REASON_ENUM) {
112
112
  EVENT_ERROR_REASON_ENUM["statusNotAllowed"] = "animal-status-not-allowed";
113
- EVENT_ERROR_REASON_ENUM["statusNotAlowed_pregnant"] = "animal-status-not-allowed-pregnant";
114
- EVENT_ERROR_REASON_ENUM["statusNotAlowed_dry"] = "animal-status-not-allowed-dry";
115
- EVENT_ERROR_REASON_ENUM["statusNotAlowed_dnb"] = "animal-status-not-allowed-dnb";
116
- EVENT_ERROR_REASON_ENUM["statusNotAlowed_sold"] = "animal-status-not-allowed-sold";
117
- EVENT_ERROR_REASON_ENUM["statusNotAlowed_died"] = "animal-status-not-allowed-";
113
+ EVENT_ERROR_REASON_ENUM["statusNotAllowedPregnant"] = "animal-status-not-allowed-pregnant";
114
+ EVENT_ERROR_REASON_ENUM["statusNotAllowedDry"] = "animal-status-not-allowed-dry";
115
+ EVENT_ERROR_REASON_ENUM["statusNotAllowedDnb"] = "animal-status-not-allowed-dnb";
116
+ EVENT_ERROR_REASON_ENUM["statusNotAllowedSold"] = "animal-status-not-allowed-sold";
117
+ EVENT_ERROR_REASON_ENUM["statusNotAllowedDied"] = "animal-status-not-allowed";
118
+ EVENT_ERROR_REASON_ENUM["statusForFirstRecheckBredOnly"] = "animal-status-for-first-recheck-bred-only";
118
119
  EVENT_ERROR_REASON_ENUM["notACow"] = "animal-not-a-cow";
119
- EVENT_ERROR_REASON_ENUM["tooYoung"] = "animal-too-yang";
120
+ EVENT_ERROR_REASON_ENUM["tooYoung"] = "animal-too-young";
120
121
  })(EVENT_ERROR_REASON_ENUM = exports.EVENT_ERROR_REASON_ENUM || (exports.EVENT_ERROR_REASON_ENUM = {}));
121
122
  exports.EVENT_ERROR_REASON_AS_OBJECT = (0, helpers_1.enumToObject)(EVENT_ERROR_REASON_ENUM);
122
123
  var COMMON_SIMPLE_STATUS_ENUM;
@@ -125,3 +126,10 @@ var COMMON_SIMPLE_STATUS_ENUM;
125
126
  COMMON_SIMPLE_STATUS_ENUM["success"] = "success";
126
127
  })(COMMON_SIMPLE_STATUS_ENUM = exports.COMMON_SIMPLE_STATUS_ENUM || (exports.COMMON_SIMPLE_STATUS_ENUM = {}));
127
128
  exports.COMMON_SIMPLE_STATUS_AS_OBJECT = (0, helpers_1.enumToObject)(COMMON_SIMPLE_STATUS_ENUM);
129
+ var TAG_TYPE_ENUM;
130
+ (function (TAG_TYPE_ENUM) {
131
+ TAG_TYPE_ENUM["user"] = "user";
132
+ TAG_TYPE_ENUM["system"] = "system";
133
+ TAG_TYPE_ENUM["event"] = "event";
134
+ })(TAG_TYPE_ENUM = exports.TAG_TYPE_ENUM || (exports.TAG_TYPE_ENUM = {}));
135
+ exports.TAG_TYPE_AS_OBJECT = (0, helpers_1.enumToObject)(TAG_TYPE_ENUM);
package/dist/index.d.ts CHANGED
@@ -52,5 +52,9 @@ export declare const enums: {
52
52
  COMMON_SIMPLE_STATUS_AS_OBJECT: {
53
53
  [key: string]: string;
54
54
  };
55
+ TAG_TYPE_ENUM: typeof dataEnums.TAG_TYPE_ENUM;
56
+ TAG_TYPE_AS_OBJECT: {
57
+ [key: string]: string;
58
+ };
55
59
  };
56
60
  export declare const types: typeof typeDefinitions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
package/src/enums.ts CHANGED
@@ -123,7 +123,8 @@ export enum EVENT_ERROR_REASON_ENUM {
123
123
  statusNotAllowedDry = 'animal-status-not-allowed-dry',
124
124
  statusNotAllowedDnb = 'animal-status-not-allowed-dnb',
125
125
  statusNotAllowedSold = 'animal-status-not-allowed-sold',
126
- statusNotAllowedDied = 'animal-status-not-allowed-',
126
+ statusNotAllowedDied = 'animal-status-not-allowed',
127
+ statusForFirstRecheckBredOnly = 'animal-status-for-first-recheck-bred-only',
127
128
  notACow = 'animal-not-a-cow',
128
129
  tooYoung = 'animal-too-young'
129
130
  }
@@ -136,3 +137,11 @@ export enum COMMON_SIMPLE_STATUS_ENUM {
136
137
  }
137
138
 
138
139
  export const COMMON_SIMPLE_STATUS_AS_OBJECT = enumToObject(COMMON_SIMPLE_STATUS_ENUM);
140
+
141
+ export enum TAG_TYPE_ENUM {
142
+ user = 'user',
143
+ system = 'system',
144
+ event = 'event'
145
+ }
146
+
147
+ export const TAG_TYPE_AS_OBJECT = enumToObject(TAG_TYPE_ENUM);