From bffaab5560728a42f1f24a659f633427cc6341ef Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 24 Apr 2025 13:42:27 +0200 Subject: [PATCH] chore: update OpenAPI frontend types (#9834) For lifecycle-count endpoint --- .../models/featureLifecycleCountSchema.ts | 21 +++++++++++++++++++ .../getFeatureLifecycleStageCount401.ts | 14 +++++++++++++ .../getFeatureLifecycleStageCount403.ts | 14 +++++++++++++ .../getFeatureLifecycleStageCount404.ts | 14 +++++++++++++ frontend/src/openapi/models/index.ts | 4 ++++ .../src/openapi/models/licenseReadSchema.ts | 10 ++++----- .../openapi/models/projectCreatedSchema.ts | 5 +---- 7 files changed, 73 insertions(+), 9 deletions(-) create mode 100644 frontend/src/openapi/models/featureLifecycleCountSchema.ts create mode 100644 frontend/src/openapi/models/getFeatureLifecycleStageCount401.ts create mode 100644 frontend/src/openapi/models/getFeatureLifecycleStageCount403.ts create mode 100644 frontend/src/openapi/models/getFeatureLifecycleStageCount404.ts diff --git a/frontend/src/openapi/models/featureLifecycleCountSchema.ts b/frontend/src/openapi/models/featureLifecycleCountSchema.ts new file mode 100644 index 0000000000..f9440ac655 --- /dev/null +++ b/frontend/src/openapi/models/featureLifecycleCountSchema.ts @@ -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; +} diff --git a/frontend/src/openapi/models/getFeatureLifecycleStageCount401.ts b/frontend/src/openapi/models/getFeatureLifecycleStageCount401.ts new file mode 100644 index 0000000000..4a5f3bed3a --- /dev/null +++ b/frontend/src/openapi/models/getFeatureLifecycleStageCount401.ts @@ -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; +}; diff --git a/frontend/src/openapi/models/getFeatureLifecycleStageCount403.ts b/frontend/src/openapi/models/getFeatureLifecycleStageCount403.ts new file mode 100644 index 0000000000..a16f4523d0 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureLifecycleStageCount403.ts @@ -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; +}; diff --git a/frontend/src/openapi/models/getFeatureLifecycleStageCount404.ts b/frontend/src/openapi/models/getFeatureLifecycleStageCount404.ts new file mode 100644 index 0000000000..dcc29f9332 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureLifecycleStageCount404.ts @@ -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; +}; diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 99eff52191..5cf973bf76 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -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'; diff --git a/frontend/src/openapi/models/licenseReadSchema.ts b/frontend/src/openapi/models/licenseReadSchema.ts index 5a5d68e2aa..f07a6f4cab 100644 --- a/frontend/src/openapi/models/licenseReadSchema.ts +++ b/frontend/src/openapi/models/licenseReadSchema.ts @@ -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; } diff --git a/frontend/src/openapi/models/projectCreatedSchema.ts b/frontend/src/openapi/models/projectCreatedSchema.ts index 3a203d3821..97a69c699a 100644 --- a/frontend/src/openapi/models/projectCreatedSchema.ts +++ b/frontend/src/openapi/models/projectCreatedSchema.ts @@ -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.