@solibo/solibo-sdk 1.7.73 → 1.7.74
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/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +0 -1
- package/solibo-sdk-sdk.mjs +81 -34
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -72,8 +72,8 @@ import {
|
|
|
72
72
|
_ChannelResult___get_isClosed__impl__mg7kuu1g5u2zmbzbfb4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
73
73
|
close$default1evna6yun3t5h as close$default,
|
|
74
74
|
cancel$default1fq6eekptkf7a as cancel$default,
|
|
75
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
76
75
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
76
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
77
77
|
} from './kotlinx-coroutines-core.mjs';
|
|
78
78
|
import {
|
|
79
79
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -139,7 +139,7 @@ initMetadataForCompanion(Companion_3);
|
|
|
139
139
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
140
140
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
141
141
|
initMetadataForCompanion(Companion_4);
|
|
142
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
142
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
|
|
143
143
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
144
144
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
145
145
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
package/package.json
CHANGED
|
@@ -47,7 +47,6 @@ import {
|
|
|
47
47
|
isInterface3d6p8outrmvmk as isInterface,
|
|
48
48
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
49
49
|
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$,
|
|
50
|
-
ArrayList3it5z8td81qkl as ArrayList_BridgeFix,
|
|
51
50
|
lazy2hsh8ze7j6ikd as lazy_0,
|
|
52
51
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
53
52
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
package/solibo-sdk-sdk.mjs
CHANGED
|
@@ -2525,9 +2525,9 @@ function rewriteUploadUrl($this, url) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
function completeSignedUpload($this, headers, request, onUploadProgress, $completion) {
|
|
2527
2527
|
onUploadProgress = onUploadProgress === VOID ? null : onUploadProgress;
|
|
2528
|
-
var uploadUrl =
|
|
2529
|
-
var headUrl =
|
|
2530
|
-
var deleteUrl =
|
|
2528
|
+
var uploadUrl = requiredHeader_0(headers, 'Location');
|
|
2529
|
+
var headUrl = requiredHeader_0(headers, 'x-head-url');
|
|
2530
|
+
var deleteUrl = requiredHeader_0(headers, 'x-delete-url');
|
|
2531
2531
|
return completeSignedUpload_0($this, uploadUrl, headUrl, deleteUrl, request, onUploadProgress, $completion);
|
|
2532
2532
|
}
|
|
2533
2533
|
function completeSignedUpload_0($this, uploadUrl, headUrl, deleteUrl, request, onUploadProgress, $completion) {
|
|
@@ -2878,7 +2878,7 @@ protoOf($deleteDocumentCOROUTINE$).u9 = function () {
|
|
|
2878
2878
|
this.lux_1 = suspendResult;
|
|
2879
2879
|
if (!this.lux_1.success)
|
|
2880
2880
|
return this.lux_1;
|
|
2881
|
-
var cloudDeleteUrl =
|
|
2881
|
+
var cloudDeleteUrl = requiredHeader(this.lux_1.response, 'Location');
|
|
2882
2882
|
var tmp0 = this.gux_1.kut_1;
|
|
2883
2883
|
var urlString = rewriteUploadUrl(this.gux_1, cloudDeleteUrl);
|
|
2884
2884
|
var builder = new HttpRequestBuilder();
|
|
@@ -3395,9 +3395,9 @@ protoOf(DocumentsApi).createUploadHeaders = function (request) {
|
|
|
3395
3395
|
return mapOf([to('Content-Type', details.guv_1.toString()), to('Content-Disposition', details.huv_1), to('content-md5', contentMd5(details.euv_1)), to('x-content-length-upload', details.fuv_1.toString())]);
|
|
3396
3396
|
};
|
|
3397
3397
|
protoOf(DocumentsApi).buz = function (headers, request, onUploadProgress, $completion) {
|
|
3398
|
-
var uploadUrl =
|
|
3399
|
-
var headUrl =
|
|
3400
|
-
var deleteUrl =
|
|
3398
|
+
var uploadUrl = requiredHeader_1(headers, 'Location');
|
|
3399
|
+
var headUrl = requiredHeader_1(headers, 'x-head-url');
|
|
3400
|
+
var deleteUrl = requiredHeader_1(headers, 'x-delete-url');
|
|
3401
3401
|
return completeSignedUpload_0(this, uploadUrl, headUrl, deleteUrl, request, onUploadProgress, $completion);
|
|
3402
3402
|
};
|
|
3403
3403
|
protoOf(DocumentsApi).xuw = function (headers, request, onUploadProgress, $completion, $super) {
|
|
@@ -3512,53 +3512,100 @@ function createUploadProgressReporter(total, onUploadProgress) {
|
|
|
3512
3512
|
return createUploadProgressReporter$lambda(onUploadProgress, total, lastLoaded, lastTotal);
|
|
3513
3513
|
}
|
|
3514
3514
|
function requiredHeader(_this__u8e3s4, name) {
|
|
3515
|
-
var
|
|
3516
|
-
var tmp$ret$0;
|
|
3517
|
-
$l$block: {
|
|
3518
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3519
|
-
var _iterator__ex2g4s = tmp0.t();
|
|
3520
|
-
while (_iterator__ex2g4s.u()) {
|
|
3521
|
-
var element = _iterator__ex2g4s.v();
|
|
3522
|
-
// Inline function 'kotlin.collections.component1' call
|
|
3523
|
-
var key = element.m1();
|
|
3524
|
-
if (equals_0(key, name, true)) {
|
|
3525
|
-
tmp$ret$0 = element;
|
|
3526
|
-
break $l$block;
|
|
3527
|
-
}
|
|
3528
|
-
}
|
|
3529
|
-
tmp$ret$0 = null;
|
|
3530
|
-
}
|
|
3531
|
-
var tmp0_safe_receiver = tmp$ret$0;
|
|
3532
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1();
|
|
3533
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : firstOrNull(tmp1_safe_receiver);
|
|
3515
|
+
var tmp0_elvis_lhs = headerValueIgnoringCase(_this__u8e3s4.i46(), name);
|
|
3534
3516
|
var tmp;
|
|
3535
|
-
if (
|
|
3536
|
-
|
|
3517
|
+
if (tmp0_elvis_lhs == null) {
|
|
3518
|
+
throwMissingUploadHeader(_this__u8e3s4.i4c().g49_1, name);
|
|
3537
3519
|
} else {
|
|
3538
|
-
tmp =
|
|
3520
|
+
tmp = tmp0_elvis_lhs;
|
|
3539
3521
|
}
|
|
3540
3522
|
return tmp;
|
|
3541
3523
|
}
|
|
3542
3524
|
function requiredHeader_0(_this__u8e3s4, name) {
|
|
3543
|
-
var tmp0_elvis_lhs = _this__u8e3s4
|
|
3525
|
+
var tmp0_elvis_lhs = headerValueIgnoringCase(_this__u8e3s4, name);
|
|
3544
3526
|
var tmp;
|
|
3545
3527
|
if (tmp0_elvis_lhs == null) {
|
|
3546
|
-
|
|
3528
|
+
throwMissingUploadHeader(500, name);
|
|
3547
3529
|
} else {
|
|
3548
3530
|
tmp = tmp0_elvis_lhs;
|
|
3549
3531
|
}
|
|
3550
3532
|
return tmp;
|
|
3551
3533
|
}
|
|
3552
3534
|
function requiredHeader_1(_this__u8e3s4, name) {
|
|
3535
|
+
var tmp0_elvis_lhs = headerValueIgnoringCase_0(_this__u8e3s4, name);
|
|
3536
|
+
var tmp;
|
|
3537
|
+
if (tmp0_elvis_lhs == null) {
|
|
3538
|
+
throwMissingUploadHeader(500, name);
|
|
3539
|
+
} else {
|
|
3540
|
+
tmp = tmp0_elvis_lhs;
|
|
3541
|
+
}
|
|
3542
|
+
return tmp;
|
|
3543
|
+
}
|
|
3544
|
+
function headerValueIgnoringCase(_this__u8e3s4, name) {
|
|
3553
3545
|
var tmp0_elvis_lhs = _this__u8e3s4.ee(name);
|
|
3554
3546
|
var tmp;
|
|
3555
3547
|
if (tmp0_elvis_lhs == null) {
|
|
3556
|
-
|
|
3548
|
+
var tmp0 = _this__u8e3s4.e3s();
|
|
3549
|
+
var tmp$ret$0;
|
|
3550
|
+
$l$block: {
|
|
3551
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3552
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
3553
|
+
while (_iterator__ex2g4s.u()) {
|
|
3554
|
+
var element = _iterator__ex2g4s.v();
|
|
3555
|
+
if (equals_0(element, name, true)) {
|
|
3556
|
+
tmp$ret$0 = element;
|
|
3557
|
+
break $l$block;
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
tmp$ret$0 = null;
|
|
3561
|
+
}
|
|
3562
|
+
var tmp1_safe_receiver = tmp$ret$0;
|
|
3563
|
+
var tmp_0;
|
|
3564
|
+
if (tmp1_safe_receiver == null) {
|
|
3565
|
+
tmp_0 = null;
|
|
3566
|
+
} else {
|
|
3567
|
+
// Inline function 'kotlin.let' call
|
|
3568
|
+
tmp_0 = _this__u8e3s4.ee(tmp1_safe_receiver);
|
|
3569
|
+
}
|
|
3570
|
+
tmp = tmp_0;
|
|
3557
3571
|
} else {
|
|
3558
3572
|
tmp = tmp0_elvis_lhs;
|
|
3559
3573
|
}
|
|
3560
3574
|
return tmp;
|
|
3561
3575
|
}
|
|
3576
|
+
function headerValueIgnoringCase_0(_this__u8e3s4, name) {
|
|
3577
|
+
var tmp0 = _this__u8e3s4.l1();
|
|
3578
|
+
var tmp$ret$0;
|
|
3579
|
+
$l$block: {
|
|
3580
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3581
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
3582
|
+
while (_iterator__ex2g4s.u()) {
|
|
3583
|
+
var element = _iterator__ex2g4s.v();
|
|
3584
|
+
// Inline function 'kotlin.collections.component1' call
|
|
3585
|
+
var key = element.m1();
|
|
3586
|
+
// Inline function 'kotlin.collections.component2' call
|
|
3587
|
+
var values = element.n1();
|
|
3588
|
+
var tmp;
|
|
3589
|
+
if (equals_0(key, name, true)) {
|
|
3590
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3591
|
+
tmp = !values.r();
|
|
3592
|
+
} else {
|
|
3593
|
+
tmp = false;
|
|
3594
|
+
}
|
|
3595
|
+
if (tmp) {
|
|
3596
|
+
tmp$ret$0 = element;
|
|
3597
|
+
break $l$block;
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
tmp$ret$0 = null;
|
|
3601
|
+
}
|
|
3602
|
+
var tmp0_safe_receiver = tmp$ret$0;
|
|
3603
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1();
|
|
3604
|
+
return tmp1_safe_receiver == null ? null : firstOrNull(tmp1_safe_receiver);
|
|
3605
|
+
}
|
|
3606
|
+
function throwMissingUploadHeader(statusCode, name) {
|
|
3607
|
+
throw documentSdkError(statusCode, 'document_upload_missing_header', 'Missing required document upload response header: ' + name, name, 'required');
|
|
3608
|
+
}
|
|
3562
3609
|
function documentSdkError(statusCode, error, message, property, rule, value) {
|
|
3563
3610
|
property = property === VOID ? null : property;
|
|
3564
3611
|
rule = rule === VOID ? null : rule;
|
|
@@ -6085,8 +6132,8 @@ function HomeApi$clientConfigurator$lambda$lambda_10(this$0, $platformName) {
|
|
|
6085
6132
|
}
|
|
6086
6133
|
accept($this$defaultRequest, Application_getInstance().p3y_1);
|
|
6087
6134
|
header($this$defaultRequest, 'Accept-Language', buildAcceptLanguage(this$0.userLanguage));
|
|
6088
|
-
header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.7.
|
|
6089
|
-
header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.7.
|
|
6135
|
+
header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.7.74 (' + $platformName + ')');
|
|
6136
|
+
header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.7.74');
|
|
6090
6137
|
return Unit_instance;
|
|
6091
6138
|
};
|
|
6092
6139
|
}
|