wallaby-cash 1.3.13 → 1.3.16-almonds

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 (48) hide show
  1. package/dist/base.d.ts +30 -30
  2. package/dist/helpers/logger.d.ts +3 -2
  3. package/dist/index.d.ts +45 -45
  4. package/dist/index.esm.js +2613 -2
  5. package/dist/lib/auth/index.d.ts +61 -61
  6. package/dist/lib/index.d.ts +4 -4
  7. package/dist/lib/merchants/index.d.ts +59 -59
  8. package/dist/lib/system/index.d.ts +32 -32
  9. package/dist/lib/transactions/index.d.ts +79 -79
  10. package/dist/lib/utils/index.d.ts +49 -49
  11. package/dist/lib/utils/utils.d.ts +77 -77
  12. package/dist/lib/wallet/index.d.ts +122 -122
  13. package/dist/routes/auth.d.ts +38 -38
  14. package/dist/routes/index.d.ts +3 -3
  15. package/dist/routes/merchants.d.ts +50 -50
  16. package/dist/routes/system.d.ts +23 -23
  17. package/dist/routes/transactions.d.ts +35 -35
  18. package/dist/routes/wallet.d.ts +58 -58
  19. package/dist/tests/data/auth.d.ts +11 -11
  20. package/dist/tests/data/config.d.ts +6 -6
  21. package/dist/tests/data/index.d.ts +5 -5
  22. package/dist/tests/data/merchants.d.ts +8 -8
  23. package/dist/tests/data/system.d.ts +47 -47
  24. package/dist/tests/data/user.d.ts +21 -21
  25. package/dist/types/auth.d.ts +38 -38
  26. package/dist/types/common.d.ts +215 -215
  27. package/dist/types/index.d.ts +5 -5
  28. package/dist/types/merchants.d.ts +47 -47
  29. package/dist/types/transactions.d.ts +124 -124
  30. package/dist/types/wallet.d.ts +132 -132
  31. package/package.json +17 -7
  32. package/src/base.ts +7 -7
  33. package/src/helpers/logger.ts +6 -8
  34. package/src/lib/auth/index.ts +7 -6
  35. package/src/lib/merchants/index.ts +7 -7
  36. package/src/lib/system/index.ts +8 -8
  37. package/src/lib/transactions/index.ts +5 -5
  38. package/src/lib/utils/index.ts +3 -3
  39. package/src/lib/utils/utils.ts +7 -7
  40. package/src/lib/wallet/index.ts +35 -30
  41. package/src/types/wallet.ts +1 -1
  42. package/LICENSE +0 -21
  43. package/dist/index.esm.js.map +0 -1
  44. package/dist/index.js +0 -2
  45. package/dist/index.js.map +0 -1
  46. package/dist/index.umd.js +0 -2
  47. package/dist/index.umd.js.map +0 -1
  48. package/dist/localStorageMock.d.ts +0 -7
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: import("./types").UtilsResponse | import("./types").WallabyError;
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: import("./types").UtilsResponse | import("./types").WallabyError;
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,2 +1,3 @@
1
- declare const logger: (message: string, data?: any) => void;
2
- export default logger;
1
+ import winston from 'winston';
2
+ declare const logger: winston.Logger;
3
+ export default logger;
package/dist/index.d.ts CHANGED
@@ -1,45 +1,45 @@
1
- import { WallabyConfig } from './types';
2
- import { Auth, Wallet, Utils } from './lib';
3
- import { System } from './lib/system';
4
- import { Transactions } from './lib/transactions';
5
- export * from './types';
6
- /**
7
- * The Wallaby SDK client. This class is the main entry point into Wallaby's
8
- * APIs and separates functionality into different domains.
9
- *
10
- * @public
11
- */
12
- export declare class Wallaby {
13
- /**
14
- * The `auth` domain contains functions to authenticate user in Wallany's system.
15
- * @public
16
- */
17
- readonly auth: Auth;
18
- /**
19
- * Thi `system` domain contains functions that get system specific data like available blockchains, or available token.
20
- * @public
21
- */
22
- readonly system: System;
23
- /**
24
- * The `Utils` domain contains helper functions for interacting with local storage.
25
- * @public
26
- */
27
- readonly utils: Utils;
28
- /**
29
- * The `wallet` domain contains all wallet calls to Wallaby's APIs.
30
- * @public
31
- */
32
- readonly wallet: Wallet;
33
- /**
34
- * The `transactions` domain contains all transactions calls to Wallaby's APIs.
35
- */
36
- readonly transactions: Transactions;
37
- /**
38
- * @param {string} [config.apiKey] - The API key to use for Wallaby
39
- * @param {string} [config.baseUrl] - The baseUrl for the API endpoints
40
- * @param {string} [config.userId] - The client user ID
41
- * @param {string} [config.jwt] - A web token generated by the client for authorization
42
- * @public
43
- */
44
- constructor(config: WallabyConfig);
45
- }
1
+ import { WallabyConfig } from './types';
2
+ import { Auth, Wallet, Utils } from './lib';
3
+ import { System } from './lib/system';
4
+ import { Transactions } from './lib/transactions';
5
+ export * from './types';
6
+ /**
7
+ * The Wallaby SDK client. This class is the main entry point into Wallaby's
8
+ * APIs and separates functionality into different domains.
9
+ *
10
+ * @public
11
+ */
12
+ export declare class Wallaby {
13
+ /**
14
+ * The `auth` domain contains functions to authenticate user in Wallany's system.
15
+ * @public
16
+ */
17
+ readonly auth: Auth;
18
+ /**
19
+ * Thi `system` domain contains functions that get system specific data like available blockchains, or available token.
20
+ * @public
21
+ */
22
+ readonly system: System;
23
+ /**
24
+ * The `Utils` domain contains helper functions for interacting with local storage.
25
+ * @public
26
+ */
27
+ readonly utils: Utils;
28
+ /**
29
+ * The `wallet` domain contains all wallet calls to Wallaby's APIs.
30
+ * @public
31
+ */
32
+ readonly wallet: Wallet;
33
+ /**
34
+ * The `transactions` domain contains all transactions calls to Wallaby's APIs.
35
+ */
36
+ readonly transactions: Transactions;
37
+ /**
38
+ * @param {string} [config.apiKey] - The API key to use for Wallaby
39
+ * @param {string} [config.baseUrl] - The baseUrl for the API endpoints
40
+ * @param {string} [config.userId] - The client user ID
41
+ * @param {string} [config.jwt] - A web token generated by the client for authorization
42
+ * @public
43
+ */
44
+ constructor(config: WallabyConfig);
45
+ }