@soltech/fluid-common 0.9.2 → 0.9.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/lib/index.d.ts CHANGED
@@ -50,11 +50,19 @@ export interface WalletConfig {
50
50
  autofillCreditCardName: boolean;
51
51
  contactSupportLink: string;
52
52
  numberCharactersHolderName: number | null;
53
+ aiPredictionsForSuggestedAmountsEnabled: boolean;
54
+ aiPredictionsForDepositMethodsOrderEnabled: boolean;
53
55
  }
54
56
  export interface WalletConfigParams {
55
57
  contentText: Record<string, ContentType>;
56
58
  theme: Record<string, TraitType>;
57
59
  }
60
+ export interface DepositAmountsSettings {
61
+ aiCreationDate: string;
62
+ defaultDepositAmount: number;
63
+ generatedBy: string;
64
+ suggestedDepositAmounts: number[];
65
+ }
58
66
  export interface AllPaymentMethods {
59
67
  recentPaymentMethods: RecentMethod[];
60
68
  paymentMethods: PaymentMethod[];
@@ -171,7 +179,7 @@ export interface TransactionResult {
171
179
  state: TransactionState;
172
180
  statusCode: string;
173
181
  transactionId: string;
174
- suggestedAmounts?: SuggestedAmountsPrediction;
182
+ suggestedAmounts?: DepositAmountsSettings;
175
183
  }
176
184
  export interface RedirectOutput {
177
185
  container: RedirectContainer;
@@ -256,9 +264,3 @@ export interface UserData {
256
264
  lifetimeDeposit?: number;
257
265
  kycStatus?: KycStatus;
258
266
  }
259
- export interface SuggestedAmountsPrediction {
260
- buttons: number[];
261
- aiCreationDate: string;
262
- generatedBy: string;
263
- prefilled: number;
264
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
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
@@ -56,6 +56,8 @@ export interface WalletConfig {
56
56
  autofillCreditCardName: boolean;
57
57
  contactSupportLink: string;
58
58
  numberCharactersHolderName: number | null;
59
+ aiPredictionsForSuggestedAmountsEnabled: boolean;
60
+ aiPredictionsForDepositMethodsOrderEnabled: boolean;
59
61
  }
60
62
 
61
63
  export interface WalletConfigParams {
@@ -63,6 +65,13 @@ export interface WalletConfigParams {
63
65
  theme: Record<string, TraitType>
64
66
  }
65
67
 
68
+ export interface DepositAmountsSettings {
69
+ aiCreationDate: string;
70
+ defaultDepositAmount: number;
71
+ generatedBy: string;
72
+ suggestedDepositAmounts: number[];
73
+ }
74
+
66
75
  export interface AllPaymentMethods {
67
76
  recentPaymentMethods: RecentMethod[];
68
77
  paymentMethods: PaymentMethod[];
@@ -193,7 +202,7 @@ export interface TransactionResult {
193
202
  state: TransactionState;
194
203
  statusCode: string;
195
204
  transactionId: string;
196
- suggestedAmounts?: SuggestedAmountsPrediction;
205
+ suggestedAmounts?: DepositAmountsSettings;
197
206
  }
198
207
 
199
208
  export interface RedirectOutput {
@@ -291,10 +300,3 @@ export interface UserData {
291
300
  lifetimeDeposit?: number;
292
301
  kycStatus?: KycStatus;
293
302
  }
294
-
295
- export interface SuggestedAmountsPrediction {
296
- buttons: number[];
297
- aiCreationDate: string;
298
- generatedBy: string;
299
- prefilled: number;
300
- }