@soltech/fluid-common 0.10.33 → 0.10.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/.nvmrc +1 -1
- package/lib/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
package/.nvmrc
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
v22.12.0
|
|
2
2
|
|
package/lib/index.d.ts
CHANGED
|
@@ -33,10 +33,15 @@ export interface WalletInitParams {
|
|
|
33
33
|
sessionId: string;
|
|
34
34
|
userId: string | number;
|
|
35
35
|
userAgent: string;
|
|
36
|
+
viewport: Viewport;
|
|
36
37
|
userData?: UserData;
|
|
37
38
|
timestamp: string;
|
|
38
39
|
transactionAttributes?: Record<string, string>;
|
|
39
40
|
}
|
|
41
|
+
export interface Viewport {
|
|
42
|
+
innerWidth: number;
|
|
43
|
+
innerHeight: number;
|
|
44
|
+
}
|
|
40
45
|
export interface WalletConfig {
|
|
41
46
|
autofillCreditCardName: boolean;
|
|
42
47
|
balanceDisplayed: boolean;
|
|
@@ -286,4 +291,6 @@ export interface UserData {
|
|
|
286
291
|
timeOfDay?: string;
|
|
287
292
|
lifetimeDeposit?: number;
|
|
288
293
|
kycStatus?: KycStatus;
|
|
294
|
+
affiliateId?: string;
|
|
295
|
+
tags?: string[];
|
|
289
296
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -38,11 +38,17 @@ export interface WalletInitParams {
|
|
|
38
38
|
sessionId: string;
|
|
39
39
|
userId: string | number;
|
|
40
40
|
userAgent: string;
|
|
41
|
+
viewport: Viewport;
|
|
41
42
|
userData?: UserData;
|
|
42
43
|
timestamp: string;
|
|
43
44
|
transactionAttributes?: Record<string, string>;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
export interface Viewport {
|
|
48
|
+
innerWidth: number;
|
|
49
|
+
innerHeight: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
export interface WalletConfig {
|
|
47
53
|
autofillCreditCardName: boolean;
|
|
48
54
|
balanceDisplayed: boolean;
|
|
@@ -325,4 +331,6 @@ export interface UserData {
|
|
|
325
331
|
timeOfDay?: string;
|
|
326
332
|
lifetimeDeposit?: number;
|
|
327
333
|
kycStatus?: KycStatus;
|
|
334
|
+
affiliateId?: string;
|
|
335
|
+
tags?: string[];
|
|
328
336
|
}
|