@soltech/fluid-common 0.6.31 → 0.6.32

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,7 +25,6 @@ export interface WalletRequestBody {
25
25
  payloadOptions?: TransactionOptions;
26
26
  }
27
27
  export interface WalletInitParams {
28
- country: string;
29
28
  locale: string;
30
29
  operatorId: number;
31
30
  sessionId: string;
@@ -42,6 +41,8 @@ export interface WalletConfig {
42
41
  suggestedDepositAmounts: number[];
43
42
  theme: Record<string, string>;
44
43
  enableAiPredictions: boolean;
44
+ balanceDisplayed: boolean;
45
+ transactionToggleDisplayed: boolean;
45
46
  }
46
47
  export interface WalletConfigParams {
47
48
  contentText: Record<string, ContentType>;
@@ -170,11 +171,10 @@ export declare enum TransactionState {
170
171
  WAITING_INPUT = "WAITING_INPUT"
171
172
  }
172
173
  export interface ProviderTransactionError {
173
- action: Action;
174
174
  code: string;
175
- providerCode: string;
176
- text: string;
177
175
  textTitle: string;
176
+ text: string;
177
+ action: Action;
178
178
  }
179
179
  export declare enum Action {
180
180
  RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
@@ -211,15 +211,15 @@ export interface TrackingEvent {
211
211
  }
212
212
  export interface UserData {
213
213
  age?: number;
214
+ country?: string;
214
215
  dayOfMonth?: string;
215
216
  dayOfWeek?: string;
216
217
  previousDeposit?: number;
217
218
  timeOfDay?: string;
218
219
  }
219
220
  export interface AiModelQueryParams {
220
- country: string;
221
221
  operatorId: number;
222
- userData?: UserData;
222
+ userData: UserData;
223
223
  }
224
224
  export interface SuggestedAmountsPrediction {
225
225
  prefilled: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.6.31",
3
+ "version": "0.6.32",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
@@ -33,4 +33,4 @@
33
33
  "lint-staged": {
34
34
  "*.{ts}": "eslint --fix"
35
35
  }
36
- }
36
+ }
package/src/index.ts CHANGED
@@ -30,7 +30,6 @@ export interface WalletRequestBody {
30
30
  }
31
31
 
32
32
  export interface WalletInitParams {
33
- country: string;
34
33
  locale: string;
35
34
  operatorId: number;
36
35
  sessionId: string;
@@ -48,6 +47,8 @@ export interface WalletConfig {
48
47
  suggestedDepositAmounts: number[];
49
48
  theme: Record<string, string>;
50
49
  enableAiPredictions: boolean;
50
+ balanceDisplayed: boolean;
51
+ transactionToggleDisplayed: boolean;
51
52
  }
52
53
 
53
54
  export interface WalletConfigParams {
@@ -195,11 +196,10 @@ export enum TransactionState {
195
196
  }
196
197
 
197
198
  export interface ProviderTransactionError {
198
- action: Action;
199
199
  code: string;
200
- providerCode: string;
201
- text: string;
202
200
  textTitle: string;
201
+ text: string;
202
+ action: Action;
203
203
  }
204
204
 
205
205
  export enum Action {
@@ -243,6 +243,7 @@ export interface TrackingEvent {
243
243
 
244
244
  export interface UserData {
245
245
  age?: number;
246
+ country?: string;
246
247
  dayOfMonth?: string;
247
248
  dayOfWeek?: string;
248
249
  previousDeposit?: number;
@@ -250,9 +251,8 @@ export interface UserData {
250
251
  }
251
252
 
252
253
  export interface AiModelQueryParams {
253
- country: string;
254
254
  operatorId: number;
255
- userData?: UserData;
255
+ userData: UserData;
256
256
  }
257
257
 
258
258
  export interface SuggestedAmountsPrediction {