@mapcreator/api 0.0.0-saga.0 → 0.0.0-saga.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/api/choropleth.d.ts +9 -9
- package/cjs/api/choropleth.d.ts.map +1 -1
- package/cjs/api/choropleth.js +5 -5
- package/cjs/api/choropleth.js.map +1 -1
- package/esm/api/choropleth.d.ts +9 -9
- package/esm/api/choropleth.d.ts.map +1 -1
- package/esm/api/choropleth.js +3 -3
- package/esm/api/choropleth.js.map +1 -1
- package/package.json +1 -1
- package/src/api/choropleth.ts +21 -21
package/cjs/api/choropleth.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import type { Polygon } from 'geojson';
|
|
2
|
-
export type
|
|
2
|
+
export type ApiSearchPoint = {
|
|
3
3
|
lat: number;
|
|
4
4
|
lng: number;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type ApiSearchBounds = {
|
|
7
7
|
min_lat: number;
|
|
8
8
|
min_lng: number;
|
|
9
9
|
max_lat: number;
|
|
10
10
|
max_lng: number;
|
|
11
11
|
};
|
|
12
|
-
type
|
|
12
|
+
type SingleOrGroupedAreaBase = {
|
|
13
13
|
id: number;
|
|
14
14
|
title: string;
|
|
15
15
|
subtitle: string;
|
|
16
16
|
svgPreview: string;
|
|
17
17
|
boundingBox: Polygon;
|
|
18
18
|
};
|
|
19
|
-
type
|
|
19
|
+
type GroupedArea = SingleOrGroupedAreaBase & {
|
|
20
20
|
isGroup: true;
|
|
21
21
|
};
|
|
22
|
-
type SingleArea =
|
|
22
|
+
type SingleArea = SingleOrGroupedAreaBase & {
|
|
23
23
|
isGroup: false;
|
|
24
24
|
vectorSource: string;
|
|
25
25
|
sourceLayer: string;
|
|
26
26
|
featureId: number;
|
|
27
27
|
properties: Record<string, string>;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
30
|
-
export declare function
|
|
31
|
-
export type
|
|
29
|
+
export type SingleOrGroupedArea = SingleArea | GroupedArea;
|
|
30
|
+
export declare function searchSingleOrGroupedAreas(language: string, searchBounds: ApiSearchBounds, query?: string, searchPoint?: ApiSearchPoint): Promise<SingleOrGroupedArea[]>;
|
|
31
|
+
export type GroupedAreaChild = {
|
|
32
32
|
id: number;
|
|
33
33
|
title: string;
|
|
34
34
|
vectorSource: string;
|
|
@@ -36,6 +36,6 @@ export type AreaChild = {
|
|
|
36
36
|
featureId: number;
|
|
37
37
|
properties: Record<string, string>;
|
|
38
38
|
};
|
|
39
|
-
export declare function
|
|
39
|
+
export declare function groupedAreaChildren(groupId: number, language: string): Promise<GroupedAreaChild[]>;
|
|
40
40
|
export {};
|
|
41
41
|
//# sourceMappingURL=choropleth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAmBF,KAAK,uBAAuB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG,uBAAuB,GAAG;IAC3C,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,KAAK,UAAU,GAAG,uBAAuB,GAAG;IAC1C,OAAO,EAAE,KAAK,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,CAAC;AAE3D,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,eAAe,EAC7B,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,cAAc,GAC3B,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAehC;AAiBD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAIxG"}
|
package/cjs/api/choropleth.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.searchSingleOrGroupedAreas = searchSingleOrGroupedAreas;
|
|
4
|
+
exports.groupedAreaChildren = groupedAreaChildren;
|
|
5
5
|
const utils_js_1 = require("../utils.js");
|
|
6
|
-
async function
|
|
7
|
-
return (0, utils_js_1.request)(`/v1/choropleth/polygons/search?${(0, utils_js_1.getSearchParams)(Object.assign(Object.assign(Object.assign({ language }, searchBounds), (query
|
|
6
|
+
async function searchSingleOrGroupedAreas(language, searchBounds, query, searchPoint) {
|
|
7
|
+
return (0, utils_js_1.request)(`/v1/choropleth/polygons/search?${(0, utils_js_1.getSearchParams)(Object.assign(Object.assign(Object.assign({ language }, searchBounds), (query && { query })), (searchPoint && { point: searchPoint })))}`).then(result => {
|
|
8
8
|
result.forEach(elem => (elem.boundingBox = JSON.parse(elem.boundingBox)));
|
|
9
9
|
return result;
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
async function
|
|
12
|
+
async function groupedAreaChildren(groupId, language) {
|
|
13
13
|
return (0, utils_js_1.request)(`/v1/choropleth/groups/${groupId}/children-optimized?${(0, utils_js_1.getSearchParams)({ language })}`);
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=choropleth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":";;AAsDA,
|
|
1
|
+
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":";;AAsDA,gEAoBC;AA0BD,kDAIC;AAxGD,0CAAuF;AAsDhF,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,YAA6B,EAC7B,KAAc,EACd,WAA4B;IAE5B,OAAO,IAAA,kBAAO,EACZ,kCAAkC,IAAA,0BAAe,8CAC/C,QAAQ,IACL,YAAY,GACZ,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,CAAC,GACpB,CAAC,WAAW,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,EAC1C,EAAE,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACd,MAAM,CAAC,OAAO,CACZ,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAgC,CAAY,CAAC,CAC1F,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC;AA0BM,KAAK,UAAU,mBAAmB,CAAC,OAAe,EAAE,QAAgB;IACzE,OAAO,IAAA,kBAAO,EACZ,yBAAyB,OAAO,uBAAuB,IAAA,0BAAe,EAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CACvF,CAAC;AACJ,CAAC"}
|
package/esm/api/choropleth.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import type { Polygon } from 'geojson';
|
|
2
|
-
export type
|
|
2
|
+
export type ApiSearchPoint = {
|
|
3
3
|
lat: number;
|
|
4
4
|
lng: number;
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type ApiSearchBounds = {
|
|
7
7
|
min_lat: number;
|
|
8
8
|
min_lng: number;
|
|
9
9
|
max_lat: number;
|
|
10
10
|
max_lng: number;
|
|
11
11
|
};
|
|
12
|
-
type
|
|
12
|
+
type SingleOrGroupedAreaBase = {
|
|
13
13
|
id: number;
|
|
14
14
|
title: string;
|
|
15
15
|
subtitle: string;
|
|
16
16
|
svgPreview: string;
|
|
17
17
|
boundingBox: Polygon;
|
|
18
18
|
};
|
|
19
|
-
type
|
|
19
|
+
type GroupedArea = SingleOrGroupedAreaBase & {
|
|
20
20
|
isGroup: true;
|
|
21
21
|
};
|
|
22
|
-
type SingleArea =
|
|
22
|
+
type SingleArea = SingleOrGroupedAreaBase & {
|
|
23
23
|
isGroup: false;
|
|
24
24
|
vectorSource: string;
|
|
25
25
|
sourceLayer: string;
|
|
26
26
|
featureId: number;
|
|
27
27
|
properties: Record<string, string>;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
30
|
-
export declare function
|
|
31
|
-
export type
|
|
29
|
+
export type SingleOrGroupedArea = SingleArea | GroupedArea;
|
|
30
|
+
export declare function searchSingleOrGroupedAreas(language: string, searchBounds: ApiSearchBounds, query?: string, searchPoint?: ApiSearchPoint): Promise<SingleOrGroupedArea[]>;
|
|
31
|
+
export type GroupedAreaChild = {
|
|
32
32
|
id: number;
|
|
33
33
|
title: string;
|
|
34
34
|
vectorSource: string;
|
|
@@ -36,6 +36,6 @@ export type AreaChild = {
|
|
|
36
36
|
featureId: number;
|
|
37
37
|
properties: Record<string, string>;
|
|
38
38
|
};
|
|
39
|
-
export declare function
|
|
39
|
+
export declare function groupedAreaChildren(groupId: number, language: string): Promise<GroupedAreaChild[]>;
|
|
40
40
|
export {};
|
|
41
41
|
//# sourceMappingURL=choropleth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAmBF,KAAK,uBAAuB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG,uBAAuB,GAAG;IAC3C,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,KAAK,UAAU,GAAG,uBAAuB,GAAG;IAC1C,OAAO,EAAE,KAAK,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,CAAC;AAE3D,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,eAAe,EAC7B,KAAK,CAAC,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,cAAc,GAC3B,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAehC;AAiBD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAIxG"}
|
package/esm/api/choropleth.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getSearchParams, request } from '../utils.js';
|
|
2
|
-
export async function
|
|
3
|
-
return request(`/v1/choropleth/polygons/search?${getSearchParams(Object.assign(Object.assign(Object.assign({ language }, searchBounds), (query
|
|
2
|
+
export async function searchSingleOrGroupedAreas(language, searchBounds, query, searchPoint) {
|
|
3
|
+
return request(`/v1/choropleth/polygons/search?${getSearchParams(Object.assign(Object.assign(Object.assign({ language }, searchBounds), (query && { query })), (searchPoint && { point: searchPoint })))}`).then(result => {
|
|
4
4
|
result.forEach(elem => (elem.boundingBox = JSON.parse(elem.boundingBox)));
|
|
5
5
|
return result;
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
|
-
export async function
|
|
8
|
+
export async function groupedAreaChildren(groupId, language) {
|
|
9
9
|
return request(`/v1/choropleth/groups/${groupId}/children-optimized?${getSearchParams({ language })}`);
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=choropleth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAsDvF,MAAM,CAAC,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAsDvF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,YAA6B,EAC7B,KAAc,EACd,WAA4B;IAE5B,OAAO,OAAO,CACZ,kCAAkC,eAAe,6CAC/C,QAAQ,IACL,YAAY,GACZ,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,CAAC,GACpB,CAAC,WAAW,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,EAC1C,EAAE,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACd,MAAM,CAAC,OAAO,CACZ,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAgC,CAAY,CAAC,CAC1F,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC;AA0BD,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAAe,EAAE,QAAgB;IACzE,OAAO,OAAO,CACZ,yBAAyB,OAAO,uBAAuB,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CACvF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/api/choropleth.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { type ApiError, type ApiSuccess, getSearchParams, request } from '../utils.js';
|
|
2
2
|
import type { Polygon } from 'geojson';
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type ApiSearchPoint = {
|
|
5
5
|
lat: number;
|
|
6
6
|
lng: number;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
export type
|
|
9
|
+
export type ApiSearchBounds = {
|
|
10
10
|
min_lat: number;
|
|
11
11
|
min_lng: number;
|
|
12
12
|
max_lat: number;
|
|
13
13
|
max_lng: number;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
type
|
|
17
|
-
| ({ data:
|
|
16
|
+
type ApiSingleOrGroupedAreaArray =
|
|
17
|
+
| ({ data: ApiSingleOrGroupedArea[] } & Omit<ApiSuccess, 'data'>)
|
|
18
18
|
| ApiError;
|
|
19
19
|
|
|
20
|
-
type
|
|
20
|
+
type ApiSingleOrGroupedArea = {
|
|
21
21
|
id: number;
|
|
22
22
|
title: string;
|
|
23
23
|
subtitle: string;
|
|
@@ -30,7 +30,7 @@ type ApiArea = {
|
|
|
30
30
|
properties: Record<string, string> | null;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
type
|
|
33
|
+
type SingleOrGroupedAreaBase = {
|
|
34
34
|
id: number;
|
|
35
35
|
title: string;
|
|
36
36
|
subtitle: string;
|
|
@@ -38,11 +38,11 @@ type AreaBase = {
|
|
|
38
38
|
boundingBox: Polygon;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
type
|
|
41
|
+
type GroupedArea = SingleOrGroupedAreaBase & {
|
|
42
42
|
isGroup: true;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
type SingleArea =
|
|
45
|
+
type SingleArea = SingleOrGroupedAreaBase & {
|
|
46
46
|
isGroup: false;
|
|
47
47
|
vectorSource: string;
|
|
48
48
|
sourceLayer: string;
|
|
@@ -50,19 +50,19 @@ type SingleArea = AreaBase & {
|
|
|
50
50
|
properties: Record<string, string>;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
export type
|
|
53
|
+
export type SingleOrGroupedArea = SingleArea | GroupedArea;
|
|
54
54
|
|
|
55
|
-
export async function
|
|
55
|
+
export async function searchSingleOrGroupedAreas(
|
|
56
56
|
language: string,
|
|
57
|
-
searchBounds:
|
|
57
|
+
searchBounds: ApiSearchBounds,
|
|
58
58
|
query?: string,
|
|
59
|
-
searchPoint?:
|
|
60
|
-
): Promise<
|
|
61
|
-
return request<
|
|
59
|
+
searchPoint?: ApiSearchPoint,
|
|
60
|
+
): Promise<SingleOrGroupedArea[]> {
|
|
61
|
+
return request<ApiSingleOrGroupedAreaArray, SingleOrGroupedArea>(
|
|
62
62
|
`/v1/choropleth/polygons/search?${getSearchParams({
|
|
63
63
|
language,
|
|
64
64
|
...searchBounds,
|
|
65
|
-
...(query
|
|
65
|
+
...(query && { query }),
|
|
66
66
|
...(searchPoint && { point: searchPoint }),
|
|
67
67
|
})}`,
|
|
68
68
|
).then(result => {
|
|
@@ -74,13 +74,13 @@ export async function search(
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
type
|
|
77
|
+
type ApiGroupedAreaChildArray =
|
|
78
78
|
| ({
|
|
79
|
-
data:
|
|
79
|
+
data: ApiGroupedAreaChild[];
|
|
80
80
|
} & Omit<ApiSuccess, 'data'>)
|
|
81
81
|
| ApiError;
|
|
82
82
|
|
|
83
|
-
type
|
|
83
|
+
type ApiGroupedAreaChild = {
|
|
84
84
|
id: number;
|
|
85
85
|
title: string;
|
|
86
86
|
vector_source: string;
|
|
@@ -89,7 +89,7 @@ type ApiChild = {
|
|
|
89
89
|
properties: Record<string, string>;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
export type
|
|
92
|
+
export type GroupedAreaChild = {
|
|
93
93
|
id: number;
|
|
94
94
|
title: string;
|
|
95
95
|
vectorSource: string;
|
|
@@ -98,8 +98,8 @@ export type AreaChild = {
|
|
|
98
98
|
properties: Record<string, string>;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export async function
|
|
102
|
-
return request<
|
|
101
|
+
export async function groupedAreaChildren(groupId: number, language: string): Promise<GroupedAreaChild[]> {
|
|
102
|
+
return request<ApiGroupedAreaChildArray, GroupedAreaChild>(
|
|
103
103
|
`/v1/choropleth/groups/${groupId}/children-optimized?${getSearchParams({ language })}`,
|
|
104
104
|
);
|
|
105
105
|
}
|