@soltech/fluid-common 0.6.18 → 0.6.19

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
@@ -1,6 +1,5 @@
1
1
  export declare enum Integration {
2
2
  LEFT = "LEFT",
3
- CENTER = "CENTER",
4
3
  RIGHT = "RIGHT",
5
4
  INLINE = "INLINE"
6
5
  }
@@ -29,6 +28,7 @@ export interface WalletInitParams {
29
28
  sessionId: string;
30
29
  userId: string | number;
31
30
  userAgent: string;
31
+ userData?: UserData;
32
32
  }
33
33
  export interface WalletConfig {
34
34
  contentText: Record<string, string>;
@@ -37,6 +37,7 @@ export interface WalletConfig {
37
37
  logo: string;
38
38
  suggestedDepositAmounts: number[];
39
39
  theme: Record<string, string>;
40
+ enableAiPredictions: boolean;
40
41
  }
41
42
  export interface WalletConfigParams {
42
43
  contentText: Record<string, ContentType>;
@@ -203,3 +204,19 @@ export interface TrackingEvent {
203
204
  eventId: string;
204
205
  data: object;
205
206
  }
207
+ export interface UserData {
208
+ age?: number;
209
+ country?: string;
210
+ dayOfMonth?: string;
211
+ dayOfWeek?: string;
212
+ previousDeposit?: number;
213
+ timeOfDay?: string;
214
+ }
215
+ export interface AiModelQueryParams {
216
+ operatorId: number;
217
+ userData: UserData;
218
+ }
219
+ export interface SuggestedAmountsPrediction {
220
+ prefilled: number;
221
+ buttons: number[];
222
+ }
package/lib/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  export var Integration;
2
2
  (function (Integration) {
3
3
  Integration["LEFT"] = "LEFT";
4
- Integration["CENTER"] = "CENTER";
5
4
  Integration["RIGHT"] = "RIGHT";
6
5
  Integration["INLINE"] = "INLINE";
7
6
  })(Integration || (Integration = {}));
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.6.18",
3
+ "version": "0.6.19",
4
4
  "type": "module",
5
- "description": "Fluid frontend and API commons",
5
+ "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
7
7
  "types:": "lib/index.d.ts",
8
8
  "scripts": {
@@ -33,4 +33,4 @@
33
33
  "lint-staged": {
34
34
  "*.{ts}": "eslint --fix"
35
35
  }
36
- }
36
+ }
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export enum Integration {
2
2
  LEFT = 'LEFT',
3
- CENTER = 'CENTER',
4
3
  RIGHT = 'RIGHT',
5
4
  INLINE = 'INLINE'
6
5
  }
@@ -34,6 +33,7 @@ export interface WalletInitParams {
34
33
  sessionId: string;
35
34
  userId: string | number;
36
35
  userAgent: string;
36
+ userData?: UserData;
37
37
  }
38
38
 
39
39
  export interface WalletConfig {
@@ -43,6 +43,7 @@ export interface WalletConfig {
43
43
  logo: string;
44
44
  suggestedDepositAmounts: number[];
45
45
  theme: Record<string, string>;
46
+ enableAiPredictions: boolean;
46
47
  }
47
48
 
48
49
  export interface WalletConfigParams {
@@ -234,3 +235,22 @@ export interface TrackingEvent {
234
235
  eventId: string;
235
236
  data: object;
236
237
  }
238
+
239
+ export interface UserData {
240
+ age?: number;
241
+ country?: string;
242
+ dayOfMonth?: string;
243
+ dayOfWeek?: string;
244
+ previousDeposit?: number;
245
+ timeOfDay?: string;
246
+ }
247
+
248
+ export interface AiModelQueryParams {
249
+ operatorId: number;
250
+ userData: UserData;
251
+ }
252
+
253
+ export interface SuggestedAmountsPrediction {
254
+ prefilled: number;
255
+ buttons: number[];
256
+ }