@soltech/fluid-common 0.4.43 → 0.4.46
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 +16 -4
- package/package.json +3 -2
- package/src/index.ts +18 -4
package/lib/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export interface WalletInitParams {
|
|
|
27
27
|
operatorId: number;
|
|
28
28
|
sessionId: string;
|
|
29
29
|
userId: string | number;
|
|
30
|
-
userAgent: string;
|
|
31
30
|
}
|
|
32
31
|
export interface WalletConfig {
|
|
33
32
|
contentText: Record<string, string>;
|
|
@@ -64,11 +63,11 @@ export interface PaymentMethod {
|
|
|
64
63
|
inputFields?: InputField[];
|
|
65
64
|
bonusCodes?: string[];
|
|
66
65
|
instructions?: string;
|
|
67
|
-
fees
|
|
66
|
+
fees?: PaymentMethodFees;
|
|
68
67
|
}
|
|
69
68
|
export interface PaymentMethodFees {
|
|
70
|
-
fixedAmount?:
|
|
71
|
-
percentage?:
|
|
69
|
+
fixedAmount?: number;
|
|
70
|
+
percentage?: number;
|
|
72
71
|
}
|
|
73
72
|
export interface PaymentMethodLogo {
|
|
74
73
|
height: number;
|
|
@@ -203,3 +202,16 @@ export interface TrackingEvent {
|
|
|
203
202
|
eventId: string;
|
|
204
203
|
data: object;
|
|
205
204
|
}
|
|
205
|
+
export interface PredictionInputParams {
|
|
206
|
+
age?: number;
|
|
207
|
+
country: string;
|
|
208
|
+
dayOfMonth?: string;
|
|
209
|
+
dayOfWeek?: string;
|
|
210
|
+
device?: string;
|
|
211
|
+
ipCountry: string;
|
|
212
|
+
previousDeposit?: number;
|
|
213
|
+
timeOfDay?: string;
|
|
214
|
+
}
|
|
215
|
+
export interface DepositMethodsPrediction {
|
|
216
|
+
[key: string]: number;
|
|
217
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soltech/fluid-common",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.46",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Fluid frontend and
|
|
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": {
|
|
9
|
+
"dev": "tsc --watch",
|
|
9
10
|
"build": "tsc",
|
|
10
11
|
"pub": "npm run build && npm publish && git push",
|
|
11
12
|
"lint": "npx eslint .",
|
package/src/index.ts
CHANGED
|
@@ -32,7 +32,6 @@ export interface WalletInitParams {
|
|
|
32
32
|
operatorId: number;
|
|
33
33
|
sessionId: string;
|
|
34
34
|
userId: string | number;
|
|
35
|
-
userAgent: string;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export interface WalletConfig {
|
|
@@ -74,12 +73,12 @@ export interface PaymentMethod {
|
|
|
74
73
|
inputFields?: InputField[];
|
|
75
74
|
bonusCodes?: string[];
|
|
76
75
|
instructions?: string;
|
|
77
|
-
fees
|
|
76
|
+
fees?: PaymentMethodFees;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
export interface PaymentMethodFees {
|
|
81
|
-
fixedAmount?:
|
|
82
|
-
percentage?:
|
|
80
|
+
fixedAmount?: number;
|
|
81
|
+
percentage?: number;
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
export interface PaymentMethodLogo {
|
|
@@ -234,3 +233,18 @@ export interface TrackingEvent {
|
|
|
234
233
|
eventId: string;
|
|
235
234
|
data: object;
|
|
236
235
|
}
|
|
236
|
+
|
|
237
|
+
export interface PredictionInputParams {
|
|
238
|
+
age?: number;
|
|
239
|
+
country: string;
|
|
240
|
+
dayOfMonth?: string;
|
|
241
|
+
dayOfWeek?: string;
|
|
242
|
+
device?: string;
|
|
243
|
+
ipCountry: string;
|
|
244
|
+
previousDeposit?: number;
|
|
245
|
+
timeOfDay?: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface DepositMethodsPrediction {
|
|
249
|
+
[key: string]: number;
|
|
250
|
+
}
|