Ongoing migration
This commit is contained in:
parent
c489a83285
commit
38ff5b8e59
23 changed files with 155 additions and 271 deletions
|
@ -21,7 +21,7 @@ export type OpenAPIConfig = {
|
|||
|
||||
export const OpenAPI: OpenAPIConfig = {
|
||||
BASE: '',
|
||||
VERSION: '2023.4.dev34+g5dacc90.d20240212',
|
||||
VERSION: '2023.4.dev37+gb00bf1f.d20240226',
|
||||
WITH_CREDENTIALS: false,
|
||||
CREDENTIALS: 'include',
|
||||
TOKEN: undefined,
|
||||
|
|
|
@ -9,7 +9,7 @@ export type { OpenAPIConfig } from './core/OpenAPI';
|
|||
|
||||
export type { AdminBasket } from './models/AdminBasket';
|
||||
export type { Attachment } from './models/Attachment';
|
||||
export type { BaseMap } from './models/BaseMap';
|
||||
export type { BaseMapWithStores } from './models/BaseMapWithStores';
|
||||
export type { BaseStyle } from './models/BaseStyle';
|
||||
export type { BasketDefault } from './models/BasketDefault';
|
||||
export type { Body_login_for_access_token_api_token_post } from './models/Body_login_for_access_token_api_token_post';
|
||||
|
@ -30,6 +30,7 @@ export type { InfoCategory } from './models/InfoCategory';
|
|||
export type { InfoItem } from './models/InfoItem';
|
||||
export type { Map } from './models/Map';
|
||||
export type { MapInitData } from './models/MapInitData';
|
||||
export type { MaplibreStyle } from './models/MaplibreStyle';
|
||||
export type { Measures } from './models/Measures';
|
||||
export type { PlotBaseLine } from './models/PlotBaseLine';
|
||||
export type { PlotBgShape } from './models/PlotBgShape';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type BaseMap = {
|
||||
id?: (number | null);
|
||||
export type BaseMapWithStores = {
|
||||
name: string;
|
||||
stores: Array<string>;
|
||||
};
|
||||
|
|
@ -16,8 +16,8 @@ export type CategoryRead = {
|
|||
style: (string | null);
|
||||
symbol: (string | null);
|
||||
mapbox_type_custom: (string | null);
|
||||
mapbox_paint: (Record<string, any> | null);
|
||||
mapbox_layout: (Record<string, any> | null);
|
||||
mapbox_paint: (Record<string, (Record<string, any> | number | string)> | null);
|
||||
mapbox_layout: (Record<string, (Record<string, any> | number | string)> | null);
|
||||
viewable_role: (string | null);
|
||||
extra: (Record<string, any> | null);
|
||||
/**
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseMap } from './BaseMap';
|
||||
import type { BaseMapWithStores } from './BaseMapWithStores';
|
||||
import type { BaseStyle } from './BaseStyle';
|
||||
import type { CategoryGroup } from './CategoryGroup';
|
||||
import type { Store } from './Store';
|
||||
export type MapInitData = {
|
||||
baseStyles?: Array<BaseStyle>;
|
||||
baseMaps?: Array<BaseMap>;
|
||||
baseMaps?: Array<BaseMapWithStores>;
|
||||
groups?: Array<CategoryGroup>;
|
||||
stores?: Array<Store>;
|
||||
};
|
||||
|
|
10
src/app/openapi/models/MaplibreStyle.ts
Normal file
10
src/app/openapi/models/MaplibreStyle.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type MaplibreStyle = {
|
||||
paint?: (Record<string, (Record<string, any> | number | string)> | null);
|
||||
layout?: (Record<string, (Record<string, any> | number | string)> | null);
|
||||
attribution?: (string | null);
|
||||
};
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
/* eslint-disable */
|
||||
export type Store = {
|
||||
name: string;
|
||||
category?: (string | null);
|
||||
auto_import: boolean;
|
||||
count?: (number | null);
|
||||
custom: boolean;
|
||||
|
@ -18,7 +19,6 @@ export type Store = {
|
|||
minor_group_2: (string | null);
|
||||
gis_type: string;
|
||||
status: string;
|
||||
store: string;
|
||||
style: (string | null);
|
||||
symbol: (string | null);
|
||||
title: string;
|
||||
|
|
|
@ -7,6 +7,7 @@ import { HttpClient } from '@angular/common/http';
|
|||
import type { Observable } from 'rxjs';
|
||||
import type { BaseStyle } from '../models/BaseStyle';
|
||||
import type { MapInitData } from '../models/MapInitData';
|
||||
import type { MaplibreStyle } from '../models/MaplibreStyle';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
@Injectable({
|
||||
|
@ -46,4 +47,25 @@ export class MapService {
|
|||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get Layer Style
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public getLayerStyleApiMapLayerStyleStoreGet({
|
||||
store,
|
||||
}: {
|
||||
store: string,
|
||||
}): Observable<(MaplibreStyle | null)> {
|
||||
return __request(OpenAPI, this.http, {
|
||||
method: 'GET',
|
||||
url: '/api/map/layer_style/{store}',
|
||||
path: {
|
||||
'store': store,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue