react-native-radar 3.10.6-beta.1 → 3.10.6

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.
@@ -18,7 +18,7 @@ android {
18
18
  minSdkVersion 16
19
19
  targetSdkVersion 31
20
20
  versionCode 1
21
- versionName '3.10.6-beta.1'
21
+ versionName '3.10.6'
22
22
  }
23
23
  lintOptions {
24
24
  abortOnError false
@@ -45,5 +45,5 @@ repositories {
45
45
 
46
46
  dependencies {
47
47
  api 'com.facebook.react:react-native:+'
48
- api 'io.radar:sdk:3.9.8-beta.9'
48
+ api 'io.radar:sdk:3.9.8'
49
49
  }
@@ -95,7 +95,7 @@ public class RNRadarModule extends ReactContextBaseJavaModule implements Permiss
95
95
  this.fraud = fraud;
96
96
  SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
97
97
  editor.putString("x_platform_sdk_type", "ReactNative");
98
- editor.putString("x_platform_sdk_version", "3.10.6-beta.1");
98
+ editor.putString("x_platform_sdk_version", "3.10.6");
99
99
  editor.apply();
100
100
  if (fraud) {
101
101
  Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud);
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.6-beta.1",
6
+ "version": "3.10.6",
7
7
  "main": "dist/src/index.js",
8
8
  "files": [
9
9
  "android",
@@ -133,7 +133,7 @@ export interface RadarTripOptions {
133
133
  destinationGeofenceTag?: string;
134
134
  destinationGeofenceExternalId?: string;
135
135
  mode?: RadarRouteMode;
136
- scheduledArrivalAt?: Date;
136
+ scheduledArrivalAt?: number;
137
137
  approachingThreshold?: number;
138
138
  }
139
139
  export interface RadarTrackCallback {
@@ -287,6 +287,11 @@ export interface RadarTrip {
287
287
  status: RadarTripStatus;
288
288
  scheduledArrivalAt?: Date;
289
289
  destinationLocation: Location;
290
+ delay: RadarDelay;
291
+ }
292
+ export interface RadarDelay {
293
+ delayed: boolean;
294
+ scheduledArrivalTimeDelay: number;
290
295
  }
291
296
  export interface RadarSegment {
292
297
  description: string;
@@ -317,6 +322,7 @@ export interface RadarEvent {
317
322
  replayed?: boolean;
318
323
  createdAt: string;
319
324
  actualCreatedAt: string;
325
+ fraud?: RadarFraud;
320
326
  }
321
327
  export declare enum RadarEventConfidence {
322
328
  none = 0,
@@ -324,7 +330,7 @@ export declare enum RadarEventConfidence {
324
330
  medium = 2,
325
331
  high = 3
326
332
  }
327
- export type RadarEventType = "unknown" | "user.entered_geofence" | "user.entered_beacon" | "user.dwelled_in_geofence" | "user.entered_place" | "user.entered_region_country" | "user.entered_region_dma" | "user.entered_region_state" | "user.entered_region_postal_code" | "user.exited_geofence" | "user.exited_beacon" | "user.exited_place" | "user.exited_region_country" | "user.exited_region_dma" | "user.exited_region_state" | "user.exited_region_postal_code" | "user.nearby_place_chain" | "user.started_trip" | "user.updated_trip" | "user.approaching_trip_destination" | "user.arrived_at_trip_destination" | "user.stopped_trip";
333
+ export type RadarEventType = "unknown" | "user.entered_geofence" | "user.entered_beacon" | "user.dwelled_in_geofence" | "user.entered_place" | "user.entered_region_country" | "user.entered_region_dma" | "user.entered_region_state" | "user.entered_region_postal_code" | "user.exited_geofence" | "user.exited_beacon" | "user.exited_place" | "user.exited_region_country" | "user.exited_region_dma" | "user.exited_region_state" | "user.exited_region_postal_code" | "user.nearby_place_chain" | "user.started_trip" | "user.updated_trip" | "user.approaching_trip_destination" | "user.arrived_at_trip_destination" | "user.stopped_trip" | "user.arrived_at_wrong_trip_destination" | "user.delayed_during_trip" | "user.failed_fraud";
328
334
  export type RadarTrackingOptionsDesiredAccuracy = "high" | "medium" | "low" | "none";
329
335
  export declare enum RadarEventVerification {
330
336
  accept = 1,
@@ -376,6 +382,10 @@ export interface RadarRegion {
376
382
  name: string;
377
383
  allowed?: boolean;
378
384
  flag?: string;
385
+ passed?: boolean;
386
+ inExclusionZone?: boolean;
387
+ inBufferZone?: boolean;
388
+ distanceToBorder?: number;
379
389
  }
380
390
  export interface RadarAddress {
381
391
  addressLabel?: string;
@@ -442,6 +452,7 @@ export interface RadarFraud {
442
452
  mocked: boolean;
443
453
  compromised: boolean;
444
454
  jumped: boolean;
455
+ inaccurate: boolean;
445
456
  }
446
457
  export type RadarTrackingOptionsReplay = "all" | "stops" | "none";
447
458
  export type RadarTrackingOptionsSync = "none" | "stopsAndExits" | "all";
@@ -1 +1 @@
1
- github "radarlabs/radar-sdk-ios" "3.9.10"
1
+ github "radarlabs/radar-sdk-ios" "3.9.12"
package/ios/RNRadar.m CHANGED
@@ -100,7 +100,7 @@ RCT_EXPORT_MODULE();
100
100
 
101
101
  RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
102
102
  [[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
103
- [[NSUserDefaults standardUserDefaults] setObject:@"3.10.6-beta.1" forKey:@"radar-xPlatformSDKVersion"];
103
+ [[NSUserDefaults standardUserDefaults] setObject:@"3.10.6" forKey:@"radar-xPlatformSDKVersion"];
104
104
  [Radar initializeWithPublishableKey:publishableKey];
105
105
  }
106
106
 
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.6-beta.1",
6
+ "version": "3.10.6",
7
7
  "main": "dist/src/index.js",
8
8
  "files": [
9
9
  "android",
@@ -15,5 +15,5 @@ Pod::Spec.new do |s|
15
15
  s.platform = :ios, "10.0"
16
16
 
17
17
  s.dependency "React"
18
- s.dependency "RadarSDK", "~> 3.9.10"
18
+ s.dependency "RadarSDK", "~> 3.9.12"
19
19
  end
@@ -286,7 +286,7 @@ export interface RadarTripOptions {
286
286
  destinationGeofenceTag?: string;
287
287
  destinationGeofenceExternalId?: string;
288
288
  mode?: RadarRouteMode;
289
- scheduledArrivalAt?: Date;
289
+ scheduledArrivalAt?: number;
290
290
  approachingThreshold?: number;
291
291
  }
292
292
 
@@ -505,6 +505,12 @@ export interface RadarTrip {
505
505
  status: RadarTripStatus;
506
506
  scheduledArrivalAt?: Date;
507
507
  destinationLocation: Location;
508
+ delay:RadarDelay;
509
+ }
510
+
511
+ export interface RadarDelay {
512
+ delayed:boolean;
513
+ scheduledArrivalTimeDelay:number;
508
514
  }
509
515
 
510
516
  export interface RadarSegment {
@@ -538,6 +544,7 @@ export interface RadarEvent {
538
544
  replayed?: boolean;
539
545
  createdAt: string;
540
546
  actualCreatedAt: string;
547
+ fraud?: RadarFraud;
541
548
  }
542
549
 
543
550
  export enum RadarEventConfidence {
@@ -569,7 +576,10 @@ export type RadarEventType =
569
576
  | "user.updated_trip"
570
577
  | "user.approaching_trip_destination"
571
578
  | "user.arrived_at_trip_destination"
572
- | "user.stopped_trip";
579
+ | "user.stopped_trip"
580
+ | "user.arrived_at_wrong_trip_destination"
581
+ | "user.delayed_during_trip"
582
+ | "user.failed_fraud";
573
583
 
574
584
  export type RadarTrackingOptionsDesiredAccuracy =
575
585
  | "high"
@@ -634,6 +644,10 @@ export interface RadarRegion {
634
644
  name: string;
635
645
  allowed?: boolean;
636
646
  flag?: string;
647
+ passed?: boolean;
648
+ inExclusionZone?: boolean;
649
+ inBufferZone?: boolean;
650
+ distanceToBorder?: number;
637
651
  }
638
652
 
639
653
  export interface RadarAddress {
@@ -713,6 +727,7 @@ export interface RadarFraud {
713
727
  mocked: boolean;
714
728
  compromised: boolean;
715
729
  jumped: boolean;
730
+ inaccurate: boolean;
716
731
  }
717
732
 
718
733
  export type RadarTrackingOptionsReplay = "all" | "stops" | "none";