@mappedin/mappedin-js 5.51.0 → 5.53.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.
@@ -37,7 +37,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
37
37
  *
38
38
  * Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
39
39
  */
40
- export { default as CustomerAnalytics } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics';
40
+ export { default as CustomerAnalytics, type IAnalytics } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics';
41
41
  export type { TMappedinDirective } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinDirections';
42
42
  export type { IDirectionsResult } from '@mappedin/mappedin-js/lib/esm/get-venue/--/navigator';
43
43
  export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
@@ -222,6 +222,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.types' {
222
222
  clientId?: string;
223
223
  clientSecret?: string;
224
224
  baseUrl?: string;
225
+ baseUri?: string;
225
226
  includeHidden?: boolean;
226
227
  noAuth?: boolean;
227
228
  perspective?: string;
@@ -674,6 +675,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalyti
674
675
  testMode?: boolean | string;
675
676
  context?: string;
676
677
  platformString?: string;
678
+ baseUri?: string;
677
679
  };
678
680
  interface IAnalytics {
679
681
  locationSelected(location: MappedinLocation): void;
@@ -1593,7 +1595,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/' {
1593
1595
  *
1594
1596
  * Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
1595
1597
  */
1596
- export { default as CustomerAnalytics } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics';
1598
+ export { default as CustomerAnalytics, type IAnalytics } from '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.CustomerAnalytics';
1597
1599
  export type { TMappedinDirective } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinDirections';
1598
1600
  export type { IDirectionsResult } from '@mappedin/mappedin-js/lib/esm/get-venue/--/navigator';
1599
1601
  export type { TOperationHoursMap } from '@mappedin/mappedin-js/lib/esm/get-venue/MappedinLocation';
@@ -2075,6 +2077,12 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinNavigatable' {
2075
2077
  * Apply line-of-sight simplifying to directions. This will attempt to remove unnecessary nodes between turns.
2076
2078
  */
2077
2079
  simplify?: TSimplifyDirectionsOptions;
2080
+ /**
2081
+ * When true, merges multi-destination direction segments into a single directions object.
2082
+ * The merged result will have a combined path, summed distance, and concatenated instructions.
2083
+ * Only applies when using MappedinDestinationSet with multiple destinations.
2084
+ */
2085
+ merge?: boolean;
2078
2086
  };
2079
2087
  export abstract class MappedinNavigatable {
2080
2088
  #private;
@@ -2129,6 +2137,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinNode' {
2129
2137
  */
2130
2138
  operationHours?: TOpeningHours[];
2131
2139
  externalId?: string;
2140
+ /**
2141
+ * @internal
2142
+ * Label identifier for this node. For grouping and filtering nodes.
2143
+ */
2144
+ label: string;
2132
2145
  constructor(mappedin: Mappedin, data: any);
2133
2146
  /**
2134
2147
  * Map Object that this Node is located on.
@@ -2171,6 +2184,11 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinNode' {
2171
2184
  */
2172
2185
  directionsTo(destination: MappedinNode | MappedinLocation | MappedinPolygon, options?: TDirectionToOptions): MappedinDirections;
2173
2186
  directionsTo(destination: MappedinDestinationSet, options?: TDirectionToOptions): MappedinDirections[];
2187
+ /**
2188
+ * @internal
2189
+ * Whether the node is part of a shuttle route.
2190
+ */
2191
+ get isShuttleNode(): boolean;
2174
2192
  /**
2175
2193
  *
2176
2194
  * Calculate walking distance in meters between 2 nodes, polygons or locations
@@ -2390,9 +2408,20 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinCategory' {
2390
2408
  get children(): MappedinCategory[];
2391
2409
  static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
2392
2410
  static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
2411
+ static defaultLanguageCategoryControl: {
2412
+ fetchDefaultLanguageCategories(mappedin: Mappedin): Promise<void>;
2413
+ getDefaultLanguageCategory(mappedin: Mappedin, id: string): CategoryFromCMSAPI | undefined;
2414
+ };
2393
2415
  static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
2394
2416
  toJSON(): any;
2395
2417
  }
2418
+ type CategoryFromCMSAPI = {
2419
+ id: string;
2420
+ icon: Record<string, never> | {
2421
+ original: string;
2422
+ };
2423
+ };
2424
+ export {};
2396
2425
  }
2397
2426
 
2398
2427
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/MappedinDestinationSet' {
@@ -2858,6 +2887,7 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/utils' {
2858
2887
  */
2859
2888
  export const getPrimaryLocationForPolygon: (polygon: MappedinPolygon | string | undefined, venue: Mappedin) => MappedinLocation | null;
2860
2889
  export function mergeThings(thingsOption: ThingsOption | undefined): MergedThings;
2890
+ export function isMappedinUsingDefaultLanguage(mappedin: Mappedin): boolean;
2861
2891
  }
2862
2892
 
2863
2893
  declare module '@mappedin/mappedin-js/lib/esm/get-venue/Mappedin.cache' {
@@ -2954,7 +2984,8 @@ export declare enum BEARING_TYPE {
2954
2984
  RIGHT = "Right",
2955
2985
  SLIGHTRIGHT = "SlightRight",
2956
2986
  LEFT = "Left",
2957
- SLIGHTLEFT = "SlightLeft"
2987
+ SLIGHTLEFT = "SlightLeft",
2988
+ BACK = "Back"
2958
2989
  }
2959
2990
  export declare enum VORTEX_DIRECTION_TYPE {
2960
2991
  UP = "up",