@allbin/entity-logic
Advanced tools
Comparing version 0.1.4 to 0.2.0
@@ -6,3 +6,2 @@ import { Entity, EntitySchema } from './types/schema'; | ||
execute: (entities: Entity[], filter: Filter) => Entity[]; | ||
validateSchema: (schema: EntitySchema) => void; | ||
validateCondition: (condtion: FilterCondition) => Operator; | ||
@@ -12,5 +11,6 @@ validateFilter: (filter: Filter) => Operator[]; | ||
} | ||
declare const validateSchema: (schema: EntitySchema) => void; | ||
declare const EntityLogic: (schema: EntitySchema) => EntityLogic; | ||
export * from './types/filter'; | ||
export * from './types/schema'; | ||
export { EntityLogic }; | ||
export { EntityLogic, validateSchema }; |
@@ -16,3 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EntityLogic = void 0; | ||
exports.validateSchema = exports.EntityLogic = void 0; | ||
var operators_1 = __importDefault(require("./operators")); | ||
@@ -98,2 +98,3 @@ var executeCondition = function (schemaPropsByKey, entities, condition) { | ||
}; | ||
exports.validateSchema = validateSchema; | ||
var validateFilterCondition = function (schemaPropsByKey, condition) { | ||
@@ -189,3 +190,2 @@ var _a; | ||
execute: function (entities, filter) { return executeFilter(propsByKey, entities, filter); }, | ||
validateSchema: function (schema) { return validateSchema(schema); }, | ||
validateCondition: function (condition) { | ||
@@ -192,0 +192,0 @@ return validateFilterCondition(propsByKey, condition); |
{ | ||
"name": "@allbin/entity-logic", | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"description": "Logic solver for mobilix filters", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62138