@mappedin/mappedin-js 5.41.1 → 5.42.1

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
 
@@ -633,7 +633,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/internal' {
633
633
  }
634
634
 
635
635
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics' {
636
- import { MappedinNavigatable, MappedinLocation, MappedinCategory } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
636
+ import type { MappedinNavigatable, MappedinLocation, MappedinCategory } from '@mappedin/mappedin-js/lib/esm/get-venue/internal';
637
637
  type AnalyticsUserPosition = {
638
638
  bluedotTimestamp: number;
639
639
  latitude: number;
@@ -724,7 +724,21 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalyti
724
724
  * @param end {MappedinLocation} The end location for wayfinding.
725
725
  */
726
726
  getDirections(start: any, end: any): void;
727
+ /**
728
+ * Returns the active mi-session ID.
729
+ */
727
730
  getSessionID(): string;
731
+ /**
732
+ * Sets the current global mi-session ID and overrides the local session ID.
733
+ * @param sessionID {String} The session ID to be set.
734
+ * @internal
735
+ */
736
+ static setSessionID(sessionID: string): void;
737
+ /**
738
+ * Clears the current global mi-session ID and reverts to the local session ID.
739
+ * @internal
740
+ */
741
+ static clearSessionID(): void;
728
742
  getDeviceID(): string;
729
743
  /**
730
744
  * @param mode {Boolean} Indicates whether the user's geolocation is enabled.
@@ -2732,8 +2746,8 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/utils' {
2732
2746
  * @returns the normalized value
2733
2747
  */
2734
2748
  export function normalizeCategoryRank(sortOrder: number, min: number, max: number, polygonRank?: number): number;
2735
- export function getDeviceID(): string;
2736
- export function getSessionID(): string;
2749
+ export function getDeviceIDFromStorage(): string;
2750
+ export function getSessionIDFromStorage(): string;
2737
2751
  /**
2738
2752
  * Finds the main Location associated with a Polygon. This means a Location
2739
2753
  * attached to the Polygon that has no parents, or, if there are none of those,