mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-29 01:15:48 +02:00
chore: generate orval types (#6699)
This commit is contained in:
parent
06eda20344
commit
93395d2c3f
@ -46,6 +46,7 @@ test('Display minimal overview information', () => {
|
|||||||
tags: [],
|
tags: [],
|
||||||
description: '',
|
description: '',
|
||||||
type: '',
|
type: '',
|
||||||
|
dependencyType: null,
|
||||||
project: 'my_project',
|
project: 'my_project',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
@ -308,6 +308,12 @@ export const ProjectFeatureToggles = ({
|
|||||||
type: '-',
|
type: '-',
|
||||||
name: `Feature name ${index}`,
|
name: `Feature name ${index}`,
|
||||||
createdAt: new Date().toISOString(),
|
createdAt: new Date().toISOString(),
|
||||||
|
dependencyType: null,
|
||||||
|
favorite: false,
|
||||||
|
impressionData: false,
|
||||||
|
project: 'project',
|
||||||
|
segments: [],
|
||||||
|
stale: false,
|
||||||
environments: [
|
environments: [
|
||||||
{
|
{
|
||||||
name: 'production',
|
name: 'production',
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* Do not edit manually.
|
* Do not edit manually.
|
||||||
* See `gen:api` script in package.json
|
* See `gen:api` script in package.json
|
||||||
*/
|
*/
|
||||||
|
import type { FeatureSearchResponseSchemaDependencyType } from './featureSearchResponseSchemaDependencyType';
|
||||||
import type { FeatureSearchEnvironmentSchema } from './featureSearchEnvironmentSchema';
|
import type { FeatureSearchEnvironmentSchema } from './featureSearchEnvironmentSchema';
|
||||||
import type { FeatureSearchResponseSchemaStrategiesItem } from './featureSearchResponseSchemaStrategiesItem';
|
import type { FeatureSearchResponseSchemaStrategiesItem } from './featureSearchResponseSchemaStrategiesItem';
|
||||||
import type { TagSchema } from './tagSchema';
|
import type { TagSchema } from './tagSchema';
|
||||||
@ -16,22 +17,18 @@ export interface FeatureSearchResponseSchema {
|
|||||||
archived?: boolean;
|
archived?: boolean;
|
||||||
/** The date the feature was archived */
|
/** The date the feature was archived */
|
||||||
archivedAt?: string | null;
|
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 */
|
/** The date the feature was created */
|
||||||
createdAt?: string | null;
|
createdAt: string | null;
|
||||||
/** The list of parent dependencies. This is an experimental field and may change. */
|
/** The type of dependency. 'parent' means that the feature is a parent feature, 'child' means that the feature is a child feature. */
|
||||||
dependencyType?: string;
|
dependencyType: FeatureSearchResponseSchemaDependencyType;
|
||||||
/** Detailed description of the feature */
|
/** Detailed description of the feature */
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
/** `true` if the feature is enabled, otherwise `false`. */
|
|
||||||
enabled?: boolean;
|
|
||||||
/** The list of environments where the feature can be used */
|
/** The list of environments where the feature can be used */
|
||||||
environments?: FeatureSearchEnvironmentSchema[];
|
environments: FeatureSearchEnvironmentSchema[];
|
||||||
/** `true` if the feature was favorited, otherwise `false`. */
|
/** `true` if the feature was favorited, otherwise `false`. */
|
||||||
favorite?: boolean;
|
favorite: boolean;
|
||||||
/** `true` if the impression data collection is enabled for the feature, otherwise `false`. */
|
/** `true` if the impression data collection is enabled for the feature, otherwise `false`. */
|
||||||
impressionData?: boolean;
|
impressionData: boolean;
|
||||||
/**
|
/**
|
||||||
* The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema
|
* The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema
|
||||||
* @deprecated
|
* @deprecated
|
||||||
@ -40,11 +37,11 @@ export interface FeatureSearchResponseSchema {
|
|||||||
/** Unique feature name */
|
/** Unique feature name */
|
||||||
name: string;
|
name: string;
|
||||||
/** Name of the project the feature belongs to */
|
/** Name of the project the feature belongs to */
|
||||||
project?: string;
|
project: string;
|
||||||
/** The list of segments the feature is enabled for. */
|
/** The list of segments the feature is enabled for. */
|
||||||
segments?: string[];
|
segments: string[];
|
||||||
/** `true` if the feature is stale based on the age and feature type, otherwise `false`. */
|
/** `true` if the feature is stale based on the age and feature type, otherwise `false`. */
|
||||||
stale?: boolean;
|
stale: boolean;
|
||||||
/**
|
/**
|
||||||
* This is a legacy field that will be deprecated
|
* This is a legacy field that will be deprecated
|
||||||
* @deprecated
|
* @deprecated
|
||||||
@ -53,7 +50,7 @@ export interface FeatureSearchResponseSchema {
|
|||||||
/** The list of feature tags */
|
/** The list of feature tags */
|
||||||
tags?: TagSchema[] | null;
|
tags?: TagSchema[] | null;
|
||||||
/** Type of the toggle e.g. experiment, kill-switch, release, operational, permission */
|
/** Type of the toggle e.g. experiment, kill-switch, release, operational, permission */
|
||||||
type?: string;
|
type: string;
|
||||||
/**
|
/**
|
||||||
* The list of feature variants
|
* The list of feature variants
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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[];
|
|
||||||
};
|
|
@ -0,0 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* Generated by Orval
|
||||||
|
* Do not edit manually.
|
||||||
|
* See `gen:api` script in package.json
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of dependency. 'parent' means that the feature is a parent feature, 'child' means that the feature is a child feature.
|
||||||
|
*/
|
||||||
|
export type FeatureSearchResponseSchemaDependencyType =
|
||||||
|
| (typeof FeatureSearchResponseSchemaDependencyType)[keyof typeof FeatureSearchResponseSchemaDependencyType]
|
||||||
|
| null;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||||
|
export const FeatureSearchResponseSchemaDependencyType = {
|
||||||
|
parent: 'parent',
|
||||||
|
child: 'child',
|
||||||
|
} as const;
|
@ -541,7 +541,7 @@ export * from './featureSchemaDependenciesItem';
|
|||||||
export * from './featureSchemaStrategiesItem';
|
export * from './featureSchemaStrategiesItem';
|
||||||
export * from './featureSearchEnvironmentSchema';
|
export * from './featureSearchEnvironmentSchema';
|
||||||
export * from './featureSearchResponseSchema';
|
export * from './featureSearchResponseSchema';
|
||||||
export * from './featureSearchResponseSchemaDependenciesItem';
|
export * from './featureSearchResponseSchemaDependencyType';
|
||||||
export * from './featureSearchResponseSchemaStrategiesItem';
|
export * from './featureSearchResponseSchemaStrategiesItem';
|
||||||
export * from './featureStrategySchema';
|
export * from './featureStrategySchema';
|
||||||
export * from './featureStrategySegmentSchema';
|
export * from './featureStrategySegmentSchema';
|
||||||
|
Loading…
Reference in New Issue
Block a user