1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: update orval with latest change request schema updates (#4446)

This commit is contained in:
Thomas Heartman 2023-08-08 13:58:22 +02:00 committed by GitHub
parent 57c448c197
commit 17798408a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 75 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import type { ChangeRequestChangeSchemaPayload } from './changeRequestChangeSche
import type { ChangeRequestChangeSchemaCreatedBy } from './changeRequestChangeSchemaCreatedBy';
/**
* A change request event, containing info about the type of change and the specific changes.
* A change request change, containing info about the type of change and the specific changes.
*/
export interface ChangeRequestChangeSchema {
/** The ID of this change. */

View File

@ -5,7 +5,7 @@
*/
import type { ChangeRequestSchemaState } from './changeRequestSchemaState';
import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema';
import type { ChangeRequestChangeSchema } from './changeRequestChangeSchema';
import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema';
import type { ChangeRequestApprovalSchema } from './changeRequestApprovalSchema';
import type { ChangeRequestCommentSchema } from './changeRequestCommentSchema';
import type { ChangeRequestSchemaCreatedBy } from './changeRequestSchemaCreatedBy';
@ -29,7 +29,7 @@ export interface ChangeRequestSchema {
/** The list of features and their changes that relate to this change request. */
features: ChangeRequestFeatureSchema[];
/** The list of segments and their changes that relate to this change request. */
segments: ChangeRequestChangeSchema[];
segments: ChangeRequestSegmentChangeSchema[];
/** A list of approvals that this change request has received. */
approvals?: ChangeRequestApprovalSchema[];
/** All comments that have been made on this change request. */

View File

@ -0,0 +1,27 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ChangeRequestSegmentChangeSchemaPayload } from './changeRequestSegmentChangeSchemaPayload';
import type { ChangeRequestSegmentChangeSchemaCreatedBy } from './changeRequestSegmentChangeSchemaCreatedBy';
/**
* A change request segment change, containing info about the type of segment change and the specific changes.
*/
export interface ChangeRequestSegmentChangeSchema {
/** The ID of this change. */
id: number;
/** The kind of action that the change contains information about. */
action: string;
/** A description of the conflict caused by this change. Only present if there are any conflicts. */
conflict?: string;
/** The data required to perform this action. */
payload: ChangeRequestSegmentChangeSchemaPayload;
/** The user who created this change. */
createdBy?: ChangeRequestSegmentChangeSchemaCreatedBy;
/** When this change was suggested */
createdAt?: string;
/** The current name of the segment */
name: string;
}

View File

@ -0,0 +1,15 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The user who created this change.
*/
export type ChangeRequestSegmentChangeSchemaCreatedBy = {
/** The user's username. */
username?: string | null;
/** The URL where the user's image can be found. */
imageUrl?: string | null;
};

View File

@ -0,0 +1,17 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ChangeRequestSegmentChangeSchemaPayloadOneOf } from './changeRequestSegmentChangeSchemaPayloadOneOf';
import type { SetStrategySortOrderSchema } from './setStrategySortOrderSchema';
/**
* The data required to perform this action.
*/
export type ChangeRequestSegmentChangeSchemaPayload =
| string
| boolean
| ChangeRequestSegmentChangeSchemaPayloadOneOf
| number
| SetStrategySortOrderSchema;

View File

@ -0,0 +1,9 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ChangeRequestSegmentChangeSchemaPayloadOneOf = {
[key: string]: any;
};

View File

@ -149,6 +149,10 @@ export * from './changeRequestOneOrManyCreateSchema';
export * from './changeRequestSchema';
export * from './changeRequestSchemaCreatedBy';
export * from './changeRequestSchemaState';
export * from './changeRequestSegmentChangeSchema';
export * from './changeRequestSegmentChangeSchemaCreatedBy';
export * from './changeRequestSegmentChangeSchemaPayload';
export * from './changeRequestSegmentChangeSchemaPayloadOneOf';
export * from './changeRequestStateSchema';
export * from './changeRequestStateSchemaState';
export * from './changeRequestUpdateTitleSchema';