@transistorsoft/background-geolocation-types 5.0.1 → 5.1.1

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.
@@ -115,6 +115,7 @@ export interface BackgroundGeolocationAPI extends BackgroundGeolocationEvents {
115
115
  finishHeadlessTask(taskId: string): Promise<number>;
116
116
  findOrCreateTransistorAuthorizationToken(orgname: string, username: string, url?: string): Promise<TransistorAuthorizationToken>;
117
117
  destroyTransistorAuthorizationToken(url: string): Promise<void>;
118
+ playSound(soundId: number | string): void;
118
119
  }
119
120
  export interface BackgroundGeolocation extends BackgroundGeolocationAPI {
120
121
  LogLevel: typeof import('../../enums/LogLevel').LogLevel;
@@ -8,4 +8,5 @@ export interface PersistenceConfig {
8
8
  persistMode?: PersistMode;
9
9
  extras?: Record<string, any>;
10
10
  disableProviderChangeRecord?: boolean;
11
+ timestampFormat?: 'iso' | 'epoch';
11
12
  }
@@ -23,7 +23,8 @@ export interface MotionActivity {
23
23
  confidence: number;
24
24
  }
25
25
  export interface Location {
26
- timestamp: string;
26
+ timestamp: string | number;
27
+ recorded_at: string | number;
27
28
  age: number;
28
29
  odometer: number;
29
30
  odometer_error: number;
@@ -9,11 +9,11 @@ export declare const Event: {
9
9
  readonly Http: "http";
10
10
  readonly Heartbeat: "heartbeat";
11
11
  readonly ProviderChange: "providerchange";
12
+ readonly Schedule: "schedule";
13
+ readonly Notification: "notification";
12
14
  readonly Authorization: "authorization";
13
15
  readonly ConnectivityChange: "connectivitychange";
14
16
  readonly EnabledChange: "enabledchange";
15
17
  readonly PowerSaveChange: "powersavechange";
16
- readonly Schedule: "schedule";
17
- readonly Notification: "notification";
18
18
  };
19
19
  export type Event = (typeof Event)[keyof typeof Event];
@@ -12,10 +12,10 @@ exports.Event = {
12
12
  Http: 'http',
13
13
  Heartbeat: 'heartbeat',
14
14
  ProviderChange: 'providerchange',
15
+ Schedule: 'schedule',
16
+ Notification: 'notification',
15
17
  Authorization: 'authorization',
16
18
  ConnectivityChange: 'connectivitychange',
17
19
  EnabledChange: 'enabledchange',
18
- PowerSaveChange: 'powersavechange',
19
- Schedule: 'schedule',
20
- Notification: 'notification'
20
+ PowerSaveChange: 'powersavechange'
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transistorsoft/background-geolocation-types",
3
- "version": "5.0.1",
3
+ "version": "5.1.1",
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>",
@@ -35,17 +35,19 @@
35
35
  }
36
36
  },
37
37
  "sideEffects": false,
38
+ "scripts": {
39
+ "clean": "rimraf dist",
40
+ "build": "tsc -p tsconfig.json",
41
+ "watch": "tsc -p tsconfig.json -w",
42
+ "prepare": "pnpm run build",
43
+ "docs": "typedoc --options typedoc.json",
44
+ "prepublishOnly": "pnpm run build"
45
+ },
38
46
  "devDependencies": {
39
47
  "@types/node": "^24.10.0",
40
48
  "rimraf": "^5.0.0",
41
49
  "typedoc": "^0.28.14",
42
50
  "typedoc-plugin-markdown": "^4.9.0",
43
51
  "typescript": "^5.6.0"
44
- },
45
- "scripts": {
46
- "clean": "rimraf dist",
47
- "build": "tsc -p tsconfig.json",
48
- "watch": "tsc -p tsconfig.json -w",
49
- "docs": "typedoc --options typedoc.json"
50
52
  }
51
- }
53
+ }
package/typedoc.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "githubUser": "transistorsoft",
7
7
  "out": "docs",
8
8
  "readme": "none",
9
- "highlightLanguages": ["ts", "js", "json", "xml", "bash", "console", "erb", "java"],
9
+ "highlightLanguages": ["ts", "js", "json", "xml", "bash", "console", "erb", "java", "objc"],
10
10
  "disableSources": true,
11
11
  "includeVersion": true,
12
12
  "sort": ["source-order"],
@@ -24,5 +24,15 @@
24
24
  "./tools/typedoc-plugin-gitlink/index.cjs",
25
25
  "./tools/typedoc-plugin-mediaplayer/index.cjs",
26
26
  "./tools/typedoc-plugin-site/index.cjs"
27
- ]
27
+ ],
28
+ "customCss": "./assets/css/theme.css",
29
+ "navigation": {
30
+ "includeCategories": true,
31
+ "includeGroups": true,
32
+ "includeFolders": false,
33
+ "compactFolders": true,
34
+ "excludeReferences": true
35
+ },
36
+ "categorizeByGroup": true
37
+
28
38
  }