Skip to content

Commit

Permalink
chore: update orval for personal dashboards (#8268)
Browse files Browse the repository at this point in the history
Updates orval for personal dashboards
  • Loading branch information
thomasheartman authored Sep 26, 2024
1 parent 3f80fdb commit cf476f9
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 1 deletion.
10 changes: 10 additions & 0 deletions frontend/src/openapi/models/eventSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/openapi/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
11 changes: 11 additions & 0 deletions frontend/src/openapi/models/personalDashboardSchemaProjectsItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
};
Original file line number Diff line number Diff line change
@@ -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[];
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
};
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
};
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
};
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
};
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion src/lib/openapi/spec/personal-dashboard-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const personalDashboardSchema = {
items: {
type: 'object',
additionalProperties: false,
required: ['name'],
required: ['name', 'project', 'type'],
properties: {
name: {
type: 'string',
Expand Down

0 comments on commit cf476f9

Please sign in to comment.