wallaby-cash 2.0.1-alpha.25 → 2.0.1-alpha.26
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/dist/base.d.ts +11 -5
- package/dist/index.cjs.js +695 -512
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +697 -514
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +697 -514
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/auth.model.d.ts +102 -0
- package/dist/lib/auth/auth.service.d.ts +12 -10
- package/dist/lib/auth/passkey.service.d.ts +28 -0
- package/dist/lib/transactions/index.d.ts +7 -5
- package/dist/lib/transactions/transactions.model.d.ts +22 -0
- package/dist/lib/utils/cipher.service.d.ts +2 -2
- package/dist/lib/utils/constants.d.ts +1 -0
- package/dist/lib/utils/is-jwt-expired.d.ts +2 -0
- package/dist/lib/wallet/wallet.service.d.ts +3 -16
- package/dist/package.json +6 -2
- package/dist/types/auth.d.ts +31 -18
- package/dist/types/base.d.ts +10 -2
- package/dist/types/common.d.ts +8 -3
- package/dist/types/transactions.d.ts +1 -2
- package/dist/types/wallet.d.ts +1 -5
- package/package.json +6 -2
package/dist/base.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { WallabyConfig, RequestOptions, RequestRoute, WallabyConfigOptions } from './types';
|
|
1
|
+
import { WallabyConfig, RequestOptions, RequestRoute, WallabyConfigOptions, AuthType } from './types';
|
|
2
2
|
import { StorageService } from './lib/utils/storage.service';
|
|
3
3
|
import { LocalStorage } from './types/storage';
|
|
4
4
|
export declare abstract class Base {
|
|
5
|
+
userId: string;
|
|
5
6
|
private apiKey;
|
|
6
7
|
private baseUrl;
|
|
7
|
-
private jwt?;
|
|
8
8
|
private clientAuthToken;
|
|
9
|
-
|
|
10
|
-
options?: WallabyConfigOptions;
|
|
9
|
+
protected deviceAuthType: AuthType;
|
|
10
|
+
protected options?: WallabyConfigOptions;
|
|
11
11
|
constructor(config: WallabyConfig);
|
|
12
12
|
/**
|
|
13
13
|
* This library uses `localStorage` as the default storage.
|
|
@@ -20,7 +20,13 @@ export declare abstract class Base {
|
|
|
20
20
|
/**
|
|
21
21
|
* @protected
|
|
22
22
|
*/
|
|
23
|
-
protected get device():
|
|
23
|
+
protected get device(): {
|
|
24
|
+
deviceAuthType: AuthType;
|
|
25
|
+
then<TResult1 = import("./types").DeviceInformation, TResult2 = never>(onfulfilled?: ((value: import("./types").DeviceInformation) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
|
|
26
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined): Promise<import("./types").DeviceInformation | TResult>;
|
|
27
|
+
finally(onfinally?: (() => void) | null | undefined): Promise<import("./types").DeviceInformation>;
|
|
28
|
+
[Symbol.toStringTag]: string;
|
|
29
|
+
};
|
|
24
30
|
/**
|
|
25
31
|
* @private
|
|
26
32
|
*/
|