@solibo/solibo-sdk 1.6.35 → 1.6.36

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "index.mjs",
3
3
  "types": "index.d.ts",
4
- "version": "1.6.35",
4
+ "version": "1.6.36",
5
5
  "name": "@solibo/solibo-sdk",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "5.6.3",
@@ -47,6 +47,7 @@ import {
47
47
  KtList3hktaavzmj137 as KtList,
48
48
  joinToString1cxrrlmo0chqs as joinToString,
49
49
  ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
50
+ ArrayList3it5z8td81qkl as ArrayList_BridgeFix,
50
51
  lazy2hsh8ze7j6ikd as lazy_0,
51
52
  KProperty1ca4yb4wlo496 as KProperty1,
52
53
  getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
@@ -36592,7 +36593,7 @@ function $serializer_129() {
36592
36593
  tmp0_serialDesc.d14('amount', true);
36593
36594
  tmp0_serialDesc.d14('description', true);
36594
36595
  tmp0_serialDesc.d14('settlementType', false);
36595
- tmp0_serialDesc.d14('unitPrice', false);
36596
+ tmp0_serialDesc.d14('unitPrice', true);
36596
36597
  tmp0_serialDesc.d14('units', true);
36597
36598
  this.a7u_1 = tmp0_serialDesc;
36598
36599
  }
@@ -36607,7 +36608,9 @@ protoOf($serializer_129).b7u = function (encoder, value) {
36607
36608
  tmp1_output.iy(tmp0_desc, 1, StringSerializer_getInstance(), value.description);
36608
36609
  }
36609
36610
  tmp1_output.hy(tmp0_desc, 2, tmp2_cached[2].n1(), value.settlementType);
36610
- tmp1_output.dy(tmp0_desc, 3, value.unitPrice);
36611
+ if (tmp1_output.my(tmp0_desc, 3) ? true : !(value.unitPrice == null)) {
36612
+ tmp1_output.iy(tmp0_desc, 3, DoubleSerializer_getInstance(), value.unitPrice);
36613
+ }
36611
36614
  if (tmp1_output.my(tmp0_desc, 4) ? true : !(value.units == null)) {
36612
36615
  tmp1_output.iy(tmp0_desc, 4, DoubleSerializer_getInstance(), value.units);
36613
36616
  }
@@ -36624,7 +36627,7 @@ protoOf($serializer_129).pt = function (decoder) {
36624
36627
  var tmp4_local0 = null;
36625
36628
  var tmp5_local1 = null;
36626
36629
  var tmp6_local2 = null;
36627
- var tmp7_local3 = 0.0;
36630
+ var tmp7_local3 = null;
36628
36631
  var tmp8_local4 = null;
36629
36632
  var tmp9_input = decoder.qw(tmp0_desc);
36630
36633
  var tmp10_cached = Companion_getInstance_147().z7t_1;
@@ -36635,7 +36638,7 @@ protoOf($serializer_129).pt = function (decoder) {
36635
36638
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
36636
36639
  tmp6_local2 = tmp9_input.cx(tmp0_desc, 2, tmp10_cached[2].n1(), tmp6_local2);
36637
36640
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
36638
- tmp7_local3 = tmp9_input.yw(tmp0_desc, 3);
36641
+ tmp7_local3 = tmp9_input.ex(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
36639
36642
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
36640
36643
  tmp8_local4 = tmp9_input.ex(tmp0_desc, 4, DoubleSerializer_getInstance(), tmp8_local4);
36641
36644
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
@@ -36659,7 +36662,7 @@ protoOf($serializer_129).pt = function (decoder) {
36659
36662
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
36660
36663
  break;
36661
36664
  case 3:
36662
- tmp7_local3 = tmp9_input.yw(tmp0_desc, 3);
36665
+ tmp7_local3 = tmp9_input.ex(tmp0_desc, 3, DoubleSerializer_getInstance(), tmp7_local3);
36663
36666
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
36664
36667
  break;
36665
36668
  case 4:
@@ -36681,7 +36684,7 @@ protoOf($serializer_129).w14 = function () {
36681
36684
  // Inline function 'kotlin.arrayOf' call
36682
36685
  // Inline function 'kotlin.js.unsafeCast' call
36683
36686
  // Inline function 'kotlin.js.asDynamic' call
36684
- return [get_nullable(DoubleSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), tmp0_cached[2].n1(), DoubleSerializer_getInstance(), get_nullable(DoubleSerializer_getInstance())];
36687
+ return [get_nullable(DoubleSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), tmp0_cached[2].n1(), get_nullable(DoubleSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance())];
36685
36688
  };
36686
36689
  var $serializer_instance_129;
36687
36690
  function $serializer_getInstance_129() {
@@ -36690,8 +36693,8 @@ function $serializer_getInstance_129() {
36690
36693
  return $serializer_instance_129;
36691
36694
  }
36692
36695
  function CreateSettlementCustomCostCommand_init_$Init$(seen0, amount, description, settlementType, unitPrice, units, serializationConstructorMarker, $this) {
36693
- if (!(12 === (12 & seen0))) {
36694
- throwMissingFieldException(seen0, 12, $serializer_getInstance_129().a7u_1);
36696
+ if (!(4 === (4 & seen0))) {
36697
+ throwMissingFieldException(seen0, 4, $serializer_getInstance_129().a7u_1);
36695
36698
  }
36696
36699
  if (0 === (seen0 & 1))
36697
36700
  $this.amount = null;
@@ -36702,7 +36705,10 @@ function CreateSettlementCustomCostCommand_init_$Init$(seen0, amount, descriptio
36702
36705
  else
36703
36706
  $this.description = description;
36704
36707
  $this.settlementType = settlementType;
36705
- $this.unitPrice = unitPrice;
36708
+ if (0 === (seen0 & 8))
36709
+ $this.unitPrice = null;
36710
+ else
36711
+ $this.unitPrice = unitPrice;
36706
36712
  if (0 === (seen0 & 16))
36707
36713
  $this.units = null;
36708
36714
  else
@@ -36726,6 +36732,7 @@ function CreateSettlementCustomCostCommand(amount, description, settlementType,
36726
36732
  Companion_getInstance_147();
36727
36733
  amount = amount === VOID ? null : amount;
36728
36734
  description = description === VOID ? null : description;
36735
+ unitPrice = unitPrice === VOID ? null : unitPrice;
36729
36736
  units = units === VOID ? null : units;
36730
36737
  this.amount = amount;
36731
36738
  this.description = description;
@@ -36781,7 +36788,7 @@ protoOf(CreateSettlementCustomCostCommand).hashCode = function () {
36781
36788
  var result = this.amount == null ? 0 : getNumberHashCode(this.amount);
36782
36789
  result = imul(result, 31) + (this.description == null ? 0 : getStringHashCode(this.description)) | 0;
36783
36790
  result = imul(result, 31) + this.settlementType.hashCode() | 0;
36784
- result = imul(result, 31) + getNumberHashCode(this.unitPrice) | 0;
36791
+ result = imul(result, 31) + (this.unitPrice == null ? 0 : getNumberHashCode(this.unitPrice)) | 0;
36785
36792
  result = imul(result, 31) + (this.units == null ? 0 : getNumberHashCode(this.units)) | 0;
36786
36793
  return result;
36787
36794
  };
@@ -122008,7 +122015,7 @@ function $serializer_444() {
122008
122015
  tmp0_serialDesc.d14('id', false);
122009
122016
  tmp0_serialDesc.d14('settlementId', false);
122010
122017
  tmp0_serialDesc.d14('settlementType', false);
122011
- tmp0_serialDesc.d14('unitPrice', false);
122018
+ tmp0_serialDesc.d14('unitPrice', true);
122012
122019
  tmp0_serialDesc.d14('units', true);
122013
122020
  tmp0_serialDesc.d14('updatedAt', true);
122014
122021
  tmp0_serialDesc.d14('updatedBy', true);
@@ -122032,7 +122039,9 @@ protoOf($serializer_444).c9r = function (encoder, value) {
122032
122039
  tmp1_output.by(tmp0_desc, 5, value.id);
122033
122040
  tmp1_output.by(tmp0_desc, 6, value.settlementId);
122034
122041
  tmp1_output.hy(tmp0_desc, 7, tmp2_cached[7].n1(), value.settlementType);
122035
- tmp1_output.dy(tmp0_desc, 8, value.unitPrice);
122042
+ if (tmp1_output.my(tmp0_desc, 8) ? true : !(value.unitPrice == null)) {
122043
+ tmp1_output.iy(tmp0_desc, 8, DoubleSerializer_getInstance(), value.unitPrice);
122044
+ }
122036
122045
  if (tmp1_output.my(tmp0_desc, 9) ? true : !(value.units == null)) {
122037
122046
  tmp1_output.iy(tmp0_desc, 9, DoubleSerializer_getInstance(), value.units);
122038
122047
  }
@@ -122060,7 +122069,7 @@ protoOf($serializer_444).pt = function (decoder) {
122060
122069
  var tmp9_local5 = 0n;
122061
122070
  var tmp10_local6 = 0n;
122062
122071
  var tmp11_local7 = null;
122063
- var tmp12_local8 = 0.0;
122072
+ var tmp12_local8 = null;
122064
122073
  var tmp13_local9 = null;
122065
122074
  var tmp14_local10 = null;
122066
122075
  var tmp15_local11 = null;
@@ -122083,7 +122092,7 @@ protoOf($serializer_444).pt = function (decoder) {
122083
122092
  tmp3_bitMask0 = tmp3_bitMask0 | 64;
122084
122093
  tmp11_local7 = tmp16_input.cx(tmp0_desc, 7, tmp17_cached[7].n1(), tmp11_local7);
122085
122094
  tmp3_bitMask0 = tmp3_bitMask0 | 128;
122086
- tmp12_local8 = tmp16_input.yw(tmp0_desc, 8);
122095
+ tmp12_local8 = tmp16_input.ex(tmp0_desc, 8, DoubleSerializer_getInstance(), tmp12_local8);
122087
122096
  tmp3_bitMask0 = tmp3_bitMask0 | 256;
122088
122097
  tmp13_local9 = tmp16_input.ex(tmp0_desc, 9, DoubleSerializer_getInstance(), tmp13_local9);
122089
122098
  tmp3_bitMask0 = tmp3_bitMask0 | 512;
@@ -122131,7 +122140,7 @@ protoOf($serializer_444).pt = function (decoder) {
122131
122140
  tmp3_bitMask0 = tmp3_bitMask0 | 128;
122132
122141
  break;
122133
122142
  case 8:
122134
- tmp12_local8 = tmp16_input.yw(tmp0_desc, 8);
122143
+ tmp12_local8 = tmp16_input.ex(tmp0_desc, 8, DoubleSerializer_getInstance(), tmp12_local8);
122135
122144
  tmp3_bitMask0 = tmp3_bitMask0 | 256;
122136
122145
  break;
122137
122146
  case 9:
@@ -122161,7 +122170,7 @@ protoOf($serializer_444).w14 = function () {
122161
122170
  // Inline function 'kotlin.arrayOf' call
122162
122171
  // Inline function 'kotlin.js.unsafeCast' call
122163
122172
  // Inline function 'kotlin.js.asDynamic' call
122164
- return [get_nullable(DoubleSerializer_getInstance()), InstantSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[4].n1()), LongSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[7].n1(), DoubleSerializer_getInstance(), get_nullable(DoubleSerializer_getInstance()), get_nullable(InstantSerializer_getInstance()), get_nullable(LongSerializer_getInstance())];
122173
+ return [get_nullable(DoubleSerializer_getInstance()), InstantSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[4].n1()), LongSerializer_getInstance(), LongSerializer_getInstance(), tmp0_cached[7].n1(), get_nullable(DoubleSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance()), get_nullable(InstantSerializer_getInstance()), get_nullable(LongSerializer_getInstance())];
122165
122174
  };
122166
122175
  var $serializer_instance_444;
122167
122176
  function $serializer_getInstance_444() {
@@ -122170,8 +122179,8 @@ function $serializer_getInstance_444() {
122170
122179
  return $serializer_instance_444;
122171
122180
  }
122172
122181
  function SettlementCustomCost_init_$Init$(seen0, amount, createdAt, createdBy, description, documentIds, id, settlementId, settlementType, unitPrice, units, updatedAt, updatedBy, serializationConstructorMarker, $this) {
122173
- if (!(486 === (486 & seen0))) {
122174
- throwMissingFieldException(seen0, 486, $serializer_getInstance_444().b9r_1);
122182
+ if (!(230 === (230 & seen0))) {
122183
+ throwMissingFieldException(seen0, 230, $serializer_getInstance_444().b9r_1);
122175
122184
  }
122176
122185
  if (0 === (seen0 & 1))
122177
122186
  $this.amount = null;
@@ -122190,7 +122199,10 @@ function SettlementCustomCost_init_$Init$(seen0, amount, createdAt, createdBy, d
122190
122199
  $this.id = id;
122191
122200
  $this.settlementId = settlementId;
122192
122201
  $this.settlementType = settlementType;
122193
- $this.unitPrice = unitPrice;
122202
+ if (0 === (seen0 & 256))
122203
+ $this.unitPrice = null;
122204
+ else
122205
+ $this.unitPrice = unitPrice;
122194
122206
  if (0 === (seen0 & 512))
122195
122207
  $this.units = null;
122196
122208
  else
@@ -122248,6 +122260,7 @@ function SettlementCustomCost(amount, createdAt, createdBy, description, documen
122248
122260
  amount = amount === VOID ? null : amount;
122249
122261
  description = description === VOID ? null : description;
122250
122262
  documentIds = documentIds === VOID ? null : documentIds;
122263
+ unitPrice = unitPrice === VOID ? null : unitPrice;
122251
122264
  units = units === VOID ? null : units;
122252
122265
  updatedAt = updatedAt === VOID ? null : updatedAt;
122253
122266
  updatedBy = updatedBy === VOID ? null : updatedBy;
@@ -122366,7 +122379,7 @@ protoOf(SettlementCustomCost).hashCode = function () {
122366
122379
  result = imul(result, 31) + getBigIntHashCode(this.id) | 0;
122367
122380
  result = imul(result, 31) + getBigIntHashCode(this.settlementId) | 0;
122368
122381
  result = imul(result, 31) + this.settlementType.hashCode() | 0;
122369
- result = imul(result, 31) + getNumberHashCode(this.unitPrice) | 0;
122382
+ result = imul(result, 31) + (this.unitPrice == null ? 0 : getNumberHashCode(this.unitPrice)) | 0;
122370
122383
  result = imul(result, 31) + (this.units == null ? 0 : getNumberHashCode(this.units)) | 0;
122371
122384
  result = imul(result, 31) + (this.updatedAt == null ? 0 : this.updatedAt.hashCode()) | 0;
122372
122385
  result = imul(result, 31) + (this.updatedBy == null ? 0 : getBigIntHashCode(this.updatedBy)) | 0;
@@ -122429,7 +122442,7 @@ function $serializer_445() {
122429
122442
  tmp0_serialDesc.d14('description', true);
122430
122443
  tmp0_serialDesc.d14('settlementType', false);
122431
122444
  tmp0_serialDesc.d14('tripletexInvoiceId', true);
122432
- tmp0_serialDesc.d14('unitPrice', false);
122445
+ tmp0_serialDesc.d14('unitPrice', true);
122433
122446
  tmp0_serialDesc.d14('units', true);
122434
122447
  this.h9r_1 = tmp0_serialDesc;
122435
122448
  }
@@ -122450,7 +122463,9 @@ protoOf($serializer_445).i9r = function (encoder, value) {
122450
122463
  if (tmp1_output.my(tmp0_desc, 4) ? true : !(value.tripletexInvoiceId == null)) {
122451
122464
  tmp1_output.iy(tmp0_desc, 4, LongSerializer_getInstance(), value.tripletexInvoiceId);
122452
122465
  }
122453
- tmp1_output.dy(tmp0_desc, 5, value.unitPrice);
122466
+ if (tmp1_output.my(tmp0_desc, 5) ? true : !(value.unitPrice == null)) {
122467
+ tmp1_output.iy(tmp0_desc, 5, DoubleSerializer_getInstance(), value.unitPrice);
122468
+ }
122454
122469
  if (tmp1_output.my(tmp0_desc, 6) ? true : !(value.units == null)) {
122455
122470
  tmp1_output.iy(tmp0_desc, 6, DoubleSerializer_getInstance(), value.units);
122456
122471
  }
@@ -122469,7 +122484,7 @@ protoOf($serializer_445).pt = function (decoder) {
122469
122484
  var tmp6_local2 = null;
122470
122485
  var tmp7_local3 = null;
122471
122486
  var tmp8_local4 = null;
122472
- var tmp9_local5 = 0.0;
122487
+ var tmp9_local5 = null;
122473
122488
  var tmp10_local6 = null;
122474
122489
  var tmp11_input = decoder.qw(tmp0_desc);
122475
122490
  var tmp12_cached = Companion_getInstance_522().g9r_1;
@@ -122484,7 +122499,7 @@ protoOf($serializer_445).pt = function (decoder) {
122484
122499
  tmp3_bitMask0 = tmp3_bitMask0 | 8;
122485
122500
  tmp8_local4 = tmp11_input.ex(tmp0_desc, 4, LongSerializer_getInstance(), tmp8_local4);
122486
122501
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
122487
- tmp9_local5 = tmp11_input.yw(tmp0_desc, 5);
122502
+ tmp9_local5 = tmp11_input.ex(tmp0_desc, 5, DoubleSerializer_getInstance(), tmp9_local5);
122488
122503
  tmp3_bitMask0 = tmp3_bitMask0 | 32;
122489
122504
  tmp10_local6 = tmp11_input.ex(tmp0_desc, 6, DoubleSerializer_getInstance(), tmp10_local6);
122490
122505
  tmp3_bitMask0 = tmp3_bitMask0 | 64;
@@ -122516,7 +122531,7 @@ protoOf($serializer_445).pt = function (decoder) {
122516
122531
  tmp3_bitMask0 = tmp3_bitMask0 | 16;
122517
122532
  break;
122518
122533
  case 5:
122519
- tmp9_local5 = tmp11_input.yw(tmp0_desc, 5);
122534
+ tmp9_local5 = tmp11_input.ex(tmp0_desc, 5, DoubleSerializer_getInstance(), tmp9_local5);
122520
122535
  tmp3_bitMask0 = tmp3_bitMask0 | 32;
122521
122536
  break;
122522
122537
  case 6:
@@ -122538,7 +122553,7 @@ protoOf($serializer_445).w14 = function () {
122538
122553
  // Inline function 'kotlin.arrayOf' call
122539
122554
  // Inline function 'kotlin.js.unsafeCast' call
122540
122555
  // Inline function 'kotlin.js.asDynamic' call
122541
- return [get_nullable(DoubleSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].n1(), get_nullable(LongSerializer_getInstance()), DoubleSerializer_getInstance(), get_nullable(DoubleSerializer_getInstance())];
122556
+ return [get_nullable(DoubleSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].n1(), get_nullable(LongSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance()), get_nullable(DoubleSerializer_getInstance())];
122542
122557
  };
122543
122558
  var $serializer_instance_445;
122544
122559
  function $serializer_getInstance_445() {
@@ -122547,8 +122562,8 @@ function $serializer_getInstance_445() {
122547
122562
  return $serializer_instance_445;
122548
122563
  }
122549
122564
  function SettlementInvoice_init_$Init$(seen0, amount, customCostId, description, settlementType, tripletexInvoiceId, unitPrice, units, serializationConstructorMarker, $this) {
122550
- if (!(40 === (40 & seen0))) {
122551
- throwMissingFieldException(seen0, 40, $serializer_getInstance_445().h9r_1);
122565
+ if (!(8 === (8 & seen0))) {
122566
+ throwMissingFieldException(seen0, 8, $serializer_getInstance_445().h9r_1);
122552
122567
  }
122553
122568
  if (0 === (seen0 & 1))
122554
122569
  $this.amount = null;
@@ -122567,7 +122582,10 @@ function SettlementInvoice_init_$Init$(seen0, amount, customCostId, description,
122567
122582
  $this.tripletexInvoiceId = null;
122568
122583
  else
122569
122584
  $this.tripletexInvoiceId = tripletexInvoiceId;
122570
- $this.unitPrice = unitPrice;
122585
+ if (0 === (seen0 & 32))
122586
+ $this.unitPrice = null;
122587
+ else
122588
+ $this.unitPrice = unitPrice;
122571
122589
  if (0 === (seen0 & 64))
122572
122590
  $this.units = null;
122573
122591
  else
@@ -122595,6 +122613,7 @@ function SettlementInvoice(amount, customCostId, description, settlementType, tr
122595
122613
  customCostId = customCostId === VOID ? null : customCostId;
122596
122614
  description = description === VOID ? null : description;
122597
122615
  tripletexInvoiceId = tripletexInvoiceId === VOID ? null : tripletexInvoiceId;
122616
+ unitPrice = unitPrice === VOID ? null : unitPrice;
122598
122617
  units = units === VOID ? null : units;
122599
122618
  this.amount = amount;
122600
122619
  this.customCostId = customCostId;
@@ -122668,7 +122687,7 @@ protoOf(SettlementInvoice).hashCode = function () {
122668
122687
  result = imul(result, 31) + (this.description == null ? 0 : getStringHashCode(this.description)) | 0;
122669
122688
  result = imul(result, 31) + this.settlementType.hashCode() | 0;
122670
122689
  result = imul(result, 31) + (this.tripletexInvoiceId == null ? 0 : getBigIntHashCode(this.tripletexInvoiceId)) | 0;
122671
- result = imul(result, 31) + getNumberHashCode(this.unitPrice) | 0;
122690
+ result = imul(result, 31) + (this.unitPrice == null ? 0 : getNumberHashCode(this.unitPrice)) | 0;
122672
122691
  result = imul(result, 31) + (this.units == null ? 0 : getNumberHashCode(this.units)) | 0;
122673
122692
  return result;
122674
122693
  };