Skip to content

Commit deb5f2a

Browse files
committed
remove obsolete diff from account info
1 parent 6c6335f commit deb5f2a

File tree

10 files changed

+21
-405
lines changed

10 files changed

+21
-405
lines changed

lib/src/web/gigya_flutter_plugin_web.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import 'static_interop/response/registration_response.dart';
1919
import 'static_interop/response/reset_password_response.dart';
2020
import 'static_interop/response/response.dart';
2121
import 'static_interop/window.dart';
22-
import 'web_account_delegate.dart';
2322
import 'web_interruption_resolver.dart';
2423

2524
/// An implementation of [GigyaFlutterPluginPlatform] that uses JavaScript static interop.
@@ -36,8 +35,6 @@ class GigyaFlutterPluginWeb extends GigyaFlutterPluginPlatform {
3635
return const WebInterruptionResolverFactory();
3736
}
3837

39-
final WebAccountDelegate _accountDelegate = const WebAccountDelegate();
40-
4138
@override
4239
Future<Map<String, dynamic>> finalizeRegistration(
4340
String registrationToken, {
@@ -147,15 +144,6 @@ class GigyaFlutterPluginWeb extends GigyaFlutterPluginPlatform {
147144
return initRegistrationCompleter.future;
148145
}
149146

150-
@override
151-
Future<Map<String, dynamic>> getAccount({
152-
bool invalidate = false,
153-
Map<String, dynamic> parameters = const <String, dynamic>{},
154-
}) async {
155-
// Apparently, web does not support the invalidate argument.
156-
return _accountDelegate.getAccount(parameters: parameters);
157-
}
158-
159147
@override
160148
Future<void> initSdk({
161149
required String apiDomain,
@@ -405,9 +393,4 @@ class GigyaFlutterPluginWeb extends GigyaFlutterPluginPlatform {
405393

406394
return registrationCompleter.future;
407395
}
408-
409-
@override
410-
Future<Map<String, dynamic>> setAccount(Map<String, dynamic> account) {
411-
return _accountDelegate.setAccount(account);
412-
}
413396
}

lib/src/web/static_interop/account.dart

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'dart:js_interop';
22

33
import './session.dart';
4-
import 'parameters/account.dart';
54
import 'parameters/basic.dart';
5+
import 'parameters/conflicting_account.dart';
66
import 'parameters/login.dart';
77
import 'parameters/registration.dart';
88
import 'parameters/reset_password.dart';
@@ -20,12 +20,6 @@ extension type Accounts(JSObject _) {
2020
/// and has [JSVoid] as return type.
2121
external JSFunction finalizeRegistration;
2222

23-
/// Get the account info of a user.
24-
///
25-
/// This function receives a [GetAccountParameters] instance as argument,
26-
/// and has [JSVoid] as return type.
27-
external JSFunction getAccountInfo;
28-
2923
/// Get the conflicting accounts of the user.
3024
///
3125
/// This function receives a [ConflictingAccountParameters] instance as argument,
@@ -64,10 +58,4 @@ extension type Accounts(JSObject _) {
6458

6559
/// Get the `gigya.accounts.session` namespace.
6660
external Session get session;
67-
68-
/// Update the user's account info.
69-
///
70-
/// This function receives a [SetAccountParameters] instance as argument,
71-
/// and has [JSVoid] as return type.
72-
external JSFunction setAccountInfo;
7361
}

lib/src/web/static_interop/models/account_login_id.dart

Lines changed: 0 additions & 31 deletions
This file was deleted.

lib/src/web/static_interop/models/validation_error.dart

Lines changed: 0 additions & 27 deletions
This file was deleted.

lib/src/web/static_interop/parameters/account.dart

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import 'dart:js_interop';
2+
3+
import '../response/conflicting_account_response.dart';
4+
5+
/// This extension type represents the parameters for the `Accounts.getConflictingAccount` method.
6+
@JS()
7+
@anonymous
8+
@staticInterop
9+
extension type ConflictingAccountParameters._(JSObject _) implements JSObject {
10+
/// Create a [ConflictingAccountParameters] instance using the given [callback] and [regToken].
11+
///
12+
/// The [callback] receives a [ConflictingAccountResponse] as argument,
13+
/// and has [JSVoid] as return type.
14+
external factory ConflictingAccountParameters({
15+
JSFunction callback,
16+
String regToken,
17+
});
18+
}

lib/src/web/static_interop/response/account_response.dart

Lines changed: 0 additions & 145 deletions
This file was deleted.

lib/src/web/static_interop/response/response.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'dart:js_interop';
22

3-
export 'account_response.dart';
43
export 'conflicting_account_response.dart';
54
export 'login_response.dart';
65

0 commit comments

Comments
 (0)