api: update from latest imageBuilder@main
Adds the composeId to the CloneResponseItem element. Updates the mocks accordingly
This commit is contained in:
parent
e998dd802b
commit
f147d5f4fe
3 changed files with 10 additions and 0 deletions
|
|
@ -1023,12 +1023,17 @@ components:
|
|||
ClonesResponseItem:
|
||||
required:
|
||||
- id
|
||||
- compose_id
|
||||
- request
|
||||
- created_at
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
compose_id:
|
||||
type: string
|
||||
format: uuid
|
||||
description: 'UUID of the parent compose of the clone'
|
||||
request:
|
||||
$ref: '#/components/schemas/CloneRequest'
|
||||
created_at:
|
||||
|
|
|
|||
|
|
@ -334,6 +334,7 @@ export type Awsec2Clone = {
|
|||
export type CloneRequest = Awsec2Clone;
|
||||
export type ClonesResponseItem = {
|
||||
id: string;
|
||||
compose_id: string;
|
||||
request: CloneRequest;
|
||||
created_at: string;
|
||||
};
|
||||
|
|
|
|||
4
src/test/fixtures/composes.ts
vendored
4
src/test/fixtures/composes.ts
vendored
|
|
@ -734,6 +734,7 @@ export const mockClones = (composeId: string): ClonesResponse => {
|
|||
return {
|
||||
data: [
|
||||
{
|
||||
compose_id: '1579d95b-8f1d-4982-8c53-8c2afa4ab04c',
|
||||
created_at: '2021-04-27T12:31:12Z',
|
||||
id: 'f9133ec4-7a9e-4fd9-9a9f-9636b82b0a5d',
|
||||
request: {
|
||||
|
|
@ -742,6 +743,7 @@ export const mockClones = (composeId: string): ClonesResponse => {
|
|||
},
|
||||
},
|
||||
{
|
||||
compose_id: '1579d95b-8f1d-4982-8c53-8c2afa4ab04c',
|
||||
created_at: '2021-04-28T12:31:12Z',
|
||||
id: '48fce414-0cc0-4a16-8645-e3f0edec3212',
|
||||
request: {
|
||||
|
|
@ -750,6 +752,7 @@ export const mockClones = (composeId: string): ClonesResponse => {
|
|||
},
|
||||
},
|
||||
{
|
||||
compose_id: '1579d95b-8f1d-4982-8c53-8c2afa4ab04c',
|
||||
created_at: '2021-04-27T12:31:12Z',
|
||||
id: '0169538e-515c-477e-b934-f12783939313',
|
||||
request: {
|
||||
|
|
@ -758,6 +761,7 @@ export const mockClones = (composeId: string): ClonesResponse => {
|
|||
},
|
||||
},
|
||||
{
|
||||
compose_id: '1579d95b-8f1d-4982-8c53-8c2afa4ab04c',
|
||||
created_at: '2021-04-27T12:31:12Z',
|
||||
id: '4a851db1-919f-43ca-a7ef-dd209877a77e',
|
||||
request: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue