@mappedin/mappedin-js 5.1.4 → 5.2.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.
@@ -470,7 +470,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocati
470
470
  import type { MappedinNode } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNode';
471
471
  import type { MappedinPolygon } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinPolygon';
472
472
  import type { MappedinCategory } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinCategory';
473
- import { MappedinNavigatable } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
473
+ import { MappedinNavigatable, TDirectionToOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
474
474
  export function getCurrentLocationState(location: MappedinLocation, states: MappedinLocationState[], date?: Date): MappedinLocationState | undefined;
475
475
  export type TOperationHoursMap = {
476
476
  [key in string]: TOpeningHours[];
@@ -555,6 +555,13 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocati
555
555
  get nodeOperationHours(): TOperationHoursMap;
556
556
  static hydrate(locations: any, mappedin: Mappedin): MappedinLocation[];
557
557
  static fetch(mappedin: Mappedin): Promise<MappedinLocation[]>;
558
+ /**
559
+ *
560
+ * Get Directions to a node, polygon, or location
561
+ */
562
+ directionsTo(destination: any, options?: TDirectionToOptions): any;
563
+ directionsTo(destination: any, options?: TDirectionToOptions): any;
564
+ distanceTo(destination: any, options: any): number;
558
565
  toJSON(): any;
559
566
  }
560
567
  }
@@ -563,7 +570,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinPolygo
563
570
  import type { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
564
571
  import type { MappedinLocation } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
565
572
  import type { MappedinNode } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNode';
566
- import { MappedinNavigatable } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
573
+ import { MappedinNavigatable, TDirectionToOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
567
574
  import { MappedinMap } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinMap';
568
575
  /**
569
576
  * The {@link MappedinPolygon} class represents the 3D shape of a {@link MappedinLocation} on a {{@link MappedinMap}. Polygons have access to Locations they belong to, and any entrances to the Polygon.
@@ -681,6 +688,13 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinPolygo
681
688
  } | null;
682
689
  static hydrate(polygons: any, mappedin: Mappedin): MappedinPolygon[];
683
690
  static fetch(mappedin: Mappedin): Promise<MappedinPolygon[]>;
691
+ /**
692
+ *
693
+ * Get Directions to a node, polygon, or location
694
+ */
695
+ directionsTo(destination: any, options?: TDirectionToOptions): any;
696
+ directionsTo(destination: any, options?: TDirectionToOptions): any;
697
+ distanceTo(destination: any, options: any): number;
684
698
  toJSON(): any;
685
699
  }
686
700
  }
@@ -690,7 +704,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNode'
690
704
  import type { MappedinPolygon } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinPolygon';
691
705
  import type { MappedinLocation } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
692
706
  import type { TOpeningHours } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.API.types';
693
- import { MappedinNavigatable } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
707
+ import { MappedinNavigatable, TDirectionToOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNavigatable';
694
708
  import { MappedinMap } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinMap';
695
709
  /**
696
710
  * A {@link MappedinNode} represents a position, anchored to a specific {@link MappedinMap}.
@@ -757,6 +771,13 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinNode'
757
771
  get polygon(): MappedinPolygon;
758
772
  static hydrate(nodes: any, mappedin: Mappedin): MappedinNode[];
759
773
  static fetch(mappedin: Mappedin): Promise<MappedinNode[]>;
774
+ /**
775
+ *
776
+ * Get Directions to a node, polygon, or location
777
+ */
778
+ directionsTo(destination: any, options?: TDirectionToOptions): any;
779
+ directionsTo(destination: any, options?: TDirectionToOptions): any;
780
+ distanceTo(destination: any, options: any): number;
760
781
  toJSON(): any;
761
782
  }
762
783
  }
@@ -1016,7 +1037,6 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinVenue'
1016
1037
  latitude?: number;
1017
1038
  logo?: TLogo;
1018
1039
  longitude?: number;
1019
- metadata?: any;
1020
1040
  name: string;
1021
1041
  operationHours?: TOpeningHours[];
1022
1042
  postal: string;
@@ -1028,6 +1048,8 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinVenue'
1028
1048
  utcOffset: string;
1029
1049
  website: string;
1030
1050
  constructor(mappedin: Mappedin, data: any);
1051
+ get metadata(): any;
1052
+ set metadata(value: any);
1031
1053
  static hydrate(data: any, mappedin: Mappedin): MappedinVenue;
1032
1054
  static fetch(mappedin: Mappedin): Promise<MappedinVenue>;
1033
1055
  get isMultiBuilding(): any;