@mappedin/mappedin-js 5.42.1 → 5.44.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.
@@ -889,6 +889,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation' {
889
889
  */
890
890
  export class MappedinLocation extends MappedinNavigatable {
891
891
  #private;
892
+ static readonly __type = "MappedinLocation";
893
+ readonly __type = "MappedinLocation";
894
+ static is(instance: object): instance is MappedinLocation;
892
895
  states: TLocation['states'];
893
896
  id: string;
894
897
  name: string;
@@ -993,6 +996,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCoordinate' {
993
996
  */
994
997
  export class MappedinCoordinate {
995
998
  #private;
999
+ static readonly __type = "MappedinCoordinate";
1000
+ readonly __type = "MappedinCoordinate";
1001
+ static is(instance: object): instance is MappedinCoordinate;
996
1002
  /**
997
1003
  * The Map that the Node is located on.
998
1004
  *
@@ -1267,6 +1273,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.OfflineSearch'
1267
1273
  */
1268
1274
  weight?: number;
1269
1275
  }): Promise<void>;
1276
+ destroy(): void;
1270
1277
  }
1271
1278
  }
1272
1279
 
@@ -2028,6 +2035,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinNode' {
2028
2035
  */
2029
2036
  export class MappedinNode extends MappedinNavigatable {
2030
2037
  #private;
2038
+ static readonly __type = "MappedinNode";
2039
+ readonly __type = "MappedinNode";
2040
+ static is(instance: object): instance is MappedinNode;
2031
2041
  /**
2032
2042
  * Node ID.
2033
2043
  * @property id {string}
@@ -2111,6 +2121,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinPolygon' {
2111
2121
  */
2112
2122
  export class MappedinPolygon extends MappedinNavigatable {
2113
2123
  #private;
2124
+ static readonly __type = "MappedinPolygon";
2125
+ readonly __type = "MappedinPolygon";
2126
+ static is(instance: object): instance is MappedinPolygon;
2114
2127
  geometry: any;
2115
2128
  perspectives?: any;
2116
2129
  image?: {
@@ -2278,6 +2291,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCategory' {
2278
2291
  */
2279
2292
  export class MappedinCategory {
2280
2293
  #private;
2294
+ static readonly __type = "MappedinCategory";
2295
+ readonly __type = "MappedinCategory";
2296
+ static is(instance: object): instance is MappedinCategory;
2281
2297
  name?: string | undefined;
2282
2298
  externalId?: string | undefined;
2283
2299
  parents?: string[] | undefined;
@@ -2327,6 +2343,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinVortex' {
2327
2343
  */
2328
2344
  export class MappedinVortex {
2329
2345
  #private;
2346
+ static readonly __type = "MappedinVortex";
2347
+ readonly __type = "MappedinVortex";
2348
+ static is(instance: object): instance is MappedinVortex;
2330
2349
  /**
2331
2350
  * Vortex ID.
2332
2351
  *
@@ -2598,6 +2617,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMap' {
2598
2617
  */
2599
2618
  export class MappedinMap {
2600
2619
  #private;
2620
+ static readonly __type = "MappedinMap";
2621
+ readonly __type = "MappedinMap";
2622
+ static is(instance: object): instance is MappedinMap;
2601
2623
  id: string;
2602
2624
  group: string;
2603
2625
  name: string;
@@ -2672,6 +2694,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMapGroup' {
2672
2694
  */
2673
2695
  export class MappedinMapGroup {
2674
2696
  #private;
2697
+ static readonly __type = "MappedinMapGroup";
2698
+ readonly __type = "MappedinMapGroup";
2699
+ static is(instance: object): instance is MappedinMapGroup;
2675
2700
  id: string;
2676
2701
  name: string;
2677
2702
  constructor(mappedin: Mappedin, data: any);
@@ -2812,9 +2837,8 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.cache' {
2812
2837
  findNearestNodeOnMap(mapId: string, coordinate: MappedinCoordinate): MappedinNode;
2813
2838
  findNodeWithinRadiusOnMap(mapId: string, coordinate: MappedinCoordinate, radius: number): MappedinNode[];
2814
2839
  get locationsByMapId(): Map<string, MappedinLocation[]>;
2815
- static instances: Map<Mappedin, MappedinCache>;
2840
+ static instances: WeakMap<Mappedin, MappedinCache>;
2816
2841
  static create(mappedin: Mappedin): MappedinCache;
2817
- static clear(): void;
2818
2842
  static clearInstance(mappedin: Mappedin): void;
2819
2843
  }
2820
2844
  export default MappedinCache;