@solibo/solibo-sdk 1.1.69 → 1.1.70

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.
@@ -37,6 +37,11 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
+ if (typeof Math.log10 === 'undefined') {
41
+ Math.log10 = function (x) {
42
+ return Math.log(x) * Math.LOG10E;
43
+ };
44
+ }
40
45
  if (typeof Math.clz32 === 'undefined') {
41
46
  Math.clz32 = function (log, LN2) {
42
47
  return function (x) {
@@ -48,11 +53,6 @@ if (typeof Math.clz32 === 'undefined') {
48
53
  };
49
54
  }(Math.log, Math.LN2);
50
55
  }
51
- if (typeof Math.log10 === 'undefined') {
52
- Math.log10 = function (x) {
53
- return Math.log(x) * Math.LOG10E;
54
- };
55
- }
56
56
  if (typeof Math.trunc === 'undefined') {
57
57
  Math.trunc = function (x) {
58
58
  if (isNaN(x)) {
@@ -64,6 +64,12 @@ if (typeof Math.trunc === 'undefined') {
64
64
  return Math.ceil(x);
65
65
  };
66
66
  }
67
+ if (typeof String.prototype.startsWith === 'undefined') {
68
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
+ position = position || 0;
70
+ return this.lastIndexOf(searchString, position) === position;
71
+ }});
72
+ }
67
73
  if (typeof String.prototype.endsWith === 'undefined') {
68
74
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
69
75
  var subjectString = this.toString();
@@ -75,12 +81,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
75
81
  return lastIndex !== -1 && lastIndex === position;
76
82
  }});
77
83
  }
78
- if (typeof String.prototype.startsWith === 'undefined') {
79
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
80
- position = position || 0;
81
- return this.lastIndexOf(searchString, position) === position;
82
- }});
83
- }
84
84
  //endregion
85
85
  //region block: imports
86
86
  var imul_0 = Math.imul;
@@ -128,8 +128,8 @@ initMetadataForInterface(MutableIterable, 'MutableIterable');
128
128
  function asJsArrayView() {
129
129
  return createJsArrayViewFrom(this);
130
130
  }
131
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
132
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
131
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
132
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
133
133
  initMetadataForCompanion(Companion_4);
134
134
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
135
135
  initMetadataForCompanion(Companion_5);
@@ -153,7 +153,7 @@ initMetadataForClass(asList$1, VOID, VOID, AbstractList, [AbstractList, RandomAc
153
153
  initMetadataForInterface(AutoCloseable, 'AutoCloseable');
154
154
  initMetadataForInterface(Comparator, 'Comparator');
155
155
  initMetadataForObject(Unit, 'Unit');
156
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
156
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
157
157
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
158
158
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
159
159
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
@@ -165,7 +165,7 @@ initMetadataForCompanion(Companion_6);
165
165
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
166
166
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
167
167
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
168
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
168
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
169
169
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
170
170
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
171
171
  initMetadataForClass(HashMapKeysDefault$iterator$1);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "index.mjs",
3
3
  "types": "index.d.ts",
4
- "version": "1.1.69",
4
+ "version": "1.1.70",
5
5
  "name": "@solibo/solibo-sdk",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "5.6.3",
@@ -105247,14 +105247,16 @@ function $serializer_364() {
105247
105247
  $serializer_instance_364 = this;
105248
105248
  var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('no.solibo.oss.sdk.api.gen.models.SoftwareTokenAssociation', this, 2);
105249
105249
  tmp0_serialDesc.d14('secret', false);
105250
- tmp0_serialDesc.d14('session', false);
105250
+ tmp0_serialDesc.d14('session', true);
105251
105251
  this.d97_1 = tmp0_serialDesc;
105252
105252
  }
105253
105253
  protoOf($serializer_364).e97 = function (encoder, value) {
105254
105254
  var tmp0_desc = this.d97_1;
105255
105255
  var tmp1_output = encoder.qw(tmp0_desc);
105256
105256
  tmp1_output.fy(tmp0_desc, 0, value.secret);
105257
- tmp1_output.fy(tmp0_desc, 1, value.session);
105257
+ if (tmp1_output.my(tmp0_desc, 1) ? true : !(value.session == null)) {
105258
+ tmp1_output.iy(tmp0_desc, 1, StringSerializer_getInstance(), value.session);
105259
+ }
105258
105260
  tmp1_output.rw(tmp0_desc);
105259
105261
  };
105260
105262
  protoOf($serializer_364).ot = function (encoder, value) {
@@ -105271,7 +105273,7 @@ protoOf($serializer_364).pt = function (decoder) {
105271
105273
  if (tmp6_input.gx()) {
105272
105274
  tmp4_local0 = tmp6_input.ax(tmp0_desc, 0);
105273
105275
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
105274
- tmp5_local1 = tmp6_input.ax(tmp0_desc, 1);
105276
+ tmp5_local1 = tmp6_input.ex(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
105275
105277
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
105276
105278
  } else
105277
105279
  while (tmp1_flag) {
@@ -105285,7 +105287,7 @@ protoOf($serializer_364).pt = function (decoder) {
105285
105287
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
105286
105288
  break;
105287
105289
  case 1:
105288
- tmp5_local1 = tmp6_input.ax(tmp0_desc, 1);
105290
+ tmp5_local1 = tmp6_input.ex(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
105289
105291
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
105290
105292
  break;
105291
105293
  default:
@@ -105302,7 +105304,7 @@ protoOf($serializer_364).w14 = function () {
105302
105304
  // Inline function 'kotlin.arrayOf' call
105303
105305
  // Inline function 'kotlin.js.unsafeCast' call
105304
105306
  // Inline function 'kotlin.js.asDynamic' call
105305
- return [StringSerializer_getInstance(), StringSerializer_getInstance()];
105307
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
105306
105308
  };
105307
105309
  var $serializer_instance_364;
105308
105310
  function $serializer_getInstance_364() {
@@ -105311,11 +105313,14 @@ function $serializer_getInstance_364() {
105311
105313
  return $serializer_instance_364;
105312
105314
  }
105313
105315
  function SoftwareTokenAssociation_init_$Init$(seen0, secret, session, serializationConstructorMarker, $this) {
105314
- if (!(3 === (3 & seen0))) {
105315
- throwMissingFieldException(seen0, 3, $serializer_getInstance_364().d97_1);
105316
+ if (!(1 === (1 & seen0))) {
105317
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_364().d97_1);
105316
105318
  }
105317
105319
  $this.secret = secret;
105318
- $this.session = session;
105320
+ if (0 === (seen0 & 2))
105321
+ $this.session = null;
105322
+ else
105323
+ $this.session = session;
105319
105324
  return $this;
105320
105325
  }
105321
105326
  function SoftwareTokenAssociation_init_$Create$(seen0, secret, session, serializationConstructorMarker) {
@@ -105327,6 +105332,7 @@ function SoftwareTokenAssociation(secret, session) {
105327
105332
  secret = ('secret' in props ? props.secret : VOID);
105328
105333
  session = ('session' in props ? props.session : VOID);
105329
105334
  }
105335
+ session = session === VOID ? null : session;
105330
105336
  this.secret = secret;
105331
105337
  this.session = session;
105332
105338
  }
@@ -105342,20 +105348,20 @@ protoOf(SoftwareTokenAssociation).fh = function () {
105342
105348
  protoOf(SoftwareTokenAssociation).gh = function () {
105343
105349
  return this.session;
105344
105350
  };
105345
- protoOf(SoftwareTokenAssociation).u6w = function (secret, session) {
105351
+ protoOf(SoftwareTokenAssociation).u6v = function (secret, session) {
105346
105352
  return new SoftwareTokenAssociation(secret, session);
105347
105353
  };
105348
105354
  protoOf(SoftwareTokenAssociation).copy = function (secret, session, $super) {
105349
105355
  secret = secret === VOID ? this.secret : secret;
105350
105356
  session = session === VOID ? this.session : session;
105351
- return $super === VOID ? this.u6w(secret, session) : $super.u6w.call(this, secret, session);
105357
+ return $super === VOID ? this.u6v(secret, session) : $super.u6v.call(this, secret, session);
105352
105358
  };
105353
105359
  protoOf(SoftwareTokenAssociation).toString = function () {
105354
105360
  return 'SoftwareTokenAssociation(secret=' + this.secret + ', session=' + this.session + ')';
105355
105361
  };
105356
105362
  protoOf(SoftwareTokenAssociation).hashCode = function () {
105357
105363
  var result = getStringHashCode(this.secret);
105358
- result = imul(result, 31) + getStringHashCode(this.session) | 0;
105364
+ result = imul(result, 31) + (this.session == null ? 0 : getStringHashCode(this.session)) | 0;
105359
105365
  return result;
105360
105366
  };
105361
105367
  protoOf(SoftwareTokenAssociation).equals = function (other) {
@@ -105365,7 +105371,7 @@ protoOf(SoftwareTokenAssociation).equals = function (other) {
105365
105371
  return false;
105366
105372
  if (!(this.secret === other.secret))
105367
105373
  return false;
105368
- if (!(this.session === other.session))
105374
+ if (!(this.session == other.session))
105369
105375
  return false;
105370
105376
  return true;
105371
105377
  };