@mappedin/mappedin-js 5.31.0 → 5.33.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.
- package/lib/esm/get-venue/index.d.ts +71 -55
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/navigator/index.js +1 -1
- package/lib/esm/renderer/{GLTFExporter-HNSPHLCS.js → GLTFExporter-XXC6J3XO.js} +1 -1
- package/lib/esm/renderer/{PerformanceController-HXUAYHSR.js → PerformanceController-3S76GCFZ.js} +1 -1
- package/lib/esm/renderer/{browser-QN2C33L4.js → browser-U7HJ254P.js} +1 -1
- package/lib/esm/renderer/{chunk-M6VQMZ7F.js → chunk-6GKTXHJO.js} +1 -1
- package/lib/esm/renderer/chunk-C76G2TTC.js +1 -0
- package/lib/esm/renderer/index.d.ts +293 -219
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/outdoor-context-25JUYJDC.js +1 -0
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-EX4TEORF.js +0 -1
- package/lib/esm/renderer/outdoor-context-KYB4DPOV.js +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// ../../../cms/geojson
|
|
6
6
|
|
|
7
7
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
8
|
-
import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
|
|
8
|
+
import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata, ThingsOption } 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';
|
|
@@ -43,6 +43,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
|
43
43
|
export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
|
|
44
44
|
export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCoordinate';
|
|
45
45
|
export type { TDirectionToOptions, TTHINGS, TAccessors } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
|
|
46
|
+
export type { ThingsOption };
|
|
46
47
|
export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
|
|
47
48
|
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
|
|
48
49
|
export { defaultThings };
|
|
@@ -253,6 +254,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types' {
|
|
|
253
254
|
clientId: string;
|
|
254
255
|
clientSecret: string;
|
|
255
256
|
venue: string;
|
|
257
|
+
accessToken: string;
|
|
256
258
|
};
|
|
257
259
|
export type TAllGetVenueOptions = TGetVenueOptions | TGetVenueMVFOptions | (TProcessedMVFOptions & {
|
|
258
260
|
perspective?: string;
|
|
@@ -1462,7 +1464,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types' {
|
|
|
1462
1464
|
}
|
|
1463
1465
|
|
|
1464
1466
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue/' {
|
|
1465
|
-
import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
|
|
1467
|
+
import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata, ThingsOption } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
|
|
1466
1468
|
import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin';
|
|
1467
1469
|
import { defaultThings } from '@mappedin/mappedin-js/lib/esm/get-venue/default-things';
|
|
1468
1470
|
import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
|
|
@@ -1500,6 +1502,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/' {
|
|
|
1500
1502
|
export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
|
|
1501
1503
|
export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCoordinate';
|
|
1502
1504
|
export type { TDirectionToOptions, TTHINGS, TAccessors } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
|
|
1505
|
+
export type { ThingsOption };
|
|
1503
1506
|
export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
|
|
1504
1507
|
export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
|
|
1505
1508
|
export { defaultThings };
|
|
@@ -1895,7 +1898,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/pub-sub.typed' {
|
|
|
1895
1898
|
* @template EVENT_PAYLOAD - The type of the event payload.
|
|
1896
1899
|
* @template EVENT - The type of the event.
|
|
1897
1900
|
*/
|
|
1898
|
-
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD> {
|
|
1901
|
+
export class PubSub<EVENT_PAYLOAD, EVENT extends keyof EVENT_PAYLOAD = keyof EVENT_PAYLOAD> {
|
|
1899
1902
|
/**
|
|
1900
1903
|
* @private
|
|
1901
1904
|
* @internal
|
|
@@ -2321,60 +2324,73 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinVenue' {
|
|
|
2321
2324
|
import type { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
|
|
2322
2325
|
import type { TLogo, TOpeningHours } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types';
|
|
2323
2326
|
/**
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2327
|
+
* A {@link MappedinVenue} is a specific place (like a mall) with one or more Maps (typically representing different floors) and Locations (stores, washrooms, elevators, etc).
|
|
2328
|
+
*
|
|
2329
|
+
* A Venue can have more properties such as 'name' and 'slug'. The {@link Mappedin} 'things' object is where you would specify what properties you want to download for Venues. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
|
|
2330
|
+
*
|
|
2331
|
+
* See below for an example a 'things' object with available Venue properties specified:
|
|
2332
|
+
*
|
|
2333
|
+
* things: {
|
|
2334
|
+
* venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
|
|
2335
|
+
* locations: [],
|
|
2336
|
+
* categories: [],
|
|
2337
|
+
* maps: []
|
|
2338
|
+
* }
|
|
2339
|
+
*
|
|
2340
|
+
*
|
|
2341
|
+
* @class MappedinVenue
|
|
2342
|
+
*/
|
|
2340
2343
|
export class MappedinVenue {
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
name: string;
|
|
2352
|
-
operationHours?: TOpeningHours[];
|
|
2353
|
-
postal: string;
|
|
2354
|
-
slug: string;
|
|
2355
|
-
state: string;
|
|
2356
|
-
telephone: string;
|
|
2357
|
-
tzid: string;
|
|
2358
|
-
tzidOverride: string;
|
|
2359
|
-
utcOffset: string;
|
|
2360
|
-
website: string;
|
|
2361
|
-
secureContentStorage: boolean;
|
|
2362
|
-
defaultLanguage: {
|
|
2363
|
-
code: string;
|
|
2364
|
-
name: string;
|
|
2365
|
-
};
|
|
2366
|
-
languages: {
|
|
2344
|
+
#private;
|
|
2345
|
+
defaultMap: string;
|
|
2346
|
+
address: string;
|
|
2347
|
+
city: string;
|
|
2348
|
+
countrycode: string;
|
|
2349
|
+
externalId: string;
|
|
2350
|
+
id: string;
|
|
2351
|
+
latitude?: number;
|
|
2352
|
+
logo?: TLogo;
|
|
2353
|
+
longitude?: number;
|
|
2367
2354
|
name: string;
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2355
|
+
operationHours?: TOpeningHours[];
|
|
2356
|
+
postal: string;
|
|
2357
|
+
slug: string;
|
|
2358
|
+
state: string;
|
|
2359
|
+
telephone: string;
|
|
2360
|
+
tzid: string;
|
|
2361
|
+
tzidOverride: string;
|
|
2362
|
+
utcOffset: string;
|
|
2363
|
+
website: string;
|
|
2364
|
+
secureContentStorage: boolean;
|
|
2365
|
+
defaultLanguage: {
|
|
2366
|
+
code: string;
|
|
2367
|
+
name: string;
|
|
2368
|
+
};
|
|
2369
|
+
languages: {
|
|
2370
|
+
name: string;
|
|
2371
|
+
code: string;
|
|
2372
|
+
}[];
|
|
2373
|
+
topLocations?: string[];
|
|
2374
|
+
/**
|
|
2375
|
+
* Venue render options provided by the server.
|
|
2376
|
+
*/
|
|
2377
|
+
renderOptions: {
|
|
2378
|
+
/**
|
|
2379
|
+
* Whether the venue should use perspectives to render the map or {@link Mappedin.polygons}.
|
|
2380
|
+
*/
|
|
2381
|
+
useLivePolygons: boolean;
|
|
2382
|
+
/**
|
|
2383
|
+
* Whether the venue should automatically apply {@link TDirectionToOptions} `simplify: { enabled: true }` to all directions.
|
|
2384
|
+
*/
|
|
2385
|
+
simplifyDirections: boolean;
|
|
2386
|
+
};
|
|
2387
|
+
constructor(mappedin: Mappedin, data: any);
|
|
2388
|
+
get metadata(): any;
|
|
2389
|
+
set metadata(value: any);
|
|
2390
|
+
static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
|
|
2391
|
+
static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
|
|
2392
|
+
get isMultiBuilding(): any;
|
|
2393
|
+
toJSON(): any;
|
|
2378
2394
|
}
|
|
2379
2395
|
}
|
|
2380
2396
|
|