Skip to content

Commit

Permalink
Feat/transformin status (#320)
Browse files Browse the repository at this point in the history
* chore: update autogenerated api files.

* chore: update components to reflect uppdated api models.

* Feat: Add model status for transforming state.
  • Loading branch information
mheggelund authored Sep 17, 2024
1 parent e0238e5 commit 4a172c0
Show file tree
Hide file tree
Showing 29 changed files with 306 additions and 9 deletions.
6 changes: 6 additions & 0 deletions src/api/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export type { CreateComputeCaseCommandForm } from './models/CreateComputeCaseCom
export type { CreateComputeCaseCommandResponse } from './models/CreateComputeCaseCommandResponse';
export type { CreateComputeCaseInputSettingsForm } from './models/CreateComputeCaseInputSettingsForm';
export type { CreateMetadataCommandForm } from './models/CreateMetadataCommandForm';
export type { CreateMetadataCommandResponse } from './models/CreateMetadataCommandResponse';
export type { CreateMetadataDto } from './models/CreateMetadataDto';
export type { CreateParameterCommand } from './models/CreateParameterCommand';
export type { CreateParameterCommandResponse } from './models/CreateParameterCommandResponse';
export type { CreateParameterDto } from './models/CreateParameterDto';
export type { DeleteGeologicalGroupCommandResponse } from './models/DeleteGeologicalGroupCommandResponse';
export type { DeleteStratigraphicGroupCommandResponse } from './models/DeleteStratigraphicGroupCommandResponse';
export type { ErrorResponse } from './models/ErrorResponse';
Expand Down Expand Up @@ -109,6 +113,7 @@ export type { PatchParameterCommandResponse } from './models/PatchParameterComma
export type { PatchParameterDto } from './models/PatchParameterDto';
export type { PrepareChunkedUploadCommandResponse } from './models/PrepareChunkedUploadCommandResponse';
export type { PrepareChunkedUploadDto } from './models/PrepareChunkedUploadDto';
export type { ProblemDetails } from './models/ProblemDetails';
export type { RadixJobDto } from './models/RadixJobDto';
export type { StratColumnDto } from './models/StratColumnDto';
export type { StratigraphicGroupDto } from './models/StratigraphicGroupDto';
Expand Down Expand Up @@ -143,6 +148,7 @@ export { AnalogueModelMetadataService } from './services/AnalogueModelMetadataSe
export { AnalogueModelParametersService } from './services/AnalogueModelParametersService';
export { AnalogueModelsService } from './services/AnalogueModelsService';
export { ComputeSettingsService } from './services/ComputeSettingsService';
export { DownloadsService } from './services/DownloadsService';
export { ImagesService } from './services/ImagesService';
export { JobsService } from './services/JobsService';
export { MetadataService } from './services/MetadataService';
Expand Down
6 changes: 6 additions & 0 deletions src/api/generated/models/AnalogueModelDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import type { AnalogueModelSourceType } from './AnalogueModelSourceType';
import type { GeologicalGroupDto } from './GeologicalGroupDto';
import type { JobStatus } from './JobStatus';
import type { MetadataDto } from './MetadataDto';
import type { ModelAreaDto } from './ModelAreaDto';
import type { OutcropDto } from './OutcropDto';
Expand All @@ -13,6 +14,10 @@ import type { StratigraphicGroupDto } from './StratigraphicGroupDto';
import type { UploadList } from './UploadList';

export type AnalogueModelDetail = {
createdBy?: string | null;
createdDate?: string;
lastModifiedBy?: string | null;
lastModifiedDate?: string;
analogueModelId: string;
name: string;
description: string;
Expand All @@ -25,5 +30,6 @@ export type AnalogueModelDetail = {
stratigraphicGroups: Array<StratigraphicGroupDto>;
geologicalGroups: Array<GeologicalGroupDto>;
outcrops: Array<OutcropDto>;
processingStatus: JobStatus;
};

2 changes: 2 additions & 0 deletions src/api/generated/models/AnalogueModelList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import type { AnalogueModelSourceType } from './AnalogueModelSourceType';
import type { GeologicalGroupDto } from './GeologicalGroupDto';
import type { JobStatus } from './JobStatus';
import type { MetadataDto } from './MetadataDto';
import type { ModelAreaDto } from './ModelAreaDto';
import type { OutcropDto } from './OutcropDto';
Expand All @@ -25,5 +26,6 @@ export type AnalogueModelList = {
description: string;
isProcessed: boolean;
sourceType: AnalogueModelSourceType;
processingStatus: JobStatus;
};

15 changes: 15 additions & 0 deletions src/api/generated/models/CreateMetadataCommandResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { CreateMetadataDto } from './CreateMetadataDto';

export type CreateMetadataCommandResponse = {
success?: boolean;
count?: number | null;
message?: string | null;
validationErrors?: Array<string> | null;
data: CreateMetadataDto;
};

12 changes: 12 additions & 0 deletions src/api/generated/models/CreateMetadataDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CreateMetadataDto = {
metadataId: string;
externalId: string;
metadataTypeId: string;
value: string;
};

15 changes: 15 additions & 0 deletions src/api/generated/models/CreateParameterCommandResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { CreateParameterDto } from './CreateParameterDto';

export type CreateParameterCommandResponse = {
success?: boolean;
count?: number | null;
message?: string | null;
validationErrors?: Array<string> | null;
data: CreateParameterDto;
};

12 changes: 12 additions & 0 deletions src/api/generated/models/CreateParameterDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CreateParameterDto = {
parameterId: string;
identifier: string;
name: string;
description?: string | null;
};

6 changes: 6 additions & 0 deletions src/api/generated/models/ProblemDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ProblemDetails = Record<string, any>;
13 changes: 13 additions & 0 deletions src/api/generated/services/AnalogueModelComputeCasesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export class AnalogueModelComputeCasesService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
},
});
}

Expand All @@ -48,6 +51,9 @@ export class AnalogueModelComputeCasesService {
path: {
'id': id,
},
errors: {
400: `Bad Request`,
},
});
}

Expand All @@ -72,6 +78,9 @@ export class AnalogueModelComputeCasesService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
},
});
}

Expand All @@ -92,6 +101,10 @@ export class AnalogueModelComputeCasesService {
'id': id,
'computeCaseId': computeCaseId,
},
errors: {
400: `Bad Request`,
404: `Not Found`,
},
});
}

Expand Down
3 changes: 3 additions & 0 deletions src/api/generated/services/AnalogueModelMetadataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export class AnalogueModelMetadataService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
},
});
}

Expand Down
3 changes: 3 additions & 0 deletions src/api/generated/services/AnalogueModelParametersService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export class AnalogueModelParametersService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
},
});
}

Expand Down
31 changes: 31 additions & 0 deletions src/api/generated/services/AnalogueModelsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export class AnalogueModelsService {
path: {
'id': id,
},
errors: {
404: `Not Found`,
},
});
}

Expand Down Expand Up @@ -174,6 +177,9 @@ export class AnalogueModelsService {
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
400: `Bad Request`,
},
});
}

Expand All @@ -198,6 +204,9 @@ export class AnalogueModelsService {
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
400: `Bad Request`,
},
});
}

Expand All @@ -219,6 +228,9 @@ export class AnalogueModelsService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
},
});
}

Expand All @@ -243,6 +255,10 @@ export class AnalogueModelsService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
404: `Not Found`,
},
});
}

Expand All @@ -264,6 +280,9 @@ export class AnalogueModelsService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
404: `Not Found`,
},
});
}

Expand All @@ -284,6 +303,10 @@ export class AnalogueModelsService {
'id': id,
'outcropId': outcropId,
},
errors: {
400: `Bad Request`,
404: `Not Found`,
},
});
}

Expand All @@ -305,6 +328,10 @@ export class AnalogueModelsService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
404: `Not Found`,
},
});
}

Expand All @@ -326,6 +353,10 @@ export class AnalogueModelsService {
},
body: requestBody,
mediaType: 'application/json-patch+json',
errors: {
400: `Bad Request`,
404: `Not Found`,
},
});
}

Expand Down
3 changes: 3 additions & 0 deletions src/api/generated/services/ComputeSettingsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class ComputeSettingsService {
return __request(OpenAPI, {
method: 'GET',
url: '/api/compute-settings',
errors: {
404: `Not Found`,
},
});
}

Expand Down
33 changes: 33 additions & 0 deletions src/api/generated/services/DownloadsService.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { File } from '../models/File';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class DownloadsService {

/**
* @param id
* @returns File Success
* @throws ApiError
*/
public static getApiDownloads(
id: string,
): CancelablePromise<File> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/downloads/{id}',
path: {
'id': id,
},
errors: {
404: `Not Found`,
},
});
}

}
3 changes: 3 additions & 0 deletions src/api/generated/services/ImagesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export class ImagesService {
path: {
'imageId': imageId,
},
errors: {
404: `Not Found`,
},
});
}

Expand Down
Loading

0 comments on commit 4a172c0

Please sign in to comment.