From 6f29c6c56a1e90ed692b80bbae5e8df702eb852b Mon Sep 17 00:00:00 2001 From: Mathias Oppedal Heggelund <98742460+mheggelund@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:12:51 +0200 Subject: [PATCH] chore: Update generated api models. (#322) --- src/api/generated/index.ts | 20 +-- ....ts => AddAnalogueModelOutcropResponse.ts} | 6 +- .../ConvertAnalogueModelCommandResponse.ts | 15 ++ .../models/ConvertAnalogueModelDto.ts | 15 ++ .../models/CreateParameterCommand.ts | 11 -- .../generated/models/CreateParameterDto.ts | 12 -- ...ryResponse.ts => DeleteOutcropResponse.ts} | 6 +- ...se.ts => EstimateObjectCommandResponse.ts} | 6 +- src/api/generated/models/EstimateObjectDto.ts | 15 ++ ...ts => EstimateVariogramCommandResponse.ts} | 6 +- .../generated/models/EstimateVariogramDto.ts | 15 ++ src/api/generated/models/ParameterDetail.ts | 12 -- src/api/generated/models/PatchParameterDto.ts | 12 -- .../models/UpdateParameterCommandBody.ts | 11 -- .../models/UpdateParameterCommandResponse.ts | 15 -- .../generated/models/UpdateParameterDto.ts | 12 -- .../AnalogueModelComputeCasesService.ts | 4 + .../services/AnalogueModelMetadataService.ts | 1 + .../AnalogueModelParametersService.ts | 2 + .../services/AnalogueModelsService.ts | 29 +++- .../services/ComputeSettingsService.ts | 1 + .../generated/services/DownloadsService.ts | 1 + src/api/generated/services/ImagesService.ts | 1 + src/api/generated/services/JobsService.ts | 24 ++- src/api/generated/services/MetadataService.ts | 12 ++ .../generated/services/MetadataTypeService.ts | 1 + .../services/ModelAreaTypeService.ts | 1 + src/api/generated/services/OutcropsService.ts | 1 + .../generated/services/ParametersService.ts | 151 ------------------ src/api/generated/services/ResultsService.ts | 2 + src/api/generated/services/UploadsService.ts | 6 + 31 files changed, 154 insertions(+), 272 deletions(-) rename src/api/generated/models/{GetParameterListQueryResponse.ts => AddAnalogueModelOutcropResponse.ts} (66%) create mode 100644 src/api/generated/models/ConvertAnalogueModelCommandResponse.ts create mode 100644 src/api/generated/models/ConvertAnalogueModelDto.ts delete mode 100644 src/api/generated/models/CreateParameterCommand.ts delete mode 100644 src/api/generated/models/CreateParameterDto.ts rename src/api/generated/models/{GetParameterDetailQueryResponse.ts => DeleteOutcropResponse.ts} (66%) rename src/api/generated/models/{PatchParameterCommandResponse.ts => EstimateObjectCommandResponse.ts} (65%) create mode 100644 src/api/generated/models/EstimateObjectDto.ts rename src/api/generated/models/{CreateParameterCommandResponse.ts => EstimateVariogramCommandResponse.ts} (63%) create mode 100644 src/api/generated/models/EstimateVariogramDto.ts delete mode 100644 src/api/generated/models/ParameterDetail.ts delete mode 100644 src/api/generated/models/PatchParameterDto.ts delete mode 100644 src/api/generated/models/UpdateParameterCommandBody.ts delete mode 100644 src/api/generated/models/UpdateParameterCommandResponse.ts delete mode 100644 src/api/generated/models/UpdateParameterDto.ts delete mode 100644 src/api/generated/services/ParametersService.ts diff --git a/src/api/generated/index.ts b/src/api/generated/index.ts index df0cab1a..65b977bf 100644 --- a/src/api/generated/index.ts +++ b/src/api/generated/index.ts @@ -13,6 +13,7 @@ export type { AddAnalogueModelMetadataCommandForm } from './models/AddAnalogueMo export type { AddAnalogueModelMetadataCommandResponse } from './models/AddAnalogueModelMetadataCommandResponse'; export type { AddAnalogueModelMetadataDto } from './models/AddAnalogueModelMetadataDto'; export type { AddAnalogueModelOutcropForm } from './models/AddAnalogueModelOutcropForm'; +export type { AddAnalogueModelOutcropResponse } from './models/AddAnalogueModelOutcropResponse'; export type { AddAnalogueModelParameterCommandForm } from './models/AddAnalogueModelParameterCommandForm'; export type { AddAnalogueModelParameterCommandResponse } from './models/AddAnalogueModelParameterCommandResponse'; export type { AddAnalogueModelParameterDto } from './models/AddAnalogueModelParameterDto'; @@ -33,6 +34,8 @@ export type { ComputeCaseModelAreaDto } from './models/ComputeCaseModelAreaDto'; export { ComputeJobStatus } from './models/ComputeJobStatus'; export { ComputeType } from './models/ComputeType'; export type { ConvertAnalogueModelCommand } from './models/ConvertAnalogueModelCommand'; +export type { ConvertAnalogueModelCommandResponse } from './models/ConvertAnalogueModelCommandResponse'; +export type { ConvertAnalogueModelDto } from './models/ConvertAnalogueModelDto'; export type { CoordinateDto } from './models/CoordinateDto'; export type { CountryDto } from './models/CountryDto'; export type { CreateAnalogueModelCommand } from './models/CreateAnalogueModelCommand'; @@ -44,14 +47,16 @@ export type { CreateComputeCaseInputSettingsForm } from './models/CreateComputeC 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 { DeleteOutcropResponse } from './models/DeleteOutcropResponse'; export type { DeleteStratigraphicGroupCommandResponse } from './models/DeleteStratigraphicGroupCommandResponse'; export type { ErrorResponse } from './models/ErrorResponse'; export type { EstimateObjectCommand } from './models/EstimateObjectCommand'; +export type { EstimateObjectCommandResponse } from './models/EstimateObjectCommandResponse'; +export type { EstimateObjectDto } from './models/EstimateObjectDto'; export type { EstimateVariogramCommand } from './models/EstimateVariogramCommand'; +export type { EstimateVariogramCommandResponse } from './models/EstimateVariogramCommandResponse'; +export type { EstimateVariogramDto } from './models/EstimateVariogramDto'; export type { FieldDto } from './models/FieldDto'; export type { File } from './models/File'; export type { GeologicalGroupDto } from './models/GeologicalGroupDto'; @@ -68,8 +73,6 @@ export type { GetObjectResultsDto } from './models/GetObjectResultsDto'; export type { GetObjectResultsFileDto } from './models/GetObjectResultsFileDto'; export type { GetOutcropsCommandResponse } from './models/GetOutcropsCommandResponse'; export type { GetOutcropsDto } from './models/GetOutcropsDto'; -export type { GetParameterDetailQueryResponse } from './models/GetParameterDetailQueryResponse'; -export type { GetParameterListQueryResponse } from './models/GetParameterListQueryResponse'; export type { GetUploadDetailQueryResponse } from './models/GetUploadDetailQueryResponse'; export type { GetUploadListQueryResponse } from './models/GetUploadListQueryResponse'; export type { GetVariogramResultsByModelIdQueryResponse } from './models/GetVariogramResultsByModelIdQueryResponse'; @@ -105,12 +108,9 @@ export type { ObjectHeightDto } from './models/ObjectHeightDto'; export type { Operation } from './models/Operation'; export { OperationType } from './models/OperationType'; export type { OutcropDto } from './models/OutcropDto'; -export type { ParameterDetail } from './models/ParameterDetail'; export type { ParameterList } from './models/ParameterList'; export type { PatchAnalogueModelCommandResponse } from './models/PatchAnalogueModelCommandResponse'; export type { PatchAnalogueModelDto } from './models/PatchAnalogueModelDto'; -export type { PatchParameterCommandResponse } from './models/PatchParameterCommandResponse'; -export type { PatchParameterDto } from './models/PatchParameterDto'; export type { PrepareChunkedUploadCommandResponse } from './models/PrepareChunkedUploadCommandResponse'; export type { PrepareChunkedUploadDto } from './models/PrepareChunkedUploadDto'; export type { ProblemDetails } from './models/ProblemDetails'; @@ -130,9 +130,6 @@ export type { UpdateJobStatusDto } from './models/UpdateJobStatusDto'; export type { UpdateObjectEstimationStatusCommand } from './models/UpdateObjectEstimationStatusCommand'; export type { UpdateObjectEstimationStatusCommandResponse } from './models/UpdateObjectEstimationStatusCommandResponse'; export type { UpdateObjectEstimationStatusDto } from './models/UpdateObjectEstimationStatusDto'; -export type { UpdateParameterCommandBody } from './models/UpdateParameterCommandBody'; -export type { UpdateParameterCommandResponse } from './models/UpdateParameterCommandResponse'; -export type { UpdateParameterDto } from './models/UpdateParameterDto'; export type { UpdateVariogramEstimationStatusCommand } from './models/UpdateVariogramEstimationStatusCommand'; export type { UploadAnalogueModelCommandResponse } from './models/UploadAnalogueModelCommandResponse'; export type { UploadAnalogueModelDto } from './models/UploadAnalogueModelDto'; @@ -155,7 +152,6 @@ export { MetadataService } from './services/MetadataService'; export { MetadataTypeService } from './services/MetadataTypeService'; export { ModelAreaTypeService } from './services/ModelAreaTypeService'; export { OutcropsService } from './services/OutcropsService'; -export { ParametersService } from './services/ParametersService'; export { ResultsService } from './services/ResultsService'; export { UploadsService } from './services/UploadsService'; export { WebhooksService } from './services/WebhooksService'; diff --git a/src/api/generated/models/GetParameterListQueryResponse.ts b/src/api/generated/models/AddAnalogueModelOutcropResponse.ts similarity index 66% rename from src/api/generated/models/GetParameterListQueryResponse.ts rename to src/api/generated/models/AddAnalogueModelOutcropResponse.ts index bdff05a0..c4954988 100644 --- a/src/api/generated/models/GetParameterListQueryResponse.ts +++ b/src/api/generated/models/AddAnalogueModelOutcropResponse.ts @@ -3,13 +3,13 @@ /* tslint:disable */ /* eslint-disable */ -import type { ParameterList } from './ParameterList'; +import type { OutcropDto } from './OutcropDto'; -export type GetParameterListQueryResponse = { +export type AddAnalogueModelOutcropResponse = { success?: boolean; count?: number | null; message?: string | null; validationErrors?: Array | null; - data: Array; + data: OutcropDto; }; diff --git a/src/api/generated/models/ConvertAnalogueModelCommandResponse.ts b/src/api/generated/models/ConvertAnalogueModelCommandResponse.ts new file mode 100644 index 00000000..8bc7e655 --- /dev/null +++ b/src/api/generated/models/ConvertAnalogueModelCommandResponse.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { ConvertAnalogueModelDto } from './ConvertAnalogueModelDto'; + +export type ConvertAnalogueModelCommandResponse = { + success?: boolean; + count?: number | null; + message?: string | null; + validationErrors?: Array | null; + data: ConvertAnalogueModelDto; +}; + diff --git a/src/api/generated/models/ConvertAnalogueModelDto.ts b/src/api/generated/models/ConvertAnalogueModelDto.ts new file mode 100644 index 00000000..9e7f0000 --- /dev/null +++ b/src/api/generated/models/ConvertAnalogueModelDto.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { JobStatus } from './JobStatus'; +import type { JobType } from './JobType'; + +export type ConvertAnalogueModelDto = { + jobId: string; + name: string; + jobStatus: JobStatus; + jobType: JobType; +}; + diff --git a/src/api/generated/models/CreateParameterCommand.ts b/src/api/generated/models/CreateParameterCommand.ts deleted file mode 100644 index 6572e360..00000000 --- a/src/api/generated/models/CreateParameterCommand.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type CreateParameterCommand = { - identifier: string; - name: string; - description?: string | null; -}; - diff --git a/src/api/generated/models/CreateParameterDto.ts b/src/api/generated/models/CreateParameterDto.ts deleted file mode 100644 index 837879c8..00000000 --- a/src/api/generated/models/CreateParameterDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* 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; -}; - diff --git a/src/api/generated/models/GetParameterDetailQueryResponse.ts b/src/api/generated/models/DeleteOutcropResponse.ts similarity index 66% rename from src/api/generated/models/GetParameterDetailQueryResponse.ts rename to src/api/generated/models/DeleteOutcropResponse.ts index f96dbdc6..a50caebd 100644 --- a/src/api/generated/models/GetParameterDetailQueryResponse.ts +++ b/src/api/generated/models/DeleteOutcropResponse.ts @@ -3,13 +3,11 @@ /* tslint:disable */ /* eslint-disable */ -import type { ParameterDetail } from './ParameterDetail'; - -export type GetParameterDetailQueryResponse = { +export type DeleteOutcropResponse = { success?: boolean; count?: number | null; message?: string | null; validationErrors?: Array | null; - data: ParameterDetail; + data: string; }; diff --git a/src/api/generated/models/PatchParameterCommandResponse.ts b/src/api/generated/models/EstimateObjectCommandResponse.ts similarity index 65% rename from src/api/generated/models/PatchParameterCommandResponse.ts rename to src/api/generated/models/EstimateObjectCommandResponse.ts index 5e04e594..c1341c5e 100644 --- a/src/api/generated/models/PatchParameterCommandResponse.ts +++ b/src/api/generated/models/EstimateObjectCommandResponse.ts @@ -3,13 +3,13 @@ /* tslint:disable */ /* eslint-disable */ -import type { PatchParameterDto } from './PatchParameterDto'; +import type { EstimateObjectDto } from './EstimateObjectDto'; -export type PatchParameterCommandResponse = { +export type EstimateObjectCommandResponse = { success?: boolean; count?: number | null; message?: string | null; validationErrors?: Array | null; - data: PatchParameterDto; + data: EstimateObjectDto; }; diff --git a/src/api/generated/models/EstimateObjectDto.ts b/src/api/generated/models/EstimateObjectDto.ts new file mode 100644 index 00000000..9f09b257 --- /dev/null +++ b/src/api/generated/models/EstimateObjectDto.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { JobStatus } from './JobStatus'; +import type { JobType } from './JobType'; + +export type EstimateObjectDto = { + jobId: string; + name: string; + jobStatus: JobStatus; + jobType: JobType; +}; + diff --git a/src/api/generated/models/CreateParameterCommandResponse.ts b/src/api/generated/models/EstimateVariogramCommandResponse.ts similarity index 63% rename from src/api/generated/models/CreateParameterCommandResponse.ts rename to src/api/generated/models/EstimateVariogramCommandResponse.ts index 5fc1d134..51965612 100644 --- a/src/api/generated/models/CreateParameterCommandResponse.ts +++ b/src/api/generated/models/EstimateVariogramCommandResponse.ts @@ -3,13 +3,13 @@ /* tslint:disable */ /* eslint-disable */ -import type { CreateParameterDto } from './CreateParameterDto'; +import type { EstimateVariogramDto } from './EstimateVariogramDto'; -export type CreateParameterCommandResponse = { +export type EstimateVariogramCommandResponse = { success?: boolean; count?: number | null; message?: string | null; validationErrors?: Array | null; - data: CreateParameterDto; + data: EstimateVariogramDto; }; diff --git a/src/api/generated/models/EstimateVariogramDto.ts b/src/api/generated/models/EstimateVariogramDto.ts new file mode 100644 index 00000000..a966a919 --- /dev/null +++ b/src/api/generated/models/EstimateVariogramDto.ts @@ -0,0 +1,15 @@ +/* generated using openapi-typescript-codegen -- do no edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { JobStatus } from './JobStatus'; +import type { JobType } from './JobType'; + +export type EstimateVariogramDto = { + jobId: string; + name: string; + jobStatus: JobStatus; + jobType: JobType; +}; + diff --git a/src/api/generated/models/ParameterDetail.ts b/src/api/generated/models/ParameterDetail.ts deleted file mode 100644 index ce978beb..00000000 --- a/src/api/generated/models/ParameterDetail.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type ParameterDetail = { - parameterId: string; - identifier: string; - name: string; - description: string; -}; - diff --git a/src/api/generated/models/PatchParameterDto.ts b/src/api/generated/models/PatchParameterDto.ts deleted file mode 100644 index 666b353f..00000000 --- a/src/api/generated/models/PatchParameterDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type PatchParameterDto = { - parameterId: string; - identifier: string; - name: string; - description?: string | null; -}; - diff --git a/src/api/generated/models/UpdateParameterCommandBody.ts b/src/api/generated/models/UpdateParameterCommandBody.ts deleted file mode 100644 index 93ae5e53..00000000 --- a/src/api/generated/models/UpdateParameterCommandBody.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type UpdateParameterCommandBody = { - identifier: string; - name: string; - description?: string | null; -}; - diff --git a/src/api/generated/models/UpdateParameterCommandResponse.ts b/src/api/generated/models/UpdateParameterCommandResponse.ts deleted file mode 100644 index d5e92985..00000000 --- a/src/api/generated/models/UpdateParameterCommandResponse.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -import type { UpdateParameterDto } from './UpdateParameterDto'; - -export type UpdateParameterCommandResponse = { - success?: boolean; - count?: number | null; - message?: string | null; - validationErrors?: Array | null; - data: UpdateParameterDto; -}; - diff --git a/src/api/generated/models/UpdateParameterDto.ts b/src/api/generated/models/UpdateParameterDto.ts deleted file mode 100644 index 4a64c546..00000000 --- a/src/api/generated/models/UpdateParameterDto.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ - -export type UpdateParameterDto = { - parameterId: string; - identifier: string; - name: string; - description?: string | null; -}; - diff --git a/src/api/generated/services/AnalogueModelComputeCasesService.ts b/src/api/generated/services/AnalogueModelComputeCasesService.ts index 2bf3ac1a..e6cf575b 100644 --- a/src/api/generated/services/AnalogueModelComputeCasesService.ts +++ b/src/api/generated/services/AnalogueModelComputeCasesService.ts @@ -33,6 +33,7 @@ export class AnalogueModelComputeCasesService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -53,6 +54,7 @@ export class AnalogueModelComputeCasesService { }, errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -80,6 +82,7 @@ export class AnalogueModelComputeCasesService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -103,6 +106,7 @@ export class AnalogueModelComputeCasesService { }, errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/AnalogueModelMetadataService.ts b/src/api/generated/services/AnalogueModelMetadataService.ts index 6b2a1ebc..c1ff1f1f 100644 --- a/src/api/generated/services/AnalogueModelMetadataService.ts +++ b/src/api/generated/services/AnalogueModelMetadataService.ts @@ -31,6 +31,7 @@ export class AnalogueModelMetadataService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } diff --git a/src/api/generated/services/AnalogueModelParametersService.ts b/src/api/generated/services/AnalogueModelParametersService.ts index 544236ac..28b6271c 100644 --- a/src/api/generated/services/AnalogueModelParametersService.ts +++ b/src/api/generated/services/AnalogueModelParametersService.ts @@ -12,6 +12,7 @@ import { request as __request } from '../core/request'; export class AnalogueModelParametersService { /** + * @deprecated * @param id * @param requestBody * @returns AddAnalogueModelParameterCommandResponse Success @@ -31,6 +32,7 @@ export class AnalogueModelParametersService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } diff --git a/src/api/generated/services/AnalogueModelsService.ts b/src/api/generated/services/AnalogueModelsService.ts index 6c4974bf..e72942d9 100644 --- a/src/api/generated/services/AnalogueModelsService.ts +++ b/src/api/generated/services/AnalogueModelsService.ts @@ -5,6 +5,7 @@ import type { AddAnalogueModelAreaCommandForm } from '../models/AddAnalogueModelAreaCommandForm'; import type { AddAnalogueModelAreaCommandResponse } from '../models/AddAnalogueModelAreaCommandResponse'; import type { AddAnalogueModelOutcropForm } from '../models/AddAnalogueModelOutcropForm'; +import type { AddAnalogueModelOutcropResponse } from '../models/AddAnalogueModelOutcropResponse'; import type { AddGeologicalGroupCommandResponse } from '../models/AddGeologicalGroupCommandResponse'; import type { AddGeologicalGroupForm } from '../models/AddGeologicalGroupForm'; import type { AddStatigraphicGroupForm } from '../models/AddStatigraphicGroupForm'; @@ -12,6 +13,7 @@ import type { AddStratigraphicGroupCommandResponse } from '../models/AddStratigr import type { CreateAnalogueModelCommand } from '../models/CreateAnalogueModelCommand'; import type { CreateAnalogueModelCommandResponse } from '../models/CreateAnalogueModelCommandResponse'; import type { DeleteGeologicalGroupCommandResponse } from '../models/DeleteGeologicalGroupCommandResponse'; +import type { DeleteOutcropResponse } from '../models/DeleteOutcropResponse'; import type { DeleteStratigraphicGroupCommandResponse } from '../models/DeleteStratigraphicGroupCommandResponse'; import type { GetAnalogueModelListQueryResponse } from '../models/GetAnalogueModelListQueryResponse'; import type { GetAnalogueModelQueryResponse } from '../models/GetAnalogueModelQueryResponse'; @@ -37,6 +39,10 @@ export class AnalogueModelsService { return __request(OpenAPI, { method: 'GET', url: '/api/analogue-models', + errors: { + 403: `Forbidden`, + 404: `Not Found`, + }, }); } @@ -56,6 +62,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -76,6 +83,7 @@ export class AnalogueModelsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -102,6 +110,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -128,6 +137,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -150,6 +160,7 @@ export class AnalogueModelsService { }, errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -179,6 +190,7 @@ export class AnalogueModelsService { mediaType: 'multipart/form-data', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -206,6 +218,7 @@ export class AnalogueModelsService { mediaType: 'multipart/form-data', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -230,6 +243,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -257,6 +271,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -265,13 +280,13 @@ export class AnalogueModelsService { /** * @param id * @param requestBody - * @returns AddStratigraphicGroupCommandResponse Success + * @returns AddAnalogueModelOutcropResponse Success * @throws ApiError */ public static postApiAnalogueModelsOutcrops( id: string, requestBody?: AddAnalogueModelOutcropForm, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/analogue-models/{id}/outcrops', @@ -281,6 +296,7 @@ export class AnalogueModelsService { body: requestBody, mediaType: 'application/json-patch+json', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -289,13 +305,13 @@ export class AnalogueModelsService { /** * @param id * @param outcropId - * @returns AddStratigraphicGroupCommandResponse Success + * @returns DeleteOutcropResponse Success * @throws ApiError */ public static deleteApiAnalogueModelsOutcrops( id: string, outcropId: string, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'DELETE', url: '/api/analogue-models/{id}/outcrops/{outcropId}', @@ -305,6 +321,7 @@ export class AnalogueModelsService { }, errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -330,6 +347,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -355,6 +373,7 @@ export class AnalogueModelsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -380,6 +399,7 @@ export class AnalogueModelsService { }, errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -405,6 +425,7 @@ export class AnalogueModelsService { }, errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/ComputeSettingsService.ts b/src/api/generated/services/ComputeSettingsService.ts index 9bfe0644..6a00afb5 100644 --- a/src/api/generated/services/ComputeSettingsService.ts +++ b/src/api/generated/services/ComputeSettingsService.ts @@ -19,6 +19,7 @@ export class ComputeSettingsService { method: 'GET', url: '/api/compute-settings', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/DownloadsService.ts b/src/api/generated/services/DownloadsService.ts index cf1fd9bc..6cf7f1ec 100644 --- a/src/api/generated/services/DownloadsService.ts +++ b/src/api/generated/services/DownloadsService.ts @@ -25,6 +25,7 @@ export class DownloadsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/ImagesService.ts b/src/api/generated/services/ImagesService.ts index 8de05935..2096c940 100644 --- a/src/api/generated/services/ImagesService.ts +++ b/src/api/generated/services/ImagesService.ts @@ -25,6 +25,7 @@ export class ImagesService { 'imageId': imageId, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/JobsService.ts b/src/api/generated/services/JobsService.ts index a451c4a8..45ee166b 100644 --- a/src/api/generated/services/JobsService.ts +++ b/src/api/generated/services/JobsService.ts @@ -3,8 +3,11 @@ /* tslint:disable */ /* eslint-disable */ import type { ConvertAnalogueModelCommand } from '../models/ConvertAnalogueModelCommand'; +import type { ConvertAnalogueModelCommandResponse } from '../models/ConvertAnalogueModelCommandResponse'; import type { EstimateObjectCommand } from '../models/EstimateObjectCommand'; +import type { EstimateObjectCommandResponse } from '../models/EstimateObjectCommandResponse'; import type { EstimateVariogramCommand } from '../models/EstimateVariogramCommand'; +import type { EstimateVariogramCommandResponse } from '../models/EstimateVariogramCommandResponse'; import type { GetCurrentJobStatusCommandResponse } from '../models/GetCurrentJobStatusCommandResponse'; import type { GetCurrentJobStatusListCommand } from '../models/GetCurrentJobStatusListCommand'; import type { GetJobDetailQueryResponse } from '../models/GetJobDetailQueryResponse'; @@ -25,6 +28,7 @@ export class JobsService { method: 'GET', url: '/api/jobs', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -45,6 +49,7 @@ export class JobsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -66,6 +71,7 @@ export class JobsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -81,6 +87,7 @@ export class JobsService { method: 'GET', url: '/api/jobs/status', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -89,19 +96,20 @@ export class JobsService { /** * Convert AnalogueModels to the internal format used by PEPM in order to perform calculations. * @param requestBody - * @returns any Accepted + * @returns ConvertAnalogueModelCommandResponse Accepted * @throws ApiError */ public static postApiJobsComputeModelConversions( requestBody?: ConvertAnalogueModelCommand, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/jobs/compute/model-conversions', body: requestBody, mediaType: 'application/json-patch+json', errors: { - 400: `Bad Request`, + 403: `Forbidden`, + 404: `Not Found`, }, }); } @@ -109,12 +117,12 @@ export class JobsService { /** * Estimate channel on a Deltares based model. * @param requestBody - * @returns any Accepted + * @returns EstimateObjectCommandResponse Accepted * @throws ApiError */ public static postApiJobsComputeObjectEstimations( requestBody?: EstimateObjectCommand, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/jobs/compute/object-estimations', @@ -122,6 +130,7 @@ export class JobsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } @@ -129,12 +138,12 @@ export class JobsService { /** * Estimate channel on a Deltares based model. * @param requestBody - * @returns any Accepted + * @returns EstimateVariogramCommandResponse Accepted * @throws ApiError */ public static postApiJobsComputeVariogramEstimations( requestBody?: EstimateVariogramCommand, - ): CancelablePromise { + ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/api/jobs/compute/variogram-estimations', @@ -142,6 +151,7 @@ export class JobsService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, }, }); } diff --git a/src/api/generated/services/MetadataService.ts b/src/api/generated/services/MetadataService.ts index 3249da46..a799a7c5 100644 --- a/src/api/generated/services/MetadataService.ts +++ b/src/api/generated/services/MetadataService.ts @@ -27,12 +27,14 @@ export class MetadataService { method: 'GET', url: '/api/metadata', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); } /** + * @deprecated * Creates new metadata of a specific metadata type (ex. field) * @param requestBody * @returns CreateMetadataCommandResponse Success @@ -48,6 +50,7 @@ export class MetadataService { mediaType: 'application/json-patch+json', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -61,6 +64,10 @@ export class MetadataService { return __request(OpenAPI, { method: 'GET', url: '/api/metadata/smda-metadata', + errors: { + 403: `Forbidden`, + 404: `Not Found`, + }, }); } @@ -73,6 +80,7 @@ export class MetadataService { method: 'GET', url: '/api/metadata/smda-metadata/countries', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -93,6 +101,7 @@ export class MetadataService { 'countryId': countryId, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -113,6 +122,7 @@ export class MetadataService { 'countryId': countryId, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -136,6 +146,7 @@ export class MetadataService { 'stratColumnId': stratColumnId, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -156,6 +167,7 @@ export class MetadataService { 'parentId': parentId, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/MetadataTypeService.ts b/src/api/generated/services/MetadataTypeService.ts index 92c014cc..0ff0c421 100644 --- a/src/api/generated/services/MetadataTypeService.ts +++ b/src/api/generated/services/MetadataTypeService.ts @@ -19,6 +19,7 @@ export class MetadataTypeService { method: 'GET', url: '/api/metadatatype', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/ModelAreaTypeService.ts b/src/api/generated/services/ModelAreaTypeService.ts index e4f0ab81..07975d2c 100644 --- a/src/api/generated/services/ModelAreaTypeService.ts +++ b/src/api/generated/services/ModelAreaTypeService.ts @@ -19,6 +19,7 @@ export class ModelAreaTypeService { method: 'GET', url: '/api/modelareatype', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/OutcropsService.ts b/src/api/generated/services/OutcropsService.ts index c9c3f601..1d6c5913 100644 --- a/src/api/generated/services/OutcropsService.ts +++ b/src/api/generated/services/OutcropsService.ts @@ -19,6 +19,7 @@ export class OutcropsService { method: 'GET', url: '/api/outcrops', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/ParametersService.ts b/src/api/generated/services/ParametersService.ts deleted file mode 100644 index aef36b6a..00000000 --- a/src/api/generated/services/ParametersService.ts +++ /dev/null @@ -1,151 +0,0 @@ -/* generated using openapi-typescript-codegen -- do no edit */ -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -import type { CreateParameterCommand } from '../models/CreateParameterCommand'; -import type { CreateParameterCommandResponse } from '../models/CreateParameterCommandResponse'; -import type { GetParameterDetailQueryResponse } from '../models/GetParameterDetailQueryResponse'; -import type { GetParameterListQueryResponse } from '../models/GetParameterListQueryResponse'; -import type { Operation } from '../models/Operation'; -import type { PatchParameterCommandResponse } from '../models/PatchParameterCommandResponse'; -import type { UpdateParameterCommandBody } from '../models/UpdateParameterCommandBody'; -import type { UpdateParameterCommandResponse } from '../models/UpdateParameterCommandResponse'; - -import type { CancelablePromise } from '../core/CancelablePromise'; -import { OpenAPI } from '../core/OpenAPI'; -import { request as __request } from '../core/request'; - -export class ParametersService { - - /** - * Get a list of all Parameters - * @returns GetParameterListQueryResponse Success - * @throws ApiError - */ - public static getApiParameters(): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/api/parameters', - errors: { - 404: `Not Found`, - }, - }); - } - - /** - * Create new Parameter - * @param requestBody - * @returns CreateParameterCommandResponse Success - * @throws ApiError - */ - public static postApiParameters( - requestBody?: CreateParameterCommand, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'POST', - url: '/api/parameters', - body: requestBody, - mediaType: 'application/json-patch+json', - errors: { - 400: `Bad Request`, - }, - }); - } - - /** - * Get Parameter details by Id - * @param id - * @returns GetParameterDetailQueryResponse Success - * @throws ApiError - */ - public static getApiParameters1( - id: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'GET', - url: '/api/parameters/{id}', - path: { - 'id': id, - }, - errors: { - 400: `Bad Request`, - 404: `Not Found`, - }, - }); - } - - /** - * Patch a Parameter by Id with new values - * @param id - * @param requestBody - * @returns PatchParameterCommandResponse Success - * @throws ApiError - */ - public static patchApiParameters( - id: string, - requestBody?: Array, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PATCH', - url: '/api/parameters/{id}', - path: { - 'id': id, - }, - body: requestBody, - mediaType: 'application/json-patch+json', - errors: { - 400: `Bad Request`, - 404: `Not Found`, - }, - }); - } - - /** - * Update Parameter by Id - * @param id - * @param requestBody - * @returns UpdateParameterCommandResponse Success - * @throws ApiError - */ - public static putApiParameters( - id: string, - requestBody?: UpdateParameterCommandBody, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'PUT', - url: '/api/parameters/{id}', - path: { - 'id': id, - }, - body: requestBody, - mediaType: 'application/json-patch+json', - errors: { - 400: `Bad Request`, - 404: `Not Found`, - }, - }); - } - - /** - * Delete a parameter by id - * @param id - * @returns void - * @throws ApiError - */ - public static deleteApiParameters( - id: string, - ): CancelablePromise { - return __request(OpenAPI, { - method: 'DELETE', - url: '/api/parameters/{id}', - path: { - 'id': id, - }, - errors: { - 400: `Bad Request`, - 404: `Not Found`, - }, - }); - } - -} diff --git a/src/api/generated/services/ResultsService.ts b/src/api/generated/services/ResultsService.ts index abff03c2..7a3e737e 100644 --- a/src/api/generated/services/ResultsService.ts +++ b/src/api/generated/services/ResultsService.ts @@ -27,6 +27,7 @@ export class ResultsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -48,6 +49,7 @@ export class ResultsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); diff --git a/src/api/generated/services/UploadsService.ts b/src/api/generated/services/UploadsService.ts index 7209edc2..c50a6f13 100644 --- a/src/api/generated/services/UploadsService.ts +++ b/src/api/generated/services/UploadsService.ts @@ -25,6 +25,7 @@ export class UploadsService { method: 'GET', url: '/api/uploads', errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -45,6 +46,7 @@ export class UploadsService { 'id': id, }, errors: { + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -70,6 +72,7 @@ export class UploadsService { mediaType: 'multipart/form-data', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -96,6 +99,7 @@ export class UploadsService { mediaType: 'multipart/form-data', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -121,6 +125,7 @@ export class UploadsService { mediaType: 'multipart/form-data', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, }); @@ -144,6 +149,7 @@ export class UploadsService { mediaType: 'multipart/form-data', errors: { 400: `Bad Request`, + 403: `Forbidden`, 404: `Not Found`, }, });