@soltech/fluid-common 0.4.13 → 0.4.15

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
@@ -31,7 +31,6 @@ export interface WalletInitParams {
31
31
  export interface WalletConfig {
32
32
  contentText: Record<string, string>;
33
33
  defaultDepositAmount: number;
34
- defaultWithdrawalAmount: number;
35
34
  integration: Integration;
36
35
  logo: string;
37
36
  suggestedDepositAmounts: number[];
@@ -63,6 +62,7 @@ export interface PaymentMethod {
63
62
  providerType: string;
64
63
  inputFields?: InputField[];
65
64
  bonusCodes?: string[];
65
+ instructions?: string;
66
66
  }
67
67
  export interface PaymentMethodLogo {
68
68
  height: number;
@@ -161,13 +161,12 @@ export declare enum TransactionState {
161
161
  export interface ProviderTransactionError {
162
162
  code: string;
163
163
  text: string;
164
- action: ErrorAction;
164
+ action: Action;
165
165
  }
166
- export declare enum ErrorAction {
167
- RETURN_STEP1 = "RETURN_STEP1",
168
- RETURN_STEP1_FORCE_NEW_METHOD = "RETURN_STEP1_FORCE_NEW_METHOD",
169
- RETURN_STEP2 = "RETURN_STEP2",
170
- BLOCK_DEPOSITS = "BLOCK_DEPOSITS"
166
+ export declare enum Action {
167
+ SHOW_DEPOSIT_INPUT = "SHOW_DEPOSIT_INPUT",
168
+ SHOW_DEPOSIT_INPUT_NEW_METHOD = "SHOW_DEPOSIT_INPUT_NEW_METHOD",
169
+ SHOW_DEPOSIT_DETAILS = "SHOW_DEPOSIT_DETAILS"
171
170
  }
172
171
  export interface PendingWithdrawal {
173
172
  amount: string;
package/lib/index.js CHANGED
@@ -30,13 +30,12 @@ export var TransactionState;
30
30
  TransactionState["WAITING_APPROVAL"] = "WAITING_APPROVAL";
31
31
  TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
32
32
  })(TransactionState || (TransactionState = {}));
33
- export var ErrorAction;
34
- (function (ErrorAction) {
35
- ErrorAction["RETURN_STEP1"] = "RETURN_STEP1";
36
- ErrorAction["RETURN_STEP1_FORCE_NEW_METHOD"] = "RETURN_STEP1_FORCE_NEW_METHOD";
37
- ErrorAction["RETURN_STEP2"] = "RETURN_STEP2";
38
- ErrorAction["BLOCK_DEPOSITS"] = "BLOCK_DEPOSITS";
39
- })(ErrorAction || (ErrorAction = {}));
33
+ export var Action;
34
+ (function (Action) {
35
+ Action["SHOW_DEPOSIT_INPUT"] = "SHOW_DEPOSIT_INPUT";
36
+ Action["SHOW_DEPOSIT_INPUT_NEW_METHOD"] = "SHOW_DEPOSIT_INPUT_NEW_METHOD";
37
+ Action["SHOW_DEPOSIT_DETAILS"] = "SHOW_DEPOSIT_DETAILS";
38
+ })(Action || (Action = {}));
40
39
  export var WithdrawalState;
41
40
  (function (WithdrawalState) {
42
41
  WithdrawalState["REQUESTED"] = "REQUESTED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -38,7 +38,6 @@ export interface WalletInitParams {
38
38
  export interface WalletConfig {
39
39
  contentText: Record<string, string>;
40
40
  defaultDepositAmount: number;
41
- defaultWithdrawalAmount: number;
42
41
  integration: Integration;
43
42
  logo: string;
44
43
  suggestedDepositAmounts: number[];
@@ -74,6 +73,7 @@ export interface PaymentMethod {
74
73
  providerType: string;
75
74
  inputFields?: InputField[];
76
75
  bonusCodes?: string[];
76
+ instructions?: string;
77
77
  }
78
78
 
79
79
  export interface PaymentMethodLogo {
@@ -186,14 +186,13 @@ export enum TransactionState {
186
186
  export interface ProviderTransactionError {
187
187
  code: string;
188
188
  text: string;
189
- action: ErrorAction;
189
+ action: Action;
190
190
  }
191
191
 
192
- export enum ErrorAction {
193
- RETURN_STEP1 = 'RETURN_STEP1',
194
- RETURN_STEP1_FORCE_NEW_METHOD = 'RETURN_STEP1_FORCE_NEW_METHOD',
195
- RETURN_STEP2 = 'RETURN_STEP2',
196
- BLOCK_DEPOSITS = 'BLOCK_DEPOSITS'
192
+ export enum Action {
193
+ SHOW_DEPOSIT_INPUT = 'SHOW_DEPOSIT_INPUT',
194
+ SHOW_DEPOSIT_INPUT_NEW_METHOD = 'SHOW_DEPOSIT_INPUT_NEW_METHOD',
195
+ SHOW_DEPOSIT_DETAILS = 'SHOW_DEPOSIT_DETAILS'
197
196
  }
198
197
 
199
198
  export interface PendingWithdrawal {
@@ -217,4 +216,4 @@ export interface AvailableBonusWithPaymentMethods {
217
216
  export interface BonusPaymentMethod {
218
217
  providerType: string;
219
218
  service?: string;
220
- }
219
+ }