Skip to content

Commit

Permalink
chore: update orval with latest change request schema updates (#4446)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Aug 8, 2023
1 parent 57c448c commit 1779840
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/openapi/models/changeRequestChangeSchema.ts
Expand Up @@ -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. */
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/openapi/models/changeRequestSchema.ts
Expand Up @@ -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';
Expand All @@ -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. */
Expand Down
27 changes: 27 additions & 0 deletions frontend/src/openapi/models/changeRequestSegmentChangeSchema.ts
@@ -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;
}
@@ -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;
};
@@ -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;
@@ -0,0 +1,9 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

export type ChangeRequestSegmentChangeSchemaPayloadOneOf = {
[key: string]: any;
};
4 changes: 4 additions & 0 deletions frontend/src/openapi/models/index.ts
Expand Up @@ -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';
Expand Down

0 comments on commit 1779840

Please sign in to comment.