@doordeck/doordeck-headless-sdk 0.49.0 → 0.51.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/README.md CHANGED
@@ -4,12 +4,12 @@ A cross-platform SDK for seamless access to Doordeck’s services. This SDK supp
4
4
  ## Packages
5
5
  We are publishing the packages to multiple repositories:
6
6
 
7
- | Platform | Repository |
8
- |:---------------------------:|----------------------------------------------------------------------------------------------------------------------|
9
- | Multiplatform, Android, JVM | [Maven central](https://central.sonatype.com/namespace/com.doordeck.headless.sdk) |
10
- | iOS, macOS | [Cocoapods](https://cocoapods.org/pods/DoordeckSDK), [SPM](https://github.com/doordeck/doordeck-headless-sdk-spm) |
11
- | JS | [NPM](https://www.npmjs.com/package/@doordeck/doordeck-headless-sdk) |
12
- | Windows | [NuGet](https://www.nuget.org/packages/doordeck_headless_sdk) |
7
+ | Platform | Repository |
8
+ |:---------------------------:|---------------------------------------------------------------------------------------------------------------------|
9
+ | Multiplatform, Android, JVM | [Maven central](https://central.sonatype.com/namespace/com.doordeck.headless.sdk) |
10
+ | iOS, macOS | [Cocoapods](https://cocoapods.org/pods/DoordeckSDK), [SPM](https://github.com/doordeck/doordeck-headless-sdk-spm) |
11
+ | JS | [NPM](https://www.npmjs.com/package/@doordeck/doordeck-headless-sdk) |
12
+ | Windows | [NuGet](https://www.nuget.org/packages/Doordeck.Headless.Sdk) |
13
13
 
14
14
  ## Supported platforms
15
15
  The SDK supports a range of targets for different platforms:
@@ -83,13 +83,22 @@ export declare namespace com.doordeck.multiplatform.sdk {
83
83
  export declare namespace com.doordeck.multiplatform.sdk.api {
84
84
  interface ContextManager {
85
85
  setAuthToken(token: string): void;
86
+ getAuthToken(): Nullable<string>;
86
87
  isAuthTokenAboutToExpire(): boolean;
87
88
  setRefreshToken(token: string): void;
89
+ getRefreshToken(): Nullable<string>;
88
90
  setFusionAuthToken(token: string): void;
91
+ getFusionAuthToken(): Nullable<string>;
89
92
  setUserId(userId: string): void;
93
+ getUserId(): Nullable<string>;
94
+ setUserEmail(email: string): void;
95
+ getUserEmail(): Nullable<string>;
90
96
  setCertificateChain(certificateChain: kotlin.collections.KtList<string>): void;
97
+ getCertificateChain(): Nullable<kotlin.collections.KtList<string>>;
91
98
  isCertificateChainAboutToExpire(): boolean;
92
99
  setKeyPair(publicKey: Int8Array, privateKey: Int8Array): void;
100
+ getKeyPair(): Nullable<com.doordeck.multiplatform.sdk.api.model.Crypto.KeyPair>;
101
+ isKeyPairValid(): boolean;
93
102
  setOperationContext(userId: string, certificateChain: kotlin.collections.KtList<string>, publicKey: Int8Array, privateKey: Int8Array): void;
94
103
  setOperationContextJson(data: string): void;
95
104
  setSecureStorageImpl(secureStorage: com.doordeck.multiplatform.sdk.storage.SecureStorage): void;
@@ -1163,6 +1172,8 @@ export declare namespace com.doordeck.multiplatform.sdk.storage {
1163
1172
  getPrivateKey(): Nullable<Int8Array>;
1164
1173
  addUserId(userId: string): void;
1165
1174
  getUserId(): Nullable<string>;
1175
+ addUserEmail(email: string): void;
1176
+ getUserEmail(): Nullable<string>;
1166
1177
  addCertificateChain(certificateChain: kotlin.collections.KtList<string>): void;
1167
1178
  getCertificateChain(): Nullable<kotlin.collections.KtList<string>>;
1168
1179
  clear(): void;