@solibo/home-api 1.1.0 → 1.1.1
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-DateTime-library-kotlinx-datetime.js +742 -742
- package/kotlin-kotlin-stdlib.js +3032 -1782
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +14 -14
- package/kotlinx-coroutines-core.js +1893 -1893
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +35 -35
- package/kotlinx-io-kotlinx-io-core.js +457 -457
- package/kotlinx-serialization-kotlinx-serialization-core.js +1798 -1798
- package/kotlinx-serialization-kotlinx-serialization-json.js +1409 -1409
- package/ktor-ktor-client-content-negotiation.js +190 -190
- package/ktor-ktor-client-core.js +2991 -2991
- package/ktor-ktor-events.js +8 -8
- package/ktor-ktor-http-cio.js +497 -497
- package/ktor-ktor-http.js +675 -675
- package/ktor-ktor-io.js +1099 -1104
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +230 -230
- package/ktor-ktor-serialization.js +107 -107
- package/ktor-ktor-utils.js +553 -553
- package/ktor-ktor-websockets.js +757 -757
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.ts +395 -8
- package/solibo-sdk-sdk-home-api.js +74182 -68237
- package/solibo-sdk-sdk-home-api.js.map +1 -1
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
var Unit_instance = kotlin_kotlin.$_$.y4;
|
|
38
38
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.b;
|
|
40
|
-
var Exception = kotlin_kotlin.$_$.
|
|
40
|
+
var Exception = kotlin_kotlin.$_$.of;
|
|
41
41
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
42
42
|
var captureStack = kotlin_kotlin.$_$.fa;
|
|
43
43
|
var toString = kotlin_kotlin.$_$.xb;
|
|
44
44
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.m;
|
|
45
45
|
var CoroutineImpl = kotlin_kotlin.$_$.g9;
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
47
47
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
48
48
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
49
49
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
var initMetadataForLambda = kotlin_kotlin.$_$.cb;
|
|
52
52
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
53
53
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
54
|
-
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
54
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
55
55
|
var isInterface = kotlin_kotlin.$_$.mb;
|
|
56
56
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
57
57
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
var getKClassFromExpression = kotlin_kotlin.$_$.lc;
|
|
65
65
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
66
66
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
67
|
-
var Unit = kotlin_kotlin.$_$.
|
|
67
|
+
var Unit = kotlin_kotlin.$_$.gg;
|
|
68
68
|
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
69
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
69
|
+
var ensureNotNull = kotlin_kotlin.$_$.ng;
|
|
70
70
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
71
71
|
var equals = kotlin_kotlin.$_$.oa;
|
|
72
72
|
var joinToString = kotlin_kotlin.$_$.z6;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
var setOf = kotlin_kotlin.$_$.t7;
|
|
84
84
|
var KtList = kotlin_kotlin.$_$.f5;
|
|
85
85
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
86
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
86
|
+
var arrayOf = kotlin_kotlin.$_$.jg;
|
|
87
87
|
var createKType = kotlin_kotlin.$_$.kc;
|
|
88
88
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.ic;
|
|
89
89
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
@@ -124,35 +124,35 @@
|
|
|
124
124
|
}
|
|
125
125
|
var ContentNegotiation;
|
|
126
126
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
129
|
-
this.
|
|
127
|
+
this.i4l_1 = converter;
|
|
128
|
+
this.j4l_1 = contentTypeToSend;
|
|
129
|
+
this.k4l_1 = contentTypeMatcher;
|
|
130
130
|
}
|
|
131
131
|
function defaultMatcher($this, pattern) {
|
|
132
132
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
133
133
|
}
|
|
134
134
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
135
|
-
this.
|
|
135
|
+
this.l4l_1 = $pattern;
|
|
136
136
|
}
|
|
137
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
138
|
-
return contentType.
|
|
137
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).m4l = function (contentType) {
|
|
138
|
+
return contentType.d2l(this.l4l_1);
|
|
139
139
|
};
|
|
140
140
|
function ContentNegotiationConfig() {
|
|
141
|
-
this.
|
|
141
|
+
this.n4l_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
142
142
|
var tmp = this;
|
|
143
143
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
144
|
-
tmp.
|
|
145
|
-
this.
|
|
144
|
+
tmp.o4l_1 = ArrayList_init_$Create$();
|
|
145
|
+
this.p4l_1 = null;
|
|
146
146
|
}
|
|
147
|
-
protoOf(ContentNegotiationConfig).
|
|
148
|
-
var matcher = contentType.
|
|
149
|
-
this.
|
|
147
|
+
protoOf(ContentNegotiationConfig).t3a = function (contentType, converter, configuration) {
|
|
148
|
+
var matcher = contentType.d2l(Application_getInstance().j2j_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
149
|
+
this.q4l(contentType, converter, matcher, configuration);
|
|
150
150
|
};
|
|
151
|
-
protoOf(ContentNegotiationConfig).
|
|
151
|
+
protoOf(ContentNegotiationConfig).q4l = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
152
152
|
// Inline function 'kotlin.apply' call
|
|
153
153
|
configuration(converter);
|
|
154
154
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
155
|
-
this.
|
|
155
|
+
this.o4l_1.e1(registration);
|
|
156
156
|
};
|
|
157
157
|
function ContentConverterException(message) {
|
|
158
158
|
Exception_init_$Init$(message, this);
|
|
@@ -167,57 +167,57 @@
|
|
|
167
167
|
}
|
|
168
168
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
169
169
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
170
|
-
var registrations = $this$createClientPlugin.
|
|
171
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
172
|
-
$this$createClientPlugin.
|
|
173
|
-
$this$createClientPlugin.
|
|
170
|
+
var registrations = $this$createClientPlugin.i3n_1.o4l_1;
|
|
171
|
+
var ignoredTypes = $this$createClientPlugin.i3n_1.n4l_1;
|
|
172
|
+
$this$createClientPlugin.h45(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
173
|
+
$this$createClientPlugin.u3v(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
174
174
|
return Unit_instance;
|
|
175
175
|
}
|
|
176
176
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
177
177
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
178
|
-
return toString(it.
|
|
178
|
+
return toString(it.i4l_1);
|
|
179
179
|
}
|
|
180
180
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
181
181
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
182
|
-
tmp.
|
|
183
|
-
tmp.
|
|
184
|
-
return tmp.
|
|
182
|
+
tmp.l8_1 = Unit_instance;
|
|
183
|
+
tmp.m8_1 = null;
|
|
184
|
+
return tmp.r8();
|
|
185
185
|
}
|
|
186
186
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
187
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
187
|
+
charset = charset === VOID ? Charsets_getInstance().w1q_1 : charset;
|
|
188
188
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
189
|
-
tmp.
|
|
190
|
-
tmp.
|
|
191
|
-
return tmp.
|
|
189
|
+
tmp.l8_1 = Unit_instance;
|
|
190
|
+
tmp.m8_1 = null;
|
|
191
|
+
return tmp.r8();
|
|
192
192
|
}
|
|
193
193
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
194
|
+
this.i4n_1 = $registrations;
|
|
195
|
+
this.j4n_1 = $this_createClientPlugin;
|
|
196
|
+
this.k4n_1 = $ignoredTypes;
|
|
197
197
|
CoroutineImpl.call(this, resultContinuation);
|
|
198
198
|
}
|
|
199
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
200
|
-
var tmp = this.
|
|
201
|
-
tmp.
|
|
202
|
-
tmp.
|
|
203
|
-
return tmp.
|
|
199
|
+
protoOf(ContentNegotiation$lambda$slambda).p4n = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
200
|
+
var tmp = this.q4n($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
201
|
+
tmp.l8_1 = Unit_instance;
|
|
202
|
+
tmp.m8_1 = null;
|
|
203
|
+
return tmp.r8();
|
|
204
204
|
};
|
|
205
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
205
|
+
protoOf(ContentNegotiation$lambda$slambda).z3w = function (p1, p2, p3, p4, $completion) {
|
|
206
206
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
207
207
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
208
208
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
209
|
-
return this.
|
|
209
|
+
return this.p4n(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
210
210
|
};
|
|
211
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
212
|
-
var suspendResult = this.
|
|
211
|
+
protoOf(ContentNegotiation$lambda$slambda).r8 = function () {
|
|
212
|
+
var suspendResult = this.l8_1;
|
|
213
213
|
$sm: do
|
|
214
214
|
try {
|
|
215
|
-
var tmp = this.
|
|
215
|
+
var tmp = this.j8_1;
|
|
216
216
|
switch (tmp) {
|
|
217
217
|
case 0:
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
suspendResult = invoke$convertRequest(this.
|
|
218
|
+
this.k8_1 = 2;
|
|
219
|
+
this.j8_1 = 1;
|
|
220
|
+
suspendResult = invoke$convertRequest(this.i4n_1, this.j4n_1, this.k4n_1, this.m4n_1, this.n4n_1, this);
|
|
221
221
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
222
222
|
return suspendResult;
|
|
223
223
|
}
|
|
@@ -226,62 +226,62 @@
|
|
|
226
226
|
case 1:
|
|
227
227
|
return suspendResult;
|
|
228
228
|
case 2:
|
|
229
|
-
throw this.
|
|
229
|
+
throw this.m8_1;
|
|
230
230
|
}
|
|
231
231
|
} catch ($p) {
|
|
232
232
|
var e = $p;
|
|
233
|
-
if (this.
|
|
233
|
+
if (this.k8_1 === 2) {
|
|
234
234
|
throw e;
|
|
235
235
|
} else {
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
236
|
+
this.j8_1 = this.k8_1;
|
|
237
|
+
this.m8_1 = e;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
while (true);
|
|
241
241
|
};
|
|
242
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
243
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
244
|
-
i.
|
|
245
|
-
i.
|
|
246
|
-
i.
|
|
247
|
-
i.
|
|
242
|
+
protoOf(ContentNegotiation$lambda$slambda).q4n = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
243
|
+
var i = new ContentNegotiation$lambda$slambda(this.i4n_1, this.j4n_1, this.k4n_1, completion);
|
|
244
|
+
i.l4n_1 = $this$transformRequestBody;
|
|
245
|
+
i.m4n_1 = request;
|
|
246
|
+
i.n4n_1 = body;
|
|
247
|
+
i.o4n_1 = _unused_var__etf5q3;
|
|
248
248
|
return i;
|
|
249
249
|
};
|
|
250
250
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
251
251
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
252
252
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
253
|
-
return i.
|
|
253
|
+
return i.p4n($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
254
254
|
};
|
|
255
255
|
l.$arity = 4;
|
|
256
256
|
return l;
|
|
257
257
|
}
|
|
258
258
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
259
|
+
this.z4n_1 = $ignoredTypes;
|
|
260
|
+
this.a4o_1 = $registrations;
|
|
261
|
+
this.b4o_1 = $this_createClientPlugin;
|
|
262
262
|
CoroutineImpl.call(this, resultContinuation);
|
|
263
263
|
}
|
|
264
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
265
|
-
var tmp = this.
|
|
266
|
-
tmp.
|
|
267
|
-
tmp.
|
|
268
|
-
return tmp.
|
|
264
|
+
protoOf(ContentNegotiation$lambda$slambda_1).x3w = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
265
|
+
var tmp = this.y3w($this$transformResponseBody, response, body, info, $completion);
|
|
266
|
+
tmp.l8_1 = Unit_instance;
|
|
267
|
+
tmp.m8_1 = null;
|
|
268
|
+
return tmp.r8();
|
|
269
269
|
};
|
|
270
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
270
|
+
protoOf(ContentNegotiation$lambda$slambda_1).z3w = function (p1, p2, p3, p4, $completion) {
|
|
271
271
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
272
272
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
273
273
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
274
|
-
return this.
|
|
274
|
+
return this.x3w(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
275
275
|
};
|
|
276
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
277
|
-
var suspendResult = this.
|
|
276
|
+
protoOf(ContentNegotiation$lambda$slambda_1).r8 = function () {
|
|
277
|
+
var suspendResult = this.l8_1;
|
|
278
278
|
$sm: do
|
|
279
279
|
try {
|
|
280
|
-
var tmp = this.
|
|
280
|
+
var tmp = this.j8_1;
|
|
281
281
|
switch (tmp) {
|
|
282
282
|
case 0:
|
|
283
|
-
this.
|
|
284
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
283
|
+
this.k8_1 = 2;
|
|
284
|
+
var tmp0_elvis_lhs = contentType(this.d4o_1);
|
|
285
285
|
var tmp_0;
|
|
286
286
|
if (tmp0_elvis_lhs == null) {
|
|
287
287
|
return null;
|
|
@@ -290,9 +290,9 @@
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
var contentType_0 = tmp_0;
|
|
293
|
-
var charset = suitableCharset(get_request(this.
|
|
294
|
-
this.
|
|
295
|
-
suspendResult = invoke$convertResponse(this.
|
|
293
|
+
var charset = suitableCharset(get_request(this.d4o_1).n2p());
|
|
294
|
+
this.j8_1 = 1;
|
|
295
|
+
suspendResult = invoke$convertResponse(this.z4n_1, this.a4o_1, this.b4o_1, get_request(this.d4o_1).k3g(), this.f4o_1, this.e4o_1, contentType_0, charset, this);
|
|
296
296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
297
297
|
return suspendResult;
|
|
298
298
|
}
|
|
@@ -301,55 +301,55 @@
|
|
|
301
301
|
case 1:
|
|
302
302
|
return suspendResult;
|
|
303
303
|
case 2:
|
|
304
|
-
throw this.
|
|
304
|
+
throw this.m8_1;
|
|
305
305
|
}
|
|
306
306
|
} catch ($p) {
|
|
307
307
|
var e = $p;
|
|
308
|
-
if (this.
|
|
308
|
+
if (this.k8_1 === 2) {
|
|
309
309
|
throw e;
|
|
310
310
|
} else {
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
311
|
+
this.j8_1 = this.k8_1;
|
|
312
|
+
this.m8_1 = e;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
while (true);
|
|
316
316
|
};
|
|
317
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
318
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
319
|
-
i.
|
|
320
|
-
i.
|
|
321
|
-
i.
|
|
322
|
-
i.
|
|
317
|
+
protoOf(ContentNegotiation$lambda$slambda_1).y3w = function ($this$transformResponseBody, response, body, info, completion) {
|
|
318
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.z4n_1, this.a4o_1, this.b4o_1, completion);
|
|
319
|
+
i.c4o_1 = $this$transformResponseBody;
|
|
320
|
+
i.d4o_1 = response;
|
|
321
|
+
i.e4o_1 = body;
|
|
322
|
+
i.f4o_1 = info;
|
|
323
323
|
return i;
|
|
324
324
|
};
|
|
325
325
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
326
326
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
327
327
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
328
|
-
return i.
|
|
328
|
+
return i.x3w($this$transformResponseBody, response, body, info, $completion);
|
|
329
329
|
};
|
|
330
330
|
l.$arity = 4;
|
|
331
331
|
return l;
|
|
332
332
|
}
|
|
333
333
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
334
334
|
CoroutineImpl.call(this, resultContinuation);
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
335
|
+
this.z4l_1 = registrations;
|
|
336
|
+
this.a4m_1 = $this_createClientPlugin;
|
|
337
|
+
this.b4m_1 = ignoredTypes;
|
|
338
|
+
this.c4m_1 = request;
|
|
339
|
+
this.d4m_1 = body;
|
|
340
340
|
}
|
|
341
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
342
|
-
var suspendResult = this.
|
|
341
|
+
protoOf($invoke$convertRequestCOROUTINE$).r8 = function () {
|
|
342
|
+
var suspendResult = this.l8_1;
|
|
343
343
|
$sm: do
|
|
344
344
|
try {
|
|
345
|
-
var tmp = this.
|
|
345
|
+
var tmp = this.j8_1;
|
|
346
346
|
switch (tmp) {
|
|
347
347
|
case 0:
|
|
348
|
-
this.
|
|
348
|
+
this.k8_1 = 7;
|
|
349
349
|
var tmp_0;
|
|
350
|
-
if (this.
|
|
351
|
-
var excluded = this.
|
|
352
|
-
var tmp0 = this.
|
|
350
|
+
if (this.c4m_1.x3e_1.u2c(get_ExcludedContentTypes())) {
|
|
351
|
+
var excluded = this.c4m_1.x3e_1.s2c(get_ExcludedContentTypes());
|
|
352
|
+
var tmp0 = this.z4l_1;
|
|
353
353
|
var destination = ArrayList_init_$Create$();
|
|
354
354
|
var _iterator__ex2g4s = tmp0.t();
|
|
355
355
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
var _iterator__ex2g4s_0 = excluded.t();
|
|
370
370
|
while (_iterator__ex2g4s_0.u()) {
|
|
371
371
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
372
|
-
if (element.
|
|
372
|
+
if (element.j4l_1.d2l(element_0)) {
|
|
373
373
|
tmp$ret$0 = false;
|
|
374
374
|
break l$ret$1;
|
|
375
375
|
}
|
|
@@ -383,11 +383,11 @@
|
|
|
383
383
|
}
|
|
384
384
|
tmp_0 = destination;
|
|
385
385
|
} else {
|
|
386
|
-
tmp_0 = this.
|
|
386
|
+
tmp_0 = this.z4l_1;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
var requestRegistrations = tmp_0;
|
|
390
|
-
var tmp0_elvis_lhs = this.
|
|
390
|
+
var tmp0_elvis_lhs = this.c4m_1.u3e_1.l2e('Accept');
|
|
391
391
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
392
392
|
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
393
393
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
408
408
|
while (_iterator__ex2g4s_2.u()) {
|
|
409
409
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
410
|
-
if (Companion_getInstance().
|
|
410
|
+
if (Companion_getInstance().gm(element_2).d2l(element_1.j4l_1)) {
|
|
411
411
|
tmp$ret$2 = false;
|
|
412
412
|
break l$ret$3;
|
|
413
413
|
}
|
|
@@ -416,19 +416,19 @@
|
|
|
416
416
|
}
|
|
417
417
|
while (false);
|
|
418
418
|
if (tmp$ret$2) {
|
|
419
|
-
var qValue = this.
|
|
420
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
421
|
-
get_LOGGER().
|
|
422
|
-
accept(this.
|
|
419
|
+
var qValue = this.a4m_1.i3n_1.p4l_1;
|
|
420
|
+
var contentTypeToSend = qValue == null ? element_1.j4l_1 : element_1.j4l_1.b2l('q', qValue.toString());
|
|
421
|
+
get_LOGGER().r2i('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.c4m_1.s3e_1.toString());
|
|
422
|
+
accept(this.c4m_1, contentTypeToSend);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
var tmp_3;
|
|
427
|
-
var tmp_4 = this.
|
|
427
|
+
var tmp_4 = this.d4m_1;
|
|
428
428
|
if (tmp_4 instanceof OutgoingContent) {
|
|
429
429
|
tmp_3 = true;
|
|
430
430
|
} else {
|
|
431
|
-
var tmp0_0 = this.
|
|
431
|
+
var tmp0_0 = this.b4m_1;
|
|
432
432
|
var tmp$ret$4;
|
|
433
433
|
l$ret$5: do {
|
|
434
434
|
var tmp_5;
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
445
445
|
while (_iterator__ex2g4s_3.u()) {
|
|
446
446
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
447
|
-
if (element_3.
|
|
447
|
+
if (element_3.na(this.d4m_1)) {
|
|
448
448
|
tmp$ret$4 = true;
|
|
449
449
|
break l$ret$5;
|
|
450
450
|
}
|
|
@@ -456,36 +456,36 @@
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
if (tmp_3) {
|
|
459
|
-
get_LOGGER().
|
|
459
|
+
get_LOGGER().r2i('Body type ' + toString(getKClassFromExpression(this.d4m_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c4m_1.s3e_1.toString() + '.'));
|
|
460
460
|
return null;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
var tmp_6 = this;
|
|
464
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
464
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.c4m_1);
|
|
465
465
|
var tmp_7;
|
|
466
466
|
if (tmp0_elvis_lhs_0 == null) {
|
|
467
|
-
this.
|
|
468
|
-
get_LOGGER().
|
|
467
|
+
this.a4m_1;
|
|
468
|
+
get_LOGGER().r2i("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.c4m_1.s3e_1.toString() + '.');
|
|
469
469
|
return null;
|
|
470
470
|
} else {
|
|
471
471
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
tmp_6.
|
|
475
|
-
var tmp_8 = this.
|
|
474
|
+
tmp_6.f4m_1 = tmp_7;
|
|
475
|
+
var tmp_8 = this.d4m_1;
|
|
476
476
|
if (tmp_8 instanceof Unit) {
|
|
477
|
-
get_LOGGER().
|
|
478
|
-
this.
|
|
477
|
+
get_LOGGER().r2i('Sending empty body for ' + this.c4m_1.s3e_1.toString());
|
|
478
|
+
this.c4m_1.u3e_1.v2e('Content-Type');
|
|
479
479
|
return EmptyContent_getInstance();
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
var tmp_9 = this;
|
|
483
|
-
var tmp0_1 = this.
|
|
483
|
+
var tmp0_1 = this.z4l_1;
|
|
484
484
|
var destination_0 = ArrayList_init_$Create$();
|
|
485
485
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
486
486
|
while (_iterator__ex2g4s_4.u()) {
|
|
487
487
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
488
|
-
if (element_4.
|
|
488
|
+
if (element_4.k4l_1.m4l(this.f4m_1)) {
|
|
489
489
|
destination_0.e1(element_4);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
@@ -500,40 +500,40 @@
|
|
|
500
500
|
var tmp1_elvis_lhs = tmp_10;
|
|
501
501
|
var tmp_11;
|
|
502
502
|
if (tmp1_elvis_lhs == null) {
|
|
503
|
-
this.
|
|
504
|
-
get_LOGGER().
|
|
503
|
+
this.a4m_1;
|
|
504
|
+
get_LOGGER().r2i('None of the registered converters match request Content-Type=' + this.f4m_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c4m_1.s3e_1.toString() + '.'));
|
|
505
505
|
return null;
|
|
506
506
|
} else {
|
|
507
507
|
tmp_11 = tmp1_elvis_lhs;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
-
tmp_9.
|
|
511
|
-
if (this.
|
|
512
|
-
get_LOGGER().
|
|
510
|
+
tmp_9.e4m_1 = tmp_11;
|
|
511
|
+
if (this.c4m_1.p47() == null) {
|
|
512
|
+
get_LOGGER().r2i('Request has unknown body type. Skipping ContentNegotiation for ' + this.c4m_1.s3e_1.toString() + '.');
|
|
513
513
|
return null;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
this.
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
516
|
+
this.c4m_1.u3e_1.v2e('Content-Type');
|
|
517
|
+
this.j4m_1 = this.e4m_1;
|
|
518
|
+
this.j8_1 = 1;
|
|
519
519
|
continue $sm;
|
|
520
520
|
case 1:
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
521
|
+
this.i4m_1 = this.j4m_1.t();
|
|
522
|
+
this.j8_1 = 2;
|
|
523
523
|
continue $sm;
|
|
524
524
|
case 2:
|
|
525
|
-
if (!this.
|
|
526
|
-
this.
|
|
525
|
+
if (!this.i4m_1.u()) {
|
|
526
|
+
this.j8_1 = 5;
|
|
527
527
|
continue $sm;
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
-
var element_5 = this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
534
|
-
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
535
|
-
var tmp_13 = ensureNotNull(this.
|
|
536
|
-
var this_0 = this.
|
|
530
|
+
var element_5 = this.i4m_1.v();
|
|
531
|
+
this.h4m_1 = element_5;
|
|
532
|
+
this.j8_1 = 3;
|
|
533
|
+
var tmp0_elvis_lhs_1 = charset(this.f4m_1);
|
|
534
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().w1q_1 : tmp0_elvis_lhs_1;
|
|
535
|
+
var tmp_13 = ensureNotNull(this.c4m_1.p47());
|
|
536
|
+
var this_0 = this.d4m_1;
|
|
537
537
|
var tmp_14;
|
|
538
538
|
if (!equals(this_0, NullBody_instance)) {
|
|
539
539
|
tmp_14 = this_0;
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
tmp_14 = null;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
suspendResult = this.
|
|
544
|
+
suspendResult = this.h4m_1.i4l_1.g4o(this.f4m_1, tmp_12, tmp_13, tmp_14, this);
|
|
545
545
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
546
546
|
return suspendResult;
|
|
547
547
|
}
|
|
@@ -550,37 +550,37 @@
|
|
|
550
550
|
case 3:
|
|
551
551
|
var result = suspendResult;
|
|
552
552
|
if (!(result == null)) {
|
|
553
|
-
get_LOGGER().
|
|
553
|
+
get_LOGGER().r2i('Converted request body using ' + toString(this.h4m_1.i4l_1) + ' for ' + this.c4m_1.s3e_1.toString());
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
var result_0 = result;
|
|
557
557
|
if (!(result_0 == null)) {
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
558
|
+
this.g4m_1 = result_0;
|
|
559
|
+
this.j8_1 = 6;
|
|
560
560
|
continue $sm;
|
|
561
561
|
} else {
|
|
562
|
-
this.
|
|
562
|
+
this.j8_1 = 4;
|
|
563
563
|
continue $sm;
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
case 4:
|
|
567
|
-
this.
|
|
567
|
+
this.j8_1 = 2;
|
|
568
568
|
continue $sm;
|
|
569
569
|
case 5:
|
|
570
|
-
this.
|
|
570
|
+
this.g4m_1 = null;
|
|
571
571
|
if (false) {
|
|
572
|
-
this.
|
|
572
|
+
this.j8_1 = 1;
|
|
573
573
|
continue $sm;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
this.
|
|
576
|
+
this.j8_1 = 6;
|
|
577
577
|
continue $sm;
|
|
578
578
|
case 6:
|
|
579
|
-
var tmp2_elvis_lhs = this.
|
|
579
|
+
var tmp2_elvis_lhs = this.g4m_1;
|
|
580
580
|
var tmp_15;
|
|
581
581
|
if (tmp2_elvis_lhs == null) {
|
|
582
|
-
var tmp_16 = "Can't convert " + toString(this.
|
|
583
|
-
throw new ContentConverterException(tmp_16 + joinToString(this.
|
|
582
|
+
var tmp_16 = "Can't convert " + toString(this.d4m_1) + ' with contentType ' + this.f4m_1.toString() + ' using converters ';
|
|
583
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.e4m_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
584
584
|
} else {
|
|
585
585
|
tmp_15 = tmp2_elvis_lhs;
|
|
586
586
|
}
|
|
@@ -588,55 +588,55 @@
|
|
|
588
588
|
var serializedContent = tmp_15;
|
|
589
589
|
return serializedContent;
|
|
590
590
|
case 7:
|
|
591
|
-
throw this.
|
|
591
|
+
throw this.m8_1;
|
|
592
592
|
}
|
|
593
593
|
} catch ($p) {
|
|
594
594
|
var e = $p;
|
|
595
|
-
if (this.
|
|
595
|
+
if (this.k8_1 === 7) {
|
|
596
596
|
throw e;
|
|
597
597
|
} else {
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
598
|
+
this.j8_1 = this.k8_1;
|
|
599
|
+
this.m8_1 = e;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
while (true);
|
|
603
603
|
};
|
|
604
604
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
605
605
|
CoroutineImpl.call(this, resultContinuation);
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
606
|
+
this.s4m_1 = ignoredTypes;
|
|
607
|
+
this.t4m_1 = registrations;
|
|
608
|
+
this.u4m_1 = $this_createClientPlugin;
|
|
609
|
+
this.v4m_1 = requestUrl;
|
|
610
|
+
this.w4m_1 = info;
|
|
611
|
+
this.x4m_1 = body;
|
|
612
|
+
this.y4m_1 = responseContentType;
|
|
613
|
+
this.z4m_1 = charset;
|
|
614
614
|
}
|
|
615
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
616
|
-
var suspendResult = this.
|
|
615
|
+
protoOf($invoke$convertResponseCOROUTINE$).r8 = function () {
|
|
616
|
+
var suspendResult = this.l8_1;
|
|
617
617
|
$sm: do
|
|
618
618
|
try {
|
|
619
|
-
var tmp = this.
|
|
619
|
+
var tmp = this.j8_1;
|
|
620
620
|
switch (tmp) {
|
|
621
621
|
case 0:
|
|
622
|
-
this.
|
|
623
|
-
var tmp_0 = this.
|
|
622
|
+
this.k8_1 = 2;
|
|
623
|
+
var tmp_0 = this.x4m_1;
|
|
624
624
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
625
|
-
get_LOGGER().
|
|
625
|
+
get_LOGGER().r2i('Response body is already transformed. Skipping ContentNegotiation for ' + this.v4m_1.toString() + '.');
|
|
626
626
|
return null;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
if (this.
|
|
630
|
-
get_LOGGER().
|
|
629
|
+
if (this.s4m_1.h2(this.w4m_1.k2i_1)) {
|
|
630
|
+
get_LOGGER().r2i('Response body type ' + toString(this.w4m_1.k2i_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.v4m_1.toString() + '.'));
|
|
631
631
|
return null;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
-
var tmp0 = this.
|
|
634
|
+
var tmp0 = this.t4m_1;
|
|
635
635
|
var destination = ArrayList_init_$Create$();
|
|
636
636
|
var _iterator__ex2g4s = tmp0.t();
|
|
637
637
|
while (_iterator__ex2g4s.u()) {
|
|
638
638
|
var element = _iterator__ex2g4s.v();
|
|
639
|
-
if (element.
|
|
639
|
+
if (element.k4l_1.m4l(this.y4m_1)) {
|
|
640
640
|
destination.e1(element);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
var _iterator__ex2g4s_0 = destination.t();
|
|
646
646
|
while (_iterator__ex2g4s_0.u()) {
|
|
647
647
|
var item = _iterator__ex2g4s_0.v();
|
|
648
|
-
destination_0.e1(item.
|
|
648
|
+
destination_0.e1(item.i4l_1);
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
var tmp_1;
|
|
@@ -658,16 +658,16 @@
|
|
|
658
658
|
var tmp0_elvis_lhs = tmp_1;
|
|
659
659
|
var tmp_2;
|
|
660
660
|
if (tmp0_elvis_lhs == null) {
|
|
661
|
-
this.
|
|
662
|
-
get_LOGGER().
|
|
661
|
+
this.u4m_1;
|
|
662
|
+
get_LOGGER().r2i('None of the registered converters match response with Content-Type=' + this.y4m_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.v4m_1.toString() + '.'));
|
|
663
663
|
return null;
|
|
664
664
|
} else {
|
|
665
665
|
tmp_2 = tmp0_elvis_lhs;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
var suitableConverters = tmp_2;
|
|
669
|
-
this.
|
|
670
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
669
|
+
this.j8_1 = 1;
|
|
670
|
+
suspendResult = deserialize(suitableConverters, this.x4m_1, this.w4m_1, this.z4m_1, this);
|
|
671
671
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
672
672
|
return suspendResult;
|
|
673
673
|
}
|
|
@@ -676,20 +676,20 @@
|
|
|
676
676
|
case 1:
|
|
677
677
|
var result = suspendResult;
|
|
678
678
|
if (!isInterface(result, ByteReadChannel)) {
|
|
679
|
-
get_LOGGER().
|
|
679
|
+
get_LOGGER().r2i('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.v4m_1.toString() + '.');
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
return result;
|
|
683
683
|
case 2:
|
|
684
|
-
throw this.
|
|
684
|
+
throw this.m8_1;
|
|
685
685
|
}
|
|
686
686
|
} catch ($p) {
|
|
687
687
|
var e = $p;
|
|
688
|
-
if (this.
|
|
688
|
+
if (this.k8_1 === 2) {
|
|
689
689
|
throw e;
|
|
690
690
|
} else {
|
|
691
|
-
this.
|
|
692
|
-
this.
|
|
691
|
+
this.j8_1 = this.k8_1;
|
|
692
|
+
this.m8_1 = e;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
while (true);
|
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
700
700
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
701
701
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
702
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
702
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().rb(), PrimitiveClasses_getInstance().nb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
|
|
703
703
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
704
704
|
var name = 'ExcludedContentTypesAttr';
|
|
705
705
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -727,12 +727,12 @@
|
|
|
727
727
|
}
|
|
728
728
|
function JsonContentTypeMatcher() {
|
|
729
729
|
}
|
|
730
|
-
protoOf(JsonContentTypeMatcher).
|
|
731
|
-
if (contentType.
|
|
730
|
+
protoOf(JsonContentTypeMatcher).m4l = function (contentType) {
|
|
731
|
+
if (contentType.d2l(Application_getInstance().j2j_1)) {
|
|
732
732
|
return true;
|
|
733
733
|
}
|
|
734
|
-
var value = contentType.
|
|
735
|
-
return Application_getInstance().
|
|
734
|
+
var value = contentType.c2l().toString();
|
|
735
|
+
return Application_getInstance().d2k(value) && endsWith(value, '+json', true);
|
|
736
736
|
};
|
|
737
737
|
var JsonContentTypeMatcher_instance;
|
|
738
738
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
//region block: post-declaration
|
|
755
|
-
protoOf(ContentNegotiationConfig).
|
|
755
|
+
protoOf(ContentNegotiationConfig).u3a = register$default;
|
|
756
756
|
//endregion
|
|
757
757
|
//region block: init
|
|
758
758
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|