@mappedin/mappedin-js 5.0.0-beta.6 → 5.0.0-beta.8
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/lib/esm/get-venue/index.d.ts +108 -24
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/navigator/index.js +1 -1
- package/lib/esm/renderer/{browser-RTAG4TTA.js → browser-UFORAXEW.js} +1 -1
- package/lib/esm/renderer/chunk-MCSNGYNH.js +1 -0
- package/lib/esm/renderer/index.d.ts +173 -103
- package/lib/esm/renderer/index.js +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +4 -7
- package/lib/esm/renderer/chunk-3GMQAWOM.js +0 -1
|
@@ -6,6 +6,19 @@
|
|
|
6
6
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
7
7
|
import type { TGetVenueOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types';
|
|
8
8
|
import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
9
|
+
/**
|
|
10
|
+
* This is how we can avoid bundling in node-fetch (via isomorphic fetch),
|
|
11
|
+
* which keeps popping up in security advisories
|
|
12
|
+
* This is a pattern that most isomorphic libraries appear to use,
|
|
13
|
+
* where when running in node, you can pass your own fetch function
|
|
14
|
+
* as one is not provided by Node.js.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export function isomorphicFetch(): Window['fetch'];
|
|
18
|
+
/**
|
|
19
|
+
* Overwrite the internal `fetch` function with your own. Typically for use in Node.js and Jest
|
|
20
|
+
*/
|
|
21
|
+
export function setFetchFn(fetchFn: any): void;
|
|
9
22
|
/** Classes */
|
|
10
23
|
export { Mappedin, MappedinCollectionType } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
11
24
|
export { MappedinLocation } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
|
|
@@ -26,6 +39,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
|
26
39
|
export type { TMappedinDirective } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinDirections';
|
|
27
40
|
export type { IDirectionsResult } from '@mappedin/mappedin-js/lib/esm/get-venue/navigator';
|
|
28
41
|
export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
|
|
42
|
+
export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinCoordinate';
|
|
29
43
|
export type { TDirectionToOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
|
|
30
44
|
export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.OfflineSearch';
|
|
31
45
|
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.OfflineSearch';
|
|
@@ -61,11 +75,18 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
|
61
75
|
};
|
|
62
76
|
};
|
|
63
77
|
export { MAP_RENDER_MODE };
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
64
81
|
export function getVenueMVF(userOptions: TGetVenueBundleOptions): Promise<Mappedin>;
|
|
65
82
|
/**
|
|
66
83
|
* Get Venue Data for a Mappedin Venue
|
|
67
84
|
*/
|
|
68
85
|
export function getVenue(userOptions: TGetVenueOptions): Promise<Mappedin>;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
export function __setGetVenueMock(fn: any): void;
|
|
69
90
|
export type TGetVenueBundleOptions = TGetVenueOptions & {
|
|
70
91
|
bundleBaseUri?: string;
|
|
71
92
|
version?: string;
|
|
@@ -134,6 +155,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types
|
|
|
134
155
|
things?: any;
|
|
135
156
|
useDraftData?: boolean;
|
|
136
157
|
platformString?: string;
|
|
158
|
+
emitAnalyticsEvents?: boolean;
|
|
137
159
|
};
|
|
138
160
|
export type TGetVenueOptionsInternal = {
|
|
139
161
|
baseUrl?: string;
|
|
@@ -142,10 +164,6 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types
|
|
|
142
164
|
includeHidden?: boolean;
|
|
143
165
|
apiGateway?: string;
|
|
144
166
|
authorization?: string;
|
|
145
|
-
/**
|
|
146
|
-
* @deprecated 2D support will be removed in the future
|
|
147
|
-
*/
|
|
148
|
-
do2D?: boolean;
|
|
149
167
|
things?: any;
|
|
150
168
|
headers?: any;
|
|
151
169
|
};
|
|
@@ -212,7 +230,6 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
212
230
|
mapGroups: typeof MappedinMapGroup;
|
|
213
231
|
themes: typeof MappedinTheme;
|
|
214
232
|
locationStates: typeof MappedinLocationState;
|
|
215
|
-
locationRankings: typeof MappedinLocationRankings;
|
|
216
233
|
rankings: typeof MappedinRankings;
|
|
217
234
|
};
|
|
218
235
|
export type TTHINGS = keyof typeof THINGS;
|
|
@@ -233,15 +250,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
233
250
|
mapGroups: MappedinMapGroup[];
|
|
234
251
|
themes: MappedinTheme[];
|
|
235
252
|
locationStates: MappedinLocationState[];
|
|
236
|
-
/**
|
|
237
|
-
* @deprecated use polygonRankings instead
|
|
238
|
-
* TODO: remove when we know that nobody is using this
|
|
239
|
-
*/
|
|
240
|
-
locationRankings: MappedinLocationRankings[];
|
|
241
253
|
rankings?: MappedinRankings;
|
|
242
254
|
/**
|
|
243
255
|
* @hidden
|
|
244
256
|
* @internal
|
|
257
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
245
258
|
*/
|
|
246
259
|
_categoriesById?: {
|
|
247
260
|
[id: string]: MappedinCategory;
|
|
@@ -249,6 +262,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
249
262
|
/**
|
|
250
263
|
* @hidden
|
|
251
264
|
* @internal
|
|
265
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
252
266
|
*/
|
|
253
267
|
_locationsById?: {
|
|
254
268
|
[id: string]: MappedinLocation;
|
|
@@ -256,6 +270,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
256
270
|
/**
|
|
257
271
|
* @hidden
|
|
258
272
|
* @internal
|
|
273
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
259
274
|
*/
|
|
260
275
|
_vortexesById?: {
|
|
261
276
|
[id: string]: MappedinVortex;
|
|
@@ -263,6 +278,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
263
278
|
/**
|
|
264
279
|
* @hidden
|
|
265
280
|
* @internal
|
|
281
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
266
282
|
*/
|
|
267
283
|
_mapsById?: {
|
|
268
284
|
[id: string]: MappedinMap;
|
|
@@ -270,6 +286,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
270
286
|
/**
|
|
271
287
|
* @hidden
|
|
272
288
|
* @internal
|
|
289
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
273
290
|
*/
|
|
274
291
|
_nodesById?: {
|
|
275
292
|
[id: string]: MappedinNode;
|
|
@@ -277,6 +294,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
277
294
|
/**
|
|
278
295
|
* @hidden
|
|
279
296
|
* @internal
|
|
297
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
280
298
|
*/
|
|
281
299
|
_polygonsById?: {
|
|
282
300
|
[id: string]: MappedinPolygon;
|
|
@@ -284,6 +302,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
284
302
|
/**
|
|
285
303
|
* @hidden
|
|
286
304
|
* @internal
|
|
305
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
287
306
|
*/
|
|
288
307
|
_eventsById?: {
|
|
289
308
|
[id: string]: MappedinEvent;
|
|
@@ -291,6 +310,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
291
310
|
/**
|
|
292
311
|
* @hidden
|
|
293
312
|
* @internal
|
|
313
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
294
314
|
*/
|
|
295
315
|
_mapGroupsById?: {
|
|
296
316
|
[id: string]: MappedinMapGroup;
|
|
@@ -298,6 +318,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
298
318
|
/**
|
|
299
319
|
* @hidden
|
|
300
320
|
* @internal
|
|
321
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
301
322
|
*/
|
|
302
323
|
_locationStatesById?: {
|
|
303
324
|
[id: string]: MappedinLocationState;
|
|
@@ -305,6 +326,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
305
326
|
/**
|
|
306
327
|
* @hidden
|
|
307
328
|
* @internal
|
|
329
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
308
330
|
*/
|
|
309
331
|
_locationRankingsById?: {
|
|
310
332
|
[id: string]: MappedinLocationRankings;
|
|
@@ -312,6 +334,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
312
334
|
/**
|
|
313
335
|
* @hidden
|
|
314
336
|
* @internal
|
|
337
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
315
338
|
*/
|
|
316
339
|
_rankingsById?: {
|
|
317
340
|
[id: string]: MappedinRankings;
|
|
@@ -319,6 +342,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
319
342
|
/**
|
|
320
343
|
* @hidden
|
|
321
344
|
* @internal
|
|
345
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
322
346
|
*/
|
|
323
347
|
_categoriesByExternalId?: {
|
|
324
348
|
[id: string]: MappedinCategory;
|
|
@@ -326,6 +350,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
326
350
|
/**
|
|
327
351
|
* @hidden
|
|
328
352
|
* @internal
|
|
353
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
329
354
|
*/
|
|
330
355
|
_locationsByExternalId?: {
|
|
331
356
|
[id: string]: MappedinLocation;
|
|
@@ -333,6 +358,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
333
358
|
/**
|
|
334
359
|
* @hidden
|
|
335
360
|
* @internal
|
|
361
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
336
362
|
*/
|
|
337
363
|
_vortexesByExternalId?: {
|
|
338
364
|
[id: string]: MappedinVortex;
|
|
@@ -340,6 +366,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
340
366
|
/**
|
|
341
367
|
* @hidden
|
|
342
368
|
* @internal
|
|
369
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
343
370
|
*/
|
|
344
371
|
_mapsByExternalId?: {
|
|
345
372
|
[id: string]: MappedinMap;
|
|
@@ -347,6 +374,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
347
374
|
/**
|
|
348
375
|
* @hidden
|
|
349
376
|
* @internal
|
|
377
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
350
378
|
*/
|
|
351
379
|
_nodesByExternalId?: {
|
|
352
380
|
[id: string]: MappedinNode;
|
|
@@ -354,6 +382,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
354
382
|
/**
|
|
355
383
|
* @hidden
|
|
356
384
|
* @internal
|
|
385
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
357
386
|
*/
|
|
358
387
|
_polygonsByExternalId?: {
|
|
359
388
|
[id: string]: MappedinPolygon;
|
|
@@ -361,6 +390,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
361
390
|
/**
|
|
362
391
|
* @hidden
|
|
363
392
|
* @internal
|
|
393
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
364
394
|
*/
|
|
365
395
|
_eventsByExternalId?: {
|
|
366
396
|
[id: string]: MappedinEvent;
|
|
@@ -368,6 +398,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
368
398
|
/**
|
|
369
399
|
* @hidden
|
|
370
400
|
* @internal
|
|
401
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
371
402
|
*/
|
|
372
403
|
_mapGroupsByExternalId?: {
|
|
373
404
|
[id: string]: MappedinMapGroup;
|
|
@@ -375,6 +406,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
375
406
|
/**
|
|
376
407
|
* @hidden
|
|
377
408
|
* @internal
|
|
409
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
378
410
|
*/
|
|
379
411
|
_locationStatesByExternalId?: {
|
|
380
412
|
[id: string]: MappedinLocationState;
|
|
@@ -382,6 +414,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
382
414
|
/**
|
|
383
415
|
* @hidden
|
|
384
416
|
* @internal
|
|
417
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
385
418
|
*/
|
|
386
419
|
_locationRankingsByExternalId?: {
|
|
387
420
|
[id: string]: MappedinLocationRankings;
|
|
@@ -389,6 +422,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin' {
|
|
|
389
422
|
/**
|
|
390
423
|
* @hidden
|
|
391
424
|
* @internal
|
|
425
|
+
* @deprecated Use {@link Mappedin.getCollectionItemById} instead
|
|
392
426
|
*/
|
|
393
427
|
_rankingsByExternalId?: {
|
|
394
428
|
[id: string]: MappedinRankings;
|
|
@@ -491,10 +525,6 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocati
|
|
|
491
525
|
*/
|
|
492
526
|
get polygons(): MappedinPolygon[];
|
|
493
527
|
set polygons(polygons: MappedinPolygon[]);
|
|
494
|
-
/**
|
|
495
|
-
* Ranking for this location.
|
|
496
|
-
*/
|
|
497
|
-
get rank(): number | null;
|
|
498
528
|
/**
|
|
499
529
|
* Nodes this Location is attached to.
|
|
500
530
|
*
|
|
@@ -1082,6 +1112,21 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinDirect
|
|
|
1082
1112
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinCoordinate' {
|
|
1083
1113
|
import { Mappedin, MappedinNode } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue';
|
|
1084
1114
|
import type { MappedinMap } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinMap';
|
|
1115
|
+
export type TMappedinCoordinateOptions = {
|
|
1116
|
+
map: MappedinMap;
|
|
1117
|
+
mappedin: Mappedin;
|
|
1118
|
+
x: number;
|
|
1119
|
+
y: number;
|
|
1120
|
+
lat?: undefined;
|
|
1121
|
+
lon?: undefined;
|
|
1122
|
+
} | {
|
|
1123
|
+
map: MappedinMap;
|
|
1124
|
+
mappedin: Mappedin;
|
|
1125
|
+
x?: undefined;
|
|
1126
|
+
y?: undefined;
|
|
1127
|
+
lat: number;
|
|
1128
|
+
lon: number;
|
|
1129
|
+
};
|
|
1085
1130
|
/**
|
|
1086
1131
|
* A {@link MappedinCoordinate} represents a coordinate on a map, created using lat/lon.
|
|
1087
1132
|
*
|
|
@@ -1099,21 +1144,24 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinCoordi
|
|
|
1099
1144
|
* X coordinate in Mappedin Units
|
|
1100
1145
|
* @property x {number}
|
|
1101
1146
|
*/
|
|
1102
|
-
x: number;
|
|
1147
|
+
get x(): number;
|
|
1103
1148
|
/**
|
|
1104
1149
|
* Y coordinate in Mappedin Units
|
|
1105
1150
|
* @property y {number}
|
|
1106
1151
|
*/
|
|
1107
|
-
y: number;
|
|
1152
|
+
get y(): number;
|
|
1108
1153
|
/**
|
|
1109
1154
|
* Latitude
|
|
1110
1155
|
*/
|
|
1111
|
-
lat: number;
|
|
1156
|
+
get lat(): number;
|
|
1112
1157
|
/**
|
|
1113
1158
|
* Longitude
|
|
1114
1159
|
*/
|
|
1115
|
-
lon: number;
|
|
1116
|
-
|
|
1160
|
+
get lon(): number;
|
|
1161
|
+
/**
|
|
1162
|
+
* @internal
|
|
1163
|
+
*/
|
|
1164
|
+
constructor(options: TMappedinCoordinateOptions);
|
|
1117
1165
|
/**
|
|
1118
1166
|
*
|
|
1119
1167
|
* Calculate distance between a coordinate and a {@link MappedinNode} or {@link MappedinCoordinate}
|
|
@@ -1126,6 +1174,13 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinCoordi
|
|
|
1126
1174
|
* Get Nearest Node to Coordinate, which can then be used for navigation
|
|
1127
1175
|
*/
|
|
1128
1176
|
get nearestNode(): MappedinNode;
|
|
1177
|
+
toJSON(): {
|
|
1178
|
+
x: number;
|
|
1179
|
+
y: number;
|
|
1180
|
+
map: string;
|
|
1181
|
+
lat: number;
|
|
1182
|
+
lon: number;
|
|
1183
|
+
};
|
|
1129
1184
|
}
|
|
1130
1185
|
}
|
|
1131
1186
|
|
|
@@ -1197,11 +1252,6 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNaviga
|
|
|
1197
1252
|
* Calculate distance between 2 nodes, polygons or locations
|
|
1198
1253
|
*/
|
|
1199
1254
|
distanceTo(destination: MappedinNode | MappedinLocation | MappedinPolygon, options: TDirectionToOptions): number;
|
|
1200
|
-
/**
|
|
1201
|
-
*
|
|
1202
|
-
* @deprecated
|
|
1203
|
-
*/
|
|
1204
|
-
directionsToCallback(destination: MappedinNode | MappedinLocation | MappedinPolygon, options: TDirectionToOptions): MappedinDirections | undefined;
|
|
1205
1255
|
}
|
|
1206
1256
|
}
|
|
1207
1257
|
|
|
@@ -1988,6 +2038,19 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.Analy
|
|
|
1988
2038
|
trackBlueDotEvent(blueDotEvent: any): void;
|
|
1989
2039
|
trackSearch(searchAnalyticsObject: any): void;
|
|
1990
2040
|
trackSearchSuggest(searchAnalyticsObject: any): void;
|
|
2041
|
+
/**
|
|
2042
|
+
* Sets the current global context of the Analytics class.
|
|
2043
|
+
* @method setContext
|
|
2044
|
+
* @param context {String} The Analytics context to be set.
|
|
2045
|
+
* @hidden
|
|
2046
|
+
*/
|
|
2047
|
+
static setContext(context: any): void;
|
|
2048
|
+
/**
|
|
2049
|
+
* Sets the current global context of the Analytics class to undefined.
|
|
2050
|
+
* @method clearContext
|
|
2051
|
+
* @hidden
|
|
2052
|
+
*/
|
|
2053
|
+
static clearContext(): void;
|
|
1991
2054
|
/**
|
|
1992
2055
|
* Enum of valid bluedot events.
|
|
1993
2056
|
* Pass a property of this into the {{#crossLink "Analytics/trackBlueDotEvent:method"}}{{/crossLink}} method.
|
|
@@ -2008,6 +2071,19 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.Analy
|
|
|
2008
2071
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
2009
2072
|
import type { TGetVenueOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types';
|
|
2010
2073
|
import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
2074
|
+
/**
|
|
2075
|
+
* This is how we can avoid bundling in node-fetch (via isomorphic fetch),
|
|
2076
|
+
* which keeps popping up in security advisories
|
|
2077
|
+
* This is a pattern that most isomorphic libraries appear to use,
|
|
2078
|
+
* where when running in node, you can pass your own fetch function
|
|
2079
|
+
* as one is not provided by Node.js.
|
|
2080
|
+
*
|
|
2081
|
+
*/
|
|
2082
|
+
export function isomorphicFetch(): Window['fetch'];
|
|
2083
|
+
/**
|
|
2084
|
+
* Overwrite the internal `fetch` function with your own. Typically for use in Node.js and Jest
|
|
2085
|
+
*/
|
|
2086
|
+
export function setFetchFn(fetchFn: any): void;
|
|
2011
2087
|
/** Classes */
|
|
2012
2088
|
export { Mappedin, MappedinCollectionType } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
2013
2089
|
export { MappedinLocation } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
|
|
@@ -2028,6 +2104,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
|
2028
2104
|
export type { TMappedinDirective } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinDirections';
|
|
2029
2105
|
export type { IDirectionsResult } from '@mappedin/mappedin-js/lib/esm/get-venue/navigator';
|
|
2030
2106
|
export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
|
|
2107
|
+
export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinCoordinate';
|
|
2031
2108
|
export type { TDirectionToOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
|
|
2032
2109
|
export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.OfflineSearch';
|
|
2033
2110
|
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.OfflineSearch';
|
|
@@ -2063,11 +2140,18 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
|
2063
2140
|
};
|
|
2064
2141
|
};
|
|
2065
2142
|
export { MAP_RENDER_MODE };
|
|
2143
|
+
/**
|
|
2144
|
+
* @internal
|
|
2145
|
+
*/
|
|
2066
2146
|
export function getVenueMVF(userOptions: TGetVenueBundleOptions): Promise<Mappedin>;
|
|
2067
2147
|
/**
|
|
2068
2148
|
* Get Venue Data for a Mappedin Venue
|
|
2069
2149
|
*/
|
|
2070
2150
|
export function getVenue(userOptions: TGetVenueOptions): Promise<Mappedin>;
|
|
2151
|
+
/**
|
|
2152
|
+
* @internal
|
|
2153
|
+
*/
|
|
2154
|
+
export function __setGetVenueMock(fn: any): void;
|
|
2071
2155
|
export type TGetVenueBundleOptions = TGetVenueOptions & {
|
|
2072
2156
|
bundleBaseUri?: string;
|
|
2073
2157
|
version?: string;
|