@lifi/types 2.5.2 → 2.5.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.5.4](https://github.com/lifinance/types/compare/v2.5.2...v2.5.4) (2023-03-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * make insurance on route optional ([#143](https://github.com/lifinance/types/issues/143)) ([0eb8f1b](https://github.com/lifinance/types/commit/0eb8f1bca49f960f8f79d37fac4c94a5c14505a4))
11
+
12
+ ### [2.5.3](https://github.com/lifinance/types/compare/v2.5.2...v2.5.3) (2023-03-17)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * make insurance on route optional ([#143](https://github.com/lifinance/types/issues/143)) ([0eb8f1b](https://github.com/lifinance/types/commit/0eb8f1bca49f960f8f79d37fac4c94a5c14505a4))
18
+
5
19
  ### [2.5.2](https://github.com/lifinance/types/compare/v2.5.1...v2.5.2) (2023-03-16)
6
20
 
7
21
 
package/dist/api.d.ts CHANGED
@@ -58,7 +58,7 @@ export interface Insurance {
58
58
  }
59
59
  export interface Route {
60
60
  id: string;
61
- insurance: Insurance;
61
+ insurance?: Insurance;
62
62
  fromChainId: number;
63
63
  fromAmountUSD: string;
64
64
  fromAmount: string;
@@ -213,7 +213,7 @@ export type SubstatusDone = (typeof _SubstatusDone)[number];
213
213
  declare const _SubstatusFailed: readonly ["NOT_PROCESSABLE_REFUND_NEEDED"];
214
214
  export type SubstatusFailed = (typeof _SubstatusFailed)[number];
215
215
  export type Substatus = SubstatusPending | SubstatusDone | SubstatusFailed;
216
- export declare const isSubstatusPending: (substatus: Substatus) => substatus is "WAIT_SOURCE_CONFIRMATIONS" | "WAIT_DESTINATION_TRANSACTION" | "BRIDGE_NOT_AVAILABLE" | "CHAIN_NOT_AVAILABLE" | "REFUND_IN_PROGRESS" | "UNKNOWN_ERROR";
216
+ export declare const isSubstatusPending: (substatus: Substatus) => substatus is "UNKNOWN_ERROR" | "WAIT_SOURCE_CONFIRMATIONS" | "WAIT_DESTINATION_TRANSACTION" | "BRIDGE_NOT_AVAILABLE" | "CHAIN_NOT_AVAILABLE" | "REFUND_IN_PROGRESS";
217
217
  export declare const isSubstatusDone: (substatus: Substatus) => substatus is "COMPLETED" | "PARTIAL" | "REFUNDED";
218
218
  export declare const isSubstatusFailed: (substatus: Substatus) => substatus is "NOT_PROCESSABLE_REFUND_NEEDED";
219
219
  export interface StatusInformation {
package/dist/cjs/api.d.ts CHANGED
@@ -58,7 +58,7 @@ export interface Insurance {
58
58
  }
59
59
  export interface Route {
60
60
  id: string;
61
- insurance: Insurance;
61
+ insurance?: Insurance;
62
62
  fromChainId: number;
63
63
  fromAmountUSD: string;
64
64
  fromAmount: string;
@@ -213,7 +213,7 @@ export type SubstatusDone = (typeof _SubstatusDone)[number];
213
213
  declare const _SubstatusFailed: readonly ["NOT_PROCESSABLE_REFUND_NEEDED"];
214
214
  export type SubstatusFailed = (typeof _SubstatusFailed)[number];
215
215
  export type Substatus = SubstatusPending | SubstatusDone | SubstatusFailed;
216
- export declare const isSubstatusPending: (substatus: Substatus) => substatus is "WAIT_SOURCE_CONFIRMATIONS" | "WAIT_DESTINATION_TRANSACTION" | "BRIDGE_NOT_AVAILABLE" | "CHAIN_NOT_AVAILABLE" | "REFUND_IN_PROGRESS" | "UNKNOWN_ERROR";
216
+ export declare const isSubstatusPending: (substatus: Substatus) => substatus is "UNKNOWN_ERROR" | "WAIT_SOURCE_CONFIRMATIONS" | "WAIT_DESTINATION_TRANSACTION" | "BRIDGE_NOT_AVAILABLE" | "CHAIN_NOT_AVAILABLE" | "REFUND_IN_PROGRESS";
217
217
  export declare const isSubstatusDone: (substatus: Substatus) => substatus is "COMPLETED" | "PARTIAL" | "REFUNDED";
218
218
  export declare const isSubstatusFailed: (substatus: Substatus) => substatus is "NOT_PROCESSABLE_REFUND_NEEDED";
219
219
  export interface StatusInformation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",
@@ -75,24 +75,24 @@
75
75
  "devDependencies": {
76
76
  "@commitlint/cli": "^17.4.4",
77
77
  "@commitlint/config-conventional": "^17.4.4",
78
- "@types/jest": "^29.4.0",
79
- "@typescript-eslint/eslint-plugin": "^5.54.0",
80
- "@typescript-eslint/parser": "^5.54.0",
81
- "eslint": "^8.35.0",
82
- "eslint-config-prettier": "^8.6.0",
78
+ "@types/jest": "^29.5.0",
79
+ "@typescript-eslint/eslint-plugin": "^5.55.0",
80
+ "@typescript-eslint/parser": "^5.55.0",
81
+ "eslint": "^8.36.0",
82
+ "eslint-config-prettier": "^8.7.0",
83
83
  "eslint-plugin-prettier": "^4.2.1",
84
84
  "husky": "^8.0.3",
85
- "jest": "^29.4.3",
86
- "lint-staged": "^13.1.2",
85
+ "jest": "^29.5.0",
86
+ "lint-staged": "^13.2.0",
87
87
  "npm-run-all": "^4.1.5",
88
88
  "pinst": "^3.0.0",
89
89
  "prettier": "^2.8.4",
90
90
  "standard-version": "^9.5.0",
91
91
  "ts-jest": "^29.0.5",
92
- "typescript": "^4.9.5"
92
+ "typescript": "^5.0.2"
93
93
  },
94
94
  "directories": {
95
95
  "test": "test"
96
96
  },
97
- "packageManager": "yarn@3.4.1"
97
+ "packageManager": "yarn@3.5.0"
98
98
  }