From 751bc465d6574b5c750adeb538bef8d60a00b08a Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Mon, 2 Oct 2023 12:35:20 +0200 Subject: [PATCH] feat: generate orval types with dependent features (#4902) --- .gitignore | 3 + .../useDependentFeaturesApi.ts | 7 +- .../openapi/models/accessOverviewSchema.ts | 14 ++++ .../openapi/models/addFeatureDependency401.ts | 14 ++++ .../openapi/models/addFeatureDependency403.ts | 14 ++++ .../openapi/models/addFeatureDependency404.ts | 14 ++++ ...ancedPlaygroundEnvironmentFeatureSchema.ts | 4 +- .../changeRequestCreateFeatureSchema.ts | 35 ++------ .../changeRequestCreateFeatureSchemaOneOf.ts | 2 + ...ngeRequestCreateFeatureSchemaOneOfEight.ts | 2 + ...angeRequestCreateFeatureSchemaOneOfFour.ts | 2 + ...geRequestCreateFeatureSchemaOneOfOneone.ts | 2 + ...geRequestCreateFeatureSchemaOneOfOnesix.ts | 2 + ...RequestCreateFeatureSchemaOneOfOnethree.ts | 2 + ...hangeRequestCreateFeatureSchemaOneOfSix.ts | 2 + .../models/changeRequestCreateSchema.ts | 22 ++++- .../models/changeRequestCreateSchemaOneOf.ts | 13 +++ .../changeRequestCreateSchemaOneOfAction.ts | 16 ++++ .../changeRequestCreateSchemaOneOfNine.ts | 18 ++++ ...hangeRequestCreateSchemaOneOfNineAction.ts | 16 ++++ .../changeRequestCreateSchemaOneOfOneeight.ts | 18 ++++ ...eRequestCreateSchemaOneOfOneeightAction.ts | 16 ++++ ...RequestCreateSchemaOneOfOneeightPayload.ts | 10 +++ .../changeRequestCreateSchemaOneOfOneone.ts | 18 ++++ ...ngeRequestCreateSchemaOneOfOneoneAction.ts | 16 ++++ .../changeRequestCreateSchemaOneOfOnesix.ts | 16 ++++ ...ngeRequestCreateSchemaOneOfOnesixAction.ts | 16 ++++ .../changeRequestCreateSchemaOneOfOnethree.ts | 18 ++++ ...eRequestCreateSchemaOneOfOnethreeAction.ts | 16 ++++ ...RequestCreateSchemaOneOfOnethreePayload.ts | 10 +++ .../changeRequestCreateSchemaOneOfSix.ts | 18 ++++ ...changeRequestCreateSchemaOneOfSixAction.ts | 16 ++++ ...hangeRequestCreateSchemaOneOfSixPayload.ts | 10 +++ .../changeRequestCreateSchemaOneOfThree.ts | 14 ++++ ...angeRequestCreateSchemaOneOfThreeAction.ts | 16 ++++ ...ngeRequestCreateSchemaOneOfThreePayload.ts | 13 +++ .../changeRequestCreateSchemaOneOfTwoone.ts | 18 ++++ ...ngeRequestCreateSchemaOneOfTwooneAction.ts | 16 ++++ .../changeRequestOneOrManyCreateSchema.ts | 19 ++++- ...changeRequestOneOrManyCreateSchemaOneOf.ts | 13 +++ ...RequestOneOrManyCreateSchemaOneOfAction.ts | 16 ++++ ...geRequestOneOrManyCreateSchemaOneOfNine.ts | 18 ++++ ...estOneOrManyCreateSchemaOneOfNineAction.ts | 16 ++++ ...questOneOrManyCreateSchemaOneOfOneeight.ts | 18 ++++ ...neOrManyCreateSchemaOneOfOneeightAction.ts | 16 ++++ ...eOrManyCreateSchemaOneOfOneeightPayload.ts | 10 +++ ...RequestOneOrManyCreateSchemaOneOfOneone.ts | 18 ++++ ...tOneOrManyCreateSchemaOneOfOneoneAction.ts | 16 ++++ ...RequestOneOrManyCreateSchemaOneOfOnesix.ts | 16 ++++ ...tOneOrManyCreateSchemaOneOfOnesixAction.ts | 16 ++++ ...questOneOrManyCreateSchemaOneOfOnethree.ts | 18 ++++ ...neOrManyCreateSchemaOneOfOnethreeAction.ts | 16 ++++ ...eOrManyCreateSchemaOneOfOnethreePayload.ts | 10 +++ ...ngeRequestOneOrManyCreateSchemaOneOfSix.ts | 18 ++++ ...uestOneOrManyCreateSchemaOneOfSixAction.ts | 16 ++++ ...estOneOrManyCreateSchemaOneOfSixPayload.ts | 10 +++ ...eRequestOneOrManyCreateSchemaOneOfThree.ts | 14 ++++ ...stOneOrManyCreateSchemaOneOfThreeAction.ts | 16 ++++ ...tOneOrManyCreateSchemaOneOfThreePayload.ts | 13 +++ ...RequestOneOrManyCreateSchemaOneOfTwoone.ts | 18 ++++ ...tOneOrManyCreateSchemaOneOfTwooneAction.ts | 16 ++++ .../src/openapi/models/clientFeatureSchema.ts | 3 + .../models/createDependentFeatureSchema.ts | 17 ++++ .../src/openapi/models/createProjectSchema.ts | 2 - .../openapi/models/createProjectSchemaMode.ts | 1 + .../models/createRoleWithPermissionsSchema.ts | 17 ++-- .../createRoleWithPermissionsSchemaOneOf.ts | 18 ++++ ...reateRoleWithPermissionsSchemaOneOfFour.ts | 18 ++++ ...missionsSchemaOneOfFourPermissionsItem.ts} | 4 +- ...eRoleWithPermissionsSchemaOneOfFourType.ts | 16 ++++ ...thPermissionsSchemaOneOfPermissionsItem.ts | 12 +++ ...reateRoleWithPermissionsSchemaOneOfType.ts | 17 ++++ .../createRoleWithPermissionsSchemaType.ts | 17 ---- .../models/deleteFeatureDependencies401.ts | 14 ++++ .../models/deleteFeatureDependencies403.ts | 14 ++++ .../models/deleteFeatureDependencies404.ts | 14 ++++ .../models/deleteFeatureDependency401.ts | 14 ++++ .../models/deleteFeatureDependency403.ts | 14 ++++ .../models/deleteFeatureDependency404.ts | 14 ++++ .../openapi/models/dependentFeatureSchema.ts | 17 ++++ .../src/openapi/models/eventSchemaType.ts | 4 + .../src/openapi/models/exportQuerySchema.ts | 14 +--- .../openapi/models/exportQuerySchemaOneOf.ts | 4 + .../models/exportQuerySchemaOneOfTwo.ts | 4 + frontend/src/openapi/models/featureSchema.ts | 5 ++ .../models/featureSchemaDependenciesItem.ts | 14 ++++ .../openapi/models/getAccessOverview401.ts | 14 ++++ .../openapi/models/getAccessOverview403.ts | 14 ++++ .../openapi/models/getAccessOverview415.ts | 14 ++++ .../models/healthOverviewSchemaMode.ts | 1 + .../openapi/models/healthReportSchemaMode.ts | 1 + frontend/src/openapi/models/index.ts | 82 ++++++++++++++++++- .../instanceAdminStatsSchemaActiveUsers.ts | 2 + .../openapi/models/listParentOptions401.ts | 14 ++++ .../openapi/models/listParentOptions403.ts | 14 ++++ .../openapi/models/listParentOptions404.ts | 14 ++++ .../models/parentFeatureOptionsSchema.ts | 10 +++ .../models/projectCreatedSchemaMode.ts | 1 + .../models/projectOverviewSchemaMode.ts | 1 + .../src/openapi/models/projectSchemaMode.ts | 1 + .../openapi/models/sdkFlatContextSchema.ts | 27 ++++++ .../openapi/models/searchEventsSchemaType.ts | 4 + .../updateProjectEnterpriseSettings400.ts | 14 ++++ .../updateProjectEnterpriseSettings401.ts | 14 ++++ .../updateProjectEnterpriseSettings403.ts | 14 ++++ .../updateProjectEnterpriseSettings404.ts | 14 ++++ .../updateProjectEnterpriseSettings415.ts | 14 ++++ .../updateProjectEnterpriseSettingsSchema.ts | 16 ++++ ...dateProjectEnterpriseSettingsSchemaMode.ts | 18 ++++ .../src/openapi/models/updateProjectSchema.ts | 5 ++ .../openapi/models/updateProjectSchemaMode.ts | 18 ++++ .../src/openapi/models/userAccessSchema.ts | 27 ++++++ .../openapi/spec/sdk-flat-context-schema.ts | 2 +- 113 files changed, 1407 insertions(+), 87 deletions(-) create mode 100644 frontend/src/openapi/models/accessOverviewSchema.ts create mode 100644 frontend/src/openapi/models/addFeatureDependency401.ts create mode 100644 frontend/src/openapi/models/addFeatureDependency403.ts create mode 100644 frontend/src/openapi/models/addFeatureDependency404.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfNine.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeight.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightPayload.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneone.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesix.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethree.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreePayload.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfSix.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixPayload.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreePayload.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwoone.ts create mode 100644 frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOf.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNine.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeight.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightPayload.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneone.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesix.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethree.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreePayload.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSix.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixPayload.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThree.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreePayload.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwoone.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts create mode 100644 frontend/src/openapi/models/createDependentFeatureSchema.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOf.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFour.ts rename frontend/src/openapi/models/{createRoleWithPermissionsSchemaPermissionsItem.ts => createRoleWithPermissionsSchemaOneOfFourPermissionsItem.ts} (67%) create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourType.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfPermissionsItem.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfType.ts delete mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts create mode 100644 frontend/src/openapi/models/deleteFeatureDependencies401.ts create mode 100644 frontend/src/openapi/models/deleteFeatureDependencies403.ts create mode 100644 frontend/src/openapi/models/deleteFeatureDependencies404.ts create mode 100644 frontend/src/openapi/models/deleteFeatureDependency401.ts create mode 100644 frontend/src/openapi/models/deleteFeatureDependency403.ts create mode 100644 frontend/src/openapi/models/deleteFeatureDependency404.ts create mode 100644 frontend/src/openapi/models/dependentFeatureSchema.ts create mode 100644 frontend/src/openapi/models/featureSchemaDependenciesItem.ts create mode 100644 frontend/src/openapi/models/getAccessOverview401.ts create mode 100644 frontend/src/openapi/models/getAccessOverview403.ts create mode 100644 frontend/src/openapi/models/getAccessOverview415.ts create mode 100644 frontend/src/openapi/models/listParentOptions401.ts create mode 100644 frontend/src/openapi/models/listParentOptions403.ts create mode 100644 frontend/src/openapi/models/listParentOptions404.ts create mode 100644 frontend/src/openapi/models/parentFeatureOptionsSchema.ts create mode 100644 frontend/src/openapi/models/sdkFlatContextSchema.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettings400.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettings401.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettings403.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettings404.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettings415.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettingsSchema.ts create mode 100644 frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts create mode 100644 frontend/src/openapi/models/updateProjectSchemaMode.ts create mode 100644 frontend/src/openapi/models/userAccessSchema.ts diff --git a/.gitignore b/.gitignore index 8c1878af2dae..d5d7377f94ee 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,9 @@ package-lock.json # Ignore frontend build frontend/build +# Ignore orval apis +frontend/src/openapi/apis + # Generated docs website/docs/reference/api/**/sidebar.js website/docs/reference/api/**/**.info.mdx diff --git a/frontend/src/hooks/api/actions/useDependentFeaturesApi/useDependentFeaturesApi.ts b/frontend/src/hooks/api/actions/useDependentFeaturesApi/useDependentFeaturesApi.ts index 62fd7f7d7c8f..955832e8fceb 100644 --- a/frontend/src/hooks/api/actions/useDependentFeaturesApi/useDependentFeaturesApi.ts +++ b/frontend/src/hooks/api/actions/useDependentFeaturesApi/useDependentFeaturesApi.ts @@ -2,11 +2,8 @@ import useAPI from '../useApi/useApi'; import useToast from '../../../useToast'; import { formatUnknownError } from '../../../../utils/formatUnknownError'; import { useCallback } from 'react'; +import { DependentFeatureSchema } from '../../../../openapi'; -// TODO: generate from orval -interface IParentFeaturePayload { - feature: string; -} export const useDependentFeaturesApi = (project: string) => { const { makeRequest, createRequest, errors, loading } = useAPI({ propagateErrors: true, @@ -15,7 +12,7 @@ export const useDependentFeaturesApi = (project: string) => { const addDependency = async ( childFeature: string, - parentFeaturePayload: IParentFeaturePayload + parentFeaturePayload: DependentFeatureSchema ) => { const req = createRequest( `/api/admin/projects/${project}/features/${childFeature}/dependencies`, diff --git a/frontend/src/openapi/models/accessOverviewSchema.ts b/frontend/src/openapi/models/accessOverviewSchema.ts new file mode 100644 index 000000000000..7d9c7ecc2595 --- /dev/null +++ b/frontend/src/openapi/models/accessOverviewSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { UserAccessSchema } from './userAccessSchema'; + +/** + * Data containing an overview of all the projects and groups users have access to + */ +export interface AccessOverviewSchema { + /** A list of user access details */ + overview?: UserAccessSchema[]; +} diff --git a/frontend/src/openapi/models/addFeatureDependency401.ts b/frontend/src/openapi/models/addFeatureDependency401.ts new file mode 100644 index 000000000000..7dd2c833c3a9 --- /dev/null +++ b/frontend/src/openapi/models/addFeatureDependency401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFeatureDependency401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addFeatureDependency403.ts b/frontend/src/openapi/models/addFeatureDependency403.ts new file mode 100644 index 000000000000..b4223b3b74bf --- /dev/null +++ b/frontend/src/openapi/models/addFeatureDependency403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFeatureDependency403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addFeatureDependency404.ts b/frontend/src/openapi/models/addFeatureDependency404.ts new file mode 100644 index 000000000000..a3f7df3c5ba6 --- /dev/null +++ b/frontend/src/openapi/models/addFeatureDependency404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFeatureDependency404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts index 9d537afe25f0..129e8c7587f2 100644 --- a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts @@ -3,7 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { SdkContextSchema } from './sdkContextSchema'; +import type { SdkFlatContextSchema } from './sdkFlatContextSchema'; import type { AdvancedPlaygroundEnvironmentFeatureSchemaStrategies } from './advancedPlaygroundEnvironmentFeatureSchemaStrategies'; import type { AdvancedPlaygroundEnvironmentFeatureSchemaVariant } from './advancedPlaygroundEnvironmentFeatureSchemaVariant'; import type { VariantSchema } from './variantSchema'; @@ -17,7 +17,7 @@ export interface AdvancedPlaygroundEnvironmentFeatureSchema { /** The feature's environment. */ environment: string; /** The context to use when evaluating toggles */ - context: SdkContextSchema; + context: SdkFlatContextSchema; /** The ID of the project that contains this feature. */ projectId: string; /** Feature's applicable strategies and cumulative results of the strategies */ diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchema.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchema.ts index 25480f1ab0db..7a45f552bc75 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchema.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchema.ts @@ -15,31 +15,10 @@ import type { ChangeRequestCreateFeatureSchemaOneOfOnesix } from './changeReques * Data used to create a [change request](https://docs.getunleash.io/reference/change-requests) for a single feature change. */ export type ChangeRequestCreateFeatureSchema = - | (ChangeRequestCreateFeatureSchemaOneOf & { - /** The name of the feature that this change applies to. */ - feature: string; - }) - | (ChangeRequestCreateFeatureSchemaOneOfFour & { - /** The name of the feature that this change applies to. */ - feature: string; - }) - | (ChangeRequestCreateFeatureSchemaOneOfSix & { - /** The name of the feature that this change applies to. */ - feature: string; - }) - | (ChangeRequestCreateFeatureSchemaOneOfEight & { - /** The name of the feature that this change applies to. */ - feature: string; - }) - | (ChangeRequestCreateFeatureSchemaOneOfOneone & { - /** The name of the feature that this change applies to. */ - feature: string; - }) - | (ChangeRequestCreateFeatureSchemaOneOfOnethree & { - /** The name of the feature that this change applies to. */ - feature: string; - }) - | (ChangeRequestCreateFeatureSchemaOneOfOnesix & { - /** The name of the feature that this change applies to. */ - feature: string; - }); + | ChangeRequestCreateFeatureSchemaOneOf + | ChangeRequestCreateFeatureSchemaOneOfFour + | ChangeRequestCreateFeatureSchemaOneOfSix + | ChangeRequestCreateFeatureSchemaOneOfEight + | ChangeRequestCreateFeatureSchemaOneOfOneone + | ChangeRequestCreateFeatureSchemaOneOfOnethree + | ChangeRequestCreateFeatureSchemaOneOfOnesix; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOf.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOf.ts index 42fa939b504e..e9e064c076ec 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOf.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOf.ts @@ -10,6 +10,8 @@ import type { ChangeRequestCreateFeatureSchemaOneOfPayload } from './changeReque * Update the enabled state for a feature. */ export type ChangeRequestCreateFeatureSchemaOneOf = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfAction; payload: ChangeRequestCreateFeatureSchemaOneOfPayload; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEight.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEight.ts index 5004f0b2a906..8bcf5203409f 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEight.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEight.ts @@ -10,6 +10,8 @@ import type { ChangeRequestCreateFeatureSchemaOneOfEightPayload } from './change * Delete a strategy from this feature. */ export type ChangeRequestCreateFeatureSchemaOneOfEight = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfEightAction; payload: ChangeRequestCreateFeatureSchemaOneOfEightPayload; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFour.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFour.ts index 7baaa00c5416..56650dfa1ad8 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFour.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFour.ts @@ -10,6 +10,8 @@ import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema' * Add a strategy to the feature */ export type ChangeRequestCreateFeatureSchemaOneOfFour = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfFourAction; payload: CreateFeatureStrategySchema; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneone.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneone.ts index c35a27244b07..2df0e82a2936 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneone.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneone.ts @@ -9,6 +9,8 @@ import type { ChangeRequestCreateFeatureSchemaOneOfOneoneAction } from './change * Archive a feature. */ export type ChangeRequestCreateFeatureSchemaOneOfOneone = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfOneoneAction; }; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesix.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesix.ts index 4c684e124bbb..69c0a2c2bbb1 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesix.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesix.ts @@ -10,6 +10,8 @@ import type { SetStrategySortOrderSchema } from './setStrategySortOrderSchema'; * Reorder strategies for this feature */ export type ChangeRequestCreateFeatureSchemaOneOfOnesix = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfOnesixAction; payload: SetStrategySortOrderSchema; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethree.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethree.ts index 3ee1dd7d9f1d..dd5f89d51bed 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethree.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethree.ts @@ -10,6 +10,8 @@ import type { ChangeRequestCreateFeatureSchemaOneOfOnethreePayload } from './cha * Update variants for this feature. */ export type ChangeRequestCreateFeatureSchemaOneOfOnethree = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfOnethreeAction; payload: ChangeRequestCreateFeatureSchemaOneOfOnethreePayload; diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSix.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSix.ts index d82d847ba6aa..cdea0fa2629e 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSix.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSix.ts @@ -10,6 +10,8 @@ import type { UpdateFeatureStrategySchema } from './updateFeatureStrategySchema' * Update a strategy belonging to this feature. */ export type ChangeRequestCreateFeatureSchemaOneOfSix = { + /** The name of the feature that this change applies to. */ + feature: string; /** The name of this action. */ action: ChangeRequestCreateFeatureSchemaOneOfSixAction; payload: UpdateFeatureStrategySchema; diff --git a/frontend/src/openapi/models/changeRequestCreateSchema.ts b/frontend/src/openapi/models/changeRequestCreateSchema.ts index b6abab23d214..b8e1fe3788aa 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchema.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchema.ts @@ -3,12 +3,26 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ChangeRequestCreateSegmentSchema } from './changeRequestCreateSegmentSchema'; -import type { ChangeRequestCreateFeatureSchema } from './changeRequestCreateFeatureSchema'; +import type { ChangeRequestCreateSchemaOneOf } from './changeRequestCreateSchemaOneOf'; +import type { ChangeRequestCreateSchemaOneOfThree } from './changeRequestCreateSchemaOneOfThree'; +import type { ChangeRequestCreateSchemaOneOfSix } from './changeRequestCreateSchemaOneOfSix'; +import type { ChangeRequestCreateSchemaOneOfNine } from './changeRequestCreateSchemaOneOfNine'; +import type { ChangeRequestCreateSchemaOneOfOneone } from './changeRequestCreateSchemaOneOfOneone'; +import type { ChangeRequestCreateSchemaOneOfOnethree } from './changeRequestCreateSchemaOneOfOnethree'; +import type { ChangeRequestCreateSchemaOneOfOnesix } from './changeRequestCreateSchemaOneOfOnesix'; +import type { ChangeRequestCreateSchemaOneOfOneeight } from './changeRequestCreateSchemaOneOfOneeight'; +import type { ChangeRequestCreateSchemaOneOfTwoone } from './changeRequestCreateSchemaOneOfTwoone'; /** * Data used to create a [change request](https://docs.getunleash.io/reference/change-requests) for a single feature or segment change. */ export type ChangeRequestCreateSchema = - | ChangeRequestCreateSegmentSchema - | ChangeRequestCreateFeatureSchema; + | ChangeRequestCreateSchemaOneOf + | ChangeRequestCreateSchemaOneOfThree + | ChangeRequestCreateSchemaOneOfSix + | ChangeRequestCreateSchemaOneOfNine + | ChangeRequestCreateSchemaOneOfOneone + | ChangeRequestCreateSchemaOneOfOnethree + | ChangeRequestCreateSchemaOneOfOnesix + | ChangeRequestCreateSchemaOneOfOneeight + | ChangeRequestCreateSchemaOneOfTwoone; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts new file mode 100644 index 000000000000..f7cd2033feca --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOf.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfAction } from './changeRequestCreateSchemaOneOfAction'; +import type { UpsertSegmentSchema } from './upsertSegmentSchema'; + +export type ChangeRequestCreateSchemaOneOf = { + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfAction; + payload: UpsertSegmentSchema; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts new file mode 100644 index 000000000000..82065de305eb --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfAction = + typeof ChangeRequestCreateSchemaOneOfAction[keyof typeof ChangeRequestCreateSchemaOneOfAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfAction = { + updateSegment: 'updateSegment', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNine.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNine.ts new file mode 100644 index 000000000000..1225e7571c8a --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNine.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfNineAction } from './changeRequestCreateSchemaOneOfNineAction'; +import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema'; + +/** + * Add a strategy to the feature + */ +export type ChangeRequestCreateSchemaOneOfNine = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfNineAction; + payload: CreateFeatureStrategySchema; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts new file mode 100644 index 000000000000..6b3f2d886aad --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfNineAction = + typeof ChangeRequestCreateSchemaOneOfNineAction[keyof typeof ChangeRequestCreateSchemaOneOfNineAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfNineAction = { + addStrategy: 'addStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeight.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeight.ts new file mode 100644 index 000000000000..ae5d08f38729 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeight.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfOneeightAction } from './changeRequestCreateSchemaOneOfOneeightAction'; +import type { ChangeRequestCreateSchemaOneOfOneeightPayload } from './changeRequestCreateSchemaOneOfOneeightPayload'; + +/** + * Update variants for this feature. + */ +export type ChangeRequestCreateSchemaOneOfOneeight = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfOneeightAction; + payload: ChangeRequestCreateSchemaOneOfOneeightPayload; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts new file mode 100644 index 000000000000..70b0c4096898 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfOneeightAction = + typeof ChangeRequestCreateSchemaOneOfOneeightAction[keyof typeof ChangeRequestCreateSchemaOneOfOneeightAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfOneeightAction = { + patchVariant: 'patchVariant', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightPayload.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightPayload.ts new file mode 100644 index 000000000000..8a822d552f73 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { VariantSchema } from './variantSchema'; + +export type ChangeRequestCreateSchemaOneOfOneeightPayload = { + variants: VariantSchema[]; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneone.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneone.ts new file mode 100644 index 000000000000..c1ed82e4b80a --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneone.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfOneoneAction } from './changeRequestCreateSchemaOneOfOneoneAction'; +import type { UpdateFeatureStrategySchema } from './updateFeatureStrategySchema'; + +/** + * Update a strategy belonging to this feature. + */ +export type ChangeRequestCreateSchemaOneOfOneone = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfOneoneAction; + payload: UpdateFeatureStrategySchema; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts new file mode 100644 index 000000000000..e67ee1c37c10 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfOneoneAction = + typeof ChangeRequestCreateSchemaOneOfOneoneAction[keyof typeof ChangeRequestCreateSchemaOneOfOneoneAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfOneoneAction = { + updateStrategy: 'updateStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesix.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesix.ts new file mode 100644 index 000000000000..ed97d3fa61e4 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesix.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfOnesixAction } from './changeRequestCreateSchemaOneOfOnesixAction'; + +/** + * Archive a feature. + */ +export type ChangeRequestCreateSchemaOneOfOnesix = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfOnesixAction; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts new file mode 100644 index 000000000000..baa9f42d097c --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfOnesixAction = + typeof ChangeRequestCreateSchemaOneOfOnesixAction[keyof typeof ChangeRequestCreateSchemaOneOfOnesixAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfOnesixAction = { + archiveFeature: 'archiveFeature', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethree.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethree.ts new file mode 100644 index 000000000000..1680ee24410a --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethree.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfOnethreeAction } from './changeRequestCreateSchemaOneOfOnethreeAction'; +import type { ChangeRequestCreateSchemaOneOfOnethreePayload } from './changeRequestCreateSchemaOneOfOnethreePayload'; + +/** + * Delete a strategy from this feature. + */ +export type ChangeRequestCreateSchemaOneOfOnethree = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfOnethreeAction; + payload: ChangeRequestCreateSchemaOneOfOnethreePayload; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts new file mode 100644 index 000000000000..ec626c60fa85 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfOnethreeAction = + typeof ChangeRequestCreateSchemaOneOfOnethreeAction[keyof typeof ChangeRequestCreateSchemaOneOfOnethreeAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfOnethreeAction = { + deleteStrategy: 'deleteStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreePayload.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreePayload.ts new file mode 100644 index 000000000000..e3b42db41f83 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreePayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeRequestCreateSchemaOneOfOnethreePayload = { + /** The ID of the strategy to update. */ + id: string; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSix.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSix.ts new file mode 100644 index 000000000000..168217c9ea32 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSix.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfSixAction } from './changeRequestCreateSchemaOneOfSixAction'; +import type { ChangeRequestCreateSchemaOneOfSixPayload } from './changeRequestCreateSchemaOneOfSixPayload'; + +/** + * Update the enabled state for a feature. + */ +export type ChangeRequestCreateSchemaOneOfSix = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfSixAction; + payload: ChangeRequestCreateSchemaOneOfSixPayload; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts new file mode 100644 index 000000000000..174e0c001ecf --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfSixAction = + typeof ChangeRequestCreateSchemaOneOfSixAction[keyof typeof ChangeRequestCreateSchemaOneOfSixAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfSixAction = { + updateEnabled: 'updateEnabled', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixPayload.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixPayload.ts new file mode 100644 index 000000000000..b1d28ee2acd5 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeRequestCreateSchemaOneOfSixPayload = { + /** The new state of the feature. */ + enabled: boolean; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts new file mode 100644 index 000000000000..5063c817b38a --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThree.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfThreeAction } from './changeRequestCreateSchemaOneOfThreeAction'; +import type { ChangeRequestCreateSchemaOneOfThreePayload } from './changeRequestCreateSchemaOneOfThreePayload'; + +export type ChangeRequestCreateSchemaOneOfThree = { + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfThreeAction; + /** Required data to delete a segment. */ + payload: ChangeRequestCreateSchemaOneOfThreePayload; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts new file mode 100644 index 000000000000..5c305cc7b146 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfThreeAction = + typeof ChangeRequestCreateSchemaOneOfThreeAction[keyof typeof ChangeRequestCreateSchemaOneOfThreeAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfThreeAction = { + deleteSegment: 'deleteSegment', +} as const; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreePayload.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreePayload.ts new file mode 100644 index 000000000000..5e84a4f5e6b9 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreePayload.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Required data to delete a segment. + */ +export type ChangeRequestCreateSchemaOneOfThreePayload = { + /** The ID of the segment to delete. */ + id: number; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwoone.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwoone.ts new file mode 100644 index 000000000000..5c403cee30ac --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwoone.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchemaOneOfTwooneAction } from './changeRequestCreateSchemaOneOfTwooneAction'; +import type { SetStrategySortOrderSchema } from './setStrategySortOrderSchema'; + +/** + * Reorder strategies for this feature + */ +export type ChangeRequestCreateSchemaOneOfTwoone = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestCreateSchemaOneOfTwooneAction; + payload: SetStrategySortOrderSchema; +}; diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts new file mode 100644 index 000000000000..17d96cadfa84 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestCreateSchemaOneOfTwooneAction = + typeof ChangeRequestCreateSchemaOneOfTwooneAction[keyof typeof ChangeRequestCreateSchemaOneOfTwooneAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestCreateSchemaOneOfTwooneAction = { + reorderStrategy: 'reorderStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts index e3f215a707ac..fdba149d0e34 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts @@ -3,11 +3,28 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { ChangeRequestOneOrManyCreateSchemaOneOf } from './changeRequestOneOrManyCreateSchemaOneOf'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfThree } from './changeRequestOneOrManyCreateSchemaOneOfThree'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfSix } from './changeRequestOneOrManyCreateSchemaOneOfSix'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfNine } from './changeRequestOneOrManyCreateSchemaOneOfNine'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfOneone } from './changeRequestOneOrManyCreateSchemaOneOfOneone'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfOnethree } from './changeRequestOneOrManyCreateSchemaOneOfOnethree'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfOnesix } from './changeRequestOneOrManyCreateSchemaOneOfOnesix'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfOneeight } from './changeRequestOneOrManyCreateSchemaOneOfOneeight'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfTwoone } from './changeRequestOneOrManyCreateSchemaOneOfTwoone'; import type { ChangeRequestCreateSchema } from './changeRequestCreateSchema'; /** * Either a single change or a list of changes to create a change request from. */ export type ChangeRequestOneOrManyCreateSchema = - | ChangeRequestCreateSchema + | ChangeRequestOneOrManyCreateSchemaOneOf + | ChangeRequestOneOrManyCreateSchemaOneOfThree + | ChangeRequestOneOrManyCreateSchemaOneOfSix + | ChangeRequestOneOrManyCreateSchemaOneOfNine + | ChangeRequestOneOrManyCreateSchemaOneOfOneone + | ChangeRequestOneOrManyCreateSchemaOneOfOnethree + | ChangeRequestOneOrManyCreateSchemaOneOfOnesix + | ChangeRequestOneOrManyCreateSchemaOneOfOneeight + | ChangeRequestOneOrManyCreateSchemaOneOfTwoone | ChangeRequestCreateSchema[]; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOf.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOf.ts new file mode 100644 index 000000000000..399282e9f8b8 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOf.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfAction } from './changeRequestOneOrManyCreateSchemaOneOfAction'; +import type { UpsertSegmentSchema } from './upsertSegmentSchema'; + +export type ChangeRequestOneOrManyCreateSchemaOneOf = { + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfAction; + payload: UpsertSegmentSchema; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts new file mode 100644 index 000000000000..b2c69c8af73d --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfAction = { + updateSegment: 'updateSegment', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNine.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNine.ts new file mode 100644 index 000000000000..b44aae1da3d1 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNine.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfNineAction } from './changeRequestOneOrManyCreateSchemaOneOfNineAction'; +import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema'; + +/** + * Add a strategy to the feature + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfNine = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfNineAction; + payload: CreateFeatureStrategySchema; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts new file mode 100644 index 000000000000..4e777fe0225c --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfNineAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfNineAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfNineAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfNineAction = { + addStrategy: 'addStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeight.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeight.ts new file mode 100644 index 000000000000..ca9ead179c17 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeight.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction } from './changeRequestOneOrManyCreateSchemaOneOfOneeightAction'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfOneeightPayload } from './changeRequestOneOrManyCreateSchemaOneOfOneeightPayload'; + +/** + * Update variants for this feature. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOneeight = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction; + payload: ChangeRequestOneOrManyCreateSchemaOneOfOneeightPayload; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts new file mode 100644 index 000000000000..05faff3f68e7 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction = { + patchVariant: 'patchVariant', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightPayload.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightPayload.ts new file mode 100644 index 000000000000..e9f2ba20ab27 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { VariantSchema } from './variantSchema'; + +export type ChangeRequestOneOrManyCreateSchemaOneOfOneeightPayload = { + variants: VariantSchema[]; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneone.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneone.ts new file mode 100644 index 000000000000..277b416aa259 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneone.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction } from './changeRequestOneOrManyCreateSchemaOneOfOneoneAction'; +import type { UpdateFeatureStrategySchema } from './updateFeatureStrategySchema'; + +/** + * Update a strategy belonging to this feature. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOneone = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction; + payload: UpdateFeatureStrategySchema; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts new file mode 100644 index 000000000000..336a5a7ba4c7 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction = { + updateStrategy: 'updateStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesix.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesix.ts new file mode 100644 index 000000000000..ae01698984a1 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesix.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction } from './changeRequestOneOrManyCreateSchemaOneOfOnesixAction'; + +/** + * Archive a feature. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOnesix = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts new file mode 100644 index 000000000000..ccf359f2231b --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction = { + archiveFeature: 'archiveFeature', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethree.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethree.ts new file mode 100644 index 000000000000..e6a02937b0d6 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethree.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction } from './changeRequestOneOrManyCreateSchemaOneOfOnethreeAction'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfOnethreePayload } from './changeRequestOneOrManyCreateSchemaOneOfOnethreePayload'; + +/** + * Delete a strategy from this feature. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOnethree = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction; + payload: ChangeRequestOneOrManyCreateSchemaOneOfOnethreePayload; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts new file mode 100644 index 000000000000..b3f823bde94f --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction = { + deleteStrategy: 'deleteStrategy', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreePayload.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreePayload.ts new file mode 100644 index 000000000000..705682f7990c --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreePayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeRequestOneOrManyCreateSchemaOneOfOnethreePayload = { + /** The ID of the strategy to update. */ + id: string; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSix.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSix.ts new file mode 100644 index 000000000000..29b665ad8427 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSix.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfSixAction } from './changeRequestOneOrManyCreateSchemaOneOfSixAction'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfSixPayload } from './changeRequestOneOrManyCreateSchemaOneOfSixPayload'; + +/** + * Update the enabled state for a feature. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfSix = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfSixAction; + payload: ChangeRequestOneOrManyCreateSchemaOneOfSixPayload; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts new file mode 100644 index 000000000000..71d18ef35435 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfSixAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfSixAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfSixAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfSixAction = { + updateEnabled: 'updateEnabled', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixPayload.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixPayload.ts new file mode 100644 index 000000000000..fe9c084d87f2 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeRequestOneOrManyCreateSchemaOneOfSixPayload = { + /** The new state of the feature. */ + enabled: boolean; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThree.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThree.ts new file mode 100644 index 000000000000..21ecb66f7e1c --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThree.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfThreeAction } from './changeRequestOneOrManyCreateSchemaOneOfThreeAction'; +import type { ChangeRequestOneOrManyCreateSchemaOneOfThreePayload } from './changeRequestOneOrManyCreateSchemaOneOfThreePayload'; + +export type ChangeRequestOneOrManyCreateSchemaOneOfThree = { + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfThreeAction; + /** Required data to delete a segment. */ + payload: ChangeRequestOneOrManyCreateSchemaOneOfThreePayload; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts new file mode 100644 index 000000000000..81d1f5b5ae92 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfThreeAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfThreeAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfThreeAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfThreeAction = { + deleteSegment: 'deleteSegment', +} as const; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreePayload.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreePayload.ts new file mode 100644 index 000000000000..ff5a86f315fe --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreePayload.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Required data to delete a segment. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfThreePayload = { + /** The ID of the segment to delete. */ + id: number; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwoone.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwoone.ts new file mode 100644 index 000000000000..07d23cb50ed8 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwoone.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction } from './changeRequestOneOrManyCreateSchemaOneOfTwooneAction'; +import type { SetStrategySortOrderSchema } from './setStrategySortOrderSchema'; + +/** + * Reorder strategies for this feature + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfTwoone = { + /** The name of the feature that this change applies to. */ + feature: string; + /** The name of this action. */ + action: ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction; + payload: SetStrategySortOrderSchema; +}; diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts new file mode 100644 index 000000000000..a40cf1209eea --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of this action. + */ +export type ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction = + typeof ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction = { + reorderStrategy: 'reorderStrategy', +} as const; diff --git a/frontend/src/openapi/models/clientFeatureSchema.ts b/frontend/src/openapi/models/clientFeatureSchema.ts index 548034fdd875..8eeee10e0dbb 100644 --- a/frontend/src/openapi/models/clientFeatureSchema.ts +++ b/frontend/src/openapi/models/clientFeatureSchema.ts @@ -5,6 +5,7 @@ */ import type { FeatureStrategySchema } from './featureStrategySchema'; import type { VariantSchema } from './variantSchema'; +import type { DependentFeatureSchema } from './dependentFeatureSchema'; /** * Feature toggle configuration used by SDKs to evaluate state of a toggle @@ -28,4 +29,6 @@ export interface ClientFeatureSchema { strategies?: FeatureStrategySchema[]; /** [Variants](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) configured for this toggle */ variants?: VariantSchema[] | null; + /** Feature dependencies for this toggle */ + dependencies?: DependentFeatureSchema[]; } diff --git a/frontend/src/openapi/models/createDependentFeatureSchema.ts b/frontend/src/openapi/models/createDependentFeatureSchema.ts new file mode 100644 index 000000000000..1d6a07cf51a9 --- /dev/null +++ b/frontend/src/openapi/models/createDependentFeatureSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Feature dependency on a parent feature in write model + */ +export interface CreateDependentFeatureSchema { + /** The name of the feature we depend on. */ + feature: string; + /** Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default. */ + enabled?: boolean; + /** The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status. */ + variants?: string[]; +} diff --git a/frontend/src/openapi/models/createProjectSchema.ts b/frontend/src/openapi/models/createProjectSchema.ts index bc3ae2ef5bbb..a0db3dff8130 100644 --- a/frontend/src/openapi/models/createProjectSchema.ts +++ b/frontend/src/openapi/models/createProjectSchema.ts @@ -15,8 +15,6 @@ export interface CreateProjectSchema { name: string; /** The project's description. */ description?: string | null; - /** A limit on the number of features allowed in the project. `null` if no limit. */ - featureLimit?: number | null; /** A mode of the project affecting what actions are possible in this project */ mode?: CreateProjectSchemaMode; /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ diff --git a/frontend/src/openapi/models/createProjectSchemaMode.ts b/frontend/src/openapi/models/createProjectSchemaMode.ts index 62668abced20..9b7866417245 100644 --- a/frontend/src/openapi/models/createProjectSchemaMode.ts +++ b/frontend/src/openapi/models/createProjectSchemaMode.ts @@ -14,4 +14,5 @@ export type CreateProjectSchemaMode = export const CreateProjectSchemaMode = { open: 'open', protected: 'protected', + private: 'private', } as const; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts index 3badc6dfd5c4..ed57f4a68d57 100644 --- a/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts @@ -3,19 +3,12 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { CreateRoleWithPermissionsSchemaType } from './createRoleWithPermissionsSchemaType'; -import type { CreateRoleWithPermissionsSchemaPermissionsItem } from './createRoleWithPermissionsSchemaPermissionsItem'; +import type { CreateRoleWithPermissionsSchemaOneOf } from './createRoleWithPermissionsSchemaOneOf'; +import type { CreateRoleWithPermissionsSchemaOneOfFour } from './createRoleWithPermissionsSchemaOneOfFour'; /** * A write model for the custom role and permissions to allow Unleash to decide what actions a role holder is allowed to perform */ -export interface CreateRoleWithPermissionsSchema { - /** The name of the custom role */ - name: string; - /** A more detailed description of the custom role and what use it's intended for */ - description?: string; - /** A custom role can either be a global/root custom role (applies to all projects) or a project custom role */ - type?: CreateRoleWithPermissionsSchemaType; - /** A list of permissions assigned to this role */ - permissions?: CreateRoleWithPermissionsSchemaPermissionsItem[]; -} +export type CreateRoleWithPermissionsSchema = + | CreateRoleWithPermissionsSchemaOneOf + | CreateRoleWithPermissionsSchemaOneOfFour; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOf.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOf.ts new file mode 100644 index 000000000000..dfdfe20bf4d2 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOf.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateRoleWithPermissionsSchemaOneOfType } from './createRoleWithPermissionsSchemaOneOfType'; +import type { CreateRoleWithPermissionsSchemaOneOfPermissionsItem } from './createRoleWithPermissionsSchemaOneOfPermissionsItem'; + +export type CreateRoleWithPermissionsSchemaOneOf = { + /** The name of the custom role */ + name: string; + /** A more detailed description of the custom role and what use it's intended for */ + description?: string; + /** [Custom root roles](https://docs.getunleash.io/reference/rbac#custom-root-roles) are root roles with a custom set of permissions. */ + type: CreateRoleWithPermissionsSchemaOneOfType; + /** A list of permissions assigned to this role */ + permissions?: CreateRoleWithPermissionsSchemaOneOfPermissionsItem[]; +}; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFour.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFour.ts new file mode 100644 index 000000000000..4affde870604 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFour.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateRoleWithPermissionsSchemaOneOfFourType } from './createRoleWithPermissionsSchemaOneOfFourType'; +import type { CreateRoleWithPermissionsSchemaOneOfFourPermissionsItem } from './createRoleWithPermissionsSchemaOneOfFourPermissionsItem'; + +export type CreateRoleWithPermissionsSchemaOneOfFour = { + /** The name of the custom role */ + name: string; + /** A more detailed description of the custom role and what use it's intended for */ + description?: string; + /** [Custom project roles](https://docs.getunleash.io/reference/rbac#custom-project-roles) contain a specific set of permissions for project resources. */ + type?: CreateRoleWithPermissionsSchemaOneOfFourType; + /** A list of permissions assigned to this role */ + permissions?: CreateRoleWithPermissionsSchemaOneOfFourPermissionsItem[]; +}; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourPermissionsItem.ts similarity index 67% rename from frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts rename to frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourPermissionsItem.ts index 6183f384250d..145706b5ed65 100644 --- a/frontend/src/openapi/models/createRoleWithPermissionsSchemaPermissionsItem.ts +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourPermissionsItem.ts @@ -4,9 +4,11 @@ * See `gen:api` script in package.json */ -export type CreateRoleWithPermissionsSchemaPermissionsItem = { +export type CreateRoleWithPermissionsSchemaOneOfFourPermissionsItem = { /** The id of the permission */ id: number; + /** The name of the permission */ + name?: string; /** The environments of the permission if the permission is environment specific */ environment?: string; }; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourType.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourType.ts new file mode 100644 index 000000000000..ca89c2a81073 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfFourType.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * [Custom project roles](https://docs.getunleash.io/reference/rbac#custom-project-roles) contain a specific set of permissions for project resources. + */ +export type CreateRoleWithPermissionsSchemaOneOfFourType = + typeof CreateRoleWithPermissionsSchemaOneOfFourType[keyof typeof CreateRoleWithPermissionsSchemaOneOfFourType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const CreateRoleWithPermissionsSchemaOneOfFourType = { + custom: 'custom', +} as const; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfPermissionsItem.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfPermissionsItem.ts new file mode 100644 index 000000000000..bfb3c06cdd00 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfPermissionsItem.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateRoleWithPermissionsSchemaOneOfPermissionsItem = { + /** The name of the permission */ + name: string; + /** The environments of the permission if the permission is environment specific */ + environment?: string; +}; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfType.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfType.ts new file mode 100644 index 000000000000..b1a6fbbf7d1d --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaOneOfType.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * [Custom root roles](https://docs.getunleash.io/reference/rbac#custom-root-roles) are root roles with a custom set of permissions. + */ +export type CreateRoleWithPermissionsSchemaOneOfType = + typeof CreateRoleWithPermissionsSchemaOneOfType[keyof typeof CreateRoleWithPermissionsSchemaOneOfType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const CreateRoleWithPermissionsSchemaOneOfType = { + 'root-custom': 'root-custom', + custom: 'custom', +} as const; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts deleted file mode 100644 index b504dc32b46c..000000000000 --- a/frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -/** - * A custom role can either be a global/root custom role (applies to all projects) or a project custom role - */ -export type CreateRoleWithPermissionsSchemaType = - typeof CreateRoleWithPermissionsSchemaType[keyof typeof CreateRoleWithPermissionsSchemaType]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const CreateRoleWithPermissionsSchemaType = { - 'root-custom': 'root-custom', - custom: 'custom', -} as const; diff --git a/frontend/src/openapi/models/deleteFeatureDependencies401.ts b/frontend/src/openapi/models/deleteFeatureDependencies401.ts new file mode 100644 index 000000000000..91d72e8805e5 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureDependencies401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureDependencies401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteFeatureDependencies403.ts b/frontend/src/openapi/models/deleteFeatureDependencies403.ts new file mode 100644 index 000000000000..39eca16151bc --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureDependencies403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureDependencies403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteFeatureDependencies404.ts b/frontend/src/openapi/models/deleteFeatureDependencies404.ts new file mode 100644 index 000000000000..b998e497f3c7 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureDependencies404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureDependencies404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteFeatureDependency401.ts b/frontend/src/openapi/models/deleteFeatureDependency401.ts new file mode 100644 index 000000000000..ca04a49580dc --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureDependency401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureDependency401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteFeatureDependency403.ts b/frontend/src/openapi/models/deleteFeatureDependency403.ts new file mode 100644 index 000000000000..fa117f0dce78 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureDependency403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureDependency403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteFeatureDependency404.ts b/frontend/src/openapi/models/deleteFeatureDependency404.ts new file mode 100644 index 000000000000..82da097209a4 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureDependency404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureDependency404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/dependentFeatureSchema.ts b/frontend/src/openapi/models/dependentFeatureSchema.ts new file mode 100644 index 000000000000..6a6172161c9a --- /dev/null +++ b/frontend/src/openapi/models/dependentFeatureSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Feature dependency on a parent feature in read model + */ +export interface DependentFeatureSchema { + /** The name of the feature we depend on. */ + feature: string; + /** Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default. */ + enabled?: boolean; + /** The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status. */ + variants?: string[]; +} diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index 780ac9f11ca5..32f33e54c536 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -86,6 +86,7 @@ export const EventSchemaType = { 'segment-deleted': 'segment-deleted', 'group-created': 'group-created', 'group-updated': 'group-updated', + 'group-deleted': 'group-deleted', 'setting-created': 'setting-created', 'setting-updated': 'setting-updated', 'setting-deleted': 'setting-deleted', @@ -120,4 +121,7 @@ export const EventSchemaType = { 'service-account-deleted': 'service-account-deleted', 'service-account-updated': 'service-account-updated', 'feature-potentially-stale-on': 'feature-potentially-stale-on', + 'feature-dependency-added': 'feature-dependency-added', + 'feature-dependency-removed': 'feature-dependency-removed', + 'feature-dependencies-removed': 'feature-dependencies-removed', } as const; diff --git a/frontend/src/openapi/models/exportQuerySchema.ts b/frontend/src/openapi/models/exportQuerySchema.ts index 625a73e245e0..a0ded6d07083 100644 --- a/frontend/src/openapi/models/exportQuerySchema.ts +++ b/frontend/src/openapi/models/exportQuerySchema.ts @@ -10,15 +10,5 @@ import type { ExportQuerySchemaOneOfTwo } from './exportQuerySchemaOneOfTwo'; * Available query parameters for the [deprecated export/import](https://docs.getunleash.io/reference/deploy/import-export) functionality. */ export type ExportQuerySchema = - | (ExportQuerySchemaOneOf & { - /** The environment to export from */ - environment: string; - /** Whether to return a downloadable file */ - downloadFile?: boolean; - }) - | (ExportQuerySchemaOneOfTwo & { - /** The environment to export from */ - environment: string; - /** Whether to return a downloadable file */ - downloadFile?: boolean; - }); + | ExportQuerySchemaOneOf + | ExportQuerySchemaOneOfTwo; diff --git a/frontend/src/openapi/models/exportQuerySchemaOneOf.ts b/frontend/src/openapi/models/exportQuerySchemaOneOf.ts index e86200e94b8e..4e20e1a93283 100644 --- a/frontend/src/openapi/models/exportQuerySchemaOneOf.ts +++ b/frontend/src/openapi/models/exportQuerySchemaOneOf.ts @@ -5,6 +5,10 @@ */ export type ExportQuerySchemaOneOf = { + /** The environment to export from */ + environment: string; + /** Whether to return a downloadable file */ + downloadFile?: boolean; /** Selects features to export by name. */ features: string[]; }; diff --git a/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts b/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts index 21fc9d6ca040..c240e32dede2 100644 --- a/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts +++ b/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts @@ -5,6 +5,10 @@ */ export type ExportQuerySchemaOneOfTwo = { + /** The environment to export from */ + environment: string; + /** Whether to return a downloadable file */ + downloadFile?: boolean; /** Selects features to export by tag. Takes precedence over the features field. */ tag: string; }; diff --git a/frontend/src/openapi/models/featureSchema.ts b/frontend/src/openapi/models/featureSchema.ts index e17720a02b66..4f9252ea581d 100644 --- a/frontend/src/openapi/models/featureSchema.ts +++ b/frontend/src/openapi/models/featureSchema.ts @@ -7,6 +7,7 @@ import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema'; import type { VariantSchema } from './variantSchema'; import type { FeatureSchemaStrategiesItem } from './featureSchemaStrategiesItem'; import type { TagSchema } from './tagSchema'; +import type { FeatureSchemaDependenciesItem } from './featureSchemaDependenciesItem'; /** * A feature toggle definition @@ -53,4 +54,8 @@ export interface FeatureSchema { strategies?: FeatureSchemaStrategiesItem[]; /** The list of feature tags */ tags?: TagSchema[] | null; + /** The list of child feature names. This is an experimental field and may change. */ + children?: string[]; + /** The list of parent dependencies. This is an experimental field and may change. */ + dependencies?: FeatureSchemaDependenciesItem[]; } diff --git a/frontend/src/openapi/models/featureSchemaDependenciesItem.ts b/frontend/src/openapi/models/featureSchemaDependenciesItem.ts new file mode 100644 index 000000000000..d538c66a2ce3 --- /dev/null +++ b/frontend/src/openapi/models/featureSchemaDependenciesItem.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type FeatureSchemaDependenciesItem = { + /** The name of the parent feature */ + feature: string; + /** Whether the parent feature is enabled or not */ + enabled?: boolean; + /** 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/getAccessOverview401.ts b/frontend/src/openapi/models/getAccessOverview401.ts new file mode 100644 index 000000000000..3e1a004694ec --- /dev/null +++ b/frontend/src/openapi/models/getAccessOverview401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAccessOverview401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAccessOverview403.ts b/frontend/src/openapi/models/getAccessOverview403.ts new file mode 100644 index 000000000000..7ca09fc7009f --- /dev/null +++ b/frontend/src/openapi/models/getAccessOverview403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAccessOverview403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAccessOverview415.ts b/frontend/src/openapi/models/getAccessOverview415.ts new file mode 100644 index 000000000000..a1e0620b5f1f --- /dev/null +++ b/frontend/src/openapi/models/getAccessOverview415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAccessOverview415 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/healthOverviewSchemaMode.ts b/frontend/src/openapi/models/healthOverviewSchemaMode.ts index d713b33ad503..4260e7ae2b22 100644 --- a/frontend/src/openapi/models/healthOverviewSchemaMode.ts +++ b/frontend/src/openapi/models/healthOverviewSchemaMode.ts @@ -14,4 +14,5 @@ export type HealthOverviewSchemaMode = export const HealthOverviewSchemaMode = { open: 'open', protected: 'protected', + private: 'private', } as const; diff --git a/frontend/src/openapi/models/healthReportSchemaMode.ts b/frontend/src/openapi/models/healthReportSchemaMode.ts index e267d99201b3..b50500c13676 100644 --- a/frontend/src/openapi/models/healthReportSchemaMode.ts +++ b/frontend/src/openapi/models/healthReportSchemaMode.ts @@ -14,4 +14,5 @@ export type HealthReportSchemaMode = export const HealthReportSchemaMode = { open: 'open', protected: 'protected', + private: 'private', } as const; diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 532ea9a0a850..98c486f8eab8 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -6,6 +6,7 @@ export * from './_exportFormat'; export * from './_exportParams'; +export * from './accessOverviewSchema'; export * from './addAccessToProject400'; export * from './addAccessToProject401'; export * from './addAccessToProject403'; @@ -19,6 +20,9 @@ export * from './addFavoriteFeature401'; export * from './addFavoriteFeature404'; export * from './addFavoriteProject401'; export * from './addFavoriteProject404'; +export * from './addFeatureDependency401'; +export * from './addFeatureDependency403'; +export * from './addFeatureDependency404'; export * from './addFeatureStrategy401'; export * from './addFeatureStrategy403'; export * from './addFeatureStrategy404'; @@ -143,6 +147,28 @@ export * from './changeRequestCreateFeatureSchemaOneOfPayload'; export * from './changeRequestCreateFeatureSchemaOneOfSix'; export * from './changeRequestCreateFeatureSchemaOneOfSixAction'; export * from './changeRequestCreateSchema'; +export * from './changeRequestCreateSchemaOneOf'; +export * from './changeRequestCreateSchemaOneOfAction'; +export * from './changeRequestCreateSchemaOneOfNine'; +export * from './changeRequestCreateSchemaOneOfNineAction'; +export * from './changeRequestCreateSchemaOneOfOneeight'; +export * from './changeRequestCreateSchemaOneOfOneeightAction'; +export * from './changeRequestCreateSchemaOneOfOneeightPayload'; +export * from './changeRequestCreateSchemaOneOfOneone'; +export * from './changeRequestCreateSchemaOneOfOneoneAction'; +export * from './changeRequestCreateSchemaOneOfOnesix'; +export * from './changeRequestCreateSchemaOneOfOnesixAction'; +export * from './changeRequestCreateSchemaOneOfOnethree'; +export * from './changeRequestCreateSchemaOneOfOnethreeAction'; +export * from './changeRequestCreateSchemaOneOfOnethreePayload'; +export * from './changeRequestCreateSchemaOneOfSix'; +export * from './changeRequestCreateSchemaOneOfSixAction'; +export * from './changeRequestCreateSchemaOneOfSixPayload'; +export * from './changeRequestCreateSchemaOneOfThree'; +export * from './changeRequestCreateSchemaOneOfThreeAction'; +export * from './changeRequestCreateSchemaOneOfThreePayload'; +export * from './changeRequestCreateSchemaOneOfTwoone'; +export * from './changeRequestCreateSchemaOneOfTwooneAction'; export * from './changeRequestCreateSegmentSchema'; export * from './changeRequestCreateSegmentSchemaOneOf'; export * from './changeRequestCreateSegmentSchemaOneOfAction'; @@ -154,6 +180,28 @@ export * from './changeRequestDefaultChangeSchemaPayload'; export * from './changeRequestEnvironmentConfigSchema'; export * from './changeRequestFeatureSchema'; export * from './changeRequestOneOrManyCreateSchema'; +export * from './changeRequestOneOrManyCreateSchemaOneOf'; +export * from './changeRequestOneOrManyCreateSchemaOneOfAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfNine'; +export * from './changeRequestOneOrManyCreateSchemaOneOfNineAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOneeight'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOneeightAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOneeightPayload'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOneone'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOneoneAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOnesix'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOnesixAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOnethree'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOnethreeAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfOnethreePayload'; +export * from './changeRequestOneOrManyCreateSchemaOneOfSix'; +export * from './changeRequestOneOrManyCreateSchemaOneOfSixAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfSixPayload'; +export * from './changeRequestOneOrManyCreateSchemaOneOfThree'; +export * from './changeRequestOneOrManyCreateSchemaOneOfThreeAction'; +export * from './changeRequestOneOrManyCreateSchemaOneOfThreePayload'; +export * from './changeRequestOneOrManyCreateSchemaOneOfTwoone'; +export * from './changeRequestOneOrManyCreateSchemaOneOfTwooneAction'; export * from './changeRequestSchema'; export * from './changeRequestSchemaCreatedBy'; export * from './changeRequestSchemaState'; @@ -218,6 +266,7 @@ export * from './createApplication401'; export * from './createApplication403'; export * from './createApplicationSchema'; export * from './createContextFieldSchema'; +export * from './createDependentFeatureSchema'; export * from './createEnvironment400'; export * from './createEnvironment401'; export * from './createEnvironmentSchema'; @@ -260,8 +309,12 @@ export * from './createRole401'; export * from './createRole403'; export * from './createRole409'; export * from './createRoleWithPermissionsSchema'; -export * from './createRoleWithPermissionsSchemaPermissionsItem'; -export * from './createRoleWithPermissionsSchemaType'; +export * from './createRoleWithPermissionsSchemaOneOf'; +export * from './createRoleWithPermissionsSchemaOneOfFour'; +export * from './createRoleWithPermissionsSchemaOneOfFourPermissionsItem'; +export * from './createRoleWithPermissionsSchemaOneOfFourType'; +export * from './createRoleWithPermissionsSchemaOneOfPermissionsItem'; +export * from './createRoleWithPermissionsSchemaOneOfType'; export * from './createSegment400'; export * from './createSegment401'; export * from './createSegment403'; @@ -316,6 +369,12 @@ export * from './deleteApplication401'; export * from './deleteApplication403'; export * from './deleteFeature401'; export * from './deleteFeature403'; +export * from './deleteFeatureDependencies401'; +export * from './deleteFeatureDependencies403'; +export * from './deleteFeatureDependencies404'; +export * from './deleteFeatureDependency401'; +export * from './deleteFeatureDependency403'; +export * from './deleteFeatureDependency404'; export * from './deleteFeatureStrategy401'; export * from './deleteFeatureStrategy403'; export * from './deleteFeatureStrategy404'; @@ -350,6 +409,7 @@ export * from './deleteTagType403'; export * from './deleteUser401'; export * from './deleteUser403'; export * from './deleteUser404'; +export * from './dependentFeatureSchema'; export * from './deprecateStrategy401'; export * from './deprecateStrategy403'; export * from './deprecateStrategy404'; @@ -381,6 +441,7 @@ export * from './featureEventsSchema'; export * from './featureEventsSchemaVersion'; export * from './featureMetricsSchema'; export * from './featureSchema'; +export * from './featureSchemaDependenciesItem'; export * from './featureSchemaStrategiesItem'; export * from './featureStrategySchema'; export * from './featureStrategySegmentSchema'; @@ -394,6 +455,9 @@ export * from './featuresSchema'; export * from './feedbackCreateSchema'; export * from './feedbackResponseSchema'; export * from './feedbackUpdateSchema'; +export * from './getAccessOverview401'; +export * from './getAccessOverview403'; +export * from './getAccessOverview415'; export * from './getAddon401'; export * from './getAddons401'; export * from './getAdminCount401'; @@ -561,6 +625,9 @@ export * from './instanceAdminStatsSchemaClientAppsItemRange'; export * from './invoicesSchema'; export * from './invoicesSchemaItem'; export * from './legalValueSchema'; +export * from './listParentOptions401'; +export * from './listParentOptions403'; +export * from './listParentOptions404'; export * from './listTags401'; export * from './listTags403'; export * from './listTags404'; @@ -592,6 +659,7 @@ export * from './overwriteFeatureVariantsOnEnvironments400'; export * from './overwriteFeatureVariantsOnEnvironments401'; export * from './overwriteFeatureVariantsOnEnvironments403'; export * from './parametersSchema'; +export * from './parentFeatureOptionsSchema'; export * from './passwordAuthSchema'; export * from './passwordSchema'; export * from './patSchema'; @@ -741,6 +809,7 @@ export * from './samlSettingsSchema'; export * from './samlSettingsSchemaDefaultRootRole'; export * from './sdkContextSchema'; export * from './sdkContextSchemaProperties'; +export * from './sdkFlatContextSchema'; export * from './searchEventsSchema'; export * from './searchEventsSchemaType'; export * from './searchUsers401'; @@ -878,7 +947,15 @@ export * from './updateProject401'; export * from './updateProject403'; export * from './updateProject404'; export * from './updateProject415'; +export * from './updateProjectEnterpriseSettings400'; +export * from './updateProjectEnterpriseSettings401'; +export * from './updateProjectEnterpriseSettings403'; +export * from './updateProjectEnterpriseSettings404'; +export * from './updateProjectEnterpriseSettings415'; +export * from './updateProjectEnterpriseSettingsSchema'; +export * from './updateProjectEnterpriseSettingsSchemaMode'; export * from './updateProjectSchema'; +export * from './updateProjectSchemaMode'; export * from './updatePublicSignupToken400'; export * from './updatePublicSignupToken401'; export * from './updatePublicSignupToken403'; @@ -929,6 +1006,7 @@ export * from './updateUser404'; export * from './updateUserSchema'; export * from './updateUserSchemaRootRole'; export * from './upsertSegmentSchema'; +export * from './userAccessSchema'; export * from './userSchema'; export * from './userWithProjectRoleSchema'; export * from './usersGroupsBaseSchema'; diff --git a/frontend/src/openapi/models/instanceAdminStatsSchemaActiveUsers.ts b/frontend/src/openapi/models/instanceAdminStatsSchemaActiveUsers.ts index 2a07f834ce1f..7224c6e60be4 100644 --- a/frontend/src/openapi/models/instanceAdminStatsSchemaActiveUsers.ts +++ b/frontend/src/openapi/models/instanceAdminStatsSchemaActiveUsers.ts @@ -12,6 +12,8 @@ export type InstanceAdminStatsSchemaActiveUsers = { last7?: number; /** The number of active users in the last 30 days */ last30?: number; + /** The number of active users in the last 60 days */ + last60?: number; /** The number of active users in the last 90 days */ last90?: number; }; diff --git a/frontend/src/openapi/models/listParentOptions401.ts b/frontend/src/openapi/models/listParentOptions401.ts new file mode 100644 index 000000000000..f8f40171fbe2 --- /dev/null +++ b/frontend/src/openapi/models/listParentOptions401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ListParentOptions401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/listParentOptions403.ts b/frontend/src/openapi/models/listParentOptions403.ts new file mode 100644 index 000000000000..20beb33433f6 --- /dev/null +++ b/frontend/src/openapi/models/listParentOptions403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ListParentOptions403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/listParentOptions404.ts b/frontend/src/openapi/models/listParentOptions404.ts new file mode 100644 index 000000000000..6ab73a2c22df --- /dev/null +++ b/frontend/src/openapi/models/listParentOptions404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ListParentOptions404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/parentFeatureOptionsSchema.ts b/frontend/src/openapi/models/parentFeatureOptionsSchema.ts new file mode 100644 index 000000000000..a81efc64af44 --- /dev/null +++ b/frontend/src/openapi/models/parentFeatureOptionsSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A list of parent feature names available for a given child feature. Features that have their own parents are excluded. + */ +export type ParentFeatureOptionsSchema = string[]; diff --git a/frontend/src/openapi/models/projectCreatedSchemaMode.ts b/frontend/src/openapi/models/projectCreatedSchemaMode.ts index 7954c43e7d41..0e4fc0dd4ef1 100644 --- a/frontend/src/openapi/models/projectCreatedSchemaMode.ts +++ b/frontend/src/openapi/models/projectCreatedSchemaMode.ts @@ -14,4 +14,5 @@ export type ProjectCreatedSchemaMode = export const ProjectCreatedSchemaMode = { open: 'open', protected: 'protected', + private: 'private', } as const; diff --git a/frontend/src/openapi/models/projectOverviewSchemaMode.ts b/frontend/src/openapi/models/projectOverviewSchemaMode.ts index c378c7356a25..34a0bdcbf85b 100644 --- a/frontend/src/openapi/models/projectOverviewSchemaMode.ts +++ b/frontend/src/openapi/models/projectOverviewSchemaMode.ts @@ -14,4 +14,5 @@ export type ProjectOverviewSchemaMode = export const ProjectOverviewSchemaMode = { open: 'open', protected: 'protected', + private: 'private', } as const; diff --git a/frontend/src/openapi/models/projectSchemaMode.ts b/frontend/src/openapi/models/projectSchemaMode.ts index 7291f72213d9..b625071cec3d 100644 --- a/frontend/src/openapi/models/projectSchemaMode.ts +++ b/frontend/src/openapi/models/projectSchemaMode.ts @@ -14,4 +14,5 @@ export type ProjectSchemaMode = export const ProjectSchemaMode = { open: 'open', protected: 'protected', + private: 'private', } as const; diff --git a/frontend/src/openapi/models/sdkFlatContextSchema.ts b/frontend/src/openapi/models/sdkFlatContextSchema.ts new file mode 100644 index 000000000000..8cc8b2f99b3c --- /dev/null +++ b/frontend/src/openapi/models/sdkFlatContextSchema.ts @@ -0,0 +1,27 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The Unleash context with flattened properties + */ +export interface SdkFlatContextSchema { + /** The name of the application. */ + appName: string; + /** A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user. */ + currentTime?: string; + /** + * The environment the app is running in. + * @deprecated + */ + environment?: string; + /** The app's IP address */ + remoteAddress?: string; + /** An identifier for the current session */ + sessionId?: string; + /** An identifier for the current user */ + userId?: string; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/searchEventsSchemaType.ts b/frontend/src/openapi/models/searchEventsSchemaType.ts index 9b0ed9fdf440..5f8b0b9693d2 100644 --- a/frontend/src/openapi/models/searchEventsSchemaType.ts +++ b/frontend/src/openapi/models/searchEventsSchemaType.ts @@ -86,6 +86,7 @@ export const SearchEventsSchemaType = { 'segment-deleted': 'segment-deleted', 'group-created': 'group-created', 'group-updated': 'group-updated', + 'group-deleted': 'group-deleted', 'setting-created': 'setting-created', 'setting-updated': 'setting-updated', 'setting-deleted': 'setting-deleted', @@ -120,4 +121,7 @@ export const SearchEventsSchemaType = { 'service-account-deleted': 'service-account-deleted', 'service-account-updated': 'service-account-updated', 'feature-potentially-stale-on': 'feature-potentially-stale-on', + 'feature-dependency-added': 'feature-dependency-added', + 'feature-dependency-removed': 'feature-dependency-removed', + 'feature-dependencies-removed': 'feature-dependencies-removed', } as const; diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettings400.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettings400.ts new file mode 100644 index 000000000000..ee18d96a096f --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateProjectEnterpriseSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettings401.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettings401.ts new file mode 100644 index 000000000000..5c2065b7a400 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateProjectEnterpriseSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettings403.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettings403.ts new file mode 100644 index 000000000000..6728cb304102 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateProjectEnterpriseSettings403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettings404.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettings404.ts new file mode 100644 index 000000000000..e51a53001cc5 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettings404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateProjectEnterpriseSettings404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettings415.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettings415.ts new file mode 100644 index 000000000000..c27dbc19ace3 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettings415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateProjectEnterpriseSettings415 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchema.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchema.ts new file mode 100644 index 000000000000..bc3b8d14d194 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectEnterpriseSettingsSchemaMode'; +import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema'; + +/** + * Data used to update a [project](https://docs.getunleash.io/reference/projects) settings + */ +export interface UpdateProjectEnterpriseSettingsSchema { + /** A mode of the project affecting what actions are possible in this project */ + mode?: UpdateProjectEnterpriseSettingsSchemaMode; + featureNaming?: CreateFeatureNamingPatternSchema; +} diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts new file mode 100644 index 000000000000..b26750b31917 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A mode of the project affecting what actions are possible in this project + */ +export type UpdateProjectEnterpriseSettingsSchemaMode = + typeof UpdateProjectEnterpriseSettingsSchemaMode[keyof typeof UpdateProjectEnterpriseSettingsSchemaMode]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const UpdateProjectEnterpriseSettingsSchemaMode = { + open: 'open', + protected: 'protected', + private: 'private', +} as const; diff --git a/frontend/src/openapi/models/updateProjectSchema.ts b/frontend/src/openapi/models/updateProjectSchema.ts index 4cfffbaa2a38..ce549eb0d992 100644 --- a/frontend/src/openapi/models/updateProjectSchema.ts +++ b/frontend/src/openapi/models/updateProjectSchema.ts @@ -3,6 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { UpdateProjectSchemaMode } from './updateProjectSchemaMode'; /** * Data used to update a [project](https://docs.getunleash.io/reference/projects) @@ -12,4 +13,8 @@ export interface UpdateProjectSchema { name: string; /** A new description for the project */ description?: string; + /** A mode of the project affecting what actions are possible in this project */ + mode?: UpdateProjectSchemaMode; + /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ + defaultStickiness?: string; } diff --git a/frontend/src/openapi/models/updateProjectSchemaMode.ts b/frontend/src/openapi/models/updateProjectSchemaMode.ts new file mode 100644 index 000000000000..ac5c1cca20b3 --- /dev/null +++ b/frontend/src/openapi/models/updateProjectSchemaMode.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A mode of the project affecting what actions are possible in this project + */ +export type UpdateProjectSchemaMode = + typeof UpdateProjectSchemaMode[keyof typeof UpdateProjectSchemaMode]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const UpdateProjectSchemaMode = { + open: 'open', + protected: 'protected', + private: 'private', +} as const; diff --git a/frontend/src/openapi/models/userAccessSchema.ts b/frontend/src/openapi/models/userAccessSchema.ts new file mode 100644 index 000000000000..3bbd726a2ea4 --- /dev/null +++ b/frontend/src/openapi/models/userAccessSchema.ts @@ -0,0 +1,27 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Describes a single set of access for a user + */ +export interface UserAccessSchema { + /** The identifier for the user */ + userId: number; + /** When the user was created */ + createdAt?: string | null; + /** The name of the user */ + userName?: string | null; + /** The last time the user logged in */ + lastSeen?: string | null; + /** A list of project ids that this user has access to */ + accessibleProjects: string[]; + /** A list of group names that this user is a member of */ + groups: string[]; + /** The name of the root role that this user has */ + rootRole: string; + /** The email address of the user */ + userEmail: string; +} diff --git a/src/lib/openapi/spec/sdk-flat-context-schema.ts b/src/lib/openapi/spec/sdk-flat-context-schema.ts index fb947f438d89..3a8cda253391 100644 --- a/src/lib/openapi/spec/sdk-flat-context-schema.ts +++ b/src/lib/openapi/spec/sdk-flat-context-schema.ts @@ -7,7 +7,7 @@ export const sdkFlatContextSchema = { description: 'The Unleash context with flattened properties', type: 'object', required: ['appName'], - additionalProperties: { type: 'string' }, + additionalProperties: true, properties: standardProperties, components: {}, } as const;