1- import 'package:js/js. dart' ;
1+ import 'dart:js_interop ' ;
22
33import '../response/social_connection_response.dart' ;
44
5- /// This class represents the parameters for the `Socialize.addConnection` method.
5+ /// This extension type represents the parameters for the `Socialize.addConnection` method.
66///
77/// See also: https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/417376f070b21014bbc5a10ce4041860.html#parameters
88@JS ()
99@anonymous
1010@staticInterop
11- class AddSocialConnectionParameters {
11+ extension type AddSocialConnectionParameters ._( JSObject _) implements JSObject {
1212 /// Create a new [AddSocialConnectionParameters] instance.
13+ ///
14+ /// The [callback] function receives a [SocialConnectionResponse] as argument
15+ /// and has [JSVoid] as return type.
1316 external factory AddSocialConnectionParameters ({
1417 String ? authFlow,
15- void Function ( SocialConnectionResponse response) callback,
18+ JSFunction callback,
1619 String ? extraFields,
1720 String ? facebookExtraPermissions,
1821 bool ? forceAuthentication,
@@ -24,16 +27,19 @@ class AddSocialConnectionParameters {
2427 });
2528}
2629
27- /// This class represents the parameters for the `Socialize.removeConnection` method.
30+ /// This extension type represents the parameters for the `Socialize.removeConnection` method.
2831///
2932/// See also: https://help.sap.com/docs/SAP_CUSTOMER_DATA_CLOUD/8b8d6fffe113457094a17701f63e3d6a/4177c60370b21014bbc5a10ce4041860.html#parameters
3033@JS ()
3134@anonymous
3235@staticInterop
33- class RemoveSocialConnectionParameters {
36+ extension type RemoveSocialConnectionParameters ._( JSObject _) implements JSObject {
3437 /// Create a new [RemoveSocialConnectionParameters] instance.
38+ ///
39+ /// The [callback] function receives a [SocialConnectionResponse] as argument
40+ /// and has [JSVoid] as return type.
3541 external factory RemoveSocialConnectionParameters ({
36- void Function ( SocialConnectionResponse response) callback,
42+ JSFunction callback,
3743 String provider,
3844 bool ? forceProvidersLogout,
3945 String ? lastIdentityHandling,
0 commit comments