@molochko-dev/data 1.4.60 → 1.4.62
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/custom-list/enums.d.ts +76 -0
- package/dist/custom-list/enums.js +71 -0
- package/dist/custom-list/index.d.ts +2 -0
- package/dist/custom-list/index.js +27 -0
- package/dist/enums.js +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/src/custom-list/enums.ts +77 -0
- package/src/custom-list/index.ts +3 -0
- package/src/enums.ts +16 -15
- package/src/index.ts +2 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare enum CLIST_NUMBER_OPERATOR_ENUM {
|
|
2
|
+
eq = "eq",
|
|
3
|
+
gte = "gte",
|
|
4
|
+
lte = "lte",
|
|
5
|
+
lt = "lt",
|
|
6
|
+
gt = "gt"
|
|
7
|
+
}
|
|
8
|
+
export declare const CLIST_NUMBER_OPERATOR_ENUM_AS_OBJECT: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
export declare enum CLIST_STRING_OPERATOR_ENUM {
|
|
12
|
+
eq = "eq",
|
|
13
|
+
consists = "consists"
|
|
14
|
+
}
|
|
15
|
+
export declare const CLIST_STRING_OPERATOR_ENUM_AS_OBJECT: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
export declare enum CLIST_DATE_OPERATOR_ENUM {
|
|
19
|
+
eq = "eq",
|
|
20
|
+
between = "between"
|
|
21
|
+
}
|
|
22
|
+
export declare const CLIST_DATE_OPERATOR_ENUM_AS_OBJECT: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
export declare enum CLIST_TYPE_ENUM {
|
|
26
|
+
string = "string",
|
|
27
|
+
number = "number",
|
|
28
|
+
date = "date"
|
|
29
|
+
}
|
|
30
|
+
export declare const CLIST_TYPE_ENUM_AS_OBJECT: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
export declare enum CLIST_CONDITION_ENUM {
|
|
34
|
+
and = "and",
|
|
35
|
+
or = "or",
|
|
36
|
+
not = "not"
|
|
37
|
+
}
|
|
38
|
+
export declare const CLIST_CONDITION_ENUM_AS_OBJECT: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
export declare enum CLIST_MODELS_ENUM {
|
|
42
|
+
animals = "animals",
|
|
43
|
+
events = "events",
|
|
44
|
+
seedBank = "seedBank",
|
|
45
|
+
employee = "employee",
|
|
46
|
+
org = "org",
|
|
47
|
+
protocol = "protocol",
|
|
48
|
+
treatment = "treatment"
|
|
49
|
+
}
|
|
50
|
+
export declare const CLIST_MODELS_ENUM_AS_OBJECT: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
export declare enum CLIST_DATASOURCE_ENUM {
|
|
54
|
+
animals = "animals",
|
|
55
|
+
events = "events"
|
|
56
|
+
}
|
|
57
|
+
export declare const CLIST_DATASOURCE_ENUM_AS_OBJECT: {
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
};
|
|
60
|
+
export declare enum CLIST_STATUS_ENUM {
|
|
61
|
+
working = "working",
|
|
62
|
+
published = "published"
|
|
63
|
+
}
|
|
64
|
+
export declare const CLIST_STATUS_ENUM_AS_OBJECT: {
|
|
65
|
+
[key: string]: string;
|
|
66
|
+
};
|
|
67
|
+
export declare enum CLIST_AFUNCTIONS_ENUM {
|
|
68
|
+
count = "count",
|
|
69
|
+
min = "min",
|
|
70
|
+
max = "max",
|
|
71
|
+
avg = "avg",
|
|
72
|
+
sum = "sum"
|
|
73
|
+
}
|
|
74
|
+
export declare const CLIST_AFUNCTIONS_ENUM_AS_OBJECT: {
|
|
75
|
+
[key: string]: string;
|
|
76
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIST_AFUNCTIONS_ENUM_AS_OBJECT = exports.CLIST_AFUNCTIONS_ENUM = exports.CLIST_STATUS_ENUM_AS_OBJECT = exports.CLIST_STATUS_ENUM = exports.CLIST_DATASOURCE_ENUM_AS_OBJECT = exports.CLIST_DATASOURCE_ENUM = exports.CLIST_MODELS_ENUM_AS_OBJECT = exports.CLIST_MODELS_ENUM = exports.CLIST_CONDITION_ENUM_AS_OBJECT = exports.CLIST_CONDITION_ENUM = exports.CLIST_TYPE_ENUM_AS_OBJECT = exports.CLIST_TYPE_ENUM = exports.CLIST_DATE_OPERATOR_ENUM_AS_OBJECT = exports.CLIST_DATE_OPERATOR_ENUM = exports.CLIST_STRING_OPERATOR_ENUM_AS_OBJECT = exports.CLIST_STRING_OPERATOR_ENUM = exports.CLIST_NUMBER_OPERATOR_ENUM_AS_OBJECT = exports.CLIST_NUMBER_OPERATOR_ENUM = void 0;
|
|
4
|
+
const helpers_1 = require("../helpers");
|
|
5
|
+
var CLIST_NUMBER_OPERATOR_ENUM;
|
|
6
|
+
(function (CLIST_NUMBER_OPERATOR_ENUM) {
|
|
7
|
+
CLIST_NUMBER_OPERATOR_ENUM["eq"] = "eq";
|
|
8
|
+
CLIST_NUMBER_OPERATOR_ENUM["gte"] = "gte";
|
|
9
|
+
CLIST_NUMBER_OPERATOR_ENUM["lte"] = "lte";
|
|
10
|
+
CLIST_NUMBER_OPERATOR_ENUM["lt"] = "lt";
|
|
11
|
+
CLIST_NUMBER_OPERATOR_ENUM["gt"] = "gt";
|
|
12
|
+
})(CLIST_NUMBER_OPERATOR_ENUM = exports.CLIST_NUMBER_OPERATOR_ENUM || (exports.CLIST_NUMBER_OPERATOR_ENUM = {}));
|
|
13
|
+
exports.CLIST_NUMBER_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_NUMBER_OPERATOR_ENUM);
|
|
14
|
+
var CLIST_STRING_OPERATOR_ENUM;
|
|
15
|
+
(function (CLIST_STRING_OPERATOR_ENUM) {
|
|
16
|
+
CLIST_STRING_OPERATOR_ENUM["eq"] = "eq";
|
|
17
|
+
CLIST_STRING_OPERATOR_ENUM["consists"] = "consists";
|
|
18
|
+
})(CLIST_STRING_OPERATOR_ENUM = exports.CLIST_STRING_OPERATOR_ENUM || (exports.CLIST_STRING_OPERATOR_ENUM = {}));
|
|
19
|
+
exports.CLIST_STRING_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_STRING_OPERATOR_ENUM);
|
|
20
|
+
var CLIST_DATE_OPERATOR_ENUM;
|
|
21
|
+
(function (CLIST_DATE_OPERATOR_ENUM) {
|
|
22
|
+
CLIST_DATE_OPERATOR_ENUM["eq"] = "eq";
|
|
23
|
+
CLIST_DATE_OPERATOR_ENUM["between"] = "between";
|
|
24
|
+
})(CLIST_DATE_OPERATOR_ENUM = exports.CLIST_DATE_OPERATOR_ENUM || (exports.CLIST_DATE_OPERATOR_ENUM = {}));
|
|
25
|
+
exports.CLIST_DATE_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_DATE_OPERATOR_ENUM);
|
|
26
|
+
var CLIST_TYPE_ENUM;
|
|
27
|
+
(function (CLIST_TYPE_ENUM) {
|
|
28
|
+
CLIST_TYPE_ENUM["string"] = "string";
|
|
29
|
+
CLIST_TYPE_ENUM["number"] = "number";
|
|
30
|
+
CLIST_TYPE_ENUM["date"] = "date";
|
|
31
|
+
})(CLIST_TYPE_ENUM = exports.CLIST_TYPE_ENUM || (exports.CLIST_TYPE_ENUM = {}));
|
|
32
|
+
exports.CLIST_TYPE_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_TYPE_ENUM);
|
|
33
|
+
var CLIST_CONDITION_ENUM;
|
|
34
|
+
(function (CLIST_CONDITION_ENUM) {
|
|
35
|
+
CLIST_CONDITION_ENUM["and"] = "and";
|
|
36
|
+
CLIST_CONDITION_ENUM["or"] = "or";
|
|
37
|
+
CLIST_CONDITION_ENUM["not"] = "not";
|
|
38
|
+
})(CLIST_CONDITION_ENUM = exports.CLIST_CONDITION_ENUM || (exports.CLIST_CONDITION_ENUM = {}));
|
|
39
|
+
exports.CLIST_CONDITION_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_CONDITION_ENUM);
|
|
40
|
+
var CLIST_MODELS_ENUM;
|
|
41
|
+
(function (CLIST_MODELS_ENUM) {
|
|
42
|
+
CLIST_MODELS_ENUM["animals"] = "animals";
|
|
43
|
+
CLIST_MODELS_ENUM["events"] = "events";
|
|
44
|
+
CLIST_MODELS_ENUM["seedBank"] = "seedBank";
|
|
45
|
+
CLIST_MODELS_ENUM["employee"] = "employee";
|
|
46
|
+
CLIST_MODELS_ENUM["org"] = "org";
|
|
47
|
+
CLIST_MODELS_ENUM["protocol"] = "protocol";
|
|
48
|
+
CLIST_MODELS_ENUM["treatment"] = "treatment";
|
|
49
|
+
})(CLIST_MODELS_ENUM = exports.CLIST_MODELS_ENUM || (exports.CLIST_MODELS_ENUM = {}));
|
|
50
|
+
exports.CLIST_MODELS_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_MODELS_ENUM);
|
|
51
|
+
var CLIST_DATASOURCE_ENUM;
|
|
52
|
+
(function (CLIST_DATASOURCE_ENUM) {
|
|
53
|
+
CLIST_DATASOURCE_ENUM["animals"] = "animals";
|
|
54
|
+
CLIST_DATASOURCE_ENUM["events"] = "events";
|
|
55
|
+
})(CLIST_DATASOURCE_ENUM = exports.CLIST_DATASOURCE_ENUM || (exports.CLIST_DATASOURCE_ENUM = {}));
|
|
56
|
+
exports.CLIST_DATASOURCE_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_DATASOURCE_ENUM);
|
|
57
|
+
var CLIST_STATUS_ENUM;
|
|
58
|
+
(function (CLIST_STATUS_ENUM) {
|
|
59
|
+
CLIST_STATUS_ENUM["working"] = "working";
|
|
60
|
+
CLIST_STATUS_ENUM["published"] = "published";
|
|
61
|
+
})(CLIST_STATUS_ENUM = exports.CLIST_STATUS_ENUM || (exports.CLIST_STATUS_ENUM = {}));
|
|
62
|
+
exports.CLIST_STATUS_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_STATUS_ENUM);
|
|
63
|
+
var CLIST_AFUNCTIONS_ENUM;
|
|
64
|
+
(function (CLIST_AFUNCTIONS_ENUM) {
|
|
65
|
+
CLIST_AFUNCTIONS_ENUM["count"] = "count";
|
|
66
|
+
CLIST_AFUNCTIONS_ENUM["min"] = "min";
|
|
67
|
+
CLIST_AFUNCTIONS_ENUM["max"] = "max";
|
|
68
|
+
CLIST_AFUNCTIONS_ENUM["avg"] = "avg";
|
|
69
|
+
CLIST_AFUNCTIONS_ENUM["sum"] = "sum";
|
|
70
|
+
})(CLIST_AFUNCTIONS_ENUM = exports.CLIST_AFUNCTIONS_ENUM || (exports.CLIST_AFUNCTIONS_ENUM = {}));
|
|
71
|
+
exports.CLIST_AFUNCTIONS_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_AFUNCTIONS_ENUM);
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
const enums = __importStar(require("./enums"));
|
|
27
|
+
exports.default = enums;
|
package/dist/enums.js
CHANGED
|
@@ -271,6 +271,7 @@ var EVENT_EXEC_STATUS_ENUM;
|
|
|
271
271
|
EVENT_EXEC_STATUS_ENUM["block"] = "block";
|
|
272
272
|
})(EVENT_EXEC_STATUS_ENUM = exports.EVENT_EXEC_STATUS_ENUM || (exports.EVENT_EXEC_STATUS_ENUM = {}));
|
|
273
273
|
exports.EVENT_EXEC_STATUS_AS_OBJECT = (0, helpers_1.enumToObject)(EVENT_EXEC_STATUS_ENUM);
|
|
274
|
+
// TODO removeme
|
|
274
275
|
var CLIST_NUMBER_OPERATOR_ENUM;
|
|
275
276
|
(function (CLIST_NUMBER_OPERATOR_ENUM) {
|
|
276
277
|
CLIST_NUMBER_OPERATOR_ENUM["eq"] = "eq";
|
|
@@ -279,33 +280,43 @@ var CLIST_NUMBER_OPERATOR_ENUM;
|
|
|
279
280
|
CLIST_NUMBER_OPERATOR_ENUM["lt"] = "lt";
|
|
280
281
|
CLIST_NUMBER_OPERATOR_ENUM["gt"] = "gt";
|
|
281
282
|
})(CLIST_NUMBER_OPERATOR_ENUM = exports.CLIST_NUMBER_OPERATOR_ENUM || (exports.CLIST_NUMBER_OPERATOR_ENUM = {}));
|
|
283
|
+
// TODO removeme
|
|
282
284
|
exports.CLIST_NUMBER_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_NUMBER_OPERATOR_ENUM);
|
|
285
|
+
// TODO removeme
|
|
283
286
|
var CLIST_STRING_OPERATOR_ENUM;
|
|
284
287
|
(function (CLIST_STRING_OPERATOR_ENUM) {
|
|
285
288
|
CLIST_STRING_OPERATOR_ENUM["eq"] = "eq";
|
|
286
289
|
CLIST_STRING_OPERATOR_ENUM["consists"] = "consists";
|
|
287
290
|
})(CLIST_STRING_OPERATOR_ENUM = exports.CLIST_STRING_OPERATOR_ENUM || (exports.CLIST_STRING_OPERATOR_ENUM = {}));
|
|
291
|
+
// TODO removeme
|
|
288
292
|
exports.CLIST_STRING_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_STRING_OPERATOR_ENUM);
|
|
293
|
+
// TODO removeme
|
|
289
294
|
var CLIST_DATE_OPERATOR_ENUM;
|
|
290
295
|
(function (CLIST_DATE_OPERATOR_ENUM) {
|
|
291
296
|
CLIST_DATE_OPERATOR_ENUM["eq"] = "eq";
|
|
292
297
|
CLIST_DATE_OPERATOR_ENUM["between"] = "between";
|
|
293
298
|
})(CLIST_DATE_OPERATOR_ENUM = exports.CLIST_DATE_OPERATOR_ENUM || (exports.CLIST_DATE_OPERATOR_ENUM = {}));
|
|
299
|
+
// TODO removeme
|
|
294
300
|
exports.CLIST_DATE_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_DATE_OPERATOR_ENUM);
|
|
301
|
+
// TODO removeme
|
|
295
302
|
var CLIST_TYPE_ENUM;
|
|
296
303
|
(function (CLIST_TYPE_ENUM) {
|
|
297
304
|
CLIST_TYPE_ENUM["string"] = "string";
|
|
298
305
|
CLIST_TYPE_ENUM["number"] = "number";
|
|
299
306
|
CLIST_TYPE_ENUM["date"] = "date";
|
|
300
307
|
})(CLIST_TYPE_ENUM = exports.CLIST_TYPE_ENUM || (exports.CLIST_TYPE_ENUM = {}));
|
|
308
|
+
// TODO removeme
|
|
301
309
|
exports.CLIST_TYPE_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_TYPE_ENUM);
|
|
310
|
+
// TODO removeme
|
|
302
311
|
var CLIST_CONDITION_ENUM;
|
|
303
312
|
(function (CLIST_CONDITION_ENUM) {
|
|
304
313
|
CLIST_CONDITION_ENUM["and"] = "and";
|
|
305
314
|
CLIST_CONDITION_ENUM["or"] = "or";
|
|
306
315
|
CLIST_CONDITION_ENUM["not"] = "not";
|
|
307
316
|
})(CLIST_CONDITION_ENUM = exports.CLIST_CONDITION_ENUM || (exports.CLIST_CONDITION_ENUM = {}));
|
|
317
|
+
// TODO removeme
|
|
308
318
|
exports.CLIST_CONDITION_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_CONDITION_ENUM);
|
|
319
|
+
// TODO removeme
|
|
309
320
|
var CLIST_DATASOURCE_ENUM;
|
|
310
321
|
(function (CLIST_DATASOURCE_ENUM) {
|
|
311
322
|
CLIST_DATASOURCE_ENUM["animals"] = "animals";
|
|
@@ -316,13 +327,17 @@ var CLIST_DATASOURCE_ENUM;
|
|
|
316
327
|
CLIST_DATASOURCE_ENUM["protocol"] = "protocol";
|
|
317
328
|
CLIST_DATASOURCE_ENUM["treatment"] = "treatment";
|
|
318
329
|
})(CLIST_DATASOURCE_ENUM = exports.CLIST_DATASOURCE_ENUM || (exports.CLIST_DATASOURCE_ENUM = {}));
|
|
330
|
+
// TODO removeme
|
|
319
331
|
exports.CLIST_DATASOURCE_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_DATASOURCE_ENUM);
|
|
332
|
+
// TODO removeme
|
|
320
333
|
var CLIST_STATUS_ENUM;
|
|
321
334
|
(function (CLIST_STATUS_ENUM) {
|
|
322
335
|
CLIST_STATUS_ENUM["working"] = "working";
|
|
323
336
|
CLIST_STATUS_ENUM["published"] = "published";
|
|
324
337
|
})(CLIST_STATUS_ENUM = exports.CLIST_STATUS_ENUM || (exports.CLIST_STATUS_ENUM = {}));
|
|
338
|
+
// TODO removeme
|
|
325
339
|
exports.CLIST_STATUS_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_STATUS_ENUM);
|
|
340
|
+
// TODO removeme
|
|
326
341
|
var CLIST_AFUNCTIONS_ENUM;
|
|
327
342
|
(function (CLIST_AFUNCTIONS_ENUM) {
|
|
328
343
|
CLIST_AFUNCTIONS_ENUM["count"] = "count";
|
|
@@ -331,6 +346,7 @@ var CLIST_AFUNCTIONS_ENUM;
|
|
|
331
346
|
CLIST_AFUNCTIONS_ENUM["avg"] = "avg";
|
|
332
347
|
CLIST_AFUNCTIONS_ENUM["sum"] = "sum";
|
|
333
348
|
})(CLIST_AFUNCTIONS_ENUM = exports.CLIST_AFUNCTIONS_ENUM || (exports.CLIST_AFUNCTIONS_ENUM = {}));
|
|
349
|
+
// TODO removeme
|
|
334
350
|
exports.CLIST_AFUNCTIONS_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(CLIST_AFUNCTIONS_ENUM);
|
|
335
351
|
var SUPPORTED_LANG_ENUM;
|
|
336
352
|
(function (SUPPORTED_LANG_ENUM) {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as dataEnums from './enums';
|
|
|
2
2
|
import * as typeDefinitions from './types';
|
|
3
3
|
import * as _rolePermissions from './role-permissions';
|
|
4
4
|
import * as _animalForEventFilters from './event';
|
|
5
|
+
import * as _clEnums from './custom-list';
|
|
5
6
|
export declare const enums: {
|
|
6
7
|
BREED: typeDefinitions.EnumItem[];
|
|
7
8
|
BREED_AS_OBJECT: typeDefinitions.EnumArrayAsObject;
|
|
@@ -135,4 +136,5 @@ export declare const enums: {
|
|
|
135
136
|
};
|
|
136
137
|
export declare const rolePermissions: typeof _rolePermissions;
|
|
137
138
|
export declare const types: typeof typeDefinitions;
|
|
139
|
+
export declare const customListEnums: typeof _clEnums;
|
|
138
140
|
export declare const animalForEventFilters: typeof _animalForEventFilters;
|
package/dist/index.js
CHANGED
|
@@ -23,13 +23,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.animalForEventFilters = exports.types = exports.rolePermissions = exports.enums = void 0;
|
|
26
|
+
exports.animalForEventFilters = exports.customListEnums = exports.types = exports.rolePermissions = exports.enums = void 0;
|
|
27
27
|
const dataEnums = __importStar(require("./enums"));
|
|
28
28
|
const breed_1 = require("./breed");
|
|
29
29
|
const typeDefinitions = __importStar(require("./types"));
|
|
30
30
|
const _rolePermissions = __importStar(require("./role-permissions"));
|
|
31
31
|
const _animalForEventFilters = __importStar(require("./event"));
|
|
32
|
+
const _clEnums = __importStar(require("./custom-list"));
|
|
32
33
|
exports.enums = Object.assign(Object.assign({}, dataEnums), { BREED: breed_1.BREED, BREED_AS_OBJECT: breed_1.BREED_AS_OBJECT });
|
|
33
34
|
exports.rolePermissions = _rolePermissions;
|
|
34
35
|
exports.types = typeDefinitions;
|
|
36
|
+
exports.customListEnums = _clEnums;
|
|
35
37
|
exports.animalForEventFilters = _animalForEventFilters;
|
package/package.json
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { enumToObject } from '../helpers';
|
|
2
|
+
|
|
3
|
+
export enum CLIST_NUMBER_OPERATOR_ENUM {
|
|
4
|
+
eq = 'eq',
|
|
5
|
+
gte = 'gte',
|
|
6
|
+
lte = 'lte',
|
|
7
|
+
lt = 'lt',
|
|
8
|
+
gt = 'gt',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const CLIST_NUMBER_OPERATOR_ENUM_AS_OBJECT = enumToObject(CLIST_NUMBER_OPERATOR_ENUM);
|
|
12
|
+
|
|
13
|
+
export enum CLIST_STRING_OPERATOR_ENUM {
|
|
14
|
+
eq = 'eq',
|
|
15
|
+
consists = 'consists',
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const CLIST_STRING_OPERATOR_ENUM_AS_OBJECT = enumToObject(CLIST_STRING_OPERATOR_ENUM);
|
|
19
|
+
|
|
20
|
+
export enum CLIST_DATE_OPERATOR_ENUM {
|
|
21
|
+
eq = 'eq',
|
|
22
|
+
between = 'between',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const CLIST_DATE_OPERATOR_ENUM_AS_OBJECT = enumToObject(CLIST_DATE_OPERATOR_ENUM);
|
|
26
|
+
|
|
27
|
+
export enum CLIST_TYPE_ENUM {
|
|
28
|
+
string = 'string',
|
|
29
|
+
number = 'number',
|
|
30
|
+
date = 'date',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const CLIST_TYPE_ENUM_AS_OBJECT = enumToObject(CLIST_TYPE_ENUM);
|
|
34
|
+
|
|
35
|
+
export enum CLIST_CONDITION_ENUM {
|
|
36
|
+
and = 'and',
|
|
37
|
+
or = 'or',
|
|
38
|
+
not = 'not',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const CLIST_CONDITION_ENUM_AS_OBJECT = enumToObject(CLIST_CONDITION_ENUM);
|
|
42
|
+
|
|
43
|
+
export enum CLIST_MODELS_ENUM {
|
|
44
|
+
animals = 'animals',
|
|
45
|
+
events = 'events',
|
|
46
|
+
seedBank = 'seedBank',
|
|
47
|
+
employee = 'employee',
|
|
48
|
+
org = 'org',
|
|
49
|
+
protocol = 'protocol',
|
|
50
|
+
treatment = 'treatment',
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const CLIST_MODELS_ENUM_AS_OBJECT = enumToObject(CLIST_MODELS_ENUM);
|
|
54
|
+
|
|
55
|
+
export enum CLIST_DATASOURCE_ENUM {
|
|
56
|
+
animals = 'animals',
|
|
57
|
+
events = 'events',
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export const CLIST_DATASOURCE_ENUM_AS_OBJECT = enumToObject(CLIST_DATASOURCE_ENUM);
|
|
61
|
+
|
|
62
|
+
export enum CLIST_STATUS_ENUM {
|
|
63
|
+
working = 'working',
|
|
64
|
+
published = 'published',
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const CLIST_STATUS_ENUM_AS_OBJECT = enumToObject(CLIST_STATUS_ENUM);
|
|
68
|
+
|
|
69
|
+
export enum CLIST_AFUNCTIONS_ENUM {
|
|
70
|
+
count = 'count',
|
|
71
|
+
min = 'min',
|
|
72
|
+
max = 'max',
|
|
73
|
+
avg = 'avg',
|
|
74
|
+
sum = 'sum',
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const CLIST_AFUNCTIONS_ENUM_AS_OBJECT = enumToObject(CLIST_AFUNCTIONS_ENUM);
|
package/src/enums.ts
CHANGED
|
@@ -291,6 +291,7 @@ export enum EVENT_EXEC_STATUS_ENUM {
|
|
|
291
291
|
|
|
292
292
|
export const EVENT_EXEC_STATUS_AS_OBJECT = enumToObject(EVENT_EXEC_STATUS_ENUM);
|
|
293
293
|
|
|
294
|
+
// TODO removeme
|
|
294
295
|
export enum CLIST_NUMBER_OPERATOR_ENUM {
|
|
295
296
|
eq = 'eq',
|
|
296
297
|
gte = 'gte',
|
|
@@ -298,39 +299,39 @@ export enum CLIST_NUMBER_OPERATOR_ENUM {
|
|
|
298
299
|
lt = 'lt',
|
|
299
300
|
gt = 'gt',
|
|
300
301
|
}
|
|
301
|
-
|
|
302
|
+
// TODO removeme
|
|
302
303
|
export const CLIST_NUMBER_OPERATOR_ENUM_AS_OBJECT = enumToObject(CLIST_NUMBER_OPERATOR_ENUM);
|
|
303
|
-
|
|
304
|
+
// TODO removeme
|
|
304
305
|
export enum CLIST_STRING_OPERATOR_ENUM {
|
|
305
306
|
eq = 'eq',
|
|
306
307
|
consists = 'consists',
|
|
307
308
|
}
|
|
308
|
-
|
|
309
|
+
// TODO removeme
|
|
309
310
|
export const CLIST_STRING_OPERATOR_ENUM_AS_OBJECT = enumToObject(CLIST_STRING_OPERATOR_ENUM);
|
|
310
|
-
|
|
311
|
+
// TODO removeme
|
|
311
312
|
export enum CLIST_DATE_OPERATOR_ENUM {
|
|
312
313
|
eq = 'eq',
|
|
313
314
|
between = 'between',
|
|
314
315
|
}
|
|
315
|
-
|
|
316
|
+
// TODO removeme
|
|
316
317
|
export const CLIST_DATE_OPERATOR_ENUM_AS_OBJECT = enumToObject(CLIST_DATE_OPERATOR_ENUM);
|
|
317
|
-
|
|
318
|
+
// TODO removeme
|
|
318
319
|
export enum CLIST_TYPE_ENUM {
|
|
319
320
|
string = 'string',
|
|
320
321
|
number = 'number',
|
|
321
322
|
date = 'date',
|
|
322
323
|
}
|
|
323
|
-
|
|
324
|
+
// TODO removeme
|
|
324
325
|
export const CLIST_TYPE_ENUM_AS_OBJECT = enumToObject(CLIST_TYPE_ENUM);
|
|
325
|
-
|
|
326
|
+
// TODO removeme
|
|
326
327
|
export enum CLIST_CONDITION_ENUM {
|
|
327
328
|
and = 'and',
|
|
328
329
|
or = 'or',
|
|
329
330
|
not = 'not',
|
|
330
331
|
}
|
|
331
|
-
|
|
332
|
+
// TODO removeme
|
|
332
333
|
export const CLIST_CONDITION_ENUM_AS_OBJECT = enumToObject(CLIST_CONDITION_ENUM);
|
|
333
|
-
|
|
334
|
+
// TODO removeme
|
|
334
335
|
export enum CLIST_DATASOURCE_ENUM {
|
|
335
336
|
animals = 'animals',
|
|
336
337
|
events = 'events',
|
|
@@ -340,16 +341,16 @@ export enum CLIST_DATASOURCE_ENUM {
|
|
|
340
341
|
protocol = 'protocol',
|
|
341
342
|
treatment = 'treatment',
|
|
342
343
|
}
|
|
343
|
-
|
|
344
|
+
// TODO removeme
|
|
344
345
|
export const CLIST_DATASOURCE_ENUM_AS_OBJECT = enumToObject(CLIST_DATASOURCE_ENUM);
|
|
345
|
-
|
|
346
|
+
// TODO removeme
|
|
346
347
|
export enum CLIST_STATUS_ENUM {
|
|
347
348
|
working = 'working',
|
|
348
349
|
published = 'published',
|
|
349
350
|
}
|
|
350
|
-
|
|
351
|
+
// TODO removeme
|
|
351
352
|
export const CLIST_STATUS_ENUM_AS_OBJECT = enumToObject(CLIST_STATUS_ENUM);
|
|
352
|
-
|
|
353
|
+
// TODO removeme
|
|
353
354
|
export enum CLIST_AFUNCTIONS_ENUM {
|
|
354
355
|
count = 'count',
|
|
355
356
|
min = 'min',
|
|
@@ -357,7 +358,7 @@ export enum CLIST_AFUNCTIONS_ENUM {
|
|
|
357
358
|
avg = 'avg',
|
|
358
359
|
sum = 'sum',
|
|
359
360
|
}
|
|
360
|
-
|
|
361
|
+
// TODO removeme
|
|
361
362
|
export const CLIST_AFUNCTIONS_ENUM_AS_OBJECT = enumToObject(CLIST_AFUNCTIONS_ENUM);
|
|
362
363
|
|
|
363
364
|
export enum SUPPORTED_LANG_ENUM {
|
package/src/index.ts
CHANGED
|
@@ -3,9 +3,11 @@ import { BREED, BREED_AS_OBJECT } from './breed';
|
|
|
3
3
|
import * as typeDefinitions from './types';
|
|
4
4
|
import * as _rolePermissions from './role-permissions';
|
|
5
5
|
import * as _animalForEventFilters from './event';
|
|
6
|
+
import * as _clEnums from './custom-list';
|
|
6
7
|
|
|
7
8
|
export const enums = { ...dataEnums, BREED, BREED_AS_OBJECT };
|
|
8
9
|
export const rolePermissions = _rolePermissions;
|
|
9
10
|
export const types = typeDefinitions;
|
|
11
|
+
export const customListEnums = _clEnums;
|
|
10
12
|
|
|
11
13
|
export const animalForEventFilters = _animalForEventFilters;
|