2023-06-14 14:40:24 +02:00
|
|
|
/**
|
|
|
|
* Generated by Orval
|
|
|
|
* Do not edit manually.
|
|
|
|
* See `gen:api` script in package.json
|
|
|
|
*/
|
|
|
|
import type { AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload } from './advancedPlaygroundEnvironmentFeatureSchemaVariantPayload';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The feature variant you receive based on the provided context or the _disabled
|
|
|
|
variant_. If a feature is disabled or doesn't have any
|
|
|
|
variants, you would get the _disabled variant_.
|
2023-08-03 15:05:20 +02:00
|
|
|
Otherwise, you'll get one of the feature's defined variants.
|
2024-04-26 13:31:15 +02:00
|
|
|
* @nullable
|
2023-06-14 14:40:24 +02:00
|
|
|
*/
|
|
|
|
export type AdvancedPlaygroundEnvironmentFeatureSchemaVariant = {
|
|
|
|
/** Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false` */
|
|
|
|
enabled: boolean;
|
2024-01-24 09:12:07 +01:00
|
|
|
/** Whether the feature is enabled or not. If the feature is disabled, this property will be `false` */
|
|
|
|
feature_enabled?: boolean;
|
2024-05-23 12:37:56 +02:00
|
|
|
/** The variant's name. If there is no variant or if the flag is disabled, this will be `disabled` */
|
2023-12-04 20:49:49 +01:00
|
|
|
name: string;
|
2023-06-14 14:40:24 +02:00
|
|
|
/** An optional payload attached to the variant. */
|
|
|
|
payload?: AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload;
|
|
|
|
} | null;
|