Skip to content

Commit

Permalink
feat: segment cell and oravl types
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Dec 5, 2023
1 parent 673fd47 commit 3da6551
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
63 changes: 63 additions & 0 deletions frontend/src/openapi/models/featureSearchResponseSchema.ts
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[];
}
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[];
};
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 };

0 comments on commit 3da6551

Please sign in to comment.