From bb3498adb68e43fa3def52700906adfb88a564c2 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 6 Jun 2024 12:11:41 +0200 Subject: [PATCH] chore: orval types for flag creator (#7305) --- .../models/featureSearchResponseSchemaCreatedBy.ts | 5 +---- .../openapi/models/getProjectFlagCreators401.ts | 14 ++++++++++++++ .../openapi/models/getProjectFlagCreators403.ts | 14 ++++++++++++++ .../openapi/models/getProjectFlagCreators404.ts | 14 ++++++++++++++ frontend/src/openapi/models/index.ts | 5 +++++ .../openapi/models/projectFlagCreatorsSchema.ts | 11 +++++++++++ .../models/projectFlagCreatorsSchemaItem.ts | 12 ++++++++++++ 7 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 frontend/src/openapi/models/getProjectFlagCreators401.ts create mode 100644 frontend/src/openapi/models/getProjectFlagCreators403.ts create mode 100644 frontend/src/openapi/models/getProjectFlagCreators404.ts create mode 100644 frontend/src/openapi/models/projectFlagCreatorsSchema.ts create mode 100644 frontend/src/openapi/models/projectFlagCreatorsSchemaItem.ts diff --git a/frontend/src/openapi/models/featureSearchResponseSchemaCreatedBy.ts b/frontend/src/openapi/models/featureSearchResponseSchemaCreatedBy.ts index 3f4011dc8f..0843f6a772 100644 --- a/frontend/src/openapi/models/featureSearchResponseSchemaCreatedBy.ts +++ b/frontend/src/openapi/models/featureSearchResponseSchemaCreatedBy.ts @@ -10,10 +10,7 @@ export type FeatureSearchResponseSchemaCreatedBy = { /** The user id */ id: number; - /** - * URL used for the user profile image - * @nullable - */ + /** URL used for the user profile image */ imageUrl: string; /** Name of the user */ name: string; diff --git a/frontend/src/openapi/models/getProjectFlagCreators401.ts b/frontend/src/openapi/models/getProjectFlagCreators401.ts new file mode 100644 index 0000000000..6d1d7b638d --- /dev/null +++ b/frontend/src/openapi/models/getProjectFlagCreators401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectFlagCreators401 = { + /** 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/getProjectFlagCreators403.ts b/frontend/src/openapi/models/getProjectFlagCreators403.ts new file mode 100644 index 0000000000..12642f9eba --- /dev/null +++ b/frontend/src/openapi/models/getProjectFlagCreators403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectFlagCreators403 = { + /** 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/getProjectFlagCreators404.ts b/frontend/src/openapi/models/getProjectFlagCreators404.ts new file mode 100644 index 0000000000..db5b5c07f9 --- /dev/null +++ b/frontend/src/openapi/models/getProjectFlagCreators404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectFlagCreators404 = { + /** 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 8b10a1b900..9798d5e8c7 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -679,6 +679,9 @@ export * from './getProjectDora404'; export * from './getProjectEnvironments401'; export * from './getProjectEnvironments403'; export * from './getProjectEnvironments404'; +export * from './getProjectFlagCreators401'; +export * from './getProjectFlagCreators403'; +export * from './getProjectFlagCreators404'; export * from './getProjectHealthReport401'; export * from './getProjectHealthReport403'; export * from './getProjectHealthReport404'; @@ -891,6 +894,8 @@ export * from './projectCreatedSchemaChangeRequestEnvironmentsItem'; export * from './projectCreatedSchemaMode'; export * from './projectDoraMetricsSchema'; export * from './projectEnvironmentSchema'; +export * from './projectFlagCreatorsSchema'; +export * from './projectFlagCreatorsSchemaItem'; export * from './projectInsightsSchema'; export * from './projectInsightsSchemaHealth'; export * from './projectInsightsSchemaMembers'; diff --git a/frontend/src/openapi/models/projectFlagCreatorsSchema.ts b/frontend/src/openapi/models/projectFlagCreatorsSchema.ts new file mode 100644 index 0000000000..dce844c289 --- /dev/null +++ b/frontend/src/openapi/models/projectFlagCreatorsSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ProjectFlagCreatorsSchemaItem } from './projectFlagCreatorsSchemaItem'; + +/** + * A list of project flag creators + */ +export type ProjectFlagCreatorsSchema = ProjectFlagCreatorsSchemaItem[]; diff --git a/frontend/src/openapi/models/projectFlagCreatorsSchemaItem.ts b/frontend/src/openapi/models/projectFlagCreatorsSchemaItem.ts new file mode 100644 index 0000000000..dede72b386 --- /dev/null +++ b/frontend/src/openapi/models/projectFlagCreatorsSchemaItem.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ProjectFlagCreatorsSchemaItem = { + /** The user id. */ + id: number; + /** Name of the user. If the user has no set name, the API falls back to using the user's username (if they have one) or email (if neither name or username is set). */ + name: string; +};