@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.
- package/kotlin/Kermit-kermit-core.js +59 -59
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2 -6459
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +41 -41
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +7 -10
- package/kotlin/doordeck-sdk.js +11675 -11703
- package/kotlin/kotlin-kotlin-stdlib.js +2443 -1933
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2039 -2039
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +544 -544
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2087 -2075
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1554 -1538
- package/kotlin/ktor-ktor-client-auth.js +275 -275
- package/kotlin/ktor-ktor-client-content-negotiation.js +163 -163
- package/kotlin/ktor-ktor-client-core.js +1995 -2013
- package/kotlin/ktor-ktor-client-logging.js +723 -723
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +458 -441
- package/kotlin/ktor-ktor-http.js +830 -830
- package/kotlin/ktor-ktor-io.js +690 -690
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +177 -177
- package/kotlin/ktor-ktor-serialization.js +79 -79
- package/kotlin/ktor-ktor-utils.js +793 -793
- package/kotlin/ktor-ktor-websockets.js +53 -53
- 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.$_$.
|
|
8
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
9
|
-
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
11
|
-
var equals = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
14
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
15
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
16
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
17
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
18
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
19
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
20
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
22
|
+
var initMetadataForObject = kotlin_kotlin.$_$.na;
|
|
23
23
|
var VOID = kotlin_kotlin.$_$.h;
|
|
24
|
-
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.
|
|
25
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
26
|
-
var println = kotlin_kotlin.$_$.
|
|
27
|
-
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.
|
|
28
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.
|
|
29
|
-
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.
|
|
30
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
31
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
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.
|
|
89
|
-
this.
|
|
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.
|
|
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.
|
|
96
|
-
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.
|
|
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.
|
|
105
|
+
if (!equals(this.vo_1, tmp0_other_with_cast.vo_1))
|
|
106
106
|
return false;
|
|
107
|
-
if (!equals(this.
|
|
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).
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
224
|
+
this.hp_1 = false;
|
|
225
225
|
}
|
|
226
|
-
protoOf(LibsodiumInitializer).
|
|
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).
|
|
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).
|
|
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).
|
|
258
|
+
protoOf(Signature).lp = function (message, secretKey) {
|
|
259
259
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
260
260
|
};
|
|
261
|
-
protoOf(Signature).
|
|
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.$_$.
|
|
4
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.h;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
8
|
-
var toBoolean = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
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.
|
|
23
|
+
this.y60_1 = delegate;
|
|
24
24
|
}
|
|
25
25
|
protoOf(StorageSettings).e2 = function () {
|
|
26
|
-
return this.
|
|
26
|
+
return this.y60_1.clear();
|
|
27
27
|
};
|
|
28
|
-
protoOf(StorageSettings).
|
|
29
|
-
return this.
|
|
28
|
+
protoOf(StorageSettings).v2p = function (key) {
|
|
29
|
+
return this.y60_1.removeItem(key);
|
|
30
30
|
};
|
|
31
|
-
protoOf(StorageSettings).
|
|
31
|
+
protoOf(StorageSettings).z60 = function (key) {
|
|
32
32
|
// Inline function 'com.russhwolf.settings.get' call
|
|
33
|
-
return !(this.
|
|
33
|
+
return !(this.y60_1.getItem(key) == null);
|
|
34
34
|
};
|
|
35
|
-
protoOf(StorageSettings).
|
|
36
|
-
var tmp0 = this.
|
|
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).
|
|
41
|
+
protoOf(StorageSettings).b61 = function (key) {
|
|
42
42
|
// Inline function 'com.russhwolf.settings.get' call
|
|
43
|
-
var tmp0_safe_receiver = this.
|
|
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).
|
|
46
|
+
protoOf(StorageSettings).c61 = function (key, value) {
|
|
47
47
|
// Inline function 'com.russhwolf.settings.set' call
|
|
48
|
-
this.
|
|
48
|
+
this.y60_1.setItem(key, value);
|
|
49
49
|
};
|
|
50
|
-
protoOf(StorageSettings).
|
|
50
|
+
protoOf(StorageSettings).d61 = function (key) {
|
|
51
51
|
// Inline function 'com.russhwolf.settings.get' call
|
|
52
|
-
return this.
|
|
52
|
+
return this.y60_1.getItem(key);
|
|
53
53
|
};
|
|
54
|
-
protoOf(StorageSettings).
|
|
55
|
-
var tmp0 = this.
|
|
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).
|
|
60
|
+
protoOf(StorageSettings).f61 = function (key) {
|
|
61
61
|
// Inline function 'com.russhwolf.settings.get' call
|
|
62
|
-
var tmp0_safe_receiver = this.
|
|
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
|
package/kotlin/doordeck-sdk.d.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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;
|