@soltech/fluid-common 0.6.33 → 0.6.35

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
@@ -25,6 +25,7 @@ export interface WalletRequestBody {
25
25
  payloadOptions?: TransactionOptions;
26
26
  }
27
27
  export interface WalletInitParams {
28
+ country: string;
28
29
  locale: string;
29
30
  operatorId: number;
30
31
  sessionId: string;
@@ -40,7 +41,7 @@ export interface WalletConfig {
40
41
  logo: string;
41
42
  suggestedDepositAmounts: number[];
42
43
  theme: Record<string, string>;
43
- enableAiPredictions: boolean;
44
+ aiPredictionsEnabled: boolean;
44
45
  balanceDisplayed: boolean;
45
46
  transactionToggleDisplayed: boolean;
46
47
  }
@@ -212,15 +213,15 @@ export interface TrackingEvent {
212
213
  }
213
214
  export interface UserData {
214
215
  age?: number;
215
- country?: string;
216
216
  dayOfMonth?: string;
217
217
  dayOfWeek?: string;
218
218
  previousDeposit?: number;
219
219
  timeOfDay?: string;
220
220
  }
221
221
  export interface AiModelQueryParams {
222
+ country: string;
222
223
  operatorId: number;
223
- userData: UserData;
224
+ userData?: UserData;
224
225
  }
225
226
  export interface SuggestedAmountsPrediction {
226
227
  prefilled: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.6.33",
3
+ "version": "0.6.35",
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
@@ -30,6 +30,7 @@ export interface WalletRequestBody {
30
30
  }
31
31
 
32
32
  export interface WalletInitParams {
33
+ country: string;
33
34
  locale: string;
34
35
  operatorId: number;
35
36
  sessionId: string;
@@ -46,7 +47,7 @@ export interface WalletConfig {
46
47
  logo: string;
47
48
  suggestedDepositAmounts: number[];
48
49
  theme: Record<string, string>;
49
- enableAiPredictions: boolean;
50
+ aiPredictionsEnabled: boolean;
50
51
  balanceDisplayed: boolean;
51
52
  transactionToggleDisplayed: boolean;
52
53
  }
@@ -244,7 +245,6 @@ export interface TrackingEvent {
244
245
 
245
246
  export interface UserData {
246
247
  age?: number;
247
- country?: string;
248
248
  dayOfMonth?: string;
249
249
  dayOfWeek?: string;
250
250
  previousDeposit?: number;
@@ -252,8 +252,9 @@ export interface UserData {
252
252
  }
253
253
 
254
254
  export interface AiModelQueryParams {
255
+ country: string;
255
256
  operatorId: number;
256
- userData: UserData;
257
+ userData?: UserData;
257
258
  }
258
259
 
259
260
  export interface SuggestedAmountsPrediction {