@carto/api-client 0.4.0-alpha.0 → 0.4.0-alpha.3

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.
Files changed (58) hide show
  1. package/build/api/carto-api-error.d.ts +9 -1
  2. package/build/api/endpoints.d.ts +3 -1
  3. package/build/api/index.d.ts +5 -4
  4. package/build/api/request-with-parameters.d.ts +1 -1
  5. package/build/api-client.cjs +293 -158
  6. package/build/api-client.cjs.map +1 -1
  7. package/build/api-client.modern.js +243 -126
  8. package/build/api-client.modern.js.map +1 -1
  9. package/build/constants-internal.d.ts +9 -28
  10. package/build/constants.d.ts +24 -10
  11. package/build/index.d.ts +4 -5
  12. package/build/models/model.d.ts +2 -2
  13. package/build/sources/base-source.d.ts +1 -1
  14. package/build/sources/boundary-query-source.d.ts +1 -1
  15. package/build/sources/h3-query-source.d.ts +2 -1
  16. package/build/sources/h3-table-source.d.ts +2 -1
  17. package/build/sources/index.d.ts +1 -1
  18. package/build/sources/quadbin-query-source.d.ts +2 -1
  19. package/build/sources/quadbin-table-source.d.ts +2 -1
  20. package/build/sources/types.d.ts +2 -1
  21. package/build/sources/vector-query-source.d.ts +2 -1
  22. package/build/sources/vector-table-source.d.ts +2 -1
  23. package/build/types-internal.d.ts +46 -1
  24. package/build/types.d.ts +11 -0
  25. package/build/widget-sources/index.d.ts +0 -1
  26. package/build/widget-sources/widget-base-source.d.ts +1 -1
  27. package/build/widget-sources/widget-query-source.d.ts +3 -0
  28. package/build/widget-sources/widget-table-source.d.ts +3 -0
  29. package/package.json +2 -2
  30. package/src/api/carto-api-error.ts +17 -1
  31. package/src/api/endpoints.ts +3 -1
  32. package/src/api/index.ts +9 -12
  33. package/src/api/query.ts +1 -1
  34. package/src/api/request-with-parameters.ts +4 -8
  35. package/src/constants-internal.ts +9 -30
  36. package/src/constants.ts +32 -16
  37. package/src/index.ts +43 -5
  38. package/src/models/model.ts +4 -6
  39. package/src/sources/base-source.ts +2 -1
  40. package/src/sources/boundary-query-source.ts +1 -1
  41. package/src/sources/h3-query-source.ts +9 -7
  42. package/src/sources/h3-table-source.ts +9 -7
  43. package/src/sources/index.ts +6 -1
  44. package/src/sources/quadbin-query-source.ts +9 -7
  45. package/src/sources/quadbin-table-source.ts +9 -7
  46. package/src/sources/types.ts +2 -6
  47. package/src/sources/vector-query-source.ts +12 -7
  48. package/src/sources/vector-table-source.ts +12 -7
  49. package/src/types-internal.ts +54 -1
  50. package/src/types.ts +16 -0
  51. package/src/widget-sources/index.ts +0 -1
  52. package/src/widget-sources/widget-base-source.ts +5 -5
  53. package/src/widget-sources/widget-query-source.ts +3 -2
  54. package/src/widget-sources/widget-table-source.ts +3 -2
  55. package/build/api/types.d.ts +0 -227
  56. package/build/widget-sources/wrappers.d.ts +0 -48
  57. package/src/api/types.ts +0 -301
  58. package/src/widget-sources/wrappers.ts +0 -121
@@ -28,17 +28,6 @@ function setClient(c) {
28
28
  client = c;
29
29
  }
30
30
 
31
- /** Current version of @carto/api-client. */
32
- const API_CLIENT_VERSION = "0.4.0-alpha.0";
33
- const DEFAULT_API_BASE_URL$1 = 'https://gcp-us-east1.api.carto.com';
34
- const DEFAULT_CLIENT = 'deck-gl-carto';
35
- const V3_MINOR_VERSION = '3.4';
36
- // Fastly default limit is 8192; leave some padding.
37
- const DEFAULT_MAX_LENGTH_URL = 7000;
38
- const DEFAULT_TILE_SIZE = 512;
39
- const DEFAULT_TILE_RESOLUTION = 0.5;
40
- const DEFAULT_AGGREGATION_RES_LEVEL_H3 = 4;
41
- const DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN = 6;
42
31
  /**
43
32
  * Defines a comparator used when matching a column's values against given filter values.
44
33
  *
@@ -63,6 +52,31 @@ var FilterType;
63
52
  FilterType["TIME"] = "time";
64
53
  FilterType["STRING_SEARCH"] = "stringSearch";
65
54
  })(FilterType || (FilterType = {}));
55
+ /** @internalRemarks Source: @carto/constants */
56
+ var ApiVersion;
57
+ (function (ApiVersion) {
58
+ ApiVersion["V1"] = "v1";
59
+ ApiVersion["V2"] = "v2";
60
+ ApiVersion["V3"] = "v3";
61
+ })(ApiVersion || (ApiVersion = {}));
62
+ /******************************************************************************
63
+ * DEFAULTS
64
+ */
65
+ /** @internalRemarks Source: @carto/constants, @deck.gl/carto */
66
+ const DEFAULT_API_BASE_URL = 'https://gcp-us-east1.api.carto.com';
67
+ /** @internalRemarks Source: @carto/constants, @deck.gl/carto */
68
+ const DEFAULT_CLIENT = 'deck-gl-carto';
69
+ /** @internalRemarks Source: @carto/constants, @deck.gl/carto */
70
+ const DEFAULT_GEO_COLUMN = 'geom';
71
+ /**
72
+ * Fastly default limit is 8192; leave some padding.
73
+ * @internalRemarks Source: @deck.gl/carto
74
+ */
75
+ const DEFAULT_MAX_LENGTH_URL = 7000;
76
+ /** @internalRemarks Source: @deck.gl/carto */
77
+ const DEFAULT_TILE_SIZE = 512;
78
+ /** @internalRemarks Source: @deck.gl/carto */
79
+ const DEFAULT_TILE_RESOLUTION = 0.5;
66
80
 
67
81
  const FILTER_TYPES = new Set(Object.values(FilterType));
68
82
  const isFilterType = type => FILTER_TYPES.has(type);
@@ -369,43 +383,6 @@ function _objectWithoutPropertiesLoose(r, e) {
369
383
  return t;
370
384
  }
371
385
 
372
- /******************************************************************************
373
- * DEFAULTS
374
- */
375
- /**
376
- * @internalRemarks Source: @carto/constants
377
- * @internal
378
- */
379
- const DEFAULT_API_BASE_URL = 'https://gcp-us-east1.api.carto.com';
380
- /**
381
- * @internalRemarks Source: @carto/react-api
382
- * @internal
383
- */
384
- const DEFAULT_GEO_COLUMN = 'geom';
385
- /******************************************************************************
386
- * ENUMS
387
- */
388
- /**
389
- * @internal
390
- * @internalRemarks Source: @carto/constants
391
- */
392
- var MapType;
393
- (function (MapType) {
394
- MapType["TABLE"] = "table";
395
- MapType["QUERY"] = "query";
396
- MapType["TILESET"] = "tileset";
397
- })(MapType || (MapType = {}));
398
- /**
399
- * @internal
400
- * @internalRemarks Source: @carto/constants
401
- */
402
- var ApiVersion;
403
- (function (ApiVersion) {
404
- ApiVersion["V1"] = "v1";
405
- ApiVersion["V2"] = "v2";
406
- ApiVersion["V3"] = "v3";
407
- })(ApiVersion || (ApiVersion = {}));
408
-
409
386
  /**
410
387
  * Return more descriptive error from API
411
388
  * @internalRemarks Source: @carto/react-api
@@ -500,7 +477,7 @@ function executeModel(props) {
500
477
  assert(apiBaseUrl, 'executeModel: missing apiBaseUrl');
501
478
  assert(accessToken, 'executeModel: missing accessToken');
502
479
  assert(apiVersion === V3, 'executeModel: SQL Model API requires CARTO 3+');
503
- assert(type !== MapType.TILESET, 'executeModel: Tilesets not supported');
480
+ assert(type !== 'tileset', 'executeModel: Tilesets not supported');
504
481
  let url = `${apiBaseUrl}/v3/sql/${connectionName}/model/${model}`;
505
482
  const {
506
483
  filters,
@@ -896,7 +873,7 @@ WidgetBaseSource.defaultProps = {
896
873
  class WidgetQuerySource extends WidgetBaseSource {
897
874
  getModelSource(owner) {
898
875
  return _extends({}, super._getModelSource(owner), {
899
- type: MapType.QUERY,
876
+ type: 'query',
900
877
  data: this.props.sqlQuery,
901
878
  queryParameters: this.props.queryParameters
902
879
  });
@@ -928,29 +905,12 @@ class WidgetQuerySource extends WidgetBaseSource {
928
905
  class WidgetTableSource extends WidgetBaseSource {
929
906
  getModelSource(owner) {
930
907
  return _extends({}, super._getModelSource(owner), {
931
- type: MapType.TABLE,
908
+ type: 'table',
932
909
  data: this.props.tableName
933
910
  });
934
911
  }
935
912
  }
936
913
 
937
- // deck.gl
938
- // SPDX-License-Identifier: MIT
939
- // Copyright (c) vis.gl contributors
940
- function joinPath(...args) {
941
- return args.map(part => part.endsWith('/') ? part.slice(0, -1) : part).join('/');
942
- }
943
- function buildV3Path(apiBaseUrl, version, endpoint, ...rest) {
944
- return joinPath(apiBaseUrl, version, endpoint, ...rest);
945
- }
946
- function buildSourceUrl({
947
- apiBaseUrl,
948
- connectionName,
949
- endpoint
950
- }) {
951
- return buildV3Path(apiBaseUrl, 'v3', 'maps', connectionName, endpoint);
952
- }
953
-
954
914
  // deck.gl
955
915
  // SPDX-License-Identifier: MIT
956
916
  // Copyright (c) vis.gl contributors
@@ -1007,6 +967,66 @@ function formatErrorKey(key) {
1007
967
  return key.replace(/([A-Z])/g, ' $1').replace(/^./, s => s.toUpperCase());
1008
968
  }
1009
969
 
970
+ // deck.gl
971
+ // SPDX-License-Identifier: MIT
972
+ // Copyright (c) vis.gl contributors
973
+ function joinPath(...args) {
974
+ return args.map(part => part.endsWith('/') ? part.slice(0, -1) : part).join('/');
975
+ }
976
+ function buildV3Path(apiBaseUrl, version, endpoint, ...rest) {
977
+ return joinPath(apiBaseUrl, version, endpoint, ...rest);
978
+ }
979
+ /** @internal Required by fetchMap(). */
980
+ function buildPublicMapUrl({
981
+ apiBaseUrl,
982
+ cartoMapId
983
+ }) {
984
+ return buildV3Path(apiBaseUrl, 'v3', 'maps', 'public', cartoMapId);
985
+ }
986
+ /** @internal Required by fetchMap(). */
987
+ function buildStatsUrl({
988
+ attribute,
989
+ apiBaseUrl,
990
+ connectionName,
991
+ source,
992
+ type
993
+ }) {
994
+ if (type === 'query') {
995
+ return buildV3Path(apiBaseUrl, 'v3', 'stats', connectionName, attribute);
996
+ }
997
+ // type === 'table'
998
+ return buildV3Path(apiBaseUrl, 'v3', 'stats', connectionName, source, attribute);
999
+ }
1000
+ function buildSourceUrl({
1001
+ apiBaseUrl,
1002
+ connectionName,
1003
+ endpoint
1004
+ }) {
1005
+ return buildV3Path(apiBaseUrl, 'v3', 'maps', connectionName, endpoint);
1006
+ }
1007
+ function buildQueryUrl({
1008
+ apiBaseUrl,
1009
+ connectionName
1010
+ }) {
1011
+ return buildV3Path(apiBaseUrl, 'v3', 'sql', connectionName, 'query');
1012
+ }
1013
+
1014
+ /******************************************************************************
1015
+ * VERSIONS
1016
+ */
1017
+ /** @internal */
1018
+ const V3_MINOR_VERSION = '3.4';
1019
+ /**
1020
+ * @internalRemarks Source: @deck.gl/carto
1021
+ * @internal
1022
+ */
1023
+ const DEFAULT_AGGREGATION_RES_LEVEL_H3 = 4;
1024
+ /**
1025
+ * @internalRemarks Source: @deck.gl/carto
1026
+ * @internal
1027
+ */
1028
+ const DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN = 6;
1029
+
1010
1030
  const DEFAULT_HEADERS = {
1011
1031
  Accept: 'application/json',
1012
1032
  'Content-Type': 'application/json'
@@ -1024,7 +1044,7 @@ async function requestWithParameters({
1024
1044
  // user-provided parameters.
1025
1045
  parameters = _extends({
1026
1046
  v: V3_MINOR_VERSION,
1027
- clientId: DEFAULT_CLIENT
1047
+ client: DEFAULT_CLIENT
1028
1048
  }, typeof deck !== 'undefined' && deck.VERSION && {
1029
1049
  deckglVersion: deck.VERSION
1030
1050
  }, parameters);
@@ -1101,7 +1121,7 @@ function excludeURLParameters(baseUrlString, parameters) {
1101
1121
 
1102
1122
  const _excluded = ["accessToken", "connectionName", "cache"];
1103
1123
  const SOURCE_DEFAULTS = {
1104
- apiBaseUrl: DEFAULT_API_BASE_URL$1,
1124
+ apiBaseUrl: DEFAULT_API_BASE_URL,
1105
1125
  clientId: DEFAULT_CLIENT,
1106
1126
  format: 'tilejson',
1107
1127
  headers: {},
@@ -1175,7 +1195,52 @@ async function baseSource(endpoint, options, urlParameters) {
1175
1195
  }
1176
1196
 
1177
1197
  // deck.gl
1178
- const h3QuerySource$1 = async function h3QuerySource(options) {
1198
+ const boundaryQuerySource = async function boundaryQuerySource(options) {
1199
+ const {
1200
+ columns,
1201
+ filters,
1202
+ tilesetTableName,
1203
+ propertiesSqlQuery,
1204
+ queryParameters
1205
+ } = options;
1206
+ const urlParameters = {
1207
+ tilesetTableName,
1208
+ propertiesSqlQuery
1209
+ };
1210
+ if (columns) {
1211
+ urlParameters.columns = columns.join(',');
1212
+ }
1213
+ if (filters) {
1214
+ urlParameters.filters = filters;
1215
+ }
1216
+ if (queryParameters) {
1217
+ urlParameters.queryParameters = queryParameters;
1218
+ }
1219
+ return baseSource('boundary', options, urlParameters);
1220
+ };
1221
+
1222
+ // deck.gl
1223
+ const boundaryTableSource = async function boundaryTableSource(options) {
1224
+ const {
1225
+ filters,
1226
+ tilesetTableName,
1227
+ columns,
1228
+ propertiesTableName
1229
+ } = options;
1230
+ const urlParameters = {
1231
+ tilesetTableName,
1232
+ propertiesTableName
1233
+ };
1234
+ if (columns) {
1235
+ urlParameters.columns = columns.join(',');
1236
+ }
1237
+ if (filters) {
1238
+ urlParameters.filters = filters;
1239
+ }
1240
+ return baseSource('boundary', options, urlParameters);
1241
+ };
1242
+
1243
+ const h3QuerySource = async function h3QuerySource(options) {
1179
1244
  const {
1180
1245
  aggregationExp,
1181
1246
  aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_H3,
@@ -1199,11 +1264,12 @@ const h3QuerySource$1 = async function h3QuerySource(options) {
1199
1264
  if (filters) {
1200
1265
  urlParameters.filters = filters;
1201
1266
  }
1202
- return baseSource('query', options, urlParameters);
1267
+ return baseSource('query', options, urlParameters).then(result => _extends({}, result, {
1268
+ widgetSource: new WidgetQuerySource(options)
1269
+ }));
1203
1270
  };
1204
1271
 
1205
- // deck.gl
1206
- const h3TableSource$1 = async function h3TableSource(options) {
1272
+ const h3TableSource = async function h3TableSource(options) {
1207
1273
  const {
1208
1274
  aggregationExp,
1209
1275
  aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_H3,
@@ -1223,11 +1289,38 @@ const h3TableSource$1 = async function h3TableSource(options) {
1223
1289
  if (filters) {
1224
1290
  urlParameters.filters = filters;
1225
1291
  }
1226
- return baseSource('table', options, urlParameters);
1292
+ return baseSource('table', options, urlParameters).then(result => _extends({}, result, {
1293
+ widgetSource: new WidgetTableSource(options)
1294
+ }));
1227
1295
  };
1228
1296
 
1229
1297
  // deck.gl
1230
- const quadbinQuerySource$1 = async function quadbinQuerySource(options) {
1298
+ const h3TilesetSource = async function h3TilesetSource(options) {
1299
+ const {
1300
+ tableName
1301
+ } = options;
1302
+ const urlParameters = {
1303
+ name: tableName
1304
+ };
1305
+ return baseSource('tileset', options, urlParameters);
1306
+ };
1307
+
1308
+ // deck.gl
1309
+ const rasterSource = async function rasterSource(options) {
1310
+ const {
1311
+ tableName,
1312
+ filters
1313
+ } = options;
1314
+ const urlParameters = {
1315
+ name: tableName
1316
+ };
1317
+ if (filters) {
1318
+ urlParameters.filters = filters;
1319
+ }
1320
+ return baseSource('raster', options, urlParameters);
1321
+ };
1322
+
1323
+ const quadbinQuerySource = async function quadbinQuerySource(options) {
1231
1324
  const {
1232
1325
  aggregationExp,
1233
1326
  aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN,
@@ -1251,11 +1344,12 @@ const quadbinQuerySource$1 = async function quadbinQuerySource(options) {
1251
1344
  if (filters) {
1252
1345
  urlParameters.filters = filters;
1253
1346
  }
1254
- return baseSource('query', options, urlParameters);
1347
+ return baseSource('query', options, urlParameters).then(result => _extends({}, result, {
1348
+ widgetSource: new WidgetQuerySource(options)
1349
+ }));
1255
1350
  };
1256
1351
 
1257
- // deck.gl
1258
- const quadbinTableSource$1 = async function quadbinTableSource(options) {
1352
+ const quadbinTableSource = async function quadbinTableSource(options) {
1259
1353
  const {
1260
1354
  aggregationExp,
1261
1355
  aggregationResLevel = DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN,
@@ -1275,11 +1369,23 @@ const quadbinTableSource$1 = async function quadbinTableSource(options) {
1275
1369
  if (filters) {
1276
1370
  urlParameters.filters = filters;
1277
1371
  }
1278
- return baseSource('table', options, urlParameters);
1372
+ return baseSource('table', options, urlParameters).then(result => _extends({}, result, {
1373
+ widgetSource: new WidgetTableSource(options)
1374
+ }));
1279
1375
  };
1280
1376
 
1281
1377
  // deck.gl
1282
- const vectorQuerySource$1 = async function vectorQuerySource(options) {
1378
+ const quadbinTilesetSource = async function quadbinTilesetSource(options) {
1379
+ const {
1380
+ tableName
1381
+ } = options;
1382
+ const urlParameters = {
1383
+ name: tableName
1384
+ };
1385
+ return baseSource('tileset', options, urlParameters);
1386
+ };
1387
+
1388
+ const vectorQuerySource = async function vectorQuerySource(options) {
1283
1389
  const {
1284
1390
  columns,
1285
1391
  filters,
@@ -1303,11 +1409,12 @@ const vectorQuerySource$1 = async function vectorQuerySource(options) {
1303
1409
  if (queryParameters) {
1304
1410
  urlParameters.queryParameters = queryParameters;
1305
1411
  }
1306
- return baseSource('query', options, urlParameters);
1412
+ return baseSource('query', options, urlParameters).then(result => _extends({}, result, {
1413
+ widgetSource: new WidgetQuerySource(options)
1414
+ }));
1307
1415
  };
1308
1416
 
1309
- // deck.gl
1310
- const vectorTableSource$1 = async function vectorTableSource(options) {
1417
+ const vectorTableSource = async function vectorTableSource(options) {
1311
1418
  const {
1312
1419
  columns,
1313
1420
  filters,
@@ -1327,51 +1434,61 @@ const vectorTableSource$1 = async function vectorTableSource(options) {
1327
1434
  if (filters) {
1328
1435
  urlParameters.filters = filters;
1329
1436
  }
1330
- return baseSource('table', options, urlParameters);
1437
+ return baseSource('table', options, urlParameters).then(result => _extends({}, result, {
1438
+ widgetSource: new WidgetTableSource(options)
1439
+ }));
1331
1440
  };
1332
1441
 
1333
- /** Wrapper adding Widget API support to [vectorTableSource](https://deck.gl/docs/api-reference/carto/data-sources). */
1334
- async function vectorTableSource(props) {
1335
- const response = await vectorTableSource$1(props);
1336
- return _extends({}, response, {
1337
- widgetSource: new WidgetTableSource(props)
1338
- });
1339
- }
1340
- /** Wrapper adding Widget API support to [vectorQuerySource](https://deck.gl/docs/api-reference/carto/data-sources). */
1341
- async function vectorQuerySource(props) {
1342
- const response = await vectorQuerySource$1(props);
1343
- return _extends({}, response, {
1344
- widgetSource: new WidgetQuerySource(props)
1345
- });
1346
- }
1347
- /** Wrapper adding Widget API support to [h3TableSource](https://deck.gl/docs/api-reference/carto/data-sources). */
1348
- async function h3TableSource(props) {
1349
- const response = await h3TableSource$1(props);
1350
- return _extends({}, response, {
1351
- widgetSource: new WidgetTableSource(props)
1352
- });
1353
- }
1354
- /** Wrapper adding Widget API support to [h3QuerySource](https://deck.gl/docs/api-reference/carto/data-sources). */
1355
- async function h3QuerySource(props) {
1356
- const response = await h3QuerySource$1(props);
1357
- return _extends({}, response, {
1358
- widgetSource: new WidgetQuerySource(props)
1359
- });
1360
- }
1361
- /** Wrapper adding Widget API support to [quadbinTableSource](https://deck.gl/docs/api-reference/carto/data-sources). */
1362
- async function quadbinTableSource(props) {
1363
- const response = await quadbinTableSource$1(props);
1364
- return _extends({}, response, {
1365
- widgetSource: new WidgetTableSource(props)
1442
+ // deck.gl
1443
+ const vectorTilesetSource = async function vectorTilesetSource(options) {
1444
+ const {
1445
+ tableName
1446
+ } = options;
1447
+ const urlParameters = {
1448
+ name: tableName
1449
+ };
1450
+ return baseSource('tileset', options, urlParameters);
1451
+ };
1452
+
1453
+ const query = async function query(options) {
1454
+ const {
1455
+ apiBaseUrl = SOURCE_DEFAULTS.apiBaseUrl,
1456
+ clientId = SOURCE_DEFAULTS.clientId,
1457
+ maxLengthURL = SOURCE_DEFAULTS.maxLengthURL,
1458
+ connectionName,
1459
+ sqlQuery,
1460
+ queryParameters
1461
+ } = options;
1462
+ const urlParameters = {
1463
+ q: sqlQuery
1464
+ };
1465
+ if (queryParameters) {
1466
+ urlParameters.queryParameters = JSON.stringify(queryParameters);
1467
+ }
1468
+ const baseUrl = buildQueryUrl({
1469
+ apiBaseUrl,
1470
+ connectionName
1366
1471
  });
1367
- }
1368
- /** Wrapper adding Widget API support to [quadbinQuerySource](https://deck.gl/docs/api-reference/carto/data-sources). */
1369
- async function quadbinQuerySource(props) {
1370
- const response = await quadbinQuerySource$1(props);
1371
- return _extends({}, response, {
1372
- widgetSource: new WidgetQuerySource(props)
1472
+ const headers = _extends({
1473
+ Authorization: `Bearer ${options.accessToken}`
1474
+ }, options.headers);
1475
+ const parameters = _extends({
1476
+ client: clientId
1477
+ }, urlParameters);
1478
+ const errorContext = {
1479
+ requestType: 'SQL',
1480
+ connection: options.connectionName,
1481
+ type: 'query',
1482
+ source: JSON.stringify(parameters, undefined, 2)
1483
+ };
1484
+ return await requestWithParameters({
1485
+ baseUrl,
1486
+ parameters,
1487
+ headers,
1488
+ errorContext,
1489
+ maxLengthURL
1373
1490
  });
1374
- }
1491
+ };
1375
1492
 
1376
- export { API_CLIENT_VERSION, DEFAULT_AGGREGATION_RES_LEVEL_H3, DEFAULT_AGGREGATION_RES_LEVEL_QUADBIN, DEFAULT_API_BASE_URL$1 as DEFAULT_API_BASE_URL, DEFAULT_CLIENT, DEFAULT_MAX_LENGTH_URL, DEFAULT_TILE_RESOLUTION, DEFAULT_TILE_SIZE, FilterType, V3_MINOR_VERSION, WidgetBaseSource, WidgetQuerySource, WidgetTableSource, addFilter, clearFilters, createPolygonSpatialFilter, createViewportSpatialFilter, getClient, getFilter, h3QuerySource, h3TableSource, hasFilter, quadbinQuerySource, quadbinTableSource, removeFilter, setClient, vectorQuerySource, vectorTableSource };
1493
+ export { ApiVersion, CartoAPIError, DEFAULT_API_BASE_URL, DEFAULT_CLIENT, DEFAULT_GEO_COLUMN, DEFAULT_MAX_LENGTH_URL, DEFAULT_TILE_RESOLUTION, DEFAULT_TILE_SIZE, FilterType, SOURCE_DEFAULTS, WidgetBaseSource, WidgetQuerySource, WidgetTableSource, addFilter, boundaryQuerySource, boundaryTableSource, buildPublicMapUrl, buildStatsUrl, clearFilters, createPolygonSpatialFilter, createViewportSpatialFilter, getClient, getFilter, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, setClient, vectorQuerySource, vectorTableSource, vectorTilesetSource };
1377
1494
  //# sourceMappingURL=api-client.modern.js.map