From cf476f9e7dd526fe6de403190b4407b67efdf97f Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 26 Sep 2024 11:03:55 +0200 Subject: [PATCH] chore: update orval for personal dashboards (#8268) Updates orval for personal dashboards --- frontend/src/openapi/models/eventSchema.ts | 10 ++++++++++ frontend/src/openapi/models/index.ts | 10 ++++++++++ .../personalDashboardSchemaFlagsItem.ts | 2 ++ .../personalDashboardSchemaProjectsItem.ts | 11 +++++++++++ ...rsonalDashboardSchemaProjectsItemOwners.ts | 14 ++++++++++++++ ...hboardSchemaProjectsItemOwnersOneOfItem.ts | 11 +++++++++++ ...dSchemaProjectsItemOwnersOneOfItemAnyOf.ts | 15 +++++++++++++++ ...ojectsItemOwnersOneOfItemAnyOfOwnerType.ts | 14 ++++++++++++++ ...maProjectsItemOwnersOneOfItemAnyOfThree.ts | 11 +++++++++++ ...sItemOwnersOneOfItemAnyOfThreeOwnerType.ts | 14 ++++++++++++++ ...ardSchemaProjectsItemOwnersOneOfSixItem.ts | 10 ++++++++++ ...ProjectsItemOwnersOneOfSixItemOwnerType.ts | 13 +++++++++++++ ...nalDashboardSchemaProjectsItemRolesItem.ts | 18 ++++++++++++++++++ ...ashboardSchemaProjectsItemRolesItemType.ts | 19 +++++++++++++++++++ .../openapi/spec/personal-dashboard-schema.ts | 2 +- 15 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwners.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItem.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItem.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItem.ts create mode 100644 frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItemType.ts diff --git a/frontend/src/openapi/models/eventSchema.ts b/frontend/src/openapi/models/eventSchema.ts index 09e597921239..40a6f3ff17fa 100644 --- a/frontend/src/openapi/models/eventSchema.ts +++ b/frontend/src/openapi/models/eventSchema.ts @@ -41,6 +41,11 @@ export interface EventSchema { * @minimum 1 */ id: number; + /** + * **[Experimental]** The concise, human-readable name of the event. + * @nullable + */ + label?: string | null; /** * Data relating to the previous state of the event's subject. * @nullable @@ -51,6 +56,11 @@ export interface EventSchema { * @nullable */ project?: string | null; + /** + * **[Experimental]** A markdown-formatted summary of the event. + * @nullable + */ + summary?: string | null; /** * Any tags related to the event, if applicable. * @nullable diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index f0353accdf98..b7ced9f91d61 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -903,6 +903,16 @@ export * from './permissionSchema'; export * from './personalDashboardSchema'; export * from './personalDashboardSchemaFlagsItem'; export * from './personalDashboardSchemaProjectsItem'; +export * from './personalDashboardSchemaProjectsItemOwners'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfItem'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfSixItem'; +export * from './personalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType'; +export * from './personalDashboardSchemaProjectsItemRolesItem'; +export * from './personalDashboardSchemaProjectsItemRolesItemType'; export * from './playgroundConstraintSchema'; export * from './playgroundConstraintSchemaOperator'; export * from './playgroundFeatureSchema'; diff --git a/frontend/src/openapi/models/personalDashboardSchemaFlagsItem.ts b/frontend/src/openapi/models/personalDashboardSchemaFlagsItem.ts index 75a31ef0c58c..91109ce9a9ef 100644 --- a/frontend/src/openapi/models/personalDashboardSchemaFlagsItem.ts +++ b/frontend/src/openapi/models/personalDashboardSchemaFlagsItem.ts @@ -7,6 +7,8 @@ export type PersonalDashboardSchemaFlagsItem = { /** The name of the flag */ name: string; + /** The id of the feature project */ project: string; + /** The type of the feature flag */ type: string; }; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItem.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItem.ts index 6faa3e27412e..7e7422210f5c 100644 --- a/frontend/src/openapi/models/personalDashboardSchemaProjectsItem.ts +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItem.ts @@ -3,8 +3,19 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { PersonalDashboardSchemaProjectsItemOwners } from './personalDashboardSchemaProjectsItemOwners'; +import type { PersonalDashboardSchemaProjectsItemRolesItem } from './personalDashboardSchemaProjectsItemRolesItem'; export type PersonalDashboardSchemaProjectsItem = { /** The id of the project */ id: string; + /** The name of the project */ + name: string; + /** The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead. */ + owners?: PersonalDashboardSchemaProjectsItemOwners; + /** + * The list of roles that the user has in this project. + * @minItems 1 + */ + roles: PersonalDashboardSchemaProjectsItemRolesItem[]; }; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwners.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwners.ts new file mode 100644 index 000000000000..86021277765c --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwners.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfItem } from './personalDashboardSchemaProjectsItemOwnersOneOfItem'; +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfSixItem } from './personalDashboardSchemaProjectsItemOwnersOneOfSixItem'; + +/** + * The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead. + */ +export type PersonalDashboardSchemaProjectsItemOwners = + | PersonalDashboardSchemaProjectsItemOwnersOneOfItem[] + | PersonalDashboardSchemaProjectsItemOwnersOneOfSixItem[]; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItem.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItem.ts new file mode 100644 index 000000000000..8bc21085733b --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItem.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf } from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf'; +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree } from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree'; + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfItem = + | PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf + | PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf.ts new file mode 100644 index 000000000000..a1b699323d20 --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType } from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType'; + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOf = { + /** @nullable */ + email?: string | null; + /** @nullable */ + imageUrl?: string | null; + name: string; + ownerType: PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType; +}; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType.ts new file mode 100644 index 000000000000..054ec6a7c21c --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType = + (typeof PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType)[keyof typeof PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfOwnerType = + { + user: 'user', + } as const; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree.ts new file mode 100644 index 000000000000..98d09242d1b9 --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType } from './personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType'; + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThree = { + name: string; + ownerType: PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType; +}; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType.ts new file mode 100644 index 000000000000..62cbe0ce7b98 --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType = + (typeof PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType)[keyof typeof PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonalDashboardSchemaProjectsItemOwnersOneOfItemAnyOfThreeOwnerType = + { + group: 'group', + } as const; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItem.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItem.ts new file mode 100644 index 000000000000..d856200e4deb --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItem.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { PersonalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType } from './personalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType'; + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfSixItem = { + ownerType: PersonalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType; +}; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType.ts new file mode 100644 index 000000000000..94fc2ab65a92 --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PersonalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType = + (typeof PersonalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType)[keyof typeof PersonalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonalDashboardSchemaProjectsItemOwnersOneOfSixItemOwnerType = { + system: 'system', +} as const; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItem.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItem.ts new file mode 100644 index 000000000000..2a2971cc2134 --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItem.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { PersonalDashboardSchemaProjectsItemRolesItemType } from './personalDashboardSchemaProjectsItemRolesItemType'; + +/** + * An Unleash role. + */ +export type PersonalDashboardSchemaProjectsItemRolesItem = { + /** The id of the role */ + id: number; + /** The name of the role */ + name: string; + /** The type of the role */ + type: PersonalDashboardSchemaProjectsItemRolesItemType; +}; diff --git a/frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItemType.ts b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItemType.ts new file mode 100644 index 000000000000..18fbb2e80693 --- /dev/null +++ b/frontend/src/openapi/models/personalDashboardSchemaProjectsItemRolesItemType.ts @@ -0,0 +1,19 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The type of the role + */ +export type PersonalDashboardSchemaProjectsItemRolesItemType = + (typeof PersonalDashboardSchemaProjectsItemRolesItemType)[keyof typeof PersonalDashboardSchemaProjectsItemRolesItemType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonalDashboardSchemaProjectsItemRolesItemType = { + custom: 'custom', + project: 'project', + root: 'root', + 'custom-root': 'custom-root', +} as const; diff --git a/src/lib/openapi/spec/personal-dashboard-schema.ts b/src/lib/openapi/spec/personal-dashboard-schema.ts index 69339aca6f6d..16efbbe0919c 100644 --- a/src/lib/openapi/spec/personal-dashboard-schema.ts +++ b/src/lib/openapi/spec/personal-dashboard-schema.ts @@ -71,7 +71,7 @@ export const personalDashboardSchema = { items: { type: 'object', additionalProperties: false, - required: ['name'], + required: ['name', 'project', 'type'], properties: { name: { type: 'string',