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

28 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-01-05 11:57:53 +01:00
/**
* Generated by orval v6.11.0 🍺
2023-01-05 11:57:53 +01:00
* Do not edit manually.
* Unleash API
* OpenAPI spec version: 4.22.0-beta.3
2023-01-05 11:57:53 +01:00
*/
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;
}