@soltech/fluid-common 0.10.0 → 0.10.1

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/lib/index.d.ts CHANGED
@@ -195,11 +195,10 @@ export interface TransactionOptions {
195
195
  trackingData?: object;
196
196
  }
197
197
  export interface TransactionResult {
198
+ transactionId: string;
199
+ status: TransactionStatus;
198
200
  error?: ProviderTransactionError;
199
201
  redirectOutput?: RedirectOutput;
200
- state: TransactionState;
201
- statusCode: string;
202
- transactionId: string;
203
202
  suggestedAmounts?: DepositAmountsSettings;
204
203
  }
205
204
  export interface RedirectOutput {
@@ -213,7 +212,7 @@ export interface RedirectOutput {
213
212
  width?: number;
214
213
  }
215
214
  export type RedirectContainer = 'iframe' | 'window' | 'redirect';
216
- export declare enum TransactionState {
215
+ export declare enum TransactionStatus {
217
216
  SUCCESS = "SUCCESS",
218
217
  FAIL = "FAIL",
219
218
  PROCESSING = "PROCESSING",
package/lib/index.js CHANGED
@@ -31,15 +31,15 @@ export var RecentMethodMaskedAccountFormat;
31
31
  RecentMethodMaskedAccountFormat["FULL_VALUE"] = "FullValue";
32
32
  RecentMethodMaskedAccountFormat["NOTHING"] = "Nothing";
33
33
  })(RecentMethodMaskedAccountFormat || (RecentMethodMaskedAccountFormat = {}));
34
- export var TransactionState;
35
- (function (TransactionState) {
36
- TransactionState["SUCCESS"] = "SUCCESS";
37
- TransactionState["FAIL"] = "FAIL";
38
- TransactionState["PROCESSING"] = "PROCESSING";
39
- TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
40
- TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
41
- TransactionState["CANCELLED"] = "CANCELLED";
42
- })(TransactionState || (TransactionState = {}));
34
+ export var TransactionStatus;
35
+ (function (TransactionStatus) {
36
+ TransactionStatus["SUCCESS"] = "SUCCESS";
37
+ TransactionStatus["FAIL"] = "FAIL";
38
+ TransactionStatus["PROCESSING"] = "PROCESSING";
39
+ TransactionStatus["WAITING_APPROVAL"] = "WAITING_APPROVAL";
40
+ TransactionStatus["WAITING_INPUT"] = "WAITING_INPUT";
41
+ TransactionStatus["CANCELLED"] = "CANCELLED";
42
+ })(TransactionStatus || (TransactionStatus = {}));
43
43
  export var HttpVerb;
44
44
  (function (HttpVerb) {
45
45
  HttpVerb["DELETE"] = "DELETE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -221,11 +221,10 @@ export interface TransactionOptions {
221
221
  }
222
222
 
223
223
  export interface TransactionResult {
224
+ transactionId: string;
225
+ status: TransactionStatus;
224
226
  error?: ProviderTransactionError;
225
227
  redirectOutput?: RedirectOutput;
226
- state: TransactionState;
227
- statusCode: string;
228
- transactionId: string;
229
228
  suggestedAmounts?: DepositAmountsSettings;
230
229
  }
231
230
 
@@ -242,7 +241,7 @@ export interface RedirectOutput {
242
241
 
243
242
  export type RedirectContainer = 'iframe' | 'window' | 'redirect';
244
243
 
245
- export enum TransactionState {
244
+ export enum TransactionStatus {
246
245
  SUCCESS = 'SUCCESS',
247
246
  FAIL = 'FAIL',
248
247
  PROCESSING = 'PROCESSING',