diff --git a/frontend/src/openapi/models/changeRequestChangeSchema.ts b/frontend/src/openapi/models/changeRequestChangeSchema.ts index afd2ca452a..70a7be74ac 100644 --- a/frontend/src/openapi/models/changeRequestChangeSchema.ts +++ b/frontend/src/openapi/models/changeRequestChangeSchema.ts @@ -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. */ diff --git a/frontend/src/openapi/models/changeRequestSchema.ts b/frontend/src/openapi/models/changeRequestSchema.ts index 6c7d35aacf..54a35d3064 100644 --- a/frontend/src/openapi/models/changeRequestSchema.ts +++ b/frontend/src/openapi/models/changeRequestSchema.ts @@ -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. */ diff --git a/frontend/src/openapi/models/changeRequestSegmentChangeSchema.ts b/frontend/src/openapi/models/changeRequestSegmentChangeSchema.ts new file mode 100644 index 0000000000..48001fa35b --- /dev/null +++ b/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; +} diff --git a/frontend/src/openapi/models/changeRequestSegmentChangeSchemaCreatedBy.ts b/frontend/src/openapi/models/changeRequestSegmentChangeSchemaCreatedBy.ts new file mode 100644 index 0000000000..657e8c9d20 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestSegmentChangeSchemaCreatedBy.ts @@ -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; +}; diff --git a/frontend/src/openapi/models/changeRequestSegmentChangeSchemaPayload.ts b/frontend/src/openapi/models/changeRequestSegmentChangeSchemaPayload.ts new file mode 100644 index 0000000000..2db87c0cb4 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestSegmentChangeSchemaPayload.ts @@ -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; diff --git a/frontend/src/openapi/models/changeRequestSegmentChangeSchemaPayloadOneOf.ts b/frontend/src/openapi/models/changeRequestSegmentChangeSchemaPayloadOneOf.ts new file mode 100644 index 0000000000..1660579427 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestSegmentChangeSchemaPayloadOneOf.ts @@ -0,0 +1,9 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeRequestSegmentChangeSchemaPayloadOneOf = { + [key: string]: any; +}; diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index a5333a9fa8..866f55f890 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -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';