From 3da655102e5dbac00dbf5b826e683eb3c5a57b10 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Tue, 5 Dec 2023 12:03:11 +0200 Subject: [PATCH] feat: segment cell and oravl types --- .../models/featureSearchResponseSchema.ts | 63 +++++++++++++++++++ ...ureSearchResponseSchemaDependenciesItem.ts | 14 +++++ ...atureSearchResponseSchemaStrategiesItem.ts | 7 +++ 3 files changed, 84 insertions(+) create mode 100644 frontend/src/openapi/models/featureSearchResponseSchema.ts create mode 100644 frontend/src/openapi/models/featureSearchResponseSchemaDependenciesItem.ts create mode 100644 frontend/src/openapi/models/featureSearchResponseSchemaStrategiesItem.ts diff --git a/frontend/src/openapi/models/featureSearchResponseSchema.ts b/frontend/src/openapi/models/featureSearchResponseSchema.ts new file mode 100644 index 000000000000..d11d5ac8264a --- /dev/null +++ b/frontend/src/openapi/models/featureSearchResponseSchema.ts @@ -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[]; +} diff --git a/frontend/src/openapi/models/featureSearchResponseSchemaDependenciesItem.ts b/frontend/src/openapi/models/featureSearchResponseSchemaDependenciesItem.ts new file mode 100644 index 000000000000..f8f3e92885ff --- /dev/null +++ b/frontend/src/openapi/models/featureSearchResponseSchemaDependenciesItem.ts @@ -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[]; +}; diff --git a/frontend/src/openapi/models/featureSearchResponseSchemaStrategiesItem.ts b/frontend/src/openapi/models/featureSearchResponseSchemaStrategiesItem.ts new file mode 100644 index 000000000000..106ce402ec4f --- /dev/null +++ b/frontend/src/openapi/models/featureSearchResponseSchemaStrategiesItem.ts @@ -0,0 +1,7 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type FeatureSearchResponseSchemaStrategiesItem = { [key: string]: any };