UNPKG

@o3r/rules-engine

Version:

This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.

49 lines 1.78 kB
import { Operator, SupportedSimpleTypes, UnaryOperator } from '../operator.interface'; /** * Check if a variable is equal to a specific value * @title is equal to */ export declare const equals: Operator; /** * Check if a variable is different from a specific value * @title is not equal to */ export declare const notEquals: Operator; /** * Check if the variable's value is included in a specified list * @title is in */ export declare const inArray: Operator<SupportedSimpleTypes, SupportedSimpleTypes[]>; /** * Check if the variable's value is not included in the value list * @title is not in */ export declare const notInArray: Operator<SupportedSimpleTypes, SupportedSimpleTypes[]>; /** * Check if the text variable is part of the specified value * @title within */ export declare const inString: Operator<string, string>; /** * Check if the text variable is not part of the specified value * @title not within */ export declare const notInString: Operator<string, string>; /** * Check if the variable and its value are defined * @title is defined */ export declare const isDefined: UnaryOperator<any>; /** * Check if the variable and its value are undefined * @title is not defined */ export declare const isUndefined: UnaryOperator<any>; /** * Check if the text variable matches the specified RegExp pattern * @title matches the pattern */ export declare const matchesPattern: Operator<string, string>; /** List of all default basic operators */ export declare const basicOperators: (Operator<string, string, string, string> | Operator<unknown, unknown, unknown, unknown> | Operator<SupportedSimpleTypes, SupportedSimpleTypes[], SupportedSimpleTypes, SupportedSimpleTypes[]> | UnaryOperator<any>)[]; //# sourceMappingURL=basic.operators.d.ts.map