@doordeck/doordeck-headless-sdk 0.190.0 → 0.193.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.
- package/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +10137 -10173
- package/kotlin/kotlin-kotlin-stdlib.js +375 -377
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +1942 -1942
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1902 -1902
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1454 -1454
- package/kotlin/ktor-ktor-client-auth.js +258 -258
- package/kotlin/ktor-ktor-client-content-negotiation.js +158 -158
- package/kotlin/ktor-ktor-client-core.js +1995 -1995
- package/kotlin/ktor-ktor-client-logging.js +649 -649
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +370 -370
- package/kotlin/ktor-ktor-http.js +782 -782
- package/kotlin/ktor-ktor-io.js +651 -651
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +153 -153
- package/kotlin/ktor-ktor-serialization.js +72 -72
- package/kotlin/ktor-ktor-utils.js +741 -741
- package/kotlin/ktor-ktor-websockets.js +52 -52
- package/package.json +3 -4
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +0 -329
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var plus = kotlin_kotlin.$_$.
|
|
7
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.vb;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ya;
|
|
6
|
+
var plus = kotlin_kotlin.$_$.o7;
|
|
7
|
+
var toMutableSet = kotlin_kotlin.$_$.k8;
|
|
8
8
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
9
9
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
10
10
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
13
|
var VOID = kotlin_kotlin.$_$.b;
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.mf;
|
|
15
15
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
17
|
-
var toString = kotlin_kotlin.$_$.
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.ha;
|
|
17
|
+
var toString = kotlin_kotlin.$_$.yb;
|
|
18
18
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
19
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
19
|
+
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.tf;
|
|
21
21
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
22
22
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
23
23
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
24
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
24
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
25
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.db;
|
|
26
26
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
27
27
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
28
28
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
29
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var isInterface = kotlin_kotlin.$_$.nb;
|
|
30
30
|
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
31
31
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
32
32
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
33
|
-
var Collection = kotlin_kotlin.$_$.
|
|
33
|
+
var Collection = kotlin_kotlin.$_$.b5;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
35
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
35
|
+
var emptyList = kotlin_kotlin.$_$.o6;
|
|
36
36
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
37
37
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.lc;
|
|
40
40
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
41
41
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
42
|
-
var Unit = kotlin_kotlin.$_$.
|
|
42
|
+
var Unit = kotlin_kotlin.$_$.eg;
|
|
43
43
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
44
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
44
|
+
var ensureNotNull = kotlin_kotlin.$_$.lg;
|
|
45
45
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
46
|
-
var equals = kotlin_kotlin.$_$.
|
|
47
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
49
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
46
|
+
var equals = kotlin_kotlin.$_$.qa;
|
|
47
|
+
var joinToString = kotlin_kotlin.$_$.d7;
|
|
48
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ab;
|
|
49
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
|
|
50
50
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
51
51
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
52
52
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
53
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
53
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
|
|
54
54
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
55
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
55
|
+
var getKClass = kotlin_kotlin.$_$.mc;
|
|
56
56
|
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
57
57
|
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
58
|
-
var setOf = kotlin_kotlin.$_$.
|
|
59
|
-
var KtList = kotlin_kotlin.$_$.
|
|
58
|
+
var setOf = kotlin_kotlin.$_$.w7;
|
|
59
|
+
var KtList = kotlin_kotlin.$_$.g5;
|
|
60
60
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.y;
|
|
61
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
62
|
-
var createKType = kotlin_kotlin.$_$.
|
|
63
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
61
|
+
var arrayOf = kotlin_kotlin.$_$.hg;
|
|
62
|
+
var createKType = kotlin_kotlin.$_$.kc;
|
|
63
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.ic;
|
|
64
64
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
65
65
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
66
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
67
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
66
|
+
var endsWith = kotlin_kotlin.$_$.ed;
|
|
67
|
+
var initMetadataForObject = kotlin_kotlin.$_$.eb;
|
|
68
68
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
69
69
|
//endregion
|
|
70
70
|
//region block: pre-declaration
|
|
@@ -99,35 +99,35 @@
|
|
|
99
99
|
}
|
|
100
100
|
var ContentNegotiation;
|
|
101
101
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
102
|
+
this.d59_1 = converter;
|
|
103
|
+
this.e59_1 = contentTypeToSend;
|
|
104
|
+
this.f59_1 = contentTypeMatcher;
|
|
105
105
|
}
|
|
106
106
|
function defaultMatcher($this, pattern) {
|
|
107
107
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
108
108
|
}
|
|
109
109
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
110
|
-
this.
|
|
110
|
+
this.g59_1 = $pattern;
|
|
111
111
|
}
|
|
112
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
113
|
-
return contentType.
|
|
112
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).h59 = function (contentType) {
|
|
113
|
+
return contentType.z2r(this.g59_1);
|
|
114
114
|
};
|
|
115
115
|
function ContentNegotiationConfig() {
|
|
116
|
-
this.
|
|
116
|
+
this.i59_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
117
117
|
var tmp = this;
|
|
118
118
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
119
|
-
tmp.
|
|
120
|
-
this.
|
|
119
|
+
tmp.j59_1 = ArrayList_init_$Create$();
|
|
120
|
+
this.k59_1 = null;
|
|
121
121
|
}
|
|
122
|
-
protoOf(ContentNegotiationConfig).
|
|
123
|
-
var matcher = contentType.
|
|
124
|
-
this.
|
|
122
|
+
protoOf(ContentNegotiationConfig).g3a = function (contentType, converter, configuration) {
|
|
123
|
+
var matcher = contentType.z2r(Application_getInstance().f2q_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
124
|
+
this.l59(contentType, converter, matcher, configuration);
|
|
125
125
|
};
|
|
126
|
-
protoOf(ContentNegotiationConfig).
|
|
126
|
+
protoOf(ContentNegotiationConfig).l59 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
127
127
|
// Inline function 'kotlin.apply' call
|
|
128
128
|
configuration(converter);
|
|
129
129
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
130
|
-
this.
|
|
130
|
+
this.j59_1.j1(registration);
|
|
131
131
|
};
|
|
132
132
|
function ContentConverterException(message) {
|
|
133
133
|
Exception_init_$Init$(message, this);
|
|
@@ -142,15 +142,15 @@
|
|
|
142
142
|
}
|
|
143
143
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
144
144
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
145
|
-
var registrations = $this$createClientPlugin.
|
|
146
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
147
|
-
$this$createClientPlugin.
|
|
148
|
-
$this$createClientPlugin.
|
|
145
|
+
var registrations = $this$createClientPlugin.i3m_1.j59_1;
|
|
146
|
+
var ignoredTypes = $this$createClientPlugin.i3m_1.i59_1;
|
|
147
|
+
$this$createClientPlugin.c47(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
148
|
+
$this$createClientPlugin.o3v(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
149
149
|
return Unit_instance;
|
|
150
150
|
}
|
|
151
151
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
152
152
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
153
|
-
return toString(it.
|
|
153
|
+
return toString(it.d59_1);
|
|
154
154
|
}
|
|
155
155
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
156
156
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
@@ -159,29 +159,29 @@
|
|
|
159
159
|
return tmp.i9();
|
|
160
160
|
}
|
|
161
161
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
162
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
162
|
+
charset = charset === VOID ? Charsets_getInstance().y1u_1 : charset;
|
|
163
163
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
164
164
|
tmp.c9_1 = Unit_instance;
|
|
165
165
|
tmp.d9_1 = null;
|
|
166
166
|
return tmp.i9();
|
|
167
167
|
}
|
|
168
168
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
169
|
+
this.d5b_1 = $registrations;
|
|
170
|
+
this.e5b_1 = $this_createClientPlugin;
|
|
171
|
+
this.f5b_1 = $ignoredTypes;
|
|
172
172
|
CoroutineImpl.call(this, resultContinuation);
|
|
173
173
|
}
|
|
174
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
175
|
-
var tmp = this.
|
|
174
|
+
protoOf(ContentNegotiation$lambda$slambda).k5b = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
175
|
+
var tmp = this.l5b($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
176
176
|
tmp.c9_1 = Unit_instance;
|
|
177
177
|
tmp.d9_1 = null;
|
|
178
178
|
return tmp.i9();
|
|
179
179
|
};
|
|
180
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
180
|
+
protoOf(ContentNegotiation$lambda$slambda).t3w = function (p1, p2, p3, p4, $completion) {
|
|
181
181
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
182
182
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
183
183
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
184
|
-
return this.
|
|
184
|
+
return this.k5b(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
185
185
|
};
|
|
186
186
|
protoOf(ContentNegotiation$lambda$slambda).i9 = function () {
|
|
187
187
|
var suspendResult = this.c9_1;
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
case 0:
|
|
193
193
|
this.b9_1 = 2;
|
|
194
194
|
this.a9_1 = 1;
|
|
195
|
-
suspendResult = invoke$convertRequest(this.
|
|
195
|
+
suspendResult = invoke$convertRequest(this.d5b_1, this.e5b_1, this.f5b_1, this.h5b_1, this.i5b_1, this);
|
|
196
196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
197
197
|
return suspendResult;
|
|
198
198
|
}
|
|
@@ -214,39 +214,39 @@
|
|
|
214
214
|
}
|
|
215
215
|
while (true);
|
|
216
216
|
};
|
|
217
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
218
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
219
|
-
i.
|
|
220
|
-
i.
|
|
221
|
-
i.
|
|
222
|
-
i.
|
|
217
|
+
protoOf(ContentNegotiation$lambda$slambda).l5b = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
218
|
+
var i = new ContentNegotiation$lambda$slambda(this.d5b_1, this.e5b_1, this.f5b_1, completion);
|
|
219
|
+
i.g5b_1 = $this$transformRequestBody;
|
|
220
|
+
i.h5b_1 = request;
|
|
221
|
+
i.i5b_1 = body;
|
|
222
|
+
i.j5b_1 = _unused_var__etf5q3;
|
|
223
223
|
return i;
|
|
224
224
|
};
|
|
225
225
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
226
226
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
227
227
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
228
|
-
return i.
|
|
228
|
+
return i.k5b($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
229
229
|
};
|
|
230
230
|
l.$arity = 4;
|
|
231
231
|
return l;
|
|
232
232
|
}
|
|
233
233
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
234
|
+
this.u5b_1 = $ignoredTypes;
|
|
235
|
+
this.v5b_1 = $registrations;
|
|
236
|
+
this.w5b_1 = $this_createClientPlugin;
|
|
237
237
|
CoroutineImpl.call(this, resultContinuation);
|
|
238
238
|
}
|
|
239
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
240
|
-
var tmp = this.
|
|
239
|
+
protoOf(ContentNegotiation$lambda$slambda_1).r3w = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
240
|
+
var tmp = this.s3w($this$transformResponseBody, response, body, info, $completion);
|
|
241
241
|
tmp.c9_1 = Unit_instance;
|
|
242
242
|
tmp.d9_1 = null;
|
|
243
243
|
return tmp.i9();
|
|
244
244
|
};
|
|
245
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
245
|
+
protoOf(ContentNegotiation$lambda$slambda_1).t3w = function (p1, p2, p3, p4, $completion) {
|
|
246
246
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
247
247
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
248
248
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
249
|
-
return this.
|
|
249
|
+
return this.r3w(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
250
250
|
};
|
|
251
251
|
protoOf(ContentNegotiation$lambda$slambda_1).i9 = function () {
|
|
252
252
|
var suspendResult = this.c9_1;
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
switch (tmp) {
|
|
257
257
|
case 0:
|
|
258
258
|
this.b9_1 = 2;
|
|
259
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
259
|
+
var tmp0_elvis_lhs = contentType(this.y5b_1);
|
|
260
260
|
var tmp_0;
|
|
261
261
|
if (tmp0_elvis_lhs == null) {
|
|
262
262
|
return null;
|
|
@@ -265,9 +265,9 @@
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
var contentType_0 = tmp_0;
|
|
268
|
-
var charset = suitableCharset(get_request(this.
|
|
268
|
+
var charset = suitableCharset(get_request(this.y5b_1).j2w());
|
|
269
269
|
this.a9_1 = 1;
|
|
270
|
-
suspendResult = invoke$convertResponse(this.
|
|
270
|
+
suspendResult = invoke$convertResponse(this.u5b_1, this.v5b_1, this.w5b_1, get_request(this.y5b_1).w3f(), this.a5c_1, this.z5b_1, contentType_0, charset, this);
|
|
271
271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
272
272
|
return suspendResult;
|
|
273
273
|
}
|
|
@@ -289,29 +289,29 @@
|
|
|
289
289
|
}
|
|
290
290
|
while (true);
|
|
291
291
|
};
|
|
292
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
293
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
294
|
-
i.
|
|
295
|
-
i.
|
|
296
|
-
i.
|
|
297
|
-
i.
|
|
292
|
+
protoOf(ContentNegotiation$lambda$slambda_1).s3w = function ($this$transformResponseBody, response, body, info, completion) {
|
|
293
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.u5b_1, this.v5b_1, this.w5b_1, completion);
|
|
294
|
+
i.x5b_1 = $this$transformResponseBody;
|
|
295
|
+
i.y5b_1 = response;
|
|
296
|
+
i.z5b_1 = body;
|
|
297
|
+
i.a5c_1 = info;
|
|
298
298
|
return i;
|
|
299
299
|
};
|
|
300
300
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
301
301
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
302
302
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
303
|
-
return i.
|
|
303
|
+
return i.r3w($this$transformResponseBody, response, body, info, $completion);
|
|
304
304
|
};
|
|
305
305
|
l.$arity = 4;
|
|
306
306
|
return l;
|
|
307
307
|
}
|
|
308
308
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
309
309
|
CoroutineImpl.call(this, resultContinuation);
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
310
|
+
this.u59_1 = registrations;
|
|
311
|
+
this.v59_1 = $this_createClientPlugin;
|
|
312
|
+
this.w59_1 = ignoredTypes;
|
|
313
|
+
this.x59_1 = request;
|
|
314
|
+
this.y59_1 = body;
|
|
315
315
|
}
|
|
316
316
|
protoOf($invoke$convertRequestCOROUTINE$).i9 = function () {
|
|
317
317
|
var suspendResult = this.c9_1;
|
|
@@ -322,9 +322,9 @@
|
|
|
322
322
|
case 0:
|
|
323
323
|
this.b9_1 = 7;
|
|
324
324
|
var tmp_0;
|
|
325
|
-
if (this.
|
|
326
|
-
var excluded = this.
|
|
327
|
-
var tmp0 = this.
|
|
325
|
+
if (this.x59_1.k3e_1.v2g(get_ExcludedContentTypes())) {
|
|
326
|
+
var excluded = this.x59_1.k3e_1.t2g(get_ExcludedContentTypes());
|
|
327
|
+
var tmp0 = this.u59_1;
|
|
328
328
|
var destination = ArrayList_init_$Create$();
|
|
329
329
|
var _iterator__ex2g4s = tmp0.t();
|
|
330
330
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
var _iterator__ex2g4s_0 = excluded.t();
|
|
345
345
|
while (_iterator__ex2g4s_0.u()) {
|
|
346
346
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
347
|
-
if (element.
|
|
347
|
+
if (element.e59_1.z2r(element_0)) {
|
|
348
348
|
tmp$ret$0 = false;
|
|
349
349
|
break l$ret$1;
|
|
350
350
|
}
|
|
@@ -358,11 +358,11 @@
|
|
|
358
358
|
}
|
|
359
359
|
tmp_0 = destination;
|
|
360
360
|
} else {
|
|
361
|
-
tmp_0 = this.
|
|
361
|
+
tmp_0 = this.u59_1;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
var requestRegistrations = tmp_0;
|
|
365
|
-
var tmp0_elvis_lhs = this.
|
|
365
|
+
var tmp0_elvis_lhs = this.x59_1.h3e_1.x2k(HttpHeaders_getInstance().f2s_1);
|
|
366
366
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
367
367
|
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
368
368
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
383
383
|
while (_iterator__ex2g4s_2.u()) {
|
|
384
384
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
385
|
-
if (Companion_getInstance().ol(element_2).
|
|
385
|
+
if (Companion_getInstance().ol(element_2).z2r(element_1.e59_1)) {
|
|
386
386
|
tmp$ret$2 = false;
|
|
387
387
|
break l$ret$3;
|
|
388
388
|
}
|
|
@@ -391,19 +391,19 @@
|
|
|
391
391
|
}
|
|
392
392
|
while (false);
|
|
393
393
|
if (tmp$ret$2) {
|
|
394
|
-
var qValue = this.
|
|
395
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
396
|
-
get_LOGGER().
|
|
397
|
-
accept(this.
|
|
394
|
+
var qValue = this.v59_1.i3m_1.k59_1;
|
|
395
|
+
var contentTypeToSend = qValue == null ? element_1.e59_1 : element_1.e59_1.x2r('q', qValue.toString());
|
|
396
|
+
get_LOGGER().n2p('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.x59_1.f3e_1.toString());
|
|
397
|
+
accept(this.x59_1, contentTypeToSend);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
var tmp_3;
|
|
402
|
-
var tmp_4 = this.
|
|
402
|
+
var tmp_4 = this.y59_1;
|
|
403
403
|
if (tmp_4 instanceof OutgoingContent) {
|
|
404
404
|
tmp_3 = true;
|
|
405
405
|
} else {
|
|
406
|
-
var tmp0_0 = this.
|
|
406
|
+
var tmp0_0 = this.w59_1;
|
|
407
407
|
var tmp$ret$4;
|
|
408
408
|
l$ret$5: do {
|
|
409
409
|
var tmp_5;
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
420
420
|
while (_iterator__ex2g4s_3.u()) {
|
|
421
421
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
422
|
-
if (element_3.bb(this.
|
|
422
|
+
if (element_3.bb(this.y59_1)) {
|
|
423
423
|
tmp$ret$4 = true;
|
|
424
424
|
break l$ret$5;
|
|
425
425
|
}
|
|
@@ -431,36 +431,36 @@
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
if (tmp_3) {
|
|
434
|
-
get_LOGGER().
|
|
434
|
+
get_LOGGER().n2p('Body type ' + toString(getKClassFromExpression(this.y59_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x59_1.f3e_1.toString() + '.'));
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
var tmp_6 = this;
|
|
439
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
439
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.x59_1);
|
|
440
440
|
var tmp_7;
|
|
441
441
|
if (tmp0_elvis_lhs_0 == null) {
|
|
442
|
-
this.
|
|
443
|
-
get_LOGGER().
|
|
442
|
+
this.v59_1;
|
|
443
|
+
get_LOGGER().n2p("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.x59_1.f3e_1.toString() + '.');
|
|
444
444
|
return null;
|
|
445
445
|
} else {
|
|
446
446
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
tmp_6.
|
|
450
|
-
var tmp_8 = this.
|
|
449
|
+
tmp_6.a5a_1 = tmp_7;
|
|
450
|
+
var tmp_8 = this.y59_1;
|
|
451
451
|
if (tmp_8 instanceof Unit) {
|
|
452
|
-
get_LOGGER().
|
|
453
|
-
this.
|
|
452
|
+
get_LOGGER().n2p('Sending empty body for ' + this.x59_1.f3e_1.toString());
|
|
453
|
+
this.x59_1.h3e_1.h2l(HttpHeaders_getInstance().x2s_1);
|
|
454
454
|
return EmptyContent_getInstance();
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
var tmp_9 = this;
|
|
458
|
-
var tmp0_1 = this.
|
|
458
|
+
var tmp0_1 = this.u59_1;
|
|
459
459
|
var destination_0 = ArrayList_init_$Create$();
|
|
460
460
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
461
461
|
while (_iterator__ex2g4s_4.u()) {
|
|
462
462
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
463
|
-
if (element_4.
|
|
463
|
+
if (element_4.f59_1.h59(this.a5a_1)) {
|
|
464
464
|
destination_0.j1(element_4);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
@@ -475,40 +475,40 @@
|
|
|
475
475
|
var tmp1_elvis_lhs = tmp_10;
|
|
476
476
|
var tmp_11;
|
|
477
477
|
if (tmp1_elvis_lhs == null) {
|
|
478
|
-
this.
|
|
479
|
-
get_LOGGER().
|
|
478
|
+
this.v59_1;
|
|
479
|
+
get_LOGGER().n2p('None of the registered converters match request Content-Type=' + this.a5a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.x59_1.f3e_1.toString() + '.'));
|
|
480
480
|
return null;
|
|
481
481
|
} else {
|
|
482
482
|
tmp_11 = tmp1_elvis_lhs;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
tmp_9.
|
|
486
|
-
if (this.
|
|
487
|
-
get_LOGGER().
|
|
485
|
+
tmp_9.z59_1 = tmp_11;
|
|
486
|
+
if (this.x59_1.k49() == null) {
|
|
487
|
+
get_LOGGER().n2p('Request has unknown body type. Skipping ContentNegotiation for ' + this.x59_1.f3e_1.toString() + '.');
|
|
488
488
|
return null;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
491
|
+
this.x59_1.h3e_1.h2l(HttpHeaders_getInstance().x2s_1);
|
|
492
|
+
this.e5a_1 = this.z59_1;
|
|
493
493
|
this.a9_1 = 1;
|
|
494
494
|
continue $sm;
|
|
495
495
|
case 1:
|
|
496
|
-
this.
|
|
496
|
+
this.d5a_1 = this.e5a_1.t();
|
|
497
497
|
this.a9_1 = 2;
|
|
498
498
|
continue $sm;
|
|
499
499
|
case 2:
|
|
500
|
-
if (!this.
|
|
500
|
+
if (!this.d5a_1.u()) {
|
|
501
501
|
this.a9_1 = 5;
|
|
502
502
|
continue $sm;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
var element_5 = this.
|
|
506
|
-
this.
|
|
505
|
+
var element_5 = this.d5a_1.v();
|
|
506
|
+
this.c5a_1 = element_5;
|
|
507
507
|
this.a9_1 = 3;
|
|
508
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
509
|
-
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
510
|
-
var tmp_13 = ensureNotNull(this.
|
|
511
|
-
var this_0 = this.
|
|
508
|
+
var tmp0_elvis_lhs_1 = charset(this.a5a_1);
|
|
509
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().y1u_1 : tmp0_elvis_lhs_1;
|
|
510
|
+
var tmp_13 = ensureNotNull(this.x59_1.k49());
|
|
511
|
+
var this_0 = this.y59_1;
|
|
512
512
|
var tmp_14;
|
|
513
513
|
if (!equals(this_0, NullBody_instance)) {
|
|
514
514
|
tmp_14 = this_0;
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
tmp_14 = null;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
suspendResult = this.
|
|
519
|
+
suspendResult = this.c5a_1.d59_1.b5c(this.a5a_1, tmp_12, tmp_13, tmp_14, this);
|
|
520
520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
521
521
|
return suspendResult;
|
|
522
522
|
}
|
|
@@ -525,12 +525,12 @@
|
|
|
525
525
|
case 3:
|
|
526
526
|
var result = suspendResult;
|
|
527
527
|
if (!(result == null)) {
|
|
528
|
-
get_LOGGER().
|
|
528
|
+
get_LOGGER().n2p('Converted request body using ' + toString(this.c5a_1.d59_1) + ' for ' + this.x59_1.f3e_1.toString());
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
var result_0 = result;
|
|
532
532
|
if (!(result_0 == null)) {
|
|
533
|
-
this.
|
|
533
|
+
this.b5a_1 = result_0;
|
|
534
534
|
this.a9_1 = 6;
|
|
535
535
|
continue $sm;
|
|
536
536
|
} else {
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
this.a9_1 = 2;
|
|
543
543
|
continue $sm;
|
|
544
544
|
case 5:
|
|
545
|
-
this.
|
|
545
|
+
this.b5a_1 = null;
|
|
546
546
|
if (false) {
|
|
547
547
|
this.a9_1 = 1;
|
|
548
548
|
continue $sm;
|
|
@@ -551,11 +551,11 @@
|
|
|
551
551
|
this.a9_1 = 6;
|
|
552
552
|
continue $sm;
|
|
553
553
|
case 6:
|
|
554
|
-
var tmp2_elvis_lhs = this.
|
|
554
|
+
var tmp2_elvis_lhs = this.b5a_1;
|
|
555
555
|
var tmp_15;
|
|
556
556
|
if (tmp2_elvis_lhs == null) {
|
|
557
|
-
var tmp_16 = "Can't convert " + toString(this.
|
|
558
|
-
throw new ContentConverterException(tmp_16 + joinToString(this.
|
|
557
|
+
var tmp_16 = "Can't convert " + toString(this.y59_1) + ' with contentType ' + this.a5a_1.toString() + ' using converters ';
|
|
558
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.z59_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
559
559
|
} else {
|
|
560
560
|
tmp_15 = tmp2_elvis_lhs;
|
|
561
561
|
}
|
|
@@ -578,14 +578,14 @@
|
|
|
578
578
|
};
|
|
579
579
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
580
580
|
CoroutineImpl.call(this, resultContinuation);
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
581
|
+
this.n5a_1 = ignoredTypes;
|
|
582
|
+
this.o5a_1 = registrations;
|
|
583
|
+
this.p5a_1 = $this_createClientPlugin;
|
|
584
|
+
this.q5a_1 = requestUrl;
|
|
585
|
+
this.r5a_1 = info;
|
|
586
|
+
this.s5a_1 = body;
|
|
587
|
+
this.t5a_1 = responseContentType;
|
|
588
|
+
this.u5a_1 = charset;
|
|
589
589
|
}
|
|
590
590
|
protoOf($invoke$convertResponseCOROUTINE$).i9 = function () {
|
|
591
591
|
var suspendResult = this.c9_1;
|
|
@@ -595,23 +595,23 @@
|
|
|
595
595
|
switch (tmp) {
|
|
596
596
|
case 0:
|
|
597
597
|
this.b9_1 = 2;
|
|
598
|
-
var tmp_0 = this.
|
|
598
|
+
var tmp_0 = this.s5a_1;
|
|
599
599
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
600
|
-
get_LOGGER().
|
|
600
|
+
get_LOGGER().n2p('Response body is already transformed. Skipping ContentNegotiation for ' + this.q5a_1.toString() + '.');
|
|
601
601
|
return null;
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
if (this.
|
|
605
|
-
get_LOGGER().
|
|
604
|
+
if (this.n5a_1.m2(this.r5a_1.w2o_1)) {
|
|
605
|
+
get_LOGGER().n2p('Response body type ' + toString(this.r5a_1.w2o_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.q5a_1.toString() + '.'));
|
|
606
606
|
return null;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
var tmp0 = this.
|
|
609
|
+
var tmp0 = this.o5a_1;
|
|
610
610
|
var destination = ArrayList_init_$Create$();
|
|
611
611
|
var _iterator__ex2g4s = tmp0.t();
|
|
612
612
|
while (_iterator__ex2g4s.u()) {
|
|
613
613
|
var element = _iterator__ex2g4s.v();
|
|
614
|
-
if (element.
|
|
614
|
+
if (element.f59_1.h59(this.t5a_1)) {
|
|
615
615
|
destination.j1(element);
|
|
616
616
|
}
|
|
617
617
|
}
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
var _iterator__ex2g4s_0 = destination.t();
|
|
621
621
|
while (_iterator__ex2g4s_0.u()) {
|
|
622
622
|
var item = _iterator__ex2g4s_0.v();
|
|
623
|
-
destination_0.j1(item.
|
|
623
|
+
destination_0.j1(item.d59_1);
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
var tmp_1;
|
|
@@ -633,8 +633,8 @@
|
|
|
633
633
|
var tmp0_elvis_lhs = tmp_1;
|
|
634
634
|
var tmp_2;
|
|
635
635
|
if (tmp0_elvis_lhs == null) {
|
|
636
|
-
this.
|
|
637
|
-
get_LOGGER().
|
|
636
|
+
this.p5a_1;
|
|
637
|
+
get_LOGGER().n2p('None of the registered converters match response with Content-Type=' + this.t5a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.q5a_1.toString() + '.'));
|
|
638
638
|
return null;
|
|
639
639
|
} else {
|
|
640
640
|
tmp_2 = tmp0_elvis_lhs;
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
|
|
643
643
|
var suitableConverters = tmp_2;
|
|
644
644
|
this.a9_1 = 1;
|
|
645
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
645
|
+
suspendResult = deserialize(suitableConverters, this.s5a_1, this.r5a_1, this.u5a_1, this);
|
|
646
646
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
647
647
|
return suspendResult;
|
|
648
648
|
}
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
case 1:
|
|
652
652
|
var result = suspendResult;
|
|
653
653
|
if (!isInterface(result, ByteReadChannel)) {
|
|
654
|
-
get_LOGGER().
|
|
654
|
+
get_LOGGER().n2p('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.q5a_1.toString() + '.');
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
return result;
|
|
@@ -702,12 +702,12 @@
|
|
|
702
702
|
}
|
|
703
703
|
function JsonContentTypeMatcher() {
|
|
704
704
|
}
|
|
705
|
-
protoOf(JsonContentTypeMatcher).
|
|
706
|
-
if (contentType.
|
|
705
|
+
protoOf(JsonContentTypeMatcher).h59 = function (contentType) {
|
|
706
|
+
if (contentType.z2r(Application_getInstance().f2q_1)) {
|
|
707
707
|
return true;
|
|
708
708
|
}
|
|
709
|
-
var value = contentType.
|
|
710
|
-
return Application_getInstance().
|
|
709
|
+
var value = contentType.y2r().toString();
|
|
710
|
+
return Application_getInstance().z2q(value) && endsWith(value, '+json', true);
|
|
711
711
|
};
|
|
712
712
|
var JsonContentTypeMatcher_instance;
|
|
713
713
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
//region block: post-declaration
|
|
730
|
-
protoOf(ContentNegotiationConfig).
|
|
730
|
+
protoOf(ContentNegotiationConfig).h3a = register$default;
|
|
731
731
|
//endregion
|
|
732
732
|
//region block: init
|
|
733
733
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|