Skip to content

Commit

Permalink
fix: removed deprecated endpoints from api services (#306)
Browse files Browse the repository at this point in the history
* fix: updated api services and dtos
  • Loading branch information
Sinrefvol authored Jul 2, 2024
1 parent 6f7db3d commit f772055
Show file tree
Hide file tree
Showing 24 changed files with 167 additions and 280 deletions.
17 changes: 5 additions & 12 deletions src/api/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,22 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';

export type { AddAnalogueDto } from './models/AddAnalogueDto';
export type { AddAnalogueModelAnalogueCommandForm } from './models/AddAnalogueModelAnalogueCommandForm';
export type { AddAnalogueModelAnalogueCommandResponse } from './models/AddAnalogueModelAnalogueCommandResponse';
export type { AddAnalogueModelAnalogueDto } from './models/AddAnalogueModelAnalogueDto';
export type { AddAnalogueModelAreaCommandForm } from './models/AddAnalogueModelAreaCommandForm';
export type { AddAnalogueModelAreaCommandResponse } from './models/AddAnalogueModelAreaCommandResponse';
export type { AddAnalogueModelMetadataCommandForm } from './models/AddAnalogueModelMetadataCommandForm';
export type { AddAnalogueModelMetadataCommandResponse } from './models/AddAnalogueModelMetadataCommandResponse';
export type { AddAnalogueModelMetadataDto } from './models/AddAnalogueModelMetadataDto';
export type { AddAnalogueModelOutcropForm } from './models/AddAnalogueModelOutcropForm';
export type { AddAnalogueModelParameterCommandForm } from './models/AddAnalogueModelParameterCommandForm';
export type { AddAnalogueModelParameterCommandResponse } from './models/AddAnalogueModelParameterCommandResponse';
export type { AddAnalogueModelParameterDto } from './models/AddAnalogueModelParameterDto';
export type { AddAnalogueResponseDto } from './models/AddAnalogueResponseDto';
export type { AddGeologicalGroupCommandResponse } from './models/AddGeologicalGroupCommandResponse';
export type { AddGeologicalGroupForm } from './models/AddGeologicalGroupForm';
export type { AddMetadataDto } from './models/AddMetadataDto';
export type { AddMetadataResponseDto } from './models/AddMetadataResponseDto';
export type { AddParameterDto } from './models/AddParameterDto';
export type { AddStatigraphicGroupForm } from './models/AddStatigraphicGroupForm';
export type { AddStratigraphicGroupCommandResponse } from './models/AddStratigraphicGroupCommandResponse';
export type { AnalogueList } from './models/AnalogueList';
export type { AnalogueModelDetail } from './models/AnalogueModelDetail';
export type { AnalogueModelList } from './models/AnalogueModelList';
export { AnalogueModelSourceType } from './models/AnalogueModelSourceType';
Expand All @@ -40,9 +35,6 @@ export { ComputeType } from './models/ComputeType';
export type { ConvertAnalogueModelCommand } from './models/ConvertAnalogueModelCommand';
export type { CoordinateDto } from './models/CoordinateDto';
export type { CountryDto } from './models/CountryDto';
export type { CreateAnalogueCommand } from './models/CreateAnalogueCommand';
export type { CreateAnalogueCommandResponse } from './models/CreateAnalogueCommandResponse';
export type { CreateAnalogueDto } from './models/CreateAnalogueDto';
export type { CreateAnalogueModelCommand } from './models/CreateAnalogueModelCommand';
export type { CreateAnalogueModelCommandResponse } from './models/CreateAnalogueModelCommandResponse';
export type { CreateAnalogueModelDto } from './models/CreateAnalogueModelDto';
Expand All @@ -60,7 +52,6 @@ export type { FieldDto } from './models/FieldDto';
export type { File } from './models/File';
export type { GeologicalGroupDto } from './models/GeologicalGroupDto';
export type { GeologicalStandardDto } from './models/GeologicalStandardDto';
export type { GetAnalogueListQueryResponse } from './models/GetAnalogueListQueryResponse';
export type { GetAnalogueModelListQueryResponse } from './models/GetAnalogueModelListQueryResponse';
export type { GetAnalogueModelQueryResponse } from './models/GetAnalogueModelQueryResponse';
export type { GetCurrentJobStatusCommandResponse } from './models/GetCurrentJobStatusCommandResponse';
Expand All @@ -71,6 +62,8 @@ export type { GetJobListQueryResponse } from './models/GetJobListQueryResponse';
export type { GetObjectResultsByModelIdQueryResponse } from './models/GetObjectResultsByModelIdQueryResponse';
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';
Expand Down Expand Up @@ -107,6 +100,7 @@ export type { ObjectEstimationResultDto } from './models/ObjectEstimationResultD
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';
Expand Down Expand Up @@ -144,18 +138,17 @@ export { UploadFileType } from './models/UploadFileType';
export type { UploadList } from './models/UploadList';
export { UploadStatus } from './models/UploadStatus';

export { AnalogueModelAnaloguesService } from './services/AnalogueModelAnaloguesService';
export { AnalogueModelComputeCasesService } from './services/AnalogueModelComputeCasesService';
export { AnalogueModelMetadataService } from './services/AnalogueModelMetadataService';
export { AnalogueModelParametersService } from './services/AnalogueModelParametersService';
export { AnalogueModelsService } from './services/AnalogueModelsService';
export { AnaloguesService } from './services/AnaloguesService';
export { ComputeSettingsService } from './services/ComputeSettingsService';
export { ImagesService } from './services/ImagesService';
export { JobsService } from './services/JobsService';
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';
Expand Down
11 changes: 0 additions & 11 deletions src/api/generated/models/AddAnalogueModelAnalogueCommandForm.ts

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions src/api/generated/models/AddAnalogueModelAnalogueDto.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* tslint:disable */
/* eslint-disable */

export type AddAnalogueDto = {
analogueId: string;
export type AddAnalogueModelOutcropForm = {
outcropId?: string;
};

11 changes: 0 additions & 11 deletions src/api/generated/models/AddAnalogueResponseDto.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/api/generated/models/AnalogueList.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/api/generated/models/AnalogueModelDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
/* tslint:disable */
/* eslint-disable */

import type { AnalogueList } from './AnalogueList';
import type { AnalogueModelSourceType } from './AnalogueModelSourceType';
import type { GeologicalGroupDto } from './GeologicalGroupDto';
import type { MetadataDto } from './MetadataDto';
import type { ModelAreaDto } from './ModelAreaDto';
import type { OutcropDto } from './OutcropDto';
import type { ParameterList } from './ParameterList';
import type { StratigraphicGroupDto } from './StratigraphicGroupDto';
import type { UploadList } from './UploadList';
Expand All @@ -18,12 +18,12 @@ export type AnalogueModelDetail = {
description: string;
isProcessed: boolean;
sourceType: AnalogueModelSourceType;
analogues: Array<AnalogueList>;
fileUploads: Array<UploadList>;
parameters: Array<ParameterList>;
metadata: Array<MetadataDto>;
modelAreas: Array<ModelAreaDto>;
stratigraphicGroups: Array<StratigraphicGroupDto>;
geologicalGroups: Array<GeologicalGroupDto>;
outcrops: Array<OutcropDto>;
};

4 changes: 2 additions & 2 deletions src/api/generated/models/AnalogueModelList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
/* tslint:disable */
/* eslint-disable */

import type { AnalogueList } from './AnalogueList';
import type { AnalogueModelSourceType } from './AnalogueModelSourceType';
import type { GeologicalGroupDto } from './GeologicalGroupDto';
import type { MetadataDto } from './MetadataDto';
import type { ModelAreaDto } from './ModelAreaDto';
import type { OutcropDto } from './OutcropDto';
import type { ParameterList } from './ParameterList';
import type { StratigraphicGroupDto } from './StratigraphicGroupDto';
import type { UploadList } from './UploadList';

export type AnalogueModelList = {
analogues: Array<AnalogueList>;
uploads: Array<UploadList>;
parameters: Array<ParameterList>;
metadata: Array<MetadataDto>;
modelAreas: Array<ModelAreaDto>;
stratigraphicGroups: Array<StratigraphicGroupDto>;
geologicalGroups: Array<GeologicalGroupDto>;
outcrops: Array<OutcropDto>;
analogueModelId: string;
name: string;
description: string;
Expand Down
10 changes: 0 additions & 10 deletions src/api/generated/models/CreateAnalogueCommand.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/api/generated/models/CreateAnalogueCommandResponse.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
/* tslint:disable */
/* eslint-disable */

import type { AnalogueList } from './AnalogueList';
import type { GetOutcropsDto } from './GetOutcropsDto';

export type GetAnalogueListQueryResponse = {
export type GetOutcropsCommandResponse = {
success?: boolean;
count?: number | null;
message?: string | null;
validationErrors?: Array<string> | null;
data: Array<AnalogueList>;
data: Array<GetOutcropsDto>;
};

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

export type GetOutcropsDto = {
outcropId?: string;
name?: string | null;
outcropCategory?: string | null;
region?: string | null;
basins?: Array<string> | null;
};

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
/* tslint:disable */
/* eslint-disable */

export type CreateAnalogueDto = {
analogueId?: string;
export type OutcropDto = {
outcropId?: string;
name?: string | null;
description?: string | null;
outcropCategory?: string | null;
region?: string | null;
basins?: Array<string> | null;
};

35 changes: 0 additions & 35 deletions src/api/generated/services/AnalogueModelAnaloguesService.ts

This file was deleted.

22 changes: 22 additions & 0 deletions src/api/generated/services/AnalogueModelsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/* eslint-disable */
import type { AddAnalogueModelAreaCommandForm } from '../models/AddAnalogueModelAreaCommandForm';
import type { AddAnalogueModelAreaCommandResponse } from '../models/AddAnalogueModelAreaCommandResponse';
import type { AddAnalogueModelOutcropForm } from '../models/AddAnalogueModelOutcropForm';
import type { AddGeologicalGroupCommandResponse } from '../models/AddGeologicalGroupCommandResponse';
import type { AddGeologicalGroupForm } from '../models/AddGeologicalGroupForm';
import type { AddStatigraphicGroupForm } from '../models/AddStatigraphicGroupForm';
Expand Down Expand Up @@ -245,6 +246,27 @@ export class AnalogueModelsService {
});
}

/**
* @param id
* @param requestBody
* @returns AddStratigraphicGroupCommandResponse Success
* @throws ApiError
*/
public static postApiAnalogueModelsOutcrops(
id: string,
requestBody?: AddAnalogueModelOutcropForm,
): CancelablePromise<AddStratigraphicGroupCommandResponse> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/analogue-models/{id}/outcrops',
path: {
'id': id,
},
body: requestBody,
mediaType: 'application/json-patch+json',
});
}

/**
* @param id
* @param requestBody
Expand Down
Loading

0 comments on commit f772055

Please sign in to comment.