@carto/api-client 0.5.6 → 0.5.7-alpha.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/build/api-client.cjs +9 -2
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +10 -1
- package/build/api-client.d.ts +10 -1
- package/build/api-client.js +7 -2
- package/build/api-client.js.map +1 -1
- package/package.json +1 -1
- package/src/widget-sources/constants.ts +6 -0
- package/src/widget-sources/index.ts +1 -0
- package/src/widget-sources/types.ts +2 -0
- package/src/widget-sources/widget-remote-source.ts +3 -1
package/build/api-client.cjs
CHANGED
|
@@ -107,6 +107,7 @@ __export(src_exports, {
|
|
|
107
107
|
FEATURE_GEOM_PROPERTY: () => FEATURE_GEOM_PROPERTY,
|
|
108
108
|
FilterType: () => FilterType,
|
|
109
109
|
OPACITY_MAP: () => OPACITY_MAP,
|
|
110
|
+
OTHERS_CATEGORY_NAME: () => OTHERS_CATEGORY_NAME,
|
|
110
111
|
Provider: () => Provider,
|
|
111
112
|
SOURCE_DEFAULTS: () => SOURCE_DEFAULTS,
|
|
112
113
|
SchemaFieldType: () => SchemaFieldType,
|
|
@@ -6528,7 +6529,7 @@ var WidgetRemoteSource = class extends WidgetSource {
|
|
|
6528
6529
|
spatialFiltersMode,
|
|
6529
6530
|
...params
|
|
6530
6531
|
} = options;
|
|
6531
|
-
const { column, operation: operation2, operationColumn, operationExp } = params;
|
|
6532
|
+
const { column, operation: operation2, operationColumn, operationExp, othersThreshold } = params;
|
|
6532
6533
|
if (operation2 === AggregationTypes.Custom) {
|
|
6533
6534
|
assert2(operationExp, "operationExp is required for custom operation");
|
|
6534
6535
|
}
|
|
@@ -6543,7 +6544,8 @@ var WidgetRemoteSource = class extends WidgetSource {
|
|
|
6543
6544
|
column,
|
|
6544
6545
|
operation: operation2,
|
|
6545
6546
|
operationExp,
|
|
6546
|
-
operationColumn: operationColumn || column
|
|
6547
|
+
operationColumn: operationColumn || column,
|
|
6548
|
+
othersThreshold
|
|
6547
6549
|
},
|
|
6548
6550
|
opts: { signal, headers: this.props.headers }
|
|
6549
6551
|
}).then((res) => normalizeObjectKeys(res.rows));
|
|
@@ -7940,6 +7942,10 @@ var WidgetTableSource = class extends WidgetRemoteSource {
|
|
|
7940
7942
|
}
|
|
7941
7943
|
};
|
|
7942
7944
|
|
|
7945
|
+
// src/widget-sources/constants.ts
|
|
7946
|
+
init_cjs_shims();
|
|
7947
|
+
var OTHERS_CATEGORY_NAME = "_carto_others";
|
|
7948
|
+
|
|
7943
7949
|
// src/sources/h3-query-source.ts
|
|
7944
7950
|
var h3QuerySource = async function(options) {
|
|
7945
7951
|
const {
|
|
@@ -10298,6 +10304,7 @@ function _getHexagonResolution(viewport, tileSize) {
|
|
|
10298
10304
|
FEATURE_GEOM_PROPERTY,
|
|
10299
10305
|
FilterType,
|
|
10300
10306
|
OPACITY_MAP,
|
|
10307
|
+
OTHERS_CATEGORY_NAME,
|
|
10301
10308
|
Provider,
|
|
10302
10309
|
SOURCE_DEFAULTS,
|
|
10303
10310
|
SchemaFieldType,
|