@mapcreator/api 5.0.0-alpha.72 → 5.0.0-alpha.73
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/LICENSE +29 -29
- package/README.md +86 -86
- package/cjs/api/choropleth.d.ts +31 -227
- package/cjs/api/choropleth.d.ts.map +1 -1
- package/cjs/api/choropleth.js +21 -72
- package/cjs/api/choropleth.js.map +1 -1
- package/esm/api/choropleth.d.ts +31 -227
- package/esm/api/choropleth.d.ts.map +1 -1
- package/esm/api/choropleth.js +20 -66
- package/esm/api/choropleth.js.map +1 -1
- package/package.json +80 -80
- package/src/README.md +126 -126
- package/src/api/choropleth.ts +92 -388
package/esm/api/choropleth.d.ts
CHANGED
|
@@ -1,242 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
id: number;
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
previewPath: string | null;
|
|
10
|
-
previewJson: FeatureCollection | null;
|
|
11
|
-
vectorSetUrl: string;
|
|
12
|
-
sourceLayerName: string;
|
|
13
|
-
lngMin: number;
|
|
14
|
-
lngMax: number;
|
|
15
|
-
latMin: number;
|
|
16
|
-
latMax: number;
|
|
17
|
-
keys: string[];
|
|
18
|
-
properties: Array<Record<string, unknown>>;
|
|
1
|
+
import type { Polygon } from 'geojson';
|
|
2
|
+
import { RequireAtLeastOne } from 'type-fest';
|
|
3
|
+
export type ApiSearchPoint = {
|
|
4
|
+
lat: number;
|
|
5
|
+
lng: number;
|
|
19
6
|
};
|
|
20
|
-
export type
|
|
21
|
-
data: {
|
|
22
|
-
id: number;
|
|
23
|
-
name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
preview_path: string | null;
|
|
26
|
-
preview_json: FeatureCollection | null;
|
|
27
|
-
vector_set_url: string;
|
|
28
|
-
source_layer_name: string;
|
|
29
|
-
lng_min: number;
|
|
30
|
-
lng_max: number;
|
|
31
|
-
lat_min: number;
|
|
32
|
-
lat_max: number;
|
|
33
|
-
keys: string[];
|
|
34
|
-
properties: Array<Record<string, unknown>>;
|
|
35
|
-
} & ApiCommonData;
|
|
36
|
-
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
37
|
-
export type ApiVectorChoroplethData = Flatten<Exclude<ApiVectorChoropleth, ApiError>['data']>;
|
|
38
|
-
export declare function listVectorChoropleths(name: string): Promise<PartialVectorChoropleth[]>;
|
|
39
|
-
export declare function getVectorChoropleth(choroplethId: number): Promise<VectorChoropleth>;
|
|
40
|
-
export type SearchBounds = {
|
|
7
|
+
export type ApiSearchBounds = {
|
|
41
8
|
min_lat: number;
|
|
42
9
|
min_lng: number;
|
|
43
10
|
max_lat: number;
|
|
44
11
|
max_lng: number;
|
|
45
12
|
};
|
|
46
|
-
|
|
47
|
-
sml: string;
|
|
48
|
-
id: number;
|
|
49
|
-
vectorSource: string;
|
|
50
|
-
sourceLayer: string;
|
|
51
|
-
featureId: number;
|
|
52
|
-
svgPreview: string;
|
|
53
|
-
previewPath: string;
|
|
54
|
-
allowSingle: boolean;
|
|
55
|
-
properties: Record<string, unknown>;
|
|
56
|
-
boundingBox: Polygon;
|
|
57
|
-
restrictedOwnership: number[] | null;
|
|
58
|
-
linkId: number | null;
|
|
59
|
-
cloning: boolean;
|
|
60
|
-
nativeTranslation: {
|
|
61
|
-
polygonId: number;
|
|
62
|
-
name: string;
|
|
63
|
-
};
|
|
64
|
-
englishTranslation?: {
|
|
65
|
-
polygonId: number;
|
|
66
|
-
name: string;
|
|
67
|
-
};
|
|
68
|
-
translations?: Array<{
|
|
69
|
-
polygonId: number;
|
|
70
|
-
language: string;
|
|
71
|
-
name: string;
|
|
72
|
-
}>;
|
|
73
|
-
parentGroups: GroupChoropleth[];
|
|
74
|
-
};
|
|
75
|
-
export type ApiPolygonChoropleth = {
|
|
76
|
-
data: {
|
|
77
|
-
sml: string;
|
|
78
|
-
id: number;
|
|
79
|
-
vector_source: string;
|
|
80
|
-
source_layer: string;
|
|
81
|
-
feature_id: number;
|
|
82
|
-
svg_preview: string;
|
|
83
|
-
preview_path: string;
|
|
84
|
-
allow_single: boolean;
|
|
85
|
-
properties: Record<string, unknown>;
|
|
86
|
-
bounding_box: Polygon;
|
|
87
|
-
restricted_ownership: number[] | null;
|
|
88
|
-
link_id: number | null;
|
|
89
|
-
cloning: boolean;
|
|
90
|
-
native_translation: {
|
|
91
|
-
polygon_id: number;
|
|
92
|
-
name: string;
|
|
93
|
-
};
|
|
94
|
-
english_translation?: {
|
|
95
|
-
polygon_id: number;
|
|
96
|
-
name: string;
|
|
97
|
-
};
|
|
98
|
-
translations?: Array<{
|
|
99
|
-
polygon_id: number;
|
|
100
|
-
language: string;
|
|
101
|
-
name: string;
|
|
102
|
-
}>;
|
|
103
|
-
parent_groups: ApiGroupChoroplethData[];
|
|
104
|
-
} & ApiCommonData;
|
|
105
|
-
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
106
|
-
export type ApiPolygonChoroplethData = Flatten<Exclude<ApiPolygonChoropleth, ApiError>['data']>;
|
|
107
|
-
export declare function listPolygonChoropleths(name: string, languages: string[], searchBounds?: SearchBounds, withParentGroups?: boolean): Promise<PolygonChoropleth[]>;
|
|
108
|
-
export type GroupChoropleth = {
|
|
13
|
+
type SingleOrGroupedAreaBase = {
|
|
109
14
|
id: number;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
childrenCount: number;
|
|
113
|
-
sml?: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle: string;
|
|
114
17
|
svgPreview: string;
|
|
115
|
-
previewPath: string;
|
|
116
|
-
uniqueProperties: string[];
|
|
117
18
|
boundingBox: Polygon;
|
|
118
|
-
partialProperties: string[];
|
|
119
|
-
restrictedOwnership: number[] | null;
|
|
120
|
-
linkId: number | null;
|
|
121
|
-
cloning: boolean;
|
|
122
|
-
laravelThroughKey?: number;
|
|
123
|
-
nativeParentTranslation: {
|
|
124
|
-
polygonId: number;
|
|
125
|
-
name: string;
|
|
126
|
-
laravelThroughKey: number;
|
|
127
|
-
};
|
|
128
|
-
nativeRelationTranslation: {
|
|
129
|
-
relationId: number;
|
|
130
|
-
name: string;
|
|
131
|
-
laravelThroughKey: number;
|
|
132
|
-
};
|
|
133
|
-
englishParentTranslation?: {
|
|
134
|
-
polygonId: number;
|
|
135
|
-
name: string;
|
|
136
|
-
laravelThroughKey: number;
|
|
137
|
-
};
|
|
138
|
-
englishRelationTranslation?: {
|
|
139
|
-
relationId: number;
|
|
140
|
-
name: string;
|
|
141
|
-
laravelThroughKey: number;
|
|
142
|
-
};
|
|
143
|
-
parentTranslations?: Array<{
|
|
144
|
-
polygonId: number;
|
|
145
|
-
name: string;
|
|
146
|
-
language: string;
|
|
147
|
-
laravelThroughKey: number;
|
|
148
|
-
}>;
|
|
149
|
-
relationTranslations?: Array<{
|
|
150
|
-
relationId: number;
|
|
151
|
-
name: string;
|
|
152
|
-
language: string;
|
|
153
|
-
laravelThroughKey: number;
|
|
154
|
-
}>;
|
|
155
19
|
};
|
|
156
|
-
export type
|
|
157
|
-
|
|
158
|
-
id: number;
|
|
159
|
-
polygon_id: number;
|
|
160
|
-
relation_id: number;
|
|
161
|
-
children_count: number;
|
|
162
|
-
sml?: number;
|
|
163
|
-
svg_preview: string;
|
|
164
|
-
preview_path: string;
|
|
165
|
-
unique_properties: string[];
|
|
166
|
-
bounding_box: Polygon;
|
|
167
|
-
partial_properties: string[];
|
|
168
|
-
restricted_ownership: number[] | null;
|
|
169
|
-
link_id: number | null;
|
|
170
|
-
cloning: boolean;
|
|
171
|
-
laravel_through_key?: number;
|
|
172
|
-
native_parent_translation: {
|
|
173
|
-
polygon_id: number;
|
|
174
|
-
name: string;
|
|
175
|
-
laravel_through_key: number;
|
|
176
|
-
};
|
|
177
|
-
native_relation_translation: {
|
|
178
|
-
relation_id: number;
|
|
179
|
-
name: string;
|
|
180
|
-
laravel_through_key: number;
|
|
181
|
-
};
|
|
182
|
-
english_parent_translation?: {
|
|
183
|
-
polygon_id: number;
|
|
184
|
-
name: string;
|
|
185
|
-
laravel_through_key: number;
|
|
186
|
-
};
|
|
187
|
-
english_relation_translation?: {
|
|
188
|
-
relation_id: number;
|
|
189
|
-
name: string;
|
|
190
|
-
laravel_through_key: number;
|
|
191
|
-
};
|
|
192
|
-
parent_translations?: Array<{
|
|
193
|
-
polygon_id: number;
|
|
194
|
-
name: string;
|
|
195
|
-
language: string;
|
|
196
|
-
laravel_through_key: number;
|
|
197
|
-
}>;
|
|
198
|
-
relation_translations?: Array<{
|
|
199
|
-
relation_id: number;
|
|
200
|
-
name: string;
|
|
201
|
-
language: string;
|
|
202
|
-
laravel_through_key: number;
|
|
203
|
-
}>;
|
|
204
|
-
} & ApiCommonData;
|
|
205
|
-
} & Omit<ApiSuccess, 'data'> | ApiError;
|
|
206
|
-
export type ApiGroupChoroplethData = Flatten<Exclude<ApiGroupChoropleth, ApiError>['data']>;
|
|
207
|
-
export declare function listGroupChoropleths(name: string, languages: string[], searchBounds?: SearchBounds): Promise<GroupChoropleth[]>;
|
|
208
|
-
export declare function listChildrenGroupChoropleths(groupId: number, languages: string[]): Promise<PolygonChoropleth[]>;
|
|
209
|
-
export type MatchedGroup = {
|
|
210
|
-
id: number;
|
|
211
|
-
sml: number;
|
|
212
|
-
childrenCount: number;
|
|
213
|
-
matchField: string;
|
|
214
|
-
property: string;
|
|
215
|
-
name: string;
|
|
20
|
+
export type GroupedArea = SingleOrGroupedAreaBase & {
|
|
21
|
+
isGroup: true;
|
|
216
22
|
};
|
|
217
|
-
export type
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
export declare function
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
inputName: string;
|
|
232
|
-
};
|
|
233
|
-
export type ApiBoundPolygon = {
|
|
234
|
-
index: number;
|
|
23
|
+
export type SingleArea = SingleOrGroupedAreaBase & {
|
|
24
|
+
isGroup: false;
|
|
25
|
+
vectorSource: string;
|
|
26
|
+
sourceLayer: string;
|
|
27
|
+
featureId: number;
|
|
28
|
+
properties: Record<string, string>;
|
|
29
|
+
};
|
|
30
|
+
export type SingleOrGroupedArea = SingleArea | GroupedArea;
|
|
31
|
+
export declare function searchSingleOrGroupedAreas(language: string, search: RequireAtLeastOne<{
|
|
32
|
+
searchBounds?: ApiSearchBounds;
|
|
33
|
+
query?: string;
|
|
34
|
+
searchPoint?: ApiSearchPoint;
|
|
35
|
+
}>, mode?: 'polygon' | 'group' | 'both'): Promise<SingleOrGroupedArea[]>;
|
|
36
|
+
export type GroupedAreaChild = {
|
|
235
37
|
id: number;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
38
|
+
title: string;
|
|
39
|
+
vectorSource: string;
|
|
40
|
+
sourceLayer: string;
|
|
41
|
+
featureId: number;
|
|
42
|
+
properties: Record<string, string>;
|
|
239
43
|
};
|
|
240
|
-
export declare function
|
|
44
|
+
export declare function groupedAreaChildren(groupId: number, language: string): Promise<GroupedAreaChild[]>;
|
|
241
45
|
export {};
|
|
242
46
|
//# sourceMappingURL=choropleth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"choropleth.d.ts","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,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;AAGF,MAAM,MAAM,WAAW,GAAG,uBAAuB,GAAG;IAClD,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG,uBAAuB,GAAG;IACjD,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,MAAM,EAAE,iBAAiB,CAAC;IACxB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B,CAAC,EACF,IAAI,GAAE,SAAS,GAAG,OAAO,GAAG,MAAe,GAC1C,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAwBhC;AAeD,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,CAYxG"}
|
package/esm/api/choropleth.js
CHANGED
|
@@ -1,70 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return error.data;
|
|
15
|
-
}
|
|
16
|
-
throw error;
|
|
1
|
+
import { getSearchParams, request } from '../utils.js';
|
|
2
|
+
export async function searchSingleOrGroupedAreas(language, search, mode = 'both') {
|
|
3
|
+
/**
|
|
4
|
+
* TODO When SAGA search on click is implemented, remove mode and make searchBounds required
|
|
5
|
+
*/
|
|
6
|
+
return request(`/v1/choropleth/polygons/search?${getSearchParams(Object.assign(Object.assign(Object.assign(Object.assign({ language }, search.searchBounds), (search.query && { query: search.query })), (search.searchPoint && { point: search.searchPoint })), { mode }))}`).then(result => {
|
|
7
|
+
result.forEach(elem => {
|
|
8
|
+
elem.boundingBox = JSON.parse(elem.boundingBox);
|
|
9
|
+
if (!elem.isGroup) {
|
|
10
|
+
elem.properties = JSON.parse(elem.properties);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
17
14
|
});
|
|
18
15
|
}
|
|
19
|
-
export async function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const path = `${pathname}?${query}`;
|
|
27
|
-
// Only request first 50 results
|
|
28
|
-
const headers = Object.assign({}, defaultListHeader);
|
|
29
|
-
const options = { withMeta: true };
|
|
30
|
-
return request(path, null, headers, options)
|
|
31
|
-
.catch((error) => {
|
|
32
|
-
if (error instanceof APIMeta) {
|
|
33
|
-
return error.data;
|
|
34
|
-
}
|
|
35
|
-
throw error;
|
|
36
|
-
})
|
|
37
|
-
.then(result => result.map(processPolygonData));
|
|
38
|
-
}
|
|
39
|
-
export async function listGroupChoropleths(name, languages, searchBounds) {
|
|
40
|
-
const pathname = `/v1/choropleth/groups`;
|
|
41
|
-
const query = getSearchParams(Object.assign({ search: { name }, languages }, searchBounds));
|
|
42
|
-
const path = `${pathname}?${query}`;
|
|
43
|
-
// Only request first 50 results
|
|
44
|
-
const headers = Object.assign({}, defaultListHeader);
|
|
45
|
-
const options = { withMeta: true };
|
|
46
|
-
return request(path, null, headers, options)
|
|
47
|
-
.catch((error) => {
|
|
48
|
-
if (error instanceof APIMeta) {
|
|
49
|
-
return error.data;
|
|
50
|
-
}
|
|
51
|
-
throw error;
|
|
52
|
-
})
|
|
53
|
-
.then(result => result.map(processGroupData));
|
|
54
|
-
}
|
|
55
|
-
export async function listChildrenGroupChoropleths(groupId, languages) {
|
|
56
|
-
const pathname = `/v1/choropleth/groups/${groupId}/children`;
|
|
57
|
-
const query = getSearchParams({ languages });
|
|
58
|
-
const path = `${pathname}?${query}`;
|
|
59
|
-
return request(path).then(polygons => polygons.map(processPolygonData));
|
|
60
|
-
}
|
|
61
|
-
export async function getGroupsByDataSample(sample, language) {
|
|
62
|
-
const path = `/v1/choropleth/groups/sample`;
|
|
63
|
-
return request(path, { sample, language });
|
|
64
|
-
}
|
|
65
|
-
export async function getBoundPolygons(groupId, property, data, language) {
|
|
66
|
-
const path = `/v1/choropleth/groups/bind`;
|
|
67
|
-
const postBody = { group_id: groupId, property, data, language };
|
|
68
|
-
return request(path, postBody);
|
|
16
|
+
export async function groupedAreaChildren(groupId, language) {
|
|
17
|
+
return request(`/v1/choropleth/groups/${groupId}/children-optimized?${getSearchParams({ language })}`).then(result => {
|
|
18
|
+
result.forEach(elem => {
|
|
19
|
+
elem.properties = JSON.parse(elem.properties);
|
|
20
|
+
});
|
|
21
|
+
return result;
|
|
22
|
+
});
|
|
69
23
|
}
|
|
70
24
|
//# sourceMappingURL=choropleth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"choropleth.js","sourceRoot":"","sources":["../../src/api/choropleth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,eAAe,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAyDvF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,MAIE,EACF,OAAqC,MAAM;IAE3C;;OAEG;IACH,OAAO,OAAO,CACZ,kCAAkC,eAAe,2DAC/C,QAAQ,IACL,MAAM,CAAC,YAAY,GACnB,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,GACzC,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,KACxD,IAAI,IACJ,EAAE,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACd,MAAM,CAAC,OAAO,CACZ,IAAI,CAAC,EAAE;YACL,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAgC,CAAY,CAAC;YAChF,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAA+B,CAA2B,CAAC;YAC/F,CAAC;QACH,CAAC,CACF,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC;AAwBD,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,IAAI,CAAC,MAAM,CAAC,EAAE;QACd,MAAM,CAAC,OAAO,CACZ,IAAI,CAAC,EAAE;YACL,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAA+B,CAA2B,CAAC;QAC/F,CAAC,CACF,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mapcreator/api",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
4
|
-
"description": "Mapcreator JavaScript API",
|
|
5
|
-
"license": "BSD-3-Clause",
|
|
6
|
-
"main": "./cjs/index.js",
|
|
7
|
-
"types": "./cjs/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./esm/index.d.ts",
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./oauth": {
|
|
15
|
-
"types": "./esm/oauth.d.ts",
|
|
16
|
-
"import": "./esm/oauth.js",
|
|
17
|
-
"require": "./cjs/oauth.js"
|
|
18
|
-
},
|
|
19
|
-
"./oauth.js": {
|
|
20
|
-
"types": "./esm/oauth.d.ts",
|
|
21
|
-
"import": "./esm/oauth.js",
|
|
22
|
-
"require": "./cjs/oauth.js"
|
|
23
|
-
},
|
|
24
|
-
"./utils": {
|
|
25
|
-
"types": "./esm/utils.d.ts",
|
|
26
|
-
"import": "./esm/utils.js",
|
|
27
|
-
"require": "./cjs/utils.js"
|
|
28
|
-
},
|
|
29
|
-
"./utils.js": {
|
|
30
|
-
"types": "./esm/utils.d.ts",
|
|
31
|
-
"import": "./esm/utils.js",
|
|
32
|
-
"require": "./cjs/utils.js"
|
|
33
|
-
},
|
|
34
|
-
"./package.json": "./package.json",
|
|
35
|
-
"./*": {
|
|
36
|
-
"types": "./esm/api/*.d.ts",
|
|
37
|
-
"import": "./esm/api/*.js",
|
|
38
|
-
"require": "./cjs/api/*.js"
|
|
39
|
-
},
|
|
40
|
-
"./*.js": {
|
|
41
|
-
"types": "./esm/api/*.d.ts",
|
|
42
|
-
"import": "./esm/api/*.js",
|
|
43
|
-
"require": "./cjs/api/*.js"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "tsc --outDir esm && tsc -m commonjs --outDir cjs",
|
|
48
|
-
"clean": "npx rimraf esm/ cjs/",
|
|
49
|
-
"lint": "eslint --ext .ts src",
|
|
50
|
-
"prepublishOnly": "npm run lint && npm run clean && npm run build",
|
|
51
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
52
|
-
},
|
|
53
|
-
"repository": {
|
|
54
|
-
"type": "git",
|
|
55
|
-
"url": "git+https://gitlab.com/mapcreator/api-wrapper.git"
|
|
56
|
-
},
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"registry": "https://registry.npmjs.org/"
|
|
59
|
-
},
|
|
60
|
-
"files": [
|
|
61
|
-
"cjs",
|
|
62
|
-
"esm",
|
|
63
|
-
"src"
|
|
64
|
-
],
|
|
65
|
-
"bugs": {
|
|
66
|
-
"url": "https://gitlab.com/mapcreator/api-wrapper/issues"
|
|
67
|
-
},
|
|
68
|
-
"homepage": "https://gitlab.com/mapcreator/api-wrapper#readme",
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@types/geojson": "^7946.0.14",
|
|
71
|
-
"type-fest": "^4.10"
|
|
72
|
-
},
|
|
73
|
-
"devDependencies": {
|
|
74
|
-
"@stylistic/eslint-plugin": "~1.5",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "~6.15",
|
|
76
|
-
"@typescript-eslint/parser": "~6.15",
|
|
77
|
-
"eslint": "~8.57",
|
|
78
|
-
"typescript": "~5.8.3"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mapcreator/api",
|
|
3
|
+
"version": "5.0.0-alpha.73",
|
|
4
|
+
"description": "Mapcreator JavaScript API",
|
|
5
|
+
"license": "BSD-3-Clause",
|
|
6
|
+
"main": "./cjs/index.js",
|
|
7
|
+
"types": "./cjs/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./esm/index.d.ts",
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./oauth": {
|
|
15
|
+
"types": "./esm/oauth.d.ts",
|
|
16
|
+
"import": "./esm/oauth.js",
|
|
17
|
+
"require": "./cjs/oauth.js"
|
|
18
|
+
},
|
|
19
|
+
"./oauth.js": {
|
|
20
|
+
"types": "./esm/oauth.d.ts",
|
|
21
|
+
"import": "./esm/oauth.js",
|
|
22
|
+
"require": "./cjs/oauth.js"
|
|
23
|
+
},
|
|
24
|
+
"./utils": {
|
|
25
|
+
"types": "./esm/utils.d.ts",
|
|
26
|
+
"import": "./esm/utils.js",
|
|
27
|
+
"require": "./cjs/utils.js"
|
|
28
|
+
},
|
|
29
|
+
"./utils.js": {
|
|
30
|
+
"types": "./esm/utils.d.ts",
|
|
31
|
+
"import": "./esm/utils.js",
|
|
32
|
+
"require": "./cjs/utils.js"
|
|
33
|
+
},
|
|
34
|
+
"./package.json": "./package.json",
|
|
35
|
+
"./*": {
|
|
36
|
+
"types": "./esm/api/*.d.ts",
|
|
37
|
+
"import": "./esm/api/*.js",
|
|
38
|
+
"require": "./cjs/api/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./*.js": {
|
|
41
|
+
"types": "./esm/api/*.d.ts",
|
|
42
|
+
"import": "./esm/api/*.js",
|
|
43
|
+
"require": "./cjs/api/*.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc --outDir esm && tsc -m commonjs --outDir cjs",
|
|
48
|
+
"clean": "npx rimraf esm/ cjs/",
|
|
49
|
+
"lint": "eslint --ext .ts src",
|
|
50
|
+
"prepublishOnly": "npm run lint && npm run clean && npm run build",
|
|
51
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://gitlab.com/mapcreator/api-wrapper.git"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org/"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"cjs",
|
|
62
|
+
"esm",
|
|
63
|
+
"src"
|
|
64
|
+
],
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://gitlab.com/mapcreator/api-wrapper/issues"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://gitlab.com/mapcreator/api-wrapper#readme",
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@types/geojson": "^7946.0.14",
|
|
71
|
+
"type-fest": "^4.10"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@stylistic/eslint-plugin": "~1.5",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "~6.15",
|
|
76
|
+
"@typescript-eslint/parser": "~6.15",
|
|
77
|
+
"eslint": "~8.57",
|
|
78
|
+
"typescript": "~5.8.3"
|
|
79
|
+
}
|
|
80
|
+
}
|