@carto/api-client 0.5.7-alpha.1 → 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 +8 -2
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +10 -3
- package/build/api-client.d.ts +10 -3
- package/build/api-client.js +6 -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 -2
- package/src/widget-sources/widget-remote-source.ts +3 -2
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,
|
|
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
|
}
|
|
@@ -6544,7 +6545,7 @@ var WidgetRemoteSource = class extends WidgetSource {
|
|
|
6544
6545
|
operation: operation2,
|
|
6545
6546
|
operationExp,
|
|
6546
6547
|
operationColumn: operationColumn || column,
|
|
6547
|
-
|
|
6548
|
+
othersThreshold
|
|
6548
6549
|
},
|
|
6549
6550
|
opts: { signal, headers: this.props.headers }
|
|
6550
6551
|
}).then((res) => normalizeObjectKeys(res.rows));
|
|
@@ -7941,6 +7942,10 @@ var WidgetTableSource = class extends WidgetRemoteSource {
|
|
|
7941
7942
|
}
|
|
7942
7943
|
};
|
|
7943
7944
|
|
|
7945
|
+
// src/widget-sources/constants.ts
|
|
7946
|
+
init_cjs_shims();
|
|
7947
|
+
var OTHERS_CATEGORY_NAME = "_carto_others";
|
|
7948
|
+
|
|
7944
7949
|
// src/sources/h3-query-source.ts
|
|
7945
7950
|
var h3QuerySource = async function(options) {
|
|
7946
7951
|
const {
|
|
@@ -10299,6 +10304,7 @@ function _getHexagonResolution(viewport, tileSize) {
|
|
|
10299
10304
|
FEATURE_GEOM_PROPERTY,
|
|
10300
10305
|
FilterType,
|
|
10301
10306
|
OPACITY_MAP,
|
|
10307
|
+
OTHERS_CATEGORY_NAME,
|
|
10302
10308
|
Provider,
|
|
10303
10309
|
SOURCE_DEFAULTS,
|
|
10304
10310
|
SchemaFieldType,
|