@carto/api-client 0.5.2 → 0.5.4-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/build/api-client.cjs +46 -4
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +25 -27
- package/build/api-client.d.ts +25 -27
- package/build/api-client.js +42 -4
- package/build/api-client.js.map +1 -1
- package/build/worker.js.map +1 -1
- package/package.json +4 -3
- package/src/fetch-map/layer-map.ts +1 -2
- package/src/index.ts +1 -0
- package/src/sources/h3-query-source.ts +6 -1
- package/src/sources/h3-table-source.ts +6 -1
- package/src/sources/quadbin-query-source.ts +6 -1
- package/src/sources/quadbin-table-source.ts +6 -1
- package/src/sources/types.ts +1 -2
- package/src/types-internal.ts +0 -29
- package/src/types.ts +27 -0
- package/src/utils.ts +20 -1
package/build/api-client.d.cts
CHANGED
|
@@ -73,6 +73,30 @@ declare const SpatialIndexColumn: Readonly<{
|
|
|
73
73
|
quadbin: string[];
|
|
74
74
|
}>;
|
|
75
75
|
|
|
76
|
+
/******************************************************************************
|
|
77
|
+
* MAP INSTANTIATION
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* @privateRemarks Source: @deck.gl/carto
|
|
81
|
+
*/
|
|
82
|
+
declare enum SchemaFieldType {
|
|
83
|
+
Number = "number",
|
|
84
|
+
Bigint = "bigint",
|
|
85
|
+
String = "string",
|
|
86
|
+
Geometry = "geometry",
|
|
87
|
+
Timestamp = "timestamp",
|
|
88
|
+
Object = "object",
|
|
89
|
+
Boolean = "boolean",
|
|
90
|
+
Variant = "variant",
|
|
91
|
+
Unknown = "unknown"
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @privateRemarks Source: @deck.gl/carto
|
|
95
|
+
*/
|
|
96
|
+
interface SchemaField {
|
|
97
|
+
name: string;
|
|
98
|
+
type: SchemaFieldType;
|
|
99
|
+
}
|
|
76
100
|
/******************************************************************************
|
|
77
101
|
* MAPS AND TILES
|
|
78
102
|
*/
|
|
@@ -219,32 +243,6 @@ type PositionalQueryParameter = QueryParameterValue[];
|
|
|
219
243
|
/** @privateRemarks Source: @deck.gl/carto */
|
|
220
244
|
type QueryParameters = NamedQueryParameter | PositionalQueryParameter;
|
|
221
245
|
|
|
222
|
-
/******************************************************************************
|
|
223
|
-
* MAP INSTANTIATION
|
|
224
|
-
*/
|
|
225
|
-
/**
|
|
226
|
-
* @privateRemarks Source: @deck.gl/carto
|
|
227
|
-
* @internal
|
|
228
|
-
*/
|
|
229
|
-
declare enum SchemaFieldType {
|
|
230
|
-
Number = "number",
|
|
231
|
-
Bigint = "bigint",
|
|
232
|
-
String = "string",
|
|
233
|
-
Geometry = "geometry",
|
|
234
|
-
Timestamp = "timestamp",
|
|
235
|
-
Object = "object",
|
|
236
|
-
Boolean = "boolean",
|
|
237
|
-
Variant = "variant",
|
|
238
|
-
Unknown = "unknown"
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* @privateRemarks Source: @deck.gl/carto
|
|
242
|
-
* @internal
|
|
243
|
-
*/
|
|
244
|
-
interface SchemaField {
|
|
245
|
-
name: string;
|
|
246
|
-
type: SchemaFieldType;
|
|
247
|
-
}
|
|
248
246
|
/******************************************************************************
|
|
249
247
|
* LOCAL CALCULATIONS
|
|
250
248
|
*/
|
|
@@ -1814,4 +1812,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
|
|
|
1814
1812
|
*/
|
|
1815
1813
|
declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
|
|
1816
1814
|
|
|
1817
|
-
export { AGGREGATION, type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, 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, 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, type SCALE_TYPE, SOURCE_DEFAULTS, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, 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, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColorValueAccessor, 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 };
|
|
1815
|
+
export { AGGREGATION, type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, 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, 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, type SCALE_TYPE, SOURCE_DEFAULTS, 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, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColorValueAccessor, 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 };
|
package/build/api-client.d.ts
CHANGED
|
@@ -73,6 +73,30 @@ declare const SpatialIndexColumn: Readonly<{
|
|
|
73
73
|
quadbin: string[];
|
|
74
74
|
}>;
|
|
75
75
|
|
|
76
|
+
/******************************************************************************
|
|
77
|
+
* MAP INSTANTIATION
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* @privateRemarks Source: @deck.gl/carto
|
|
81
|
+
*/
|
|
82
|
+
declare enum SchemaFieldType {
|
|
83
|
+
Number = "number",
|
|
84
|
+
Bigint = "bigint",
|
|
85
|
+
String = "string",
|
|
86
|
+
Geometry = "geometry",
|
|
87
|
+
Timestamp = "timestamp",
|
|
88
|
+
Object = "object",
|
|
89
|
+
Boolean = "boolean",
|
|
90
|
+
Variant = "variant",
|
|
91
|
+
Unknown = "unknown"
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @privateRemarks Source: @deck.gl/carto
|
|
95
|
+
*/
|
|
96
|
+
interface SchemaField {
|
|
97
|
+
name: string;
|
|
98
|
+
type: SchemaFieldType;
|
|
99
|
+
}
|
|
76
100
|
/******************************************************************************
|
|
77
101
|
* MAPS AND TILES
|
|
78
102
|
*/
|
|
@@ -219,32 +243,6 @@ type PositionalQueryParameter = QueryParameterValue[];
|
|
|
219
243
|
/** @privateRemarks Source: @deck.gl/carto */
|
|
220
244
|
type QueryParameters = NamedQueryParameter | PositionalQueryParameter;
|
|
221
245
|
|
|
222
|
-
/******************************************************************************
|
|
223
|
-
* MAP INSTANTIATION
|
|
224
|
-
*/
|
|
225
|
-
/**
|
|
226
|
-
* @privateRemarks Source: @deck.gl/carto
|
|
227
|
-
* @internal
|
|
228
|
-
*/
|
|
229
|
-
declare enum SchemaFieldType {
|
|
230
|
-
Number = "number",
|
|
231
|
-
Bigint = "bigint",
|
|
232
|
-
String = "string",
|
|
233
|
-
Geometry = "geometry",
|
|
234
|
-
Timestamp = "timestamp",
|
|
235
|
-
Object = "object",
|
|
236
|
-
Boolean = "boolean",
|
|
237
|
-
Variant = "variant",
|
|
238
|
-
Unknown = "unknown"
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* @privateRemarks Source: @deck.gl/carto
|
|
242
|
-
* @internal
|
|
243
|
-
*/
|
|
244
|
-
interface SchemaField {
|
|
245
|
-
name: string;
|
|
246
|
-
type: SchemaFieldType;
|
|
247
|
-
}
|
|
248
246
|
/******************************************************************************
|
|
249
247
|
* LOCAL CALCULATIONS
|
|
250
248
|
*/
|
|
@@ -1814,4 +1812,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
|
|
|
1814
1812
|
*/
|
|
1815
1813
|
declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
|
|
1816
1814
|
|
|
1817
|
-
export { AGGREGATION, type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, 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, 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, type SCALE_TYPE, SOURCE_DEFAULTS, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, 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, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColorValueAccessor, 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 };
|
|
1815
|
+
export { AGGREGATION, type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, 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, 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, type SCALE_TYPE, SOURCE_DEFAULTS, 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, clearFilters, configureSource, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColorValueAccessor, 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 };
|
package/build/api-client.js
CHANGED
|
@@ -5491,6 +5491,20 @@ function isValidBandValue(value, nodata) {
|
|
|
5491
5491
|
return Number.isNaN(value) ? false : nodata !== value;
|
|
5492
5492
|
}
|
|
5493
5493
|
|
|
5494
|
+
// src/types.ts
|
|
5495
|
+
var SchemaFieldType = /* @__PURE__ */ ((SchemaFieldType2) => {
|
|
5496
|
+
SchemaFieldType2["Number"] = "number";
|
|
5497
|
+
SchemaFieldType2["Bigint"] = "bigint";
|
|
5498
|
+
SchemaFieldType2["String"] = "string";
|
|
5499
|
+
SchemaFieldType2["Geometry"] = "geometry";
|
|
5500
|
+
SchemaFieldType2["Timestamp"] = "timestamp";
|
|
5501
|
+
SchemaFieldType2["Object"] = "object";
|
|
5502
|
+
SchemaFieldType2["Boolean"] = "boolean";
|
|
5503
|
+
SchemaFieldType2["Variant"] = "variant";
|
|
5504
|
+
SchemaFieldType2["Unknown"] = "unknown";
|
|
5505
|
+
return SchemaFieldType2;
|
|
5506
|
+
})(SchemaFieldType || {});
|
|
5507
|
+
|
|
5494
5508
|
// src/utils.ts
|
|
5495
5509
|
var FILTER_TYPES = new Set(Object.values(FilterType));
|
|
5496
5510
|
function normalizeObjectKeys(el) {
|
|
@@ -5541,6 +5555,13 @@ function assignOptional(target, ...sources) {
|
|
|
5541
5555
|
}
|
|
5542
5556
|
return target;
|
|
5543
5557
|
}
|
|
5558
|
+
function getWidgetSpatialDataType(spatialDataType, spatialDataColumn, schema) {
|
|
5559
|
+
const field = schema.find((field2) => field2.name === spatialDataColumn);
|
|
5560
|
+
if (field && field.type === "geometry" /* Geometry */) {
|
|
5561
|
+
return "geo";
|
|
5562
|
+
}
|
|
5563
|
+
return spatialDataType;
|
|
5564
|
+
}
|
|
5544
5565
|
|
|
5545
5566
|
// src/filters/tileFeatures.ts
|
|
5546
5567
|
function tileFeatures({
|
|
@@ -7639,7 +7660,11 @@ var h3QuerySource = async function(options) {
|
|
|
7639
7660
|
...options,
|
|
7640
7661
|
// NOTE: Parameters with default values above must be explicitly passed here.
|
|
7641
7662
|
spatialDataColumn,
|
|
7642
|
-
spatialDataType
|
|
7663
|
+
spatialDataType: getWidgetSpatialDataType(
|
|
7664
|
+
spatialDataType,
|
|
7665
|
+
spatialDataColumn,
|
|
7666
|
+
result.schema
|
|
7667
|
+
)
|
|
7643
7668
|
})
|
|
7644
7669
|
})
|
|
7645
7670
|
);
|
|
@@ -7674,7 +7699,11 @@ var h3TableSource = async function(options) {
|
|
|
7674
7699
|
...options,
|
|
7675
7700
|
// NOTE: Parameters with default values above must be explicitly passed here.
|
|
7676
7701
|
spatialDataColumn,
|
|
7677
|
-
spatialDataType
|
|
7702
|
+
spatialDataType: getWidgetSpatialDataType(
|
|
7703
|
+
spatialDataType,
|
|
7704
|
+
spatialDataColumn,
|
|
7705
|
+
result.schema
|
|
7706
|
+
)
|
|
7678
7707
|
})
|
|
7679
7708
|
})
|
|
7680
7709
|
);
|
|
@@ -7757,7 +7786,11 @@ var quadbinQuerySource = async function(options) {
|
|
|
7757
7786
|
...options,
|
|
7758
7787
|
// NOTE: Parameters with default values above must be explicitly passed here.
|
|
7759
7788
|
spatialDataColumn,
|
|
7760
|
-
spatialDataType
|
|
7789
|
+
spatialDataType: getWidgetSpatialDataType(
|
|
7790
|
+
spatialDataType,
|
|
7791
|
+
spatialDataColumn,
|
|
7792
|
+
result.schema
|
|
7793
|
+
)
|
|
7761
7794
|
})
|
|
7762
7795
|
})
|
|
7763
7796
|
);
|
|
@@ -7792,7 +7825,11 @@ var quadbinTableSource = async function(options) {
|
|
|
7792
7825
|
...options,
|
|
7793
7826
|
// NOTE: Parameters with default values above must be explicitly passed here.
|
|
7794
7827
|
spatialDataColumn,
|
|
7795
|
-
spatialDataType
|
|
7828
|
+
spatialDataType: getWidgetSpatialDataType(
|
|
7829
|
+
spatialDataType,
|
|
7830
|
+
spatialDataColumn,
|
|
7831
|
+
result.schema
|
|
7832
|
+
)
|
|
7796
7833
|
})
|
|
7797
7834
|
})
|
|
7798
7835
|
);
|
|
@@ -10075,6 +10112,7 @@ export {
|
|
|
10075
10112
|
OPACITY_MAP,
|
|
10076
10113
|
Provider,
|
|
10077
10114
|
SOURCE_DEFAULTS,
|
|
10115
|
+
SchemaFieldType,
|
|
10078
10116
|
SpatialIndex,
|
|
10079
10117
|
SpatialIndexColumn,
|
|
10080
10118
|
TEXT_LABEL_INDEX,
|