@mappedin/mappedin-js 5.31.0 → 5.32.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 { 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 };
@@ -1462,7 +1463,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types' {
1462
1463
  }
1463
1464
 
1464
1465
  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';
1466
+ import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata, ThingsOption } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
1466
1467
  import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin';
1467
1468
  import { defaultThings } from '@mappedin/mappedin-js/lib/esm/get-venue/default-things';
1468
1469
  import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
@@ -1500,6 +1501,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/' {
1500
1501
  export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
1501
1502
  export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCoordinate';
1502
1503
  export type { TDirectionToOptions, TTHINGS, TAccessors } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
1504
+ export type { ThingsOption };
1503
1505
  export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
1504
1506
  export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
1505
1507
  export { defaultThings };
@@ -2321,60 +2323,73 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinVenue' {
2321
2323
  import type { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
2322
2324
  import type { TLogo, TOpeningHours } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types';
2323
2325
  /**
2324
- * 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).
2325
- *
2326
- * 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.
2327
- *
2328
- * See below for an example a 'things' object with available Venue properties specified:
2329
- *
2330
- * things: {
2331
- * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
2332
- * locations: [],
2333
- * categories: [],
2334
- * maps: []
2335
- * }
2336
- *
2337
- *
2338
- * @class MappedinVenue
2339
- */
2326
+ * 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).
2327
+ *
2328
+ * 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.
2329
+ *
2330
+ * See below for an example a 'things' object with available Venue properties specified:
2331
+ *
2332
+ * things: {
2333
+ * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
2334
+ * locations: [],
2335
+ * categories: [],
2336
+ * maps: []
2337
+ * }
2338
+ *
2339
+ *
2340
+ * @class MappedinVenue
2341
+ */
2340
2342
  export class MappedinVenue {
2341
- #private;
2342
- defaultMap: string;
2343
- address: string;
2344
- city: string;
2345
- countrycode: string;
2346
- externalId: string;
2347
- id: string;
2348
- latitude?: number;
2349
- logo?: TLogo;
2350
- longitude?: number;
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: {
2343
+ #private;
2344
+ defaultMap: string;
2345
+ address: string;
2346
+ city: string;
2347
+ countrycode: string;
2348
+ externalId: string;
2349
+ id: string;
2350
+ latitude?: number;
2351
+ logo?: TLogo;
2352
+ longitude?: number;
2367
2353
  name: string;
2368
- code: string;
2369
- }[];
2370
- topLocations?: string[];
2371
- constructor(mappedin: Mappedin, data: any);
2372
- get metadata(): any;
2373
- set metadata(value: any);
2374
- static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
2375
- static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
2376
- get isMultiBuilding(): any;
2377
- toJSON(): any;
2354
+ operationHours?: TOpeningHours[];
2355
+ postal: string;
2356
+ slug: string;
2357
+ state: string;
2358
+ telephone: string;
2359
+ tzid: string;
2360
+ tzidOverride: string;
2361
+ utcOffset: string;
2362
+ website: string;
2363
+ secureContentStorage: boolean;
2364
+ defaultLanguage: {
2365
+ code: string;
2366
+ name: string;
2367
+ };
2368
+ languages: {
2369
+ name: string;
2370
+ code: string;
2371
+ }[];
2372
+ topLocations?: string[];
2373
+ /**
2374
+ * Venue render options provided by the server.
2375
+ */
2376
+ renderOptions: {
2377
+ /**
2378
+ * Whether the venue should use perspectives to render the map or {@link Mappedin.polygons}.
2379
+ */
2380
+ useLivePolygons: boolean;
2381
+ /**
2382
+ * Whether the venue should automatically apply {@link TDirectionToOptions} `simplify: { enabled: true }` to all directions.
2383
+ */
2384
+ simplifyDirections: boolean;
2385
+ };
2386
+ constructor(mappedin: Mappedin, data: any);
2387
+ get metadata(): any;
2388
+ set metadata(value: any);
2389
+ static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
2390
+ static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
2391
+ get isMultiBuilding(): any;
2392
+ toJSON(): any;
2378
2393
  }
2379
2394
  }
2380
2395