1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-16 00:06:40 +01:00
unleash.unleash/frontend/src/openapi/models/playgroundConstraintSchema.ts
2023-03-15 13:30:07 +01:00

27 lines
1.5 KiB
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
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;
}