@molochko-dev/data 1.4.93 → 1.4.95
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/easy-query/enums.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EQ_STATUS_ENUM = exports.EQ_PROFILE = void 0;
|
|
3
|
+
exports.EQ_FORBIDDEN_WORDS = exports.EQ_STATUS_ENUM = exports.EQ_PROFILE = void 0;
|
|
4
4
|
var EQ_PROFILE;
|
|
5
5
|
(function (EQ_PROFILE) {
|
|
6
6
|
EQ_PROFILE["animal"] = "animal";
|
|
7
|
+
EQ_PROFILE["animalReport"] = "animalReport";
|
|
7
8
|
})(EQ_PROFILE = exports.EQ_PROFILE || (exports.EQ_PROFILE = {}));
|
|
8
9
|
var EQ_STATUS_ENUM;
|
|
9
10
|
(function (EQ_STATUS_ENUM) {
|
|
10
11
|
EQ_STATUS_ENUM["working"] = "working";
|
|
11
12
|
EQ_STATUS_ENUM["published"] = "published";
|
|
12
13
|
})(EQ_STATUS_ENUM = exports.EQ_STATUS_ENUM || (exports.EQ_STATUS_ENUM = {}));
|
|
14
|
+
exports.EQ_FORBIDDEN_WORDS = ['*', 'insert', 'update', 'delete', 'drop', 'create', 'alter', 'change'];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IEQField {
|
|
2
|
+
field: string;
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface IEQEventField extends IEQField {
|
|
9
|
+
treatment?: IEQField;
|
|
10
|
+
protocol?: IEQField;
|
|
11
|
+
seedBank?: IEQField;
|
|
12
|
+
employee?: IEQField;
|
|
13
|
+
}
|
|
14
|
+
export interface IEQItem {
|
|
15
|
+
animal: Record<string, IEQField>;
|
|
16
|
+
metrics: Record<string, IEQField>;
|
|
17
|
+
events: Record<string, IEQEventField>[];
|
|
18
|
+
}
|
|
19
|
+
export interface IEQResponse {
|
|
20
|
+
count: number;
|
|
21
|
+
data: IEQItem[];
|
|
22
|
+
}
|
package/package.json
CHANGED
package/src/easy-query/enums.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export enum EQ_PROFILE {
|
|
2
|
-
|
|
2
|
+
animal = 'animal',
|
|
3
|
+
animalReport = 'animalReport'
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
export enum EQ_STATUS_ENUM {
|
|
6
7
|
working = 'working',
|
|
7
8
|
published = 'published',
|
|
8
9
|
}
|
|
10
|
+
|
|
11
|
+
export const EQ_FORBIDDEN_WORDS = ['*','insert', 'update', 'delete', 'drop', 'create', 'alter', 'change']
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IEQField {
|
|
2
|
+
field: string
|
|
3
|
+
value: string
|
|
4
|
+
label: string
|
|
5
|
+
type: string
|
|
6
|
+
visible: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface IEQEventField extends IEQField{
|
|
10
|
+
treatment?: IEQField
|
|
11
|
+
protocol?: IEQField
|
|
12
|
+
seedBank?: IEQField
|
|
13
|
+
employee?: IEQField
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface IEQItem {
|
|
17
|
+
animal: Record<string, IEQField>
|
|
18
|
+
metrics: Record<string, IEQField>
|
|
19
|
+
events: Record<string, IEQEventField>[]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface IEQResponse {
|
|
23
|
+
count: number
|
|
24
|
+
data: IEQItem[]
|
|
25
|
+
}
|