@solibo/solibo-sdk 1.12.2 → 1.13.0

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.
Files changed (34) hide show
  1. package/KmLogging-logging.mjs +98 -98
  2. package/KotlinBigInteger-bignum.mjs +1114 -1114
  3. package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
  4. package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
  5. package/Stately-stately-concurrency.mjs +3 -3
  6. package/bitops-library-bits.mjs +33 -33
  7. package/bitops-library-endian.mjs +3 -3
  8. package/client.d.mts +55 -0
  9. package/client.mjs +400 -0
  10. package/core-library-digest.mjs +29 -29
  11. package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
  12. package/cryptography-kotlin-cryptography-core.mjs +47 -47
  13. package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
  14. package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
  15. package/cryptography-kotlin-cryptography-random.mjs +15 -15
  16. package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
  17. package/cryptography-kotlin-cryptography-serialization-asn1.mjs +237 -237
  18. package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
  19. package/hash-library-md.mjs +30 -30
  20. package/kotlin-kotlin-stdlib.mjs +18 -11
  21. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  22. package/kotlinx-coroutines-core.mjs +8 -8
  23. package/kotlinx-coroutines-core.mjs.map +1 -1
  24. package/ktor-ktor-client-auth.mjs +224 -224
  25. package/ktor-ktor-client-encoding.mjs +75 -75
  26. package/ktor-ktor-client-logging.mjs +520 -520
  27. package/ktor-ktor-client-mock.mjs +39 -39
  28. package/ktor-ktor-websockets.mjs +2 -2
  29. package/package.json +1 -1
  30. package/solibo-sdk-sdk-home-api.mjs +53405 -49657
  31. package/solibo-sdk-sdk-home-api.mjs.map +1 -1
  32. package/solibo-sdk-sdk.d.mts +525 -0
  33. package/solibo-sdk-sdk.mjs +9031 -5511
  34. package/solibo-sdk-sdk.mjs.map +1 -1
@@ -13,7 +13,7 @@ initMetadataForClass(MapSettings, 'MapSettings', MapSettings);
13
13
  //endregion
14
14
  function invokeListeners($this) {
15
15
  // Inline function 'kotlin.collections.forEach' call
16
- var _iterator__ex2g4s = $this.zxh_1.t();
16
+ var _iterator__ex2g4s = $this.qxr_1.t();
17
17
  while (_iterator__ex2g4s.u()) {
18
18
  var element = _iterator__ex2g4s.v();
19
19
  element();
@@ -29,48 +29,48 @@ function MapSettings(delegate) {
29
29
  tmp = delegate;
30
30
  }
31
31
  delegate = tmp;
32
- this.yxh_1 = delegate;
32
+ this.pxr_1 = delegate;
33
33
  var tmp_0 = this;
34
34
  // Inline function 'kotlin.collections.mutableListOf' call
35
- tmp_0.zxh_1 = ArrayList_init_$Create$();
35
+ tmp_0.qxr_1 = ArrayList_init_$Create$();
36
36
  }
37
37
  protoOf(MapSettings).s3h = function (key) {
38
38
  // Inline function 'kotlin.collections.minusAssign' call
39
- this.yxh_1.e3(key);
39
+ this.pxr_1.e3(key);
40
40
  invokeListeners(this);
41
41
  };
42
- protoOf(MapSettings).rxh = function (key, value) {
42
+ protoOf(MapSettings).ixr = function (key, value) {
43
43
  // Inline function 'kotlin.collections.set' call
44
- this.yxh_1.d3(key, value);
44
+ this.pxr_1.d3(key, value);
45
45
  invokeListeners(this);
46
46
  };
47
- protoOf(MapSettings).sxh = function (key, value) {
47
+ protoOf(MapSettings).jxr = function (key, value) {
48
48
  // Inline function 'kotlin.collections.set' call
49
- this.yxh_1.d3(key, value);
49
+ this.pxr_1.d3(key, value);
50
50
  invokeListeners(this);
51
51
  };
52
- protoOf(MapSettings).txh = function (key, value) {
52
+ protoOf(MapSettings).kxr = function (key, value) {
53
53
  // Inline function 'kotlin.collections.set' call
54
- this.yxh_1.d3(key, value);
54
+ this.pxr_1.d3(key, value);
55
55
  invokeListeners(this);
56
56
  };
57
- protoOf(MapSettings).uxh = function (key) {
58
- var tmp = this.yxh_1.a3(key);
57
+ protoOf(MapSettings).lxr = function (key) {
58
+ var tmp = this.pxr_1.a3(key);
59
59
  return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
60
60
  };
61
- protoOf(MapSettings).vxh = function (key, value) {
61
+ protoOf(MapSettings).mxr = function (key, value) {
62
62
  // Inline function 'kotlin.collections.set' call
63
- this.yxh_1.d3(key, value);
63
+ this.pxr_1.d3(key, value);
64
64
  invokeListeners(this);
65
65
  };
66
- protoOf(MapSettings).wxh = function (key, value) {
66
+ protoOf(MapSettings).nxr = function (key, value) {
67
67
  // Inline function 'kotlin.collections.set' call
68
- this.yxh_1.d3(key, value);
68
+ this.pxr_1.d3(key, value);
69
69
  invokeListeners(this);
70
70
  };
71
- protoOf(MapSettings).xxh = function (key, value) {
71
+ protoOf(MapSettings).oxr = function (key, value) {
72
72
  // Inline function 'kotlin.collections.set' call
73
- this.yxh_1.d3(key, value);
73
+ this.pxr_1.d3(key, value);
74
74
  invokeListeners(this);
75
75
  };
76
76
  //region block: exports
@@ -18,45 +18,45 @@ function StorageSettings(delegate) {
18
18
  tmp = delegate;
19
19
  }
20
20
  delegate = tmp;
21
- this.qxh_1 = delegate;
21
+ this.hxr_1 = delegate;
22
22
  }
23
23
  protoOf(StorageSettings).s3h = function (key) {
24
- return this.qxh_1.removeItem(key);
24
+ return this.hxr_1.removeItem(key);
25
25
  };
26
- protoOf(StorageSettings).rxh = function (key, value) {
27
- var tmp0 = this.qxh_1;
26
+ protoOf(StorageSettings).ixr = function (key, value) {
27
+ var tmp0 = this.hxr_1;
28
28
  // Inline function 'com.russhwolf.settings.set' call
29
29
  var value_0 = value.toString();
30
30
  tmp0.setItem(key, value_0);
31
31
  };
32
- protoOf(StorageSettings).sxh = function (key, value) {
33
- var tmp0 = this.qxh_1;
32
+ protoOf(StorageSettings).jxr = function (key, value) {
33
+ var tmp0 = this.hxr_1;
34
34
  // Inline function 'com.russhwolf.settings.set' call
35
35
  var value_0 = value.toString();
36
36
  tmp0.setItem(key, value_0);
37
37
  };
38
- protoOf(StorageSettings).txh = function (key, value) {
38
+ protoOf(StorageSettings).kxr = function (key, value) {
39
39
  // Inline function 'com.russhwolf.settings.set' call
40
- this.qxh_1.setItem(key, value);
40
+ this.hxr_1.setItem(key, value);
41
41
  };
42
- protoOf(StorageSettings).uxh = function (key) {
42
+ protoOf(StorageSettings).lxr = function (key) {
43
43
  // Inline function 'com.russhwolf.settings.get' call
44
- return this.qxh_1.getItem(key);
44
+ return this.hxr_1.getItem(key);
45
45
  };
46
- protoOf(StorageSettings).vxh = function (key, value) {
47
- var tmp0 = this.qxh_1;
46
+ protoOf(StorageSettings).mxr = function (key, value) {
47
+ var tmp0 = this.hxr_1;
48
48
  // Inline function 'com.russhwolf.settings.set' call
49
49
  var value_0 = value.toString();
50
50
  tmp0.setItem(key, value_0);
51
51
  };
52
- protoOf(StorageSettings).wxh = function (key, value) {
53
- var tmp0 = this.qxh_1;
52
+ protoOf(StorageSettings).nxr = function (key, value) {
53
+ var tmp0 = this.hxr_1;
54
54
  // Inline function 'com.russhwolf.settings.set' call
55
55
  var value_0 = value.toString();
56
56
  tmp0.setItem(key, value_0);
57
57
  };
58
- protoOf(StorageSettings).xxh = function (key, value) {
59
- var tmp0 = this.qxh_1;
58
+ protoOf(StorageSettings).oxr = function (key, value) {
59
+ var tmp0 = this.hxr_1;
60
60
  // Inline function 'com.russhwolf.settings.set' call
61
61
  var value_0 = value.toString();
62
62
  tmp0.setItem(key, value_0);
@@ -8,13 +8,13 @@ import {
8
8
  initMetadataForClass(AtomicReference, 'AtomicReference');
9
9
  //endregion
10
10
  function AtomicReference(initialValue) {
11
- this.zwo_1 = initialValue;
11
+ this.qwy_1 = initialValue;
12
12
  }
13
13
  protoOf(AtomicReference).q25 = function () {
14
- return this.zwo_1;
14
+ return this.qwy_1;
15
15
  };
16
16
  protoOf(AtomicReference).j2o = function (value_) {
17
- this.zwo_1 = value_;
17
+ this.qwy_1 = value_;
18
18
  };
19
19
  //region block: exports
20
20
  export {
@@ -32,7 +32,7 @@ function Final_init_$Create$(lo, hi) {
32
32
  return Final_init_$Init$(lo, hi, objectCreate(protoOf(Final)));
33
33
  }
34
34
  function Companion() {
35
- this.sy2_1 = 1048576;
35
+ this.jyc_1 = 1048576;
36
36
  }
37
37
  var Companion_instance;
38
38
  function Companion_getInstance() {
@@ -66,9 +66,9 @@ function Bit32_init_$Init$(lo, hi, incrementBy, $this) {
66
66
  var message_3 = 'lo must be a factor of incrementBy[' + incrementBy + ']';
67
67
  throw IllegalArgumentException_init_$Create$(toString(message_3));
68
68
  }
69
- $this.uy2_1 = incrementBy;
70
- $this.vy2_1 = lo;
71
- $this.wy2_1 = hi;
69
+ $this.lyc_1 = incrementBy;
70
+ $this.myc_1 = lo;
71
+ $this.nyc_1 = hi;
72
72
  return $this;
73
73
  }
74
74
  function Bit32_init_$Init$_0(incrementBy, $this) {
@@ -80,31 +80,31 @@ function Bit32_init_$Create$(incrementBy) {
80
80
  }
81
81
  function Final(lo, hi, isBits) {
82
82
  Final_1.call(this, isBits);
83
- this.yy2_1 = lo;
84
- this.zy2_1 = hi;
83
+ this.pyc_1 = lo;
84
+ this.qyc_1 = hi;
85
85
  }
86
86
  protoOf(Final).ch = function () {
87
- return this.yy2_1;
87
+ return this.pyc_1;
88
88
  };
89
89
  protoOf(Final).dh = function () {
90
- return this.zy2_1;
90
+ return this.qyc_1;
91
91
  };
92
- protoOf(Final).ay3 = function () {
93
- if (this.by3_1)
92
+ protoOf(Final).ryc = function () {
93
+ if (this.syc_1)
94
94
  return this;
95
- return new Final(this.yy2_1 << 3, this.zy2_1 << 3 | (this.yy2_1 >>> 29 | 0), true);
95
+ return new Final(this.pyc_1 << 3, this.qyc_1 << 3 | (this.pyc_1 >>> 29 | 0), true);
96
96
  };
97
97
  function Final_0() {
98
98
  }
99
- protoOf(Bit32).cy3 = function () {
100
- this.vy2_1 = this.vy2_1 + this.uy2_1 | 0;
101
- if (this.vy2_1 === 0) {
102
- this.wy2_1 = this.wy2_1 + 1 | 0;
99
+ protoOf(Bit32).tyc = function () {
100
+ this.myc_1 = this.myc_1 + this.lyc_1 | 0;
101
+ if (this.myc_1 === 0) {
102
+ this.nyc_1 = this.nyc_1 + 1 | 0;
103
103
  }
104
104
  };
105
- protoOf(Bit32).dy3 = function (additional) {
106
- var lo = this.vy2_1;
107
- var hi = this.wy2_1;
105
+ protoOf(Bit32).uyc = function (additional) {
106
+ var lo = this.myc_1;
107
+ var hi = this.nyc_1;
108
108
  var lt0 = lo < 0;
109
109
  lo = lo + additional | 0;
110
110
  if (lt0 && lo >= 0) {
@@ -112,16 +112,16 @@ protoOf(Bit32).dy3 = function (additional) {
112
112
  }
113
113
  return Final_init_$Create$(lo, hi);
114
114
  };
115
- protoOf(Bit32).ey3 = function () {
116
- this.vy2_1 = 0;
117
- this.wy2_1 = 0;
115
+ protoOf(Bit32).vyc = function () {
116
+ this.myc_1 = 0;
117
+ this.nyc_1 = 0;
118
118
  };
119
119
  function Bit32() {
120
120
  }
121
121
  function Bit64() {
122
122
  }
123
123
  function Final_1(isBits) {
124
- this.by3_1 = isBits;
124
+ this.syc_1 = isBits;
125
125
  }
126
126
  protoOf(Final_1).equals = function (other) {
127
127
  var tmp;
@@ -135,24 +135,24 @@ protoOf(Final_1).equals = function (other) {
135
135
  protoOf(Final_1).hashCode = function () {
136
136
  var result = 17;
137
137
  if (this instanceof Final) {
138
- result = imul(result, 31) + this.yy2_1 | 0;
139
- result = imul(result, 31) + this.zy2_1 | 0;
138
+ result = imul(result, 31) + this.pyc_1 | 0;
139
+ result = imul(result, 31) + this.qyc_1 | 0;
140
140
  } else {
141
141
  if (this instanceof Final_0) {
142
- result = imul(result, 31) + getBigIntHashCode(this.gy3_1) | 0;
143
- result = imul(result, 31) + getBigIntHashCode(this.hy3_1) | 0;
142
+ result = imul(result, 31) + getBigIntHashCode(this.xyc_1) | 0;
143
+ result = imul(result, 31) + getBigIntHashCode(this.yyc_1) | 0;
144
144
  }
145
145
  }
146
- result = imul(result, 31) + getBooleanHashCode(this.by3_1) | 0;
146
+ result = imul(result, 31) + getBooleanHashCode(this.syc_1) | 0;
147
147
  return result;
148
148
  };
149
149
  protoOf(Final_1).toString = function () {
150
150
  var tmp;
151
151
  if (this instanceof Final) {
152
- tmp = 'Counter.Bit32.Final[lo=' + this.yy2_1 + ', hi=' + this.zy2_1 + ']';
152
+ tmp = 'Counter.Bit32.Final[lo=' + this.pyc_1 + ', hi=' + this.qyc_1 + ']';
153
153
  } else {
154
154
  if (this instanceof Final_0) {
155
- tmp = 'Counter.Bit64.Final[lo=' + this.gy3_1.toString() + ', hi=' + this.hy3_1.toString() + ']';
155
+ tmp = 'Counter.Bit64.Final[lo=' + this.xyc_1.toString() + ', hi=' + this.yyc_1.toString() + ']';
156
156
  } else {
157
157
  noWhenBranchMatchedException();
158
158
  }
@@ -160,7 +160,7 @@ protoOf(Final_1).toString = function () {
160
160
  return tmp;
161
161
  };
162
162
  function Counter() {
163
- this.iy3_1 = new Object();
163
+ this.zyc_1 = new Object();
164
164
  }
165
165
  protoOf(Counter).equals = function (other) {
166
166
  var tmp;
@@ -172,15 +172,15 @@ protoOf(Counter).equals = function (other) {
172
172
  return tmp;
173
173
  };
174
174
  protoOf(Counter).hashCode = function () {
175
- return 527 + hashCode(this.iy3_1) | 0;
175
+ return 527 + hashCode(this.zyc_1) | 0;
176
176
  };
177
177
  protoOf(Counter).toString = function () {
178
178
  var tmp;
179
179
  if (this instanceof Bit32) {
180
- tmp = 'Bit32[lo=' + this.vy2_1 + ', hi=' + this.wy2_1 + ', incrementBy=' + this.uy2_1 + ']';
180
+ tmp = 'Bit32[lo=' + this.myc_1 + ', hi=' + this.nyc_1 + ', incrementBy=' + this.lyc_1 + ']';
181
181
  } else {
182
182
  if (this instanceof Bit64) {
183
- tmp = 'Bit64[lo=' + this.ly3_1.toString() + ', hi=' + this.my3_1.toString() + ', incrementBy=' + this.ky3_1.toString() + ']';
183
+ tmp = 'Bit64[lo=' + this.cyd_1.toString() + ', hi=' + this.dyd_1.toString() + ', incrementBy=' + this.byd_1.toString() + ']';
184
184
  } else {
185
185
  noWhenBranchMatchedException();
186
186
  }
@@ -23,7 +23,7 @@ function Little() {
23
23
  Little_instance = this;
24
24
  Endian.call(this);
25
25
  }
26
- protoOf(Little).ny3 = function (source, offset) {
26
+ protoOf(Little).eyd = function (source, offset) {
27
27
  // Inline function 'org.kotlincrypto.bitops.endian.internal.unpackLEInt' call
28
28
  var tmp0 = _B0___init__impl__6otxhp(source[offset]);
29
29
  var tmp2 = source[offset + 1 | 0];
@@ -32,7 +32,7 @@ protoOf(Little).ny3 = function (source, offset) {
32
32
  var b3 = source[offset + 3 | 0];
33
33
  return _B0___get_b0__impl__g161pk(tmp0) & 255 | (tmp2 & 255) << 8 | (tmp4 & 255) << 16 | b3 << 24;
34
34
  };
35
- protoOf(Little).oy3 = function (source, dest, destOffset) {
35
+ protoOf(Little).fyd = function (source, dest, destOffset) {
36
36
  // Inline function 'org.kotlincrypto.bitops.endian.internal.packLEInt' call
37
37
  dest[destOffset] = toByte(source);
38
38
  dest[destOffset + 1 | 0] = toByte(source >>> 8 | 0);
@@ -40,7 +40,7 @@ protoOf(Little).oy3 = function (source, dest, destOffset) {
40
40
  dest[destOffset + 3 | 0] = toByte(source >>> 24 | 0);
41
41
  return dest;
42
42
  };
43
- protoOf(Little).py3 = function (source, dest, destOffset, sourceIndexStart, sourceIndexEnd) {
43
+ protoOf(Little).gyd = function (source, dest, destOffset, sourceIndexStart, sourceIndexEnd) {
44
44
  // Inline function 'org.kotlincrypto.bitops.endian.internal.packArray' call
45
45
  var destPos = destOffset;
46
46
  var sourcePos = sourceIndexStart;
package/client.d.mts CHANGED
@@ -1,6 +1,10 @@
1
1
  // Generated by sdk/scripts/generate-js-facade.mjs. Do not edit.
2
2
  import type {
3
3
  AccountList,
4
+ AccountingEntriesResult,
5
+ AccountingOverviewResult,
6
+ AccountingPortfolioResult,
7
+ AccountingProjectResult,
4
8
  ActivateCompanyForTriplewinCommand,
5
9
  ActivateCompanyForTriplewinCommandProps,
6
10
  AdHocInvoiceGroup,
@@ -4573,6 +4577,56 @@ export interface SupplierApiFacade {
4573
4577
  }): Promise<SdkResult<void>>;
4574
4578
  }
4575
4579
 
4580
+ export interface AccountingQueryClientFacade {
4581
+ getAccountingOverview<F extends string | null | undefined = undefined>(params: {
4582
+ companyId: Id;
4583
+ periodStart: string;
4584
+ periodEnd: string;
4585
+ fields?: F;
4586
+ }): Promise<ProjectionResult<F, AccountingOverviewResult>>;
4587
+ getAccountingPortfolioOverview<F extends string | null | undefined = undefined>(params: {
4588
+ periodStart: string;
4589
+ periodEnd: string;
4590
+ companyIds?: Id[] | null | undefined;
4591
+ count?: number | null | undefined;
4592
+ pageToken?: string | null | undefined;
4593
+ fields?: F;
4594
+ }): Promise<ProjectionResult<F, AccountingPortfolioResult>>;
4595
+ getAccountingProject<F extends string | null | undefined = undefined>(params: {
4596
+ companyId: Id;
4597
+ projectId: Id;
4598
+ periodStart: string;
4599
+ periodEnd: string;
4600
+ fields?: F;
4601
+ }): Promise<ProjectionResult<F, AccountingProjectResult>>;
4602
+ listCompanyAccountingEntries<F extends string | null | undefined = undefined>(params: {
4603
+ companyId: Id;
4604
+ periodStart: string;
4605
+ periodEnd: string;
4606
+ accountNumbers?: number[] | null | undefined;
4607
+ projectIds?: Id[] | null | undefined;
4608
+ departmentIds?: Id[] | null | undefined;
4609
+ supplierIds?: Id[] | null | undefined;
4610
+ search?: string | null | undefined;
4611
+ count?: number | null | undefined;
4612
+ pageToken?: string | null | undefined;
4613
+ fields?: F;
4614
+ }): Promise<ProjectionResult<F, AccountingEntriesResult>>;
4615
+ listAccountingEntries<F extends string | null | undefined = undefined>(params: {
4616
+ periodStart: string;
4617
+ periodEnd: string;
4618
+ companyIds?: Id[] | null | undefined;
4619
+ accountNumbers?: number[] | null | undefined;
4620
+ projectIds?: Id[] | null | undefined;
4621
+ departmentIds?: Id[] | null | undefined;
4622
+ supplierIds?: Id[] | null | undefined;
4623
+ search?: string | null | undefined;
4624
+ count?: number | null | undefined;
4625
+ pageToken?: string | null | undefined;
4626
+ fields?: F;
4627
+ }): Promise<ProjectionResult<F, AccountingEntriesResult>>;
4628
+ }
4629
+
4576
4630
  export interface MarketingApiFacade {
4577
4631
  contactOkonomi(params: {
4578
4632
  companyId?: Id | null | undefined;
@@ -4959,6 +5013,7 @@ export interface SoliboClientApi {
4959
5013
  readonly parking: ParkingApiFacade;
4960
5014
  readonly scopedContacts: ScopedContactApiFacade;
4961
5015
  readonly supplier: SupplierApiFacade;
5016
+ readonly accounting: AccountingQueryClientFacade;
4962
5017
  readonly marketing: MarketingApiFacade;
4963
5018
  readonly expense: ExpenseApiFacade;
4964
5019
  readonly issue: IssueApiFacade;