@transistorsoft/background-geolocation-types 5.0.0-beta.3 → 5.0.0-beta.4

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.
Files changed (75) hide show
  1. package/dist/core/api/BackgroundGeolocation.d.ts +0 -1551
  2. package/dist/core/api/CurrentPositionRequest.d.ts +0 -36
  3. package/dist/core/api/DeviceSettings.d.ts +0 -63
  4. package/dist/core/api/Logger.d.ts +0 -400
  5. package/dist/core/api/State.d.ts +0 -63
  6. package/dist/core/api/TransistorAuthorizationService.d.ts +0 -110
  7. package/dist/core/config/ActivityConfig.d.ts +0 -260
  8. package/dist/core/config/AppConfig.d.ts +0 -581
  9. package/dist/core/config/AuthorizationConfig.d.ts +0 -191
  10. package/dist/core/config/Config.d.ts +0 -176
  11. package/dist/core/config/GeoConfig.d.ts +0 -876
  12. package/dist/core/config/HttpConfig.d.ts +0 -565
  13. package/dist/core/config/LocationFilter.d.ts +0 -256
  14. package/dist/core/config/LoggerConfig.d.ts +0 -313
  15. package/dist/core/config/NotificationConfig.d.ts +0 -504
  16. package/dist/core/config/PersistenceConfig.d.ts +0 -541
  17. package/dist/core/data/DeviceInfo.d.ts +0 -54
  18. package/dist/core/data/Geofence.d.ts +0 -5
  19. package/dist/core/data/Location.d.ts +0 -213
  20. package/dist/core/data/Sensors.d.ts +0 -22
  21. package/dist/core/events/AuthorizationEvent.d.ts +0 -9
  22. package/dist/core/events/ConnectivityChangeEvent.d.ts +0 -6
  23. package/dist/core/events/GeofenceEvent.d.ts +0 -10
  24. package/dist/core/events/GeofencesChangeEvent.d.ts +0 -7
  25. package/dist/core/events/HeadlessEvent.d.ts +0 -7
  26. package/dist/core/events/HeartbeatEvent.d.ts +0 -10
  27. package/dist/core/events/HttpEvent.d.ts +0 -8
  28. package/dist/core/events/MotionActivityEvent.d.ts +0 -7
  29. package/dist/core/events/MotionChangeEvent.d.ts +0 -7
  30. package/dist/core/events/ProviderChangeEvent.d.ts +0 -10
  31. package/dist/core/events/Subscription.d.ts +0 -83
  32. package/dist/docs-entry.js +0 -3
  33. package/dist/enums/AccuracyAuthorization.d.ts +0 -16
  34. package/dist/enums/AccuracyAuthorization.js +0 -12
  35. package/dist/enums/ActivityType.d.ts +0 -25
  36. package/dist/enums/ActivityType.js +0 -21
  37. package/dist/enums/AuthorizationStatus.d.ts +0 -16
  38. package/dist/enums/AuthorizationStatus.js +0 -13
  39. package/dist/enums/AuthorizationStrategy.d.ts +0 -9
  40. package/dist/enums/AuthorizationStrategy.js +0 -6
  41. package/dist/enums/DesiredAccuracy.d.ts +0 -6
  42. package/dist/enums/DesiredAccuracy.js +0 -5
  43. package/dist/enums/Event.d.ts +0 -9
  44. package/dist/enums/Event.js +0 -5
  45. package/dist/enums/GeofenceAction.d.ts +0 -17
  46. package/dist/enums/GeofenceAction.js +0 -13
  47. package/dist/enums/HttpMethod.d.ts +0 -7
  48. package/dist/enums/HttpMethod.js +0 -6
  49. package/dist/enums/KalmanProfile.d.ts +0 -26
  50. package/dist/enums/KalmanProfile.js +0 -25
  51. package/dist/enums/LocationError.d.ts +0 -19
  52. package/dist/enums/LocationError.js +0 -15
  53. package/dist/enums/LocationFilterPolicy.d.ts +0 -104
  54. package/dist/enums/LocationFilterPolicy.js +0 -103
  55. package/dist/enums/LocationRequest.d.ts +0 -19
  56. package/dist/enums/LocationRequest.js +0 -15
  57. package/dist/enums/LogLevel.d.ts +0 -20
  58. package/dist/enums/LogLevel.js +0 -16
  59. package/dist/enums/LogLevelName.d.ts +0 -6
  60. package/dist/enums/LogLevelName.js +0 -5
  61. package/dist/enums/MotionActivityType.d.ts +0 -6
  62. package/dist/enums/MotionActivityType.js +0 -5
  63. package/dist/enums/NotificationPriority.d.ts +0 -16
  64. package/dist/enums/NotificationPriority.js +0 -15
  65. package/dist/enums/PersistMode.d.ts +0 -7
  66. package/dist/enums/PersistMode.js +0 -6
  67. package/dist/enums/SQLQueryOrder.d.ts +0 -11
  68. package/dist/enums/SQLQueryOrder.js +0 -10
  69. package/dist/enums/TrackingMode.d.ts +0 -11
  70. package/dist/enums/TrackingMode.js +0 -10
  71. package/dist/enums/TriggerActivity.d.ts +0 -7
  72. package/dist/enums/TriggerActivity.js +0 -6
  73. package/dist/index.js +0 -4
  74. package/dist/legacy/LegacyConfig.d.ts +0 -19
  75. package/package.json +8 -9
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MotionActivityType = void 0;
4
- /**
5
- * Reported device motion activity names (legacy RN + native).
6
- *
7
- * @category Events
8
- */
9
4
  exports.MotionActivityType = {
10
5
  Still: 'still',
11
6
  Walking: 'walking',
@@ -1,24 +1,8 @@
1
- /**
2
- * Defines the priority / visibility of the Android foreground-service notification.
3
- *
4
- * This affects how the notification appears in the status bar and how strongly
5
- * the OS ranks it among other notifications.
6
- *
7
- * Mirrors Flutter’s `NotificationPriority` enum.
8
- *
9
- * @category Config
10
- */
11
1
  export declare const NotificationPriority: {
12
- /** Default notification priority (normal weighting). */
13
2
  readonly Default: 0;
14
- /** Notification strongly weighted to top of list; icon strongly weighted to the left. */
15
3
  readonly High: 1;
16
- /** Notification weighted to bottom of list; icon weighted to the right. */
17
4
  readonly Low: -1;
18
- /** Same as {@link NotificationPriority.High}. */
19
5
  readonly Max: 2;
20
- /** Notification strongly weighted to bottom of list; icon hidden. */
21
6
  readonly Min: -2;
22
7
  };
23
- /** @internal @hidden */
24
8
  export type NotificationPriority = (typeof NotificationPriority)[keyof typeof NotificationPriority];
@@ -1,25 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotificationPriority = void 0;
4
- /**
5
- * Defines the priority / visibility of the Android foreground-service notification.
6
- *
7
- * This affects how the notification appears in the status bar and how strongly
8
- * the OS ranks it among other notifications.
9
- *
10
- * Mirrors Flutter’s `NotificationPriority` enum.
11
- *
12
- * @category Config
13
- */
14
4
  exports.NotificationPriority = {
15
- /** Default notification priority (normal weighting). */
16
5
  Default: 0,
17
- /** Notification strongly weighted to top of list; icon strongly weighted to the left. */
18
6
  High: 1,
19
- /** Notification weighted to bottom of list; icon weighted to the right. */
20
7
  Low: -1,
21
- /** Same as {@link NotificationPriority.High}. */
22
8
  Max: 2,
23
- /** Notification strongly weighted to bottom of list; icon hidden. */
24
9
  Min: -2,
25
10
  };
@@ -1,14 +1,7 @@
1
- /**
2
- * Persistence modes for BackgroundGeolocation SDK.
3
- * Mirrors Flutter's `PersistMode` enum.
4
- *
5
- * @category Config
6
- */
7
1
  export declare const PersistMode: {
8
2
  readonly All: 2;
9
3
  readonly Location: 1;
10
4
  readonly Geofence: -1;
11
5
  readonly None: 0;
12
6
  };
13
- /** @internal @hidden */
14
7
  export type PersistMode = (typeof PersistMode)[keyof typeof PersistMode];
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PersistMode = void 0;
4
- /**
5
- * Persistence modes for BackgroundGeolocation SDK.
6
- * Mirrors Flutter's `PersistMode` enum.
7
- *
8
- * @category Config
9
- */
10
4
  exports.PersistMode = {
11
5
  All: 2,
12
6
  Location: 1,
@@ -1,16 +1,5 @@
1
- /**
2
- * Sort order for [[SQLQuery.order]].
3
- *
4
- * | Name | Value |
5
- * |---------------|-------|
6
- * | Asc | `1` |
7
- * | Desc | `-1` |
8
- *
9
- * @category Logger
10
- */
11
1
  export declare const SQLQueryOrder: {
12
2
  readonly Asc: 1;
13
3
  readonly Desc: -1;
14
4
  };
15
- /** @hidden */
16
5
  export type SQLQueryOrder = (typeof SQLQueryOrder)[keyof typeof SQLQueryOrder];
@@ -1,16 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SQLQueryOrder = void 0;
4
- /**
5
- * Sort order for [[SQLQuery.order]].
6
- *
7
- * | Name | Value |
8
- * |---------------|-------|
9
- * | Asc | `1` |
10
- * | Desc | `-1` |
11
- *
12
- * @category Logger
13
- */
14
4
  exports.SQLQueryOrder = {
15
5
  Asc: 1,
16
6
  Desc: -1,
@@ -1,16 +1,5 @@
1
- /**
2
- * SDK tracking mode (legacy RN values preserved).
3
- *
4
- * | Value | Name | Description |
5
- * |------:|------------|-------------------------------|
6
- * | 0 | Geofences | Monitor geofences only. |
7
- * | 1 | Location | Monitor location + geofences. |
8
- *
9
- * @category Config
10
- */
11
1
  export declare const TrackingMode: {
12
2
  readonly Geofences: 0;
13
3
  readonly Location: 1;
14
4
  };
15
- /** @internal @hidden */
16
5
  export type TrackingMode = typeof TrackingMode[keyof typeof TrackingMode];
@@ -1,16 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TrackingMode = void 0;
4
- /**
5
- * SDK tracking mode (legacy RN values preserved).
6
- *
7
- * | Value | Name | Description |
8
- * |------:|------------|-------------------------------|
9
- * | 0 | Geofences | Monitor geofences only. |
10
- * | 1 | Location | Monitor location + geofences. |
11
- *
12
- * @category Config
13
- */
14
4
  exports.TrackingMode = {
15
5
  Geofences: 0,
16
6
  Location: 1
@@ -1,9 +1,3 @@
1
- /**
2
- * Allowed motion activity names that can trigger motion detection.
3
- * Mirrors Flutter's TriggerActivity set.
4
- *
5
- * @category Config
6
- */
7
1
  export declare const TriggerActivity: {
8
2
  readonly Walking: "walking";
9
3
  readonly OnFoot: "on_foot";
@@ -11,5 +5,4 @@ export declare const TriggerActivity: {
11
5
  readonly OnBicycle: "on_bicycle";
12
6
  readonly InVehicle: "in_vehicle";
13
7
  };
14
- /** @internal @hidden */
15
8
  export type TriggerActivity = (typeof TriggerActivity)[keyof typeof TriggerActivity];
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TriggerActivity = void 0;
4
- /**
5
- * Allowed motion activity names that can trigger motion detection.
6
- * Mirrors Flutter's TriggerActivity set.
7
- *
8
- * @category Config
9
- */
10
4
  exports.TriggerActivity = {
11
5
  Walking: 'walking',
12
6
  OnFoot: 'on_foot',
package/dist/index.js CHANGED
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- // enums
18
17
  __exportStar(require("./enums/AuthorizationStatus"), exports);
19
18
  __exportStar(require("./enums/LogLevel"), exports);
20
19
  __exportStar(require("./enums/DesiredAccuracy"), exports);
@@ -35,7 +34,6 @@ __exportStar(require("./enums/Event"), exports);
35
34
  __exportStar(require("./enums/ActivityType"), exports);
36
35
  __exportStar(require("./enums/LocationError"), exports);
37
36
  __exportStar(require("./enums/SQLQueryOrder"), exports);
38
- // events/data
39
37
  __exportStar(require("./core/data/Location"), exports);
40
38
  __exportStar(require("./core/data/Geofence"), exports);
41
39
  __exportStar(require("./core/data/DeviceInfo"), exports);
@@ -51,7 +49,6 @@ __exportStar(require("./core/events/ConnectivityChangeEvent"), exports);
51
49
  __exportStar(require("./core/events/MotionChangeEvent"), exports);
52
50
  __exportStar(require("./core/events/ProviderChangeEvent"), exports);
53
51
  __exportStar(require("./core/events/HttpEvent"), exports);
54
- // config groups
55
52
  __exportStar(require("./core/config/Config"), exports);
56
53
  __exportStar(require("./core/config/GeoConfig"), exports);
57
54
  __exportStar(require("./core/config/HttpConfig"), exports);
@@ -62,7 +59,6 @@ __exportStar(require("./core/config/LoggerConfig"), exports);
62
59
  __exportStar(require("./core/config/AuthorizationConfig"), exports);
63
60
  __exportStar(require("./core/config/NotificationConfig"), exports);
64
61
  __exportStar(require("./core/config/LocationFilter"), exports);
65
- // Primary API
66
62
  __exportStar(require("./core/api/BackgroundGeolocation"), exports);
67
63
  __exportStar(require("./core/api/State"), exports);
68
64
  __exportStar(require("./core/api/Logger"), exports);
@@ -1,22 +1,3 @@
1
- /**
2
- * Historic, flat configuration surface.
3
- *
4
- * @deprecated Use {@link Config} groups instead:
5
- * geolocation, http, persistence, activity, app, logger, authorization, notification.
6
- *
7
- * Full documentation intentionally preserved for hover/TypeDoc.
8
- * @example
9
- * ```ts
10
- * import { LegacyConfig } from 'background-geolocation-types';
11
- * const config: LegacyConfig = {
12
- * desiredAccuracy: 10,
13
- * distanceFilter: 50,
14
- * stopOnTerminate: false,
15
- * // ...etc
16
- * };
17
- * ```
18
- * @category Config
19
- */
20
1
  export interface LegacyConfig {
21
2
  desiredAccuracy?: number;
22
3
  distanceFilter?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transistorsoft/background-geolocation-types",
3
- "version": "5.0.0-beta.3",
3
+ "version": "5.0.0-beta.4",
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>",
@@ -33,18 +33,17 @@
33
33
  "files": [
34
34
  "dist"
35
35
  ],
36
- "scripts": {
37
- "clean": "rimraf dist",
38
- "build": "tsc -p tsconfig.json",
39
- "watch": "tsc -p tsconfig.json -w",
40
- "prepare": "pnpm run build",
41
- "docs": "typedoc --options typedoc.json"
42
- },
43
36
  "devDependencies": {
44
37
  "@types/node": "^24.10.0",
45
38
  "rimraf": "^5.0.0",
46
39
  "typedoc": "^0.28.14",
47
40
  "typedoc-plugin-markdown": "^4.9.0",
48
41
  "typescript": "^5.6.0"
42
+ },
43
+ "scripts": {
44
+ "clean": "rimraf dist",
45
+ "build": "tsc -p tsconfig.json",
46
+ "watch": "tsc -p tsconfig.json -w",
47
+ "docs": "typedoc --options typedoc.json"
49
48
  }
50
- }
49
+ }