@onairos/react-native 3.0.18 → 3.0.20
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.
- package/lib/commonjs/assets/images/email.png +0 -0
- package/lib/commonjs/components/Overlay.js +13 -0
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/PinInput.js +70 -11
- package/lib/commonjs/components/PinInput.js.map +1 -1
- package/lib/commonjs/components/TrainingModal.js +91 -14
- package/lib/commonjs/components/TrainingModal.js.map +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +19 -7
- package/lib/commonjs/components/UniversalOnboarding.js.map +1 -1
- package/lib/module/assets/images/email.png +0 -0
- package/lib/module/components/Overlay.js +13 -0
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/PinInput.js +71 -12
- package/lib/module/components/PinInput.js.map +1 -1
- package/lib/module/components/TrainingModal.js +92 -15
- package/lib/module/components/TrainingModal.js.map +1 -1
- package/lib/module/components/UniversalOnboarding.js +19 -7
- package/lib/module/components/UniversalOnboarding.js.map +1 -1
- package/lib/typescript/components/Overlay.d.ts.map +1 -1
- package/lib/typescript/components/PinInput.d.ts.map +1 -1
- package/lib/typescript/components/TrainingModal.d.ts.map +1 -1
- package/lib/typescript/components/UniversalOnboarding.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +5 -0
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +7 -7
- package/lib/typescript/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/email.png +0 -0
- package/src/components/Overlay.tsx +4 -0
- package/src/components/PinInput.tsx +250 -189
- package/src/components/TrainingModal.tsx +222 -132
- package/src/components/UniversalOnboarding.tsx +8 -5
- package/src/types/index.ts +150 -145
- package/src/types.ts +149 -149
- package/lib/commonjs/components/Overlay.tsx.new +0 -516
- package/lib/module/components/Overlay.tsx.new +0 -516
- package/src/components/Overlay.tsx.new +0 -516
package/src/types/index.ts
CHANGED
|
@@ -1,146 +1,151 @@
|
|
|
1
|
-
export interface DataTier {
|
|
2
|
-
type: string;
|
|
3
|
-
descriptions: string;
|
|
4
|
-
reward: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface OnairosButtonProps {
|
|
8
|
-
returnLink?: string;
|
|
9
|
-
prefillUrl?: string;
|
|
10
|
-
AppName?: string;
|
|
11
|
-
buttonType?: 'normal' | 'pill';
|
|
12
|
-
requestData?: {
|
|
13
|
-
[key: string]: {
|
|
14
|
-
type: string;
|
|
15
|
-
descriptions: string;
|
|
16
|
-
reward: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
buttonWidth?: number | string;
|
|
20
|
-
buttonHeight?: number;
|
|
21
|
-
hasStroke?: boolean;
|
|
22
|
-
enabled?: boolean;
|
|
23
|
-
buttonForm?: 'default' | 'login' | 'signup';
|
|
24
|
-
onRejection?: (error?: string) => void;
|
|
25
|
-
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
26
|
-
preCheck?: () => Promise<boolean>;
|
|
27
|
-
color?: string;
|
|
28
|
-
swerv?: boolean;
|
|
29
|
-
debug?: boolean;
|
|
30
|
-
preferredPlatform?: string;
|
|
31
|
-
testMode?: boolean;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface UniversalOnboardingProps {
|
|
35
|
-
visible: boolean;
|
|
36
|
-
onClose: () => void;
|
|
37
|
-
AppName: string;
|
|
38
|
-
requestData?: {
|
|
39
|
-
[key: string]: {
|
|
40
|
-
type: string;
|
|
41
|
-
descriptions: string;
|
|
42
|
-
reward: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
returnLink?: string;
|
|
46
|
-
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
47
|
-
preferredPlatform?: string;
|
|
48
|
-
debug?: boolean;
|
|
49
|
-
test?: boolean;
|
|
50
|
-
embedd?: boolean;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ConnectionStatus {
|
|
54
|
-
[key: string]: {
|
|
55
|
-
userName: string;
|
|
56
|
-
connected: boolean;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface PlatformListProps {
|
|
61
|
-
connections: ConnectionStatus;
|
|
62
|
-
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
63
|
-
isLoading: boolean;
|
|
64
|
-
canProceed: boolean;
|
|
65
|
-
onProceed: () => void;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface PinInputProps {
|
|
69
|
-
onSubmit: (pin: string) => void;
|
|
70
|
-
minLength?: number;
|
|
71
|
-
requireSpecialChar?: boolean;
|
|
72
|
-
requireNumber?: boolean;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
export interface DataTier {
|
|
2
|
+
type: string;
|
|
3
|
+
descriptions: string;
|
|
4
|
+
reward: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface OnairosButtonProps {
|
|
8
|
+
returnLink?: string;
|
|
9
|
+
prefillUrl?: string;
|
|
10
|
+
AppName?: string;
|
|
11
|
+
buttonType?: 'normal' | 'pill';
|
|
12
|
+
requestData?: {
|
|
13
|
+
[key: string]: {
|
|
14
|
+
type: string;
|
|
15
|
+
descriptions: string;
|
|
16
|
+
reward: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
buttonWidth?: number | string;
|
|
20
|
+
buttonHeight?: number;
|
|
21
|
+
hasStroke?: boolean;
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
buttonForm?: 'default' | 'login' | 'signup';
|
|
24
|
+
onRejection?: (error?: string) => void;
|
|
25
|
+
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
26
|
+
preCheck?: () => Promise<boolean>;
|
|
27
|
+
color?: string;
|
|
28
|
+
swerv?: boolean;
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
preferredPlatform?: string;
|
|
31
|
+
testMode?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface UniversalOnboardingProps {
|
|
35
|
+
visible: boolean;
|
|
36
|
+
onClose: () => void;
|
|
37
|
+
AppName: string;
|
|
38
|
+
requestData?: {
|
|
39
|
+
[key: string]: {
|
|
40
|
+
type: string;
|
|
41
|
+
descriptions: string;
|
|
42
|
+
reward: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
returnLink?: string;
|
|
46
|
+
onComplete: (apiUrl: string, token: string, userData: any) => void;
|
|
47
|
+
preferredPlatform?: string;
|
|
48
|
+
debug?: boolean;
|
|
49
|
+
test?: boolean;
|
|
50
|
+
embedd?: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ConnectionStatus {
|
|
54
|
+
[key: string]: {
|
|
55
|
+
userName: string;
|
|
56
|
+
connected: boolean;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface PlatformListProps {
|
|
61
|
+
connections: ConnectionStatus;
|
|
62
|
+
onToggle: (platform: string, connect: boolean) => Promise<void>;
|
|
63
|
+
isLoading: boolean;
|
|
64
|
+
canProceed: boolean;
|
|
65
|
+
onProceed: () => void;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface PinInputProps {
|
|
69
|
+
onSubmit: (pin: string) => void;
|
|
70
|
+
minLength?: number;
|
|
71
|
+
requireSpecialChar?: boolean;
|
|
72
|
+
requireNumber?: boolean;
|
|
73
|
+
onBack?: () => void;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface TrainingModalProps {
|
|
77
|
+
visible: boolean;
|
|
78
|
+
progress: number;
|
|
79
|
+
eta: string;
|
|
80
|
+
onCancel: () => void;
|
|
81
|
+
onComplete?: () => void;
|
|
82
|
+
modelKey?: string;
|
|
83
|
+
username?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface OAuthWebViewProps {
|
|
87
|
+
url: string;
|
|
88
|
+
platform: string;
|
|
89
|
+
onComplete: () => void;
|
|
90
|
+
onClose: () => void;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface PlatformConfig {
|
|
94
|
+
name: string;
|
|
95
|
+
icon: string;
|
|
96
|
+
color: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface OnairosCredentials {
|
|
101
|
+
username: string;
|
|
102
|
+
accessToken?: string;
|
|
103
|
+
refreshToken?: string;
|
|
104
|
+
userPin?: string;
|
|
105
|
+
platforms?: {
|
|
106
|
+
instagram?: { token: string; username: string };
|
|
107
|
+
youtube?: { token: string; username: string };
|
|
108
|
+
pinterest?: { token: string; username: string };
|
|
109
|
+
reddit?: { token: string; username: string };
|
|
110
|
+
};
|
|
111
|
+
createdAt: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface OverlayProps {
|
|
115
|
+
data: {
|
|
116
|
+
[key: string]: {
|
|
117
|
+
type: string;
|
|
118
|
+
descriptions: string;
|
|
119
|
+
reward: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
username: string;
|
|
123
|
+
modelKey: string;
|
|
124
|
+
onResolved: (apiUrl: string, accessToken: string, loginDetails: any) => void;
|
|
125
|
+
appName?: string;
|
|
126
|
+
darkMode?: boolean;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface BiometricOptions {
|
|
130
|
+
title: string;
|
|
131
|
+
subtitle?: string;
|
|
132
|
+
description?: string;
|
|
133
|
+
cancelText?: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface PinRequirements {
|
|
137
|
+
minLength: number;
|
|
138
|
+
requireSpecialChar: boolean;
|
|
139
|
+
requireNumber: boolean;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface ApiResponse<T> {
|
|
143
|
+
success: boolean;
|
|
144
|
+
data?: T;
|
|
145
|
+
error?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface CredentialsResult {
|
|
149
|
+
isValid: boolean;
|
|
150
|
+
credentials?: any;
|
|
146
151
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
export interface DataTier {
|
|
2
|
-
type: string;
|
|
3
|
-
descriptions: string;
|
|
4
|
-
reward: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface UniversalOnboardingProps {
|
|
8
|
-
visible: boolean;
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
AppName: string;
|
|
11
|
-
requestData: {
|
|
12
|
-
Small: DataTier;
|
|
13
|
-
Medium: DataTier;
|
|
14
|
-
Large: DataTier;
|
|
15
|
-
};
|
|
16
|
-
returnLink: string;
|
|
17
|
-
onComplete: (apiUrl: string, token: string, data: any) => void;
|
|
18
|
-
embedd?: boolean;
|
|
19
|
-
debug?: boolean;
|
|
20
|
-
test?: boolean;
|
|
21
|
-
buttonType?: 'default' | 'pill';
|
|
22
|
-
buttonForm?: 'signup' | 'login';
|
|
23
|
-
preferredPlatform?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface ConnectionStatus {
|
|
27
|
-
[key: string]: {
|
|
28
|
-
userName: string;
|
|
29
|
-
connected: boolean;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface OnairosButtonProps {
|
|
34
|
-
returnLink?: string;
|
|
35
|
-
prefillUrl?: string;
|
|
36
|
-
AppName: string;
|
|
37
|
-
buttonType?: 'normal' | 'pill';
|
|
38
|
-
requestData?: {
|
|
39
|
-
Small: DataTier;
|
|
40
|
-
Medium: DataTier;
|
|
41
|
-
Large: DataTier;
|
|
42
|
-
};
|
|
43
|
-
buttonWidth?: number;
|
|
44
|
-
buttonHeight?: number;
|
|
45
|
-
hasStroke?: boolean;
|
|
46
|
-
enabled?: boolean;
|
|
47
|
-
buttonForm?: 'default' | 'login' | 'signup' | 'connect';
|
|
48
|
-
onRejection?: (error?: string) => void;
|
|
49
|
-
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
50
|
-
preCheck?: () => Promise<boolean>;
|
|
51
|
-
color?: string;
|
|
52
|
-
swerv?: boolean;
|
|
53
|
-
debug?: boolean;
|
|
54
|
-
darkMode?: boolean;
|
|
55
|
-
preferredPlatform?: string;
|
|
56
|
-
testMode?: boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface PlatformListProps {
|
|
60
|
-
platforms?: string[];
|
|
61
|
-
onSelect?: (platform: string) => void;
|
|
62
|
-
selectedPlatform?: string;
|
|
63
|
-
connections?: ConnectionStatus;
|
|
64
|
-
onToggle?: (platform: string, connect: boolean) => void;
|
|
65
|
-
isLoading?: boolean;
|
|
66
|
-
canProceed?: boolean;
|
|
67
|
-
onProceed?: () => void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface PinInputProps {
|
|
71
|
-
onComplete?: (pin: string) => void;
|
|
72
|
-
length?: number;
|
|
73
|
-
secure?: boolean;
|
|
74
|
-
title?: string;
|
|
75
|
-
subtitle?: string;
|
|
76
|
-
verification?: boolean;
|
|
77
|
-
initialPin?: string;
|
|
78
|
-
onSubmit: (pin: string) => void;
|
|
79
|
-
minLength?: number;
|
|
80
|
-
requireSpecialChar?: boolean;
|
|
81
|
-
requireNumber?: boolean;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface OAuthWebViewProps {
|
|
96
|
-
url: string;
|
|
97
|
-
onClose: () => void;
|
|
98
|
-
onSuccess: (code: string) => void;
|
|
99
|
-
platform?: string;
|
|
100
|
-
onComplete?: () => void;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface PlatformConfig {
|
|
104
|
-
name: string;
|
|
105
|
-
icon: string;
|
|
106
|
-
color: string;
|
|
107
|
-
description?: string;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface ApiResponse<T> {
|
|
111
|
-
success: boolean;
|
|
112
|
-
data?: T;
|
|
113
|
-
error?: string;
|
|
114
|
-
publicKey?: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface CredentialsResult {
|
|
118
|
-
success: boolean;
|
|
119
|
-
credentials?: any;
|
|
120
|
-
error?: string;
|
|
121
|
-
isValid?: boolean;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface OverlayProps {
|
|
125
|
-
data: {
|
|
126
|
-
[key: string]: {
|
|
127
|
-
type: string;
|
|
128
|
-
descriptions: string;
|
|
129
|
-
reward: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
username: string;
|
|
133
|
-
modelKey: string;
|
|
134
|
-
onResolved: (apiUrl: string, accessToken: string, loginDetails: any) => void;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface BiometricOptions {
|
|
138
|
-
enableBiometrics?: boolean;
|
|
139
|
-
biometricPrompt?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface PinRequirements {
|
|
143
|
-
minLength: number;
|
|
144
|
-
requireUppercase: boolean;
|
|
145
|
-
requireLowercase: boolean;
|
|
146
|
-
requireNumber: boolean;
|
|
147
|
-
requireSpecialChar: boolean;
|
|
148
|
-
}
|
|
149
|
-
|
|
1
|
+
export interface DataTier {
|
|
2
|
+
type: string;
|
|
3
|
+
descriptions: string;
|
|
4
|
+
reward: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface UniversalOnboardingProps {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
AppName: string;
|
|
11
|
+
requestData: {
|
|
12
|
+
Small: DataTier;
|
|
13
|
+
Medium: DataTier;
|
|
14
|
+
Large: DataTier;
|
|
15
|
+
};
|
|
16
|
+
returnLink: string;
|
|
17
|
+
onComplete: (apiUrl: string, token: string, data: any) => void;
|
|
18
|
+
embedd?: boolean;
|
|
19
|
+
debug?: boolean;
|
|
20
|
+
test?: boolean;
|
|
21
|
+
buttonType?: 'default' | 'pill';
|
|
22
|
+
buttonForm?: 'signup' | 'login';
|
|
23
|
+
preferredPlatform?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface ConnectionStatus {
|
|
27
|
+
[key: string]: {
|
|
28
|
+
userName: string;
|
|
29
|
+
connected: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface OnairosButtonProps {
|
|
34
|
+
returnLink?: string;
|
|
35
|
+
prefillUrl?: string;
|
|
36
|
+
AppName: string;
|
|
37
|
+
buttonType?: 'normal' | 'pill';
|
|
38
|
+
requestData?: {
|
|
39
|
+
Small: DataTier;
|
|
40
|
+
Medium: DataTier;
|
|
41
|
+
Large: DataTier;
|
|
42
|
+
};
|
|
43
|
+
buttonWidth?: number;
|
|
44
|
+
buttonHeight?: number;
|
|
45
|
+
hasStroke?: boolean;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
buttonForm?: 'default' | 'login' | 'signup' | 'connect';
|
|
48
|
+
onRejection?: (error?: string) => void;
|
|
49
|
+
onResolved?: (apiUrl: string, token: string, userData: any) => void;
|
|
50
|
+
preCheck?: () => Promise<boolean>;
|
|
51
|
+
color?: string;
|
|
52
|
+
swerv?: boolean;
|
|
53
|
+
debug?: boolean;
|
|
54
|
+
darkMode?: boolean;
|
|
55
|
+
preferredPlatform?: string;
|
|
56
|
+
testMode?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface PlatformListProps {
|
|
60
|
+
platforms?: string[];
|
|
61
|
+
onSelect?: (platform: string) => void;
|
|
62
|
+
selectedPlatform?: string;
|
|
63
|
+
connections?: ConnectionStatus;
|
|
64
|
+
onToggle?: (platform: string, connect: boolean) => void;
|
|
65
|
+
isLoading?: boolean;
|
|
66
|
+
canProceed?: boolean;
|
|
67
|
+
onProceed?: () => void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface PinInputProps {
|
|
71
|
+
onComplete?: (pin: string) => void;
|
|
72
|
+
length?: number;
|
|
73
|
+
secure?: boolean;
|
|
74
|
+
title?: string;
|
|
75
|
+
subtitle?: string;
|
|
76
|
+
verification?: boolean;
|
|
77
|
+
initialPin?: string;
|
|
78
|
+
onSubmit: (pin: string) => void;
|
|
79
|
+
minLength?: number;
|
|
80
|
+
requireSpecialChar?: boolean;
|
|
81
|
+
requireNumber?: boolean;
|
|
82
|
+
onBack?: () => void;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface TrainingModalProps {
|
|
86
|
+
visible: boolean;
|
|
87
|
+
progress: number;
|
|
88
|
+
eta: string;
|
|
89
|
+
onCancel: () => void;
|
|
90
|
+
onComplete?: () => void;
|
|
91
|
+
modelKey?: string;
|
|
92
|
+
username?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface OAuthWebViewProps {
|
|
96
|
+
url: string;
|
|
97
|
+
onClose: () => void;
|
|
98
|
+
onSuccess: (code: string) => void;
|
|
99
|
+
platform?: string;
|
|
100
|
+
onComplete?: () => void;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface PlatformConfig {
|
|
104
|
+
name: string;
|
|
105
|
+
icon: string;
|
|
106
|
+
color: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ApiResponse<T> {
|
|
111
|
+
success: boolean;
|
|
112
|
+
data?: T;
|
|
113
|
+
error?: string;
|
|
114
|
+
publicKey?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface CredentialsResult {
|
|
118
|
+
success: boolean;
|
|
119
|
+
credentials?: any;
|
|
120
|
+
error?: string;
|
|
121
|
+
isValid?: boolean;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface OverlayProps {
|
|
125
|
+
data: {
|
|
126
|
+
[key: string]: {
|
|
127
|
+
type: string;
|
|
128
|
+
descriptions: string;
|
|
129
|
+
reward: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
username: string;
|
|
133
|
+
modelKey: string;
|
|
134
|
+
onResolved: (apiUrl: string, accessToken: string, loginDetails: any) => void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface BiometricOptions {
|
|
138
|
+
enableBiometrics?: boolean;
|
|
139
|
+
biometricPrompt?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface PinRequirements {
|
|
143
|
+
minLength: number;
|
|
144
|
+
requireUppercase: boolean;
|
|
145
|
+
requireLowercase: boolean;
|
|
146
|
+
requireNumber: boolean;
|
|
147
|
+
requireSpecialChar: boolean;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
150
|
// ... rest of the existing types ...
|