@doordeck/doordeck-headless-sdk 0.114.0 → 0.116.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 (31) hide show
  1. package/kotlin/Kermit-kermit-core.js +59 -58
  2. package/kotlin/Kermit-kermit.js +7 -7
  3. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1899 -1681
  4. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +6 -6
  5. package/kotlin/MultiplatformSettings-multiplatform-settings.js +30 -11
  6. package/kotlin/doordeck-sdk.d.ts +1576 -290
  7. package/kotlin/doordeck-sdk.js +6395 -6373
  8. package/kotlin/kotlin-kotlin-stdlib.js +590 -719
  9. package/kotlin/kotlinx-atomicfu.js +5 -5
  10. package/kotlin/kotlinx-coroutines-core.js +246 -243
  11. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +12 -12
  12. package/kotlin/kotlinx-io-kotlinx-io-core.js +104 -104
  13. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +126 -117
  14. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1216 -1214
  15. package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js → ktor-ktor-client-auth.js} +283 -286
  16. package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js → ktor-ktor-client-content-negotiation.js} +169 -169
  17. package/kotlin/{ktor-ktor-client-ktor-client-core.js → ktor-ktor-client-core.js} +2515 -2518
  18. package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js → ktor-ktor-client-logging.js} +926 -831
  19. package/kotlin/{ktor-ktor-shared-ktor-events.js → ktor-ktor-events.js} +9 -9
  20. package/kotlin/{ktor-ktor-http-ktor-http-cio.js → ktor-ktor-http-cio.js} +371 -370
  21. package/kotlin/ktor-ktor-http.js +867 -952
  22. package/kotlin/ktor-ktor-io.js +389 -411
  23. package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js → ktor-ktor-serialization-kotlinx-json.js} +7 -7
  24. package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js → ktor-ktor-serialization-kotlinx.js} +150 -150
  25. package/kotlin/{ktor-ktor-shared-ktor-serialization.js → ktor-ktor-serialization.js} +75 -75
  26. package/kotlin/ktor-ktor-utils.js +117 -92
  27. package/kotlin/{ktor-ktor-shared-ktor-websockets.js → ktor-ktor-websockets.js} +52 -52
  28. package/package.json +3 -3
  29. /package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js → ktor-ktor-client-encoding.js} +0 -0
  30. /package/kotlin/{ktor-ktor-shared-ktor-sse.js → ktor-ktor-sse.js} +0 -0
  31. /package/kotlin/{ktor-ktor-shared-ktor-websocket-serialization.js → ktor-ktor-websocket-serialization.js} +0 -0
@@ -1,29 +1,29 @@
1
1
  (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var Exception = kotlin_kotlin.$_$.jf;
4
+ var Exception = kotlin_kotlin.$_$.mf;
5
5
  var VOID = kotlin_kotlin.$_$.h;
6
6
  var Exception_init_$Init$ = kotlin_kotlin.$_$.q1;
7
7
  var captureStack = kotlin_kotlin.$_$.da;
8
- var protoOf = kotlin_kotlin.$_$.ub;
9
- var initMetadataForClass = kotlin_kotlin.$_$.sa;
8
+ var protoOf = kotlin_kotlin.$_$.vb;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.ta;
10
10
  var Unit_instance = kotlin_kotlin.$_$.k5;
11
11
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
12
- var initMetadataForInterface = kotlin_kotlin.$_$.wa;
12
+ var initMetadataForInterface = kotlin_kotlin.$_$.xa;
13
13
  var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
14
- var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.r1;
14
+ var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.s1;
15
15
  var forName = kotlin_io_ktor_ktor_io.$_$.u;
16
16
  var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
17
- var equals = kotlin_kotlin.$_$.la;
17
+ var equals = kotlin_kotlin.$_$.ma;
18
18
  var FunctionAdapter = kotlin_kotlin.$_$.z9;
19
- var isInterface = kotlin_kotlin.$_$.hb;
19
+ var isInterface = kotlin_kotlin.$_$.ib;
20
20
  var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
21
- var hashCode = kotlin_kotlin.$_$.ra;
21
+ var hashCode = kotlin_kotlin.$_$.sa;
22
22
  var CoroutineImpl = kotlin_kotlin.$_$.v9;
23
- var THROW_CCE = kotlin_kotlin.$_$.sf;
23
+ var THROW_CCE = kotlin_kotlin.$_$.vf;
24
24
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
25
- var initMetadataForLambda = kotlin_kotlin.$_$.xa;
26
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ua;
25
+ var initMetadataForLambda = kotlin_kotlin.$_$.ya;
26
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
27
27
  var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
28
28
  var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
29
29
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
@@ -41,20 +41,20 @@
41
41
  configuration = tmp;
42
42
  var tmp_0;
43
43
  if ($super === VOID) {
44
- this.i3d(contentType, converter, configuration);
44
+ this.l3d(contentType, converter, configuration);
45
45
  tmp_0 = Unit_instance;
46
46
  } else {
47
- tmp_0 = $super.i3d.call(this, contentType, converter, configuration);
47
+ tmp_0 = $super.l3d.call(this, contentType, converter, configuration);
48
48
  }
49
49
  return tmp_0;
50
50
  }
51
51
  initMetadataForInterface(Configuration, 'Configuration');
52
52
  initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
53
53
  initMetadataForLambda(deserialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
54
- initMetadataForCoroutine($collectCOROUTINE$1, CoroutineImpl);
54
+ initMetadataForCoroutine($collectCOROUTINE$, CoroutineImpl);
55
55
  initMetadataForClass(deserialize$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
56
56
  initMetadataForLambda(deserialize$slambda, CoroutineImpl, VOID, [1]);
57
- initMetadataForCoroutine($deserializeCOROUTINE$0, CoroutineImpl);
57
+ initMetadataForCoroutine($deserializeCOROUTINE$, CoroutineImpl);
58
58
  //endregion
59
59
  function ContentConvertException(message, cause) {
60
60
  cause = cause === VOID ? null : cause;
@@ -67,7 +67,7 @@
67
67
  captureStack(this, JsonConvertException);
68
68
  }
69
69
  function deserialize(_this__u8e3s4, body, typeInfo, charset, $completion) {
70
- var tmp = new $deserializeCOROUTINE$0(_this__u8e3s4, body, typeInfo, charset, $completion);
70
+ var tmp = new $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, $completion);
71
71
  tmp.i9_1 = Unit_instance;
72
72
  tmp.j9_1 = null;
73
73
  return tmp.o9();
@@ -84,7 +84,7 @@
84
84
  }
85
85
  function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
86
86
  defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v1x_1 : defaultCharset;
87
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.m2m(HttpHeaders_getInstance().a2v_1)).p();
87
+ var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.m2m(HttpHeaders_getInstance().d2v_1)).p();
88
88
  while (_iterator__ex2g4s.q()) {
89
89
  var charset = _iterator__ex2g4s.r().tg();
90
90
  if (charset === '*')
@@ -95,13 +95,13 @@
95
95
  return null;
96
96
  }
97
97
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
98
- this.k3d_1 = function_0;
98
+ this.n3d_1 = function_0;
99
99
  }
100
100
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).y18 = function (value, $completion) {
101
- return this.k3d_1(value, $completion);
101
+ return this.n3d_1(value, $completion);
102
102
  };
103
103
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s3 = function () {
104
- return this.k3d_1;
104
+ return this.n3d_1;
105
105
  };
106
106
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
107
107
  var tmp;
@@ -122,20 +122,20 @@
122
122
  return hashCode(this.s3());
123
123
  };
124
124
  function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
125
- this.t3d_1 = $$this$unsafeFlow;
126
- this.u3d_1 = $charset;
127
- this.v3d_1 = $typeInfo;
128
- this.w3d_1 = $body;
125
+ this.w3d_1 = $$this$unsafeFlow;
126
+ this.x3d_1 = $charset;
127
+ this.y3d_1 = $typeInfo;
128
+ this.z3d_1 = $body;
129
129
  CoroutineImpl.call(this, resultContinuation);
130
130
  }
131
- protoOf(deserialize$o$collect$slambda).f3e = function (value, $completion) {
132
- var tmp = this.g3e(value, $completion);
131
+ protoOf(deserialize$o$collect$slambda).i3e = function (value, $completion) {
132
+ var tmp = this.j3e(value, $completion);
133
133
  tmp.i9_1 = Unit_instance;
134
134
  tmp.j9_1 = null;
135
135
  return tmp.o9();
136
136
  };
137
137
  protoOf(deserialize$o$collect$slambda).ca = function (p1, $completion) {
138
- return this.f3e((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
138
+ return this.i3e((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
139
139
  };
140
140
  protoOf(deserialize$o$collect$slambda).o9 = function () {
141
141
  var suspendResult = this.i9_1;
@@ -146,25 +146,25 @@
146
146
  case 0:
147
147
  this.h9_1 = 3;
148
148
  var tmp_0 = this;
149
- tmp_0.y3d_1 = this.t3d_1;
149
+ tmp_0.b3e_1 = this.w3d_1;
150
150
  var tmp_1 = this;
151
- tmp_1.z3d_1 = this.x3d_1;
152
- this.a3e_1 = this.y3d_1;
153
- this.b3e_1 = this.z3d_1;
151
+ tmp_1.c3e_1 = this.a3e_1;
152
+ this.d3e_1 = this.b3e_1;
153
+ this.e3e_1 = this.c3e_1;
154
154
  var tmp_2 = this;
155
- tmp_2.c3e_1 = this.b3e_1;
156
- this.d3e_1 = this.c3e_1;
155
+ tmp_2.f3e_1 = this.e3e_1;
156
+ this.g3e_1 = this.f3e_1;
157
157
  this.g9_1 = 1;
158
- suspendResult = this.d3e_1.h3e(this.u3d_1, this.v3d_1, this.w3d_1, this);
158
+ suspendResult = this.g3e_1.k3e(this.x3d_1, this.y3d_1, this.z3d_1, this);
159
159
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
160
160
  return suspendResult;
161
161
  }
162
162
 
163
163
  continue $sm;
164
164
  case 1:
165
- this.e3e_1 = suspendResult;
165
+ this.h3e_1 = suspendResult;
166
166
  this.g9_1 = 2;
167
- suspendResult = this.a3e_1.y18(this.e3e_1, this);
167
+ suspendResult = this.d3e_1.y18(this.h3e_1, this);
168
168
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
169
169
  return suspendResult;
170
170
  }
@@ -186,25 +186,25 @@
186
186
  }
187
187
  while (true);
188
188
  };
189
- protoOf(deserialize$o$collect$slambda).g3e = function (value, completion) {
190
- var i = new deserialize$o$collect$slambda(this.t3d_1, this.u3d_1, this.v3d_1, this.w3d_1, completion);
191
- i.x3d_1 = value;
189
+ protoOf(deserialize$o$collect$slambda).j3e = function (value, completion) {
190
+ var i = new deserialize$o$collect$slambda(this.w3d_1, this.x3d_1, this.y3d_1, this.z3d_1, completion);
191
+ i.a3e_1 = value;
192
192
  return i;
193
193
  };
194
194
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
195
195
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
196
196
  var l = function (value, $completion) {
197
- return i.f3e(value, $completion);
197
+ return i.i3e(value, $completion);
198
198
  };
199
199
  l.$arity = 1;
200
200
  return l;
201
201
  }
202
- function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
202
+ function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
203
203
  CoroutineImpl.call(this, resultContinuation);
204
- this.q3e_1 = _this__u8e3s4;
205
- this.r3e_1 = collector;
204
+ this.t3e_1 = _this__u8e3s4;
205
+ this.u3e_1 = collector;
206
206
  }
207
- protoOf($collectCOROUTINE$1).o9 = function () {
207
+ protoOf($collectCOROUTINE$).o9 = function () {
208
208
  var suspendResult = this.i9_1;
209
209
  $sm: do
210
210
  try {
@@ -213,11 +213,11 @@
213
213
  case 0:
214
214
  this.h9_1 = 2;
215
215
  var tmp_0 = this;
216
- tmp_0.s3e_1 = this.r3e_1;
217
- this.t3e_1 = this.s3e_1;
216
+ tmp_0.v3e_1 = this.u3e_1;
217
+ this.w3e_1 = this.v3e_1;
218
218
  this.g9_1 = 1;
219
- var tmp_1 = deserialize$o$collect$slambda_0(this.t3e_1, this.q3e_1.v3e_1, this.q3e_1.w3e_1, this.q3e_1.x3e_1, null);
220
- suspendResult = this.q3e_1.u3e_1.a19(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
219
+ var tmp_1 = deserialize$o$collect$slambda_0(this.w3e_1, this.t3e_1.y3e_1, this.t3e_1.z3e_1, this.t3e_1.a3f_1, null);
220
+ suspendResult = this.t3e_1.x3e_1.a19(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
221
221
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
222
222
  return suspendResult;
223
223
  }
@@ -240,13 +240,13 @@
240
240
  while (true);
241
241
  };
242
242
  function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
243
- this.u3e_1 = $this;
244
- this.v3e_1 = $charset;
245
- this.w3e_1 = $typeInfo;
246
- this.x3e_1 = $body;
243
+ this.x3e_1 = $this;
244
+ this.y3e_1 = $charset;
245
+ this.z3e_1 = $typeInfo;
246
+ this.a3f_1 = $body;
247
247
  }
248
248
  protoOf(deserialize$$inlined$map$1).z18 = function (collector, $completion) {
249
- var tmp = new $collectCOROUTINE$1(this, collector, $completion);
249
+ var tmp = new $collectCOROUTINE$(this, collector, $completion);
250
250
  tmp.i9_1 = Unit_instance;
251
251
  tmp.j9_1 = null;
252
252
  return tmp.o9();
@@ -255,17 +255,17 @@
255
255
  return this.z18(collector, $completion);
256
256
  };
257
257
  function deserialize$slambda($body, resultContinuation) {
258
- this.g3f_1 = $body;
258
+ this.j3f_1 = $body;
259
259
  CoroutineImpl.call(this, resultContinuation);
260
260
  }
261
- protoOf(deserialize$slambda).i3f = function (it, $completion) {
262
- var tmp = this.g3e(it, $completion);
261
+ protoOf(deserialize$slambda).l3f = function (it, $completion) {
262
+ var tmp = this.j3e(it, $completion);
263
263
  tmp.i9_1 = Unit_instance;
264
264
  tmp.j9_1 = null;
265
265
  return tmp.o9();
266
266
  };
267
267
  protoOf(deserialize$slambda).ca = function (p1, $completion) {
268
- return this.i3f((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
268
+ return this.l3f((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
269
269
  };
270
270
  protoOf(deserialize$slambda).o9 = function () {
271
271
  var suspendResult = this.i9_1;
@@ -274,7 +274,7 @@
274
274
  var tmp = this.g9_1;
275
275
  if (tmp === 0) {
276
276
  this.h9_1 = 1;
277
- return !(this.h3f_1 == null) || this.g3f_1.b1n();
277
+ return !(this.k3f_1 == null) || this.j3f_1.b1n();
278
278
  } else if (tmp === 1) {
279
279
  throw this.j9_1;
280
280
  }
@@ -284,27 +284,27 @@
284
284
  }
285
285
  while (true);
286
286
  };
287
- protoOf(deserialize$slambda).g3e = function (it, completion) {
288
- var i = new deserialize$slambda(this.g3f_1, completion);
289
- i.h3f_1 = it;
287
+ protoOf(deserialize$slambda).j3e = function (it, completion) {
288
+ var i = new deserialize$slambda(this.j3f_1, completion);
289
+ i.k3f_1 = it;
290
290
  return i;
291
291
  };
292
292
  function deserialize$slambda_0($body, resultContinuation) {
293
293
  var i = new deserialize$slambda($body, resultContinuation);
294
294
  var l = function (it, $completion) {
295
- return i.i3f(it, $completion);
295
+ return i.l3f(it, $completion);
296
296
  };
297
297
  l.$arity = 1;
298
298
  return l;
299
299
  }
300
- function $deserializeCOROUTINE$0(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
300
+ function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
301
301
  CoroutineImpl.call(this, resultContinuation);
302
- this.e3d_1 = _this__u8e3s4;
303
- this.f3d_1 = body;
304
- this.g3d_1 = typeInfo;
305
- this.h3d_1 = charset;
302
+ this.h3d_1 = _this__u8e3s4;
303
+ this.i3d_1 = body;
304
+ this.j3d_1 = typeInfo;
305
+ this.k3d_1 = charset;
306
306
  }
307
- protoOf($deserializeCOROUTINE$0).o9 = function () {
307
+ protoOf($deserializeCOROUTINE$).o9 = function () {
308
308
  var suspendResult = this.i9_1;
309
309
  $sm: do
310
310
  try {
@@ -313,9 +313,9 @@
313
313
  case 0:
314
314
  this.h9_1 = 2;
315
315
  this.g9_1 = 1;
316
- var this_0 = asFlow(this.e3d_1);
317
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.h3d_1, this.g3d_1, this.f3d_1);
318
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.f3d_1, null), this);
316
+ var this_0 = asFlow(this.h3d_1);
317
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.k3d_1, this.j3d_1, this.i3d_1);
318
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.i3d_1, null), this);
319
319
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
320
320
  return suspendResult;
321
321
  }
@@ -327,14 +327,14 @@
327
327
  if (!(result == null)) {
328
328
  tmp_1 = result;
329
329
  } else {
330
- if (!this.f3d_1.b1n()) {
331
- tmp_1 = this.f3d_1;
330
+ if (!this.i3d_1.b1n()) {
331
+ tmp_1 = this.i3d_1;
332
332
  } else {
333
- var tmp0_safe_receiver = this.g3d_1.y2r_1;
333
+ var tmp0_safe_receiver = this.j3d_1.y2r_1;
334
334
  if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bc()) === true) {
335
335
  tmp_1 = NullBody_instance;
336
336
  } else {
337
- throw new ContentConvertException('No suitable converter found for ' + this.g3d_1.toString());
337
+ throw new ContentConvertException('No suitable converter found for ' + this.j3d_1.toString());
338
338
  }
339
339
  }
340
340
  }