@molochko-dev/data 1.4.4 → 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 +10 -1
- package/dist/enums.js +10 -2
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/enums.ts +10 -1
package/dist/enums.d.ts
CHANGED
|
@@ -118,7 +118,8 @@ export declare enum EVENT_ERROR_REASON_ENUM {
|
|
|
118
118
|
statusNotAllowedDry = "animal-status-not-allowed-dry",
|
|
119
119
|
statusNotAllowedDnb = "animal-status-not-allowed-dnb",
|
|
120
120
|
statusNotAllowedSold = "animal-status-not-allowed-sold",
|
|
121
|
-
statusNotAllowedDied = "animal-status-not-allowed
|
|
121
|
+
statusNotAllowedDied = "animal-status-not-allowed",
|
|
122
|
+
statusForFirstRecheckBredOnly = "animal-status-for-first-recheck-bred-only",
|
|
122
123
|
notACow = "animal-not-a-cow",
|
|
123
124
|
tooYoung = "animal-too-young"
|
|
124
125
|
}
|
|
@@ -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;
|
|
@@ -114,7 +114,8 @@ var EVENT_ERROR_REASON_ENUM;
|
|
|
114
114
|
EVENT_ERROR_REASON_ENUM["statusNotAllowedDry"] = "animal-status-not-allowed-dry";
|
|
115
115
|
EVENT_ERROR_REASON_ENUM["statusNotAllowedDnb"] = "animal-status-not-allowed-dnb";
|
|
116
116
|
EVENT_ERROR_REASON_ENUM["statusNotAllowedSold"] = "animal-status-not-allowed-sold";
|
|
117
|
-
EVENT_ERROR_REASON_ENUM["statusNotAllowedDied"] = "animal-status-not-allowed
|
|
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
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 = {}));
|
|
@@ -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
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);
|