@situm/react-native 3.0.10 → 3.1.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/android/src/main/java/com/situm/plugin/PluginHelper.java +3 -2
- package/android/src/main/java/com/situm/plugin/SitumMapper.java +38 -59
- package/android/src/main/java/com/situm/plugin/SitumPlugin.java +1 -0
- package/android/src/main/java/com/situm/plugin/SitumPluginImpl.java +1 -1
- package/ios/SitumPlugin.m +8 -2
- package/lib/commonjs/sdk/index.js +509 -251
- package/lib/commonjs/sdk/index.js.map +1 -1
- package/lib/commonjs/sdk/nativeInterface.js.map +1 -1
- package/lib/commonjs/sdk/types/constants.js +31 -4
- package/lib/commonjs/sdk/types/constants.js.map +1 -1
- package/lib/commonjs/sdk/utils.js +103 -0
- package/lib/commonjs/sdk/utils.js.map +1 -0
- package/lib/commonjs/utils/requestPermission.js +9 -16
- package/lib/commonjs/utils/requestPermission.js.map +1 -1
- package/lib/commonjs/wayfinding/components/MapView.js +78 -134
- package/lib/commonjs/wayfinding/components/MapView.js.map +1 -1
- package/lib/commonjs/wayfinding/hooks/index.js +118 -278
- package/lib/commonjs/wayfinding/hooks/index.js.map +1 -1
- package/lib/commonjs/wayfinding/store/index.js +17 -6
- package/lib/commonjs/wayfinding/store/index.js.map +1 -1
- package/lib/commonjs/wayfinding/types/index.js +1 -3
- package/lib/commonjs/wayfinding/types/index.js.map +1 -1
- package/lib/commonjs/wayfinding/utils/mapper.js +128 -71
- package/lib/commonjs/wayfinding/utils/mapper.js.map +1 -1
- package/lib/module/sdk/index.js +509 -249
- package/lib/module/sdk/index.js.map +1 -1
- package/lib/module/sdk/nativeInterface.js.map +1 -1
- package/lib/module/sdk/types/constants.js +27 -3
- package/lib/module/sdk/types/constants.js.map +1 -1
- package/lib/module/sdk/utils.js +94 -0
- package/lib/module/sdk/utils.js.map +1 -0
- package/lib/module/utils/requestPermission.js +9 -16
- package/lib/module/utils/requestPermission.js.map +1 -1
- package/lib/module/wayfinding/components/MapView.js +77 -133
- package/lib/module/wayfinding/components/MapView.js.map +1 -1
- package/lib/module/wayfinding/hooks/index.js +119 -278
- package/lib/module/wayfinding/hooks/index.js.map +1 -1
- package/lib/module/wayfinding/store/index.js +15 -6
- package/lib/module/wayfinding/store/index.js.map +1 -1
- package/lib/module/wayfinding/types/index.js +1 -1
- package/lib/module/wayfinding/types/index.js.map +1 -1
- package/lib/module/wayfinding/utils/mapper.js +123 -72
- package/lib/module/wayfinding/utils/mapper.js.map +1 -1
- package/lib/typescript/src/sdk/index.d.ts +183 -145
- package/lib/typescript/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/src/sdk/nativeInterface.d.ts +59 -0
- package/lib/typescript/src/sdk/nativeInterface.d.ts.map +1 -1
- package/lib/typescript/src/sdk/types/constants.d.ts +24 -3
- package/lib/typescript/src/sdk/types/constants.d.ts.map +1 -1
- package/lib/typescript/src/sdk/types/index.d.ts +91 -146
- package/lib/typescript/src/sdk/types/index.d.ts.map +1 -1
- package/lib/typescript/src/sdk/utils.d.ts +53 -0
- package/lib/typescript/src/sdk/utils.d.ts.map +1 -0
- package/lib/typescript/src/utils/requestPermission.d.ts +1 -1
- package/lib/typescript/src/utils/requestPermission.d.ts.map +1 -1
- package/lib/typescript/src/wayfinding/components/MapView.d.ts +16 -28
- package/lib/typescript/src/wayfinding/components/MapView.d.ts.map +1 -1
- package/lib/typescript/src/wayfinding/hooks/index.d.ts +3 -34
- package/lib/typescript/src/wayfinding/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/wayfinding/store/index.d.ts +8 -6
- package/lib/typescript/src/wayfinding/store/index.d.ts.map +1 -1
- package/lib/typescript/src/wayfinding/types/index.d.ts +36 -17
- package/lib/typescript/src/wayfinding/types/index.d.ts.map +1 -1
- package/lib/typescript/src/wayfinding/utils/mapper.d.ts +16 -11
- package/lib/typescript/src/wayfinding/utils/mapper.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/sdk/index.ts +467 -476
- package/src/sdk/nativeInterface.ts +149 -1
- package/src/sdk/types/constants.ts +27 -3
- package/src/sdk/types/index.ts +98 -158
- package/src/sdk/utils.ts +129 -0
- package/src/utils/requestPermission.ts +18 -23
- package/src/wayfinding/components/MapView.tsx +145 -215
- package/src/wayfinding/hooks/index.ts +155 -385
- package/src/wayfinding/store/index.tsx +19 -9
- package/src/wayfinding/types/index.ts +49 -15
- package/src/wayfinding/utils/mapper.ts +145 -104
|
@@ -1,26 +1,40 @@
|
|
|
1
|
+
import type { Building, BuildingInfo, ConfigurationOptions, DirectionsOptions, Error, Floor, Geofence, Location, LocationRequest, LocationStatus, NavigationProgress, NavigationRequest, Poi, PoiCategory, PoiIcon, Point, SdkVersion } from "./types";
|
|
1
2
|
export type * from "./types";
|
|
2
3
|
export * from "./types/constants";
|
|
3
|
-
|
|
4
|
-
declare const _default: {
|
|
4
|
+
export default class SitumPlugin {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Whether the positioning is currently in execution.
|
|
7
|
+
* @returns boolean
|
|
8
|
+
*/
|
|
9
|
+
static positioningIsRunning: () => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the navigation is currently in execution.
|
|
12
|
+
* @returns boolean
|
|
13
|
+
*/
|
|
14
|
+
static navigationIsRunning: () => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes {@link SitumPlugin}.
|
|
7
17
|
*
|
|
8
|
-
*
|
|
18
|
+
* This method must be called before invoking any other methods.
|
|
9
19
|
* This method can be safely called many times as it will only initialise the SDK
|
|
10
20
|
* if it is not already initialised.
|
|
21
|
+
*
|
|
22
|
+
* @returns void
|
|
23
|
+
* @throw Exception
|
|
11
24
|
*/
|
|
12
|
-
|
|
25
|
+
static init: () => void;
|
|
13
26
|
/**
|
|
14
27
|
* Provides your API key to the Situm SDK.
|
|
15
28
|
*
|
|
16
29
|
* This key is generated for your application in the Dashboard.
|
|
17
30
|
* Old credentials will be removed.
|
|
18
31
|
*
|
|
19
|
-
* @param email user's email.
|
|
20
32
|
* @param apiKey user's apikey.
|
|
21
|
-
*
|
|
33
|
+
*
|
|
34
|
+
* @returns void
|
|
35
|
+
* @throw Exception
|
|
22
36
|
*/
|
|
23
|
-
setApiKey: (
|
|
37
|
+
static setApiKey: (apiKey: string) => void;
|
|
24
38
|
/**
|
|
25
39
|
* Provides user's email and password. This credentials will be used to obtain a
|
|
26
40
|
* valid user token to authenticate the server request, when necessary. Token
|
|
@@ -29,212 +43,176 @@ declare const _default: {
|
|
|
29
43
|
*
|
|
30
44
|
* @param email user's email.
|
|
31
45
|
* @param password user's password.
|
|
32
|
-
*
|
|
46
|
+
*
|
|
47
|
+
* @returns void
|
|
48
|
+
* @throw Exception
|
|
33
49
|
*/
|
|
34
|
-
setUserPass: (email: string, password: string
|
|
35
|
-
|
|
50
|
+
static setUserPass: (email: string, password: string) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the API's base URL to retrieve the data.
|
|
53
|
+
*
|
|
54
|
+
* @param url user's email.
|
|
55
|
+
*
|
|
56
|
+
* @returns void
|
|
57
|
+
* @throw Exception
|
|
58
|
+
*/
|
|
59
|
+
static setDashboardURL: (url: string) => void;
|
|
36
60
|
/**
|
|
37
61
|
* Set to true if you want the SDK to download the configuration from the Situm API
|
|
38
|
-
* and use it by default. Right now it only affects the LocationRequest.
|
|
62
|
+
* and use it by default. Right now it only affects the {@link LocationRequest}.
|
|
39
63
|
* Default value is true from SDK version 2.83.5
|
|
40
64
|
*
|
|
41
|
-
* @param useRemoteConfig
|
|
42
|
-
*
|
|
65
|
+
* @param useRemoteConfig
|
|
66
|
+
*
|
|
67
|
+
* @returns void
|
|
68
|
+
* @throw Exception
|
|
43
69
|
*/
|
|
44
|
-
setUseRemoteConfig(useRemoteConfig:
|
|
70
|
+
static setUseRemoteConfig: (useRemoteConfig: boolean) => void;
|
|
45
71
|
/**
|
|
46
|
-
* Sets the
|
|
47
|
-
* maxAge, it will not be used and a network request will be made.
|
|
72
|
+
* Sets the max seconds the cache is valid
|
|
48
73
|
*
|
|
49
|
-
* @
|
|
50
|
-
* @
|
|
74
|
+
* @returns void
|
|
75
|
+
* @throw Exception
|
|
51
76
|
*/
|
|
52
|
-
|
|
77
|
+
private static setMaxCacheAge;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the SDK {@link ConfigurationOptions}.
|
|
80
|
+
*
|
|
81
|
+
* @param options {@link ConfigurationOptions}
|
|
82
|
+
*
|
|
83
|
+
* @returns void
|
|
84
|
+
* @throw Exception
|
|
85
|
+
*/
|
|
86
|
+
static setConfiguration: (options: ConfigurationOptions) => void;
|
|
53
87
|
/**
|
|
54
88
|
* Invalidate all the resources in the cache
|
|
89
|
+
*
|
|
90
|
+
* @returns void
|
|
91
|
+
* @throw Exception
|
|
55
92
|
*/
|
|
56
|
-
invalidateCache: () => void;
|
|
93
|
+
static invalidateCache: () => void;
|
|
57
94
|
/**
|
|
58
95
|
* Gets the list of versions for the current plugin and environment
|
|
59
96
|
*
|
|
60
|
-
* @
|
|
97
|
+
* @returns void
|
|
98
|
+
* @throw Exception
|
|
61
99
|
*/
|
|
62
|
-
|
|
63
|
-
ios?: string;
|
|
64
|
-
android?: string;
|
|
65
|
-
react_native: string;
|
|
66
|
-
}) => void) => void;
|
|
100
|
+
static sdkVersion: () => SdkVersion;
|
|
67
101
|
/**
|
|
68
102
|
* Returns the device identifier that has generated the location
|
|
69
103
|
*
|
|
70
|
-
* @
|
|
104
|
+
* @returns void
|
|
105
|
+
* @throw Exception
|
|
71
106
|
*/
|
|
72
|
-
getDeviceId: (
|
|
107
|
+
static getDeviceId: () => string;
|
|
73
108
|
/**
|
|
74
|
-
*
|
|
75
|
-
* and stores it internally for subsequent requests
|
|
76
|
-
*/
|
|
77
|
-
requestAuthorization: () => void;
|
|
78
|
-
/**
|
|
79
|
-
* Download all the buildings for the current user
|
|
80
|
-
*
|
|
81
|
-
* @param success function called on sucess, returns a list of Building objects
|
|
82
|
-
* @param error function called on failure, returns an error string
|
|
109
|
+
* Downloads all the {@link Building}s for the current user.
|
|
83
110
|
*/
|
|
84
|
-
fetchBuildings: (
|
|
111
|
+
static fetchBuildings: () => Promise<Building[]>;
|
|
85
112
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* maps and
|
|
113
|
+
* Downloads all the building data for the selected building. This info includes
|
|
114
|
+
* {@link Floor}, indoor and outdoor {@link Poi}s, events and paths. Also it download floor
|
|
115
|
+
* maps and {@link PoiCategory} icons to local storage.
|
|
89
116
|
*
|
|
90
|
-
* @param building
|
|
91
|
-
* @param success function called on sucess, returns a list of Building objects
|
|
92
|
-
* @param error function called on failure, returns an error string
|
|
117
|
+
* @param building {@link Building}
|
|
93
118
|
*/
|
|
94
|
-
fetchBuildingInfo: (building: Building
|
|
95
|
-
fetchTilesFromBuilding: (building: Building, success: Function, error?: Function) => void;
|
|
119
|
+
static fetchBuildingInfo: (building: Building) => Promise<BuildingInfo>;
|
|
96
120
|
/**
|
|
97
|
-
*
|
|
121
|
+
* (Experimental) Downloads the tiled-map of a certain building
|
|
98
122
|
*
|
|
99
|
-
* @param building
|
|
100
|
-
* @param success function called on sucess, returns a list of Floor objects
|
|
101
|
-
* @param error function called on failure, returns an error string
|
|
123
|
+
* @param building {@link Building} whose tiles will be downloaded
|
|
102
124
|
*/
|
|
103
|
-
|
|
125
|
+
static fetchTilesFromBuilding: (building: Building) => Promise<any>;
|
|
104
126
|
/**
|
|
105
|
-
*
|
|
127
|
+
* Downloads all the floors of a building
|
|
106
128
|
*
|
|
107
|
-
* @param
|
|
108
|
-
* @param success function called on sucess, returns a list of Map url objects
|
|
109
|
-
* @param error function called on failure, returns an error string
|
|
129
|
+
* @param building {@link Building}
|
|
110
130
|
*/
|
|
111
|
-
|
|
131
|
+
static fetchFloorsFromBuilding: (building: Building) => Promise<Floor[]>;
|
|
112
132
|
/**
|
|
113
|
-
*
|
|
133
|
+
* Downloads the map image of a {@link Floor}
|
|
114
134
|
*
|
|
115
|
-
* @param
|
|
116
|
-
* @param success function called on sucess, returns a list of Building objects
|
|
117
|
-
* @param error function called on failure, returns an error string
|
|
135
|
+
* @param floor {@link Floor}
|
|
118
136
|
*/
|
|
119
|
-
|
|
137
|
+
static fetchMapFromFloor: (floor: Floor) => Promise<string>;
|
|
120
138
|
/**
|
|
121
|
-
* Get
|
|
139
|
+
* Get the geofences of a {@link Building}
|
|
122
140
|
*
|
|
123
|
-
* @param
|
|
124
|
-
* @param error function called on failure, returns an error string
|
|
141
|
+
* @param building {@link Building}
|
|
125
142
|
*/
|
|
126
|
-
|
|
143
|
+
static fetchGeofencesFromBuilding: (building: Building) => Promise<Geofence[]>;
|
|
127
144
|
/**
|
|
128
|
-
* Get
|
|
129
|
-
*
|
|
130
|
-
* @param category the category. Not null.
|
|
131
|
-
* @param success function called on sucess, returns the icon in normal state.
|
|
132
|
-
* @param error function called on failure, returns an error string
|
|
145
|
+
* Get all {@link PoiCategory}, download and cache their icons asynchronously.
|
|
133
146
|
*/
|
|
134
|
-
|
|
147
|
+
static fetchPoiCategories: () => Promise<PoiCategory[]>;
|
|
135
148
|
/**
|
|
136
|
-
* Get the
|
|
149
|
+
* Get the normal {@link PoiIcon} for a category
|
|
137
150
|
*
|
|
138
|
-
* @param category
|
|
139
|
-
* @param success function called on sucess, returns the icon in selected state.
|
|
140
|
-
* @param error function called on failure, returns an error string
|
|
151
|
+
* @param category {@link PoiCategory}. Not null.
|
|
141
152
|
*/
|
|
142
|
-
|
|
153
|
+
static fetchPoiCategoryIconNormal: (category: PoiCategory) => Promise<PoiIcon>;
|
|
143
154
|
/**
|
|
144
|
-
*
|
|
155
|
+
* Get the selected {@link PoiIcon} for a {@link PoiCategory}
|
|
145
156
|
*
|
|
146
|
-
* @param
|
|
147
|
-
* @param success function called on sucess, returns a list of POI objects
|
|
148
|
-
* @param error function called on failure, returns an error string
|
|
157
|
+
* @param category {@link PoiCategory}. Not null.
|
|
149
158
|
*/
|
|
150
|
-
|
|
159
|
+
static fetchPoiCategoryIconSelected: (category: PoiCategory) => Promise<PoiIcon>;
|
|
151
160
|
/**
|
|
152
|
-
* Download the
|
|
161
|
+
* Download the indoor {@link Poi}s of a {@link Building}
|
|
153
162
|
*
|
|
154
|
-
* @param building
|
|
155
|
-
* @param success function called on sucess, returns a list of POI objects
|
|
156
|
-
* @param error function called on failure, returns an error string
|
|
163
|
+
* @param building {@link Building}
|
|
157
164
|
*/
|
|
158
|
-
|
|
165
|
+
static fetchIndoorPOIsFromBuilding: (building: Building) => Promise<Poi[]>;
|
|
159
166
|
/**
|
|
160
|
-
* Download the
|
|
167
|
+
* Download the outdoor {@link Poi}s of a {@link Building}
|
|
161
168
|
*
|
|
162
|
-
* @param building
|
|
163
|
-
* @param success Callback to asynchronously receive the events of a building. Not null.
|
|
164
|
-
* @param error function called on failure, returns an error string
|
|
169
|
+
* @param building {@link Building}
|
|
165
170
|
*/
|
|
166
|
-
|
|
171
|
+
static fetchOutdoorPOIsFromBuilding: (building: Building) => Promise<Poi[]>;
|
|
167
172
|
/**
|
|
168
|
-
* Starts positioning
|
|
169
|
-
* computed geolocations, status codes and errors will be received through the LocationListener callbacks.
|
|
170
|
-
* You may call this method more than once, with the following effect:
|
|
171
|
-
*
|
|
172
|
-
* - If you provide a new LocationRequest instance, positioning will be re-started
|
|
173
|
-
* with the new positioning options specified by this new instance.
|
|
174
|
-
* - If you provide a new LocationListener, the former LocationListener will be
|
|
175
|
-
* replaced, therefore geolocations will be communicated to the new one.
|
|
176
|
-
* - If neither LocationRequest nor LocationListener change, nothing will happen.
|
|
177
|
-
* You may stop positioning at any time by calling the LocationManager.removeUpdates() method.
|
|
173
|
+
* Starts positioning.
|
|
178
174
|
*
|
|
179
|
-
* @param
|
|
180
|
-
* @param status callback to use when the positioning status changes
|
|
181
|
-
* @param error callback to use when error is raised
|
|
182
|
-
* @param locationOptions hashmap with options
|
|
183
|
-
*
|
|
184
|
-
* @returns the id of the subscription
|
|
175
|
+
* @param {LocationRequest} locationRequest Positioning options to configure how positioning will behave
|
|
185
176
|
*/
|
|
186
|
-
|
|
187
|
-
startPositioningUpdates: (location: (event: any) => void, status: (event: any) => void, error?: (event: any) => void, options?: LocationRequestOptions) => void;
|
|
177
|
+
static requestLocationUpdates: (locationRequest?: LocationRequest) => void;
|
|
188
178
|
/**
|
|
189
179
|
* Stops positioning, removing all location updates
|
|
190
|
-
*
|
|
191
|
-
* @param callback the callback to use when the function successfully ends
|
|
192
|
-
* @returns
|
|
193
180
|
*/
|
|
194
|
-
|
|
181
|
+
static removeLocationUpdates: () => void;
|
|
195
182
|
/**
|
|
196
183
|
* Calculates a route between two points. The result is provided
|
|
197
184
|
* asynchronously using the callback.
|
|
198
185
|
*
|
|
199
|
-
* @param
|
|
200
|
-
* @param
|
|
201
|
-
* @param
|
|
186
|
+
* @param building {@link Building}
|
|
187
|
+
* @param from {@link Point} route origin
|
|
188
|
+
* @param to {@link Point} route destination
|
|
189
|
+
* @param directionOptions {@link DirectionsOptions}
|
|
202
190
|
*/
|
|
203
|
-
requestDirections: (
|
|
204
|
-
Building,
|
|
205
|
-
DirectionPoint,
|
|
206
|
-
DirectionPoint,
|
|
207
|
-
DirectionsOptions
|
|
208
|
-
], success: Function, error?: Function) => void;
|
|
191
|
+
static requestDirections: (building: Building, from: Point | Location, to: Point | Poi, directionOptions?: DirectionsOptions) => Promise<any>;
|
|
209
192
|
/**
|
|
210
193
|
* Set the navigation params, and the listener that receives the updated
|
|
211
194
|
* navigation progress.
|
|
212
195
|
*
|
|
213
196
|
* Can only exist one navigation with one listener at a time. If this method was
|
|
214
|
-
* previously invoked, but
|
|
197
|
+
* previously invoked, but removeLocationUpdates() wasn't, removeLocationUpdates()
|
|
198
|
+
* is called internally.
|
|
215
199
|
*
|
|
216
|
-
* @param
|
|
217
|
-
* @param error function called on failure, returns an error string
|
|
218
|
-
* @param options
|
|
200
|
+
* @param options {@link NavigationRequest}
|
|
219
201
|
*/
|
|
220
|
-
requestNavigationUpdates: (
|
|
202
|
+
static requestNavigationUpdates: (options?: NavigationRequest) => void;
|
|
221
203
|
/**
|
|
222
204
|
* Informs NavigationManager object the change of the user's location
|
|
223
205
|
*
|
|
224
|
-
* @param location new Location of the user. If null, nothing is done
|
|
225
|
-
* @param success callback to use when the navigation updates
|
|
226
|
-
* @param error callback to use when an error on navigation udpates raises
|
|
206
|
+
* @param location new {@link Location} of the user. If null, nothing is done
|
|
227
207
|
*/
|
|
228
|
-
updateNavigationWithLocation: (location:
|
|
208
|
+
static updateNavigationWithLocation: (location: Location) => void;
|
|
229
209
|
/**
|
|
230
210
|
* Removes all location updates. This removes the internal state of the manager,
|
|
231
211
|
* including the listener provided in requestNavigationUpdates(NavigationRequest,
|
|
232
212
|
* NavigationListener), so it won't receive more progress updates.
|
|
233
213
|
*
|
|
234
|
-
* @param callback
|
|
235
214
|
*/
|
|
236
|
-
removeNavigationUpdates: (
|
|
237
|
-
requestRealTimeUpdates: (navigationUpdates: (event: any) => void, error?: (event: any) => void, options?: any) => void;
|
|
215
|
+
static removeNavigationUpdates: () => void;
|
|
238
216
|
/**
|
|
239
217
|
* Requests a real time devices positions
|
|
240
218
|
*
|
|
@@ -242,30 +220,90 @@ declare const _default: {
|
|
|
242
220
|
* @param error callback to use when an error on navigation udpates raises
|
|
243
221
|
* @param options Represents the configuration for getting realtime devices positions in
|
|
244
222
|
*/
|
|
245
|
-
|
|
246
|
-
|
|
223
|
+
static requestRealTimeUpdates: (realtimeUpdates: (event: any) => void, error?: (event: any) => void, options?: any) => void;
|
|
224
|
+
/**
|
|
225
|
+
* Removes all real time updates listners.
|
|
226
|
+
*
|
|
227
|
+
* @param _callback
|
|
228
|
+
*/
|
|
229
|
+
static removeRealTimeUpdates: (_callback?: Function) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Checks if a point is inside a {@link Geofence}
|
|
232
|
+
*
|
|
233
|
+
*/
|
|
234
|
+
static checkIfPointInsideGeofence: (request: any, callback?: (response: {
|
|
235
|
+
isInsideGeofence: boolean;
|
|
236
|
+
geofence: any;
|
|
237
|
+
}) => void) => void;
|
|
247
238
|
/**
|
|
248
|
-
* Callback that notifies when the user enters a
|
|
239
|
+
* Callback that notifies when the user enters a {@link Geofence}.
|
|
249
240
|
*
|
|
250
241
|
* In order to use correctly these callbacks you must know the following:
|
|
251
242
|
* - Positioning geofences (with trainer_metadata custom field) won't be notified.
|
|
252
243
|
* - These callbacks only work with indoor locations. Any outdoor location will
|
|
253
244
|
* produce a call to onExitedGeofences with the last positioned geofences as argument.
|
|
254
245
|
*
|
|
255
|
-
* @param callback the function called when the user enters a
|
|
246
|
+
* @param callback the function called when the user enters a {@link Geofence}
|
|
256
247
|
*/
|
|
257
|
-
onEnterGeofences: (callback: (event:
|
|
248
|
+
static onEnterGeofences: (callback: (event: Geofence) => void) => void;
|
|
258
249
|
/**
|
|
259
|
-
* Callback that notifies when the user exits a
|
|
250
|
+
* Callback that notifies when the user exits a {@link Geofence}.
|
|
260
251
|
*
|
|
261
252
|
* In order to use correctly these callbacks you must know the following:
|
|
262
253
|
* - Positioning geofences (with trainer_metadata custom field) won't be notified.
|
|
263
254
|
* - These callbacks only work with indoor locations. Any outdoor location will
|
|
264
255
|
* produce a call to onExitedGeofences with the last positioned geofences as argument.
|
|
265
256
|
*
|
|
266
|
-
* @param callback the function called when the user exits a
|
|
257
|
+
* @param callback the function called when the user exits a {@link Geofence}
|
|
258
|
+
*/
|
|
259
|
+
static onExitGeofences: (callback: (event: Geofence) => void) => void;
|
|
260
|
+
/**
|
|
261
|
+
* Callback that notifies when the user {@link Location} changes.
|
|
262
|
+
*
|
|
263
|
+
* @param callback the function called when the user {@link Location} changes
|
|
264
|
+
*/
|
|
265
|
+
static onLocationUpdate: (callback: (location: Location) => void) => void;
|
|
266
|
+
/**
|
|
267
|
+
* Callback that notifies when the user {@link LocationStatus} changes.
|
|
268
|
+
*
|
|
269
|
+
* @param callback the function called when the user {@link LocationStatus} changes
|
|
270
|
+
*/
|
|
271
|
+
static onLocationStatus: (callback: (status: LocationStatus) => void) => void;
|
|
272
|
+
/**
|
|
273
|
+
* Callback that notifies when there is an error while the user is positioining.
|
|
274
|
+
*
|
|
275
|
+
* @param callback the function called when there is an error
|
|
276
|
+
*/
|
|
277
|
+
static onLocationError: (callback: (status: Error) => void) => void;
|
|
278
|
+
/**
|
|
279
|
+
* Callback that notifies when the user stops positioning.
|
|
280
|
+
*
|
|
281
|
+
* @param callback the function called when the user stops positioning.
|
|
282
|
+
*/
|
|
283
|
+
static onLocationStopped: (callback: () => void) => void;
|
|
284
|
+
/**
|
|
285
|
+
* Callback that notifies every navigation progress.
|
|
286
|
+
*
|
|
287
|
+
* @param callback the function called when there is a navigation progress.
|
|
288
|
+
*/
|
|
289
|
+
static onNavigationProgress: (callback: (progress: NavigationProgress) => void) => void;
|
|
290
|
+
/**
|
|
291
|
+
* Callback that notifies when the user gets out of the current route
|
|
292
|
+
*
|
|
293
|
+
* @param callback the function called when the user gets out of the current route.
|
|
294
|
+
*/
|
|
295
|
+
static onNavigationOutOfRoute: (callback: () => void) => void;
|
|
296
|
+
/**
|
|
297
|
+
* Callback that notifies when the user finishes the route.
|
|
298
|
+
*
|
|
299
|
+
* @param callback the function called when the user finishes the route.
|
|
300
|
+
*/
|
|
301
|
+
static onNavigationFinished: (callback: () => void) => void;
|
|
302
|
+
/**
|
|
303
|
+
* Callback that notifies when there is an error during navigation.
|
|
304
|
+
*
|
|
305
|
+
* @param callback the function called when there is an error during navigation.
|
|
267
306
|
*/
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
export default _default;
|
|
307
|
+
static onNavigationError: (callback: (error: any) => void) => void;
|
|
308
|
+
}
|
|
271
309
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,QA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gB,qBAAsB,QAAQ,KAAK,IAAI,UAI5D;IAEF;;;;;;;;;OASG;IACH,MAAM,CAAC,eAAe,qBAAsB,QAAQ,KAAK,IAAI,UAG3D;IAEF;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,wBAAyB,QAAQ,KAAK,IAAI,UAE/D;IAEF;;;;OAIG;IACH,MAAM,CAAC,gBAAgB,sBAAuB,cAAc,KAAK,IAAI,UAEnE;IAEF;;;;OAIG;IACH,MAAM,CAAC,eAAe,sBAAuB,KAAK,KAAK,IAAI,UAEzD;IAEF;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,aAAc,MAAM,IAAI,UAE9C;IAEF;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,wBACJ,kBAAkB,KAAK,IAAI,UAUhD;IAEF;;;;OAIG;IACH,MAAM,CAAC,sBAAsB,aAAc,MAAM,IAAI,UAUnD;IAEF;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,aAAc,MAAM,IAAI,UASjD;IAEF;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,qBAAsB,GAAG,KAAK,IAAI,UAExD;CACH"}
|
|
@@ -1,2 +1,61 @@
|
|
|
1
|
+
import { type NativeModule } from "react-native";
|
|
2
|
+
import type { Building, BuildingInfo, Directions, DirectionsOptions, Error, Floor, Geofence, Location, LocationRequest, NavigationRequest, Poi, PoiCategory, PoiIcon, Point } from "./types";
|
|
3
|
+
interface CartographyAPI {
|
|
4
|
+
fetchBuildings: (onSuccess: (response: Building[]) => void, onError: (error: Error) => void) => void;
|
|
5
|
+
fetchBuildingInfo: (bluilding: Building, onSuccess: (response: BuildingInfo) => void, onError: (error: Error) => void) => void;
|
|
6
|
+
fetchTilesFromBuilding: (building: Building, onSuccess: (response: string) => void, onError: (error: Error) => void) => void;
|
|
7
|
+
fetchFloorsFromBuilding: (building: Building, onSuccess: (response: Floor[]) => void, onError: (error: Error) => void) => void;
|
|
8
|
+
fetchMapFromFloor: (floor: Floor, onSuccess: (response: string) => void, onError: (error: Error) => void) => void;
|
|
9
|
+
fetchGeofencesFromBuilding: (building: Building, onSuccess: (response: Geofence[]) => void, onError: (error: Error) => void) => void;
|
|
10
|
+
fetchPoiCategories: (onSuccess: (response: PoiCategory[]) => void, onError: (error: Error) => void) => void;
|
|
11
|
+
fetchPoiCategoryIconNormal: (category: PoiCategory, onSuccess: (response: PoiIcon) => void, onError: (error: Error) => void) => void;
|
|
12
|
+
fetchPoiCategoryIconSelected: (category: PoiCategory, onSuccess: (response: PoiIcon) => void, onError: (error: Error) => void) => void;
|
|
13
|
+
fetchIndoorPOIsFromBuilding: (building: Building, onSuccess: (response: Poi[]) => void, onError: (error: Error) => void) => void;
|
|
14
|
+
fetchOutdoorPOIsFromBuilding: (building: Building, onSuccess: (response: Poi[]) => void, onError: (error: Error) => void) => void;
|
|
15
|
+
checkIfPointInsideGeofence: (request: any, callback: (response: {
|
|
16
|
+
isInsideGeofence: boolean;
|
|
17
|
+
geofence: any;
|
|
18
|
+
}) => void) => void;
|
|
19
|
+
onEnterGeofences: () => void;
|
|
20
|
+
onExitGeofences: () => void;
|
|
21
|
+
}
|
|
22
|
+
interface LocationAPI {
|
|
23
|
+
startPositioning: (locationRequest?: LocationRequest) => void;
|
|
24
|
+
stopPositioning: (callback: (response: {
|
|
25
|
+
success: boolean;
|
|
26
|
+
}) => void) => void;
|
|
27
|
+
}
|
|
28
|
+
interface NavigationAPI {
|
|
29
|
+
updateNavigationWithLocation: (location: Location, onSuccess: (response: void) => void, onError: (error: Error) => void) => void;
|
|
30
|
+
}
|
|
31
|
+
interface DirectionsAPI {
|
|
32
|
+
requestDirections: (directionsParameters: (Building | (Point | Location | Poi) | DirectionsOptions)[], onSuccess: (response: Directions) => void, onError: (error: Error) => void) => void;
|
|
33
|
+
requestNavigationUpdates: (navigationOptions: NavigationRequest) => void;
|
|
34
|
+
removeNavigationUpdates: (callback: (response: {
|
|
35
|
+
success: boolean;
|
|
36
|
+
}) => void) => void;
|
|
37
|
+
}
|
|
38
|
+
export interface SitumPluginInterface extends NativeModule, CartographyAPI, LocationAPI, NavigationAPI, DirectionsAPI {
|
|
39
|
+
initSitumSDK: () => void;
|
|
40
|
+
setApiKey: (email: string, apiKey: string, callback: (response: {
|
|
41
|
+
success: boolean;
|
|
42
|
+
}) => void) => void;
|
|
43
|
+
setUserPass: (email: string, password: string, callback: (response: {
|
|
44
|
+
success: boolean;
|
|
45
|
+
}) => void) => void;
|
|
46
|
+
setDashboardURL: (url: string, callback: (response: {
|
|
47
|
+
success: boolean;
|
|
48
|
+
}) => void) => void;
|
|
49
|
+
setUseRemoteConfig: (useRemoteConfig: string, callback: (response: {
|
|
50
|
+
success: boolean;
|
|
51
|
+
}) => void) => void;
|
|
52
|
+
setCacheMaxAge: (cacheAge: number, callback: (response: {
|
|
53
|
+
success: boolean;
|
|
54
|
+
}) => void) => void;
|
|
55
|
+
invalidateCache: () => void;
|
|
56
|
+
getDeviceId: (callback: (response: string) => void) => void;
|
|
57
|
+
requestRealTimeUpdates: (options: any) => void;
|
|
58
|
+
removeRealTimeUpdates: () => void;
|
|
59
|
+
}
|
|
1
60
|
export {};
|
|
2
61
|
//# sourceMappingURL=nativeInterface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeInterface.d.ts","sourceRoot":"","sources":["../../../../src/sdk/nativeInterface.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"nativeInterface.d.ts","sourceRoot":"","sources":["../../../../src/sdk/nativeInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,GAAG,EACH,WAAW,EACX,OAAO,EACP,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,UAAU,cAAc;IACtB,c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AAQ,EAAE,CAAC,QAAQ,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,KAC/C,IAAI,CAAC;IACV,cAAc,EAAE,CACd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,KAC/C,IAAI,CAAC;IACV,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,CAAC;IAC5D,sBAAsB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
export declare enum NavigationStatus {
|
|
2
2
|
START = "start",
|
|
3
3
|
STOP = "stop",
|
|
4
|
+
OUT_OF_ROUTE = "outOfRoute",
|
|
4
5
|
UPDATE = "update"
|
|
5
6
|
}
|
|
6
7
|
export declare enum NavigationUpdateType {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
PROGRESS = "PROGRESS",
|
|
9
|
+
OUT_OF_ROUTE = "OUT_OF_ROUTE",
|
|
10
|
+
FINISHED = "DESTINATION_REACHED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum SdkNavigationUpdateType {
|
|
13
|
+
PROGRESS = "progress",
|
|
14
|
+
OUT_OF_ROUTE = "userOutsideRoute",
|
|
15
|
+
FINISHED = "destinationReached"
|
|
10
16
|
}
|
|
11
17
|
export declare enum LocationStatusName {
|
|
12
18
|
STARTING = "STARTING",
|
|
@@ -15,4 +21,19 @@ export declare enum LocationStatusName {
|
|
|
15
21
|
USER_NOT_IN_BUILDING = "USER_NOT_IN_BUILDING",
|
|
16
22
|
STOPPED = "STOPPED"
|
|
17
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Available accessibility modes used in the {@link DirectionsRequest}.
|
|
26
|
+
*
|
|
27
|
+
* @property CHOOSE_SHORTEST The route should choose the best route, without taking into account if it is accessible or not
|
|
28
|
+
* This option is the default so you don't have to do anything in order to use it
|
|
29
|
+
* @property ONLY_ACCESSIBLE The route should always use accessible nodes.
|
|
30
|
+
* @property ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES The route should never use accessible floor changes (use this to force routes not to use lifts).
|
|
31
|
+
*/
|
|
32
|
+
export declare enum AccessibilityMode {
|
|
33
|
+
CHOOSE_SHORTEST = "CHOOSE_SHORTEST",
|
|
34
|
+
ONLY_ACCESSIBLE = "ONLY_ACCESSIBLE",
|
|
35
|
+
ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES = "ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES"
|
|
36
|
+
}
|
|
37
|
+
export declare const CURRENT_USER_LOCATION_ID = -1;
|
|
38
|
+
export declare const CUSTOM_DESTINATION_LOCATION_ID = -2;
|
|
18
39
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/types/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/types/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,YAAY,eAAe;IAC3B,MAAM,WAAW;CAClB;AAED,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,QAAQ,wBAAwB;CACjC;AAED,oBAAY,uBAAuB;IACjC,QAAQ,aAAa;IACrB,YAAY,qBAAqB;IACjC,QAAQ,uBAAuB;CAChC;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAG3B,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;CACpB;AAED;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,iCAAiC,sCAAsC;CACxE;AAED,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,8BAA8B,KAAK,CAAC"}
|