@transistorsoft/background-geolocation-types 5.0.0-beta.2 → 5.0.0-beta.3
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/dist/core/api/BackgroundGeolocation.d.ts +1307 -0
- package/dist/enums/AccuracyAuthorization.d.ts +5 -0
- package/dist/enums/ActivityType.d.ts +5 -0
- package/dist/enums/AuthorizationStatus.d.ts +4 -0
- package/dist/enums/AuthorizationStrategy.d.ts +4 -0
- package/dist/enums/DesiredAccuracy.d.ts +2 -0
- package/dist/enums/Event.d.ts +5 -0
- package/dist/enums/GeofenceAction.d.ts +5 -0
- package/dist/enums/HttpMethod.d.ts +2 -0
- package/dist/enums/KalmanProfile.d.ts +2 -0
- package/dist/enums/LocationError.d.ts +5 -0
- package/dist/enums/LocationFilterPolicy.d.ts +2 -0
- package/dist/enums/LocationRequest.d.ts +5 -0
- package/dist/enums/LogLevel.d.ts +5 -0
- package/dist/enums/LogLevelName.d.ts +14 -1
- package/dist/enums/MotionActivityType.d.ts +2 -0
- package/dist/enums/NotificationPriority.d.ts +2 -0
- package/dist/enums/PersistMode.d.ts +2 -0
- package/dist/enums/TrackingMode.d.ts +2 -0
- package/dist/enums/TriggerActivity.d.ts +2 -0
- package/package.json +1 -1
- package/dist/core/config/CompoundConfig.d.ts +0 -19
- package/dist/core/config/CompoundConfig.js +0 -2
|
@@ -14,3 +14,8 @@ export declare const AccuracyAuthorization: {
|
|
|
14
14
|
readonly Full: 0;
|
|
15
15
|
readonly Reduced: 1;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Type union of the AccuracyAuthorization values.
|
|
19
|
+
* @internal @hidden
|
|
20
|
+
*/
|
|
21
|
+
export type AccuracyAuthorization = (typeof AccuracyAuthorization)[keyof typeof AccuracyAuthorization];
|
|
@@ -26,3 +26,8 @@ export declare const ActivityType: {
|
|
|
26
26
|
/** Airborne activity (iOS 15+). */
|
|
27
27
|
readonly Airborne: 5;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Type union of the ActivityType values.
|
|
31
|
+
* @internal @hidden
|
|
32
|
+
*/
|
|
33
|
+
export type ActivityType = (typeof ActivityType)[keyof typeof ActivityType];
|
package/dist/enums/Event.d.ts
CHANGED
|
@@ -16,3 +16,8 @@ export declare const GeofenceAction: {
|
|
|
16
16
|
readonly Exit: "EXIT";
|
|
17
17
|
readonly Dwell: "DWELL";
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Union of geofence transition strings.
|
|
21
|
+
* @internal @hidden
|
|
22
|
+
*/
|
|
23
|
+
export type GeofenceAction = (typeof GeofenceAction)[keyof typeof GeofenceAction];
|
|
@@ -21,3 +21,8 @@ export declare const LocationError: {
|
|
|
21
21
|
readonly Timeout: 408;
|
|
22
22
|
readonly Cancelled: 499;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Union type of possible location error codes.
|
|
26
|
+
* @internal @hidden
|
|
27
|
+
*/
|
|
28
|
+
export type LocationError = (typeof LocationError)[keyof typeof LocationError];
|
|
@@ -106,3 +106,5 @@ export declare const LocationFilterPolicy: {
|
|
|
106
106
|
/** Aggressive — filters heavily, preferring stability over responsiveness. */
|
|
107
107
|
readonly Conservative: 2;
|
|
108
108
|
};
|
|
109
|
+
/** @internal @hidden */
|
|
110
|
+
export type LocationFilterPolicy = (typeof LocationFilterPolicy)[keyof typeof LocationFilterPolicy];
|
|
@@ -18,3 +18,8 @@ export declare const LocationRequest: {
|
|
|
18
18
|
readonly WhenInUse: "WhenInUse";
|
|
19
19
|
readonly Any: "Any";
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Type union of all LocationRequest values.
|
|
23
|
+
* @internal @hidden
|
|
24
|
+
*/
|
|
25
|
+
export type LocationRequest = (typeof LocationRequest)[keyof typeof LocationRequest];
|
package/dist/enums/LogLevel.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Log severity level used by {@link Logger.debug} {@link Logger.info}, etc.
|
|
3
|
+
* @hidden
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const LogLevelName: {
|
|
7
|
+
readonly Debug: "debug";
|
|
8
|
+
readonly Notice: "notice";
|
|
9
|
+
readonly Info: "info";
|
|
10
|
+
readonly Warn: "warn";
|
|
11
|
+
readonly Error: "error";
|
|
12
|
+
};
|
|
13
|
+
/** @internal @hidden */
|
|
14
|
+
export type LogLevelName = typeof LogLevelName[keyof typeof LogLevelName];
|
|
@@ -20,3 +20,5 @@ export declare const NotificationPriority: {
|
|
|
20
20
|
/** Notification strongly weighted to bottom of list; icon hidden. */
|
|
21
21
|
readonly Min: -2;
|
|
22
22
|
};
|
|
23
|
+
/** @internal @hidden */
|
|
24
|
+
export type NotificationPriority = (typeof NotificationPriority)[keyof typeof NotificationPriority];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transistorsoft/background-geolocation-types",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
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>",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LoggerConfig } from './LoggerConfig';
|
|
2
|
-
import { HttpConfig } from './HttpConfig';
|
|
3
|
-
import { GeoConfig } from './GeoConfig';
|
|
4
|
-
import { AppConfig } from './AppConfig';
|
|
5
|
-
import { PersistenceConfig } from './PersistenceConfig';
|
|
6
|
-
import { ActivityConfig } from './ActivityConfig';
|
|
7
|
-
import { AuthorizationConfig } from './AuthorizationConfig';
|
|
8
|
-
/**
|
|
9
|
-
* Root compound configuration object for the BackgroundGeolocation SDK.
|
|
10
|
-
*/
|
|
11
|
-
export interface CompoundConfig {
|
|
12
|
-
logger?: LoggerConfig;
|
|
13
|
-
geolocation?: GeoConfig;
|
|
14
|
-
http?: HttpConfig;
|
|
15
|
-
app?: AppConfig;
|
|
16
|
-
persistence?: PersistenceConfig;
|
|
17
|
-
activity?: ActivityConfig;
|
|
18
|
-
authorization?: AuthorizationConfig;
|
|
19
|
-
}
|