@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 +6 -7
- package/lib/index.js +6 -7
- package/package.json +1 -1
- package/src/index.ts +7 -8
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:
|
|
164
|
+
action: Action;
|
|
165
165
|
}
|
|
166
|
-
export declare enum
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
|
34
|
-
(function (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
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:
|
|
189
|
+
action: Action;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
export enum
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
+
}
|