forked from equinor/webviz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65d6fd3
commit e7970b7
Showing
143 changed files
with
6,635 additions
and
4,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { defineConfig } from "@hey-api/openapi-ts"; | ||
|
||
export default defineConfig({ | ||
client: "@hey-api/client-axios", | ||
input: "http://localhost:5000/openapi.json", | ||
output: "./src/api", | ||
/* | ||
services: { | ||
methodNameBuilder: (operation) => { | ||
return `${operation.name}_api`; | ||
}, | ||
}, | ||
*/ | ||
// plugins: ["@tanstack/react-query"], | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,83 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { BaseHttpRequest } from './core/BaseHttpRequest'; | ||
import type { OpenAPIConfig } from './core/OpenAPI'; | ||
import { AxiosHttpRequest } from './core/AxiosHttpRequest'; | ||
import { DefaultService } from './services/DefaultService'; | ||
import { ExploreService } from './services/ExploreService'; | ||
import { GraphService } from './services/GraphService'; | ||
import { Grid3DService } from './services/Grid3DService'; | ||
import { GroupTreeService } from './services/GroupTreeService'; | ||
import { InplaceVolumetricsService } from './services/InplaceVolumetricsService'; | ||
import { ObservationsService } from './services/ObservationsService'; | ||
import { ParametersService } from './services/ParametersService'; | ||
import { PolygonsService } from './services/PolygonsService'; | ||
import { PvtService } from './services/PvtService'; | ||
import { RftService } from './services/RftService'; | ||
import { SeismicService } from './services/SeismicService'; | ||
import { SurfaceService } from './services/SurfaceService'; | ||
import { TimeseriesService } from './services/TimeseriesService'; | ||
import { VfpService } from './services/VfpService'; | ||
import { WellService } from './services/WellService'; | ||
import { WellCompletionsService } from './services/WellCompletionsService'; | ||
import { Interceptors } from './core/OpenAPI'; | ||
import { } from './core/'; | ||
|
||
import { DefaultService } from './services.gen'; | ||
import { ExploreService } from './services.gen'; | ||
import { GraphService } from './services.gen'; | ||
import { Grid3DService } from './services.gen'; | ||
import { GroupTreeService } from './services.gen'; | ||
import { InplaceVolumetricsService } from './services.gen'; | ||
import { ObservationsService } from './services.gen'; | ||
import { ParametersService } from './services.gen'; | ||
import { PolygonsService } from './services.gen'; | ||
import { PvtService } from './services.gen'; | ||
import { RftService } from './services.gen'; | ||
import { SeismicService } from './services.gen'; | ||
import { SurfaceService } from './services.gen'; | ||
import { TimeseriesService } from './services.gen'; | ||
import { VfpService } from './services.gen'; | ||
import { WellService } from './services.gen'; | ||
import { WellCompletionsService } from './services.gen'; | ||
|
||
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest; | ||
|
||
export class ApiService { | ||
public readonly default: DefaultService; | ||
public readonly explore: ExploreService; | ||
public readonly graph: GraphService; | ||
public readonly grid3D: Grid3DService; | ||
public readonly groupTree: GroupTreeService; | ||
public readonly inplaceVolumetrics: InplaceVolumetricsService; | ||
public readonly observations: ObservationsService; | ||
public readonly parameters: ParametersService; | ||
public readonly polygons: PolygonsService; | ||
public readonly pvt: PvtService; | ||
public readonly rft: RftService; | ||
public readonly seismic: SeismicService; | ||
public readonly surface: SurfaceService; | ||
public readonly timeseries: TimeseriesService; | ||
public readonly vfp: VfpService; | ||
public readonly well: WellService; | ||
public readonly wellCompletions: WellCompletionsService; | ||
public readonly request: BaseHttpRequest; | ||
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = AxiosHttpRequest) { | ||
this.request = new HttpRequest({ | ||
BASE: config?.BASE ?? '/api', | ||
VERSION: config?.VERSION ?? '0.1.0', | ||
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false, | ||
CREDENTIALS: config?.CREDENTIALS ?? 'include', | ||
TOKEN: config?.TOKEN, | ||
USERNAME: config?.USERNAME, | ||
PASSWORD: config?.PASSWORD, | ||
HEADERS: config?.HEADERS, | ||
ENCODE_PATH: config?.ENCODE_PATH, | ||
}); | ||
this.default = new DefaultService(this.request); | ||
this.explore = new ExploreService(this.request); | ||
this.graph = new GraphService(this.request); | ||
this.grid3D = new Grid3DService(this.request); | ||
this.groupTree = new GroupTreeService(this.request); | ||
this.inplaceVolumetrics = new InplaceVolumetricsService(this.request); | ||
this.observations = new ObservationsService(this.request); | ||
this.parameters = new ParametersService(this.request); | ||
this.polygons = new PolygonsService(this.request); | ||
this.pvt = new PvtService(this.request); | ||
this.rft = new RftService(this.request); | ||
this.seismic = new SeismicService(this.request); | ||
this.surface = new SurfaceService(this.request); | ||
this.timeseries = new TimeseriesService(this.request); | ||
this.vfp = new VfpService(this.request); | ||
this.well = new WellService(this.request); | ||
this.wellCompletions = new WellCompletionsService(this.request); | ||
} | ||
} | ||
|
||
public readonly default: DefaultService; | ||
public readonly explore: ExploreService; | ||
public readonly graph: GraphService; | ||
public readonly grid3D: Grid3DService; | ||
public readonly groupTree: GroupTreeService; | ||
public readonly inplaceVolumetrics: InplaceVolumetricsService; | ||
public readonly observations: ObservationsService; | ||
public readonly parameters: ParametersService; | ||
public readonly polygons: PolygonsService; | ||
public readonly pvt: PvtService; | ||
public readonly rft: RftService; | ||
public readonly seismic: SeismicService; | ||
public readonly surface: SurfaceService; | ||
public readonly timeseries: TimeseriesService; | ||
public readonly vfp: VfpService; | ||
public readonly well: WellService; | ||
public readonly wellCompletions: WellCompletionsService; | ||
|
||
public readonly request: BaseHttpRequest; | ||
|
||
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = ) { | ||
this.request = new HttpRequest({ | ||
BASE: config?.BASE ?? '/api', | ||
VERSION: config?.VERSION ?? '0.1.0', | ||
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false, | ||
CREDENTIALS: config?.CREDENTIALS ?? 'include', | ||
TOKEN: config?.TOKEN, | ||
USERNAME: config?.USERNAME, | ||
PASSWORD: config?.PASSWORD, | ||
HEADERS: config?.HEADERS, | ||
ENCODE_PATH: config?.ENCODE_PATH, | ||
interceptors: { | ||
request: config?.interceptors?.request ?? new Interceptors(), | ||
response: config?.interceptors?.response ?? new Interceptors(), | ||
}, | ||
}); | ||
|
||
this.default = new DefaultService(this.request); | ||
this.explore = new ExploreService(this.request); | ||
this.graph = new GraphService(this.request); | ||
this.grid3D = new Grid3DService(this.request); | ||
this.groupTree = new GroupTreeService(this.request); | ||
this.inplaceVolumetrics = new InplaceVolumetricsService(this.request); | ||
this.observations = new ObservationsService(this.request); | ||
this.parameters = new ParametersService(this.request); | ||
this.polygons = new PolygonsService(this.request); | ||
this.pvt = new PvtService(this.request); | ||
this.rft = new RftService(this.request); | ||
this.seismic = new SeismicService(this.request); | ||
this.surface = new SurfaceService(this.request); | ||
this.timeseries = new TimeseriesService(this.request); | ||
this.vfp = new VfpService(this.request); | ||
this.well = new WellService(this.request); | ||
this.wellCompletions = new WellCompletionsService(this.request); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.