wallaby-cash 1.3.17 → 1.4.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 +1 -0
- package/dist/base.d.ts +30 -30
- package/dist/helpers/logger.d.ts +2 -2
- package/dist/index.cjs.js +6980 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +45 -45
- package/dist/index.esm.js +6971 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6971 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/index.d.ts +62 -61
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/merchants/index.d.ts +59 -59
- package/dist/lib/system/index.d.ts +32 -32
- package/dist/lib/transactions/index.d.ts +80 -80
- package/dist/lib/utils/index.d.ts +53 -49
- package/dist/lib/utils/utils.d.ts +78 -77
- package/dist/lib/wallet/index.d.ts +134 -122
- package/dist/routes/auth.d.ts +38 -38
- package/dist/routes/index.d.ts +3 -3
- package/dist/routes/merchants.d.ts +50 -50
- package/dist/routes/system.d.ts +23 -23
- package/dist/routes/transactions.d.ts +37 -37
- package/dist/routes/wallet.d.ts +58 -58
- package/dist/tests/data/auth.d.ts +11 -11
- package/dist/tests/data/config.d.ts +6 -6
- package/dist/tests/data/index.d.ts +5 -5
- package/dist/tests/data/merchants.d.ts +8 -8
- package/dist/tests/data/system.d.ts +47 -47
- package/dist/tests/data/user.d.ts +22 -21
- package/dist/types/auth.d.ts +45 -38
- package/dist/types/common.d.ts +222 -216
- package/dist/types/index.d.ts +5 -5
- package/dist/types/merchants.d.ts +47 -47
- package/dist/types/transactions.d.ts +125 -125
- package/dist/types/wallet.d.ts +128 -132
- package/package.json +44 -28
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/localStorageMock.d.ts +0 -7
- package/src/base.ts +0 -152
- package/src/helpers/logger.ts +0 -11
- package/src/index.ts +0 -58
- package/src/lib/auth/index.ts +0 -250
- package/src/lib/index.ts +0 -4
- package/src/lib/merchants/index.ts +0 -166
- package/src/lib/system/index.ts +0 -104
- package/src/lib/transactions/index.ts +0 -271
- package/src/lib/utils/index.ts +0 -174
- package/src/lib/utils/utils.ts +0 -288
- package/src/lib/wallet/index.ts +0 -701
- package/src/localStorageMock.js +0 -23
- package/src/routes/auth.ts +0 -39
- package/src/routes/index.ts +0 -3
- package/src/routes/merchants.ts +0 -39
- package/src/routes/system.ts +0 -24
- package/src/routes/transactions.ts +0 -50
- package/src/routes/wallet.ts +0 -70
- package/src/tests/__mocks__/axios.js +0 -4
- package/src/tests/__mocks__/localStorageMock.js +0 -23
- package/src/tests/auth.spec.ts +0 -125
- package/src/tests/data/auth.ts +0 -49
- package/src/tests/data/config.ts +0 -8
- package/src/tests/data/index.ts +0 -5
- package/src/tests/data/merchants.ts +0 -8
- package/src/tests/data/system.ts +0 -54
- package/src/tests/data/user.ts +0 -26
- package/src/tests/merchants.spec.ts +0 -72
- package/src/tests/system.spec.ts +0 -45
- package/src/tests/utils.spec.ts +0 -66
- package/src/tests/wallet.spec.ts +0 -50
- package/src/types/auth.ts +0 -45
- package/src/types/common.ts +0 -242
- package/src/types/index.ts +0 -5
- package/src/types/merchants.ts +0 -52
- package/src/types/transactions.ts +0 -138
- package/src/types/wallet.ts +0 -151
package/README.md
CHANGED
package/dist/base.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { WallabyConfig, RequestOptions, RequestRoute, WallabyConfigOptions } from './types';
|
|
2
|
-
export declare abstract class Base {
|
|
3
|
-
private apiKey;
|
|
4
|
-
private baseUrl;
|
|
5
|
-
userId: string;
|
|
6
|
-
jwt?: string;
|
|
7
|
-
options?: WallabyConfigOptions;
|
|
8
|
-
constructor(config: WallabyConfig);
|
|
9
|
-
protected get device(): {
|
|
10
|
-
authTokens: {
|
|
11
|
-
accessToken:
|
|
12
|
-
clientAuthToken: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
user: {
|
|
15
|
-
clientUserId: string;
|
|
16
|
-
encryptedStandardSeedPhrase: string | undefined;
|
|
17
|
-
encryptedAlgorandSeedPhrase: string | undefined;
|
|
18
|
-
wallabyUserId: undefined;
|
|
19
|
-
};
|
|
20
|
-
encryptionKeys: {
|
|
21
|
-
deviceEncryptedPrivateKey: import("./types").UtilsResponse;
|
|
22
|
-
devicePublicKey: undefined;
|
|
23
|
-
apiPublicKey: import("./types").UtilsResponse;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
private get settings();
|
|
27
|
-
protected request<T>(route: RequestRoute, options?: RequestOptions): Promise<T | any>;
|
|
28
|
-
private getRequestHeaders;
|
|
29
|
-
private loadDeviceInformation;
|
|
30
|
-
}
|
|
1
|
+
import { WallabyConfig, RequestOptions, RequestRoute, WallabyConfigOptions } from './types';
|
|
2
|
+
export declare abstract class Base {
|
|
3
|
+
private apiKey;
|
|
4
|
+
private baseUrl;
|
|
5
|
+
userId: string;
|
|
6
|
+
jwt?: string;
|
|
7
|
+
options?: WallabyConfigOptions;
|
|
8
|
+
constructor(config: WallabyConfig);
|
|
9
|
+
protected get device(): {
|
|
10
|
+
authTokens: {
|
|
11
|
+
accessToken: string | undefined;
|
|
12
|
+
clientAuthToken: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
user: {
|
|
15
|
+
clientUserId: string;
|
|
16
|
+
encryptedStandardSeedPhrase: string | undefined;
|
|
17
|
+
encryptedAlgorandSeedPhrase: string | undefined;
|
|
18
|
+
wallabyUserId: undefined;
|
|
19
|
+
};
|
|
20
|
+
encryptionKeys: {
|
|
21
|
+
deviceEncryptedPrivateKey: import("./types").UtilsResponse;
|
|
22
|
+
devicePublicKey: undefined;
|
|
23
|
+
apiPublicKey: import("./types").UtilsResponse;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
private get settings();
|
|
27
|
+
protected request<T>(route: RequestRoute, options?: RequestOptions): Promise<T | any>;
|
|
28
|
+
private getRequestHeaders;
|
|
29
|
+
private loadDeviceInformation;
|
|
30
|
+
}
|
package/dist/helpers/logger.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const logger: (message: string, data?: any) => void;
|
|
2
|
-
export default logger;
|
|
1
|
+
declare const logger: (message: string, data?: any) => void;
|
|
2
|
+
export default logger;
|