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/createFeatureStrategySchema.ts

31 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-01-05 11:57:53 +01:00
/**
2023-03-15 13:30:07 +01:00
* Generated by Orval
2023-01-05 11:57:53 +01:00
* Do not edit manually.
2023-03-15 13:30:07 +01:00
* See `gen:api` script in package.json
2023-01-05 11:57:53 +01:00
*/
import type { ConstraintSchema } from './constraintSchema';
import type { CreateStrategyVariantSchema } from './createStrategyVariantSchema';
2023-01-05 11:57:53 +01:00
import type { ParametersSchema } from './parametersSchema';
/**
* Create a strategy configuration in a feature
*/
2023-01-05 11:57:53 +01:00
export interface CreateFeatureStrategySchema {
/** The name of the strategy type */
2023-01-05 11:57:53 +01:00
name: string;
/** A descriptive title for the strategy */
title?: string | null;
/** A toggle to disable the strategy. defaults to false. Disabled strategies are not evaluated or returned to the SDKs */
disabled?: boolean | null;
/** The order of the strategy in the list */
2023-01-05 11:57:53 +01:00
sortOrder?: number;
/** A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints */
2023-01-05 11:57:53 +01:00
constraints?: ConstraintSchema[];
/** Strategy level variants */
variants?: CreateStrategyVariantSchema[];
/** An object containing the parameters for the strategy */
2023-01-05 11:57:53 +01:00
parameters?: ParametersSchema;
2023-03-21 10:10:07 +01:00
/** Ids of segments to use for this strategy */
segments?: number[];
2023-01-05 11:57:53 +01:00
}