@transistorsoft/background-geolocation-types 5.0.0-beta.4 → 5.0.0-beta.5
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.
|
@@ -23,6 +23,7 @@ import type { AuthorizationStatus } from '../../enums/AuthorizationStatus';
|
|
|
23
23
|
import type { LogLevel } from '../../enums/LogLevel';
|
|
24
24
|
import type { PersistMode } from '../../enums/PersistMode';
|
|
25
25
|
import type { AccuracyAuthorization } from '../../enums/AccuracyAuthorization';
|
|
26
|
+
import type { TransistorAuthorizationToken } from './TransistorAuthorizationService';
|
|
26
27
|
export interface EventPayloads {
|
|
27
28
|
location: Location;
|
|
28
29
|
motionchange: MotionChangeEvent;
|
|
@@ -111,6 +112,8 @@ export interface BackgroundGeolocationAPI extends BackgroundGeolocationEvents {
|
|
|
111
112
|
startBackgroundTask(): Promise<number>;
|
|
112
113
|
stopBackgroundTask(taskId: number): Promise<void>;
|
|
113
114
|
finishHeadlessTask(taskId: string): Promise<number>;
|
|
115
|
+
findOrCreateTransistorAuthorizationToken(orgname: string, username: string, url?: string): Promise<TransistorAuthorizationToken>;
|
|
116
|
+
destroyTransistorAuthorizationToken(url: string): Promise<void>;
|
|
114
117
|
}
|
|
115
118
|
export interface BackgroundGeolocation extends BackgroundGeolocationAPI {
|
|
116
119
|
LogLevel: typeof import('../../enums/LogLevel').LogLevel;
|
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.5",
|
|
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,17 +33,18 @@
|
|
|
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
|
+
},
|
|
36
43
|
"devDependencies": {
|
|
37
44
|
"@types/node": "^24.10.0",
|
|
38
45
|
"rimraf": "^5.0.0",
|
|
39
46
|
"typedoc": "^0.28.14",
|
|
40
47
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
41
48
|
"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"
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}
|