@carto/api-client 0.5.7-alpha.2 → 0.5.7-alpha.5

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.
@@ -1193,8 +1193,6 @@ interface CategoryRequestOptions extends BaseRequestOptions {
1193
1193
  operationColumn?: string;
1194
1194
  /** Local only. */
1195
1195
  joinOperation?: 'count' | 'avg' | 'min' | 'max' | 'sum';
1196
- /** Calculate `_carto_others` category for all categories after first N (N is threshold). Remote only. */
1197
- othersThreshold?: boolean;
1198
1196
  }
1199
1197
  /**
1200
1198
  * Options for {@link WidgetRemoteSource#getFeatures}.
@@ -1736,13 +1734,6 @@ declare class WidgetTableSource extends WidgetRemoteSource<LayerTableSourceOptio
1736
1734
  protected getModelSource(filters: Filters | undefined, filterOwner?: string): ModelSource;
1737
1735
  }
1738
1736
 
1739
- /**
1740
- * Name of the category that represents the "Others" category.
1741
- *
1742
- * See `WidgetSource.getCategories` for more information.
1743
- */
1744
- declare const OTHERS_CATEGORY_NAME = "_carto_others";
1745
-
1746
1737
  type H3QuerySourceOptions = SourceOptions & QuerySourceOptions & AggregationOptions & FilterOptions;
1747
1738
  type H3QuerySourceResponse = TilejsonResult & WidgetQuerySourceResult;
1748
1739
  declare const h3QuerySource: (options: H3QuerySourceOptions) => Promise<H3QuerySourceResponse>;
@@ -1880,6 +1871,24 @@ declare function makeIntervalComplete(intervals: FilterInterval[]): FilterInterv
1880
1871
  */
1881
1872
  declare function transformToTileCoords<T extends Geometry>(geometry: T, bbox: BBox): T;
1882
1873
 
1874
+ /**
1875
+ * Custom Set-like interface optimized for BigUint64 cell IDs. Unlike Set,
1876
+ * limited in most JavaScript runtimes to ~16M entries, this implementation
1877
+ * can support up to `n = 2^32 - 1` (4 billion) entries, with lookups in
1878
+ * amortized O(1) time.
1879
+ */
1880
+ declare class CellSet {
1881
+ /** List of cells stored by the set. Stored by reference, without copying. */
1882
+ private cells;
1883
+ /** DataView representing a single cell ID. Pre-allocated to reduce memory during queries. */
1884
+ private cellView;
1885
+ /** Hash table, mapping a hash index (computed) to an index in the 'cells' array. */
1886
+ private hashTable;
1887
+ constructor(cells: bigint[]);
1888
+ has(cell: bigint): boolean;
1889
+ private hashLookup;
1890
+ }
1891
+
1883
1892
  type FetchDatasetOptions = {
1884
1893
  accessToken: string;
1885
1894
  apiBaseUrl: string;
@@ -1912,4 +1921,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
1912
1921
  */
1913
1922
  declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
1914
1923
 
1915
- export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CartoAPIError, type CategoryRequestOptions, type CategoryResponse, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, _buildFeatureFilter, domainFromValues as _domainFromValues, _getHexagonResolution, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, clearDefaultRequestCache, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
1924
+ export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CartoAPIError, type CategoryRequestOptions, type CategoryResponse, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, _buildFeatureFilter, domainFromValues as _domainFromValues, _getHexagonResolution, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, clearDefaultRequestCache, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
@@ -1193,8 +1193,6 @@ interface CategoryRequestOptions extends BaseRequestOptions {
1193
1193
  operationColumn?: string;
1194
1194
  /** Local only. */
1195
1195
  joinOperation?: 'count' | 'avg' | 'min' | 'max' | 'sum';
1196
- /** Calculate `_carto_others` category for all categories after first N (N is threshold). Remote only. */
1197
- othersThreshold?: boolean;
1198
1196
  }
1199
1197
  /**
1200
1198
  * Options for {@link WidgetRemoteSource#getFeatures}.
@@ -1736,13 +1734,6 @@ declare class WidgetTableSource extends WidgetRemoteSource<LayerTableSourceOptio
1736
1734
  protected getModelSource(filters: Filters | undefined, filterOwner?: string): ModelSource;
1737
1735
  }
1738
1736
 
1739
- /**
1740
- * Name of the category that represents the "Others" category.
1741
- *
1742
- * See `WidgetSource.getCategories` for more information.
1743
- */
1744
- declare const OTHERS_CATEGORY_NAME = "_carto_others";
1745
-
1746
1737
  type H3QuerySourceOptions = SourceOptions & QuerySourceOptions & AggregationOptions & FilterOptions;
1747
1738
  type H3QuerySourceResponse = TilejsonResult & WidgetQuerySourceResult;
1748
1739
  declare const h3QuerySource: (options: H3QuerySourceOptions) => Promise<H3QuerySourceResponse>;
@@ -1880,6 +1871,24 @@ declare function makeIntervalComplete(intervals: FilterInterval[]): FilterInterv
1880
1871
  */
1881
1872
  declare function transformToTileCoords<T extends Geometry>(geometry: T, bbox: BBox): T;
1882
1873
 
1874
+ /**
1875
+ * Custom Set-like interface optimized for BigUint64 cell IDs. Unlike Set,
1876
+ * limited in most JavaScript runtimes to ~16M entries, this implementation
1877
+ * can support up to `n = 2^32 - 1` (4 billion) entries, with lookups in
1878
+ * amortized O(1) time.
1879
+ */
1880
+ declare class CellSet {
1881
+ /** List of cells stored by the set. Stored by reference, without copying. */
1882
+ private cells;
1883
+ /** DataView representing a single cell ID. Pre-allocated to reduce memory during queries. */
1884
+ private cellView;
1885
+ /** Hash table, mapping a hash index (computed) to an index in the 'cells' array. */
1886
+ private hashTable;
1887
+ constructor(cells: bigint[]);
1888
+ has(cell: bigint): boolean;
1889
+ private hashLookup;
1890
+ }
1891
+
1883
1892
  type FetchDatasetOptions = {
1884
1893
  accessToken: string;
1885
1894
  apiBaseUrl: string;
@@ -1912,4 +1921,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
1912
1921
  */
1913
1922
  declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
1914
1923
 
1915
- export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CartoAPIError, type CategoryRequestOptions, type CategoryResponse, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, _buildFeatureFilter, domainFromValues as _domainFromValues, _getHexagonResolution, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, clearDefaultRequestCache, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
1924
+ export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CartoAPIError, type CategoryRequestOptions, type CategoryResponse, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, _buildFeatureFilter, domainFromValues as _domainFromValues, _getHexagonResolution, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, clearDefaultRequestCache, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
@@ -5438,6 +5438,64 @@ import {
5438
5438
  geometryToCells as geometryToCells2,
5439
5439
  getResolution as getResolution2
5440
5440
  } from "quadbin";
5441
+
5442
+ // src/utils/CellSet.ts
5443
+ var EMPTY_U32 = 2 ** 32 - 1;
5444
+ var CellSet = class {
5445
+ constructor(cells) {
5446
+ /** List of cells stored by the set. Stored by reference, without copying. */
5447
+ __publicField(this, "cells");
5448
+ /** DataView representing a single cell ID. Pre-allocated to reduce memory during queries. */
5449
+ __publicField(this, "cellView", new DataView(new ArrayBuffer(8)));
5450
+ /** Hash table, mapping a hash index (computed) to an index in the 'cells' array. */
5451
+ __publicField(this, "hashTable");
5452
+ this.cells = cells;
5453
+ this.hashTable = new Uint32Array(hashBuckets(cells.length)).fill(EMPTY_U32);
5454
+ for (let cellIndex = 0; cellIndex < cells.length; cellIndex++) {
5455
+ this.hashTable[this.hashLookup(cells[cellIndex])] = cellIndex;
5456
+ }
5457
+ }
5458
+ has(cell) {
5459
+ const hashIndex = this.hashLookup(cell);
5460
+ return this.hashTable[hashIndex] !== EMPTY_U32;
5461
+ }
5462
+ hashLookup(cell) {
5463
+ this.cellView.setBigUint64(0, cell);
5464
+ const hashval = hash(this.cellView);
5465
+ const hashmod = this.hashTable.length - 1;
5466
+ let bucket = hashval & hashmod;
5467
+ for (let probe = 0; probe <= hashmod; probe++) {
5468
+ const cellIndex = this.hashTable[bucket];
5469
+ if (cellIndex === EMPTY_U32 || cell === this.cells[cellIndex]) {
5470
+ return bucket;
5471
+ }
5472
+ bucket = bucket + probe + 1 & hashmod;
5473
+ }
5474
+ throw new Error("Hash table full.");
5475
+ }
5476
+ };
5477
+ function hash(view, h = 0) {
5478
+ const m = 1540483477;
5479
+ const r = 24;
5480
+ for (let i = 0, il = view.byteLength / 4; i < il; i++) {
5481
+ let k = view.getUint32(i * 4);
5482
+ k = Math.imul(k, m) >>> 0;
5483
+ k = (k ^ k >> r) >>> 0;
5484
+ k = Math.imul(k, m) >>> 0;
5485
+ h = Math.imul(h, m) >>> 0;
5486
+ h = (h ^ k) >>> 0;
5487
+ }
5488
+ return h;
5489
+ }
5490
+ function hashBuckets(initialCount) {
5491
+ let buckets = 1;
5492
+ while (buckets < initialCount + initialCount / 4) {
5493
+ buckets *= 2;
5494
+ }
5495
+ return buckets;
5496
+ }
5497
+
5498
+ // src/filters/tileFeaturesRaster.ts
5441
5499
  function tileFeaturesRaster({
5442
5500
  tiles,
5443
5501
  ...options
@@ -5451,7 +5509,7 @@ function tileFeaturesRaster({
5451
5509
  const tileResolution = getResolution2(tiles[0].index.q);
5452
5510
  const tileBlockSize = tiles[0].data.blockSize;
5453
5511
  const cellResolution = tileResolution + BigInt(Math.log2(tileBlockSize));
5454
- const spatialFilterCells = new Set(
5512
+ const spatialFilterCells = new CellSet(
5455
5513
  geometryToCells2(options.spatialFilter, cellResolution)
5456
5514
  );
5457
5515
  const data = /* @__PURE__ */ new Map();
@@ -6271,7 +6329,7 @@ var WidgetRemoteSource = class extends WidgetSource {
6271
6329
  spatialFiltersMode,
6272
6330
  ...params
6273
6331
  } = options;
6274
- const { column, operation: operation2, operationColumn, operationExp, othersThreshold } = params;
6332
+ const { column, operation: operation2, operationColumn, operationExp } = params;
6275
6333
  if (operation2 === AggregationTypes.Custom) {
6276
6334
  assert2(operationExp, "operationExp is required for custom operation");
6277
6335
  }
@@ -6286,8 +6344,7 @@ var WidgetRemoteSource = class extends WidgetSource {
6286
6344
  column,
6287
6345
  operation: operation2,
6288
6346
  operationExp,
6289
- operationColumn: operationColumn || column,
6290
- othersThreshold
6347
+ operationColumn: operationColumn || column
6291
6348
  },
6292
6349
  opts: { signal, headers: this.props.headers }
6293
6350
  }).then((res) => normalizeObjectKeys(res.rows));
@@ -7660,9 +7717,6 @@ var WidgetTableSource = class extends WidgetRemoteSource {
7660
7717
  }
7661
7718
  };
7662
7719
 
7663
- // src/widget-sources/constants.ts
7664
- var OTHERS_CATEGORY_NAME = "_carto_others";
7665
-
7666
7720
  // src/sources/h3-query-source.ts
7667
7721
  var h3QuerySource = async function(options) {
7668
7722
  const {
@@ -9972,11 +10026,11 @@ export {
9972
10026
  ApiVersion,
9973
10027
  basemap_styles_default as BASEMAP,
9974
10028
  CartoAPIError,
10029
+ CellSet,
9975
10030
  DEFAULT_API_BASE_URL,
9976
10031
  FEATURE_GEOM_PROPERTY,
9977
10032
  FilterType,
9978
10033
  OPACITY_MAP,
9979
- OTHERS_CATEGORY_NAME,
9980
10034
  Provider,
9981
10035
  SOURCE_DEFAULTS,
9982
10036
  SchemaFieldType,