@transistorsoft/background-geolocation-types 5.2.1 → 5.2.2
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.
|
@@ -5,7 +5,7 @@ import type { WatchPositionRequest } from './WatchPositionRequest';
|
|
|
5
5
|
import type { LocationQuery } from './LocationQuery';
|
|
6
6
|
import type { Config } from '../config/Config';
|
|
7
7
|
import type { State } from './State';
|
|
8
|
-
import type { Location } from '../data/Location';
|
|
8
|
+
import type { Location, LocationInput } from '../data/Location';
|
|
9
9
|
import type { LocationError } from '../../enums/LocationError';
|
|
10
10
|
import type { Geofence } from '../data/Geofence';
|
|
11
11
|
import type { DeviceInfo } from '../data/DeviceInfo';
|
|
@@ -110,7 +110,7 @@ export interface BackgroundGeolocationAPI extends BackgroundGeolocationEvents {
|
|
|
110
110
|
isPowerSaveMode(): Promise<boolean>;
|
|
111
111
|
destroyLocations(): Promise<void>;
|
|
112
112
|
destroyLocation(uuid: string): Promise<void>;
|
|
113
|
-
insertLocation(location:
|
|
113
|
+
insertLocation(location: LocationInput): Promise<string>;
|
|
114
114
|
getLocations(query?: LocationQuery): Promise<Array<Object>>;
|
|
115
115
|
getCount(): Promise<number>;
|
|
116
116
|
sync(): Promise<Array<Object>>;
|
|
@@ -40,3 +40,9 @@ export interface Location {
|
|
|
40
40
|
activity: MotionActivity;
|
|
41
41
|
provider?: ProviderChangeEvent;
|
|
42
42
|
}
|
|
43
|
+
export interface LocationInput {
|
|
44
|
+
coords: Pick<Coords, "latitude" | "longitude"> & Partial<Coords>;
|
|
45
|
+
timestamp?: string | number;
|
|
46
|
+
uuid?: string;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transistorsoft/background-geolocation-types",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
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>",
|