@molochko-dev/data 1.4.93 → 1.4.94

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.
@@ -1,5 +1,6 @@
1
1
  export declare enum EQ_PROFILE {
2
- animal = "animal"
2
+ animal = "animal",
3
+ animalReport = "animalReport"
3
4
  }
4
5
  export declare enum EQ_STATUS_ENUM {
5
6
  working = "working",
@@ -4,6 +4,7 @@ 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) {
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.93",
3
+ "version": "1.4.94",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  export enum EQ_PROFILE {
2
- animal = 'animal',
2
+ animal = 'animal',
3
+ animalReport = 'animalReport'
3
4
  }
4
5
 
5
6
  export enum EQ_STATUS_ENUM {
@@ -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
+ }