@mappedin/mappedin-js 5.29.4 → 5.30.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.
@@ -5,7 +5,7 @@
5
5
  // ../../../cms/geojson
6
6
 
7
7
  declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
8
- import type { TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
8
+ import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
9
9
  import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin';
10
10
  import { defaultThings } from '@mappedin/mappedin-js/lib/esm/get-venue/default-things';
11
11
  import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
@@ -52,7 +52,10 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
52
52
  import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
53
53
  import { ParsedMVF } from '@mappedin/mvf';
54
54
  export { MAP_RENDER_MODE, GET_VENUE_EVENT };
55
- export function parseOptions(options: TGetVenueOptions): TGetVenueOptionsInternal & TGetVenueOptions;
55
+ /**
56
+ * @internal
57
+ */
58
+ export function parseOptions<T extends TAllGetVenueOptions>(options: T): TGetVenueOptionsInternal<T>;
56
59
  /**
57
60
  * @internal
58
61
  */
@@ -154,7 +157,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
154
157
  * Download a bundle and return a Mappedin instance
155
158
  * @internal
156
159
  */
157
- export function downloadBundle(userOptions: any, { url, updated_at }: {
160
+ export function downloadBundle(userOptions: TGetVenueBundleOptions, { url, updated_at }: {
158
161
  url: any;
159
162
  updated_at: any;
160
163
  }): Promise<Mappedin>;
@@ -205,6 +208,14 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
205
208
  }
206
209
 
207
210
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types' {
211
+ import type { TGetVenueMVFOptions, TGetVenueMakerOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/';
212
+ import type { DefaultThings } from '@mappedin/mappedin-js/lib/esm/get-venue/default-things';
213
+ export type MergedThings = {
214
+ [key in keyof DefaultThings]: string[];
215
+ } & {
216
+ [k: string]: string[];
217
+ };
218
+ export type ThingsOption = Partial<MergedThings>;
208
219
  export type TGetVenueOptions = {
209
220
  accessToken?: string;
210
221
  clientId?: string;
@@ -218,22 +229,44 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types' {
218
229
  [key in string]: string;
219
230
  };
220
231
  venue: string;
221
- things?: any;
232
+ /**
233
+ * An object specifying additional properties to fetch for each data item.
234
+ * Each key represents a data item (e.g., 'locations', 'nodes'), and the value is an array of strings indicating extra properties to be included.
235
+ * @example
236
+ * For example:
237
+ * ```
238
+ * getVenue({
239
+ * venue: 'some-venue',
240
+ * things: { vortexes: [ 'material' ]
241
+ * }})
242
+ * ```
243
+ */
244
+ things?: ThingsOption;
222
245
  useDraftData?: boolean;
223
246
  platformString?: string;
224
247
  emitAnalyticsEvents?: boolean;
225
248
  secure?: boolean;
226
249
  preloadMapGeometry?: boolean;
227
250
  };
228
- export type TGetVenueOptionsInternal = {
251
+ export type TProcessedMVFOptions = TGetVenueMakerOptions & {
252
+ emitAnalyticsEvents: boolean;
253
+ clientId: string;
254
+ clientSecret: string;
255
+ venue: string;
256
+ };
257
+ export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
258
+ perspective?: string;
259
+ });
260
+ export type TGetVenueOptionsInternal<T extends TAllGetVenueOptions> = Omit<T & {
229
261
  baseUrl?: string;
230
262
  supplementaryUrl?: string;
231
263
  noAuth?: boolean;
232
264
  includeHidden?: boolean;
233
265
  apiGateway?: string;
234
266
  authorization?: string;
235
- things?: any;
236
267
  headers?: any;
268
+ }, 'things'> & {
269
+ things?: MergedThings;
237
270
  };
238
271
  export type TVenueMetadata = {
239
272
  languages: {
@@ -256,14 +289,14 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types' {
256
289
 
257
290
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin' {
258
291
  import { Navigator } from '@mappedin/mappedin-js/lib/esm/get-venue/--/navigator';
259
- import type { TGetVenueOptions, TGetVenueOptionsInternal } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
292
+ import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
260
293
  import type { MappedinNode, MappedinPolygon, MappedinLocation, MappedinCategory, MappedinVortex, MappedinVenue, MappedinTheme, MappedinRankings, MappedinLocationRankings, MappedinEvent, MappedinLocationState, MappedinMap, MappedinMapGroup, GET_VENUE_PAYLOAD } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
261
294
  import { TAccessors, GET_VENUE_EVENT } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
262
295
  import { IAnalytics } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics';
263
296
  import { ParsedMVF } from '@mappedin/mvf';
264
297
  import { ParsedMVFv1 } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.MVF.types';
265
298
  import { PubSub } from '@mappedin/mappedin-js/lib/esm/get-venue/pub-sub.typed';
266
- export const defaultOptions: TGetVenueOptionsInternal & TGetVenueOptions;
299
+ export const defaultOptions: TGetVenueOptionsInternal<TGetVenueOptions>;
267
300
  export class Mappedin extends PubSub<GET_VENUE_PAYLOAD, GET_VENUE_EVENT> {
268
301
  #private;
269
302
  perspective: any;
@@ -495,7 +528,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin' {
495
528
  /**
496
529
  * @deprecated Use {@link hydrateVenue} instead
497
530
  */
498
- constructor(options: TGetVenueOptionsInternal & TGetVenueOptions);
531
+ constructor(options: TGetVenueOptionsInternal<TAllGetVenueOptions>);
499
532
  analytics: IAnalytics;
500
533
  /**
501
534
  * @hidden
@@ -525,6 +558,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/default-things' {
525
558
  themes: string[];
526
559
  rankings: string[];
527
560
  };
561
+ export type DefaultThings = typeof defaultThings;
528
562
  }
529
563
 
530
564
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/internal' {
@@ -864,6 +898,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation' {
864
898
  siblingGroups?: TSiblingGroup[] | undefined;
865
899
  gallery?: TGalleryImage[] | undefined;
866
900
  amenity?: string | undefined;
901
+ filterFlags?: string[];
867
902
  constructor(mappedin: Mappedin, data: any);
868
903
  /**
869
904
  * Polygons this Location is attached to.
@@ -1425,6 +1460,209 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types' {
1425
1460
  };
1426
1461
  }
1427
1462
 
1463
+ declare module '@mappedin/mappedin-js/lib/esm/get-venue/' {
1464
+ import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
1465
+ import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin';
1466
+ import { defaultThings } from '@mappedin/mappedin-js/lib/esm/get-venue/default-things';
1467
+ import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
1468
+ /**
1469
+ * This is how we can avoid bundling in node-fetch (via isomorphic fetch),
1470
+ * which keeps popping up in security advisories
1471
+ * This is a pattern that most isomorphic libraries appear to use,
1472
+ * where when running in node, you can pass your own fetch function
1473
+ * as one is not provided by Node.js.
1474
+ *
1475
+ */
1476
+ export function isomorphicFetch(): Window['fetch'];
1477
+ /**
1478
+ * Overwrite the internal `fetch` function with your own. Typically for use in Node.js and Jest.
1479
+ *
1480
+ * @example
1481
+ * ```js
1482
+ * const { getVenue } = require("@mappedin/mappedin-js/lib/node/index");
1483
+ * setFetchFn(require("node-fetch-commonjs"));
1484
+ * ```
1485
+ *
1486
+ */
1487
+ export function setFetchFn(fetchFn: any): void;
1488
+ /** Classes */
1489
+ export { MappedinCollectionType, MappedinNavigatable, MappedinNode, MappedinLocation, MappedinPolygon, MappedinCategory, MappedinDirections, MappedinDestinationSet, MappedinVortex, MappedinVenue, MappedinRankings, MappedinEvent, MappedinLocationState, MappedinMap, MappedinCoordinate, MappedinMapGroup, Mappedin, } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
1490
+ /**
1491
+ * @internal
1492
+ * @hidden
1493
+ *
1494
+ * Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
1495
+ */
1496
+ export { default as CustomerAnalytics } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics';
1497
+ export type { TMappedinDirective } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinDirections';
1498
+ export type { IDirectionsResult } from '@mappedin/mappedin-js/lib/esm/get-venue/--/navigator';
1499
+ export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
1500
+ export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCoordinate';
1501
+ export type { TDirectionToOptions, TTHINGS, TAccessors } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
1502
+ export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
1503
+ export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
1504
+ export { defaultThings };
1505
+ /** API data types */
1506
+ export type { TLocationType, TNode, TImage, TLogo, TGalleryImage, TPhone, TSocial, TColor, TVortex, TPicture, TOpeningHours, TSiblingGroup, TState, TCategory, TEvent, TGeoReference, TMap, TMapGroup, TBuilding, TLocation, TPolygon, TPolygonRanking, TVenue, TMappedinAPI, } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types';
1507
+ export type { TGetVenueOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
1508
+ import { MAP_RENDER_MODE } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
1509
+ import { ParsedMVF } from '@mappedin/mvf';
1510
+ export { MAP_RENDER_MODE, GET_VENUE_EVENT };
1511
+ /**
1512
+ * @internal
1513
+ */
1514
+ export function parseOptions<T extends TAllGetVenueOptions>(options: T): TGetVenueOptionsInternal<T>;
1515
+ /**
1516
+ * @internal
1517
+ */
1518
+ export function getVenueMVF(userOptions: TGetVenueMVFOptions): Promise<Mappedin>;
1519
+ /**
1520
+ * @experimental
1521
+ * Get venue data for a map created in Mappedin Maker.
1522
+ * @param userOptions
1523
+ * @example
1524
+ * ```ts
1525
+ * const mappedin = await getVenueMaker({
1526
+ * key: '<Your Maker Key>',
1527
+ * secret: '<Your Maker Secret>',
1528
+ * mapId: '<Your Maker Map ID>',
1529
+ * });
1530
+ * ```
1531
+ * @returns {@link Mappedin} object with data from the Maker map.
1532
+ */
1533
+ export function getVenueMaker(userOptions: TGetVenueMakerOptions): Promise<Mappedin>;
1534
+ /**
1535
+ * Get Venue Data for a Mappedin Venue
1536
+ */
1537
+ export function getVenue(userOptions: TGetVenueOptions): Promise<Mappedin>;
1538
+ export function getVenueMetadata(userOptions: TGetVenueOptions): Promise<TVenueMetadata>;
1539
+ /**
1540
+ * @internal
1541
+ */
1542
+ export function __setGetVenueMock(fn: any): void;
1543
+ export type TGetVenueBundleOptions = TGetVenueOptions & {
1544
+ bundleBaseUri?: string;
1545
+ version?: string;
1546
+ /**
1547
+ * Parse bundle and convert images to blobs. Disabled in React Native
1548
+ * @private
1549
+ */
1550
+ shouldPopulateBundledImagesAsBlobs?: boolean;
1551
+ };
1552
+ /** @internal */
1553
+ export type TGetVenueMVFOptions = TGetVenueBundleOptions & {
1554
+ onMVFParsed?: (mvf: ParsedMVF) => void;
1555
+ /**
1556
+ * Override initial MVF data
1557
+ */
1558
+ override?: Partial<Pick<ParsedMVF, 'styles.json'>>;
1559
+ };
1560
+ /**
1561
+ * @experimental
1562
+ * Options for {@link getVenueMaker}.
1563
+ */
1564
+ export type TGetVenueMakerOptions = {
1565
+ /**
1566
+ * Maker auth key.
1567
+ */
1568
+ key: string;
1569
+ /**
1570
+ * Maker auth secret.
1571
+ */
1572
+ secret: string;
1573
+ /**
1574
+ * Maker map ID.
1575
+ */
1576
+ mapId: string;
1577
+ /**
1578
+ * Optionally provide a custom base URL for the Maker map API request.
1579
+ */
1580
+ bundleBaseUri?: string;
1581
+ /**
1582
+ * Optionally provide a custom base URL for the Maker auth token request.
1583
+ */
1584
+ authBaseUri?: string;
1585
+ /**
1586
+ * Whether or not to emit analytics events.
1587
+ * @default true
1588
+ */
1589
+ emitAnalyticsEvents?: boolean;
1590
+ /**
1591
+ * Callback for when the Maker map data has been fetched and parsed as Mappedin Venue Format (MVF) data. This occurs before the {@link Mappedin} object is hydrated.
1592
+ * @param mvf Parsed MVF data.
1593
+ */
1594
+ onMVFParsed?: (mvf: ParsedMVF) => void;
1595
+ };
1596
+ /**
1597
+ * @deprecated
1598
+ * Fetching an offline Venue bundle
1599
+ * It is possible to download the venue bundle with all assets built in, which allows for caching/offline solutions.
1600
+ * Note 1: This requires enabling from Mappedin's Customer Solutions team.
1601
+ * Note 2: This may behave a lot slower for large venues, especially those with many images. We are actively working on improving load times.
1602
+ */
1603
+ export function getVenueBundle(userOptions: TGetVenueBundleOptions): Promise<Mappedin>;
1604
+ /**
1605
+ * Get the bundle URL and updated_at time.
1606
+ * @internal
1607
+ */
1608
+ export function getVenueBundleURL(userOptions: TGetVenueBundleOptions): Promise<{
1609
+ url: string;
1610
+ updated_at: string;
1611
+ }>;
1612
+ /**
1613
+ * Download a bundle and return a Mappedin instance
1614
+ * @internal
1615
+ */
1616
+ export function downloadBundle(userOptions: TGetVenueBundleOptions, { url, updated_at }: {
1617
+ url: any;
1618
+ updated_at: any;
1619
+ }): Promise<Mappedin>;
1620
+ /**
1621
+ * Get the bundle URL and updated_at time.
1622
+ * @internal
1623
+ */
1624
+ export function getVenueMVFURL(userOptions: TGetVenueBundleOptions): Promise<{
1625
+ url: string;
1626
+ updated_at: string;
1627
+ }>;
1628
+ /**
1629
+ * @internal
1630
+ */
1631
+ export function downloadVenueBundleMVF(options: TGetVenueBundleOptions): Promise<Uint8Array>;
1632
+ /**
1633
+ * Represents the options for getting an access token.
1634
+ *
1635
+ * @internal
1636
+ */
1637
+ export type TGetAccessTokenOptions = Pick<TGetVenueMakerOptions, 'authBaseUri' | 'key' | 'secret'>;
1638
+ /**
1639
+ * Get an access token.
1640
+ *
1641
+ * @param userOptions
1642
+ */
1643
+ export function getMakerAccessToken(userOptions: TGetAccessTokenOptions): Promise<{
1644
+ access_token: string;
1645
+ expires_in: number;
1646
+ }>;
1647
+ export function getMakerBundleURL(userOptions: TGetVenueMakerOptions, token: string): Promise<{
1648
+ url: string;
1649
+ updated_at: string;
1650
+ }>;
1651
+ export function downloadMVF(userOptions: TGetVenueMakerOptions, accessToken: string): Promise<Uint8Array>;
1652
+ /**
1653
+ * Returns a {@link Mappedin} object hydrated with JSON data.
1654
+ * @param {string|Object} mappedinSerializableData A JSON string or object representing a venue.
1655
+ * @param {boolean} shouldPopulateBundledImagesAsBlobs
1656
+ * @returns {Mappedin} A new Mappedin object with data from the mappedinSerializableData parameter.
1657
+ */
1658
+ export function hydrateVenue(mappedinSerializableData: any, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<Mappedin>;
1659
+ /**
1660
+ * @internal
1661
+ * Returns a {@link Mappedin} object hydrated with MVF data.
1662
+ */
1663
+ export function hydrateVenueMVF(mvfData: ParsedMVF): Promise<Mappedin>;
1664
+ }
1665
+
1428
1666
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.MVF.types' {
1429
1667
  import { MapId, ObstructionCollection, EntranceCollection, SpaceCollection, Style } from '@mappedin/mvf';
1430
1668
  import { FeatureCollection, MultiPolygon, Point, Polygon } from 'geojson';
@@ -2069,6 +2307,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinVortex' {
2069
2307
  weight?: number;
2070
2308
  multiplier?: number;
2071
2309
  nodes?: string[];
2310
+ filterFlags?: string[];
2072
2311
  constructor(data: any);
2073
2312
  static hydrate(vortexes: any): MappedinVortex[];
2074
2313
  static fetch(mappedin: Mappedin): Promise<MappedinVortex[]>;
@@ -2401,12 +2640,12 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMapGroup' {
2401
2640
  }
2402
2641
 
2403
2642
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/utils' {
2404
- import type { TGetVenueOptions, TGetVenueOptionsInternal } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
2643
+ import type { MergedThings, TGetVenueOptions, TGetVenueOptionsInternal, ThingsOption } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
2405
2644
  import type { MappedinMap } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
2406
2645
  import { Mappedin, MappedinNavigatable, MappedinNode, MappedinPolygon, MappedinLocation, MappedinCoordinate } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
2407
2646
  export function isGatewayKey(key: string): boolean;
2408
2647
  export function stringifyQuery(query: any, gateway?: boolean): string;
2409
- export function buildUrl(options: TGetVenueOptionsInternal & TGetVenueOptions, pathname: string, query: any, supplementary?: boolean): string;
2648
+ export function buildUrl(options: TGetVenueOptionsInternal<TGetVenueOptions>, pathname: string, query: any, supplementary?: boolean): string;
2410
2649
  /**
2411
2650
  * Make a network request to the Mappedin API to fetch an array of objects.
2412
2651
  * @param options options from getVenue- baseUrl and supplementaryUrl are used
@@ -2415,7 +2654,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/utils' {
2415
2654
  * @param supplementary whether to use the supplementaryUrl when sending the request
2416
2655
  * @returns the result json
2417
2656
  */
2418
- export function getArray(options: TGetVenueOptionsInternal & TGetVenueOptions, pathname: string, query: any, supplementary?: boolean): Promise<any>;
2657
+ export function getArray(options: TGetVenueOptionsInternal<TGetVenueOptions>, pathname: string, query: any, supplementary?: boolean): Promise<any>;
2419
2658
  /**
2420
2659
  * Make a network request to the Mappedin API to fetch an object.
2421
2660
  * @param options options from getVenue- baseUrl and supplementaryUrl are used
@@ -2425,21 +2664,21 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/utils' {
2425
2664
  * @param isExpectingArray whether the endpoint returns an array
2426
2665
  * @returns the result json
2427
2666
  */
2428
- export function getObject(options: TGetVenueOptionsInternal & TGetVenueOptions, pathname: string, query: any, supplementary?: boolean, isExpectingArray?: boolean): Promise<any>;
2667
+ export function getObject(options: TGetVenueOptionsInternal<TGetVenueOptions>, pathname: string, query: any, supplementary?: boolean, isExpectingArray?: boolean): Promise<any>;
2429
2668
  /**
2430
2669
  * Prepares the request and URL fields to pass into generateAPIRequest
2431
2670
  * @param options options from getVenue- baseUrl and supplementaryUrl are used
2432
2671
  * @param url string describing the url corresponding to the client's request
2433
2672
  * @param supplementary whether to use the supplementaryUrl when sending the request
2434
2673
  */
2435
- export function constructParamsForRequest(options: TGetVenueOptionsInternal & TGetVenueOptions, url: string, supplementary?: boolean): {
2674
+ export function constructParamsForRequest(options: TGetVenueOptionsInternal<TGetVenueOptions>, url: string, supplementary?: boolean): {
2436
2675
  req: {
2437
2676
  method: string;
2438
2677
  headers: any;
2439
2678
  };
2440
2679
  url: string;
2441
2680
  };
2442
- export function generateAPIRequest(options: TGetVenueOptionsInternal & TGetVenueOptions, url: string, supplementary?: boolean): Promise<any>;
2681
+ export function generateAPIRequest(options: TGetVenueOptionsInternal<TGetVenueOptions>, url: string, supplementary?: boolean): Promise<any>;
2443
2682
  export function addToSet(array: any, value: any): void;
2444
2683
  export function getDistanceBetweenLatLon([lat1, lon1]: [number, number], [lat2, lon2]: [number, number]): any;
2445
2684
  export function getMapScale(map: MappedinMap): any;
@@ -2473,6 +2712,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/utils' {
2473
2712
  * @return {MappedinLocation}
2474
2713
  */
2475
2714
  export const getPrimaryLocationForPolygon: (polygon: MappedinPolygon | string | undefined, venue: Mappedin) => MappedinLocation | null;
2715
+ export function mergeThings(thingsOption: ThingsOption | undefined): MergedThings;
2476
2716
  }
2477
2717
 
2478
2718
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.cache' {