@transistorsoft/background-geolocation-types 5.0.0-beta.7 → 5.0.0-beta.8

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.
@@ -22,6 +22,7 @@ export interface GeoConfig {
22
22
  deferTime?: number;
23
23
  allowIdenticalLocations?: boolean;
24
24
  geofenceProximityRadius?: number;
25
+ geofenceModeHighAccuracy?: boolean;
25
26
  disableStopDetection?: boolean;
26
27
  geofenceInitialTriggerEntry?: boolean;
27
28
  filter?: LocationFilter;
@@ -1,3 +1,4 @@
1
+ export type Vertices = [number, number][];
1
2
  export interface Geofence {
2
3
  identifier: string;
3
4
  latitude: number;
@@ -8,4 +9,8 @@ export interface Geofence {
8
9
  notifyOnDwell?: boolean;
9
10
  loiteringDelay?: number;
10
11
  extras?: Record<string, unknown>;
12
+ vertices?: Vertices;
13
+ readonly entryState: number;
14
+ readonly hits: number;
15
+ readonly stateUpdatedAt: number;
11
16
  }
@@ -1,9 +1,11 @@
1
1
  import type { Location } from '../data/Location';
2
2
  import type { GeofenceAction } from '../../enums/GeofenceAction';
3
+ import { Geofence } from '../data/Geofence';
3
4
  export interface GeofenceEvent {
4
5
  timestamp: string;
5
6
  identifier: string;
6
7
  action: GeofenceAction;
7
8
  location: Location;
8
9
  extras?: Record<string, any>;
10
+ geofence?: Geofence;
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transistorsoft/background-geolocation-types",
3
- "version": "5.0.0-beta.7",
3
+ "version": "5.0.0-beta.8",
4
4
  "type": "commonjs",
5
5
  "description": "Shared TypeScript type definitions and documentation for Transistor Software's Background Geolocation SDKs (React Native, Capacitor, Cordova)",
6
6
  "author": "Transistor Software <info@transistorsoft.com>",