@molochko-dev/data 1.0.0

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/README.md ADDED
@@ -0,0 +1 @@
1
+ # molochko-data
@@ -0,0 +1,4 @@
1
+ import { EnumItem } from "./types";
2
+ declare const BREED: EnumItem[];
3
+ declare const BREED_AS_OBJECT: import("./types").EnumArrayAsObject;
4
+ export { BREED, BREED_AS_OBJECT };
package/dist/breed.js ADDED
@@ -0,0 +1,320 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BREED_AS_OBJECT = exports.BREED = void 0;
4
+ const helpers_1 = require("./helpers");
5
+ const BREED = [
6
+ { label: "AMERICAN LINEBACK", id: "LD" },
7
+ { label: "AYRSHIRE", id: "A" },
8
+ {
9
+ label: "AYRSHIRE",
10
+ id: "AY",
11
+ },
12
+ { label: "BROWN SWISS", id: "B" },
13
+ { label: "BROWN SWISS", id: "BS" },
14
+ {
15
+ label: "GIROLANDO",
16
+ id: "GO",
17
+ },
18
+ { label: "GUERNSEY", id: "G" },
19
+ { label: "GUERNSEY", id: "GU" },
20
+ {
21
+ label: "HOLSTEIN",
22
+ id: "H",
23
+ },
24
+ { label: "HOLSTEIN", id: "HO" },
25
+ { label: "JERSEY", id: "J" },
26
+ {
27
+ label: "JERSEY",
28
+ id: "JE",
29
+ },
30
+ { label: "RED & WHITE HOLSTEIN", id: "WW" },
31
+ {
32
+ label: "RED SINDHI",
33
+ id: "ES",
34
+ },
35
+ { label: "SHORTHORN (Milking)", id: "M" },
36
+ {
37
+ label: "SHORTHORN (Milking)",
38
+ id: "MS",
39
+ },
40
+ { label: "INTERNATIONAL RED DAIRY", id: "RE" },
41
+ {
42
+ label: "MILKING DEVON",
43
+ id: "MD",
44
+ },
45
+ { label: "NORWEGIAN RED AND WHITE", id: "NR" },
46
+ {
47
+ label: "SWEDISH RED AND WHITE",
48
+ id: "SR",
49
+ },
50
+ { label: "DAIRY CROSSBREEDS", id: "X" },
51
+ {
52
+ label: "DAIRY CROSSBREEDS",
53
+ id: "XD",
54
+ },
55
+ { label: "DAIRY x BEEF CROSSBREEDS", id: "XX" },
56
+ {
57
+ label: "CANGAIAN",
58
+ id: "CAN",
59
+ },
60
+ { label: "GUZERA LEITEIRO", id: "GZ" },
61
+ { label: "SINDHI", id: "SDI" },
62
+ {
63
+ label: "GUZOLANDO",
64
+ id: "GUZ",
65
+ },
66
+ { label: "JERSOLANDA", id: "HJ" },
67
+ {
68
+ label: "AMERICAN ABERDEEN",
69
+ id: "AD",
70
+ },
71
+ { label: "AFRICANDER", id: "AF" },
72
+ { label: "AMERICAN AKAUSHI", id: "AA" },
73
+ {
74
+ label: "ANGUS",
75
+ id: "AN",
76
+ },
77
+ { label: "ANGUS PLUS", id: "NP" },
78
+ { label: "ANKINA", id: "AK" },
79
+ {
80
+ label: "ANKOLEWATUSI",
81
+ id: "AW",
82
+ },
83
+ { label: "AMERICAN BREED", id: "AE" },
84
+ {
85
+ label: "AMERICAN BUCKING",
86
+ id: "MB",
87
+ },
88
+ { label: "AMERIFAX", id: "AM" },
89
+ { label: "BARZONA", id: "BA" },
90
+ {
91
+ label: "BEEFALO",
92
+ id: "BE",
93
+ },
94
+ { label: "BEEF FRIESIAN", id: "BF" },
95
+ {
96
+ label: "BEEFMASTER",
97
+ id: "BM",
98
+ },
99
+ { label: "BELGIAN BLUE", id: "BB" },
100
+ {
101
+ label: "BELTED GALLOWAY",
102
+ id: "BG",
103
+ },
104
+ { label: "BLACK MAXIMIZER", id: "BX" },
105
+ {
106
+ label: "BLONDE d'AQUITAINE",
107
+ id: "BD",
108
+ },
109
+ { label: "BONSMARA", id: "NS" },
110
+ { label: "BRAFORD", id: "BO" },
111
+ {
112
+ label: "BRAHMAN",
113
+ id: "BR",
114
+ },
115
+ { label: "BRAHMOUSIN", id: "BI" },
116
+ { label: "BRALER", id: "BL" },
117
+ {
118
+ label: "BRANGUS",
119
+ id: "BN",
120
+ },
121
+ { label: "BRAUNVEIH", id: "BU" },
122
+ {
123
+ label: "BRITISH WHITE",
124
+ id: "BW",
125
+ },
126
+ { label: "BROWN SWISS (beef)", id: "SB" },
127
+ {
128
+ label: "BUELINGO",
129
+ id: "BQ",
130
+ },
131
+ { label: "CANADIENNE", id: "CN" },
132
+ { label: "CANCHIM", id: "CC" },
133
+ {
134
+ label: "CARACU",
135
+ id: "CR",
136
+ },
137
+ { label: "CHARBRAY", id: "CB" },
138
+ { label: "CHAROLAIS", id: "CH" },
139
+ {
140
+ label: "CHI-ANGUS",
141
+ id: "CG",
142
+ },
143
+ { label: "CHIANINA", id: "CA" },
144
+ { label: "CHI-MAINE", id: "CM" },
145
+ {
146
+ label: "DEVON",
147
+ id: "DE",
148
+ },
149
+ { label: "DEXTER", id: "DR" },
150
+ { label: "DUTCH BELTED", id: "DL" },
151
+ {
152
+ label: "ERINGER",
153
+ id: "ER",
154
+ },
155
+ { label: "FLAMANDE", id: "F" },
156
+ { label: "FLAMANDE", id: "FA" },
157
+ {
158
+ label: "FLECKVIEH",
159
+ id: "FL",
160
+ },
161
+ { label: "FLORIDA CRACKER", id: "FC" },
162
+ { label: "FRIBOURG", id: "FR" },
163
+ {
164
+ label: "GALLOWAY",
165
+ id: "GA",
166
+ },
167
+ { label: "GELBRAY", id: "GE" },
168
+ { label: "GELBVIEH", id: "GV" },
169
+ {
170
+ label: "GRAUVIEH",
171
+ id: "GI",
172
+ },
173
+ { label: "GRONNINGEN", id: "GR" },
174
+ { label: "GUZERAT", id: "GZ" },
175
+ {
176
+ label: "GYR (or Gir)",
177
+ id: "GY",
178
+ },
179
+ { label: "HAYS CONVERTER", id: "HC" },
180
+ {
181
+ label: "HEREFORD (black)",
182
+ id: "HB",
183
+ },
184
+ { label: "HEREFORD (horned)", id: "HH" },
185
+ {
186
+ label: "HEREFORD (polled)",
187
+ id: "HP",
188
+ },
189
+ { label: "HIGHLAND (Scotch)", id: "SH" },
190
+ {
191
+ label: "HYBRID (Alberta)",
192
+ id: "HY",
193
+ },
194
+ { label: "INDU BRAZIL", id: "IB" },
195
+ {
196
+ label: "IRISH BLACK",
197
+ id: "IK",
198
+ },
199
+ { label: "KOBE (Wagyu)", id: "KB" },
200
+ { label: "LOWLINE", id: "LO" },
201
+ {
202
+ label: "LIMOUSIN",
203
+ id: "LM",
204
+ },
205
+ { label: "LINCOLN RED", id: "LR" },
206
+ { label: "LUING", id: "LU" },
207
+ {
208
+ label: "MAINE-ANJOU",
209
+ id: "MA",
210
+ },
211
+ { label: "MANDALONG SPECIAL", id: "ML" },
212
+ {
213
+ label: "MARCHIGIANA",
214
+ id: "MR",
215
+ },
216
+ { label: "MAREMMANA", id: "ME" },
217
+ {
218
+ label: "MASHONA",
219
+ id: "MH",
220
+ },
221
+ { label: "MEXICAN CORRIENTE", id: "MC" },
222
+ {
223
+ label: "MINIATURE ZEBU",
224
+ id: "MZ",
225
+ },
226
+ { label: "MONTBELIARDE", id: "MO" },
227
+ {
228
+ label: "MUESE-RHINE-ISSEL",
229
+ id: "MI",
230
+ },
231
+ { label: "MURRAH", id: "MU" },
232
+ { label: "MURRAY GREY", id: "MG" },
233
+ {
234
+ label: "NELLORE",
235
+ id: "NE",
236
+ },
237
+ { label: "NORMANDE", id: "NO" },
238
+ { label: "PARTHENAISE", id: "PA" },
239
+ {
240
+ label: "PIEDMONTESE",
241
+ id: "PI",
242
+ },
243
+ { label: "PINZGAUER", id: "PZ" },
244
+ { label: "RANGER", id: "RA" },
245
+ {
246
+ label: "RED ANGUS",
247
+ id: "AR",
248
+ },
249
+ { label: "RED BRAHMAN", id: "RR" },
250
+ { label: "RED BRANGUS", id: "RB" },
251
+ {
252
+ label: "RED DANE",
253
+ id: "RD",
254
+ },
255
+ { label: "RED POLL", id: "RP" },
256
+ { label: "ROMAGNOLA", id: "RN" },
257
+ {
258
+ label: "ROMOSINUANO",
259
+ id: "RS",
260
+ },
261
+ { label: "ROTBUNTE", id: "RO" },
262
+ { label: "SAHIWAL", id: "SW" },
263
+ {
264
+ label: "SALERS",
265
+ id: "SA",
266
+ },
267
+ { label: "SANTA GERTRUDIS", id: "SG" },
268
+ {
269
+ label: "SENEPOL",
270
+ id: "SE",
271
+ },
272
+ { label: "SHORTHORN (beef Scotch)", id: "SS" },
273
+ {
274
+ label: "SHORTHORN (Polled)",
275
+ id: "SP",
276
+ },
277
+ { label: "SHORTHORN (Illwara)", id: "IS" },
278
+ {
279
+ label: "SIMBRAH",
280
+ id: "SI",
281
+ },
282
+ { label: "SIMMENTAL", id: "SM" },
283
+ { label: "SOUTH DEVON", id: "DS" },
284
+ {
285
+ label: "SOUTH POLL",
286
+ id: "OP",
287
+ },
288
+ { label: "SPECKLE PARK", id: "SK" },
289
+ { label: "SUSSEX", id: "SX" },
290
+ {
291
+ label: "TABAPUA",
292
+ id: "TB",
293
+ },
294
+ { label: "TARENTAISE", id: "TA" },
295
+ {
296
+ label: "TAURINDICUS",
297
+ id: "TN",
298
+ },
299
+ { label: "TEXAS LONGHORN", id: "TL" },
300
+ { label: "TULI", id: "TI" },
301
+ {
302
+ label: "WELSH BLACK",
303
+ id: "WB",
304
+ },
305
+ { label: "WEST FLEMISH RED", id: "WF" },
306
+ {
307
+ label: "WHITE ANGUS (Ona)",
308
+ id: "WA",
309
+ },
310
+ { label: "WHITE PARK", id: "WP" },
311
+ {
312
+ label: "CROSSBREEDS (TWINNER)",
313
+ id: "XT",
314
+ },
315
+ { label: "BEEF CROSSBREEDS", id: "XB" },
316
+ { label: "GUZERA", id: "GT" },
317
+ ];
318
+ exports.BREED = BREED;
319
+ const BREED_AS_OBJECT = (0, helpers_1.asObject)(BREED);
320
+ exports.BREED_AS_OBJECT = BREED_AS_OBJECT;
@@ -0,0 +1,18 @@
1
+ import { EnumItem } from "./types";
2
+ declare const BCRYPT_SALT: number;
3
+ declare const SYSTEM_USER_ROLES: EnumItem[];
4
+ declare const SYSTEM_USER_ROLES_AS_OBJECT: import("./types").EnumArrayAsObject;
5
+ declare const USER_STATUSES: EnumItem[];
6
+ declare const USER_STATUSES_AS_OBJECT: import("./types").EnumArrayAsObject;
7
+ declare const TOKEN_TYPE: EnumItem[];
8
+ declare const TOKEN_TYPES_AS_OBJECT: import("./types").EnumArrayAsObject;
9
+ declare const ANIMAL_GENDER: EnumItem[];
10
+ declare const ANIMAL_GENDER_AS_OBJECT: import("./types").EnumArrayAsObject;
11
+ declare const ANIMAL_STATUS: EnumItem[];
12
+ declare const ANIMAL_STATUS_AS_OBJECT: import("./types").EnumArrayAsObject;
13
+ declare const EVENT_TYPES: EnumItem[];
14
+ declare const EVENT_TYPES_AS_OBJECT: import("./types").EnumArrayAsObject;
15
+ declare const SEED_TYPE: EnumItem[];
16
+ declare const SEED_TYPE_AS_OBJECT: import("./types").EnumArrayAsObject;
17
+ declare const SEED_STATUS_AS_OBJECT: import("./types").EnumArrayAsObject;
18
+ export { BCRYPT_SALT, SYSTEM_USER_ROLES, SYSTEM_USER_ROLES_AS_OBJECT, USER_STATUSES, USER_STATUSES_AS_OBJECT, TOKEN_TYPE, TOKEN_TYPES_AS_OBJECT, ANIMAL_GENDER, ANIMAL_GENDER_AS_OBJECT, ANIMAL_STATUS, ANIMAL_STATUS_AS_OBJECT, EVENT_TYPES, EVENT_TYPES_AS_OBJECT, SEED_TYPE, SEED_TYPE_AS_OBJECT, SEED_STATUS_AS_OBJECT, };
package/dist/enums.js ADDED
@@ -0,0 +1,260 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEED_STATUS_AS_OBJECT = exports.SEED_TYPE_AS_OBJECT = exports.SEED_TYPE = exports.EVENT_TYPES_AS_OBJECT = exports.EVENT_TYPES = exports.ANIMAL_STATUS_AS_OBJECT = exports.ANIMAL_STATUS = exports.ANIMAL_GENDER_AS_OBJECT = exports.ANIMAL_GENDER = exports.TOKEN_TYPES_AS_OBJECT = exports.TOKEN_TYPE = exports.USER_STATUSES_AS_OBJECT = exports.USER_STATUSES = exports.SYSTEM_USER_ROLES_AS_OBJECT = exports.SYSTEM_USER_ROLES = exports.BCRYPT_SALT = void 0;
4
+ const helpers_1 = require("./helpers");
5
+ const BCRYPT_SALT = 12;
6
+ exports.BCRYPT_SALT = BCRYPT_SALT;
7
+ const SYSTEM_USER_ROLES = [
8
+ {
9
+ id: "user",
10
+ label: "User",
11
+ },
12
+ {
13
+ id: "admin",
14
+ label: "Admin",
15
+ },
16
+ {
17
+ id: "root",
18
+ label: "Tsar",
19
+ },
20
+ ];
21
+ exports.SYSTEM_USER_ROLES = SYSTEM_USER_ROLES;
22
+ const SYSTEM_USER_ROLES_AS_OBJECT = (0, helpers_1.asObject)(SYSTEM_USER_ROLES);
23
+ exports.SYSTEM_USER_ROLES_AS_OBJECT = SYSTEM_USER_ROLES_AS_OBJECT;
24
+ const USER_STATUSES = [
25
+ {
26
+ id: "waiting",
27
+ label: "Waiting for confirmation",
28
+ },
29
+ {
30
+ id: "ready",
31
+ label: "Ready",
32
+ },
33
+ {
34
+ id: "blocked",
35
+ label: "Blocked",
36
+ },
37
+ {
38
+ id: "deleted",
39
+ label: "Deleted",
40
+ },
41
+ ];
42
+ exports.USER_STATUSES = USER_STATUSES;
43
+ const USER_STATUSES_AS_OBJECT = (0, helpers_1.asObject)(USER_STATUSES);
44
+ exports.USER_STATUSES_AS_OBJECT = USER_STATUSES_AS_OBJECT;
45
+ const TOKEN_TYPE = [
46
+ {
47
+ id: "confirm",
48
+ label: "Confirm",
49
+ },
50
+ {
51
+ id: "auth",
52
+ label: "Auth",
53
+ },
54
+ {
55
+ id: "refresh",
56
+ label: "Refresh",
57
+ },
58
+ {
59
+ id: "resetPassword",
60
+ label: "Reset password",
61
+ },
62
+ {
63
+ id: "invite",
64
+ label: "Invite",
65
+ },
66
+ ];
67
+ exports.TOKEN_TYPE = TOKEN_TYPE;
68
+ const TOKEN_TYPES_AS_OBJECT = (0, helpers_1.asObject)(TOKEN_TYPE);
69
+ exports.TOKEN_TYPES_AS_OBJECT = TOKEN_TYPES_AS_OBJECT;
70
+ const ANIMAL_GENDER = [
71
+ {
72
+ id: "cow",
73
+ label: "Cow",
74
+ },
75
+ {
76
+ id: "bull",
77
+ label: "Bull",
78
+ },
79
+ ];
80
+ exports.ANIMAL_GENDER = ANIMAL_GENDER;
81
+ const ANIMAL_GENDER_AS_OBJECT = (0, helpers_1.asObject)(ANIMAL_GENDER);
82
+ exports.ANIMAL_GENDER_AS_OBJECT = ANIMAL_GENDER_AS_OBJECT;
83
+ const ANIMAL_STATUS = [
84
+ {
85
+ id: "heifer",
86
+ color: "magenta",
87
+ label: "Телка",
88
+ },
89
+ {
90
+ id: "bred",
91
+ color: "blue",
92
+ label: "Осемененная",
93
+ },
94
+ {
95
+ id: "pregnant",
96
+ label: "Стельная",
97
+ color: "volcano",
98
+ },
99
+ {
100
+ id: "open",
101
+ label: "Яловая",
102
+ color: "orange",
103
+ },
104
+ {
105
+ id: "fresh",
106
+ label: "Новотельная",
107
+ color: "gold",
108
+ },
109
+ {
110
+ id: "dry",
111
+ label: "Сухостой",
112
+ color: "lime",
113
+ },
114
+ {
115
+ id: "dnb",
116
+ label: "Брак",
117
+ color: "green",
118
+ },
119
+ {
120
+ id: "sold",
121
+ label: "Продана",
122
+ color: "cyan",
123
+ },
124
+ {
125
+ id: "died",
126
+ label: "Сдохла",
127
+ color: "red",
128
+ },
129
+ ];
130
+ exports.ANIMAL_STATUS = ANIMAL_STATUS;
131
+ const ANIMAL_STATUS_AS_OBJECT = (0, helpers_1.asObject)(ANIMAL_STATUS);
132
+ exports.ANIMAL_STATUS_AS_OBJECT = ANIMAL_STATUS_AS_OBJECT;
133
+ const EVENT_TYPES = [
134
+ {
135
+ id: "otel",
136
+ label: "ОТЕЛ",
137
+ },
138
+ {
139
+ id: "recheck",
140
+ label: "ПЕРЕПРОВЕРИТЬ",
141
+ },
142
+ {
143
+ id: "ohota",
144
+ label: "ОХОТА",
145
+ },
146
+ {
147
+ id: "osemenenie",
148
+ label: "ОСЕМЕНЕНИЕ",
149
+ },
150
+ {
151
+ id: "stelnaya",
152
+ label: "СТЕЛЬНАЯ",
153
+ },
154
+ {
155
+ id: "yalovaya",
156
+ label: "ЯЛОВАЯ (НЕ СТЕЛЬНАЯ)",
157
+ },
158
+ {
159
+ id: "stelneotpos",
160
+ label: "СТЕЛЬНАЯ НЕ ОТ ПОС ОСЕМЕНЕНИЯ",
161
+ },
162
+ {
163
+ id: "perevod",
164
+ label: "ПЕРЕВОД",
165
+ },
166
+ {
167
+ id: "kbiku",
168
+ label: "КБЫКУ",
169
+ },
170
+ {
171
+ id: "suhostoi",
172
+ label: "СУХОСТОЙ",
173
+ },
174
+ {
175
+ id: "abort",
176
+ label: "АБОРТ",
177
+ },
178
+ {
179
+ id: "neosem",
180
+ label: "НЕОСЕМ (БРАК)",
181
+ },
182
+ {
183
+ id: "prodazha",
184
+ label: "ПРОДАЖА",
185
+ },
186
+ {
187
+ id: "pala",
188
+ label: "ПАЛА",
189
+ },
190
+ {
191
+ id: "zamenaNomera",
192
+ label: "ЗАМЕНА НОМЕРА",
193
+ },
194
+ {
195
+ id: "obrKopit",
196
+ label: "ОБРАБОТКА КОПЫТ",
197
+ },
198
+ {
199
+ id: "pozSuhostoi",
200
+ label: "ПОЗСУХОСТОЙ",
201
+ },
202
+ {
203
+ id: "ves",
204
+ label: "ВЕС",
205
+ },
206
+ {
207
+ id: "rost",
208
+ label: "РОСТ",
209
+ },
210
+ {
211
+ id: "upitannost",
212
+ label: "УПИТАННОСТЬ",
213
+ },
214
+ {
215
+ id: "zaboi",
216
+ label: "ЗАБОЙ",
217
+ },
218
+ {
219
+ id: "sinchronizatsia",
220
+ label: "СИНХРОНИЗАЦИЯ",
221
+ },
222
+ ];
223
+ exports.EVENT_TYPES = EVENT_TYPES;
224
+ const EVENT_TYPES_AS_OBJECT = (0, helpers_1.asObject)(EVENT_TYPES);
225
+ exports.EVENT_TYPES_AS_OBJECT = EVENT_TYPES_AS_OBJECT;
226
+ const SEED_TYPE = [
227
+ {
228
+ id: "traditional",
229
+ label: "Традиционное",
230
+ },
231
+ {
232
+ id: "sexytelka",
233
+ label: "Сексированное телка",
234
+ },
235
+ {
236
+ id: "sexybull",
237
+ label: "Сексированное бычок",
238
+ },
239
+ {
240
+ id: "meat",
241
+ label: "Мясное",
242
+ },
243
+ {
244
+ id: "meatSexyTelka",
245
+ label: "Мясное сексированное телка",
246
+ },
247
+ {
248
+ id: "meatSexyBull",
249
+ label: "Мясное сексированное бычок",
250
+ },
251
+ ];
252
+ exports.SEED_TYPE = SEED_TYPE;
253
+ const SEED_TYPE_AS_OBJECT = (0, helpers_1.asObject)(SEED_TYPE);
254
+ exports.SEED_TYPE_AS_OBJECT = SEED_TYPE_AS_OBJECT;
255
+ const SEED_STATUS = [
256
+ { id: "active", label: "Активно" },
257
+ { id: "notActive", label: "Не Активно" },
258
+ ];
259
+ const SEED_STATUS_AS_OBJECT = (0, helpers_1.asObject)(SEED_STATUS);
260
+ exports.SEED_STATUS_AS_OBJECT = SEED_STATUS_AS_OBJECT;
@@ -0,0 +1,2 @@
1
+ import { EnumItem, EnumArrayAsObject } from "./types";
2
+ export declare function asObject(arrayOfObjects: EnumItem[]): EnumArrayAsObject;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asObject = void 0;
4
+ function asObject(arrayOfObjects) {
5
+ const result = {};
6
+ arrayOfObjects.forEach((item) => {
7
+ result[item.id] = item.id;
8
+ });
9
+ return result;
10
+ }
11
+ exports.asObject = asObject;
@@ -0,0 +1,22 @@
1
+ import * as typeDefinitions from "./types";
2
+ export declare const enums: {
3
+ BREED: typeDefinitions.EnumItem[];
4
+ BREED_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
5
+ BCRYPT_SALT: number;
6
+ SYSTEM_USER_ROLES: typeDefinitions.EnumItem[];
7
+ SYSTEM_USER_ROLES_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
8
+ USER_STATUSES: typeDefinitions.EnumItem[];
9
+ USER_STATUSES_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
10
+ TOKEN_TYPE: typeDefinitions.EnumItem[];
11
+ TOKEN_TYPES_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
12
+ ANIMAL_GENDER: typeDefinitions.EnumItem[];
13
+ ANIMAL_GENDER_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
14
+ ANIMAL_STATUS: typeDefinitions.EnumItem[];
15
+ ANIMAL_STATUS_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
16
+ EVENT_TYPES: typeDefinitions.EnumItem[];
17
+ EVENT_TYPES_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
18
+ SEED_TYPE: typeDefinitions.EnumItem[];
19
+ SEED_TYPE_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
20
+ SEED_STATUS_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
21
+ };
22
+ export declare const types: typeof typeDefinitions;
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.types = exports.enums = void 0;
27
+ const dataEnums = __importStar(require("./enums"));
28
+ const breed_1 = require("./breed");
29
+ const typeDefinitions = __importStar(require("./types"));
30
+ exports.enums = Object.assign(Object.assign({}, dataEnums), { BREED: breed_1.BREED, BREED_AS_OBJECT: breed_1.BREED_AS_OBJECT });
31
+ exports.types = typeDefinitions;
@@ -0,0 +1,8 @@
1
+ export declare interface EnumItem {
2
+ readonly id: string;
3
+ readonly label: string;
4
+ readonly color?: string;
5
+ }
6
+ export declare type EnumArrayAsObject = {
7
+ [key: string]: string;
8
+ };
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ var types = require("./src/types");
4
+ console.info('SDFSDFSDFSDFSDFFSD');
5
+ console.info('types', types);