1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

chore: update orval for personal dashboards (#8268)

Updates orval for personal dashboards
This commit is contained in:
Thomas Heartman 2024-09-26 11:03:55 +02:00 committed by GitHub
parent 3f80fdb090
commit cf476f9e7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 173 additions and 1 deletions

View File

@ -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

View File

@ -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';

View File

@ -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;
};

View File

@ -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[];
};

View File

@ -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[];

View File

@ -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;

View File

@ -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;
};

View File

@ -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;

View File

@ -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;
};

View File

@ -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;

View File

@ -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;
};

View File

@ -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;

View File

@ -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;
};

View File

@ -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;

View File

@ -71,7 +71,7 @@ export const personalDashboardSchema = {
items: {
type: 'object',
additionalProperties: false,
required: ['name'],
required: ['name', 'project', 'type'],
properties: {
name: {
type: 'string',