@solibo/solibo-sdk 1.1.9 → 1.1.10

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.
@@ -488,6 +488,10 @@ initMetadataForInterface(AsyncRefreshFailureHandler, 'AsyncRefreshFailureHandler
488
488
  initMetadataForClass(WebDeviceKeyMigrator, 'WebDeviceKeyMigrator', WebDeviceKeyMigrator, VOID, [DeviceKeyMigrator]);
489
489
  //endregion
490
490
  function ExportTest(value) {
491
+ if (arguments.length === 1 && typeof value === 'object' && value !== null && value.constructor === Object) {
492
+ const props = value;
493
+ value = ('value' in props ? props.value : VOID);
494
+ }
491
495
  this.value = value;
492
496
  }
493
497
  protoOf(ExportTest).n1 = function () {
@@ -645,6 +649,13 @@ protoOf(KotlinBuilder).build = function () {
645
649
  return buildInternal(this.userPoolName, this.settings, this.fingerprinter, this.pushTokenProvider, this.deviceManager, this.api, this.auth, this.httpClientEngine, this.httpClientConfig, this.onRefreshFailure);
646
650
  };
647
651
  function SoliboSDK(api, auth) {
652
+ if (arguments.length === 1 && typeof api === 'object' && api !== null && api.constructor === Object) {
653
+ const props = api;
654
+ userPoolName = ('userPoolName' in props ? props.userPoolName : VOID);
655
+ settings = ('settings' in props ? props.settings : VOID);
656
+ fingerprinter = ('fingerprinter' in props ? props.fingerprinter : VOID);
657
+ pushTokenProvider = ('pushTokenProvider' in props ? props.pushTokenProvider : VOID);
658
+ }
648
659
  this.hp3_1 = api;
649
660
  this.ip3_1 = auth;
650
661
  }
@@ -856,6 +867,10 @@ function AuthMode(name, ordinal) {
856
867
  Enum.call(this, name, ordinal);
857
868
  }
858
869
  function RedirectException(url) {
870
+ if (arguments.length === 1 && typeof url === 'object' && url !== null && url.constructor === Object) {
871
+ const props = url;
872
+ url = ('url' in props ? props.url : VOID);
873
+ }
859
874
  Exception_init_$Init$('Redirect to ' + url + ' required', this);
860
875
  captureStack(this, RedirectException);
861
876
  this.url = url;
@@ -864,6 +879,10 @@ protoOf(RedirectException).m4c = function () {
864
879
  return this.url;
865
880
  };
866
881
  function UnknownRefreshErrorException(message) {
882
+ if (arguments.length === 1 && typeof message === 'object' && message !== null && message.constructor === Object) {
883
+ const props = message;
884
+ message = ('message' in props ? props.message : VOID);
885
+ }
867
886
  message = message === VOID ? null : message;
868
887
  Exception_init_$Init$(message == null ? 'Unknown refresh error' : message, this);
869
888
  captureStack(this, UnknownRefreshErrorException);
@@ -7842,6 +7861,11 @@ function LoginType(name, ordinal) {
7842
7861
  Enum.call(this, name, ordinal);
7843
7862
  }
7844
7863
  function Credentials(login, pwd) {
7864
+ if (arguments.length === 1 && typeof login === 'object' && login !== null && login.constructor === Object) {
7865
+ const props = login;
7866
+ login = ('login' in props ? props.login : VOID);
7867
+ pwd = ('pwd' in props ? props.pwd : VOID);
7868
+ }
7845
7869
  login = login === VOID ? '' : login;
7846
7870
  pwd = pwd === VOID ? '' : pwd;
7847
7871
  this.login = login;
@@ -7898,6 +7922,12 @@ protoOf(Credentials).equals = function (other) {
7898
7922
  return true;
7899
7923
  };
7900
7924
  function Session(session, login, loginType) {
7925
+ if (arguments.length === 1 && typeof session === 'object' && session !== null && session.constructor === Object) {
7926
+ const props = session;
7927
+ session = ('session' in props ? props.session : VOID);
7928
+ login = ('login' in props ? props.login : VOID);
7929
+ loginType = ('loginType' in props ? props.loginType : VOID);
7930
+ }
7901
7931
  loginType = loginType === VOID ? determineLoginType(login) : loginType;
7902
7932
  this.session = session;
7903
7933
  this.login = login;
@@ -10725,6 +10755,18 @@ protoOf($registerTokenCOROUTINE$).t9 = function () {
10725
10755
  while (true);
10726
10756
  };
10727
10757
  function Auth(userPoolName, api, fingerprinter, pushTokenProvider, settings, contextMigrator, deviceManager, cryptoFactory) {
10758
+ if (arguments.length === 1 && typeof userPoolName === 'object' && userPoolName !== null && userPoolName.constructor === Object) {
10759
+ const props = userPoolName;
10760
+ userPoolName = ('userPoolName' in props ? props.userPoolName : VOID);
10761
+ api = ('api' in props ? props.api : VOID);
10762
+ if (typeof api === 'object' && api !== null && api.constructor === Object) api = new HomeApi(api);
10763
+ fingerprinter = ('fingerprinter' in props ? props.fingerprinter : VOID);
10764
+ pushTokenProvider = ('pushTokenProvider' in props ? props.pushTokenProvider : VOID);
10765
+ settings = ('settings' in props ? props.settings : VOID);
10766
+ contextMigrator = ('contextMigrator' in props ? props.contextMigrator : VOID);
10767
+ deviceManager = ('deviceManager' in props ? props.deviceManager : VOID);
10768
+ cryptoFactory = ('cryptoFactory' in props ? props.cryptoFactory : VOID);
10769
+ }
10728
10770
  Companion_getInstance_14();
10729
10771
  contextMigrator = contextMigrator === VOID ? defaultCognitoContextMigrator(api.clientId) : contextMigrator;
10730
10772
  deviceManager = deviceManager === VOID ? new DefaultDeviceManager(userPoolName, settings, pushTokenProvider, contextMigrator) : deviceManager;
@@ -11571,6 +11613,13 @@ protoOf($generateVerification$suspendBridgeCOROUTINE$).t9 = function () {
11571
11613
  while (true);
11572
11614
  };
11573
11615
  function DefaultDeviceManager(userPoolName, settings, pushTokenProvider, migrator) {
11616
+ if (arguments.length === 1 && typeof userPoolName === 'object' && userPoolName !== null && userPoolName.constructor === Object) {
11617
+ const props = userPoolName;
11618
+ userPoolName = ('userPoolName' in props ? props.userPoolName : VOID);
11619
+ settings = ('settings' in props ? props.settings : VOID);
11620
+ pushTokenProvider = ('pushTokenProvider' in props ? props.pushTokenProvider : VOID);
11621
+ migrator = ('migrator' in props ? props.migrator : VOID);
11622
+ }
11574
11623
  this.gpx_1 = userPoolName;
11575
11624
  this.hpx_1 = settings;
11576
11625
  this.ipx_1 = pushTokenProvider;
@@ -12205,6 +12254,10 @@ function SoliboSDKJsBuilder$build$slambda_0(this$0, resultContinuation) {
12205
12254
  return l;
12206
12255
  }
12207
12256
  function SoliboSDKJsBuilder(userPoolName) {
12257
+ if (arguments.length === 1 && typeof userPoolName === 'object' && userPoolName !== null && userPoolName.constructor === Object) {
12258
+ const props = userPoolName;
12259
+ userPoolName = ('userPoolName' in props ? props.userPoolName : VOID);
12260
+ }
12208
12261
  this.dq0_1 = userPoolName;
12209
12262
  this.eq0_1 = NoOpFingerprinter_instance;
12210
12263
  this.fq0_1 = NoOpPushTokenProvider_instance;