mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-16 00:06:40 +01:00
28 lines
1.6 KiB
TypeScript
28 lines
1.6 KiB
TypeScript
|
/**
|
||
|
* Generated by orval v6.10.3 🍺
|
||
|
* Do not edit manually.
|
||
|
* Unleash API
|
||
|
* OpenAPI spec version: 4.20.0-beta.1
|
||
|
*/
|
||
|
import type { PlaygroundConstraintSchemaOperator } from './playgroundConstraintSchemaOperator';
|
||
|
|
||
|
/**
|
||
|
* A strategy constraint. For more information, refer to [the strategy constraint reference documentation](https://docs.getunleash.io/reference/strategy-constraints)
|
||
|
*/
|
||
|
export interface PlaygroundConstraintSchema {
|
||
|
/** The name of the context field that this constraint should apply to. */
|
||
|
contextName: string;
|
||
|
/** The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators). */
|
||
|
operator: PlaygroundConstraintSchemaOperator;
|
||
|
/** Whether the operator should be case sensitive or not. Defaults to `false` (being case sensitive). */
|
||
|
caseInsensitive?: boolean;
|
||
|
/** Whether the result should be negated or not. If `true`, will turn a `true` result into a `false` result and vice versa. */
|
||
|
inverted?: boolean;
|
||
|
/** The context values that should be used for constraint evaluation. Use this property instead of `value` for properties that accept multiple values. */
|
||
|
values?: string[];
|
||
|
/** The context value that should be used for constraint evaluation. Use this property instead of `values` for properties that only accept single values. */
|
||
|
value?: string;
|
||
|
/** Whether this was evaluated as true or false. */
|
||
|
result: boolean;
|
||
|
}
|