@molochko-dev/data 1.4.47 → 1.4.49

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 CHANGED
@@ -265,12 +265,42 @@ export declare enum SUBTASK_STATUS_ENUM {
265
265
  ready = "ready",
266
266
  outdated = "outdated"
267
267
  }
268
+ export declare const SUBTASK_STATUS_AS_OBJECT: {
269
+ [key: string]: string;
270
+ };
268
271
  export declare enum EVENT_EXEC_STATUS_ENUM {
269
272
  waiting = "waiting",
270
273
  done = "done",
271
274
  cancel = "cancel",
272
275
  block = "block"
273
276
  }
274
- export declare const SUBTASK_STATUS_AS_OBJECT: {
277
+ export declare const EVENT_EXEC_STATUS_AS_OBJECT: {
278
+ [key: string]: string;
279
+ };
280
+ export declare const REPORT_OPERATOR_ENUM: {
281
+ eq: string;
282
+ gte: string;
283
+ lte: string;
284
+ lt: string;
285
+ gt: string;
286
+ between: string;
287
+ };
288
+ export declare const REPORT_OPERATOR_ENUM_AS_OBJECT: {
289
+ [key: string]: string;
290
+ };
291
+ export declare const REPORT_TYPE_ENUM: {
292
+ string: string;
293
+ number: string;
294
+ date: string;
295
+ datetime: string;
296
+ };
297
+ export declare const REPORT_TYPE_ENUM_AS_OBJECT: {
298
+ [key: string]: string;
299
+ };
300
+ export declare const REPORT_CONDITION_ENUM: {
301
+ and: string;
302
+ or: string;
303
+ };
304
+ export declare const REPORT_CONDITION_ENUM_AS_OBJECT: {
275
305
  [key: string]: string;
276
306
  };
package/dist/enums.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUBTASK_STATUS_AS_OBJECT = exports.EVENT_EXEC_STATUS_ENUM = exports.SUBTASK_STATUS_ENUM = exports.MEDMETHOD_ENUM_AS_OBJECT = exports.MEDMETHOD_ENUM = exports.DISEASES_AS_OBJECT = exports.DISEASES_ENUM = exports.TRANSFEROUT_REASON_AS_OBJECT = exports.TRANSFEROUT_REASON_ENUM = exports.TRANSFEROUT_TYPES_AS_OBJECT = exports.TRANSFEROUT_TYPES_ENUM = exports.ACCESS_ENUM_AS_OBJECT = exports.ACCESS_ENUM = exports.USER_PERMISSION_METHOD_AS_OBJECT = exports.USER_PERMISSION_METHOD_ENUM = exports.USER_PERMISSION_AS_OBJECT = exports.USER_PERMISSION_ENUM = 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.COW_STATUS = exports.BULL_STATUS = 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.REPORT_TYPE_ENUM = exports.REPORT_OPERATOR_ENUM_AS_OBJECT = exports.REPORT_OPERATOR_ENUM = exports.EVENT_EXEC_STATUS_AS_OBJECT = exports.EVENT_EXEC_STATUS_ENUM = exports.SUBTASK_STATUS_AS_OBJECT = exports.SUBTASK_STATUS_ENUM = exports.MEDMETHOD_ENUM_AS_OBJECT = exports.MEDMETHOD_ENUM = exports.DISEASES_AS_OBJECT = exports.DISEASES_ENUM = exports.TRANSFEROUT_REASON_AS_OBJECT = exports.TRANSFEROUT_REASON_ENUM = exports.TRANSFEROUT_TYPES_AS_OBJECT = exports.TRANSFEROUT_TYPES_ENUM = exports.ACCESS_ENUM_AS_OBJECT = exports.ACCESS_ENUM = exports.USER_PERMISSION_METHOD_AS_OBJECT = exports.USER_PERMISSION_METHOD_ENUM = exports.USER_PERMISSION_AS_OBJECT = exports.USER_PERMISSION_ENUM = 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.COW_STATUS = exports.BULL_STATUS = 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
+ exports.REPORT_CONDITION_ENUM_AS_OBJECT = exports.REPORT_CONDITION_ENUM = exports.REPORT_TYPE_ENUM_AS_OBJECT = void 0;
4
5
  const helpers_1 = require("./helpers");
5
6
  exports.BCRYPT_SALT = 12;
6
7
  var SYSTEM_USER_ROLES_ENUM;
@@ -261,6 +262,7 @@ var SUBTASK_STATUS_ENUM;
261
262
  SUBTASK_STATUS_ENUM["ready"] = "ready";
262
263
  SUBTASK_STATUS_ENUM["outdated"] = "outdated";
263
264
  })(SUBTASK_STATUS_ENUM = exports.SUBTASK_STATUS_ENUM || (exports.SUBTASK_STATUS_ENUM = {}));
265
+ exports.SUBTASK_STATUS_AS_OBJECT = (0, helpers_1.enumToObject)(SUBTASK_STATUS_ENUM);
264
266
  var EVENT_EXEC_STATUS_ENUM;
265
267
  (function (EVENT_EXEC_STATUS_ENUM) {
266
268
  EVENT_EXEC_STATUS_ENUM["waiting"] = "waiting";
@@ -268,4 +270,25 @@ var EVENT_EXEC_STATUS_ENUM;
268
270
  EVENT_EXEC_STATUS_ENUM["cancel"] = "cancel";
269
271
  EVENT_EXEC_STATUS_ENUM["block"] = "block";
270
272
  })(EVENT_EXEC_STATUS_ENUM = exports.EVENT_EXEC_STATUS_ENUM || (exports.EVENT_EXEC_STATUS_ENUM = {}));
271
- exports.SUBTASK_STATUS_AS_OBJECT = (0, helpers_1.enumToObject)(SUBTASK_STATUS_ENUM);
273
+ exports.EVENT_EXEC_STATUS_AS_OBJECT = (0, helpers_1.enumToObject)(EVENT_EXEC_STATUS_ENUM);
274
+ exports.REPORT_OPERATOR_ENUM = {
275
+ eq: 'eq',
276
+ gte: 'gte',
277
+ lte: 'lte',
278
+ lt: 'lt',
279
+ gt: '>',
280
+ between: 'between',
281
+ };
282
+ exports.REPORT_OPERATOR_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(exports.REPORT_OPERATOR_ENUM);
283
+ exports.REPORT_TYPE_ENUM = {
284
+ string: 'string',
285
+ number: 'number',
286
+ date: 'date',
287
+ datetime: 'datetime',
288
+ };
289
+ exports.REPORT_TYPE_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(exports.REPORT_TYPE_ENUM);
290
+ exports.REPORT_CONDITION_ENUM = {
291
+ and: 'and',
292
+ or: 'or',
293
+ };
294
+ exports.REPORT_CONDITION_ENUM_AS_OBJECT = (0, helpers_1.enumToObject)(exports.REPORT_CONDITION_ENUM);
package/dist/index.d.ts CHANGED
@@ -89,10 +89,40 @@ export declare const enums: {
89
89
  [key: string]: string;
90
90
  };
91
91
  SUBTASK_STATUS_ENUM: typeof dataEnums.SUBTASK_STATUS_ENUM;
92
- EVENT_EXEC_STATUS_ENUM: typeof dataEnums.EVENT_EXEC_STATUS_ENUM;
93
92
  SUBTASK_STATUS_AS_OBJECT: {
94
93
  [key: string]: string;
95
94
  };
95
+ EVENT_EXEC_STATUS_ENUM: typeof dataEnums.EVENT_EXEC_STATUS_ENUM;
96
+ EVENT_EXEC_STATUS_AS_OBJECT: {
97
+ [key: string]: string;
98
+ };
99
+ REPORT_OPERATOR_ENUM: {
100
+ eq: string;
101
+ gte: string;
102
+ lte: string;
103
+ lt: string;
104
+ gt: string;
105
+ between: string;
106
+ };
107
+ REPORT_OPERATOR_ENUM_AS_OBJECT: {
108
+ [key: string]: string;
109
+ };
110
+ REPORT_TYPE_ENUM: {
111
+ string: string;
112
+ number: string;
113
+ date: string;
114
+ datetime: string;
115
+ };
116
+ REPORT_TYPE_ENUM_AS_OBJECT: {
117
+ [key: string]: string;
118
+ };
119
+ REPORT_CONDITION_ENUM: {
120
+ and: string;
121
+ or: string;
122
+ };
123
+ REPORT_CONDITION_ENUM_AS_OBJECT: {
124
+ [key: string]: string;
125
+ };
96
126
  };
97
127
  export declare const rolePermissions: typeof _rolePermissions;
98
128
  export declare const types: typeof typeDefinitions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.47",
3
+ "version": "1.4.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
package/src/enums.ts CHANGED
@@ -280,6 +280,8 @@ export enum SUBTASK_STATUS_ENUM {
280
280
  outdated = 'outdated',
281
281
  }
282
282
 
283
+ export const SUBTASK_STATUS_AS_OBJECT = enumToObject(SUBTASK_STATUS_ENUM);
284
+
283
285
  export enum EVENT_EXEC_STATUS_ENUM {
284
286
  waiting = 'waiting',
285
287
  done = 'done',
@@ -287,4 +289,30 @@ export enum EVENT_EXEC_STATUS_ENUM {
287
289
  block = 'block',
288
290
  }
289
291
 
290
- export const SUBTASK_STATUS_AS_OBJECT = enumToObject(SUBTASK_STATUS_ENUM);
292
+ export const EVENT_EXEC_STATUS_AS_OBJECT = enumToObject(EVENT_EXEC_STATUS_ENUM);
293
+
294
+ export const REPORT_OPERATOR_ENUM = {
295
+ eq: 'eq',
296
+ gte: 'gte',
297
+ lte: 'lte',
298
+ lt: 'lt',
299
+ gt: '>',
300
+ between: 'between',
301
+ };
302
+
303
+ export const REPORT_OPERATOR_ENUM_AS_OBJECT = enumToObject(REPORT_OPERATOR_ENUM);
304
+
305
+ export const REPORT_TYPE_ENUM = {
306
+ string: 'string',
307
+ number: 'number',
308
+ date: 'date',
309
+ datetime: 'datetime',
310
+ };
311
+ export const REPORT_TYPE_ENUM_AS_OBJECT = enumToObject(REPORT_TYPE_ENUM);
312
+
313
+ export const REPORT_CONDITION_ENUM = {
314
+ and: 'and',
315
+ or: 'or',
316
+ };
317
+
318
+ export const REPORT_CONDITION_ENUM_AS_OBJECT = enumToObject(REPORT_CONDITION_ENUM);