diff --git a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts index f29fb17f2..110b7a134 100644 --- a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts +++ b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts @@ -159,25 +159,47 @@ export interface AFADeleteOptions { }) @Injectable() export class AndroidFingerprintAuth extends IonicNativePlugin { + /** + * Convenience property containing all possible errors + */ ERRORS: { - BAD_PADDING_EXCEPTION: 'BAD_PADDING_EXCEPTION'; - CERTIFICATE_EXCEPTION: 'CERTIFICATE_EXCEPTION'; - FINGERPRINT_CANCELLED: 'FINGERPRINT_CANCELLED'; - FINGERPRINT_DATA_NOT_DELETED: 'FINGERPRINT_DATA_NOT_DELETED'; - FINGERPRINT_ERROR: 'FINGERPRINT_ERROR'; - FINGERPRINT_NOT_AVAILABLE: 'FINGERPRINT_NOT_AVAILABLE'; - FINGERPRINT_PERMISSION_DENIED: 'FINGERPRINT_PERMISSION_DENIED'; - FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: 'FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST'; - ILLEGAL_BLOCK_SIZE_EXCEPTION: 'ILLEGAL_BLOCK_SIZE_EXCEPTION'; - INIT_CIPHER_FAILED: 'INIT_CIPHER_FAILED'; - INVALID_ALGORITHM_PARAMETER_EXCEPTION: 'INVALID_ALGORITHM_PARAMETER_EXCEPTION'; - IO_EXCEPTION: 'IO_EXCEPTION'; - JSON_EXCEPTION: 'JSON_EXCEPTION'; - MINIMUM_SDK: 'MINIMUM_SDK'; - MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS'; - MISSING_PARAMETERS: 'MISSING_PARAMETERS'; - NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION'; - SECURITY_EXCEPTION: 'SECURITY_EXCEPTION'; + BAD_PADDING_EXCEPTION: string; + CERTIFICATE_EXCEPTION: string; + FINGERPRINT_CANCELLED: string; + FINGERPRINT_DATA_NOT_DELETED: string; + FINGERPRINT_ERROR: string; + FINGERPRINT_NOT_AVAILABLE: string; + FINGERPRINT_PERMISSION_DENIED: string; + FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: string; + ILLEGAL_BLOCK_SIZE_EXCEPTION: string; + INIT_CIPHER_FAILED: string; + INVALID_ALGORITHM_PARAMETER_EXCEPTION: string; + IO_EXCEPTION: string; + JSON_EXCEPTION: string; + MINIMUM_SDK: string; + MISSING_ACTION_PARAMETERS: string; + MISSING_PARAMETERS: string; + NO_SUCH_ALGORITHM_EXCEPTION: string; + SECURITY_EXCEPTION: string; + } = { + BAD_PADDING_EXCEPTION: 'BAD_PADDING_EXCEPTION', + CERTIFICATE_EXCEPTION: 'CERTIFICATE_EXCEPTION', + FINGERPRINT_CANCELLED: 'FINGERPRINT_CANCELLED', + FINGERPRINT_DATA_NOT_DELETED: 'FINGERPRINT_DATA_NOT_DELETED', + FINGERPRINT_ERROR: 'FINGERPRINT_ERROR', + FINGERPRINT_NOT_AVAILABLE: 'FINGERPRINT_NOT_AVAILABLE', + FINGERPRINT_PERMISSION_DENIED: 'FINGERPRINT_PERMISSION_DENIED', + FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST: 'FINGERPRINT_PERMISSION_DENIED_SHOW_REQUEST', + ILLEGAL_BLOCK_SIZE_EXCEPTION: 'ILLEGAL_BLOCK_SIZE_EXCEPTION', + INIT_CIPHER_FAILED: 'INIT_CIPHER_FAILED', + INVALID_ALGORITHM_PARAMETER_EXCEPTION: 'INVALID_ALGORITHM_PARAMETER_EXCEPTION', + IO_EXCEPTION: 'IO_EXCEPTION', + JSON_EXCEPTION: 'JSON_EXCEPTION', + MINIMUM_SDK: 'MINIMUM_SDK', + MISSING_ACTION_PARAMETERS: 'MISSING_ACTION_PARAMETERS', + MISSING_PARAMETERS: 'MISSING_PARAMETERS', + NO_SUCH_ALGORITHM_EXCEPTION: 'NO_SUCH_ALGORITHM_EXCEPTION', + SECURITY_EXCEPTION: 'SECURITY_EXCEPTION' }; /**