@lifi/types 9.0.3 → 9.2.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.
@@ -7,3 +7,17 @@ export interface ToolError {
7
7
  tool: string;
8
8
  message: string;
9
9
  }
10
+ export declare enum ErrorCode {
11
+ DefaultError = 1000,
12
+ FailedToBuildTransactionError = 1001,
13
+ NoQuoteError = 1002,
14
+ NotFoundError = 1003,
15
+ NotProcessableError = 1004,
16
+ RateLimitError = 1005,
17
+ ServerError = 1006,
18
+ SlippageError = 1007,
19
+ ThirdPartyError = 1008,
20
+ TimeoutError = 1009,
21
+ UnauthorizedError = 1010,
22
+ ValidationError = 1011
23
+ }
package/dist/apiErrors.js CHANGED
@@ -1 +1,16 @@
1
- export {};
1
+ // Error codes emitted by the LI.FI API
2
+ export var ErrorCode;
3
+ (function (ErrorCode) {
4
+ ErrorCode[ErrorCode["DefaultError"] = 1000] = "DefaultError";
5
+ ErrorCode[ErrorCode["FailedToBuildTransactionError"] = 1001] = "FailedToBuildTransactionError";
6
+ ErrorCode[ErrorCode["NoQuoteError"] = 1002] = "NoQuoteError";
7
+ ErrorCode[ErrorCode["NotFoundError"] = 1003] = "NotFoundError";
8
+ ErrorCode[ErrorCode["NotProcessableError"] = 1004] = "NotProcessableError";
9
+ ErrorCode[ErrorCode["RateLimitError"] = 1005] = "RateLimitError";
10
+ ErrorCode[ErrorCode["ServerError"] = 1006] = "ServerError";
11
+ ErrorCode[ErrorCode["SlippageError"] = 1007] = "SlippageError";
12
+ ErrorCode[ErrorCode["ThirdPartyError"] = 1008] = "ThirdPartyError";
13
+ ErrorCode[ErrorCode["TimeoutError"] = 1009] = "TimeoutError";
14
+ ErrorCode[ErrorCode["UnauthorizedError"] = 1010] = "UnauthorizedError";
15
+ ErrorCode[ErrorCode["ValidationError"] = 1011] = "ValidationError";
16
+ })(ErrorCode || (ErrorCode = {}));
@@ -7,3 +7,17 @@ export interface ToolError {
7
7
  tool: string;
8
8
  message: string;
9
9
  }
10
+ export declare enum ErrorCode {
11
+ DefaultError = 1000,
12
+ FailedToBuildTransactionError = 1001,
13
+ NoQuoteError = 1002,
14
+ NotFoundError = 1003,
15
+ NotProcessableError = 1004,
16
+ RateLimitError = 1005,
17
+ ServerError = 1006,
18
+ SlippageError = 1007,
19
+ ThirdPartyError = 1008,
20
+ TimeoutError = 1009,
21
+ UnauthorizedError = 1010,
22
+ ValidationError = 1011
23
+ }
@@ -1,2 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorCode = void 0;
4
+ // Error codes emitted by the LI.FI API
5
+ var ErrorCode;
6
+ (function (ErrorCode) {
7
+ ErrorCode[ErrorCode["DefaultError"] = 1000] = "DefaultError";
8
+ ErrorCode[ErrorCode["FailedToBuildTransactionError"] = 1001] = "FailedToBuildTransactionError";
9
+ ErrorCode[ErrorCode["NoQuoteError"] = 1002] = "NoQuoteError";
10
+ ErrorCode[ErrorCode["NotFoundError"] = 1003] = "NotFoundError";
11
+ ErrorCode[ErrorCode["NotProcessableError"] = 1004] = "NotProcessableError";
12
+ ErrorCode[ErrorCode["RateLimitError"] = 1005] = "RateLimitError";
13
+ ErrorCode[ErrorCode["ServerError"] = 1006] = "ServerError";
14
+ ErrorCode[ErrorCode["SlippageError"] = 1007] = "SlippageError";
15
+ ErrorCode[ErrorCode["ThirdPartyError"] = 1008] = "ThirdPartyError";
16
+ ErrorCode[ErrorCode["TimeoutError"] = 1009] = "TimeoutError";
17
+ ErrorCode[ErrorCode["UnauthorizedError"] = 1010] = "UnauthorizedError";
18
+ ErrorCode[ErrorCode["ValidationError"] = 1011] = "ValidationError";
19
+ })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "9.0.3",
3
+ "version": "9.2.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",