/
featureSchema.ts
46 lines (45 loc) · 1.61 KB
/
featureSchema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema';
import type { VariantSchema } from './variantSchema';
import type { FeatureSchemaStrategiesItem } from './featureSchemaStrategiesItem';
import type { TagSchema } from './tagSchema';
export interface FeatureSchema {
/** Unique feature name */
name: string;
/** Type of the toggle e.g. experiment, kill-switch, release, operational, permission */
type?: string;
/** Detailed description of the feature */
description?: string | null;
/** `true` if the feature is archived */
archived?: boolean;
/** Name of the project the feature belongs to */
project?: string;
enabled?: boolean;
/** `true` if the feature is stale based on the age and feature type, otherwise `false`. */
stale?: boolean;
/** `true` if the feature was favorited, otherwise `false`. */
favorite?: boolean;
/** `true` if the impression data collection is enabled for the feature, otherwise `false`. */
impressionData?: boolean;
createdAt?: string | null;
archivedAt?: string | null;
lastSeenAt?: string | null;
/** The list of environments where the feature can be used */
environments?: FeatureEnvironmentSchema[];
/**
* The list of feature variants
* @deprecated
*/
variants?: VariantSchema[];
/**
* This is a legacy field that will be deprecated
* @deprecated
*/
strategies?: FeatureSchemaStrategiesItem[];
/** The list of feature tags */
tags?: TagSchema[] | null;
}