starti.app 2.0.65 → 2.0.71

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.
@@ -83,7 +83,7 @@ export declare class Biometrics extends EventTarget {
83
83
  */
84
84
  checkAccess: () => Promise<import("../App/typings").PermissionStatus>;
85
85
  }
86
- export type BiometricsAuthenticationType = "None" | "Face" | "Fingerprint";
86
+ export type BiometricsAuthenticationType = "none" | "face" | "fingerprint";
87
87
  export type BiometricsResultReponse<T> = {
88
88
  key: string;
89
89
  result: T;
@@ -95,6 +95,11 @@ export type BiometricsResultReponse<T> = {
95
95
  * @param submitButtonSelector - The JS selector for the submit button.
96
96
  * @param title - The title of the biometrics scan.
97
97
  * @param reason - The reason for the biometrics scan.
98
+ *
99
+ * @param language - The language of the biometrics scan.
100
+ *
101
+ * @param confirmMessageTemplate - The template for the confirm message.
102
+ * @param biometricsTypeTranslations - The translations for the biometrics types.
98
103
  */
99
104
  export type SaveUsernameAndPasswordConfiguration = {
100
105
  usernameInputFieldSelector: string;
@@ -102,8 +107,15 @@ export type SaveUsernameAndPasswordConfiguration = {
102
107
  submitButtonSelector: string;
103
108
  title: string;
104
109
  reason: string;
110
+ } & ({
105
111
  language?: "da" | "en";
106
- };
112
+ } | {
113
+ confirmMessageTemplate: string;
114
+ biometricsTypeTranslations?: {
115
+ face: string;
116
+ fingerprint: string;
117
+ };
118
+ });
107
119
  export type PopulatedSaveUsernameAndPasswordConfiguration = SaveUsernameAndPasswordConfiguration & {
108
120
  usernameInputField: HTMLInputElement;
109
121
  passwordInputField: HTMLInputElement;
@@ -11,7 +11,7 @@ export declare class QrScanner extends EventTarget {
11
11
  * await qrScanner.scan();
12
12
  * ```
13
13
  */
14
- scan(): Promise<void>;
14
+ scan(): Promise<string | null>;
15
15
  /**
16
16
  * Check if camera access is granted.
17
17
  *
@@ -20,7 +20,7 @@ type ShareIntegration = {
20
20
  downloadFile(fileUrl: string, fileName: string): boolean;
21
21
  };
22
22
  type QrScannerIntegration = {
23
- startQrCodeScanner(): void;
23
+ startQrCodeScanner(): string | null;
24
24
  getCameraAccessState(): "Unknown" | "Denied" | "Granted";
25
25
  isCameraAccessGranted(): boolean;
26
26
  requestCameraAccess(): boolean;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "starti.app",
3
3
  "author": "starti.app",
4
4
  "license": "MIT",
5
- "version": "2.0.65",
5
+ "version": "2.0.71",
6
6
  "description": "Use this package for easy communication with the starti.app API.",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",