Fix basket import date display update; Bump openapi-ts

This commit is contained in:
phil 2024-05-15 15:31:43 +02:00
parent aa955a1b3b
commit 0156869212
9 changed files with 1078 additions and 662 deletions

16
package-lock.json generated
View file

@ -38,7 +38,7 @@
"@angular/cli": "^17.3.5", "@angular/cli": "^17.3.5",
"@angular/compiler-cli": "^17.3.5", "@angular/compiler-cli": "^17.3.5",
"@angular/language-service": "^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/geojson": "^7946.0.14",
"@types/jasmine": "~5.1.4", "@types/jasmine": "~5.1.4",
"@types/jasminewd2": "^2.0.13", "@types/jasminewd2": "^2.0.13",
@ -735,9 +735,9 @@
} }
}, },
"node_modules/@apidevtools/json-schema-ref-parser": { "node_modules/@apidevtools/json-schema-ref-parser": {
"version": "11.5.4", "version": "11.6.1",
"resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.5.4.tgz", "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.6.1.tgz",
"integrity": "sha512-o2fsypTGU0WxRxbax8zQoHiIB4dyrkwYfcm8TxZ+bx9pCzcWZbQtiMqpgBvWA/nJ2TrGjK5adCLfTH8wUeU/Wg==", "integrity": "sha512-DxjgKBCoyReu4p5HMvpmgSOfRhhBcuf5V5soDDRgOTZMwsA4KSFzol1abFZgiCTE11L2kKGca5Md9GwDdXVBwQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@jsdevtools/ono": "^7.1.3", "@jsdevtools/ono": "^7.1.3",
@ -2912,12 +2912,12 @@
} }
}, },
"node_modules/@hey-api/openapi-ts": { "node_modules/@hey-api/openapi-ts": {
"version": "0.40.1", "version": "0.45.0",
"resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.40.1.tgz", "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.45.0.tgz",
"integrity": "sha512-pEH5rrmZbbkU7SeNXo6EZLSXA+eb5m7uUpqIksX7NIxbVmzSeRpU3FH6kyF9dG1eM4bUzPpCOQyc3zhgkmTKDw==", "integrity": "sha512-EAQhIrVhh2DqvcKo74rUgR7P+Wnd3U5XUvTT5PN8c9kHxOqXrQeGN+daqNLX2BruZBFzDVOs7AfIh8aL0ccbAw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@apidevtools/json-schema-ref-parser": "11.5.4", "@apidevtools/json-schema-ref-parser": "11.6.1",
"c12": "1.10.0", "c12": "1.10.0",
"camelcase": "8.0.0", "camelcase": "8.0.0",
"commander": "12.0.0", "commander": "12.0.0",

View file

@ -57,7 +57,7 @@
"@angular/cli": "^17.3.5", "@angular/cli": "^17.3.5",
"@angular/compiler-cli": "^17.3.5", "@angular/compiler-cli": "^17.3.5",
"@angular/language-service": "^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/geojson": "^7946.0.14",
"@types/jasmine": "~5.1.4", "@types/jasmine": "~5.1.4",
"@types/jasminewd2": "^2.0.13", "@types/jasminewd2": "^2.0.13",

View file

@ -85,7 +85,7 @@ export class AdminBasketComponent implements OnInit {
dryRun: dryRun dryRun: dryRun
}).subscribe({ }).subscribe({
next: resp => { 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, { this.snackBar.openFromComponent(HtmlSnackbarComponent, {
data: resp, data: resp,
//duration: 3000 //duration: 3000

View file

@ -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<string, string>; type Headers = Record<string, string>;
type Middleware<T> = (value: T) => T | Promise<T>; type Middleware<T> = (value: T) => T | Promise<T>;
@ -14,10 +15,7 @@ export class Interceptors<T> {
eject(fn: Middleware<T>) { eject(fn: Middleware<T>) {
const index = this._fns.indexOf(fn); const index = this._fns.indexOf(fn);
if (index !== -1) { if (index !== -1) {
this._fns = [ this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];
...this._fns.slice(0, index),
...this._fns.slice(index + 1),
];
} }
} }
@ -36,7 +34,9 @@ export type OpenAPIConfig = {
USERNAME?: string | Resolver<string> | undefined; USERNAME?: string | Resolver<string> | undefined;
VERSION: string; VERSION: string;
WITH_CREDENTIALS: boolean; WITH_CREDENTIALS: boolean;
interceptors: {response: Interceptors<HttpResponse<any>>;}; interceptors: {
response: Interceptors<HttpResponse<any>>;
};
}; };
export const OpenAPI: OpenAPIConfig = { export const OpenAPI: OpenAPIConfig = {
@ -49,6 +49,7 @@ export const OpenAPI: OpenAPIConfig = {
USERNAME: undefined, USERNAME: undefined,
VERSION: '0.1.dev85+g41e92fa.d20240509', VERSION: '0.1.dev85+g41e92fa.d20240509',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
interceptors: {response: new Interceptors(), interceptors: {
response: new Interceptors(),
}, },
}; };

View file

@ -46,7 +46,9 @@ export const getQueryString = (params: Record<string, unknown>): string => {
return; return;
} }
if (Array.isArray(value)) { if (value instanceof Date) {
append(key, value.toISOString());
} else if (Array.isArray(value)) {
value.forEach(v => encodePair(key, v)); value.forEach(v => encodePair(key, v));
} else if (typeof value === 'object') { } else if (typeof value === 'object') {
Object.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v)); Object.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));

View file

@ -1,5 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts // This file is auto-generated by @hey-api/openapi-ts
export { ApiError } from './core/ApiError'; export { ApiError } from './core/ApiError';
export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI'; export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI';
export * from './schemas.gen'; export * from './schemas.gen';

View file

@ -1,6 +1,5 @@
// This file is auto-generated by @hey-api/openapi-ts // This file is auto-generated by @hey-api/openapi-ts
export const $Action = { export const $Action = {
properties: { properties: {
name: { name: {
@ -1705,6 +1704,9 @@ export const $MaplibreStyle = {
items: {}, items: {},
type: 'array' type: 'array'
}, },
{
type: 'boolean'
},
{ {
type: 'number' type: 'number'
}, },
@ -1713,9 +1715,6 @@ export const $MaplibreStyle = {
}, },
{ {
type: 'string' type: 'string'
},
{
type: 'boolean'
} }
] ]
}, },
@ -1739,6 +1738,9 @@ export const $MaplibreStyle = {
items: {}, items: {},
type: 'array' type: 'array'
}, },
{
type: 'boolean'
},
{ {
type: 'number' type: 'number'
}, },
@ -1747,9 +1749,6 @@ export const $MaplibreStyle = {
}, },
{ {
type: 'string' type: 'string'
},
{
type: 'boolean'
} }
] ]
}, },

View file

@ -1,52 +1,51 @@
// This file is auto-generated by @hey-api/openapi-ts // This file is auto-generated by @hey-api/openapi-ts
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import type { Observable } from 'rxjs'; import type { Observable } from 'rxjs';
import { OpenAPI } from './core/OpenAPI'; import { OpenAPI } from './core/OpenAPI';
import { request as __request } from './core/request'; 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({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })
export class ApiService { export class ApiService {
constructor(public readonly http: HttpClient) { constructor(public readonly http: HttpClient) { }
}
/** /**
* Bootstrap * Bootstrap
* @returns BootstrapData Successful Response * @returns BootstrapData Successful Response
* @throws ApiError * @throws ApiError
*/ */
public bootstrapApiBootstrapGet(): Observable<$OpenApiTs['/api/bootstrap']['get']['res'][200]> { public bootstrapApiBootstrapGet(): Observable<BootstrapApiBootstrapGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/bootstrap', url: '/api/bootstrap',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
* Login For Access Token * Login For Access Token
* @param data The data for the request.
* @param data.formData
* @returns Token Successful Response * @returns Token Successful Response
* @throws ApiError * @throws ApiError
*/ */
public loginForAccessTokenApiTokenPost(data: $OpenApiTs['/api/token']['post']['req']): Observable<$OpenApiTs['/api/token']['post']['res'][200]> { public loginForAccessTokenApiTokenPost(data: LoginForAccessTokenApiTokenPostData): Observable<LoginForAccessTokenApiTokenPostResponse> {
const { formData } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'POST', method: 'POST',
url: '/api/token', url: '/api/token',
formData, formData: data.formData,
mediaType: 'application/x-www-form-urlencoded', mediaType: 'application/x-www-form-urlencoded',
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
@ -54,14 +53,14 @@ export class ApiService {
* @returns unknown Successful Response * @returns unknown Successful Response
* @throws ApiError * @throws ApiError
*/ */
public logoutApiLogoutGet(): Observable<$OpenApiTs['/api/logout']['get']['res'][200]> { public logoutApiLogoutGet(): Observable<LogoutApiLogoutGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/logout', url: '/api/logout',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -69,14 +68,14 @@ export class ApiService {
* @returns UserRead Successful Response * @returns UserRead Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getUsersApiUsersGet(): Observable<$OpenApiTs['/api/users']['get']['res'][200]> { public getUsersApiUsersGet(): Observable<GetUsersApiUsersGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/users', url: '/api/users',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -84,14 +83,14 @@ export class ApiService {
* @returns RoleRead Successful Response * @returns RoleRead Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getRolesApiRolesGet(): Observable<$OpenApiTs['/api/roles']['get']['res'][200]> { public getRolesApiRolesGet(): Observable<GetRolesApiRolesGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/roles', url: '/api/roles',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -100,14 +99,14 @@ export class ApiService {
* @returns UserRoleLink Successful Response * @returns UserRoleLink Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getAclsApiAclsGet(): Observable<$OpenApiTs['/api/acls']['get']['res'][200]> { public getAclsApiAclsGet(): Observable<GetAclsApiAclsGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/acls', url: '/api/acls',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -115,14 +114,14 @@ export class ApiService {
* @returns CategoryRead Successful Response * @returns CategoryRead Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getCategoriesApiCategoriesGet(): Observable<$OpenApiTs['/api/categories']['get']['res'][200]> { public getCategoriesApiCategoriesGet(): Observable<GetCategoriesApiCategoriesGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/categories', url: '/api/categories',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -130,14 +129,14 @@ export class ApiService {
* @returns CategoryRead Successful Response * @returns CategoryRead Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getCategoriesPApiCategoriesPandasGet(): Observable<$OpenApiTs['/api/categories_pandas']['get']['res'][200]> { public getCategoriesPApiCategoriesPandasGet(): Observable<GetCategoriesPapiCategoriesPandasGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/categories_pandas', url: '/api/categories_pandas',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -147,14 +146,14 @@ export class ApiService {
* @returns DataProvider Successful Response * @returns DataProvider Successful Response
* @throws ApiError * @throws ApiError
*/ */
public listDataProvidersApiDataProvidersGet(): Observable<$OpenApiTs['/api/data-providers']['get']['res'][200]> { public listDataProvidersApiDataProvidersGet(): Observable<ListDataProvidersApiDataProvidersGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/data-providers', url: '/api/data-providers',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -162,48 +161,53 @@ export class ApiService {
* Json REST store API compatible with Flask Potion and Angular * Json REST store API compatible with Flask Potion and Angular
* Get the list of items (used for making the list of items in measures) * Get the list of items (used for making the list of items in measures)
* Filter only items with at least one measure * Filter only items with at least one measure
* @param data The data for the request.
* @param data.store
* @returns MeasuresItem Successful Response * @returns MeasuresItem Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getModelListApiDataProviderStoreGet(data: $OpenApiTs['/api/data-provider/{store}']['get']['req']): Observable<$OpenApiTs['/api/data-provider/{store}']['get']['res'][200]> { public getModelListApiDataProviderStoreGet(data: GetModelListApiDataProviderStoreGetData): Observable<GetModelListApiDataProviderStoreGetResponse> {
const { store } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/data-provider/{store}', url: '/api/data-provider/{store}',
path: { path: {
store store: data.store
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Get Model Values * Get Model Values
* Get 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 * @returns unknown Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getModelValuesApiStoreNameValuesValueGet(data: $OpenApiTs['/api/{store_name}/values/{value}']['get']['req']): Observable<$OpenApiTs['/api/{store_name}/values/{value}']['get']['res'][200]> { public getModelValuesApiStoreNameValuesValueGet(data: GetModelValuesApiStoreNameValuesValueGetData): Observable<GetModelValuesApiStoreNameValuesValueGetResponse> {
const { storeName, value, where, resample } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/{store_name}/values/{value}', url: '/api/{store_name}/values/{value}',
path: { path: {
store_name: storeName, store_name: data.storeName,
value value: data.value
}, },
query: { query: {
where, where: data.where,
resample resample: data.resample
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
@ -211,14 +215,14 @@ export class ApiService {
* @returns Store Successful Response * @returns Store Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getStoresApiStoresGet(): Observable<$OpenApiTs['/api/stores']['get']['res'][200]> { public getStoresApiStoresGet(): Observable<GetStoresApiStoresGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/stores', url: '/api/stores',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -226,14 +230,14 @@ export class ApiService {
* @returns Project Successful Response * @returns Project Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getProjectsApiProjectsGet(): Observable<$OpenApiTs['/api/projects']['get']['res'][200]> { public getProjectsApiProjectsGet(): Observable<GetProjectsApiProjectsGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/projects', url: '/api/projects',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -241,79 +245,85 @@ export class ApiService {
* @returns SurveyMeta Successful Response * @returns SurveyMeta Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getSurveyMetaApiSurveyMetaGet(): Observable<$OpenApiTs['/api/survey_meta']['get']['res'][200]> { public getSurveyMetaApiSurveyMetaGet(): Observable<GetSurveyMetaApiSurveyMetaGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/survey_meta', url: '/api/survey_meta',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
* Get Feature Info * Get Feature Info
* @param data The data for the request.
* @param data.store
* @param data.id
* @returns unknown Successful Response * @returns unknown Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getFeatureInfoApiFeatureInfoStoreIdGet(data: $OpenApiTs['/api/feature-info/{store}/{id}']['get']['req']): Observable<$OpenApiTs['/api/feature-info/{store}/{id}']['get']['res'][200]> { public getFeatureInfoApiFeatureInfoStoreIdGet(data: GetFeatureInfoApiFeatureInfoStoreIdGetData): Observable<GetFeatureInfoApiFeatureInfoStoreIdGetResponse> {
const { store, id } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/feature-info/{store}/{id}', url: '/api/feature-info/{store}/{id}',
path: { path: {
store, store: data.store,
id id: data.id
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Get Model Info * Get Model Info
* @param data The data for the request.
* @param data.store
* @returns ModelInfo Successful Response * @returns ModelInfo Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getModelInfoApiModelInfoStoreGet(data: $OpenApiTs['/api/model-info/{store}']['get']['req']): Observable<$OpenApiTs['/api/model-info/{store}']['get']['res'][200]> { public getModelInfoApiModelInfoStoreGet(data: GetModelInfoApiModelInfoStoreGetData): Observable<GetModelInfoApiModelInfoStoreGetResponse> {
const { store } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/model-info/{store}', url: '/api/model-info/{store}',
path: { path: {
store store: data.store
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Get Plot Params * Get Plot Params
* @param data The data for the request.
* @param data.store
* @param data.id
* @param data.value
* @returns PlotParams Successful Response * @returns PlotParams Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getPlotParamsApiPlotParamsStoreGet(data: $OpenApiTs['/api/plot-params/{store}']['get']['req']): Observable<$OpenApiTs['/api/plot-params/{store}']['get']['res'][200]> { public getPlotParamsApiPlotParamsStoreGet(data: GetPlotParamsApiPlotParamsStoreGetData): Observable<GetPlotParamsApiPlotParamsStoreGetResponse> {
const { store, id, value } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/plot-params/{store}', url: '/api/plot-params/{store}',
path: { path: {
store store: data.store
}, },
query: { query: {
id, id: data.id,
value value: data.value
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
@ -321,33 +331,34 @@ export class ApiService {
* @returns ActionsStore Successful Response * @returns ActionsStore Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getActionsApiActionsGet(): Observable<$OpenApiTs['/api/actions']['get']['res'][200]> { public getActionsApiActionsGet(): Observable<GetActionsApiActionsGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/actions', url: '/api/actions',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
* Execute Tag Action * Execute Tag Action
* @param data The data for the request.
* @param data.requestBody
* @returns ActionsResults Successful Response * @returns ActionsResults Successful Response
* @throws ApiError * @throws ApiError
*/ */
public executeTagActionApiExecTagActionsPost(data: $OpenApiTs['/api/execTagActions']['post']['req']): Observable<$OpenApiTs['/api/execTagActions']['post']['res'][200]> { public executeTagActionApiExecTagActionsPost(data: ExecuteTagActionApiExecTagActionsPostData): Observable<ExecuteTagActionApiExecTagActionsPostResponse> {
const { requestBody } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'POST', method: 'POST',
url: '/api/execTagActions', url: '/api/execTagActions',
body: requestBody, body: data.requestBody,
mediaType: 'application/json', mediaType: 'application/json',
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
} }
@ -356,35 +367,38 @@ export class ApiService {
providedIn: 'root' providedIn: 'root'
}) })
export class GeoapiService { export class GeoapiService {
constructor(public readonly http: HttpClient) { constructor(public readonly http: HttpClient) { }
}
/** /**
* Get Geojson * Get Geojson
* Some REST stores coded manually (route prefixed with "gj": geojson). * Some REST stores coded manually (route prefixed with "gj": geojson).
* :param store_name: name of the model * :param store_name: name of the model
* :return: json * :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 * @returns unknown Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getGeojsonApiGjStoreNameGet(data: $OpenApiTs['/api/gj/{store_name}']['get']['req']): Observable<$OpenApiTs['/api/gj/{store_name}']['get']['res'][200]> { public getGeojsonApiGjStoreNameGet(data: GetGeojsonApiGjStoreNameGetData): Observable<GetGeojsonApiGjStoreNameGetResponse> {
const { storeName, ifNoneMatch, simplify, preserveTopology } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/gj/{store_name}', url: '/api/gj/{store_name}',
path: { path: {
store_name: storeName store_name: data.storeName
}, },
headers: { headers: {
'If-None-Match': ifNoneMatch, 'If-None-Match': data.ifNoneMatch,
simplify, simplify: data.simplify,
preserveTopology preserveTopology: data.preserveTopology
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
} }
@ -393,137 +407,151 @@ export class GeoapiService {
providedIn: 'root' providedIn: 'root'
}) })
export class AdminService { export class AdminService {
constructor(public readonly http: HttpClient) { constructor(public readonly http: HttpClient) { }
}
/** /**
* Get Baskets * Get Baskets
* @returns BasketNameOnly Successful Response * @returns BasketNameOnly Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getBasketsApiAdminBasketGet(): Observable<$OpenApiTs['/api/admin/basket']['get']['res'][200]> { public getBasketsApiAdminBasketGet(): Observable<GetBasketsApiAdminBasketGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/admin/basket', url: '/api/admin/basket',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
* Get Basket * Get Basket
* @param data The data for the request.
* @param data.name
* @returns AdminBasket Successful Response * @returns AdminBasket Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getBasketApiAdminBasketNameGet(data: $OpenApiTs['/api/admin/basket/{name}']['get']['req']): Observable<$OpenApiTs['/api/admin/basket/{name}']['get']['res'][200]> { public getBasketApiAdminBasketNameGet(data: GetBasketApiAdminBasketNameGetData): Observable<GetBasketApiAdminBasketNameGetResponse> {
const { name } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/admin/basket/{name}', url: '/api/admin/basket/{name}',
path: { path: {
name name: data.name
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Upload Basket File * 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 * @returns BasketImportResult Successful Response
* @throws ApiError * @throws ApiError
*/ */
public uploadBasketFileApiAdminBasketUploadNamePost(data: $OpenApiTs['/api/admin/basket/upload/{name}']['post']['req']): Observable<$OpenApiTs['/api/admin/basket/upload/{name}']['post']['res'][200]> { public uploadBasketFileApiAdminBasketUploadNamePost(data: UploadBasketFileApiAdminBasketUploadNamePostData): Observable<UploadBasketFileApiAdminBasketUploadNamePostResponse> {
const { name, formData, projectId, surveyorId, equipmentId, autoImport } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'POST', method: 'POST',
url: '/api/admin/basket/upload/{name}', url: '/api/admin/basket/upload/{name}',
path: { path: {
name name: data.name
}, },
query: { query: {
project_id: projectId, project_id: data.projectId,
surveyor_id: surveyorId, surveyor_id: data.surveyorId,
equipment_id: equipmentId, equipment_id: data.equipmentId,
auto_import: autoImport auto_import: data.autoImport
}, },
formData, formData: data.formData,
mediaType: 'multipart/form-data', mediaType: 'multipart/form-data',
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Download Basket File * Download Basket File
* @param data The data for the request.
* @param data.name
* @param data.fileId
* @param data.fileName
* @returns unknown Successful Response * @returns unknown Successful Response
* @throws ApiError * @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]> { public downloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGet(data: DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetData): Observable<DownloadBasketFileApiAdminBasketDownloadNameFileIdFileNameGetResponse> {
const { name, fileId, fileName } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/admin/basket/download/{name}/{file_id}/{file_name}', url: '/api/admin/basket/download/{name}/{file_id}/{file_name}',
path: { path: {
name, name: data.name,
file_id: fileId, file_id: data.fileId,
file_name: fileName file_name: data.fileName
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Import Basket File * Import Basket File
* @param data The data for the request.
* @param data.basket
* @param data.fileId
* @param data.dryRun
* @returns BasketImportResult Successful Response * @returns BasketImportResult Successful Response
* @throws ApiError * @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]> { public importBasketFileApiAdminBasketImportBasketFileIdGet(data: ImportBasketFileApiAdminBasketImportBasketFileIdGetData): Observable<ImportBasketFileApiAdminBasketImportBasketFileIdGetResponse> {
const { basket, fileId, dryRun } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/admin/basket/import/{basket}/{file_id}', url: '/api/admin/basket/import/{basket}/{file_id}',
path: { path: {
basket, basket: data.basket,
file_id: fileId file_id: data.fileId
}, },
query: { query: {
dryRun dryRun: data.dryRun
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Delete Basket File * Delete Basket File
* @param data The data for the request.
* @param data.basket
* @param data.fileId
* @returns unknown Successful Response * @returns unknown Successful Response
* @throws ApiError * @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]> { public deleteBasketFileApiAdminBasketDeleteBasketFileIdGet(data: DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetData): Observable<DeleteBasketFileApiAdminBasketDeleteBasketFileIdGetResponse> {
const { basket, fileId } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/admin/basket/delete/{basket}/{file_id}', url: '/api/admin/basket/delete/{basket}/{file_id}',
path: { path: {
basket, basket: data.basket,
file_id: fileId file_id: data.fileId
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
} }
@ -532,22 +560,21 @@ export class AdminService {
providedIn: 'root' providedIn: 'root'
}) })
export class DashboardService { export class DashboardService {
constructor(public readonly http: HttpClient) { constructor(public readonly http: HttpClient) { }
}
/** /**
* Get Groups * Get Groups
* @returns DashboardGroup Successful Response * @returns DashboardGroup Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getGroupsApiDashboardGroupsGet(): Observable<$OpenApiTs['/api/dashboard/groups']['get']['res'][200]> { public getGroupsApiDashboardGroupsGet(): Observable<GetGroupsApiDashboardGroupsGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/dashboard/groups', url: '/api/dashboard/groups',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
@ -555,35 +582,37 @@ export class DashboardService {
* @returns DashboardHome Successful Response * @returns DashboardHome Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getHomeApiDashboardHomeGet(): Observable<$OpenApiTs['/api/dashboard/home']['get']['res'][200]> { public getHomeApiDashboardHomeGet(): Observable<GetHomeApiDashboardHomeGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/dashboard/home', url: '/api/dashboard/home',
errors: { errors: {
404: 'Not found' 404: 'Not found'
} }
}); });
} }
/** /**
* Get Dashboard Page * Get Dashboard Page
* @param data The data for the request.
* @param data.group
* @param data.name
* @returns Dashboard Successful Response * @returns Dashboard Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getDashboardPageApiDashboardPageGroupNameGet(data: $OpenApiTs['/api/dashboard/page/{group}/{name}']['get']['req']): Observable<$OpenApiTs['/api/dashboard/page/{group}/{name}']['get']['res'][200]> { public getDashboardPageApiDashboardPageGroupNameGet(data: GetDashboardPageApiDashboardPageGroupNameGetData): Observable<GetDashboardPageApiDashboardPageGroupNameGetResponse> {
const { group, name } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/dashboard/page/{group}/{name}', url: '/api/dashboard/page/{group}/{name}',
path: { path: {
group, group: data.group,
name name: data.name
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
} }
@ -592,57 +621,58 @@ export class DashboardService {
providedIn: 'root' providedIn: 'root'
}) })
export class MapService { export class MapService {
constructor(public readonly http: HttpClient) { constructor(public readonly http: HttpClient) { }
}
/** /**
* Get Init Data * Get Init Data
* @returns MapInitData Successful Response * @returns MapInitData Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getInitDataApiMapInitDataGet(): Observable<$OpenApiTs['/api/map/init-data']['get']['res'][200]> { public getInitDataApiMapInitDataGet(): Observable<GetInitDataApiMapInitDataGetResponse> {
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/map/init-data' url: '/api/map/init-data'
}); });
} }
/** /**
* Get Base Style * Get Base Style
* @param data The data for the request.
* @param data.name
* @returns BaseStyle Successful Response * @returns BaseStyle Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getBaseStyleApiMapBaseStyleNameGet(data: $OpenApiTs['/api/map/base_style/{name}']['get']['req']): Observable<$OpenApiTs['/api/map/base_style/{name}']['get']['res'][200]> { public getBaseStyleApiMapBaseStyleNameGet(data: GetBaseStyleApiMapBaseStyleNameGetData): Observable<GetBaseStyleApiMapBaseStyleNameGetResponse> {
const { name } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/map/base_style/{name}', url: '/api/map/base_style/{name}',
path: { path: {
name name: data.name
}, },
errors: { errors: {
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Get Layer Style * Get Layer Style
* @param data The data for the request.
* @param data.store
* @returns unknown Successful Response * @returns unknown Successful Response
* @throws ApiError * @throws ApiError
*/ */
public getLayerStyleApiMapLayerStyleStoreGet(data: $OpenApiTs['/api/map/layer_style/{store}']['get']['req']): Observable<$OpenApiTs['/api/map/layer_style/{store}']['get']['res'][200]> { public getLayerStyleApiMapLayerStyleStoreGet(data: GetLayerStyleApiMapLayerStyleStoreGetData): Observable<GetLayerStyleApiMapLayerStyleStoreGetResponse> {
const { store } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/map/layer_style/{store}', url: '/api/map/layer_style/{store}',
path: { path: {
store store: data.store
}, },
errors: { errors: {
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
} }
@ -651,77 +681,86 @@ export class MapService {
providedIn: 'root' providedIn: 'root'
}) })
export class DownloadService { export class DownloadService {
constructor(public readonly http: HttpClient) { constructor(public readonly http: HttpClient) { }
}
/** /**
* Download Csv * 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 * @returns unknown Successful Response
* @throws ApiError * @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]> { public downloadCsvApiDownloadCsvStoreModelIdValueResampleGet(data: DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetData): Observable<DownloadCsvApiDownloadCsvStoreModelIdValueResampleGetResponse> {
const { store, modelId, value, resample } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/download/csv/{store}/{model_id}/{value}/{resample}', url: '/api/download/csv/{store}/{model_id}/{value}/{resample}',
path: { path: {
store, store: data.store,
model_id: modelId, model_id: data.modelId,
value, value: data.value,
resample resample: data.resample
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Download Geodata * Download Geodata
* @param data The data for the request.
* @param data.stores
* @param data.format
* @param data.reproject
* @returns unknown Successful Response * @returns unknown Successful Response
* @throws ApiError * @throws ApiError
*/ */
public downloadGeodataApiDownloadGeodataStoresGet(data: $OpenApiTs['/api/download/geodata/{stores}']['get']['req']): Observable<$OpenApiTs['/api/download/geodata/{stores}']['get']['res'][200]> { public downloadGeodataApiDownloadGeodataStoresGet(data: DownloadGeodataApiDownloadGeodataStoresGetData): Observable<DownloadGeodataApiDownloadGeodataStoresGetResponse> {
const { stores, format, reproject } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/download/geodata/{stores}', url: '/api/download/geodata/{stores}',
path: { path: {
stores stores: data.stores
}, },
query: { query: {
format, format: data.format,
reproject reproject: data.reproject
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
/** /**
* Execute Action * Execute Action
* Download the result of an 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 * @returns unknown Successful Response
* @throws ApiError * @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]> { public executeActionApiDownloadPluginNameStoreIdGet(data: ExecuteActionApiDownloadPluginNameStoreIdGetData): Observable<ExecuteActionApiDownloadPluginNameStoreIdGetResponse> {
const { name, store, id } = data;
return __request(OpenAPI, this.http, { return __request(OpenAPI, this.http, {
method: 'GET', method: 'GET',
url: '/api/download/plugin/{name}/{store}/{id}', url: '/api/download/plugin/{name}/{store}/{id}',
path: { path: {
name, name: data.name,
store, store: data.store,
id id: data.id
}, },
errors: { errors: {
404: 'Not found', 404: 'Not found',
422: 'Validation Error' 422: 'Validation Error'
} }
}); });
} }
} }

View file

@ -1,6 +1,5 @@
// This file is auto-generated by @hey-api/openapi-ts // This file is auto-generated by @hey-api/openapi-ts
export type Action = { export type Action = {
name: string; name: string;
roles: Array<(string)>; roles: Array<(string)>;
@ -328,12 +327,12 @@ export type MaplibreStyle = {
paint?: { paint?: {
[key: string]: ({ [key: string]: ({
[key: string]: unknown; [key: string]: unknown;
} | Array<unknown> | number | string | boolean); } | Array<unknown> | boolean | number | string);
} | null; } | null;
layout?: { layout?: {
[key: string]: ({ [key: string]: ({
[key: string]: unknown; [key: string]: unknown;
} | Array<unknown> | number | string | boolean); } | Array<unknown> | boolean | number | string);
} | null; } | null;
attribution?: string | null; attribution?: string | null;
}; };
@ -562,6 +561,179 @@ export type ValidationError = {
type: string; 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<UserRead>;
export type GetRolesApiRolesGetResponse = Array<RoleRead>;
export type GetAclsApiAclsGetResponse = Array<UserRoleLink>;
export type GetCategoriesApiCategoriesGetResponse = Array<CategoryRead>;
export type GetCategoriesPapiCategoriesPandasGetResponse = Array<CategoryRead>;
export type ListDataProvidersApiDataProvidersGetResponse = Array<DataProvider>;
export type GetModelListApiDataProviderStoreGetData = {
store: string;
};
export type GetModelListApiDataProviderStoreGetResponse = Array<MeasuresItem>;
export type GetModelValuesApiStoreNameValuesValueGetData = {
resample?: string | null;
storeName: string;
value: string;
where: string;
};
export type GetModelValuesApiStoreNameValuesValueGetResponse = unknown;
export type GetStoresApiStoresGetResponse = Array<Store>;
export type GetProjectsApiProjectsGetResponse = Array<Project>;
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<ActionsStore>;
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<BasketNameOnly>;
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<DashboardGroup>;
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 = { export type $OpenApiTs = {
'/api/bootstrap': { '/api/bootstrap': {
get: { get: {
@ -570,6 +742,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: BootstrapData; 200: BootstrapData;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -583,6 +759,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Token; 200: Token;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -593,6 +777,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -603,6 +791,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<UserRead>; 200: Array<UserRead>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -613,6 +805,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<RoleRead>; 200: Array<RoleRead>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -623,6 +819,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<UserRoleLink>; 200: Array<UserRoleLink>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -633,6 +833,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<CategoryRead>; 200: Array<CategoryRead>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -643,6 +847,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<CategoryRead>; 200: Array<CategoryRead>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -653,6 +861,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<DataProvider>; 200: Array<DataProvider>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -666,6 +878,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<MeasuresItem>; 200: Array<MeasuresItem>;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -682,6 +902,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -692,6 +920,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<Store>; 200: Array<Store>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -702,6 +934,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<Project>; 200: Array<Project>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -712,6 +948,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: SurveyMeta; 200: SurveyMeta;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -726,6 +966,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: FeatureInfo | null; 200: FeatureInfo | null;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -739,6 +987,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: ModelInfo; 200: ModelInfo;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -754,6 +1010,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: PlotParams; 200: PlotParams;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -764,6 +1028,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<ActionsStore>; 200: Array<ActionsStore>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -777,6 +1045,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: ActionsResults; 200: ActionsResults;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -793,6 +1069,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -803,6 +1087,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<BasketNameOnly>; 200: Array<BasketNameOnly>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -816,6 +1104,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: AdminBasket; 200: AdminBasket;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -834,6 +1130,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: BasketImportResult; 200: BasketImportResult;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -849,6 +1153,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -864,6 +1176,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: BasketImportResult; 200: BasketImportResult;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -878,6 +1198,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -888,6 +1216,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Array<DashboardGroup>; 200: Array<DashboardGroup>;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -898,6 +1230,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: DashboardHome; 200: DashboardHome;
/**
* Not found
*/
404: unknown;
}; };
}; };
}; };
@ -912,6 +1248,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: Dashboard; 200: Dashboard;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -935,6 +1279,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: BaseStyle; 200: BaseStyle;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -948,6 +1296,10 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: MaplibreStyle | null; 200: MaplibreStyle | null;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -964,6 +1316,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -979,6 +1339,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };
@ -994,6 +1362,14 @@ export type $OpenApiTs = {
* Successful Response * Successful Response
*/ */
200: unknown; 200: unknown;
/**
* Not found
*/
404: unknown;
/**
* Validation Error
*/
422: HTTPValidationError;
}; };
}; };
}; };