1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

chore: update OpenAPI frontend types (#9834)

For lifecycle-count endpoint
This commit is contained in:
Tymoteusz Czech 2025-04-24 13:42:27 +02:00 committed by GitHub
parent a38bf8ea4c
commit bffaab5560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 73 additions and 9 deletions

View File

@ -0,0 +1,21 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A number features in each of the lifecycle stages
*/
export interface FeatureLifecycleCountSchema {
/** Number of features in the archived stage */
archived: number;
/** Number of features in the completed stage */
completed: number;
/** Number of features in the initial stage */
initial: number;
/** Number of features in the live stage */
live: number;
/** Number of features in the pre-live stage */
preLive: number;
}

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetFeatureLifecycleStageCount401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetFeatureLifecycleStageCount403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetFeatureLifecycleStageCount404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -631,6 +631,7 @@ export * from './featureEventsSchema';
export * from './featureEventsSchemaVersion';
export * from './featureLifecycleCompletedSchema';
export * from './featureLifecycleCompletedSchemaStatus';
export * from './featureLifecycleCountSchema';
export * from './featureLifecycleSchema';
export * from './featureLifecycleSchemaItem';
export * from './featureLifecycleSchemaItemStage';
@ -735,6 +736,9 @@ export * from './getFeatureEnvironment404';
export * from './getFeatureLifecycle401';
export * from './getFeatureLifecycle403';
export * from './getFeatureLifecycle404';
export * from './getFeatureLifecycleStageCount401';
export * from './getFeatureLifecycleStageCount403';
export * from './getFeatureLifecycleStageCount404';
export * from './getFeatureStrategies401';
export * from './getFeatureStrategies403';
export * from './getFeatureStrategies404';

View File

@ -19,13 +19,13 @@ export interface LicenseReadSchema {
/** Date when the license was issued. */
issuedAt?: string;
/** Whether the license is valid or not. */
isValid?: boolean;
isValid: boolean;
/** Name of plan that the license is for. */
plan: string;
plan?: string;
/** Number of seats in the license. */
seats: number;
seats?: number;
/** The actual license token. */
token: string;
token?: string;
/** Type of license. */
type: string;
type?: string;
}

View File

@ -19,10 +19,7 @@ export interface ProjectCreatedSchema {
* @nullable
*/
description?: string | null;
/**
* The environments enabled for the project.
* @minItems 1
*/
/** The environments enabled for the project. */
environments?: string[];
/**
* A limit on the number of features allowed in the project. `null` if no limit.