@soltech/fluid-common 0.7.2 → 0.7.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
@@ -28,6 +28,7 @@ export interface WalletInitParams {
28
28
  country: string;
29
29
  ipAddress: string;
30
30
  locale: string;
31
+ currency: string;
31
32
  operatorId: number;
32
33
  sessionId: string;
33
34
  userId: string | number;
@@ -42,7 +43,7 @@ export interface WalletConfig {
42
43
  logo: string;
43
44
  suggestedDepositAmounts: number[];
44
45
  theme: Record<string, string>;
45
- aiPredictionsForSuggestedAmountsEnabled: boolean;
46
+ aiPredictionsEnabled: boolean;
46
47
  balanceDisplayed: boolean;
47
48
  transactionToggleDisplayed: boolean;
48
49
  }
@@ -150,11 +151,10 @@ export interface EWalletTransactionParams extends TransactionParams {
150
151
  service?: string;
151
152
  }
152
153
  export interface TransactionOptions {
153
- bonus?: {
154
- [key: string]: string;
155
- };
154
+ bonusCode?: string;
156
155
  activityId?: string;
157
156
  originalActivityId?: string;
157
+ userData?: UserData;
158
158
  }
159
159
  export interface TransactionResult {
160
160
  error?: ProviderTransactionError;
@@ -233,8 +233,12 @@ export interface UserData {
233
233
  age?: number;
234
234
  dayOfMonth?: number;
235
235
  dayOfWeek?: string;
236
+ depositLimit?: number;
237
+ minimumDeposit?: number;
238
+ maximumDeposit?: number;
236
239
  previousDeposit?: number;
237
240
  timeOfDay?: string;
241
+ userFullName?: string;
238
242
  }
239
243
  export interface AiModelQueryParams {
240
244
  country: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
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
@@ -33,6 +33,7 @@ export interface WalletInitParams {
33
33
  country: string;
34
34
  ipAddress: string;
35
35
  locale: string;
36
+ currency: string,
36
37
  operatorId: number;
37
38
  sessionId: string;
38
39
  userId: string | number;
@@ -48,7 +49,7 @@ export interface WalletConfig {
48
49
  logo: string;
49
50
  suggestedDepositAmounts: number[];
50
51
  theme: Record<string, string>;
51
- aiPredictionsForSuggestedAmountsEnabled: boolean;
52
+ aiPredictionsEnabled: boolean;
52
53
  balanceDisplayed: boolean;
53
54
  transactionToggleDisplayed: boolean;
54
55
  }
@@ -171,11 +172,10 @@ export interface EWalletTransactionParams extends TransactionParams {
171
172
  }
172
173
 
173
174
  export interface TransactionOptions {
174
- bonus?: {
175
- [key: string]: string
176
- };
175
+ bonusCode?: string;
177
176
  activityId?: string;
178
177
  originalActivityId?: string;
178
+ userData?: UserData;
179
179
  }
180
180
 
181
181
  export interface TransactionResult {
@@ -267,8 +267,12 @@ export interface UserData {
267
267
  age?: number;
268
268
  dayOfMonth?: number;
269
269
  dayOfWeek?: string;
270
+ depositLimit?: number;
271
+ minimumDeposit?: number;
272
+ maximumDeposit?: number;
270
273
  previousDeposit?: number;
271
274
  timeOfDay?: string;
275
+ userFullName?: string;
272
276
  }
273
277
 
274
278
  export interface AiModelQueryParams {