@doordeck/doordeck-headless-sdk 0.136.0 → 0.138.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 (28) hide show
  1. package/kotlin/Kermit-kermit-core.js +59 -59
  2. package/kotlin/Kermit-kermit.js +8 -8
  3. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2 -6459
  4. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +41 -41
  5. package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
  6. package/kotlin/doordeck-sdk.d.ts +7 -10
  7. package/kotlin/doordeck-sdk.js +11675 -11703
  8. package/kotlin/kotlin-kotlin-stdlib.js +2443 -1933
  9. package/kotlin/kotlinx-atomicfu.js +18 -18
  10. package/kotlin/kotlinx-coroutines-core.js +2039 -2039
  11. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
  12. package/kotlin/kotlinx-io-kotlinx-io-core.js +544 -544
  13. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2087 -2075
  14. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1554 -1538
  15. package/kotlin/ktor-ktor-client-auth.js +275 -275
  16. package/kotlin/ktor-ktor-client-content-negotiation.js +163 -163
  17. package/kotlin/ktor-ktor-client-core.js +1995 -2013
  18. package/kotlin/ktor-ktor-client-logging.js +723 -723
  19. package/kotlin/ktor-ktor-events.js +12 -12
  20. package/kotlin/ktor-ktor-http-cio.js +458 -441
  21. package/kotlin/ktor-ktor-http.js +830 -830
  22. package/kotlin/ktor-ktor-io.js +690 -690
  23. package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
  24. package/kotlin/ktor-ktor-serialization-kotlinx.js +177 -177
  25. package/kotlin/ktor-ktor-serialization.js +79 -79
  26. package/kotlin/ktor-ktor-utils.js +793 -793
  27. package/kotlin/ktor-ktor-websockets.js +53 -53
  28. package/package.json +7 -7
@@ -4,32 +4,32 @@
4
4
  var imul = Math.imul;
5
5
  var _sodium_init = $module$libsodium_sumo_a6nla1._sodium_init;
6
6
  var ready = $module$libsodium_sumo_a6nla1.ready;
7
- var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.p3;
8
- var protoOf = kotlin_kotlin.$_$.yb;
9
- var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.l3;
10
- var THROW_CCE = kotlin_kotlin.$_$.xf;
11
- var equals = kotlin_kotlin.$_$.pa;
12
- var initMetadataForClass = kotlin_kotlin.$_$.wa;
13
- var RuntimeException = kotlin_kotlin.$_$.wf;
14
- var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.j2;
15
- var captureStack = kotlin_kotlin.$_$.ga;
16
- var Unit_instance = kotlin_kotlin.$_$.l5;
17
- var Companion_instance = kotlin_kotlin.$_$.g5;
18
- var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.b3;
19
- var createFailure = kotlin_kotlin.$_$.og;
20
- var intercepted = kotlin_kotlin.$_$.l9;
7
+ var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.h3;
8
+ var protoOf = kotlin_kotlin.$_$.hb;
9
+ var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.d3;
10
+ var THROW_CCE = kotlin_kotlin.$_$.bf;
11
+ var equals = kotlin_kotlin.$_$.aa;
12
+ var initMetadataForClass = kotlin_kotlin.$_$.ha;
13
+ var RuntimeException = kotlin_kotlin.$_$.af;
14
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.f2;
15
+ var captureStack = kotlin_kotlin.$_$.r9;
16
+ var Unit_instance = kotlin_kotlin.$_$.f5;
17
+ var Companion_instance = kotlin_kotlin.$_$.a5;
18
+ var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t2;
19
+ var createFailure = kotlin_kotlin.$_$.sf;
20
+ var intercepted = kotlin_kotlin.$_$.w8;
21
21
  var SafeContinuation_init_$Create$ = kotlin_kotlin.$_$.g1;
22
- var initMetadataForObject = kotlin_kotlin.$_$.cb;
22
+ var initMetadataForObject = kotlin_kotlin.$_$.na;
23
23
  var VOID = kotlin_kotlin.$_$.h;
24
- var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.o3;
25
- var toTypedArray = kotlin_kotlin.$_$.d9;
26
- var println = kotlin_kotlin.$_$.ba;
27
- var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.j3;
28
- var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.f3;
29
- var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.m3;
30
- var CoroutineImpl = kotlin_kotlin.$_$.y9;
31
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i9;
32
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ya;
24
+ var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.g3;
25
+ var toTypedArray = kotlin_kotlin.$_$.o8;
26
+ var println = kotlin_kotlin.$_$.m9;
27
+ var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.b3;
28
+ var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.x2;
29
+ var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.e3;
30
+ var CoroutineImpl = kotlin_kotlin.$_$.j9;
31
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
32
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.ja;
33
33
  //endregion
34
34
  //region block: pre-declaration
35
35
  initMetadataForClass(SignatureKeyPair, 'SignatureKeyPair');
@@ -85,15 +85,15 @@
85
85
  var crypto_secretstream_xchacha20poly1305_KEYBYTES;
86
86
  var crypto_secretstream_xchacha20poly1305_ABYTES;
87
87
  function SignatureKeyPair(publicKey, secretKey) {
88
- this.vn_1 = publicKey;
89
- this.wn_1 = secretKey;
88
+ this.vo_1 = publicKey;
89
+ this.wo_1 = secretKey;
90
90
  }
91
91
  protoOf(SignatureKeyPair).toString = function () {
92
- return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.vn_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.wn_1) + ')';
92
+ return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.vo_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.wo_1) + ')';
93
93
  };
94
94
  protoOf(SignatureKeyPair).hashCode = function () {
95
- var result = UByteArray__hashCode_impl_ip8jx2(this.vn_1);
96
- result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.wn_1) | 0;
95
+ var result = UByteArray__hashCode_impl_ip8jx2(this.vo_1);
96
+ result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.wo_1) | 0;
97
97
  return result;
98
98
  };
99
99
  protoOf(SignatureKeyPair).equals = function (other) {
@@ -102,9 +102,9 @@
102
102
  if (!(other instanceof SignatureKeyPair))
103
103
  return false;
104
104
  var tmp0_other_with_cast = other instanceof SignatureKeyPair ? other : THROW_CCE();
105
- if (!equals(this.vn_1, tmp0_other_with_cast.vn_1))
105
+ if (!equals(this.vo_1, tmp0_other_with_cast.vo_1))
106
106
  return false;
107
- if (!equals(this.wn_1, tmp0_other_with_cast.wn_1))
107
+ if (!equals(this.wo_1, tmp0_other_with_cast.wo_1))
108
108
  return false;
109
109
  return true;
110
110
  };
@@ -133,7 +133,7 @@
133
133
  }
134
134
  function JsSodiumLoader() {
135
135
  }
136
- protoOf(JsSodiumLoader).xn = function ($completion) {
136
+ protoOf(JsSodiumLoader).xo = function ($completion) {
137
137
  var safe = SafeContinuation_init_$Create$(intercepted($completion));
138
138
  if (!getSodiumLoaded()) {
139
139
  var tmp = ready;
@@ -186,7 +186,7 @@
186
186
  var sodiumLoaded;
187
187
  function $initializeCOROUTINE$(_this__u8e3s4, resultContinuation) {
188
188
  CoroutineImpl.call(this, resultContinuation);
189
- this.go_1 = _this__u8e3s4;
189
+ this.gp_1 = _this__u8e3s4;
190
190
  }
191
191
  protoOf($initializeCOROUTINE$).q9 = function () {
192
192
  var suspendResult = this.k9_1;
@@ -197,14 +197,14 @@
197
197
  case 0:
198
198
  this.j9_1 = 2;
199
199
  this.i9_1 = 1;
200
- suspendResult = JsSodiumLoader_instance.xn(this);
200
+ suspendResult = JsSodiumLoader_instance.xo(this);
201
201
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
202
202
  return suspendResult;
203
203
  }
204
204
 
205
205
  continue $sm;
206
206
  case 1:
207
- this.go_1.ho_1 = true;
207
+ this.gp_1.hp_1 = true;
208
208
  return Unit_instance;
209
209
  case 2:
210
210
  throw this.l9_1;
@@ -221,9 +221,9 @@
221
221
  while (true);
222
222
  };
223
223
  function LibsodiumInitializer() {
224
- this.ho_1 = false;
224
+ this.hp_1 = false;
225
225
  }
226
- protoOf(LibsodiumInitializer).io = function ($completion) {
226
+ protoOf(LibsodiumInitializer).ip = function ($completion) {
227
227
  var tmp = new $initializeCOROUTINE$(this, $completion);
228
228
  tmp.k9_1 = Unit_instance;
229
229
  tmp.l9_1 = null;
@@ -241,24 +241,24 @@
241
241
  }
242
242
  function Signature() {
243
243
  }
244
- protoOf(Signature).jo = function () {
244
+ protoOf(Signature).jp = function () {
245
245
  var keypair = getSodium().crypto_sign_keypair();
246
246
  var tmp = keypair.publicKey;
247
247
  var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
248
248
  var tmp_1 = keypair.privateKey;
249
249
  return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
250
250
  };
251
- protoOf(Signature).ko = function (seed) {
251
+ protoOf(Signature).kp = function (seed) {
252
252
  var keypair = getSodium().crypto_sign_seed_keypair(toUInt8Array(seed));
253
253
  var tmp = keypair.publicKey;
254
254
  var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
255
255
  var tmp_1 = keypair.privateKey;
256
256
  return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
257
257
  };
258
- protoOf(Signature).lo = function (message, secretKey) {
258
+ protoOf(Signature).lp = function (message, secretKey) {
259
259
  return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
260
260
  };
261
- protoOf(Signature).mo = function (signature, message, publicKey) {
261
+ protoOf(Signature).mp = function (signature, message, publicKey) {
262
262
  var verificationResult = getSodium().crypto_sign_verify_detached(toUInt8Array(signature), toUInt8Array(message), toUInt8Array(publicKey));
263
263
  if (verificationResult === false) {
264
264
  throw new InvalidSignatureException();
@@ -1,12 +1,12 @@
1
1
  (function (_, kotlin_kotlin) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var Unit_instance = kotlin_kotlin.$_$.l5;
4
+ var Unit_instance = kotlin_kotlin.$_$.f5;
5
5
  var VOID = kotlin_kotlin.$_$.h;
6
- var protoOf = kotlin_kotlin.$_$.yb;
7
- var toIntOrNull = kotlin_kotlin.$_$.pe;
8
- var toBoolean = kotlin_kotlin.$_$.le;
9
- var initMetadataForClass = kotlin_kotlin.$_$.wa;
6
+ var protoOf = kotlin_kotlin.$_$.hb;
7
+ var toIntOrNull = kotlin_kotlin.$_$.td;
8
+ var toBoolean = kotlin_kotlin.$_$.pd;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.ha;
10
10
  //endregion
11
11
  //region block: pre-declaration
12
12
  initMetadataForClass(StorageSettings, 'StorageSettings', StorageSettings);
@@ -20,46 +20,46 @@
20
20
  tmp = delegate;
21
21
  }
22
22
  delegate = tmp;
23
- this.k6g_1 = delegate;
23
+ this.y60_1 = delegate;
24
24
  }
25
25
  protoOf(StorageSettings).e2 = function () {
26
- return this.k6g_1.clear();
26
+ return this.y60_1.clear();
27
27
  };
28
- protoOf(StorageSettings).t2o = function (key) {
29
- return this.k6g_1.removeItem(key);
28
+ protoOf(StorageSettings).v2p = function (key) {
29
+ return this.y60_1.removeItem(key);
30
30
  };
31
- protoOf(StorageSettings).l6g = function (key) {
31
+ protoOf(StorageSettings).z60 = function (key) {
32
32
  // Inline function 'com.russhwolf.settings.get' call
33
- return !(this.k6g_1.getItem(key) == null);
33
+ return !(this.y60_1.getItem(key) == null);
34
34
  };
35
- protoOf(StorageSettings).m6g = function (key, value) {
36
- var tmp0 = this.k6g_1;
35
+ protoOf(StorageSettings).a61 = function (key, value) {
36
+ var tmp0 = this.y60_1;
37
37
  // Inline function 'com.russhwolf.settings.set' call
38
38
  var value_0 = value.toString();
39
39
  tmp0.setItem(key, value_0);
40
40
  };
41
- protoOf(StorageSettings).n6g = function (key) {
41
+ protoOf(StorageSettings).b61 = function (key) {
42
42
  // Inline function 'com.russhwolf.settings.get' call
43
- var tmp0_safe_receiver = this.k6g_1.getItem(key);
43
+ var tmp0_safe_receiver = this.y60_1.getItem(key);
44
44
  return tmp0_safe_receiver == null ? null : toIntOrNull(tmp0_safe_receiver);
45
45
  };
46
- protoOf(StorageSettings).o6g = function (key, value) {
46
+ protoOf(StorageSettings).c61 = function (key, value) {
47
47
  // Inline function 'com.russhwolf.settings.set' call
48
- this.k6g_1.setItem(key, value);
48
+ this.y60_1.setItem(key, value);
49
49
  };
50
- protoOf(StorageSettings).p6g = function (key) {
50
+ protoOf(StorageSettings).d61 = function (key) {
51
51
  // Inline function 'com.russhwolf.settings.get' call
52
- return this.k6g_1.getItem(key);
52
+ return this.y60_1.getItem(key);
53
53
  };
54
- protoOf(StorageSettings).q6g = function (key, value) {
55
- var tmp0 = this.k6g_1;
54
+ protoOf(StorageSettings).e61 = function (key, value) {
55
+ var tmp0 = this.y60_1;
56
56
  // Inline function 'com.russhwolf.settings.set' call
57
57
  var value_0 = value.toString();
58
58
  tmp0.setItem(key, value_0);
59
59
  };
60
- protoOf(StorageSettings).r6g = function (key) {
60
+ protoOf(StorageSettings).f61 = function (key) {
61
61
  // Inline function 'com.russhwolf.settings.get' call
62
- var tmp0_safe_receiver = this.k6g_1.getItem(key);
62
+ var tmp0_safe_receiver = this.y60_1.getItem(key);
63
63
  return tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
64
64
  };
65
65
  //region block: exports
@@ -2038,17 +2038,16 @@ export declare namespace com.doordeck.multiplatform.sdk.model.responses {
2038
2038
  }
2039
2039
  export declare namespace com.doordeck.multiplatform.sdk.model.responses {
2040
2040
  class LockResponse {
2041
- constructor(id: string, name: string, colour: Nullable<string> | undefined, start: Nullable<string> | undefined, end: Nullable<string> | undefined, role: com.doordeck.multiplatform.sdk.model.common.UserRole, settings: com.doordeck.multiplatform.sdk.model.responses.LockSettingsResponse, state: com.doordeck.multiplatform.sdk.model.responses.LockStateResponse, favourite: boolean);
2041
+ constructor(id: string, name: string, start: Nullable<string> | undefined, end: Nullable<string> | undefined, role: com.doordeck.multiplatform.sdk.model.common.UserRole, settings: com.doordeck.multiplatform.sdk.model.responses.LockSettingsResponse, state: com.doordeck.multiplatform.sdk.model.responses.LockStateResponse, favourite: boolean);
2042
2042
  get id(): string;
2043
2043
  get name(): string;
2044
- get colour(): Nullable<string>;
2045
2044
  get start(): Nullable<string>;
2046
2045
  get end(): Nullable<string>;
2047
2046
  get role(): com.doordeck.multiplatform.sdk.model.common.UserRole;
2048
2047
  get settings(): com.doordeck.multiplatform.sdk.model.responses.LockSettingsResponse;
2049
2048
  get state(): com.doordeck.multiplatform.sdk.model.responses.LockStateResponse;
2050
2049
  get favourite(): boolean;
2051
- copy(id?: string, name?: string, colour?: Nullable<string>, start?: Nullable<string>, end?: Nullable<string>, role?: com.doordeck.multiplatform.sdk.model.common.UserRole, settings?: com.doordeck.multiplatform.sdk.model.responses.LockSettingsResponse, state?: com.doordeck.multiplatform.sdk.model.responses.LockStateResponse, favourite?: boolean): com.doordeck.multiplatform.sdk.model.responses.LockResponse;
2050
+ copy(id?: string, name?: string, start?: Nullable<string>, end?: Nullable<string>, role?: com.doordeck.multiplatform.sdk.model.common.UserRole, settings?: com.doordeck.multiplatform.sdk.model.responses.LockSettingsResponse, state?: com.doordeck.multiplatform.sdk.model.responses.LockStateResponse, favourite?: boolean): com.doordeck.multiplatform.sdk.model.responses.LockResponse;
2052
2051
  toString(): string;
2053
2052
  hashCode(): number;
2054
2053
  equals(other: Nullable<any>): boolean;
@@ -2138,9 +2137,9 @@ export declare namespace com.doordeck.multiplatform.sdk.model.responses {
2138
2137
  const constructor: abstract new () => UnlockBetweenSettingResponse;
2139
2138
  }
2140
2139
  class LockStateResponse {
2141
- constructor(connected: boolean);
2142
- get connected(): boolean;
2143
- copy(connected?: boolean): com.doordeck.multiplatform.sdk.model.responses.LockStateResponse;
2140
+ constructor(connected?: Nullable<boolean>);
2141
+ get connected(): Nullable<boolean>;
2142
+ copy(connected?: Nullable<boolean>): com.doordeck.multiplatform.sdk.model.responses.LockStateResponse;
2144
2143
  toString(): string;
2145
2144
  hashCode(): number;
2146
2145
  equals(other: Nullable<any>): boolean;
@@ -2477,17 +2476,15 @@ export declare namespace com.doordeck.multiplatform.sdk.model.responses {
2477
2476
  }
2478
2477
  export declare namespace com.doordeck.multiplatform.sdk.model.responses {
2479
2478
  class SiteResponse {
2480
- constructor(id: string, name: string, colour: string, longitude: number, latitude: number, radius: number, passBackground: string, created: string, updated: string);
2479
+ constructor(id: string, name: string, longitude: number, latitude: number, radius: number, created: string, updated: string);
2481
2480
  get id(): string;
2482
2481
  get name(): string;
2483
- get colour(): string;
2484
2482
  get longitude(): number;
2485
2483
  get latitude(): number;
2486
2484
  get radius(): number;
2487
- get passBackground(): string;
2488
2485
  get created(): string;
2489
2486
  get updated(): string;
2490
- copy(id?: string, name?: string, colour?: string, longitude?: number, latitude?: number, radius?: number, passBackground?: string, created?: string, updated?: string): com.doordeck.multiplatform.sdk.model.responses.SiteResponse;
2487
+ copy(id?: string, name?: string, longitude?: number, latitude?: number, radius?: number, created?: string, updated?: string): com.doordeck.multiplatform.sdk.model.responses.SiteResponse;
2491
2488
  toString(): string;
2492
2489
  hashCode(): number;
2493
2490
  equals(other: Nullable<any>): boolean;