mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-12 13:48:35 +02:00
feat: generate orval types with dependent features (#4902)
This commit is contained in:
parent
40dfb927e9
commit
751bc465d6
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||
|
@ -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`,
|
||||
|
14
frontend/src/openapi/models/accessOverviewSchema.ts
Normal file
14
frontend/src/openapi/models/accessOverviewSchema.ts
Normal file
@ -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[];
|
||||
}
|
14
frontend/src/openapi/models/addFeatureDependency401.ts
Normal file
14
frontend/src/openapi/models/addFeatureDependency401.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/addFeatureDependency403.ts
Normal file
14
frontend/src/openapi/models/addFeatureDependency403.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/addFeatureDependency404.ts
Normal file
14
frontend/src/openapi/models/addFeatureDependency404.ts
Normal file
@ -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;
|
||||
};
|
@ -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 */
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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[];
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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[];
|
||||
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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[];
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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[];
|
||||
}
|
||||
|
17
frontend/src/openapi/models/createDependentFeatureSchema.ts
Normal file
17
frontend/src/openapi/models/createDependentFeatureSchema.ts
Normal file
@ -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[];
|
||||
}
|
@ -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 */
|
||||
|
@ -14,4 +14,5 @@ export type CreateProjectSchemaMode =
|
||||
export const CreateProjectSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
||||
|
@ -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;
|
||||
|
@ -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[];
|
||||
};
|
@ -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[];
|
||||
};
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
||||
};
|
@ -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;
|
@ -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;
|
14
frontend/src/openapi/models/deleteFeatureDependencies401.ts
Normal file
14
frontend/src/openapi/models/deleteFeatureDependencies401.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/deleteFeatureDependencies403.ts
Normal file
14
frontend/src/openapi/models/deleteFeatureDependencies403.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/deleteFeatureDependencies404.ts
Normal file
14
frontend/src/openapi/models/deleteFeatureDependencies404.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/deleteFeatureDependency401.ts
Normal file
14
frontend/src/openapi/models/deleteFeatureDependency401.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/deleteFeatureDependency403.ts
Normal file
14
frontend/src/openapi/models/deleteFeatureDependency403.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/deleteFeatureDependency404.ts
Normal file
14
frontend/src/openapi/models/deleteFeatureDependency404.ts
Normal file
@ -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;
|
||||
};
|
17
frontend/src/openapi/models/dependentFeatureSchema.ts
Normal file
17
frontend/src/openapi/models/dependentFeatureSchema.ts
Normal file
@ -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[];
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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[];
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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[];
|
||||
}
|
||||
|
14
frontend/src/openapi/models/featureSchemaDependenciesItem.ts
Normal file
14
frontend/src/openapi/models/featureSchemaDependenciesItem.ts
Normal file
@ -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[];
|
||||
};
|
14
frontend/src/openapi/models/getAccessOverview401.ts
Normal file
14
frontend/src/openapi/models/getAccessOverview401.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/getAccessOverview403.ts
Normal file
14
frontend/src/openapi/models/getAccessOverview403.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/getAccessOverview415.ts
Normal file
14
frontend/src/openapi/models/getAccessOverview415.ts
Normal file
@ -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;
|
||||
};
|
@ -14,4 +14,5 @@ export type HealthOverviewSchemaMode =
|
||||
export const HealthOverviewSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
||||
|
@ -14,4 +14,5 @@ export type HealthReportSchemaMode =
|
||||
export const HealthReportSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
};
|
||||
|
14
frontend/src/openapi/models/listParentOptions401.ts
Normal file
14
frontend/src/openapi/models/listParentOptions401.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/listParentOptions403.ts
Normal file
14
frontend/src/openapi/models/listParentOptions403.ts
Normal file
@ -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;
|
||||
};
|
14
frontend/src/openapi/models/listParentOptions404.ts
Normal file
14
frontend/src/openapi/models/listParentOptions404.ts
Normal file
@ -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;
|
||||
};
|
10
frontend/src/openapi/models/parentFeatureOptionsSchema.ts
Normal file
10
frontend/src/openapi/models/parentFeatureOptionsSchema.ts
Normal file
@ -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[];
|
@ -14,4 +14,5 @@ export type ProjectCreatedSchemaMode =
|
||||
export const ProjectCreatedSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
||||
|
@ -14,4 +14,5 @@ export type ProjectOverviewSchemaMode =
|
||||
export const ProjectOverviewSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
||||
|
@ -14,4 +14,5 @@ export type ProjectSchemaMode =
|
||||
export const ProjectSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user