starti.app 2.0.52 → 2.0.55
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.
|
@@ -76,6 +76,12 @@ export declare class Biometrics extends EventTarget {
|
|
|
76
76
|
* @returns A promise that resolves when the username and password are successfully saved.
|
|
77
77
|
*/
|
|
78
78
|
endSaveUsernameAndPassword(): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Checks the current access status for biometrics.
|
|
81
|
+
*
|
|
82
|
+
* @returns A promise that resolves to the permission status.
|
|
83
|
+
*/
|
|
84
|
+
checkAccess: () => Promise<PermissionStatus>;
|
|
79
85
|
}
|
|
80
86
|
export type BiometricsAuthenticationType = "None" | "Face" | "Fingerprint";
|
|
81
87
|
export type BiometricsResultReponse<T> = {
|
|
@@ -15,26 +15,28 @@ export declare class Location extends EventTargetWithType<{
|
|
|
15
15
|
* @param options - The options for retrieving the location.
|
|
16
16
|
* @returns A promise that resolves to the current location.
|
|
17
17
|
*/
|
|
18
|
-
getLocation(options?: LocationOptions)
|
|
18
|
+
getLocation: (options?: LocationOptions) => Promise<LocationDto>;
|
|
19
19
|
/**
|
|
20
20
|
* Starts the location listener.
|
|
21
21
|
*
|
|
22
22
|
* @param options - The options for location listening.
|
|
23
23
|
* @returns A promise that resolves when the location listener has started.
|
|
24
24
|
*/
|
|
25
|
-
startLocationListener(options?: LocationListeningOptions)
|
|
25
|
+
startLocationListener: (options?: LocationListeningOptions) => Promise<boolean>;
|
|
26
26
|
/**
|
|
27
27
|
* Checks if the location listener is active.
|
|
28
28
|
* @returns True if the location listener is active, false otherwise.
|
|
29
29
|
*/
|
|
30
|
-
isLocationListenerActive()
|
|
30
|
+
isLocationListenerActive: () => Promise<boolean>;
|
|
31
31
|
/**
|
|
32
32
|
* Stops the location listener.
|
|
33
33
|
*/
|
|
34
|
-
stopLocationListener()
|
|
35
|
-
createGeofence(region: GeofenceRegion)
|
|
36
|
-
removeGeofence(region: GeofenceRegion)
|
|
37
|
-
getGeofences()
|
|
34
|
+
stopLocationListener: () => Promise<void>;
|
|
35
|
+
createGeofence: (region: GeofenceRegion) => Promise<void>;
|
|
36
|
+
removeGeofence: (region: GeofenceRegion) => Promise<void>;
|
|
37
|
+
getGeofences: () => Promise<GeofenceRegion[]>;
|
|
38
|
+
requestAccess: () => Promise<PermissionStatus>;
|
|
39
|
+
checkAccess: () => Promise<PermissionStatus>;
|
|
38
40
|
private onListeningFailed;
|
|
39
41
|
private onLocationChanged;
|
|
40
42
|
private onGeofenceEvent;
|
package/dist/integrations.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ type BiometricIntegration = {
|
|
|
73
73
|
removeSecuredContent(key: string): void;
|
|
74
74
|
startSaveUsernameAndPassword(request: SaveUsernameAndPasswordConfiguration): void;
|
|
75
75
|
endSaveUsernameAndPassword(): void;
|
|
76
|
+
checkAccess(): PermissionStatus;
|
|
76
77
|
};
|
|
77
78
|
type CalendarIntegration = {
|
|
78
79
|
isAccessGranted(): void;
|
|
@@ -119,6 +120,8 @@ type LocationIntegration = {
|
|
|
119
120
|
createGeofence(region: GeofenceRegion): void;
|
|
120
121
|
removeGeofence(region: GeofenceRegion): void;
|
|
121
122
|
getGeofences(): GeofenceRegion[];
|
|
123
|
+
requestAccess(): PermissionStatus;
|
|
124
|
+
checkAccess(): PermissionStatus;
|
|
122
125
|
};
|
|
123
126
|
export type Integrations = {
|
|
124
127
|
"AppIntegration": AppIntegration;
|
package/package.json
CHANGED