-
-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
frontend/src/openapi/models/featureSearchResponseSchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { FeatureSearchResponseSchemaDependenciesItem } from './featureSearchResponseSchemaDependenciesItem'; | ||
import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema'; | ||
import type { FeatureSearchResponseSchemaStrategiesItem } from './featureSearchResponseSchemaStrategiesItem'; | ||
import type { TagSchema } from './tagSchema'; | ||
import type { VariantSchema } from './variantSchema'; | ||
|
||
/** | ||
* A feature toggle definition | ||
*/ | ||
export interface FeatureSearchResponseSchema { | ||
/** `true` if the feature is archived */ | ||
archived?: boolean; | ||
/** The date the feature was archived */ | ||
archivedAt?: string | null; | ||
/** The list of child feature names. This is an experimental field and may change. */ | ||
children?: string[]; | ||
/** The date the feature was created */ | ||
createdAt?: string | null; | ||
/** The list of parent dependencies. This is an experimental field and may change. */ | ||
dependencies?: FeatureSearchResponseSchemaDependenciesItem[]; | ||
/** Detailed description of the feature */ | ||
description?: string | null; | ||
/** `true` if the feature is enabled, otherwise `false`. */ | ||
enabled?: boolean; | ||
/** The list of environments where the feature can be used */ | ||
environments?: FeatureEnvironmentSchema[]; | ||
/** `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; | ||
/** | ||
* The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema | ||
* @deprecated | ||
*/ | ||
lastSeenAt?: string | null; | ||
/** Unique feature name */ | ||
name: string; | ||
/** Name of the project the feature belongs to */ | ||
project?: string; | ||
/** The list of segments the feature is enabled for. */ | ||
segments?: string[]; | ||
/** `true` if the feature is stale based on the age and feature type, otherwise `false`. */ | ||
stale?: boolean; | ||
/** | ||
* This is a legacy field that will be deprecated | ||
* @deprecated | ||
*/ | ||
strategies?: FeatureSearchResponseSchemaStrategiesItem[]; | ||
/** The list of feature tags */ | ||
tags?: TagSchema[] | null; | ||
/** Type of the toggle e.g. experiment, kill-switch, release, operational, permission */ | ||
type?: string; | ||
/** | ||
* The list of feature variants | ||
* @deprecated | ||
*/ | ||
variants?: VariantSchema[]; | ||
} |
14 changes: 14 additions & 0 deletions
14
frontend/src/openapi/models/featureSearchResponseSchemaDependenciesItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type FeatureSearchResponseSchemaDependenciesItem = { | ||
/** Whether the parent feature is enabled or not */ | ||
enabled?: boolean; | ||
/** The name of the parent feature */ | ||
feature: string; | ||
/** The list of variants the parent feature should resolve to. Only valid when feature is enabled. */ | ||
variants?: string[]; | ||
}; |
7 changes: 7 additions & 0 deletions
7
frontend/src/openapi/models/featureSearchResponseSchemaStrategiesItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
export type FeatureSearchResponseSchemaStrategiesItem = { [key: string]: any }; |