@soltech/fluid-common 0.9.3 → 0.9.5

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[];
@@ -103,18 +111,11 @@ export interface InputFieldOption {
103
111
  label: string;
104
112
  code: string;
105
113
  }
106
- export declare enum RecentMethodMaskedAccountFormat {
107
- DEFAULT = "Default",
108
- LAST_8_DIGITS = "Last8Digits",
109
- FULL_VALUE = "FullValue",
110
- NOTHING = "Nothing"
111
- }
112
114
  export interface RecentMethod extends PaymentMethod {
113
115
  accountId: string;
114
116
  maskedAccount: string;
115
117
  lastSuccess: string;
116
118
  expiryDate: string;
117
- maskedAccountFormat: RecentMethodMaskedAccountFormat;
118
119
  }
119
120
  export interface TransactionParams {
120
121
  accountId?: string;
@@ -178,7 +179,7 @@ export interface TransactionResult {
178
179
  state: TransactionState;
179
180
  statusCode: string;
180
181
  transactionId: string;
181
- suggestedAmounts?: SuggestedAmountsPrediction;
182
+ suggestedAmounts?: DepositAmountsSettings;
182
183
  }
183
184
  export interface RedirectOutput {
184
185
  container: RedirectContainer;
@@ -263,7 +264,3 @@ export interface UserData {
263
264
  lifetimeDeposit?: number;
264
265
  kycStatus?: KycStatus;
265
266
  }
266
- export interface SuggestedAmountsPrediction {
267
- prefilled: number;
268
- buttons: number[];
269
- }
package/lib/index.js CHANGED
@@ -24,13 +24,6 @@ export var PaymentType;
24
24
  PaymentType["CRYPTO"] = "Crypto";
25
25
  PaymentType["EWALLET"] = "EWallet";
26
26
  })(PaymentType || (PaymentType = {}));
27
- export var RecentMethodMaskedAccountFormat;
28
- (function (RecentMethodMaskedAccountFormat) {
29
- RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
30
- RecentMethodMaskedAccountFormat["LAST_8_DIGITS"] = "Last8Digits";
31
- RecentMethodMaskedAccountFormat["FULL_VALUE"] = "FullValue";
32
- RecentMethodMaskedAccountFormat["NOTHING"] = "Nothing";
33
- })(RecentMethodMaskedAccountFormat || (RecentMethodMaskedAccountFormat = {}));
34
27
  export var TransactionState;
35
28
  (function (TransactionState) {
36
29
  TransactionState["SUCCESS"] = "SUCCESS";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
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[];
@@ -118,19 +127,11 @@ export interface InputFieldOption {
118
127
  code: string;
119
128
  }
120
129
 
121
- export enum RecentMethodMaskedAccountFormat {
122
- DEFAULT = 'Default',
123
- LAST_8_DIGITS = 'Last8Digits',
124
- FULL_VALUE = 'FullValue',
125
- NOTHING = 'Nothing'
126
- }
127
-
128
130
  export interface RecentMethod extends PaymentMethod {
129
131
  accountId: string;
130
132
  maskedAccount: string;
131
133
  lastSuccess: string;
132
134
  expiryDate: string;
133
- maskedAccountFormat: RecentMethodMaskedAccountFormat;
134
135
  }
135
136
 
136
137
  export interface TransactionParams {
@@ -201,7 +202,7 @@ export interface TransactionResult {
201
202
  state: TransactionState;
202
203
  statusCode: string;
203
204
  transactionId: string;
204
- suggestedAmounts?: SuggestedAmountsPrediction;
205
+ suggestedAmounts?: DepositAmountsSettings;
205
206
  }
206
207
 
207
208
  export interface RedirectOutput {
@@ -299,8 +300,3 @@ export interface UserData {
299
300
  lifetimeDeposit?: number;
300
301
  kycStatus?: KycStatus;
301
302
  }
302
-
303
- export interface SuggestedAmountsPrediction {
304
- prefilled: number;
305
- buttons: number[];
306
- }