@mappedin/mappedin-js 5.42.0 → 5.43.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.
@@ -539,11 +539,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin' {
539
539
  /**
540
540
  * Export venue data to JSON (for storage, encryption, etc)
541
541
  */
542
- toJSON: () => any;
542
+ toJSON: (includeOptions?: boolean) => any;
543
543
  /**
544
544
  * Export venue data to String
545
545
  */
546
- toString: () => string;
546
+ toString: (includeOptions?: boolean) => string;
547
547
  }
548
548
  }
549
549
 
@@ -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
  *
@@ -2028,6 +2034,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinNode' {
2028
2034
  */
2029
2035
  export class MappedinNode extends MappedinNavigatable {
2030
2036
  #private;
2037
+ static readonly __type = "MappedinNode";
2038
+ readonly __type = "MappedinNode";
2039
+ static is(instance: object): instance is MappedinNode;
2031
2040
  /**
2032
2041
  * Node ID.
2033
2042
  * @property id {string}
@@ -2111,6 +2120,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinPolygon' {
2111
2120
  */
2112
2121
  export class MappedinPolygon extends MappedinNavigatable {
2113
2122
  #private;
2123
+ static readonly __type = "MappedinPolygon";
2124
+ readonly __type = "MappedinPolygon";
2125
+ static is(instance: object): instance is MappedinPolygon;
2114
2126
  geometry: any;
2115
2127
  perspectives?: any;
2116
2128
  image?: {
@@ -2278,6 +2290,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCategory' {
2278
2290
  */
2279
2291
  export class MappedinCategory {
2280
2292
  #private;
2293
+ static readonly __type = "MappedinCategory";
2294
+ readonly __type = "MappedinCategory";
2295
+ static is(instance: object): instance is MappedinCategory;
2281
2296
  name?: string | undefined;
2282
2297
  externalId?: string | undefined;
2283
2298
  parents?: string[] | undefined;
@@ -2327,6 +2342,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinVortex' {
2327
2342
  */
2328
2343
  export class MappedinVortex {
2329
2344
  #private;
2345
+ static readonly __type = "MappedinVortex";
2346
+ readonly __type = "MappedinVortex";
2347
+ static is(instance: object): instance is MappedinVortex;
2330
2348
  /**
2331
2349
  * Vortex ID.
2332
2350
  *
@@ -2598,6 +2616,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMap' {
2598
2616
  */
2599
2617
  export class MappedinMap {
2600
2618
  #private;
2619
+ static readonly __type = "MappedinMap";
2620
+ readonly __type = "MappedinMap";
2621
+ static is(instance: object): instance is MappedinMap;
2601
2622
  id: string;
2602
2623
  group: string;
2603
2624
  name: string;
@@ -2672,6 +2693,9 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinMapGroup' {
2672
2693
  */
2673
2694
  export class MappedinMapGroup {
2674
2695
  #private;
2696
+ static readonly __type = "MappedinMapGroup";
2697
+ readonly __type = "MappedinMapGroup";
2698
+ static is(instance: object): instance is MappedinMapGroup;
2675
2699
  id: string;
2676
2700
  name: string;
2677
2701
  constructor(mappedin: Mappedin, data: any);
@@ -2812,9 +2836,8 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.cache' {
2812
2836
  findNearestNodeOnMap(mapId: string, coordinate: MappedinCoordinate): MappedinNode;
2813
2837
  findNodeWithinRadiusOnMap(mapId: string, coordinate: MappedinCoordinate, radius: number): MappedinNode[];
2814
2838
  get locationsByMapId(): Map<string, MappedinLocation[]>;
2815
- static instances: Map<Mappedin, MappedinCache>;
2839
+ static instances: WeakMap<Mappedin, MappedinCache>;
2816
2840
  static create(mappedin: Mappedin): MappedinCache;
2817
- static clear(): void;
2818
2841
  static clearInstance(mappedin: Mappedin): void;
2819
2842
  }
2820
2843
  export default MappedinCache;