@mappedin/mappedin-js 5.30.1 → 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 };
@@ -520,11 +521,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin' {
520
521
  * @param mappedinSerializableData Mappedin data that was serialized or exported as JSON
521
522
  * @param shouldPopulateBundledImagesAsBlobs Takes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default
522
523
  */
523
- hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<undefined>;
524
+ hydrate(mappedinSerializableData: string | Record<string, unknown>, shouldPopulateBundledImagesAsBlobs?: boolean, updateInPlace?: boolean): Promise<undefined>;
524
525
  images: any;
525
526
  imageBinaries?: Map<string, Uint8Array>;
526
527
  scenes: any;
527
- fetch(): Promise<void>;
528
+ fetch(updateInPlace?: boolean): Promise<void>;
528
529
  /**
529
530
  * @deprecated Use {@link hydrateVenue} instead
530
531
  */
@@ -935,6 +936,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation' {
935
936
  clone(): MappedinLocation;
936
937
  get nodeOperationHours(): TOperationHoursMap;
937
938
  static hydrate(locations: any, mappedin: Mappedin): MappedinLocation[];
939
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
938
940
  static fetch(mappedin: Mappedin): Promise<MappedinLocation[]>;
939
941
  /**
940
942
  *
@@ -1461,7 +1463,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types' {
1461
1463
  }
1462
1464
 
1463
1465
  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';
1466
+ import type { TAllGetVenueOptions, TGetVenueOptions, TGetVenueOptionsInternal, TVenueMetadata, ThingsOption } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types';
1465
1467
  import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin';
1466
1468
  import { defaultThings } from '@mappedin/mappedin-js/lib/esm/get-venue/default-things';
1467
1469
  import { GET_VENUE_EVENT } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
@@ -1499,6 +1501,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/' {
1499
1501
  export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
1500
1502
  export type { TMappedinCoordinateOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCoordinate';
1501
1503
  export type { TDirectionToOptions, TTHINGS, TAccessors } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
1504
+ export type { ThingsOption };
1502
1505
  export { OfflineSearch } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
1503
1506
  export type { TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineAllSearchMatch, TMappedinOfflineSearchAllOptions, } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch';
1504
1507
  export { defaultThings };
@@ -2271,6 +2274,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCategory' {
2271
2274
  */
2272
2275
  get children(): MappedinCategory[];
2273
2276
  static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
2277
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2274
2278
  static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
2275
2279
  toJSON(): any;
2276
2280
  }
@@ -2319,60 +2323,73 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinVenue' {
2319
2323
  import type { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
2320
2324
  import type { TLogo, TOpeningHours } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.API.types';
2321
2325
  /**
2322
- * 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).
2323
- *
2324
- * 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.
2325
- *
2326
- * See below for an example a 'things' object with available Venue properties specified:
2327
- *
2328
- * things: {
2329
- * venue: ['slug', 'name', 'language', 'address', 'city', 'state', 'postal', 'telephone', 'latitude', 'longitude', 'website', 'operationHours'],
2330
- * locations: [],
2331
- * categories: [],
2332
- * maps: []
2333
- * }
2334
- *
2335
- *
2336
- * @class MappedinVenue
2337
- */
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
+ */
2338
2342
  export class MappedinVenue {
2339
- #private;
2340
- defaultMap: string;
2341
- address: string;
2342
- city: string;
2343
- countrycode: string;
2344
- externalId: string;
2345
- id: string;
2346
- latitude?: number;
2347
- logo?: TLogo;
2348
- longitude?: number;
2349
- name: string;
2350
- operationHours?: TOpeningHours[];
2351
- postal: string;
2352
- slug: string;
2353
- state: string;
2354
- telephone: string;
2355
- tzid: string;
2356
- tzidOverride: string;
2357
- utcOffset: string;
2358
- website: string;
2359
- secureContentStorage: boolean;
2360
- defaultLanguage: {
2361
- code: string;
2362
- name: string;
2363
- };
2364
- 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;
2365
2353
  name: string;
2366
- code: string;
2367
- }[];
2368
- topLocations?: string[];
2369
- constructor(mappedin: Mappedin, data: any);
2370
- get metadata(): any;
2371
- set metadata(value: any);
2372
- static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
2373
- static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
2374
- get isMultiBuilding(): any;
2375
- 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;
2376
2393
  }
2377
2394
  }
2378
2395
 
@@ -2492,6 +2509,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinEvent' {
2492
2509
  * @internal
2493
2510
  */
2494
2511
  static hydrate(events: any, mappedin: Mappedin): MappedinEvent[];
2512
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2495
2513
  /**
2496
2514
  * @internal
2497
2515
  */
@@ -2516,6 +2534,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocationState' {
2516
2534
  * @internal
2517
2535
  */
2518
2536
  static hydrate(locationStates: any): MappedinLocationState[];
2537
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2519
2538
  id: string;
2520
2539
  name: string;
2521
2540
  value: string;
@@ -2609,6 +2628,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMap' {
2609
2628
  */
2610
2629
  getNorth(): any;
2611
2630
  static hydrate(maps: any, mappedin: Mappedin): MappedinMap[];
2631
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2612
2632
  static fetch(mappedin: Mappedin): Promise<MappedinMap[]>;
2613
2633
  get center(): any;
2614
2634
  toJSON(): any;
@@ -2634,6 +2654,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMapGroup' {
2634
2654
  */
2635
2655
  get maps(): MappedinMap[];
2636
2656
  static hydrate(mapGroups: any, mappedin: Mappedin): MappedinMapGroup[];
2657
+ static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2637
2658
  static fetch(mappedin: Mappedin): Promise<MappedinMapGroup[]>;
2638
2659
  toJSON(): any;
2639
2660
  }