From 82b327487701a6be4a02c9f7b6b50c1a086e3163 Mon Sep 17 00:00:00 2001 From: kwasniew Date: Tue, 5 Nov 2024 15:06:24 +0100 Subject: [PATCH] chore: orval types --- frontend/src/openapi/models/index.ts | 1 + frontend/src/openapi/models/profileSchema.ts | 2 ++ frontend/src/openapi/models/projectStatusSchema.ts | 3 +++ .../openapi/models/projectStatusSchemaResources.ts | 13 +++++++++++++ 4 files changed, 19 insertions(+) create mode 100644 frontend/src/openapi/models/projectStatusSchemaResources.ts diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 0349b125a6b6..4dd6d3daa0c1 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -1022,6 +1022,7 @@ export * from './projectSettingsSchemaDefaultStickiness'; export * from './projectSettingsSchemaMode'; export * from './projectStatsSchema'; export * from './projectStatusSchema'; +export * from './projectStatusSchemaResources'; export * from './projectUsersSchema'; export * from './projectsSchema'; export * from './provideFeedbackSchema'; diff --git a/frontend/src/openapi/models/profileSchema.ts b/frontend/src/openapi/models/profileSchema.ts index a06de78c3a64..9d57d2ff8253 100644 --- a/frontend/src/openapi/models/profileSchema.ts +++ b/frontend/src/openapi/models/profileSchema.ts @@ -15,4 +15,6 @@ export interface ProfileSchema { /** Which projects this user is a member of */ projects: string[]; rootRole: RoleSchema; + /** Which email subscriptions this user is subscribed to */ + subscriptions: string[]; } diff --git a/frontend/src/openapi/models/projectStatusSchema.ts b/frontend/src/openapi/models/projectStatusSchema.ts index 3b9f9c87e86d..88e3f27782d1 100644 --- a/frontend/src/openapi/models/projectStatusSchema.ts +++ b/frontend/src/openapi/models/projectStatusSchema.ts @@ -4,6 +4,7 @@ * See `gen:api` script in package.json */ import type { ProjectActivitySchema } from './projectActivitySchema'; +import type { ProjectStatusSchemaResources } from './projectStatusSchemaResources'; /** * Schema representing the overall status of a project, including an array of activity records. Each record in the activity array contains a date and a count, providing a snapshot of the project’s activity level over time. @@ -11,4 +12,6 @@ import type { ProjectActivitySchema } from './projectActivitySchema'; export interface ProjectStatusSchema { /** Array of activity records with date and count, representing the project’s daily activity statistics. */ activityCountByDate: ProjectActivitySchema; + /** Key resources within the project */ + resources: ProjectStatusSchemaResources; } diff --git a/frontend/src/openapi/models/projectStatusSchemaResources.ts b/frontend/src/openapi/models/projectStatusSchemaResources.ts new file mode 100644 index 000000000000..6483aff39ec4 --- /dev/null +++ b/frontend/src/openapi/models/projectStatusSchemaResources.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Key resources within the project + */ +export type ProjectStatusSchemaResources = { + /** The number of environments that have received SDK traffic in this project. */ + connectedEnvironments: number; +};