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

chore: update openapi (#7881)

Auto-generated types
This commit is contained in:
Tymoteusz Czech 2024-08-14 16:31:32 +02:00 committed by GitHub
parent de2a62a15d
commit 1e66fedb7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ArchiveProject400 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ArchiveProject401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ArchiveProject403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -60,6 +60,7 @@ export const DeprecatedSearchEventsSchemaType = {
'project-updated': 'project-updated',
'project-deleted': 'project-deleted',
'project-archived': 'project-archived',
'project-revived': 'project-revived',
'project-import': 'project-import',
'project-user-added': 'project-user-added',
'project-user-removed': 'project-user-removed',

View File

@ -60,6 +60,7 @@ export const EventSchemaType = {
'project-updated': 'project-updated',
'project-deleted': 'project-deleted',
'project-archived': 'project-archived',
'project-revived': 'project-revived',
'project-import': 'project-import',
'project-user-added': 'project-user-added',
'project-user-removed': 'project-user-removed',

View File

@ -3,6 +3,7 @@
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { FeatureSchemaCollaborators } from './featureSchemaCollaborators';
import type { FeatureSchemaCreatedBy } from './featureSchemaCreatedBy';
import type { FeatureSchemaDependenciesItem } from './featureSchemaDependenciesItem';
import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema';
@ -24,6 +25,8 @@ export interface FeatureSchema {
archivedAt?: string | null;
/** The list of child feature names. This is an experimental field and may change. */
children?: string[];
/** Information related to users who have made changes to this feature flage. */
collaborators?: FeatureSchemaCollaborators;
/**
* The date the feature was created
* @nullable

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { FeatureSchemaCollaboratorsUsersItem } from './featureSchemaCollaboratorsUsersItem';
/**
* Information related to users who have made changes to this feature flage.
*/
export type FeatureSchemaCollaborators = {
/** Users who have made any changes to this feature flags. The list is sorted in reverse chronological order (most recent changes first) */
users: FeatureSchemaCollaboratorsUsersItem[];
};

View File

@ -0,0 +1,17 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A simple representation of a user.
*/
export type FeatureSchemaCollaboratorsUsersItem = {
/** The user's id */
id: number;
/** The URL to the user's profile image */
imageUrl: string;
/** The user's name, username, or email (prioritized in that order). If none of those are present, this property will be set to the string `unknown` */
name: string;
};

View File

@ -112,6 +112,9 @@ export * from './archiveFeatures400';
export * from './archiveFeatures401';
export * from './archiveFeatures403';
export * from './archiveFeatures415';
export * from './archiveProject400';
export * from './archiveProject401';
export * from './archiveProject403';
export * from './bannerSchema';
export * from './bannersSchema';
export * from './batchFeaturesSchema';
@ -550,6 +553,8 @@ export * from './featureLifecycleSchemaItem';
export * from './featureLifecycleSchemaItemStage';
export * from './featureMetricsSchema';
export * from './featureSchema';
export * from './featureSchemaCollaborators';
export * from './featureSchemaCollaboratorsUsersItem';
export * from './featureSchemaCreatedBy';
export * from './featureSchemaDependenciesItem';
export * from './featureSchemaLifecycle';
@ -1017,6 +1022,9 @@ export * from './reviveFeature403';
export * from './reviveFeatures400';
export * from './reviveFeatures401';
export * from './reviveFeatures403';
export * from './reviveProject400';
export * from './reviveProject401';
export * from './reviveProject403';
export * from './roleSchema';
export * from './roleWithPermissionsSchema';
export * from './roleWithVersionSchema';

View File

@ -10,6 +10,11 @@ import type { ProjectSchemaOwners } from './projectSchemaOwners';
* A definition of the project used for projects listing purposes
*/
export interface ProjectSchema {
/**
* When this project was archived.
* @nullable
*/
archivedAt?: string | null;
/** The average time from when a feature was created to when it was enabled in the "production" environment during the current window */
avgTimeToProduction?: number;
/** When this project was created. */

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ReviveProject400 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ReviveProject401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ReviveProject403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};