@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.
@@ -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];
@@ -18,3 +18,7 @@ export declare const AuthorizationStatus: {
18
18
  readonly Always: 3;
19
19
  readonly WhenInUse: 4;
20
20
  };
21
+ /**
22
+ * @hidden @internal
23
+ */
24
+ export type AuthorizationStatus = (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
@@ -8,3 +8,7 @@ export declare const AuthorizationStrategy: {
8
8
  readonly Jwt: "jwt";
9
9
  readonly Sas: "sas";
10
10
  };
11
+ /**
12
+ * @internal @hidden
13
+ */
14
+ export type AuthorizationStrategy = (typeof AuthorizationStrategy)[keyof typeof AuthorizationStrategy];
@@ -11,3 +11,5 @@ export declare const DesiredAccuracy: {
11
11
  readonly VeryLow: 1000;
12
12
  readonly Lowest: 3000;
13
13
  };
14
+ /** @internal @hidden */
15
+ export type DesiredAccuracy = typeof DesiredAccuracy[keyof typeof DesiredAccuracy];
@@ -21,3 +21,8 @@ export declare const Event: {
21
21
  readonly Schedule: "schedule";
22
22
  readonly Notification: "notification";
23
23
  };
24
+ /**
25
+ * Event names emitted by the SDK.
26
+ * @hidden @internal
27
+ */
28
+ export type Event = (typeof Event)[keyof typeof Event];
@@ -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];
@@ -9,3 +9,5 @@ export declare const HttpMethod: {
9
9
  readonly Put: "PUT";
10
10
  readonly Patch: "PATCH";
11
11
  };
12
+ /** @internal @hidden */
13
+ export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
@@ -28,3 +28,5 @@ export declare const KalmanProfile: {
28
28
  /** Conservative — maximum smoothing, slower reaction to change. */
29
29
  readonly Conservative: 2;
30
30
  };
31
+ /** @internal @hidden */
32
+ export type KalmanProfile = (typeof KalmanProfile)[keyof typeof KalmanProfile];
@@ -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];
@@ -22,3 +22,8 @@ export declare const LogLevel: {
22
22
  readonly Debug: 4;
23
23
  readonly Verbose: 5;
24
24
  };
25
+ /**
26
+ * Type union of all LogLevel values.
27
+ * @internal @hidden
28
+ */
29
+ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
@@ -1 +1,14 @@
1
- export {};
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];
@@ -12,3 +12,5 @@ export declare const MotionActivityType: {
12
12
  readonly InVehicle: "in_vehicle";
13
13
  readonly Unknown: "unknown";
14
14
  };
15
+ /** @internal @hidden */
16
+ export type MotionActivityType = typeof MotionActivityType[keyof typeof MotionActivityType];
@@ -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];
@@ -10,3 +10,5 @@ export declare const PersistMode: {
10
10
  readonly Geofence: -1;
11
11
  readonly None: 0;
12
12
  };
13
+ /** @internal @hidden */
14
+ export type PersistMode = (typeof PersistMode)[keyof typeof PersistMode];
@@ -12,3 +12,5 @@ export declare const TrackingMode: {
12
12
  readonly Geofences: 0;
13
13
  readonly Location: 1;
14
14
  };
15
+ /** @internal @hidden */
16
+ export type TrackingMode = typeof TrackingMode[keyof typeof TrackingMode];
@@ -11,3 +11,5 @@ export declare const TriggerActivity: {
11
11
  readonly OnBicycle: "on_bicycle";
12
12
  readonly InVehicle: "in_vehicle";
13
13
  };
14
+ /** @internal @hidden */
15
+ export type TriggerActivity = (typeof TriggerActivity)[keyof typeof TriggerActivity];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transistorsoft/background-geolocation-types",
3
- "version": "5.0.0-beta.2",
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });