react-native-radar 3.10.0-beta.4 → 3.10.0-beta.5
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/build.gradle +1 -1
- package/dist/package.json +1 -1
- package/dist/src/@types/types.d.ts +10 -10
- package/package.json +1 -1
- package/src/@types/types.ts +23 -10
package/android/build.gradle
CHANGED
package/dist/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
|
|
4
4
|
"homepage": "https://radar.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "3.10.0-beta.
|
|
6
|
+
"version": "3.10.0-beta.5",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
|
@@ -14,16 +14,15 @@ export interface RadarTrackingOptions {
|
|
|
14
14
|
desiredMovingUpdateInterval: number;
|
|
15
15
|
fastestMovingUpdateInterval?: number;
|
|
16
16
|
desiredSyncInterval: number;
|
|
17
|
-
desiredAccuracy:
|
|
17
|
+
desiredAccuracy: RadarTrackingOptionsDesiredAccuracy;
|
|
18
18
|
stopDuration: number;
|
|
19
19
|
stopDistance: number;
|
|
20
|
-
sync:
|
|
21
|
-
replay:
|
|
20
|
+
sync: "all" | "stopsAndExits" | "none";
|
|
21
|
+
replay: "all" | "stops" | "none";
|
|
22
22
|
useStoppedGeofence: boolean;
|
|
23
23
|
showBlueBar?: boolean;
|
|
24
24
|
startTrackingAfter?: number;
|
|
25
25
|
stopTrackingAfter?: number;
|
|
26
|
-
syncLocations?: String;
|
|
27
26
|
stoppedGeofenceRadius: number;
|
|
28
27
|
useMovingGeofence: boolean;
|
|
29
28
|
movingGeofenceRadius: number;
|
|
@@ -180,7 +179,7 @@ export interface RadarLogConversionCallback {
|
|
|
180
179
|
}
|
|
181
180
|
export interface RadarTrackTokenCallback {
|
|
182
181
|
status: string;
|
|
183
|
-
token?:
|
|
182
|
+
token?: string;
|
|
184
183
|
}
|
|
185
184
|
export interface RadarEventUpdate {
|
|
186
185
|
user?: RadarUser;
|
|
@@ -199,7 +198,7 @@ export interface RadarLocationUpdateCallback {
|
|
|
199
198
|
export interface RadarClientLocationUpdate {
|
|
200
199
|
location: Location;
|
|
201
200
|
stopped: boolean;
|
|
202
|
-
source:
|
|
201
|
+
source: RadarLocationSource;
|
|
203
202
|
}
|
|
204
203
|
export interface RadarClientLocationUpdateCallback {
|
|
205
204
|
(args: RadarClientLocationUpdate): void;
|
|
@@ -211,7 +210,8 @@ export interface RadarLogUpdateCallback {
|
|
|
211
210
|
(status: string): void;
|
|
212
211
|
}
|
|
213
212
|
export type RadarListenerCallback = RadarEventUpdateCallback | RadarLocationUpdateCallback | RadarClientLocationUpdateCallback | RadarErrorCallback | RadarLogUpdateCallback;
|
|
214
|
-
export type RadarPermissionsStatus = "GRANTED_FOREGROUND" | "
|
|
213
|
+
export type RadarPermissionsStatus = "GRANTED_FOREGROUND" | "GRANTED_BACKGROUND" | "DENIED" | "NOT_DETERMINED" | "UNKNOWN";
|
|
214
|
+
export type RadarLocationSource = "FOREGROUND_LOCATION" | "BACKGROUND_LOCATION" | "MANUAL_LOCATION" | "VISIT_ARRIVAL" | "VISIT_DEPARTURE" | "GEOFENCE_ENTER" | "GEOFENCE_DWELL" | "GEOFENCE_EXIT" | "MOCK_LOCATION" | "BEACON_ENTER" | "BEACON_EXIT" | "UNKNOWN";
|
|
215
215
|
export type Event = "clientLocation" | "location" | "error" | "events" | "log";
|
|
216
216
|
export type RadarLogLevel = "info" | "debug" | "warning" | "error" | "none";
|
|
217
217
|
export interface RadarRouteMatrix {
|
|
@@ -265,9 +265,9 @@ export interface RadarTrip {
|
|
|
265
265
|
metadata?: RadarMetadata;
|
|
266
266
|
destinationGeofenceTag?: string;
|
|
267
267
|
destinationGeofenceExternalId?: string;
|
|
268
|
-
mode?:
|
|
268
|
+
mode?: RadarRouteMode;
|
|
269
269
|
eta?: RadarTripEta;
|
|
270
|
-
status:
|
|
270
|
+
status: RadarTripStatus;
|
|
271
271
|
scheduledArrivalAt?: Date;
|
|
272
272
|
destinationLocation: Location;
|
|
273
273
|
}
|
|
@@ -428,7 +428,7 @@ export interface RadarFraud {
|
|
|
428
428
|
}
|
|
429
429
|
export type RadarTrackingOptionsReplay = "all" | "stops" | "none";
|
|
430
430
|
export type RadarTrackingOptionsSync = "none" | "stopsAndExits" | "all";
|
|
431
|
-
export type RadarRouteMode = "foot" | "bike" | "car";
|
|
431
|
+
export type RadarRouteMode = "foot" | "bike" | "car" | "truck" | "motorbike";
|
|
432
432
|
export interface RadarTrackingOptionsForegroundService {
|
|
433
433
|
text?: string;
|
|
434
434
|
title?: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
|
|
4
4
|
"homepage": "https://radar.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "3.10.0-beta.
|
|
6
|
+
"version": "3.10.0-beta.5",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"android",
|
package/src/@types/types.ts
CHANGED
|
@@ -16,16 +16,15 @@ export interface RadarTrackingOptions {
|
|
|
16
16
|
desiredMovingUpdateInterval: number;
|
|
17
17
|
fastestMovingUpdateInterval?: number;
|
|
18
18
|
desiredSyncInterval: number;
|
|
19
|
-
desiredAccuracy:
|
|
19
|
+
desiredAccuracy: RadarTrackingOptionsDesiredAccuracy;
|
|
20
20
|
stopDuration: number;
|
|
21
21
|
stopDistance: number;
|
|
22
|
-
sync:
|
|
23
|
-
replay:
|
|
22
|
+
sync: "all" | "stopsAndExits" | "none";
|
|
23
|
+
replay: "all" | "stops" | "none";
|
|
24
24
|
useStoppedGeofence: boolean;
|
|
25
25
|
showBlueBar?: boolean;
|
|
26
26
|
startTrackingAfter?: number;
|
|
27
27
|
stopTrackingAfter?: number;
|
|
28
|
-
syncLocations?: String;
|
|
29
28
|
stoppedGeofenceRadius: number;
|
|
30
29
|
useMovingGeofence: boolean;
|
|
31
30
|
movingGeofenceRadius: number;
|
|
@@ -207,7 +206,7 @@ export interface RadarLogConversionCallback {
|
|
|
207
206
|
|
|
208
207
|
export interface RadarTrackTokenCallback {
|
|
209
208
|
status: string;
|
|
210
|
-
token?:
|
|
209
|
+
token?: string;
|
|
211
210
|
}
|
|
212
211
|
|
|
213
212
|
export interface RadarEventUpdate {
|
|
@@ -231,7 +230,7 @@ export interface RadarLocationUpdateCallback {
|
|
|
231
230
|
export interface RadarClientLocationUpdate {
|
|
232
231
|
location: Location;
|
|
233
232
|
stopped: boolean;
|
|
234
|
-
source:
|
|
233
|
+
source: RadarLocationSource;
|
|
235
234
|
}
|
|
236
235
|
|
|
237
236
|
export interface RadarClientLocationUpdateCallback {
|
|
@@ -255,11 +254,25 @@ export type RadarListenerCallback =
|
|
|
255
254
|
|
|
256
255
|
export type RadarPermissionsStatus =
|
|
257
256
|
| "GRANTED_FOREGROUND"
|
|
258
|
-
| "
|
|
257
|
+
| "GRANTED_BACKGROUND"
|
|
259
258
|
| "DENIED"
|
|
260
259
|
| "NOT_DETERMINED"
|
|
261
260
|
| "UNKNOWN";
|
|
262
261
|
|
|
262
|
+
export type RadarLocationSource =
|
|
263
|
+
| "FOREGROUND_LOCATION"
|
|
264
|
+
| "BACKGROUND_LOCATION"
|
|
265
|
+
| "MANUAL_LOCATION"
|
|
266
|
+
| "VISIT_ARRIVAL"
|
|
267
|
+
| "VISIT_DEPARTURE"
|
|
268
|
+
| "GEOFENCE_ENTER"
|
|
269
|
+
| "GEOFENCE_DWELL"
|
|
270
|
+
| "GEOFENCE_EXIT"
|
|
271
|
+
| "MOCK_LOCATION"
|
|
272
|
+
| "BEACON_ENTER"
|
|
273
|
+
| "BEACON_EXIT"
|
|
274
|
+
| "UNKNOWN";
|
|
275
|
+
|
|
263
276
|
export type Event = "clientLocation" | "location" | "error" | "events" | "log";
|
|
264
277
|
|
|
265
278
|
export type RadarLogLevel = "info" | "debug" | "warning" | "error" | "none";
|
|
@@ -331,9 +344,9 @@ export interface RadarTrip {
|
|
|
331
344
|
metadata?: RadarMetadata;
|
|
332
345
|
destinationGeofenceTag?: string;
|
|
333
346
|
destinationGeofenceExternalId?: string;
|
|
334
|
-
mode?:
|
|
347
|
+
mode?: RadarRouteMode;
|
|
335
348
|
eta?: RadarTripEta;
|
|
336
|
-
status:
|
|
349
|
+
status: RadarTripStatus;
|
|
337
350
|
scheduledArrivalAt?: Date;
|
|
338
351
|
destinationLocation: Location;
|
|
339
352
|
}
|
|
@@ -550,7 +563,7 @@ export type RadarTrackingOptionsReplay = "all" | "stops" | "none";
|
|
|
550
563
|
|
|
551
564
|
export type RadarTrackingOptionsSync = "none" | "stopsAndExits" | "all";
|
|
552
565
|
|
|
553
|
-
export type RadarRouteMode = "foot" | "bike" | "car";
|
|
566
|
+
export type RadarRouteMode = "foot" | "bike" | "car" | "truck" | "motorbike";
|
|
554
567
|
|
|
555
568
|
export interface RadarTrackingOptionsForegroundService {
|
|
556
569
|
text?: string;
|