@carto/api-client
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ { | ||
"packageManager": "yarn@4.3.1", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"license": "MIT", | ||
@@ -71,3 +71,3 @@ "publishConfig": { | ||
"d3-scale": "^4.0.2", | ||
"h3-js": "4.2.1", | ||
"h3-js": "^4.1.0", | ||
"quadbin": "^0.4.1-alpha.0" | ||
@@ -74,0 +74,0 @@ }, |
@@ -38,5 +38,4 @@ import {deviation, extent, groupSort, median, variance} from 'd3-array'; | ||
} from './types.js'; | ||
import type {ProviderType} from '../types.js'; | ||
import type {ProviderType, SchemaField} from '../types.js'; | ||
import {DEFAULT_AGGREGATION_EXP_ALIAS} from '../constants-internal.js'; | ||
import type {SchemaField} from '../types-internal.js'; | ||
@@ -43,0 +42,0 @@ const SCALE_FUNCS: Record<string, () => any> = { |
@@ -5,2 +5,3 @@ export * from './client.js'; | ||
export * from './fetch-map/index.js'; | ||
export type {LayerDescriptor, LayerType} from './fetch-map/index.js'; | ||
export * from './filters.js'; | ||
@@ -7,0 +8,0 @@ export * from './geo.js'; |
@@ -5,4 +5,3 @@ // deck.gl | ||
import type {SchemaField} from '../types-internal.js'; | ||
import type {Filters, QueryParameters} from '../types.js'; | ||
import type {Filters, SchemaField, QueryParameters} from '../types.js'; | ||
@@ -9,0 +8,0 @@ export type SourceRequiredOptions = { |
@@ -12,31 +12,2 @@ /****************************************************************************** | ||
/****************************************************************************** | ||
* MAP INSTANTIATION | ||
*/ | ||
/** | ||
* @privateRemarks Source: @deck.gl/carto | ||
* @internal | ||
*/ | ||
export enum SchemaFieldType { | ||
Number = 'number', | ||
Bigint = 'bigint', | ||
String = 'string', | ||
Geometry = 'geometry', | ||
Timestamp = 'timestamp', | ||
Object = 'object', | ||
Boolean = 'boolean', | ||
Variant = 'variant', | ||
Unknown = 'unknown', | ||
} | ||
/** | ||
* @privateRemarks Source: @deck.gl/carto | ||
* @internal | ||
*/ | ||
export interface SchemaField { | ||
name: string; | ||
type: SchemaFieldType; // Field type in the CARTO stack, common for all providers | ||
} | ||
/****************************************************************************** | ||
* LOCAL CALCULATIONS | ||
@@ -43,0 +14,0 @@ */ |
@@ -6,2 +6,29 @@ import type {FilterType} from './constants.js'; | ||
/****************************************************************************** | ||
* MAP INSTANTIATION | ||
*/ | ||
/** | ||
* @privateRemarks Source: @deck.gl/carto | ||
*/ | ||
export enum SchemaFieldType { | ||
Number = 'number', | ||
Bigint = 'bigint', | ||
String = 'string', | ||
Geometry = 'geometry', | ||
Timestamp = 'timestamp', | ||
Object = 'object', | ||
Boolean = 'boolean', | ||
Variant = 'variant', | ||
Unknown = 'unknown', | ||
} | ||
/** | ||
* @privateRemarks Source: @deck.gl/carto | ||
*/ | ||
export interface SchemaField { | ||
name: string; | ||
type: SchemaFieldType; // Field type in the CARTO stack, common for all providers | ||
} | ||
/****************************************************************************** | ||
* MAPS AND TILES | ||
@@ -8,0 +35,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3576859
0.37%36341
0.07%Updated