@carto/api-client 0.5.4-alpha.1 → 0.5.5-alpha.0
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/CHANGELOG.md +10 -0
- package/build/api-client.cjs +13 -12
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +6 -1
- package/build/api-client.d.ts +6 -1
- package/build/api-client.js +12 -12
- package/build/api-client.js.map +1 -1
- package/package.json +2 -2
- package/src/api/index.ts +4 -1
- package/src/api/request-with-parameters.ts +8 -0
- package/src/index.ts +1 -0
- package/src/models/model.ts +9 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## 0.5
|
|
4
4
|
|
|
5
|
+
### 0.5.4
|
|
6
|
+
|
|
7
|
+
- fix(widgets): Fix support for 'storeGeometry' on tileset widgets (#181)
|
|
8
|
+
- fix(widgets): Fix inference of 'spatialDataType' for dynamic point aggregation sources (#178)
|
|
9
|
+
|
|
10
|
+
### 0.5.3
|
|
11
|
+
|
|
12
|
+
- chore(deps): Unpin h3-js dependency (#176)
|
|
13
|
+
- chore(types): Export missing types used in public API (#159)
|
|
14
|
+
|
|
5
15
|
### 0.5.2
|
|
6
16
|
|
|
7
17
|
- feat(filters): Export getApplicableFilters (#162)
|
package/build/api-client.cjs
CHANGED
|
@@ -137,6 +137,7 @@ __export(src_exports, {
|
|
|
137
137
|
buildStatsUrl: () => buildStatsUrl,
|
|
138
138
|
calculateClusterRadius: () => calculateClusterRadius,
|
|
139
139
|
calculateClusterTextFontSize: () => calculateClusterTextFontSize,
|
|
140
|
+
clearDefaultRequestCache: () => clearDefaultRequestCache,
|
|
140
141
|
clearFilters: () => clearFilters,
|
|
141
142
|
configureSource: () => configureSource,
|
|
142
143
|
createPolygonSpatialFilter: () => createPolygonSpatialFilter,
|
|
@@ -6117,6 +6118,9 @@ function excludeURLParameters(baseUrlString, parameters) {
|
|
|
6117
6118
|
}
|
|
6118
6119
|
return baseUrl.toString();
|
|
6119
6120
|
}
|
|
6121
|
+
function clearDefaultRequestCache() {
|
|
6122
|
+
DEFAULT_REQUEST_CACHE.clear();
|
|
6123
|
+
}
|
|
6120
6124
|
|
|
6121
6125
|
// src/sources/base-source.ts
|
|
6122
6126
|
var SOURCE_DEFAULTS = {
|
|
@@ -6364,6 +6368,7 @@ function executeModel(props) {
|
|
|
6364
6368
|
filters,
|
|
6365
6369
|
filtersLogicalOperator = "and",
|
|
6366
6370
|
spatialDataType = "geo",
|
|
6371
|
+
spatialDataColumn = DEFAULT_GEO_COLUMN,
|
|
6367
6372
|
spatialFiltersMode = "intersects"
|
|
6368
6373
|
} = source;
|
|
6369
6374
|
const queryParams = {
|
|
@@ -6375,18 +6380,13 @@ function executeModel(props) {
|
|
|
6375
6380
|
filters,
|
|
6376
6381
|
filtersLogicalOperator
|
|
6377
6382
|
};
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
queryParams.spatialDataColumn = spatialDataColumn;
|
|
6386
|
-
queryParams.spatialDataType = spatialDataType;
|
|
6387
|
-
}
|
|
6388
|
-
if (spatialDataType !== "geo") {
|
|
6389
|
-
queryParams.spatialFiltersMode = spatialFiltersMode;
|
|
6383
|
+
queryParams.spatialDataType = spatialDataType;
|
|
6384
|
+
queryParams.spatialDataColumn = spatialDataColumn;
|
|
6385
|
+
if (source.spatialFilter) {
|
|
6386
|
+
queryParams.spatialFilters = { [spatialDataColumn]: source.spatialFilter };
|
|
6387
|
+
if (spatialDataType !== "geo") {
|
|
6388
|
+
queryParams.spatialFiltersMode = spatialFiltersMode;
|
|
6389
|
+
}
|
|
6390
6390
|
}
|
|
6391
6391
|
const urlWithSearchParams = url + "?" + objectToURLSearchParams(queryParams).toString();
|
|
6392
6392
|
const isGet = urlWithSearchParams.length <= REQUEST_GET_MAX_URL_LENGTH;
|
|
@@ -10478,6 +10478,7 @@ function _getHexagonResolution(viewport, tileSize) {
|
|
|
10478
10478
|
buildStatsUrl,
|
|
10479
10479
|
calculateClusterRadius,
|
|
10480
10480
|
calculateClusterTextFontSize,
|
|
10481
|
+
clearDefaultRequestCache,
|
|
10481
10482
|
clearFilters,
|
|
10482
10483
|
configureSource,
|
|
10483
10484
|
createPolygonSpatialFilter,
|