@soltech/fluid-common 1.5.3 → 1.5.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/.claude/settings.local.json +7 -0
- package/lib/index.d.ts +17 -3
- package/package.json +1 -1
- package/src/index.ts +19 -4
package/lib/index.d.ts
CHANGED
|
@@ -39,8 +39,11 @@ export interface WalletInitParams {
|
|
|
39
39
|
operatorId: number;
|
|
40
40
|
sessionId: string;
|
|
41
41
|
userId: string | number;
|
|
42
|
+
/** @deprecated Use browserInfo.userAgent instead */
|
|
42
43
|
userAgent: string;
|
|
44
|
+
/** @deprecated Use browserInfo.viewport instead */
|
|
43
45
|
viewport: Viewport;
|
|
46
|
+
browserInfo?: BrowserInfo;
|
|
44
47
|
userData?: UserData;
|
|
45
48
|
timestamp: string;
|
|
46
49
|
buildDate: string;
|
|
@@ -51,9 +54,23 @@ export interface Viewport {
|
|
|
51
54
|
innerWidth: number;
|
|
52
55
|
innerHeight: number;
|
|
53
56
|
}
|
|
57
|
+
export interface ScreenDimensions {
|
|
58
|
+
height: number;
|
|
59
|
+
width: number;
|
|
60
|
+
}
|
|
61
|
+
export interface BrowserInfo {
|
|
62
|
+
userAgent: string;
|
|
63
|
+
acceptHeader: string;
|
|
64
|
+
javaEnabled: boolean;
|
|
65
|
+
colorDepth: number;
|
|
66
|
+
screen: ScreenDimensions;
|
|
67
|
+
viewport: Viewport;
|
|
68
|
+
timezoneOffset: number;
|
|
69
|
+
}
|
|
54
70
|
export interface WalletConfig {
|
|
55
71
|
autofillCreditCardName: boolean;
|
|
56
72
|
balanceDisplayed: boolean;
|
|
73
|
+
bonusOutlined: boolean;
|
|
57
74
|
contactSupportEnabled: boolean;
|
|
58
75
|
contactSupportLink: string;
|
|
59
76
|
contentText: Record<string, string>;
|
|
@@ -243,9 +260,6 @@ export interface EWalletTransactionParams extends TransactionParams {
|
|
|
243
260
|
export interface VoucherTransactionParams extends TransactionParams {
|
|
244
261
|
[key: string]: string | number | undefined;
|
|
245
262
|
}
|
|
246
|
-
export interface ApplePayTransactionParams extends TransactionParams {
|
|
247
|
-
token?: string;
|
|
248
|
-
}
|
|
249
263
|
export interface TransactionOptions {
|
|
250
264
|
bonusCode?: string;
|
|
251
265
|
activityId?: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -45,8 +45,11 @@ export interface WalletInitParams {
|
|
|
45
45
|
operatorId: number;
|
|
46
46
|
sessionId: string;
|
|
47
47
|
userId: string | number;
|
|
48
|
+
/** @deprecated Use browserInfo.userAgent instead */
|
|
48
49
|
userAgent: string;
|
|
50
|
+
/** @deprecated Use browserInfo.viewport instead */
|
|
49
51
|
viewport: Viewport;
|
|
52
|
+
browserInfo?: BrowserInfo;
|
|
50
53
|
userData?: UserData;
|
|
51
54
|
timestamp: string;
|
|
52
55
|
buildDate: string;
|
|
@@ -59,9 +62,25 @@ export interface Viewport {
|
|
|
59
62
|
innerHeight: number;
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
export interface ScreenDimensions {
|
|
66
|
+
height: number;
|
|
67
|
+
width: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface BrowserInfo {
|
|
71
|
+
userAgent: string;
|
|
72
|
+
acceptHeader: string;
|
|
73
|
+
javaEnabled: boolean;
|
|
74
|
+
colorDepth: number;
|
|
75
|
+
screen: ScreenDimensions;
|
|
76
|
+
viewport: Viewport;
|
|
77
|
+
timezoneOffset: number;
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
export interface WalletConfig {
|
|
63
81
|
autofillCreditCardName: boolean;
|
|
64
82
|
balanceDisplayed: boolean;
|
|
83
|
+
bonusOutlined: boolean;
|
|
65
84
|
contactSupportEnabled: boolean;
|
|
66
85
|
contactSupportLink: string;
|
|
67
86
|
contentText: Record<string, string>;
|
|
@@ -274,10 +293,6 @@ export interface VoucherTransactionParams extends TransactionParams {
|
|
|
274
293
|
[key: string]: string | number | undefined;
|
|
275
294
|
}
|
|
276
295
|
|
|
277
|
-
export interface ApplePayTransactionParams extends TransactionParams {
|
|
278
|
-
token?: string;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
296
|
export interface TransactionOptions {
|
|
282
297
|
bonusCode?: string;
|
|
283
298
|
activityId?: string;
|