@situm/react-native 3.15.0-beta.2 → 3.15.0-beta.3

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.
Files changed (49) hide show
  1. package/lib/commonjs/index.js +73 -0
  2. package/lib/commonjs/sdk/index.js +931 -0
  3. package/lib/commonjs/sdk/internaDelegatedState.js +48 -0
  4. package/lib/commonjs/sdk/nativeInterface.js +20 -0
  5. package/lib/commonjs/sdk/types/constants.js +73 -0
  6. package/lib/commonjs/sdk/types/index.js +414 -0
  7. package/lib/commonjs/sdk/utils.js +156 -0
  8. package/lib/commonjs/utils/index.js +17 -0
  9. package/lib/commonjs/utils/logError.js +21 -0
  10. package/lib/commonjs/wayfinding/components/MapView.js +389 -0
  11. package/lib/commonjs/wayfinding/components/MapView.js.map +1 -0
  12. package/lib/commonjs/wayfinding/hooks/index.js +233 -0
  13. package/lib/commonjs/wayfinding/hooks/index.js.map +1 -0
  14. package/lib/commonjs/wayfinding/index.js +57 -0
  15. package/lib/commonjs/wayfinding/store/index.js +247 -0
  16. package/lib/commonjs/wayfinding/store/index.js.map +1 -0
  17. package/lib/commonjs/wayfinding/store/utils.js +49 -0
  18. package/lib/commonjs/wayfinding/store/utils.js.map +1 -0
  19. package/lib/commonjs/wayfinding/types/constants.js +13 -0
  20. package/lib/commonjs/wayfinding/types/constants.js.map +1 -0
  21. package/lib/commonjs/wayfinding/types/index.js +6 -0
  22. package/lib/commonjs/wayfinding/utils/index.js +12 -0
  23. package/lib/commonjs/wayfinding/utils/mapper.js +204 -0
  24. package/lib/module/index.js +14 -0
  25. package/lib/module/sdk/index.js +904 -0
  26. package/lib/module/sdk/index.js.map +1 -0
  27. package/lib/module/sdk/internaDelegatedState.js +43 -0
  28. package/lib/module/sdk/nativeInterface.js +20 -0
  29. package/lib/module/sdk/types/constants.js +70 -0
  30. package/lib/module/sdk/types/index.js +445 -0
  31. package/lib/module/sdk/utils.js +146 -0
  32. package/lib/module/utils/index.js +4 -0
  33. package/lib/module/utils/logError.js +17 -0
  34. package/lib/module/utils/logError.js.map +1 -0
  35. package/lib/module/wayfinding/components/MapView.js +381 -0
  36. package/lib/module/wayfinding/components/MapView.js.map +1 -0
  37. package/lib/module/wayfinding/hooks/index.js +226 -0
  38. package/lib/module/wayfinding/hooks/index.js.map +1 -0
  39. package/lib/module/wayfinding/index.js +15 -0
  40. package/lib/module/wayfinding/store/index.js +213 -0
  41. package/lib/module/wayfinding/store/index.js.map +1 -0
  42. package/lib/module/wayfinding/store/utils.js +40 -0
  43. package/lib/module/wayfinding/store/utils.js.map +1 -0
  44. package/lib/module/wayfinding/types/constants.js +9 -0
  45. package/lib/module/wayfinding/types/index.js +4 -0
  46. package/lib/module/wayfinding/types/index.js.map +1 -0
  47. package/lib/module/wayfinding/utils/index.js +7 -0
  48. package/lib/module/wayfinding/utils/mapper.js +195 -0
  49. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeEventEmitter","NativeModules","Platform","packageJson","logError","ErrorCode","ErrorType","InternalCall","InternalCallType","SdkNavigationUpdateType","exceptionWrapper","locationErrorAdapter","locationStatusAdapter","promiseWrapper","DelegatedStateManager","LINKING_ERROR","select","ios","default","RNCSitumPlugin","Proxy","get","Error","SitumPluginEventEmitter","positioningRunning","navigationRunning","realtimeSubscriptions","internalMethodCallMapDelegate","_","locationCallbackForNavigation","loc","SitumPlugin","navigationIsRunning","updateNavigationWithLocation","locationCallback","locationStatusCallback","locationStoppedCallback","locationErrorCallback","navigationStartedCallback","navigationProgressCallback","navigationDestinationReachedCallback","navigationOutOfRouteCallback","navigationFinishedCallback","navigationCancellationCallback","navigationErrorCallback","enterGeofencesCallback","exitGeofencesCallback","_internalLocationCallback","getInstance","updateLocation","LOCATION","_internalLocationStatusCallback","status","mapViewStatusName","statusName","updateStatus","LOCATION_STATUS","_internalLocationStoppedCallback","LOCATION_STOPPED","undefined","_internalLocationErrorCallback","error","adaptedError","updateError","LOCATION_ERROR","_internalNavigationStartedCallback","route","NAVIGATION_START","_internalNavigationProgressCallback","progress","NAVIGATION_PROGRESS","_internalNavigationDestinationReachedCallback","NAVIGATION_DESTINATION_REACHED","_internalNavigationOutOfRouteCallback","NAVIGATION_OUT_OF_ROUTE","_internalNavigationFinishedCallback","NAVIGATION_CANCELLATION","_internalNavigationCancellationCallback","_internalNavigationErrorCallback","NAVIGATION_ERROR","_internalEnterGeofencesCallback","data","GEOFENCES_ENTER","_internalExitGeofencesCallback","GEOFENCES_EXIT","_registerCallbacks","callbacksMap","locationChanged","statusChanged","locationStopped","locationError","START","PROGRESS","DESTINATION_REACHED","OUTSIDE_ROUTE","FINISHED","CANCELLATION","ERROR","onEnterGeofences","onExitGeofences","Object","entries","forEach","eventName","callback","console","log","removeAllListeners","addListener","positioningIsRunning","init","initSitumSDK","setApiKey","apiKey","onCallback","response","setUserPass","email","password","setDashboardURL","url","setUseRemoteConfig","useRemoteConfig","setMaxCacheAge","cacheAge","setCacheMaxAge","setConfiguration","options","cacheMaxAge","invalidateCache","sdkVersion","onSuccess","versions","react_native","version","OS","sdkVersions","android","getDeviceId","onError","deviceId","code","UNKNOWN","message","type","CRITICAL","fetchBuildings","fetchBuildingInfo","building","fetchTilesFromBuilding","fetchFloorsFromBuilding","fetchMapFromFloor","floor","fetchGeofencesFromBuilding","fetchPoiCategories","fetchPoiCategoryIconNormal","category","fetchPoiCategoryIconSelected","fetchIndoorPOIsFromBuilding","fetchOutdoorPOIsFromBuilding","requestLocationUpdates","locationRequest","startPositioning","removeLocationUpdates","stopPositioning","success","requestDirections","from","to","directionOptions","params","requestNavigationUpdates","location","removeNavigationUpdates","requestRealTimeUpdates","realtimeUpdates","push","removeRealTimeUpdates","_callback","checkIfPointInsideGeofence","request","configureUserHelper","userHelperOptions","enableUserHelper","enabled","colorScheme","disableUserHelper","updateNavigationState","externalNavigation","validateMapViewProjectSettings","internalSetMethodCallMapDelegate","lastValues","getValues","onLocationUpdate","onLocationStatus","onLocationError","onLocationStopped","onNavigationStart","onNavigationProgress","onNavigationDestinationReached","onNavigationOutOfRoute","onNavigationFinished","onNavigationCancellation","onNavigationError"],"sourceRoot":"../../../src","sources":["sdk/index.ts"],"mappings":";;AAAA;AACA;;AAEA,SAASA,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,OAAOC,WAAW,MAAM,oBAAoB;AAC5C,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,SAOEC,SAAS,EACTC,SAAS,EAGTC,YAAY,QAaP,SAAS;AAChB,SAASC,gBAAgB,EAAEC,uBAAuB,QAAQ,mBAAmB;AAC7E,SACEC,gBAAgB,EAChBC,oBAAoB,EACpBC,qBAAqB,EACrBC,cAAc,QACT,SAAS;AAChB,SAASC,qBAAqB,QAAQ,yBAAyB;AAE/D,cAAc,SAAS;AACvB,cAAc,mBAAmB;AAEjC,MAAMC,aAAa,GACjB,uEAAuE,GACvEb,QAAQ,CAACc,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,cAAc,GACjBlB,aAAa,CAACkB,cAAc,IAC5B,IAAIC,KAAK,CACR,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAA0B;AAE5B,MAAMQ,uBAAuB,GAAG,IAAIvB,kBAAkB,CAACmB,cAAc,CAAC;;AAEtE;AACA,IAAIK,kBAAkB,GAAG,KAAK;AAC9B,IAAIC,iBAAiB,GAAG,KAAK;AAC7B,IAAIC,qBAAqB,GAAG,EAAE;;AAE9B;AACA,IAAIC,6BAA6B,GAAIC,CAAe,IAAK;EACvD;AAAA,CACD;;AAED;AACA,MAAMC,6BAA6B,GAAIC,GAAa,IAAK;EACvD,IAAI,CAACC,WAAW,CAACC,mBAAmB,CAAC,CAAC,EAAE;EACxCD,WAAW,CAACE,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0 +1,43 @@
1
+ "use strict";
2
+
3
+ // Internal state forwarded to the MapView as soon as possible.
4
+
5
+ export class DelegatedStateManager {
6
+ state = {
7
+ location: null,
8
+ status: null,
9
+ error: null
10
+ };
11
+ constructor() {}
12
+ static getInstance() {
13
+ if (!DelegatedStateManager.instance) {
14
+ DelegatedStateManager.instance = new DelegatedStateManager();
15
+ }
16
+ return DelegatedStateManager.instance;
17
+ }
18
+ updateLocation(location) {
19
+ this.state = {
20
+ location,
21
+ status: null,
22
+ error: null
23
+ };
24
+ }
25
+ updateStatus(status) {
26
+ this.state = {
27
+ location: null,
28
+ status,
29
+ error: null
30
+ };
31
+ }
32
+ updateError(error) {
33
+ this.state = {
34
+ location: null,
35
+ status: null,
36
+ error
37
+ };
38
+ }
39
+ getValues() {
40
+ return this.state;
41
+ }
42
+ }
43
+ //# sourceMappingURL=internaDelegatedState.js.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ import { NativeEventEmitter, NativeModules } from "react-native";
4
+ const {
5
+ RNCSitumPlugin
6
+ } = NativeModules;
7
+ if (!RNCSitumPlugin) {
8
+ throw new Error("react-native-situm-plugin: NativeModule is null");
9
+ }
10
+ let nativeEventEmitter = null;
11
+ module.exports = {
12
+ RNCSitumPlugin,
13
+ get SitumPluginEventEmitter() {
14
+ if (!nativeEventEmitter) {
15
+ nativeEventEmitter = new NativeEventEmitter(RNCSitumPlugin);
16
+ }
17
+ return nativeEventEmitter;
18
+ }
19
+ };
20
+ //# sourceMappingURL=nativeInterface.js.map
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ export let NavigationStatus = /*#__PURE__*/function (NavigationStatus) {
4
+ NavigationStatus["START"] = "start";
5
+ NavigationStatus["STOP"] = "stop";
6
+ NavigationStatus["OUT_OF_ROUTE"] = "outOfRoute";
7
+ NavigationStatus["UPDATE"] = "update";
8
+ return NavigationStatus;
9
+ }({});
10
+ export let NavigationUpdateType = /*#__PURE__*/function (NavigationUpdateType) {
11
+ NavigationUpdateType["PROGRESS"] = "PROGRESS";
12
+ NavigationUpdateType["OUT_OF_ROUTE"] = "OUT_OF_ROUTE";
13
+ NavigationUpdateType["DESTINATION_REACHED"] = "DESTINATION_REACHED";
14
+ NavigationUpdateType["CANCELLED"] = "CANCELLED";
15
+ return NavigationUpdateType;
16
+ }({});
17
+ export let SdkNavigationUpdateType = /*#__PURE__*/function (SdkNavigationUpdateType) {
18
+ SdkNavigationUpdateType["START"] = "onNavigationStart";
19
+ SdkNavigationUpdateType["PROGRESS"] = "onNavigationProgress";
20
+ SdkNavigationUpdateType["FINISHED"] = "onNavigationFinished";
21
+ SdkNavigationUpdateType["DESTINATION_REACHED"] = "onNavigationDestinationReached";
22
+ SdkNavigationUpdateType["OUTSIDE_ROUTE"] = "onUserOutsideRoute";
23
+ SdkNavigationUpdateType["CANCELLATION"] = "onNavigationCancellation";
24
+ SdkNavigationUpdateType["ERROR"] = "onNavigationError";
25
+ return SdkNavigationUpdateType;
26
+ }({});
27
+ export let LocationStatusName = /*#__PURE__*/function (LocationStatusName) {
28
+ LocationStatusName["STARTING"] = "STARTING";
29
+ // CALCULATING: removed! The viewer will process STARTING status, not CALCULATING.
30
+ // We want to send the last (valid) known status to the viewer as soon as it is
31
+ // loaded. If we overwrite the STARTING status with CALCULATING, the viewer will not
32
+ // proccess it and it won't show the "positioning..." UI.
33
+ LocationStatusName["USER_NOT_IN_BUILDING"] = "USER_NOT_IN_BUILDING";
34
+ LocationStatusName["STOPPED"] = "STOPPED";
35
+ return LocationStatusName;
36
+ }({});
37
+
38
+ /**
39
+ * Available accessibility modes used in the {@link DirectionsRequest}.
40
+ *
41
+ * @property CHOOSE_SHORTEST The route should choose the best route, without taking into account if it is accessible or not.
42
+ * This option is the default so you don't have to do anything in order to use it
43
+ * @property ONLY_ACCESSIBLE The route should always use accessible nodes.
44
+ * @property ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES The route should never use accessible floor changes (use this to force routes not to use lifts).
45
+ */
46
+ export let AccessibilityMode = /*#__PURE__*/function (AccessibilityMode) {
47
+ AccessibilityMode["CHOOSE_SHORTEST"] = "CHOOSE_SHORTEST";
48
+ AccessibilityMode["ONLY_ACCESSIBLE"] = "ONLY_ACCESSIBLE";
49
+ AccessibilityMode["ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES"] = "ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES";
50
+ return AccessibilityMode;
51
+ }({});
52
+ export let InternalCallType = /*#__PURE__*/function (InternalCallType) {
53
+ InternalCallType["LOCATION"] = "LOCATION";
54
+ InternalCallType["LOCATION_STATUS"] = "LOCATION_STATUS";
55
+ InternalCallType["LOCATION_ERROR"] = "LOCATION_ERROR";
56
+ InternalCallType["LOCATION_STOPPED"] = "LOCATION_STOPPED";
57
+ // TODO: Exists only in RN, delete!
58
+ InternalCallType["NAVIGATION_START"] = "NAVIGATION_START";
59
+ InternalCallType["NAVIGATION_DESTINATION_REACHED"] = "NAVIGATION_DESTINATION_REACHED";
60
+ InternalCallType["NAVIGATION_PROGRESS"] = "NAVIGATION_PROGRESS";
61
+ InternalCallType["NAVIGATION_OUT_OF_ROUTE"] = "NAVIGATION_OUT_OF_ROUTE";
62
+ InternalCallType["NAVIGATION_CANCELLATION"] = "NAVIGATION_CANCELLATION";
63
+ InternalCallType["NAVIGATION_ERROR"] = "NAVIGATION_ERROR";
64
+ InternalCallType["GEOFENCES_ENTER"] = "GEOFENCES_ENTER";
65
+ InternalCallType["GEOFENCES_EXIT"] = "GEOFENCES_EXIT";
66
+ return InternalCallType;
67
+ }({});
68
+ export const CURRENT_USER_LOCATION_ID = -1;
69
+ export const CUSTOM_DESTINATION_LOCATION_ID = -2;
70
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,445 @@
1
+ "use strict";
2
+
3
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
+
5
+ /**
6
+ * @name Building
7
+ * @description A Building object definition
8
+ *
9
+ * @property {string} buildingIdentifier - The unique identifier of the resource
10
+ * @property {string} name - The building name that is appropriate for display to the user.
11
+ * @property {string} address - Te building address.
12
+ * @property {Bounds} bounds - Compute corners of this building, without rotation, in earth coordinates.
13
+ * @property {Bounds} boundsRotated - Compute corners of this building, with rotation, in earth coordinates.
14
+ * @property {Coordinate} center - Center of the building's base, as geographical coordinate.
15
+ * @property {Dimensions} Dimensions - Dimensions of building's base (height and width) in meters.
16
+ * @property {string} infoHtml - Additional information about building, formatted with HTML
17
+ * @property {string} pictureThumbUrl - The URL of building thumbnail image
18
+ * @property {string} pictureUrl - The URL of building image
19
+ * @property {number} rotation - Rotation angle of the building's base, relative to the west-east axis, increasing in counter-clockwise, being 0 the west-east axis.
20
+ * @property {string} userIdentifier - Unique identifier of the owner user of the building
21
+ * @property {object} customFields - Map of custom fields, indexed by their name.
22
+ */
23
+
24
+ /**
25
+ * @name BuildingInfo
26
+ * @description Full information of a building
27
+ *
28
+ * @property {Building} building - Building basic information
29
+ * @property {Floor[]} floors - Array with the information of each floor
30
+ * @property {Poi[]} indoorPOIs - Array with the information of each indoor POI
31
+ * @property {Poi[]} outdoorPOIs - Array with the information of each outdoor POI
32
+ * @property {Geofence} geofences - Array with the information of each geofence
33
+ */
34
+
35
+ /** @name Bounds
36
+ * @description Represents a rectangle bounds in a greographic 2D space.
37
+ *
38
+ * @property {Coordinate} northEast - The coordinate of the north-east corner of the bound.
39
+ * @property {Coordinate} northWest - The coordinate of the north-west corner of the bound.
40
+ * @property {Coordinate} southEast - The coordinate of the south-east corner of the bound.
41
+ * @property {Coordinate} southWest - The coordinate of the south-east corner of the bound.
42
+ */
43
+
44
+ /** @name Dimensions
45
+ * @description Define 2D dimensions of a rectangular area.
46
+ *
47
+ * @property {number} width - Width of rectangle in meters
48
+ * @property {number} height - Height of rectangle in meters.
49
+ */
50
+
51
+ /**
52
+ * @name Coordinate
53
+ * @description A structure that contains geographical coordinate.
54
+ *
55
+ * @property {number} latitude - Latitude in degrees
56
+ * @property {number} longitude - Longitude in degrees
57
+ */
58
+
59
+ /**
60
+ * @name CartesianCoordinate
61
+ * @description A structure that contains cartesian coordinate.
62
+ *
63
+ * @property {number} x - Value of coordinate at x-axis
64
+ * @property {number} y - Value of coordinate at y-axis
65
+ */
66
+
67
+ /**
68
+ * @name Floor
69
+ * @description Floor of a building.
70
+ *
71
+ * @property {number} altitude - Altitude of the floor above ground level, in meters.
72
+ * @property {string} buildingIdentifier - The identifier of building which this floor belongs.
73
+ * @property {number} level - The number of the floor.
74
+ * @property {string} name - The name of the floor
75
+ * @property {string} mapUrl - The floor map image url
76
+ * @property {number} scale - The scale of the floor image, in px/meters
77
+ * @property {string} floorIdentifier - The unique identifier of the resource
78
+ */
79
+
80
+ /**
81
+ * @name POI
82
+ * @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
83
+ *
84
+ * @property {string} identifier - The unique identifier of the resource
85
+ * @property {string} buildingIdentifier - Identifier of building to which the POI belongs.
86
+ * @property {CartesianCoordinate} cartesianCoordinate - Cartesian coordinate of this position, relative to building {@link Bounds}.
87
+ * @property {Coordinate} coordinate - Geographical coordinate of this position
88
+ * @property {string} floorIdentifier - If this POI is outside the building (isOutdoor == true), this field has no meaning.
89
+ * @property {string} poiName - A name for the POI, appropriate for display to the user.
90
+ * @property {Point} position - {@link Point} where the point is located.
91
+ * @property {boolean} isIndoor - Whether the POI is placed outside the building or not.
92
+ * @property {boolean} isOutdoor - Whether the POI is placed outside the building or not.
93
+ * @property {PoiCategory} category - Category of the POI
94
+ * @property {string} infoHtml - Additional information about POI, in HTML
95
+ * @property {object} customFields - Map of custom fields, indexed by their name.
96
+ */
97
+
98
+ /**
99
+ * @name Geofence
100
+ * @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
101
+ *
102
+ * @property {string} identifier - The unique identifier of the resource
103
+ * @property {string} buildingIdentifier - Identifier of building to which the POI belongs.
104
+ * @property {string} floorIdentifier - If this POI is outside the building (isOutdoor == true), this field has no meaning.
105
+ * @property {string} name - A name for the geofence, appropriate for display to the user.
106
+ * @property {string} infoHtml - Additional information about POI, in HTML
107
+ * @property {Point[]} polygonPoints - List of points of that define the area of the geofence
108
+ * @property {object} customFields - Map of custom fields, indexed by their name.
109
+ */
110
+
111
+ /**
112
+ * @name PoiCategory
113
+ * @description Category of Point of Interest.
114
+ *
115
+ * @property {string} poiCategoryCode - Unique code of the category
116
+ * @property {string} poiCategoryName - The category name appropriate for display to the user
117
+ * @property {string} icon_selected - The selected icon url
118
+ * @property {string} icon_unselected - The unselected icon url
119
+ * @property {boolean} public - Whether the category is public or not
120
+ */
121
+
122
+ /**
123
+ * @name PoiIcon
124
+ * @description Category of Point of Interest.
125
+ *
126
+ * @property {string} data - Base64 POI icon image
127
+ */
128
+
129
+ /**
130
+ * @name Point
131
+ * @description Associate geographical coordinate (Location) with Building and Floor (Cartography) and cartesian coordinate relative to that building.
132
+ *
133
+ * @property {string} buildingIdentifier - Unique identifier for the building to which this point belongs
134
+ * @property {CartesianCoordinate} cartesianCoordinate - Cartesian coordinate (in meters) relative to the Bounds of building's base.
135
+ * @property {Coordinate} coordinate - Geographic coordinate (latitude, longitude) of the point, regardless of whether it's placed inside or outside the building.
136
+ * @property {string} floorIdentifier - Floor identifier (inside the building) where this point is placed.
137
+ * @property {boolean} isIndoor - If the POI is inside the building.
138
+ * @property {boolean} idOutdoor - If the POI is outside the building.
139
+ */
140
+
141
+ /**
142
+ * @name Route
143
+ * @description Route between two points.
144
+ *
145
+ * @property {Poi} poiTo - The destination Poi the user is currently navigating to.
146
+ * @property {RouteStep[]} edges - Ordered list of steps to go to the goal point
147
+ * @property {RouteStep} firstStep - First step
148
+ * @property {Point} from - Point where the route starts.
149
+ * @property {Indication} indications - Ordered list of instructions to go to the destination
150
+ * @property {RouteStep} lastStep - Last step
151
+ * @property {Point[]} nodes - A collection of points of the route (not ordered)
152
+ * @property {Point[]} points - List of ordered points of the route
153
+ * @property {Point} to - Last point and goal of the route.
154
+ * @property {RouteStep[]} steps - Ordered list of steps to go to the goal point
155
+ * @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
156
+ */
157
+
158
+ /**
159
+ * @name RouteStep
160
+ * @description A fragment of a route, described by the initial point from and the last point to of the fragment, and some information about the step within the route.
161
+ *
162
+ * @property {number} distance - Distance between from and to in meters.
163
+ * @property {number} distanceToGoal - Distance in meters between the start point of this step (from) and the last point in the route ('to' of the last step).
164
+ * @property {Point} from - Start point of this step.
165
+ * @property {number} id - Position of this RouteStep in the list of steps (Route.steps) of the route to which it belongs.
166
+ * @property {Point} to - End point of this step.
167
+ * @property {boolean} isFirst - Returns true if this is the first step in the route.
168
+ * @property {boolean} isLast - Returns true if this is the last step in the route.
169
+ */
170
+
171
+ /**
172
+ * @name RouteSegment
173
+ * @description A fragment of a route, described by a floor identifier and a list of consecutive points from the same floor
174
+ *
175
+ * @property {string} floorIdentifier - Identifier of the floor containing the points in this segment
176
+ * @property {Point[]} points - Consecutive points in the same floor forming a path
177
+ */
178
+
179
+ /**
180
+ * @name Indication
181
+ * @description Represents the instruction that a user should follow when on a RouteStep to continue the route.
182
+ *
183
+ * @property {number} distance - The distance between the origin and destination
184
+ * @property {number} distanceToNextLevel - The number of levels between the origin and destination
185
+ * @property {string} indicationType - The Indication.Action of the instruction as String
186
+ * @property {number} orientation - The angle a user should change his direction in order to go from the origin to the destination.
187
+ * @property {string} orientationType - The Indication.Orientation of the instruction as String
188
+ * @property {number} stepIdxDestination - The index of the indication's step of destination.
189
+ * @property {number} stepIdxOrigin - The index of the indication's step of origin
190
+ * @property {boolean} neededLevelChange - If the user should change the level in order to arrive at the destination.
191
+ */
192
+
193
+ /**
194
+ * @name NavigationProgress
195
+ * @description Provides information of the progress of a user while following a route.
196
+ *
197
+ * @property {Location} closestLocationInRoute - Closest location in the route from the user location provided .
198
+ * @property {number} distanceToClosestPointInRoute - Distance between the real user location (provided to updateWithLocation(Location)) and the closest route location.
199
+ * @property {Indication} currentIndication - The current indication.
200
+ * @property {Indication} nextIndication - The next indication.
201
+ * @property {number} currentStepIndex - The index of the closest route step to the user, where closestLocationInRoute is.
202
+ * @property {number} distanceToGoal - The distance in meters from closestLocationInRoute to route's goal point.
203
+ * @property {number} distanceToEndStep - The distance in meters to go from closestLocationInRoute to the end of the current step.
204
+ * @property {number} timeToEndStep - The estimated time to go from closestLocationInRoute to the end of the current route step, considering a speed of 1 meter/second.
205
+ * @property {number} timeToGoal - The estimated time to go from closestLocationInRoute to the goal/end of route, considering a speed of 1 meter/second.
206
+ * @property {RouteStep} routeStep - The closest route step to the user, where closestLocationInRoute is.
207
+ * @property {Point[]} points - List of ordered points of the remaining route
208
+ * @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
209
+ */
210
+
211
+ /**
212
+ * @name LocationRequest
213
+ * @description A data object that contains parameters for the location service, LocationManager.
214
+ *
215
+ * @property {number} buildingIdentifier - Identifier of the building on which the positioning will be started
216
+ * @property {number} interval - Default interval (in milliseconds) to notify location updates
217
+ * @property {string} indoorProvider - Default indoor provider. Possible values are INPHONE and SUPPORT
218
+ * @property {boolean} useBle - Defines whether or not to use BLE for positioning
219
+ * @property {boolean} useWifi - Defines whether or not to use Wi-Fi for positioning
220
+ * @property {boolean} useGps - Defines whether or not to use GPS for indoor positioning
221
+ * @property {boolean} useBarometer - Defines whether or not to use the barometer for indoor positioning
222
+ * @property {string} motionMode - Default motion mode. Possible values are BY_CAR, BY_FOOT, and RADIOMAX
223
+ * @property {boolean} useForegroundService - Defines whether or not to activate the {@link http://developers.situm.es/pages/android/using_situm_sdk_background.html foreground service}
224
+ * @property {boolean} useDeadReckoning - Defines whether or not to use dead reckoning to get fast position updates using only the inertial sensors, between the server position updates.
225
+ * @property {OutdoorLocationOptions} outdoorLocationOptions - Outdoor location options. Only used in an indoor/outdoor request
226
+ * @property {BeaconFilter[]} beaconFilters - Deprecated - Beacon filters to be handled during scan time, otherwise only Situm beacons will be scanned. Can be invoked multiple times to add as much beacon filters as you want. The SitumSDK now does it automatically
227
+ * @property {number} smallestDisplacement - Default smallest displacement to notify location updates
228
+ * @property {string} realtimeUpdateInterval - Default interval to send locations to the Realtime. Possible values are REALTIME, FAST, NORMAL, SLOW, and BATTERY_SAVER
229
+ * @property {ForegroundServiceNotificationOptions} foregroundServiceNotificationOptions - Used to configure the notification options for a foreground service, allowing the definition of the title, message, stop button, button text, and the {@link ForegroundServiceNotificationsTapAction}.
230
+ */
231
+
232
+ /**
233
+ * A data object that let you customize the Foreground Service Notification
234
+ * that will be shown in the system's tray when the app is running as a
235
+ * Foreground Service.
236
+ * To be used with {@link LocationRequest}.
237
+ * Only applies for Android.
238
+ * @property {ForegroundServiceNotificationOptions} foregroundServiceNotificationOptions
239
+ */
240
+
241
+ /**
242
+ * @name ForegroundServiceNotificationsTapAction
243
+ * @description Predefined actions performed when tapping the Situm Foreground Service Notification.
244
+ */
245
+ export let ForegroundServiceNotificationsTapAction = /*#__PURE__*/function (ForegroundServiceNotificationsTapAction) {
246
+ /**
247
+ * Launch the app's main activity using the information returned by android.content.pm.PackageManager#getLaunchIntentForPackage(String).
248
+ */
249
+ ForegroundServiceNotificationsTapAction["LaunchApp"] = "LAUNCH_APP";
250
+ /**
251
+ * Launch the operating system settings screen for the current app.
252
+ */
253
+ ForegroundServiceNotificationsTapAction["LaunchSettings"] = "LAUNCH_SETTINGS";
254
+ /**
255
+ * Do nothing when tapping the notification.
256
+ */
257
+ ForegroundServiceNotificationsTapAction["DoNothing"] = "DO_NOTHING";
258
+ return ForegroundServiceNotificationsTapAction;
259
+ }({});
260
+
261
+ /**
262
+ * @name NavigationRequest
263
+ * @description A data object that contains the request for navigation.
264
+ *
265
+ * @property {number} distanceToGoalThreshold - Distance threshold to consider reaching the goal (meters).
266
+ * @property {number} distanceToIgnoreFirstIndication - Maximum distance to ignore the first indication when navigating (meters).
267
+ * @property {number} distanceToFloorChangeThreshold - Distance threshold from when a floor change is considered reached (meters).
268
+ * @property {number} distanceToChangeIndicationThreshold - Distance threshold to change the indication (meters).
269
+ * @property {boolean} ignoreLowQualityLocations - Ignore low-quality locations.
270
+ * @property {number} indicationsInterval - Interval between indications (milliseconds).
271
+ * @property {number} outsideRouteThreshold - Distance threshold to consider being outside the route (meters).
272
+ * @property {number} roundIndicationsStep - Step to round indications (meters).
273
+ * @property {number} timeToFirstIndication - Time to wait until the first indication is returned (milliseconds).
274
+ * @property {number} timeToIgnoreUnexpectedFloorChanges - Time to ignore the locations received during navigation, when the next indication is a floor change,
275
+ * if the locations are on a wrong floor (not in origin or destination floors) (milliseconds).
276
+ */
277
+
278
+ /**
279
+ * @name DirectionsRequest
280
+ * @description A data object that contains the request for directions.
281
+ *
282
+ * @property {Building} positioningBuilding
283
+ * @property {Point|Location} from - Current user's position as the starting point of the route.
284
+ * @property {Point|Poi} to - Point to, where the route should end.
285
+ * @property {DirectionsOptions} options - Options that can be added to the request.
286
+ */
287
+
288
+ /**
289
+ * @name DirectionsOptions
290
+ * @description A data object that contains the directions options.
291
+ *
292
+ * @property {boolean} minimizeFloorChanges - Defines wheter or not the route should be calculated minimizing the floor changes even if the result is longer.
293
+ * @property {string} accessibilityMode - Defines the accessibility mode of the route. Possible values are: CHOOSE_SHORTEST, ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES, ONLY_ACCESSIBLE
294
+ * @property {number} startingAngle - Current user's orientation in degrees.
295
+ * @property {String[]} includedTags List of tags that you want to use when calculating a route. Only the tags added here will be used. If there are other tags in the graph they won't be used. The edges without a tag will be used. If you don't set nothing all the graph will be used to calculate the route. You can learn more about this topic on https://situm.com/docs/cartography-management/#tags
296
+ * @property {String[]} excludedTags List of tags that you want your route to avoid. If you exclude a tag the route will never pass through an edge that have this tag. If the route can only be generated passing through an edge with this tag the route calculation will fail. You can learn more about this topic on https://situm.com/docs/cartography-management/#tags.
297
+ */
298
+
299
+ /**
300
+ * @name OutdoorLocationOptions
301
+ * @description Outdoor location options are only used in indoor-outdoor mode (Only available for Android)
302
+ *
303
+ * @property {boolean} continuousMode - Environment detection continuous mode (true) or burst mode (false).
304
+ * @property {boolean} userDefinedThreshold
305
+ * @property {number} burstInterval - Interval to scan for GPS and detect the environment (in seconds).
306
+ * @property {number} averageSnrThreshold
307
+ */
308
+
309
+ /**
310
+ * @name BeaconFilter
311
+ * @description Represents a BLE filter. Now the only field is the BLE proximity UUID
312
+ *
313
+ * @property {string} uuid - Assigns the proximity UUID
314
+ */
315
+
316
+ /**
317
+ * @name RealTimeRequest
318
+ * @description A data object that contains the parameters to process realtime data of the users.
319
+ *
320
+ * @property {Building} building object
321
+ * @property {int} pollTime - Interval in milliseconds (minimum is 3000ms).
322
+ */
323
+
324
+ /**
325
+ * @name RealTimeData
326
+ * @description A data object that contains information of the location of users in realtime.
327
+ *
328
+ * @property {Array<Location>} locations object
329
+ */
330
+
331
+ /**
332
+ * @name SdkVersion
333
+ * @description Represents the version information of the SDK and its compatibility with different platforms.
334
+ *
335
+ * @type
336
+ * @property {string} react_native - The version of React Native used in the SDK.
337
+ * @property {string} [ios] - Optional. The specific version of the Situm SDK for the iOS platform.
338
+ * @property {string} [android] - Optional. The specific version of the Situm SDK for the Android platform.
339
+ */
340
+
341
+ /**
342
+ * @name ConfigurationOptions
343
+ * @description Configuration options for initializing the SDK or other modules.
344
+ *
345
+ * @type
346
+ * @property {boolean} [useRemoteConfig] - Optional. Determines whether to use Remote Configuration settings.
347
+ * @property {number} [cacheMaxAge] - Optional. The maximum age of the cache in seconds.
348
+ */
349
+
350
+ /**
351
+ * @name Location
352
+ * @description Represents a location with various attributes including position, accuracy, and bearing.
353
+ *
354
+ * @interface
355
+ * @property {Position} [position] - Optional. The position information of the location.
356
+ * @property {number} [accuracy] - Optional. The accuracy of the location information in meters.
357
+ * @property {Object} [bearing] - Optional. Bearing information including degrees and degreesClockwise.
358
+ * @property {boolean} [hasBearing] - Optional. Indicates if bearing information is available.
359
+ */
360
+
361
+ /**
362
+ * @name LocationStatus
363
+ * @description Represents the status of a location, including a name and a numeric code.
364
+ *
365
+ * @interface
366
+ * @property {LocationStatusName} statusName - The name of the location status.
367
+ * @property {number} statusCode - The numeric code representing the location status.
368
+ */
369
+
370
+ /**
371
+ * @name ErrorType
372
+ * @description Enumeration of error types to categorize the severity of errors.
373
+ *
374
+ * @enum {string}
375
+ * @property {string} CRITICAL - Represents critical errors that will cause the system not to work (e.g. positioning will be stopped).
376
+ * @property {string} NON_CRITICAL - Represents non-critical errors that are less severe.
377
+ */
378
+ export let ErrorType = /*#__PURE__*/function (ErrorType) {
379
+ ErrorType["CRITICAL"] = "CRITICAL";
380
+ ErrorType["NON_CRITICAL"] = "NON_CRITICAL";
381
+ return ErrorType;
382
+ }({});
383
+
384
+ /**
385
+ * @name ErrorCode
386
+ * @description Enumeration of error codes provided by Situm SDK.
387
+ *
388
+ * @enum {string}
389
+ * @property {string} LOCATION_PERMISSION_DENIED - Indicates that location permissions were not granted by the user.
390
+ * @property {string} BLUETOOTH_PERMISSION_DENIED - Indicates that Bluetooth permissions were not granted.
391
+ * @property {string} BLUETOOTH_DISABLED - Indicates that Bluetooth is disabled on the device.
392
+ * @property {string} LOCATION_DISABLED - Indicates that the location services are disabled on the device.
393
+ * @property {string} REDUCED_ACCURACY - Indicates that the precise location has been turned off on the device.
394
+ * @property {string} UNKNOWN - Represents an unknown error or an error that does not fit other categories.
395
+ */
396
+ export let ErrorCode = /*#__PURE__*/function (ErrorCode) {
397
+ ErrorCode["LOCATION_PERMISSION_DENIED"] = "LOCATION_PERMISSION_DENIED";
398
+ ErrorCode["BLUETOOTH_PERMISSION_DENIED"] = "BLUETOOTH_PERMISSION_DENIED";
399
+ ErrorCode["BLUETOOTH_DISABLED"] = "BLUETOOTH_DISABLED";
400
+ ErrorCode["LOCATION_DISABLED"] = "LOCATION_DISABLED";
401
+ ErrorCode["REDUCED_ACCURACY"] = "REDUCED_ACCURACY";
402
+ ErrorCode["UNKNOWN"] = "UNKNOWN";
403
+ return ErrorCode;
404
+ }({});
405
+
406
+ /**
407
+ * @name Error
408
+ * @description Represents an error with a specific code, message, and type.
409
+ *
410
+ * @interface
411
+ * @property {ErrorCode} code - The specific error code associated with this error.
412
+ * @property {string} message - A descriptive message providing more details about the error.
413
+ * @property {ErrorType} type - The type of the error indicating its severity (critical or non-critical).
414
+ */
415
+
416
+ // TODO: add types
417
+
418
+ export class InternalCall {
419
+ constructor(type, data) {
420
+ this.type = type;
421
+ this.data = data;
422
+ }
423
+ get() {
424
+ return this.data;
425
+ }
426
+ }
427
+
428
+ /**
429
+ * @name
430
+ * UserHelperColorScheme
431
+ * @description
432
+ * Color scheme for the user helper UI.
433
+ * @property {string} primaryColor - Primary color for the user helper UI. Use HEX color code (e.g. "#ff5733").
434
+ * @property {string} secondaryColor - Secondary color for the user helper UI. Use HEX color code (e.g. "#ff5733").
435
+ */
436
+
437
+ /**
438
+ * @name
439
+ * UserHelperOptions
440
+ * @description
441
+ * Configuration options for the user helper.
442
+ * @property {boolean} enabled - Whether the user helper is enabled. Equivalent to the underlying native SitumSdk.userHelperManager#autoManage(true).
443
+ * @property {UserHelperColorScheme} colorScheme - Color scheme for the user helper UI.
444
+ */
445
+ //# sourceMappingURL=index.js.map