@carto/api-client 0.4.0-alpha.4 → 0.4.0-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.
package/src/constants.ts CHANGED
@@ -28,3 +28,6 @@ export enum ApiVersion {
28
28
  V2 = 'v2',
29
29
  V3 = 'v3',
30
30
  }
31
+
32
+ /** @internalRemarks Source: @carto/constants, @deck.gl/carto */
33
+ export const DEFAULT_API_BASE_URL = 'https://gcp-us-east1.api.carto.com';
@@ -2,11 +2,8 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  // Copyright (c) vis.gl contributors
4
4
 
5
- /* eslint-disable camelcase */
6
- import {
7
- DEFAULT_API_BASE_URL,
8
- DEFAULT_MAX_LENGTH_URL,
9
- } from '../constants-internal';
5
+ import {DEFAULT_API_BASE_URL} from '../constants';
6
+ import {DEFAULT_MAX_LENGTH_URL} from '../constants-internal';
10
7
  import {buildSourceUrl} from '../api/endpoints';
11
8
  import {requestWithParameters} from '../api/request-with-parameters';
12
9
  import type {
@@ -20,11 +20,8 @@ import {getApplicableFilters, normalizeObjectKeys} from '../utils.js';
20
20
  import {getClient} from '../client.js';
21
21
  import {ModelSource} from '../models/model.js';
22
22
  import {SourceOptions} from '../sources/index.js';
23
- import {ApiVersion} from '../constants.js';
24
- import {
25
- DEFAULT_API_BASE_URL,
26
- DEFAULT_GEO_COLUMN,
27
- } from '../constants-internal.js';
23
+ import {ApiVersion, DEFAULT_API_BASE_URL} from '../constants.js';
24
+ import {DEFAULT_GEO_COLUMN} from '../constants-internal.js';
28
25
 
29
26
  export interface WidgetBaseSourceProps extends Omit<SourceOptions, 'filters'> {
30
27
  apiVersion?: ApiVersion;