diff --git a/package-lock.json b/package-lock.json index 21fbc71..58be44c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,7 +38,7 @@ "@angular/cli": "^17.3.5", "@angular/compiler-cli": "^17.3.5", "@angular/language-service": "^17.3.5", - "@hey-api/openapi-ts": "^0.40.1", + "@hey-api/openapi-ts": "^0.45", "@types/geojson": "^7946.0.14", "@types/jasmine": "~5.1.4", "@types/jasminewd2": "^2.0.13", @@ -735,9 +735,9 @@ } }, "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "11.5.4", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.5.4.tgz", - "integrity": "sha512-o2fsypTGU0WxRxbax8zQoHiIB4dyrkwYfcm8TxZ+bx9pCzcWZbQtiMqpgBvWA/nJ2TrGjK5adCLfTH8wUeU/Wg==", + "version": "11.6.1", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.6.1.tgz", + "integrity": "sha512-DxjgKBCoyReu4p5HMvpmgSOfRhhBcuf5V5soDDRgOTZMwsA4KSFzol1abFZgiCTE11L2kKGca5Md9GwDdXVBwQ==", "dev": true, "dependencies": { "@jsdevtools/ono": "^7.1.3", @@ -2912,12 +2912,12 @@ } }, "node_modules/@hey-api/openapi-ts": { - "version": "0.40.1", - "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.40.1.tgz", - "integrity": "sha512-pEH5rrmZbbkU7SeNXo6EZLSXA+eb5m7uUpqIksX7NIxbVmzSeRpU3FH6kyF9dG1eM4bUzPpCOQyc3zhgkmTKDw==", + "version": "0.45.0", + "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.45.0.tgz", + "integrity": "sha512-EAQhIrVhh2DqvcKo74rUgR7P+Wnd3U5XUvTT5PN8c9kHxOqXrQeGN+daqNLX2BruZBFzDVOs7AfIh8aL0ccbAw==", "dev": true, "dependencies": { - "@apidevtools/json-schema-ref-parser": "11.5.4", + "@apidevtools/json-schema-ref-parser": "11.6.1", "c12": "1.10.0", "camelcase": "8.0.0", "commander": "12.0.0", diff --git a/package.json b/package.json index 2123727..a7b6db3 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@angular/cli": "^17.3.5", "@angular/compiler-cli": "^17.3.5", "@angular/language-service": "^17.3.5", - "@hey-api/openapi-ts": "^0.40.1", + "@hey-api/openapi-ts": "^0.45", "@types/geojson": "^7946.0.14", "@types/jasmine": "~5.1.4", "@types/jasminewd2": "^2.0.13", @@ -79,4 +79,4 @@ "tslint": "~6.1.0", "typescript": "~5.4.5" } -} \ No newline at end of file +} diff --git a/src/app/admin/admin-basket/basket.component.ts b/src/app/admin/admin-basket/basket.component.ts index 851c9b1..0db6bc0 100644 --- a/src/app/admin/admin-basket/basket.component.ts +++ b/src/app/admin/admin-basket/basket.component.ts @@ -85,7 +85,7 @@ export class AdminBasketComponent implements OnInit { dryRun: dryRun }).subscribe({ next: resp => { - this.basket.files.find(row => row.id == item.id).time = new Date(resp.time) + this.basket.files.find(row => row.id == item.id).time = new Date(resp.time).toString() this.snackBar.openFromComponent(HtmlSnackbarComponent, { data: resp, //duration: 3000 diff --git a/src/app/openapi/core/OpenAPI.ts b/src/app/openapi/core/OpenAPI.ts index fe30114..3879553 100644 --- a/src/app/openapi/core/OpenAPI.ts +++ b/src/app/openapi/core/OpenAPI.ts @@ -1,4 +1,5 @@ -import type { HttpResponse } from '@angular/common/http';import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { HttpResponse } from '@angular/common/http'; +import type { ApiRequestOptions } from './ApiRequestOptions'; type Headers = Record; type Middleware = (value: T) => T | Promise; @@ -14,10 +15,7 @@ export class Interceptors { eject(fn: Middleware) { const index = this._fns.indexOf(fn); if (index !== -1) { - this._fns = [ - ...this._fns.slice(0, index), - ...this._fns.slice(index + 1), - ]; + this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)]; } } @@ -36,7 +34,9 @@ export type OpenAPIConfig = { USERNAME?: string | Resolver | undefined; VERSION: string; WITH_CREDENTIALS: boolean; - interceptors: {response: Interceptors>;}; + interceptors: { + response: Interceptors>; + }; }; export const OpenAPI: OpenAPIConfig = { @@ -49,6 +49,7 @@ export const OpenAPI: OpenAPIConfig = { USERNAME: undefined, VERSION: '0.1.dev85+g41e92fa.d20240509', WITH_CREDENTIALS: false, - interceptors: {response: new Interceptors(), + interceptors: { + response: new Interceptors(), }, }; \ No newline at end of file diff --git a/src/app/openapi/core/request.ts b/src/app/openapi/core/request.ts index af88730..251cb79 100644 --- a/src/app/openapi/core/request.ts +++ b/src/app/openapi/core/request.ts @@ -46,7 +46,9 @@ export const getQueryString = (params: Record): string => { return; } - if (Array.isArray(value)) { + if (value instanceof Date) { + append(key, value.toISOString()); + } else if (Array.isArray(value)) { value.forEach(v => encodePair(key, v)); } else if (typeof value === 'object') { Object.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v)); diff --git a/src/app/openapi/index.ts b/src/app/openapi/index.ts index 4ddb375..39c1266 100644 --- a/src/app/openapi/index.ts +++ b/src/app/openapi/index.ts @@ -1,5 +1,4 @@ // This file is auto-generated by @hey-api/openapi-ts - export { ApiError } from './core/ApiError'; export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; export * from './schemas.gen'; diff --git a/src/app/openapi/schemas.gen.ts b/src/app/openapi/schemas.gen.ts index 4482a28..d95c8fa 100644 --- a/src/app/openapi/schemas.gen.ts +++ b/src/app/openapi/schemas.gen.ts @@ -1,6 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts - export const $Action = { properties: { name: { @@ -1705,6 +1704,9 @@ export const $MaplibreStyle = { items: {}, type: 'array' }, + { + type: 'boolean' + }, { type: 'number' }, @@ -1713,9 +1715,6 @@ export const $MaplibreStyle = { }, { type: 'string' - }, - { - type: 'boolean' } ] }, @@ -1739,6 +1738,9 @@ export const $MaplibreStyle = { items: {}, type: 'array' }, + { + type: 'boolean' + }, { type: 'number' }, @@ -1747,9 +1749,6 @@ export const $MaplibreStyle = { }, { type: 'string' - }, - { - type: 'boolean' } ] }, diff --git a/src/app/openapi/services.gen.ts b/src/app/openapi/services.gen.ts index 9953689..b2080bf 100644 --- a/src/app/openapi/services.gen.ts +++ b/src/app/openapi/services.gen.ts @@ -1,353 +1,364 @@ // This file is auto-generated by @hey-api/openapi-ts - import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import type { Observable } from 'rxjs'; import { OpenAPI } from './core/OpenAPI'; import { request as __request } from './core/request'; -import type { $OpenApiTs } from './types.gen'; +import type { BootstrapApiBootstrapGetResponse, LoginForAccessTokenApiTokenPostData, LoginForAccessTokenApiTokenPostResponse, LogoutApiLogoutGetResponse, GetUsersApiUsersGetResponse, GetRolesApiRolesGetResponse, GetAclsApiAclsGetResponse, GetCategoriesApiCategoriesGetResponse, GetCategoriesPapiCategoriesPandasGetResponse, ListDataProvidersApiDataProvidersGetResponse, GetModelListApiDataProviderStoreGetData, GetModelListApiDataProviderStoreGetResponse, GetModelValuesApiStoreNameValuesValueGetData, GetModelValuesApiStoreNameValuesValueGetResponse, GetStoresApiStoresGetResponse, GetProjectsApiProjectsGetResponse, GetSurveyMetaApiSurveyMetaGetResponse, GetFeatureInfoApiFeatureInfoStoreIdGetData, GetFeatureInfoApiFeatureInfoStoreIdGetResponse, GetModelInfoApiModelInfoStoreGetData, GetModelInfoApiModelInfoStoreGetResponse, GetPlotParamsApiPlotParamsStoreGetData, GetPlotParamsApiPlotParamsStoreGetResponse, GetActionsApiActionsGetResponse, ExecuteTagActionApiExecTagActionsPostData, ExecuteTagActionApiExecTagActionsPostResponse, GetGeojsonApiGjStoreNameGetData, GetGeojsonApiGjStoreNameGetResponse, GetBasketsApiAdminBasketGetResponse, GetBasketApiAdminBasketNameGetData, GetBasketApiAdminBasketNameGetResponse, UploadBasketFileApiAdminBasketUploadNamePostData, UploadBasketFileApiAdminBasketUploadNamePostResponse, DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetData, DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetResponse, ImportBasketFileApiAdminBasketImportBasketFileIdGetData, ImportBasketFileApiAdminBasketImportBasketFileIdGetResponse, DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetData, DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetResponse, GetGroupsApiDashboardGroupsGetResponse, GetHomeApiDashboardHomeGetResponse, GetDashboardPageApiDashboardPageGroupNameGetData, GetDashboardPageApiDashboardPageGroupNameGetResponse, GetInitDataApiMapInitDataGetResponse, GetBaseStyleApiMapBaseStyleNameGetData, GetBaseStyleApiMapBaseStyleNameGetResponse, GetLayerStyleApiMapLayerStyleStoreGetData, GetLayerStyleApiMapLayerStyleStoreGetResponse, DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetData, DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetResponse, DownloadGeodataApiDownloadGeodataStoresGetData, DownloadGeodataApiDownloadGeodataStoresGetResponse, ExecuteActionApiDownloadPluginNameStoreIdGetData, ExecuteActionApiDownloadPluginNameStoreIdGetResponse } from './types.gen'; @Injectable({ providedIn: 'root' }) export class ApiService { - constructor(public readonly http: HttpClient) { + constructor(public readonly http: HttpClient) { } + + /** + * Bootstrap + * @returns BootstrapData Successful Response + * @throws ApiError + */ + public bootstrapApiBootstrapGet(): Observable { + return __request(OpenAPI, this.http, { + method: 'GET', + url: '/api/bootstrap', + errors: { + 404: 'Not found' + } + }); } /** - * Bootstrap - * @returns BootstrapData Successful Response - * @throws ApiError - */ - public bootstrapApiBootstrapGet(): Observable<$OpenApiTs['/api/bootstrap']['get']['res'][200]> { + * Login For Access Token + * @param data The data for the request. + * @param data.formData + * @returns Token Successful Response + * @throws ApiError + */ + public loginForAccessTokenApiTokenPost(data: LoginForAccessTokenApiTokenPostData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/bootstrap', - errors: { - 404: 'Not found' - } -}); + method: 'POST', + url: '/api/token', + formData: data.formData, + mediaType: 'application/x-www-form-urlencoded', + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Login For Access Token - * @returns Token Successful Response - * @throws ApiError - */ - public loginForAccessTokenApiTokenPost(data: $OpenApiTs['/api/token']['post']['req']): Observable<$OpenApiTs['/api/token']['post']['res'][200]> { - const { formData } = data; + * Logout + * @returns unknown Successful Response + * @throws ApiError + */ + public logoutApiLogoutGet(): Observable { return __request(OpenAPI, this.http, { - method: 'POST', - url: '/api/token', - formData, - mediaType: 'application/x-www-form-urlencoded', - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/logout', + errors: { + 404: 'Not found' + } + }); } /** - * Logout - * @returns unknown Successful Response - * @throws ApiError - */ - public logoutApiLogoutGet(): Observable<$OpenApiTs['/api/logout']['get']['res'][200]> { + * Get Users + * @returns UserRead Successful Response + * @throws ApiError + */ + public getUsersApiUsersGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/logout', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/users', + errors: { + 404: 'Not found' + } + }); } /** - * Get Users - * @returns UserRead Successful Response - * @throws ApiError - */ - public getUsersApiUsersGet(): Observable<$OpenApiTs['/api/users']['get']['res'][200]> { + * Get Roles + * @returns RoleRead Successful Response + * @throws ApiError + */ + public getRolesApiRolesGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/users', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/roles', + errors: { + 404: 'Not found' + } + }); } /** - * Get Roles - * @returns RoleRead Successful Response - * @throws ApiError - */ - public getRolesApiRolesGet(): Observable<$OpenApiTs['/api/roles']['get']['res'][200]> { + * Get Acls + * New: ACLs returned as UserRoleLink + * @returns UserRoleLink Successful Response + * @throws ApiError + */ + public getAclsApiAclsGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/roles', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/acls', + errors: { + 404: 'Not found' + } + }); } /** - * Get Acls - * New: ACLs returned as UserRoleLink - * @returns UserRoleLink Successful Response - * @throws ApiError - */ - public getAclsApiAclsGet(): Observable<$OpenApiTs['/api/acls']['get']['res'][200]> { + * Get Categories + * @returns CategoryRead Successful Response + * @throws ApiError + */ + public getCategoriesApiCategoriesGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/acls', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/categories', + errors: { + 404: 'Not found' + } + }); } /** - * Get Categories - * @returns CategoryRead Successful Response - * @throws ApiError - */ - public getCategoriesApiCategoriesGet(): Observable<$OpenApiTs['/api/categories']['get']['res'][200]> { + * Get Categories P + * @returns CategoryRead Successful Response + * @throws ApiError + */ + public getCategoriesPApiCategoriesPandasGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/categories', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/categories_pandas', + errors: { + 404: 'Not found' + } + }); } /** - * Get Categories P - * @returns CategoryRead Successful Response - * @throws ApiError - */ - public getCategoriesPApiCategoriesPandasGet(): Observable<$OpenApiTs['/api/categories_pandas']['get']['res'][200]> { + * List Data Providers + * Return a list of data providers, for use with the api (graphs, etc) + * :return: + * @returns DataProvider Successful Response + * @throws ApiError + */ + public listDataProvidersApiDataProvidersGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/categories_pandas', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/data-providers', + errors: { + 404: 'Not found' + } + }); } /** - * List Data Providers - * Return a list of data providers, for use with the api (graphs, etc) - * :return: - * @returns DataProvider Successful Response - * @throws ApiError - */ - public listDataProvidersApiDataProvidersGet(): Observable<$OpenApiTs['/api/data-providers']['get']['res'][200]> { + * Get Model List + * Json REST store API compatible with Flask Potion and Angular + * Get the list of items (used for making the list of items in measures) + * Filter only items with at least one measure + * @param data The data for the request. + * @param data.store + * @returns MeasuresItem Successful Response + * @throws ApiError + */ + public getModelListApiDataProviderStoreGet(data: GetModelListApiDataProviderStoreGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/data-providers', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/data-provider/{store}', + path: { + store: data.store + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Get Model List - * Json REST store API compatible with Flask Potion and Angular - * Get the list of items (used for making the list of items in measures) - * Filter only items with at least one measure - * @returns MeasuresItem Successful Response - * @throws ApiError - */ - public getModelListApiDataProviderStoreGet(data: $OpenApiTs['/api/data-provider/{store}']['get']['req']): Observable<$OpenApiTs['/api/data-provider/{store}']['get']['res'][200]> { - const { store } = data; + * Get Model Values + * Get values + * @param data The data for the request. + * @param data.storeName + * @param data.value + * @param data.where + * @param data.resample + * @returns unknown Successful Response + * @throws ApiError + */ + public getModelValuesApiStoreNameValuesValueGet(data: GetModelValuesApiStoreNameValuesValueGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/data-provider/{store}', - path: { - store - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/{store_name}/values/{value}', + path: { + store_name: data.storeName, + value: data.value + }, + query: { + where: data.where, + resample: data.resample + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Get Model Values - * Get values - * @returns unknown Successful Response - * @throws ApiError - */ - public getModelValuesApiStoreNameValuesValueGet(data: $OpenApiTs['/api/{store_name}/values/{value}']['get']['req']): Observable<$OpenApiTs['/api/{store_name}/values/{value}']['get']['res'][200]> { - const { storeName, value, where, resample } = data; + * Get Stores + * @returns Store Successful Response + * @throws ApiError + */ + public getStoresApiStoresGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/{store_name}/values/{value}', - path: { - store_name: storeName, - value - }, - query: { - where, - resample - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/stores', + errors: { + 404: 'Not found' + } + }); } /** - * Get Stores - * @returns Store Successful Response - * @throws ApiError - */ - public getStoresApiStoresGet(): Observable<$OpenApiTs['/api/stores']['get']['res'][200]> { + * Get Projects + * @returns Project Successful Response + * @throws ApiError + */ + public getProjectsApiProjectsGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/stores', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/projects', + errors: { + 404: 'Not found' + } + }); } /** - * Get Projects - * @returns Project Successful Response - * @throws ApiError - */ - public getProjectsApiProjectsGet(): Observable<$OpenApiTs['/api/projects']['get']['res'][200]> { + * Get Survey Meta + * @returns SurveyMeta Successful Response + * @throws ApiError + */ + public getSurveyMetaApiSurveyMetaGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/projects', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/survey_meta', + errors: { + 404: 'Not found' + } + }); } /** - * Get Survey Meta - * @returns SurveyMeta Successful Response - * @throws ApiError - */ - public getSurveyMetaApiSurveyMetaGet(): Observable<$OpenApiTs['/api/survey_meta']['get']['res'][200]> { + * Get Feature Info + * @param data The data for the request. + * @param data.store + * @param data.id + * @returns unknown Successful Response + * @throws ApiError + */ + public getFeatureInfoApiFeatureInfoStoreIdGet(data: GetFeatureInfoApiFeatureInfoStoreIdGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/survey_meta', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/feature-info/{store}/{id}', + path: { + store: data.store, + id: data.id + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Get Feature Info - * @returns unknown Successful Response - * @throws ApiError - */ - public getFeatureInfoApiFeatureInfoStoreIdGet(data: $OpenApiTs['/api/feature-info/{store}/{id}']['get']['req']): Observable<$OpenApiTs['/api/feature-info/{store}/{id}']['get']['res'][200]> { - const { store, id } = data; + * Get Model Info + * @param data The data for the request. + * @param data.store + * @returns ModelInfo Successful Response + * @throws ApiError + */ + public getModelInfoApiModelInfoStoreGet(data: GetModelInfoApiModelInfoStoreGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/feature-info/{store}/{id}', - path: { - store, - id - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/model-info/{store}', + path: { + store: data.store + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Get Model Info - * @returns ModelInfo Successful Response - * @throws ApiError - */ - public getModelInfoApiModelInfoStoreGet(data: $OpenApiTs['/api/model-info/{store}']['get']['req']): Observable<$OpenApiTs['/api/model-info/{store}']['get']['res'][200]> { - const { store } = data; + * Get Plot Params + * @param data The data for the request. + * @param data.store + * @param data.id + * @param data.value + * @returns PlotParams Successful Response + * @throws ApiError + */ + public getPlotParamsApiPlotParamsStoreGet(data: GetPlotParamsApiPlotParamsStoreGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/model-info/{store}', - path: { - store - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/plot-params/{store}', + path: { + store: data.store + }, + query: { + id: data.id, + value: data.value + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Get Plot Params - * @returns PlotParams Successful Response - * @throws ApiError - */ - public getPlotParamsApiPlotParamsStoreGet(data: $OpenApiTs['/api/plot-params/{store}']['get']['req']): Observable<$OpenApiTs['/api/plot-params/{store}']['get']['res'][200]> { - const { store, id, value } = data; + * Get Actions + * @returns ActionsStore Successful Response + * @throws ApiError + */ + public getActionsApiActionsGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/plot-params/{store}', - path: { - store - }, - query: { - id, - value - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/actions', + errors: { + 404: 'Not found' + } + }); } /** - * Get Actions - * @returns ActionsStore Successful Response - * @throws ApiError - */ - public getActionsApiActionsGet(): Observable<$OpenApiTs['/api/actions']['get']['res'][200]> { + * Execute Tag Action + * @param data The data for the request. + * @param data.requestBody + * @returns ActionsResults Successful Response + * @throws ApiError + */ + public executeTagActionApiExecTagActionsPost(data: ExecuteTagActionApiExecTagActionsPostData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/actions', - errors: { - 404: 'Not found' - } -}); - } - - /** - * Execute Tag Action - * @returns ActionsResults Successful Response - * @throws ApiError - */ - public executeTagActionApiExecTagActionsPost(data: $OpenApiTs['/api/execTagActions']['post']['req']): Observable<$OpenApiTs['/api/execTagActions']['post']['res'][200]> { - const { requestBody } = data; - return __request(OpenAPI, this.http, { - method: 'POST', - url: '/api/execTagActions', - body: requestBody, - mediaType: 'application/json', - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'POST', + url: '/api/execTagActions', + body: data.requestBody, + mediaType: 'application/json', + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } } @@ -356,35 +367,38 @@ export class ApiService { providedIn: 'root' }) export class GeoapiService { - constructor(public readonly http: HttpClient) { - } + constructor(public readonly http: HttpClient) { } /** - * Get Geojson - * Some REST stores coded manually (route prefixed with "gj": geojson). - * :param store_name: name of the model - * :return: json - * @returns unknown Successful Response - * @throws ApiError - */ - public getGeojsonApiGjStoreNameGet(data: $OpenApiTs['/api/gj/{store_name}']['get']['req']): Observable<$OpenApiTs['/api/gj/{store_name}']['get']['res'][200]> { - const { storeName, ifNoneMatch, simplify, preserveTopology } = data; + * Get Geojson + * Some REST stores coded manually (route prefixed with "gj": geojson). + * :param store_name: name of the model + * :return: json + * @param data The data for the request. + * @param data.storeName + * @param data.ifNoneMatch + * @param data.simplify + * @param data.preserveTopology + * @returns unknown Successful Response + * @throws ApiError + */ + public getGeojsonApiGjStoreNameGet(data: GetGeojsonApiGjStoreNameGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/gj/{store_name}', - path: { - store_name: storeName - }, - headers: { - 'If-None-Match': ifNoneMatch, - simplify, - preserveTopology - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/gj/{store_name}', + path: { + store_name: data.storeName + }, + headers: { + 'If-None-Match': data.ifNoneMatch, + simplify: data.simplify, + preserveTopology: data.preserveTopology + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } } @@ -393,137 +407,151 @@ export class GeoapiService { providedIn: 'root' }) export class AdminService { - constructor(public readonly http: HttpClient) { + constructor(public readonly http: HttpClient) { } + + /** + * Get Baskets + * @returns BasketNameOnly Successful Response + * @throws ApiError + */ + public getBasketsApiAdminBasketGet(): Observable { + return __request(OpenAPI, this.http, { + method: 'GET', + url: '/api/admin/basket', + errors: { + 404: 'Not found' + } + }); } /** - * Get Baskets - * @returns BasketNameOnly Successful Response - * @throws ApiError - */ - public getBasketsApiAdminBasketGet(): Observable<$OpenApiTs['/api/admin/basket']['get']['res'][200]> { + * Get Basket + * @param data The data for the request. + * @param data.name + * @returns AdminBasket Successful Response + * @throws ApiError + */ + public getBasketApiAdminBasketNameGet(data: GetBasketApiAdminBasketNameGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/admin/basket', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/admin/basket/{name}', + path: { + name: data.name + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Get Basket - * @returns AdminBasket Successful Response - * @throws ApiError - */ - public getBasketApiAdminBasketNameGet(data: $OpenApiTs['/api/admin/basket/{name}']['get']['req']): Observable<$OpenApiTs['/api/admin/basket/{name}']['get']['res'][200]> { - const { name } = data; + * Upload Basket File + * @param data The data for the request. + * @param data.name + * @param data.formData + * @param data.projectId + * @param data.surveyorId + * @param data.equipmentId + * @param data.autoImport + * @returns BasketImportResult Successful Response + * @throws ApiError + */ + public uploadBasketFileApiAdminBasketUploadNamePost(data: UploadBasketFileApiAdminBasketUploadNamePostData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/admin/basket/{name}', - path: { - name - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'POST', + url: '/api/admin/basket/upload/{name}', + path: { + name: data.name + }, + query: { + project_id: data.projectId, + surveyor_id: data.surveyorId, + equipment_id: data.equipmentId, + auto_import: data.autoImport + }, + formData: data.formData, + mediaType: 'multipart/form-data', + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Upload Basket File - * @returns BasketImportResult Successful Response - * @throws ApiError - */ - public uploadBasketFileApiAdminBasketUploadNamePost(data: $OpenApiTs['/api/admin/basket/upload/{name}']['post']['req']): Observable<$OpenApiTs['/api/admin/basket/upload/{name}']['post']['res'][200]> { - const { name, formData, projectId, surveyorId, equipmentId, autoImport } = data; + * Download Basket File + * @param data The data for the request. + * @param data.name + * @param data.fileId + * @param data.fileName + * @returns unknown Successful Response + * @throws ApiError + */ + public downloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGet(data: DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetData): Observable { return __request(OpenAPI, this.http, { - method: 'POST', - url: '/api/admin/basket/upload/{name}', - path: { - name - }, - query: { - project_id: projectId, - surveyor_id: surveyorId, - equipment_id: equipmentId, - auto_import: autoImport - }, - formData, - mediaType: 'multipart/form-data', - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/admin/basket/download/{name}/{file_id}/{file_name}', + path: { + name: data.name, + file_id: data.fileId, + file_name: data.fileName + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Download Basket File - * @returns unknown Successful Response - * @throws ApiError - */ - public downloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGet(data: $OpenApiTs['/api/admin/basket/download/{name}/{file_id}/{file_name}']['get']['req']): Observable<$OpenApiTs['/api/admin/basket/download/{name}/{file_id}/{file_name}']['get']['res'][200]> { - const { name, fileId, fileName } = data; + * Import Basket File + * @param data The data for the request. + * @param data.basket + * @param data.fileId + * @param data.dryRun + * @returns BasketImportResult Successful Response + * @throws ApiError + */ + public importBasketFileApiAdminBasketImportBasketFileIdGet(data: ImportBasketFileApiAdminBasketImportBasketFileIdGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/admin/basket/download/{name}/{file_id}/{file_name}', - path: { - name, - file_id: fileId, - file_name: fileName - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/admin/basket/import/{basket}/{file_id}', + path: { + basket: data.basket, + file_id: data.fileId + }, + query: { + dryRun: data.dryRun + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Import Basket File - * @returns BasketImportResult Successful Response - * @throws ApiError - */ - public importBasketFileApiAdminBasketImportBasketFileIdGet(data: $OpenApiTs['/api/admin/basket/import/{basket}/{file_id}']['get']['req']): Observable<$OpenApiTs['/api/admin/basket/import/{basket}/{file_id}']['get']['res'][200]> { - const { basket, fileId, dryRun } = data; + * Delete Basket File + * @param data The data for the request. + * @param data.basket + * @param data.fileId + * @returns unknown Successful Response + * @throws ApiError + */ + public deleteBasketFileApiAdminBasketDeleteBasketFileIdGet(data: DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/admin/basket/import/{basket}/{file_id}', - path: { - basket, - file_id: fileId - }, - query: { - dryRun - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); - } - - /** - * Delete Basket File - * @returns unknown Successful Response - * @throws ApiError - */ - public deleteBasketFileApiAdminBasketDeleteBasketFileIdGet(data: $OpenApiTs['/api/admin/basket/delete/{basket}/{file_id}']['get']['req']): Observable<$OpenApiTs['/api/admin/basket/delete/{basket}/{file_id}']['get']['res'][200]> { - const { basket, fileId } = data; - return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/admin/basket/delete/{basket}/{file_id}', - path: { - basket, - file_id: fileId - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/admin/basket/delete/{basket}/{file_id}', + path: { + basket: data.basket, + file_id: data.fileId + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } } @@ -532,58 +560,59 @@ export class AdminService { providedIn: 'root' }) export class DashboardService { - constructor(public readonly http: HttpClient) { + constructor(public readonly http: HttpClient) { } + + /** + * Get Groups + * @returns DashboardGroup Successful Response + * @throws ApiError + */ + public getGroupsApiDashboardGroupsGet(): Observable { + return __request(OpenAPI, this.http, { + method: 'GET', + url: '/api/dashboard/groups', + errors: { + 404: 'Not found' + } + }); } /** - * Get Groups - * @returns DashboardGroup Successful Response - * @throws ApiError - */ - public getGroupsApiDashboardGroupsGet(): Observable<$OpenApiTs['/api/dashboard/groups']['get']['res'][200]> { + * Get Home + * @returns DashboardHome Successful Response + * @throws ApiError + */ + public getHomeApiDashboardHomeGet(): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/dashboard/groups', - errors: { - 404: 'Not found' - } -}); + method: 'GET', + url: '/api/dashboard/home', + errors: { + 404: 'Not found' + } + }); } /** - * Get Home - * @returns DashboardHome Successful Response - * @throws ApiError - */ - public getHomeApiDashboardHomeGet(): Observable<$OpenApiTs['/api/dashboard/home']['get']['res'][200]> { + * Get Dashboard Page + * @param data The data for the request. + * @param data.group + * @param data.name + * @returns Dashboard Successful Response + * @throws ApiError + */ + public getDashboardPageApiDashboardPageGroupNameGet(data: GetDashboardPageApiDashboardPageGroupNameGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/dashboard/home', - errors: { - 404: 'Not found' - } -}); - } - - /** - * Get Dashboard Page - * @returns Dashboard Successful Response - * @throws ApiError - */ - public getDashboardPageApiDashboardPageGroupNameGet(data: $OpenApiTs['/api/dashboard/page/{group}/{name}']['get']['req']): Observable<$OpenApiTs['/api/dashboard/page/{group}/{name}']['get']['res'][200]> { - const { group, name } = data; - return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/dashboard/page/{group}/{name}', - path: { - group, - name - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/dashboard/page/{group}/{name}', + path: { + group: data.group, + name: data.name + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } } @@ -592,57 +621,58 @@ export class DashboardService { providedIn: 'root' }) export class MapService { - constructor(public readonly http: HttpClient) { + constructor(public readonly http: HttpClient) { } + + /** + * Get Init Data + * @returns MapInitData Successful Response + * @throws ApiError + */ + public getInitDataApiMapInitDataGet(): Observable { + return __request(OpenAPI, this.http, { + method: 'GET', + url: '/api/map/init-data' + }); } /** - * Get Init Data - * @returns MapInitData Successful Response - * @throws ApiError - */ - public getInitDataApiMapInitDataGet(): Observable<$OpenApiTs['/api/map/init-data']['get']['res'][200]> { + * Get Base Style + * @param data The data for the request. + * @param data.name + * @returns BaseStyle Successful Response + * @throws ApiError + */ + public getBaseStyleApiMapBaseStyleNameGet(data: GetBaseStyleApiMapBaseStyleNameGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/map/init-data' -}); + method: 'GET', + url: '/api/map/base_style/{name}', + path: { + name: data.name + }, + errors: { + 422: 'Validation Error' + } + }); } /** - * Get Base Style - * @returns BaseStyle Successful Response - * @throws ApiError - */ - public getBaseStyleApiMapBaseStyleNameGet(data: $OpenApiTs['/api/map/base_style/{name}']['get']['req']): Observable<$OpenApiTs['/api/map/base_style/{name}']['get']['res'][200]> { - const { name } = data; + * Get Layer Style + * @param data The data for the request. + * @param data.store + * @returns unknown Successful Response + * @throws ApiError + */ + public getLayerStyleApiMapLayerStyleStoreGet(data: GetLayerStyleApiMapLayerStyleStoreGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/map/base_style/{name}', - path: { - name - }, - errors: { - 422: 'Validation Error' - } -}); - } - - /** - * Get Layer Style - * @returns unknown Successful Response - * @throws ApiError - */ - public getLayerStyleApiMapLayerStyleStoreGet(data: $OpenApiTs['/api/map/layer_style/{store}']['get']['req']): Observable<$OpenApiTs['/api/map/layer_style/{store}']['get']['res'][200]> { - const { store } = data; - return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/map/layer_style/{store}', - path: { - store - }, - errors: { - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/map/layer_style/{store}', + path: { + store: data.store + }, + errors: { + 422: 'Validation Error' + } + }); } } @@ -651,77 +681,86 @@ export class MapService { providedIn: 'root' }) export class DownloadService { - constructor(public readonly http: HttpClient) { + constructor(public readonly http: HttpClient) { } + + /** + * Download Csv + * @param data The data for the request. + * @param data.store + * @param data.modelId + * @param data.value + * @param data.resample + * @returns unknown Successful Response + * @throws ApiError + */ + public downloadCsvApiDownloadCsvStoreModelIdValueResampleGet(data: DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetData): Observable { + return __request(OpenAPI, this.http, { + method: 'GET', + url: '/api/download/csv/{store}/{model_id}/{value}/{resample}', + path: { + store: data.store, + model_id: data.modelId, + value: data.value, + resample: data.resample + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Download Csv - * @returns unknown Successful Response - * @throws ApiError - */ - public downloadCsvApiDownloadCsvStoreModelIdValueResampleGet(data: $OpenApiTs['/api/download/csv/{store}/{model_id}/{value}/{resample}']['get']['req']): Observable<$OpenApiTs['/api/download/csv/{store}/{model_id}/{value}/{resample}']['get']['res'][200]> { - const { store, modelId, value, resample } = data; + * Download Geodata + * @param data The data for the request. + * @param data.stores + * @param data.format + * @param data.reproject + * @returns unknown Successful Response + * @throws ApiError + */ + public downloadGeodataApiDownloadGeodataStoresGet(data: DownloadGeodataApiDownloadGeodataStoresGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/download/csv/{store}/{model_id}/{value}/{resample}', - path: { - store, - model_id: modelId, - value, - resample - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/download/geodata/{stores}', + path: { + stores: data.stores + }, + query: { + format: data.format, + reproject: data.reproject + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } /** - * Download Geodata - * @returns unknown Successful Response - * @throws ApiError - */ - public downloadGeodataApiDownloadGeodataStoresGet(data: $OpenApiTs['/api/download/geodata/{stores}']['get']['req']): Observable<$OpenApiTs['/api/download/geodata/{stores}']['get']['res'][200]> { - const { stores, format, reproject } = data; + * Execute Action + * Download the result of an action + * @param data The data for the request. + * @param data.name + * @param data.store + * @param data.id + * @returns unknown Successful Response + * @throws ApiError + */ + public executeActionApiDownloadPluginNameStoreIdGet(data: ExecuteActionApiDownloadPluginNameStoreIdGetData): Observable { return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/download/geodata/{stores}', - path: { - stores - }, - query: { - format, - reproject - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); - } - - /** - * Execute Action - * Download the result of an action - * @returns unknown Successful Response - * @throws ApiError - */ - public executeActionApiDownloadPluginNameStoreIdGet(data: $OpenApiTs['/api/download/plugin/{name}/{store}/{id}']['get']['req']): Observable<$OpenApiTs['/api/download/plugin/{name}/{store}/{id}']['get']['res'][200]> { - const { name, store, id } = data; - return __request(OpenAPI, this.http, { - method: 'GET', - url: '/api/download/plugin/{name}/{store}/{id}', - path: { - name, - store, - id - }, - errors: { - 404: 'Not found', - 422: 'Validation Error' - } -}); + method: 'GET', + url: '/api/download/plugin/{name}/{store}/{id}', + path: { + name: data.name, + store: data.store, + id: data.id + }, + errors: { + 404: 'Not found', + 422: 'Validation Error' + } + }); } } \ No newline at end of file diff --git a/src/app/openapi/types.gen.ts b/src/app/openapi/types.gen.ts index 8c52e20..1e81860 100644 --- a/src/app/openapi/types.gen.ts +++ b/src/app/openapi/types.gen.ts @@ -1,6 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts - export type Action = { name: string; roles: Array<(string)>; @@ -151,19 +150,19 @@ export type CategoryRead = { [key: string]: unknown; } | null; /** - * ISO compliant layer name (see ISO 13567) - * :return: str - */ + * ISO compliant layer name (see ISO 13567) + * :return: str + */ readonly layer_name: string; /** - * Table name - * :return: - */ + * Table name + * :return: + */ readonly table_name: string; /** - * Table name - * :return: - */ + * Table name + * :return: + */ readonly raw_survey_table_name: string; readonly mapbox_type: string; }; @@ -328,12 +327,12 @@ export type MaplibreStyle = { paint?: { [key: string]: ({ [key: string]: unknown; -} | Array | number | string | boolean); +} | Array | boolean | number | string); } | null; layout?: { [key: string]: ({ [key: string]: unknown; -} | Array | number | string | boolean); +} | Array | boolean | number | string); } | null; attribution?: string | null; }; @@ -562,14 +561,191 @@ export type ValidationError = { type: string; }; +export type BootstrapApiBootstrapGetResponse = BootstrapData; + +export type LoginForAccessTokenApiTokenPostData = { + formData: Body_login_for_access_token_api_token_post; +}; + +export type LoginForAccessTokenApiTokenPostResponse = Token; + +export type LogoutApiLogoutGetResponse = unknown; + +export type GetUsersApiUsersGetResponse = Array; + +export type GetRolesApiRolesGetResponse = Array; + +export type GetAclsApiAclsGetResponse = Array; + +export type GetCategoriesApiCategoriesGetResponse = Array; + +export type GetCategoriesPapiCategoriesPandasGetResponse = Array; + +export type ListDataProvidersApiDataProvidersGetResponse = Array; + +export type GetModelListApiDataProviderStoreGetData = { + store: string; +}; + +export type GetModelListApiDataProviderStoreGetResponse = Array; + +export type GetModelValuesApiStoreNameValuesValueGetData = { + resample?: string | null; + storeName: string; + value: string; + where: string; +}; + +export type GetModelValuesApiStoreNameValuesValueGetResponse = unknown; + +export type GetStoresApiStoresGetResponse = Array; + +export type GetProjectsApiProjectsGetResponse = Array; + +export type GetSurveyMetaApiSurveyMetaGetResponse = SurveyMeta; + +export type GetFeatureInfoApiFeatureInfoStoreIdGetData = { + id: string; + store: string; +}; + +export type GetFeatureInfoApiFeatureInfoStoreIdGetResponse = FeatureInfo | null; + +export type GetModelInfoApiModelInfoStoreGetData = { + store: string; +}; + +export type GetModelInfoApiModelInfoStoreGetResponse = ModelInfo; + +export type GetPlotParamsApiPlotParamsStoreGetData = { + id: string; + store: string; + value: string; +}; + +export type GetPlotParamsApiPlotParamsStoreGetResponse = PlotParams; + +export type GetActionsApiActionsGetResponse = Array; + +export type ExecuteTagActionApiExecTagActionsPostData = { + requestBody: Body_execute_tag_action_api_execTagActions_post; +}; + +export type ExecuteTagActionApiExecTagActionsPostResponse = ActionsResults; + +export type GetGeojsonApiGjStoreNameGetData = { + ifNoneMatch?: string | null; + preserveTopology?: boolean | null; + simplify?: number | null; + storeName: unknown; +}; + +export type GetGeojsonApiGjStoreNameGetResponse = unknown; + +export type GetBasketsApiAdminBasketGetResponse = Array; + +export type GetBasketApiAdminBasketNameGetData = { + name: string; +}; + +export type GetBasketApiAdminBasketNameGetResponse = AdminBasket; + +export type UploadBasketFileApiAdminBasketUploadNamePostData = { + autoImport?: boolean; + equipmentId?: number | null; + formData: Body_upload_basket_file_api_admin_basket_upload__name__post; + name: string; + projectId?: number | null; + surveyorId?: number | null; +}; + +export type UploadBasketFileApiAdminBasketUploadNamePostResponse = BasketImportResult; + +export type DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetData = { + fileId: number; + fileName: string; + name: string; +}; + +export type DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetResponse = unknown; + +export type ImportBasketFileApiAdminBasketImportBasketFileIdGetData = { + basket: string; + dryRun?: boolean; + fileId: number; +}; + +export type ImportBasketFileApiAdminBasketImportBasketFileIdGetResponse = BasketImportResult; + +export type DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetData = { + basket: string; + fileId: number; +}; + +export type DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetResponse = unknown; + +export type GetGroupsApiDashboardGroupsGetResponse = Array; + +export type GetHomeApiDashboardHomeGetResponse = DashboardHome; + +export type GetDashboardPageApiDashboardPageGroupNameGetData = { + group: string; + name: string; +}; + +export type GetDashboardPageApiDashboardPageGroupNameGetResponse = Dashboard; + +export type GetInitDataApiMapInitDataGetResponse = MapInitData; + +export type GetBaseStyleApiMapBaseStyleNameGetData = { + name: string; +}; + +export type GetBaseStyleApiMapBaseStyleNameGetResponse = BaseStyle; + +export type GetLayerStyleApiMapLayerStyleStoreGetData = { + store: string; +}; + +export type GetLayerStyleApiMapLayerStyleStoreGetResponse = MaplibreStyle | null; + +export type DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetData = { + modelId: number; + resample: string; + store: string; + value: string; +}; + +export type DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetResponse = unknown; + +export type DownloadGeodataApiDownloadGeodataStoresGetData = { + format?: string; + reproject?: boolean; + stores: string; +}; + +export type DownloadGeodataApiDownloadGeodataStoresGetResponse = unknown; + +export type ExecuteActionApiDownloadPluginNameStoreIdGetData = { + id: number; + name: string; + store: string; +}; + +export type ExecuteActionApiDownloadPluginNameStoreIdGetResponse = unknown; + export type $OpenApiTs = { '/api/bootstrap': { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: BootstrapData; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -580,9 +756,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: Token; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -590,9 +774,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -600,9 +788,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -610,9 +802,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -620,9 +816,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -630,9 +830,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -640,9 +844,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -650,9 +858,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -663,9 +875,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -679,9 +899,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -689,9 +917,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -699,9 +931,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -709,9 +945,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: SurveyMeta; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -723,9 +963,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: FeatureInfo | null; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -736,9 +984,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: ModelInfo; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -751,9 +1007,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: PlotParams; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -761,9 +1025,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -774,9 +1042,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: ActionsResults; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -790,9 +1066,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -800,9 +1084,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -813,9 +1101,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: AdminBasket; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -831,9 +1127,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: BasketImportResult; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -846,9 +1150,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -861,9 +1173,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: BasketImportResult; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -875,9 +1195,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -885,9 +1213,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: Array; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -895,9 +1227,13 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: DashboardHome; + /** + * Not found + */ + 404: unknown; }; }; }; @@ -909,9 +1245,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: Dashboard; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -919,8 +1263,8 @@ export type $OpenApiTs = { get: { res: { /** - * Successful Response - */ + * Successful Response + */ 200: MapInitData; }; }; @@ -932,9 +1276,13 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: BaseStyle; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -945,9 +1293,13 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: MaplibreStyle | null; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -961,9 +1313,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -976,9 +1336,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; }; @@ -991,9 +1359,17 @@ export type $OpenApiTs = { }; res: { /** - * Successful Response - */ + * Successful Response + */ 200: unknown; + /** + * Not found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HTTPValidationError; }; }; };