@situm/react-native 3.15.0-beta.5 → 3.15.1-beta.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.
- package/README.md +187 -0
- package/lib/commonjs/index.js +1 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/sdk/index.js +22 -12
- package/lib/commonjs/sdk/index.js.map +1 -1
- package/lib/commonjs/sdk/types/index.js +99 -342
- package/lib/commonjs/sdk/types/index.js.map +1 -1
- package/lib/commonjs/wayfinding/components/MapView.js +1 -2
- package/lib/commonjs/wayfinding/components/MapView.js.map +1 -1
- package/lib/commonjs/wayfinding/store/index.js +1 -2
- package/lib/commonjs/wayfinding/store/index.js.map +1 -1
- package/lib/module/sdk/index.js +22 -12
- package/lib/module/sdk/index.js.map +1 -1
- package/lib/module/sdk/types/index.js +90 -333
- package/lib/module/sdk/types/index.js.map +1 -1
- package/lib/typescript/sdk/index.d.ts +11 -11
- package/lib/typescript/sdk/index.d.ts.map +1 -1
- package/lib/typescript/sdk/types/index.d.ts +224 -289
- package/lib/typescript/sdk/types/index.d.ts.map +1 -1
- package/lib/typescript/wayfinding/components/MapView.d.ts +2 -2
- package/package.json +5 -5
- package/src/sdk/index.ts +21 -12
- package/src/sdk/types/index.ts +224 -295
- package/src/wayfinding/components/MapView.tsx +2 -2
|
@@ -1,370 +1,337 @@
|
|
|
1
1
|
import type { AccessibilityMode, InternalCallType, LocationStatusName, SdkNavigationUpdateType } from "./constants";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @description A Building object definition
|
|
5
|
-
*
|
|
6
|
-
* @property {string} buildingIdentifier - The unique identifier of the resource
|
|
7
|
-
* @property {string} name - The building name that is appropriate for display to the user.
|
|
8
|
-
* @property {string} address - Te building address.
|
|
9
|
-
* @property {Bounds} bounds - Compute corners of this building, without rotation, in earth coordinates.
|
|
10
|
-
* @property {Bounds} boundsRotated - Compute corners of this building, with rotation, in earth coordinates.
|
|
11
|
-
* @property {Coordinate} center - Center of the building's base, as geographical coordinate.
|
|
12
|
-
* @property {Dimensions} Dimensions - Dimensions of building's base (height and width) in meters.
|
|
13
|
-
* @property {string} infoHtml - Additional information about building, formatted with HTML
|
|
14
|
-
* @property {string} pictureThumbUrl - The URL of building thumbnail image
|
|
15
|
-
* @property {string} pictureUrl - The URL of building image
|
|
16
|
-
* @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.
|
|
17
|
-
* @property {string} userIdentifier - Unique identifier of the owner user of the building
|
|
18
|
-
* @property {object} customFields - Map of custom fields, indexed by their name.
|
|
3
|
+
* A Building object definition.
|
|
19
4
|
*/
|
|
20
5
|
export type Building = {
|
|
6
|
+
/** The unique identifier of the resource */
|
|
21
7
|
buildingIdentifier: string;
|
|
8
|
+
/** The building name that is appropriate for display to the user. */
|
|
22
9
|
name: string;
|
|
10
|
+
/** The building address. */
|
|
23
11
|
address: string;
|
|
12
|
+
/** Compute corners of this building, without rotation, in earth coordinates. */
|
|
24
13
|
bounds: Bounds;
|
|
14
|
+
/** Compute corners of this building, with rotation, in earth coordinates. */
|
|
25
15
|
boundsRotated: Bounds;
|
|
16
|
+
/** Center of the building's base, as geographical coordinate. */
|
|
26
17
|
center: Coordinate;
|
|
18
|
+
/** Dimensions of building's base (height and width) in meters. */
|
|
27
19
|
dimensions: Dimensions;
|
|
20
|
+
/** Additional information about building, formatted with HTML. */
|
|
28
21
|
infoHtml: string;
|
|
22
|
+
/** The URL of building thumbnail image. */
|
|
29
23
|
pictureThumbUrl: string;
|
|
24
|
+
/** The URL of building image. */
|
|
30
25
|
pictureUrl: string;
|
|
26
|
+
/** Rotation angle of the building's base, relative to west-east axis. */
|
|
31
27
|
rotation: number;
|
|
28
|
+
/** Unique identifier of the owner user of the building. */
|
|
32
29
|
userIdentifier: string;
|
|
30
|
+
/** Map of custom fields, indexed by their name. */
|
|
33
31
|
customFields: object;
|
|
34
32
|
};
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @description Full information of a building
|
|
38
|
-
*
|
|
39
|
-
* @property {Building} building - Building basic information
|
|
40
|
-
* @property {Floor[]} floors - Array with the information of each floor
|
|
41
|
-
* @property {Poi[]} indoorPOIs - Array with the information of each indoor POI
|
|
42
|
-
* @property {Poi[]} outdoorPOIs - Array with the information of each outdoor POI
|
|
43
|
-
* @property {Geofence} geofences - Array with the information of each geofence
|
|
34
|
+
* Full information of a building
|
|
44
35
|
*/
|
|
45
36
|
export type BuildingInfo = {
|
|
37
|
+
/** Building basic information */
|
|
46
38
|
building: Building;
|
|
39
|
+
/** Array with the information of each floor */
|
|
47
40
|
floors: Floor[];
|
|
41
|
+
/** Array with the information of each indoor POI */
|
|
48
42
|
indoorPOIs: Poi[];
|
|
43
|
+
/** Array with the information of each outdoor POI */
|
|
49
44
|
outdoorPOIs: Poi[];
|
|
45
|
+
/** Array with the information of each geofence */
|
|
50
46
|
geofences: Geofence[];
|
|
51
47
|
};
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @property {Coordinate} northEast - The coordinate of the north-east corner of the bound.
|
|
56
|
-
* @property {Coordinate} northWest - The coordinate of the north-west corner of the bound.
|
|
57
|
-
* @property {Coordinate} southEast - The coordinate of the south-east corner of the bound.
|
|
58
|
-
* @property {Coordinate} southWest - The coordinate of the south-east corner of the bound.
|
|
48
|
+
/**
|
|
49
|
+
* Represents a rectangle bounds in a greographic 2D space.
|
|
59
50
|
*/
|
|
60
51
|
export type Bounds = {
|
|
52
|
+
/** The coordinate of the north-east corner of the bound. */
|
|
61
53
|
northEast: Coordinate;
|
|
54
|
+
/** The coordinate of the north-west corner of the bound. */
|
|
62
55
|
northWest: Coordinate;
|
|
56
|
+
/** The coordinate of the south-east corner of the bound. */
|
|
63
57
|
southEast: Coordinate;
|
|
58
|
+
/** The coordinate of the south-east corner of the bound. */
|
|
64
59
|
southWest: Coordinate;
|
|
65
60
|
};
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @property {number} width - Width of rectangle in meters
|
|
70
|
-
* @property {number} height - Height of rectangle in meters.
|
|
61
|
+
/**
|
|
62
|
+
* Define 2D dimensions of a rectangular area.
|
|
71
63
|
*/
|
|
72
64
|
export type Dimensions = {
|
|
65
|
+
/** Width of rectangle in meters */
|
|
73
66
|
width: number;
|
|
67
|
+
/** Height of rectangle in meters */
|
|
74
68
|
height: number;
|
|
75
69
|
};
|
|
76
70
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @description A structure that contains geographical coordinate.
|
|
79
|
-
*
|
|
80
|
-
* @property {number} latitude - Latitude in degrees
|
|
81
|
-
* @property {number} longitude - Longitude in degrees
|
|
71
|
+
* A structure that contains geographical coordinate.
|
|
82
72
|
*/
|
|
83
73
|
export type Coordinate = {
|
|
74
|
+
/** Latitude in degrees */
|
|
84
75
|
latitude: number;
|
|
76
|
+
/** Longitude in degrees */
|
|
85
77
|
longitude: number;
|
|
86
78
|
};
|
|
87
79
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @description A structure that contains cartesian coordinate.
|
|
90
|
-
*
|
|
91
|
-
* @property {number} x - Value of coordinate at x-axis
|
|
92
|
-
* @property {number} y - Value of coordinate at y-axis
|
|
80
|
+
* A structure that contains cartesian coordinate.
|
|
93
81
|
*/
|
|
94
82
|
export type CartesianCoordinate = {
|
|
83
|
+
/** Value of coordinate at x-axis */
|
|
95
84
|
x: number;
|
|
85
|
+
/** Value of coordinate at y-axis */
|
|
96
86
|
y: number;
|
|
97
87
|
};
|
|
98
88
|
/**
|
|
99
|
-
*
|
|
100
|
-
* @description Floor of a building.
|
|
101
|
-
*
|
|
102
|
-
* @property {number} altitude - Altitude of the floor above ground level, in meters.
|
|
103
|
-
* @property {string} buildingIdentifier - The identifier of building which this floor belongs.
|
|
104
|
-
* @property {number} level - The number of the floor.
|
|
105
|
-
* @property {string} name - The name of the floor
|
|
106
|
-
* @property {string} mapUrl - The floor map image url
|
|
107
|
-
* @property {number} scale - The scale of the floor image, in px/meters
|
|
108
|
-
* @property {string} floorIdentifier - The unique identifier of the resource
|
|
89
|
+
* Floor of a building.
|
|
109
90
|
*/
|
|
110
91
|
export type Floor = {
|
|
92
|
+
/** Altitude of the floor above ground level, in meters */
|
|
111
93
|
altitude: number;
|
|
94
|
+
/** The identifier of building which this floor belongs */
|
|
112
95
|
buildingIdentifier: string;
|
|
96
|
+
/** The number of the floor */
|
|
113
97
|
level: number;
|
|
98
|
+
/** The name of the floor */
|
|
114
99
|
name: string;
|
|
100
|
+
/** The floor map image url */
|
|
115
101
|
mapUrl: string;
|
|
102
|
+
/** The scale of the floor image, in px/meters */
|
|
116
103
|
scale: number;
|
|
104
|
+
/** The unique identifier of the resource */
|
|
117
105
|
floorIdentifier: string;
|
|
118
106
|
};
|
|
119
107
|
/**
|
|
120
|
-
*
|
|
121
|
-
* @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
|
|
122
|
-
*
|
|
123
|
-
* @property {string} identifier - The unique identifier of the resource
|
|
124
|
-
* @property {string} buildingIdentifier - Identifier of building to which the POI belongs.
|
|
125
|
-
* @property {CartesianCoordinate} cartesianCoordinate - Cartesian coordinate of this position, relative to building {@link Bounds}.
|
|
126
|
-
* @property {Coordinate} coordinate - Geographical coordinate of this position
|
|
127
|
-
* @property {string} floorIdentifier - If this POI is outside the building (isOutdoor == true), this field has no meaning.
|
|
128
|
-
* @property {string} poiName - A name for the POI, appropriate for display to the user.
|
|
129
|
-
* @property {Point} position - {@link Point} where the point is located.
|
|
130
|
-
* @property {boolean} isIndoor - Whether the POI is placed outside the building or not.
|
|
131
|
-
* @property {boolean} isOutdoor - Whether the POI is placed outside the building or not.
|
|
132
|
-
* @property {PoiCategory} category - Category of the POI
|
|
133
|
-
* @property {string} infoHtml - Additional information about POI, in HTML
|
|
134
|
-
* @property {object} customFields - Map of custom fields, indexed by their name.
|
|
108
|
+
* Point of Interest, associated to a building, regardless of whether it's placed inside or outside the building.
|
|
135
109
|
*/
|
|
136
110
|
export type Poi = {
|
|
111
|
+
/** The unique identifier of the resource */
|
|
137
112
|
identifier: string;
|
|
113
|
+
/** Identifier of building to which the POI belongs */
|
|
138
114
|
buildingIdentifier: string;
|
|
115
|
+
/** Cartesian coordinate of this position, relative to building {@link Bounds} */
|
|
139
116
|
cartesianCoordinate: CartesianCoordinate;
|
|
117
|
+
/** Geographical coordinate of this position */
|
|
140
118
|
coordinate: Coordinate;
|
|
119
|
+
/** If this POI is outside the building (isOutdoor == true), this field has no meaning */
|
|
141
120
|
floorIdentifier: string;
|
|
121
|
+
/** A name for the POI, appropriate for display to the user */
|
|
142
122
|
poiName: string;
|
|
123
|
+
/** {@link Point} where the point is located */
|
|
143
124
|
position: Point;
|
|
125
|
+
/** Whether the POI is placed outside the building or not */
|
|
144
126
|
isIndoor: boolean;
|
|
127
|
+
/** Whether the POI is placed outside the building or not */
|
|
145
128
|
isOutdoor: boolean;
|
|
129
|
+
/** Category of the POI */
|
|
146
130
|
category: PoiCategory;
|
|
131
|
+
/** Additional information about POI, in HTML */
|
|
147
132
|
infoHtml: string;
|
|
133
|
+
/** Map of custom fields, indexed by their name */
|
|
148
134
|
customFields: object;
|
|
149
135
|
};
|
|
150
136
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
|
|
153
|
-
*
|
|
154
|
-
* @property {string} identifier - The unique identifier of the resource
|
|
155
|
-
* @property {string} buildingIdentifier - Identifier of building to which the POI belongs.
|
|
156
|
-
* @property {string} floorIdentifier - If this POI is outside the building (isOutdoor == true), this field has no meaning.
|
|
157
|
-
* @property {string} name - A name for the geofence, appropriate for display to the user.
|
|
158
|
-
* @property {string} infoHtml - Additional information about POI, in HTML
|
|
159
|
-
* @property {Point[]} polygonPoints - List of points of that define the area of the geofence
|
|
160
|
-
* @property {object} customFields - Map of custom fields, indexed by their name.
|
|
137
|
+
* Point of Interest, associated to a building, regardless of whether it's placed inside or outside the building.
|
|
161
138
|
*/
|
|
162
139
|
export type Geofence = {
|
|
140
|
+
/** The unique identifier of the resource */
|
|
163
141
|
identifier: string;
|
|
142
|
+
/** Identifier of building to which the POI belongs */
|
|
164
143
|
buildingIdentifier: string;
|
|
144
|
+
/** If this POI is outside the building (isOutdoor == true), this field has no meaning */
|
|
165
145
|
floorIdentifier: string;
|
|
146
|
+
/** A name for the geofence, appropriate for display to the user */
|
|
147
|
+
name: string;
|
|
148
|
+
/** Additional information about POI, in HTML */
|
|
166
149
|
infoHtml: string;
|
|
150
|
+
/** List of points of that define the area of the geofence */
|
|
167
151
|
polygonPoints: Point[];
|
|
152
|
+
/** Map of custom fields, indexed by their name */
|
|
168
153
|
customFields: object;
|
|
169
|
-
name: string;
|
|
170
154
|
};
|
|
171
155
|
/**
|
|
172
|
-
*
|
|
173
|
-
* @description Category of Point of Interest.
|
|
174
|
-
*
|
|
175
|
-
* @property {string} poiCategoryCode - Unique code of the category
|
|
176
|
-
* @property {string} poiCategoryName - The category name appropriate for display to the user
|
|
177
|
-
* @property {string} icon_selected - The selected icon url
|
|
178
|
-
* @property {string} icon_unselected - The unselected icon url
|
|
179
|
-
* @property {boolean} public - Whether the category is public or not
|
|
156
|
+
* Category of Point of Interest.
|
|
180
157
|
*/
|
|
181
158
|
export type PoiCategory = {
|
|
159
|
+
/** Unique code of the category */
|
|
182
160
|
poiCategoryCode: string;
|
|
161
|
+
/** The category name appropriate for display to the user */
|
|
183
162
|
poiCategoryName: string;
|
|
163
|
+
/** The selected icon url */
|
|
184
164
|
icon_selected: string;
|
|
165
|
+
/** The unselected icon url */
|
|
185
166
|
icon_unselected: string;
|
|
167
|
+
/** Whether the category is public or not */
|
|
186
168
|
isPublic: boolean;
|
|
187
169
|
};
|
|
188
170
|
/**
|
|
189
|
-
*
|
|
190
|
-
* @description Category of Point of Interest.
|
|
191
|
-
*
|
|
192
|
-
* @property {string} data - Base64 POI icon image
|
|
171
|
+
* Category of Point of Interest.
|
|
193
172
|
*/
|
|
194
173
|
export type PoiIcon = {
|
|
174
|
+
/** Base64 POI icon image */
|
|
195
175
|
data: string;
|
|
196
176
|
};
|
|
197
177
|
/**
|
|
198
|
-
*
|
|
199
|
-
* @description Associate geographical coordinate (Location) with Building and Floor (Cartography) and cartesian coordinate relative to that building.
|
|
200
|
-
*
|
|
201
|
-
* @property {string} buildingIdentifier - Unique identifier for the building to which this point belongs
|
|
202
|
-
* @property {CartesianCoordinate} cartesianCoordinate - Cartesian coordinate (in meters) relative to the Bounds of building's base.
|
|
203
|
-
* @property {Coordinate} coordinate - Geographic coordinate (latitude, longitude) of the point, regardless of whether it's placed inside or outside the building.
|
|
204
|
-
* @property {string} floorIdentifier - Floor identifier (inside the building) where this point is placed.
|
|
205
|
-
* @property {boolean} isIndoor - If the POI is inside the building.
|
|
206
|
-
* @property {boolean} idOutdoor - If the POI is outside the building.
|
|
178
|
+
* Associate geographical coordinate (Location) with Building and Floor (Cartography) and cartesian coordinate relative to that building.
|
|
207
179
|
*/
|
|
208
180
|
export type Point = {
|
|
181
|
+
/** Unique identifier for the building to which this point belongs */
|
|
209
182
|
buildingIdentifier: string;
|
|
183
|
+
/** Cartesian coordinate (in meters) relative to the Bounds of building's base */
|
|
210
184
|
cartesianCoordinate: CartesianCoordinate;
|
|
185
|
+
/** Geographic coordinate (latitude, longitude) of the point, regardless of whether it's placed inside or outside the building */
|
|
211
186
|
coordinate: Coordinate;
|
|
187
|
+
/** Floor identifier (inside the building) where this point is placed */
|
|
212
188
|
floorIdentifier: string;
|
|
189
|
+
/** If the POI is inside the building */
|
|
213
190
|
isIndoor?: boolean;
|
|
191
|
+
/** If the POI is outside the building */
|
|
214
192
|
isOutdoor?: boolean;
|
|
215
193
|
};
|
|
216
194
|
/**
|
|
217
|
-
*
|
|
218
|
-
* @description Route between two points.
|
|
219
|
-
*
|
|
220
|
-
* @property {Poi} poiTo - The destination Poi the user is currently navigating to.
|
|
221
|
-
* @property {RouteStep[]} edges - Ordered list of steps to go to the goal point
|
|
222
|
-
* @property {RouteStep} firstStep - First step
|
|
223
|
-
* @property {Point} from - Point where the route starts.
|
|
224
|
-
* @property {Indication} indications - Ordered list of instructions to go to the destination
|
|
225
|
-
* @property {RouteStep} lastStep - Last step
|
|
226
|
-
* @property {Point[]} nodes - A collection of points of the route (not ordered)
|
|
227
|
-
* @property {Point[]} points - List of ordered points of the route
|
|
228
|
-
* @property {Point} to - Last point and goal of the route.
|
|
229
|
-
* @property {RouteStep[]} steps - Ordered list of steps to go to the goal point
|
|
230
|
-
* @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
|
|
195
|
+
* Route between two points.
|
|
231
196
|
*/
|
|
232
197
|
export type Route = {
|
|
198
|
+
/** The destination Poi the user is currently navigating to */
|
|
233
199
|
poiTo?: Poi;
|
|
200
|
+
/** Ordered list of steps to go to the goal point */
|
|
234
201
|
edges: RouteStep[];
|
|
202
|
+
/** First step */
|
|
235
203
|
firstStep: RouteStep;
|
|
204
|
+
/** Point where the route starts */
|
|
236
205
|
from: Point;
|
|
206
|
+
/** Ordered list of instructions to go to the destination */
|
|
237
207
|
indications: Indication;
|
|
208
|
+
/** Last step */
|
|
238
209
|
lastStep: RouteStep;
|
|
210
|
+
/** A collection of points of the route (not ordered) */
|
|
239
211
|
nodes: Point[];
|
|
212
|
+
/** List of ordered points of the route */
|
|
240
213
|
points: Point[];
|
|
214
|
+
/** Last point and goal of the route */
|
|
241
215
|
to: Point;
|
|
216
|
+
/** Ordered list of steps to go to the goal point */
|
|
242
217
|
steps: RouteStep[];
|
|
218
|
+
/** List of segments formed by consecutive points and a floor identifier */
|
|
243
219
|
segments: RouteSegment[];
|
|
244
220
|
};
|
|
245
221
|
/**
|
|
246
|
-
*
|
|
247
|
-
* @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.
|
|
248
|
-
*
|
|
249
|
-
* @property {number} distance - Distance between from and to in meters.
|
|
250
|
-
* @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).
|
|
251
|
-
* @property {Point} from - Start point of this step.
|
|
252
|
-
* @property {number} id - Position of this RouteStep in the list of steps (Route.steps) of the route to which it belongs.
|
|
253
|
-
* @property {Point} to - End point of this step.
|
|
254
|
-
* @property {boolean} isFirst - Returns true if this is the first step in the route.
|
|
255
|
-
* @property {boolean} isLast - Returns true if this is the last step in the route.
|
|
222
|
+
* 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.
|
|
256
223
|
*/
|
|
257
224
|
export type RouteStep = {
|
|
225
|
+
/** Distance between from and to in meters */
|
|
258
226
|
distance: number;
|
|
227
|
+
/** Distance in meters between the start point of this step (from) and the last point in the route ('to' of the last step) */
|
|
259
228
|
distanceToGoal: number;
|
|
229
|
+
/** Start point of this step */
|
|
260
230
|
from: Point;
|
|
231
|
+
/** Position of this RouteStep in the list of steps (Route.steps) of the route to which it belongs */
|
|
261
232
|
id: number;
|
|
233
|
+
/** End point of this step */
|
|
262
234
|
to: Point;
|
|
235
|
+
/** Returns true if this is the first step in the route */
|
|
263
236
|
isFirst: boolean;
|
|
237
|
+
/** Returns true if this is the last step in the route */
|
|
264
238
|
isLast: boolean;
|
|
265
239
|
};
|
|
266
240
|
/**
|
|
267
|
-
*
|
|
268
|
-
* @description A fragment of a route, described by a floor identifier and a list of consecutive points from the same floor
|
|
269
|
-
*
|
|
270
|
-
* @property {string} floorIdentifier - Identifier of the floor containing the points in this segment
|
|
271
|
-
* @property {Point[]} points - Consecutive points in the same floor forming a path
|
|
241
|
+
* A fragment of a route, described by a floor identifier and a list of consecutive points from the same floor
|
|
272
242
|
*/
|
|
273
243
|
export type RouteSegment = {
|
|
244
|
+
/** Identifier of the floor containing the points in this segment */
|
|
274
245
|
floorIdentifier: string;
|
|
246
|
+
/** Consecutive points in the same floor forming a path */
|
|
275
247
|
points: Point[];
|
|
276
248
|
};
|
|
277
249
|
/**
|
|
278
|
-
*
|
|
279
|
-
* @description Represents the instruction that a user should follow when on a RouteStep to continue the route.
|
|
280
|
-
*
|
|
281
|
-
* @property {number} distance - The distance between the origin and destination
|
|
282
|
-
* @property {number} distanceToNextLevel - The number of levels between the origin and destination
|
|
283
|
-
* @property {string} indicationType - The Indication.Action of the instruction as String
|
|
284
|
-
* @property {number} orientation - The angle a user should change his direction in order to go from the origin to the destination.
|
|
285
|
-
* @property {string} orientationType - The Indication.Orientation of the instruction as String
|
|
286
|
-
* @property {number} stepIdxDestination - The index of the indication's step of destination.
|
|
287
|
-
* @property {number} stepIdxOrigin - The index of the indication's step of origin
|
|
288
|
-
* @property {boolean} neededLevelChange - If the user should change the level in order to arrive at the destination.
|
|
250
|
+
* Represents the instruction that a user should follow when on a RouteStep to continue the route.
|
|
289
251
|
*/
|
|
290
252
|
export type Indication = {
|
|
253
|
+
/** The distance between the origin and destination */
|
|
291
254
|
distance: number;
|
|
255
|
+
/** The number of levels between the origin and destination */
|
|
292
256
|
distanceToNextLevel: number;
|
|
257
|
+
/** The Indication.Action of the instruction as String */
|
|
293
258
|
indicationType: string;
|
|
259
|
+
/** If the user should change the level in order to arrive at the destination */
|
|
294
260
|
neededLevelChange: boolean;
|
|
261
|
+
/** The angle a user should change his direction in order to go from the origin to the destination */
|
|
295
262
|
orientation: number;
|
|
263
|
+
/** The Indication.Orientation of the instruction as String */
|
|
296
264
|
orientationType: string;
|
|
265
|
+
/** The index of the indication's step of destination */
|
|
297
266
|
stepIdxDestination: number;
|
|
267
|
+
/** The index of the indication's step of origin */
|
|
298
268
|
stepIdxOrigin: number;
|
|
299
269
|
};
|
|
300
270
|
/**
|
|
301
|
-
*
|
|
302
|
-
* @description Provides information of the progress of a user while following a route.
|
|
303
|
-
*
|
|
304
|
-
* @property {Location} closestLocationInRoute - Closest location in the route from the user location provided .
|
|
305
|
-
* @property {number} distanceToClosestPointInRoute - Distance between the real user location (provided to updateWithLocation(Location)) and the closest route location.
|
|
306
|
-
* @property {Indication} currentIndication - The current indication.
|
|
307
|
-
* @property {Indication} nextIndication - The next indication.
|
|
308
|
-
* @property {number} currentStepIndex - The index of the closest route step to the user, where closestLocationInRoute is.
|
|
309
|
-
* @property {number} distanceToGoal - The distance in meters from closestLocationInRoute to route's goal point.
|
|
310
|
-
* @property {number} distanceToEndStep - The distance in meters to go from closestLocationInRoute to the end of the current step.
|
|
311
|
-
* @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.
|
|
312
|
-
* @property {number} timeToGoal - The estimated time to go from closestLocationInRoute to the goal/end of route, considering a speed of 1 meter/second.
|
|
313
|
-
* @property {RouteStep} routeStep - The closest route step to the user, where closestLocationInRoute is.
|
|
314
|
-
* @property {Point[]} points - List of ordered points of the remaining route
|
|
315
|
-
* @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
|
|
271
|
+
* Provides information of the progress of a user while following a route.
|
|
316
272
|
*/
|
|
317
273
|
export type NavigationProgress = {
|
|
274
|
+
/** Closest location in the route from the user location provided */
|
|
318
275
|
closestLocationInRoute: Location;
|
|
276
|
+
/** The current indication */
|
|
319
277
|
currentIndication: number;
|
|
278
|
+
/** The index of the closest route step to the user, where closestLocationInRoute is */
|
|
320
279
|
currentStepIndex: number;
|
|
280
|
+
/** Distance between the real user location (provided to updateWithLocation(Location)) and the closest route location */
|
|
321
281
|
distanceToClosestPointInRoute: number;
|
|
282
|
+
/** The distance in meters to go from closestLocationInRoute to the end of the current step */
|
|
322
283
|
distanceToEndStep: number;
|
|
284
|
+
/** The distance in meters from closestLocationInRoute to route's goal point */
|
|
323
285
|
distanceToGoal: number;
|
|
286
|
+
/** The next indication */
|
|
324
287
|
nextIndication: Indication;
|
|
288
|
+
/** List of ordered points of the remaining route */
|
|
325
289
|
points: Point[];
|
|
290
|
+
/** The closest route step to the user, where closestLocationInRoute is */
|
|
326
291
|
routeStep: RouteStep;
|
|
292
|
+
/** List of segments formed by consecutive points and a floor identifier */
|
|
327
293
|
segments: RouteSegment[];
|
|
294
|
+
/** The estimated time to go from closestLocationInRoute to the end of the current route step, considering a speed of 1 meter/second */
|
|
328
295
|
timeToEndStep: number;
|
|
296
|
+
/** The estimated time to go from closestLocationInRoute to the goal/end of route, considering a speed of 1 meter/second */
|
|
329
297
|
timeToGoal: number;
|
|
330
298
|
type: SdkNavigationUpdateType;
|
|
331
299
|
};
|
|
332
300
|
/**
|
|
333
|
-
*
|
|
334
|
-
* @description A data object that contains parameters for the location service, LocationManager.
|
|
335
|
-
*
|
|
336
|
-
* @property {number} buildingIdentifier - Identifier of the building on which the positioning will be started
|
|
337
|
-
* @property {number} interval - Default interval (in milliseconds) to notify location updates
|
|
338
|
-
* @property {string} indoorProvider - Default indoor provider. Possible values are INPHONE and SUPPORT
|
|
339
|
-
* @property {boolean} useBle - Defines whether or not to use BLE for positioning
|
|
340
|
-
* @property {boolean} useWifi - Defines whether or not to use Wi-Fi for positioning
|
|
341
|
-
* @property {boolean} useGps - Defines whether or not to use GPS for indoor positioning
|
|
342
|
-
* @property {boolean} useBarometer - Defines whether or not to use the barometer for indoor positioning
|
|
343
|
-
* @property {string} motionMode - Default motion mode. Possible values are BY_CAR, BY_FOOT, and RADIOMAX
|
|
344
|
-
* @property {boolean} useForegroundService - Defines whether or not to activate the {@link http://developers.situm.es/pages/android/using_situm_sdk_background.html foreground service}
|
|
345
|
-
* @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.
|
|
346
|
-
* @property {OutdoorLocationOptions} outdoorLocationOptions - Outdoor location options. Only used in an indoor/outdoor request
|
|
347
|
-
* @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
|
|
348
|
-
* @property {number} smallestDisplacement - Default smallest displacement to notify location updates
|
|
349
|
-
* @property {string} realtimeUpdateInterval - Default interval to send locations to the Realtime. Possible values are REALTIME, FAST, NORMAL, SLOW, and BATTERY_SAVER
|
|
350
|
-
* @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}.
|
|
301
|
+
* A data object that contains parameters for the location service, LocationManager.
|
|
351
302
|
*/
|
|
352
303
|
export type LocationRequest = {
|
|
304
|
+
/** Tries to enable BLE if disabled while positioning. Will not work in modern Android versions */
|
|
353
305
|
autoEnableBleDuringPositioning?: boolean;
|
|
306
|
+
/** Beacon filters to be handled during scan time, otherwise only Situm beacons will be scanned */
|
|
354
307
|
beaconFilters?: BeaconFilter[];
|
|
308
|
+
/** Identifier of the building on which the positioning will be started */
|
|
355
309
|
buildingIdentifier?: number;
|
|
310
|
+
/** Default indoor provider. Possible values are INPHONE and SUPPORT */
|
|
356
311
|
indoorProvider?: string;
|
|
312
|
+
/** Default interval (in milliseconds) to notify location updates */
|
|
357
313
|
interval?: number;
|
|
314
|
+
/** Default motion mode. Possible values are BY_CAR, BY_FOOT, and RADIOMAX */
|
|
358
315
|
motionMode?: string;
|
|
316
|
+
/** Outdoor location options. Only used in an indoor/outdoor request */
|
|
359
317
|
outdoorLocationOptions?: OutdoorLocationOptions;
|
|
318
|
+
/** Default interval to send locations to the Realtime. Possible values are REALTIME, FAST, NORMAL, SLOW, and BATTERY_SAVER */
|
|
360
319
|
realtimeUpdateInterval?: string;
|
|
320
|
+
/** Default smallest displacement to notify location updates */
|
|
361
321
|
smallestDisplacement?: number;
|
|
322
|
+
/** Defines whether or not to use the barometer for indoor positioning */
|
|
362
323
|
useBarometer?: boolean;
|
|
324
|
+
/** Defines whether or not to use BLE for positioning */
|
|
363
325
|
useBle?: boolean;
|
|
326
|
+
/** Defines whether or not to use dead reckoning to get fast position updates using only the inertial sensors, between the server position updates */
|
|
364
327
|
useDeadReckoning?: boolean;
|
|
328
|
+
/** Defines whether or not to activate the foreground service */
|
|
365
329
|
useForegroundService?: boolean;
|
|
330
|
+
/** Used to configure the notification options for a foreground service */
|
|
366
331
|
foregroundServiceNotificationOptions?: ForegroundServiceNotificationOptions;
|
|
332
|
+
/** Defines whether or not to use GPS for indoor positioning */
|
|
367
333
|
useGps?: boolean;
|
|
334
|
+
/** Defines whether or not to use Wi-Fi for positioning */
|
|
368
335
|
useWifi?: boolean;
|
|
369
336
|
};
|
|
370
337
|
/**
|
|
@@ -373,18 +340,21 @@ export type LocationRequest = {
|
|
|
373
340
|
* Foreground Service.
|
|
374
341
|
* To be used with {@link LocationRequest}.
|
|
375
342
|
* Only applies for Android.
|
|
376
|
-
* @property {ForegroundServiceNotificationOptions} foregroundServiceNotificationOptions
|
|
377
343
|
*/
|
|
378
344
|
export type ForegroundServiceNotificationOptions = {
|
|
345
|
+
/** Notification title */
|
|
379
346
|
title?: string;
|
|
347
|
+
/** Notification message */
|
|
380
348
|
message?: string;
|
|
349
|
+
/** Whether to show stop action */
|
|
381
350
|
showStopAction?: boolean;
|
|
351
|
+
/** Stop action text */
|
|
382
352
|
stopActionText?: string;
|
|
353
|
+
/** Action to perform when tapping the notification */
|
|
383
354
|
tapAction?: ForegroundServiceNotificationsTapAction;
|
|
384
355
|
};
|
|
385
356
|
/**
|
|
386
|
-
*
|
|
387
|
-
* @description Predefined actions performed when tapping the Situm Foreground Service Notification.
|
|
357
|
+
* Predefined actions performed when tapping the Situm Foreground Service Notification.
|
|
388
358
|
*/
|
|
389
359
|
export declare enum ForegroundServiceNotificationsTapAction {
|
|
390
360
|
/**
|
|
@@ -392,7 +362,7 @@ export declare enum ForegroundServiceNotificationsTapAction {
|
|
|
392
362
|
*/
|
|
393
363
|
LaunchApp = "LAUNCH_APP",
|
|
394
364
|
/**
|
|
395
|
-
*
|
|
365
|
+
* Launch the operating system settings screen for the current app.
|
|
396
366
|
*/
|
|
397
367
|
LaunchSettings = "LAUNCH_SETTINGS",
|
|
398
368
|
/**
|
|
@@ -401,152 +371,135 @@ export declare enum ForegroundServiceNotificationsTapAction {
|
|
|
401
371
|
DoNothing = "DO_NOTHING"
|
|
402
372
|
}
|
|
403
373
|
/**
|
|
404
|
-
*
|
|
405
|
-
* @description A data object that contains the request for navigation.
|
|
406
|
-
*
|
|
407
|
-
* @property {number} distanceToGoalThreshold - Distance threshold to consider reaching the goal (meters).
|
|
408
|
-
* @property {number} distanceToIgnoreFirstIndication - Maximum distance to ignore the first indication when navigating (meters).
|
|
409
|
-
* @property {number} distanceToFloorChangeThreshold - Distance threshold from when a floor change is considered reached (meters).
|
|
410
|
-
* @property {number} distanceToChangeIndicationThreshold - Distance threshold to change the indication (meters).
|
|
411
|
-
* @property {boolean} ignoreLowQualityLocations - Ignore low-quality locations.
|
|
412
|
-
* @property {number} indicationsInterval - Interval between indications (milliseconds).
|
|
413
|
-
* @property {number} outsideRouteThreshold - Distance threshold to consider being outside the route (meters).
|
|
414
|
-
* @property {number} roundIndicationsStep - Step to round indications (meters).
|
|
415
|
-
* @property {number} timeToFirstIndication - Time to wait until the first indication is returned (milliseconds).
|
|
416
|
-
* @property {number} timeToIgnoreUnexpectedFloorChanges - Time to ignore the locations received during navigation, when the next indication is a floor change,
|
|
417
|
-
* if the locations are on a wrong floor (not in origin or destination floors) (milliseconds).
|
|
374
|
+
* A data object that contains the request for navigation.
|
|
418
375
|
*/
|
|
419
376
|
export type NavigationRequest = {
|
|
377
|
+
/** Distance threshold to change the indication (meters) */
|
|
420
378
|
distanceToChangeIndicationThreshold?: number;
|
|
379
|
+
/** Distance threshold from when a floor change is considered reached (meters) */
|
|
421
380
|
distanceToFloorChangeThreshold?: number;
|
|
381
|
+
/** Distance threshold to consider reaching the goal (meters) */
|
|
422
382
|
distanceToGoalThreshold?: number;
|
|
383
|
+
/** Maximum distance to ignore the first indication when navigating (meters) */
|
|
423
384
|
distanceToIgnoreFirstIndication?: number;
|
|
385
|
+
/** Ignore low-quality locations */
|
|
424
386
|
ignoreLowQualityLocations?: boolean;
|
|
387
|
+
/** Interval between indications (milliseconds) */
|
|
425
388
|
indicationsInterval?: number;
|
|
389
|
+
/** Distance threshold to consider being outside the route (meters) */
|
|
426
390
|
outsideRouteThreshold?: number;
|
|
391
|
+
/** Step to round indications (meters) */
|
|
427
392
|
roundIndicationsStep?: number;
|
|
393
|
+
/** Time to wait until the first indication is returned (milliseconds) */
|
|
428
394
|
timeToFirstIndication?: number;
|
|
395
|
+
/** Time to ignore the locations received during navigation, when the next indication is a floor change,
|
|
396
|
+
* if the locations are on a wrong floor (not in origin or destination floors) (milliseconds) */
|
|
429
397
|
timeToIgnoreUnexpectedFloorChanges?: number;
|
|
430
398
|
};
|
|
431
399
|
/**
|
|
432
|
-
*
|
|
433
|
-
* @description A data object that contains the request for directions.
|
|
434
|
-
*
|
|
435
|
-
* @property {Building} positioningBuilding
|
|
436
|
-
* @property {Point|Location} from - Current user's position as the starting point of the route.
|
|
437
|
-
* @property {Point|Poi} to - Point to, where the route should end.
|
|
438
|
-
* @property {DirectionsOptions} options - Options that can be added to the request.
|
|
400
|
+
* A data object that contains the request for directions.
|
|
439
401
|
*/
|
|
440
402
|
export type DirectionsRequest = {
|
|
441
403
|
buildingIdentifier: string;
|
|
404
|
+
/** Current user's position as the starting point of the route */
|
|
442
405
|
from: Point | Location;
|
|
406
|
+
/** Point to, where the route should end */
|
|
443
407
|
to: Point | Poi;
|
|
444
408
|
} & DirectionsOptions;
|
|
445
409
|
/**
|
|
446
|
-
*
|
|
447
|
-
* @description A data object that contains the directions options.
|
|
448
|
-
*
|
|
449
|
-
* @property {boolean} minimizeFloorChanges - Defines wheter or not the route should be calculated minimizing the floor changes even if the result is longer.
|
|
450
|
-
* @property {string} accessibilityMode - Defines the accessibility mode of the route. Possible values are: CHOOSE_SHORTEST, ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES, ONLY_ACCESSIBLE
|
|
451
|
-
* @property {number} startingAngle - Current user's orientation in degrees.
|
|
452
|
-
* @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
|
|
453
|
-
* @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.
|
|
410
|
+
* A data object that contains the directions options.
|
|
454
411
|
*/
|
|
455
412
|
export type DirectionsOptions = {
|
|
413
|
+
/** Defines whether or not the route should be calculated minimizing the floor changes even if the result is longer */
|
|
456
414
|
minimizeFloorChanges?: boolean;
|
|
415
|
+
/** Defines the accessibility mode of the route. Possible values are: CHOOSE_SHORTEST, ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES, ONLY_ACCESSIBLE */
|
|
457
416
|
accessibilityMode?: AccessibilityMode;
|
|
417
|
+
/** Current user's orientation in degrees */
|
|
458
418
|
startingAngle?: number;
|
|
459
419
|
bearingFrom?: number;
|
|
420
|
+
/**
|
|
421
|
+
* List of tags that you want to use when calculating a route. Only the tags added here will be used.
|
|
422
|
+
* If there are other tags in the graph they won't be used. The edges without a tag will be used.
|
|
423
|
+
* If you don't set nothing all the graph will be used to calculate the route.
|
|
424
|
+
* @see https://situm.com/docs/cartography-management/#tags
|
|
425
|
+
*/
|
|
460
426
|
includedTags?: string[];
|
|
427
|
+
/**
|
|
428
|
+
* 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.
|
|
429
|
+
* If the route can only be generated passing through an edge with this tag the route calculation will fail.
|
|
430
|
+
* @see https://situm.com/docs/cartography-management/#tags
|
|
431
|
+
*/
|
|
461
432
|
excludedTags?: string[];
|
|
462
433
|
};
|
|
463
434
|
/**
|
|
464
|
-
*
|
|
465
|
-
* @description Outdoor location options are only used in indoor-outdoor mode (Only available for Android)
|
|
466
|
-
*
|
|
467
|
-
* @property {boolean} continuousMode - Environment detection continuous mode (true) or burst mode (false).
|
|
468
|
-
* @property {boolean} userDefinedThreshold
|
|
469
|
-
* @property {number} burstInterval - Interval to scan for GPS and detect the environment (in seconds).
|
|
470
|
-
* @property {number} averageSnrThreshold
|
|
435
|
+
* Outdoor location options are only used in indoor-outdoor mode (Only available for Android)
|
|
471
436
|
*/
|
|
472
437
|
export type OutdoorLocationOptions = {
|
|
438
|
+
/** Environment detection continuous mode (true) or burst mode (false) */
|
|
473
439
|
continuousMode?: boolean;
|
|
474
440
|
userDefinedThreshold?: boolean;
|
|
441
|
+
/** Interval to scan for GPS and detect the environment (in seconds) */
|
|
475
442
|
burstInterval?: number;
|
|
476
443
|
averageSnrThreshold?: number;
|
|
477
444
|
};
|
|
478
445
|
/**
|
|
479
|
-
*
|
|
480
|
-
* @description Represents a BLE filter. Now the only field is the BLE proximity UUID
|
|
481
|
-
*
|
|
482
|
-
* @property {string} uuid - Assigns the proximity UUID
|
|
446
|
+
* Represents a BLE filter. Now the only field is the BLE proximity UUID
|
|
483
447
|
*/
|
|
484
448
|
export type BeaconFilter = {
|
|
449
|
+
/** Assigns the proximity UUID */
|
|
485
450
|
uuid: string;
|
|
486
451
|
};
|
|
487
452
|
/**
|
|
488
|
-
*
|
|
489
|
-
* @description A data object that contains the parameters to process realtime data of the users.
|
|
490
|
-
*
|
|
491
|
-
* @property {Building} building object
|
|
492
|
-
* @property {int} pollTime - Interval in milliseconds (minimum is 3000ms).
|
|
453
|
+
* A data object that contains the parameters to process realtime data of the users.
|
|
493
454
|
*/
|
|
494
455
|
export type RealTimeRequest = {
|
|
456
|
+
/** Building object */
|
|
495
457
|
building: Building;
|
|
458
|
+
/** Interval in milliseconds (minimum is 3000ms) */
|
|
496
459
|
pollTime: number;
|
|
497
460
|
};
|
|
498
461
|
/**
|
|
499
|
-
*
|
|
500
|
-
* @description A data object that contains information of the location of users in realtime.
|
|
501
|
-
*
|
|
502
|
-
* @property {Array<Location>} locations object
|
|
462
|
+
* A data object that contains information of the location of users in realtime.
|
|
503
463
|
*/
|
|
504
464
|
export type RealTimeData = {
|
|
465
|
+
/** Array of location objects */
|
|
505
466
|
locations: Location[];
|
|
506
467
|
};
|
|
507
468
|
/**
|
|
508
|
-
*
|
|
509
|
-
* @
|
|
510
|
-
*
|
|
511
|
-
* @type
|
|
512
|
-
* @property {string} react_native - The version of React Native used in the SDK.
|
|
513
|
-
* @property {string} [ios] - Optional. The specific version of the Situm SDK for the iOS platform.
|
|
514
|
-
* @property {string} [android] - Optional. The specific version of the Situm SDK for the Android platform.
|
|
469
|
+
* Represents the version information of the SDK and its compatibility with different platforms.
|
|
470
|
+
* @deprecated This type will be removed in future versions.
|
|
515
471
|
*/
|
|
516
472
|
export type SdkVersion = {
|
|
473
|
+
/** The version of React Native used in the SDK */
|
|
517
474
|
react_native: string;
|
|
475
|
+
/** The specific version of the Situm SDK for the iOS platform */
|
|
518
476
|
ios?: string;
|
|
477
|
+
/** The specific version of the Situm SDK for the Android platform */
|
|
519
478
|
android?: string;
|
|
520
479
|
};
|
|
521
480
|
/**
|
|
522
|
-
*
|
|
523
|
-
* @description Configuration options for initializing the SDK or other modules.
|
|
524
|
-
*
|
|
525
|
-
* @type
|
|
526
|
-
* @property {boolean} [useRemoteConfig] - Optional. Determines whether to use Remote Configuration settings.
|
|
527
|
-
* @property {number} [cacheMaxAge] - Optional. The maximum age of the cache in seconds.
|
|
481
|
+
* Configuration options for initializing the SDK or other modules.
|
|
528
482
|
*/
|
|
529
483
|
export type ConfigurationOptions = {
|
|
484
|
+
/** Determines whether to use Remote Configuration settings */
|
|
530
485
|
useRemoteConfig?: boolean;
|
|
486
|
+
/** The maximum age of the cache in seconds */
|
|
531
487
|
cacheMaxAge?: number;
|
|
532
488
|
};
|
|
533
489
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @description Represents a location with various attributes including position, accuracy, and bearing.
|
|
536
|
-
*
|
|
537
|
-
* @interface
|
|
538
|
-
* @property {Position} [position] - Optional. The position information of the location.
|
|
539
|
-
* @property {number} [accuracy] - Optional. The accuracy of the location information in meters.
|
|
540
|
-
* @property {Object} [bearing] - Optional. Bearing information including degrees and degreesClockwise.
|
|
541
|
-
* @property {boolean} [hasBearing] - Optional. Indicates if bearing information is available.
|
|
490
|
+
* Represents a location with various attributes including position, accuracy, and bearing.
|
|
542
491
|
*/
|
|
543
492
|
export interface Location {
|
|
493
|
+
/** The position information of the location */
|
|
544
494
|
position?: Position;
|
|
495
|
+
/** The accuracy of the location information in meters */
|
|
545
496
|
accuracy?: number;
|
|
497
|
+
/** Bearing information including degrees and degreesClockwise */
|
|
546
498
|
bearing?: {
|
|
547
499
|
degrees: number;
|
|
548
500
|
degreesClockwise: number;
|
|
549
501
|
};
|
|
502
|
+
/** Indicates if bearing information is available */
|
|
550
503
|
hasBearing?: boolean;
|
|
551
504
|
}
|
|
552
505
|
export interface Position {
|
|
@@ -564,61 +517,49 @@ export interface Position {
|
|
|
564
517
|
floorIdentifier?: string;
|
|
565
518
|
}
|
|
566
519
|
/**
|
|
567
|
-
*
|
|
568
|
-
* @description Represents the status of a location, including a name and a numeric code.
|
|
569
|
-
*
|
|
570
|
-
* @interface
|
|
571
|
-
* @property {LocationStatusName} statusName - The name of the location status.
|
|
572
|
-
* @property {number} statusCode - The numeric code representing the location status.
|
|
520
|
+
* Represents the status of a location, including a name and a numeric code.
|
|
573
521
|
*/
|
|
574
522
|
export interface LocationStatus {
|
|
523
|
+
/** The name of the location status */
|
|
575
524
|
statusName: LocationStatusName;
|
|
525
|
+
/** The numeric code representing the location status */
|
|
576
526
|
statusCode: number;
|
|
577
527
|
}
|
|
578
528
|
/**
|
|
579
|
-
*
|
|
580
|
-
* @description Enumeration of error types to categorize the severity of errors.
|
|
581
|
-
*
|
|
582
|
-
* @enum {string}
|
|
583
|
-
* @property {string} CRITICAL - Represents critical errors that will cause the system not to work (e.g. positioning will be stopped).
|
|
584
|
-
* @property {string} NON_CRITICAL - Represents non-critical errors that are less severe.
|
|
529
|
+
* Enumeration of error types to categorize the severity of errors.
|
|
585
530
|
*/
|
|
586
531
|
export declare enum ErrorType {
|
|
532
|
+
/** Represents critical errors that will cause the system not to work (e.g. positioning will be stopped) */
|
|
587
533
|
CRITICAL = "CRITICAL",
|
|
534
|
+
/** Represents non-critical errors that are less severe */
|
|
588
535
|
NON_CRITICAL = "NON_CRITICAL"
|
|
589
536
|
}
|
|
590
537
|
/**
|
|
591
|
-
*
|
|
592
|
-
* @description Enumeration of error codes provided by Situm SDK.
|
|
593
|
-
*
|
|
594
|
-
* @enum {string}
|
|
595
|
-
* @property {string} LOCATION_PERMISSION_DENIED - Indicates that location permissions were not granted by the user.
|
|
596
|
-
* @property {string} BLUETOOTH_PERMISSION_DENIED - Indicates that Bluetooth permissions were not granted.
|
|
597
|
-
* @property {string} BLUETOOTH_DISABLED - Indicates that Bluetooth is disabled on the device.
|
|
598
|
-
* @property {string} LOCATION_DISABLED - Indicates that the location services are disabled on the device.
|
|
599
|
-
* @property {string} REDUCED_ACCURACY - Indicates that the precise location has been turned off on the device.
|
|
600
|
-
* @property {string} UNKNOWN - Represents an unknown error or an error that does not fit other categories.
|
|
538
|
+
* Enumeration of error codes provided by Situm SDK.
|
|
601
539
|
*/
|
|
602
540
|
export declare enum ErrorCode {
|
|
541
|
+
/** Indicates that location permissions were not granted by the user */
|
|
603
542
|
LOCATION_PERMISSION_DENIED = "LOCATION_PERMISSION_DENIED",
|
|
543
|
+
/** Indicates that Bluetooth permissions were not granted */
|
|
604
544
|
BLUETOOTH_PERMISSION_DENIED = "BLUETOOTH_PERMISSION_DENIED",
|
|
545
|
+
/** Indicates that Bluetooth is disabled on the device */
|
|
605
546
|
BLUETOOTH_DISABLED = "BLUETOOTH_DISABLED",
|
|
547
|
+
/** Indicates that the location services are disabled on the device */
|
|
606
548
|
LOCATION_DISABLED = "LOCATION_DISABLED",
|
|
549
|
+
/** Indicates that the precise location has been turned off on the device */
|
|
607
550
|
REDUCED_ACCURACY = "REDUCED_ACCURACY",
|
|
551
|
+
/** Represents an unknown error or an error that does not fit other categories */
|
|
608
552
|
UNKNOWN = "UNKNOWN"
|
|
609
553
|
}
|
|
610
554
|
/**
|
|
611
|
-
*
|
|
612
|
-
* @description Represents an error with a specific code, message, and type.
|
|
613
|
-
*
|
|
614
|
-
* @interface
|
|
615
|
-
* @property {ErrorCode} code - The specific error code associated with this error.
|
|
616
|
-
* @property {string} message - A descriptive message providing more details about the error.
|
|
617
|
-
* @property {ErrorType} type - The type of the error indicating its severity (critical or non-critical).
|
|
555
|
+
* Represents an error with a specific code, message, and type.
|
|
618
556
|
*/
|
|
619
557
|
export interface Error {
|
|
558
|
+
/** The specific error code associated with this error */
|
|
620
559
|
code: ErrorCode;
|
|
560
|
+
/** A descriptive message providing more details about the error */
|
|
621
561
|
message: string;
|
|
562
|
+
/** The type of the error indicating its severity (critical or non-critical) */
|
|
622
563
|
type: ErrorType;
|
|
623
564
|
}
|
|
624
565
|
export type Directions = any;
|
|
@@ -629,27 +570,21 @@ export declare class InternalCall<T = any> {
|
|
|
629
570
|
get<T>(): T;
|
|
630
571
|
}
|
|
631
572
|
/**
|
|
632
|
-
* @name
|
|
633
|
-
* UserHelperColorScheme
|
|
634
|
-
* @description
|
|
635
573
|
* Color scheme for the user helper UI.
|
|
636
|
-
* @property {string} primaryColor - Primary color for the user helper UI. Use HEX color code (e.g. "#ff5733").
|
|
637
|
-
* @property {string} secondaryColor - Secondary color for the user helper UI. Use HEX color code (e.g. "#ff5733").
|
|
638
574
|
*/
|
|
639
575
|
export type UserHelperColorScheme = {
|
|
576
|
+
/** Primary color for the user helper UI. Use HEX color code (e.g. "#ff5733") */
|
|
640
577
|
primaryColor: string;
|
|
578
|
+
/** Secondary color for the user helper UI. Use HEX color code (e.g. "#ff5733") */
|
|
641
579
|
secondaryColor: string;
|
|
642
580
|
};
|
|
643
581
|
/**
|
|
644
|
-
* @name
|
|
645
|
-
* UserHelperOptions
|
|
646
|
-
* @description
|
|
647
582
|
* Configuration options for the user helper.
|
|
648
|
-
* @property {boolean} enabled - Whether the user helper is enabled. Equivalent to the underlying native SitumSdk.userHelperManager#autoManage(true).
|
|
649
|
-
* @property {UserHelperColorScheme} colorScheme - Color scheme for the user helper UI.
|
|
650
583
|
*/
|
|
651
584
|
export type UserHelperOptions = {
|
|
585
|
+
/** Whether the user helper is enabled. Equivalent to the underlying native SitumSdk.userHelperManager#autoManage(true) */
|
|
652
586
|
enabled: boolean;
|
|
587
|
+
/** Color scheme for the user helper UI */
|
|
653
588
|
colorScheme: UserHelperColorScheme | undefined;
|
|
654
589
|
};
|
|
655
590
|
//# sourceMappingURL=index.d.ts.map
|