Skip to content

Commit 4ce90ee

Browse files
committed
move reasons comment
1 parent 1be930d commit 4ce90ee

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

app/src/consts/analytics.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
/**
2-
* Generic reasons:
3-
* - network_error: Network connectivity issues
4-
* - user_cancelled: User cancelled the operation
5-
* - permission_denied: Permission not granted
6-
* - invalid_input: Invalid user input
7-
* - timeout: Operation timed out
8-
* - unknown_error: Unspecified error
9-
*
10-
* Auth specific:
11-
* - invalid_credentials: Invalid login credentials
12-
* - biometric_unavailable: Biometric authentication unavailable
13-
* - invalid_mnemonic: Invalid mnemonic phrase
14-
*
15-
* Passport specific:
16-
* - invalid_format: Invalid passport format
17-
* - expired_passport: Passport is expired
18-
* - scan_error: Error during scanning
19-
* - nfc_error: NFC read error
20-
*
21-
* Proof specific:
22-
* - verification_failed: Proof verification failed
23-
* - session_expired: Session expired
24-
* - missing_fields: Required fields missing
25-
*
26-
* Backup specific:
27-
* - backup_not_found: Backup not found
28-
* - cloud_service_unavailable: Cloud service unavailable
29-
*/
30-
311
export const AppEvents = {
322
DISMISS_PRIVACY_DISCLAIMER: 'App: Dismiss Privacy Disclaimer',
333
GET_STARTED: 'App: Get Started',

app/src/utils/analytics.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
import { createSegmentClient } from '../Segment';
22

3+
/**
4+
* Generic reasons:
5+
* - network_error: Network connectivity issues
6+
* - user_cancelled: User cancelled the operation
7+
* - permission_denied: Permission not granted
8+
* - invalid_input: Invalid user input
9+
* - timeout: Operation timed out
10+
* - unknown_error: Unspecified error
11+
*
12+
* Auth specific:
13+
* - invalid_credentials: Invalid login credentials
14+
* - biometric_unavailable: Biometric authentication unavailable
15+
* - invalid_mnemonic: Invalid mnemonic phrase
16+
*
17+
* Passport specific:
18+
* - invalid_format: Invalid passport format
19+
* - expired_passport: Passport is expired
20+
* - scan_error: Error during scanning
21+
* - nfc_error: NFC read error
22+
*
23+
* Proof specific:
24+
* - verification_failed: Proof verification failed
25+
* - session_expired: Session expired
26+
* - missing_fields: Required fields missing
27+
*
28+
* Backup specific:
29+
* - backup_not_found: Backup not found
30+
* - cloud_service_unavailable: Cloud service unavailable
31+
*/
32+
333
export interface EventParams {
434
reason?: string | null;
535
duration_seconds?: number;

0 commit comments

Comments
 (0)