@soltech/fluid-common 1.5.11 → 1.6.1
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 +12 -17
- package/package.json +1 -1
- package/src/index.ts +14 -19
package/lib/index.d.ts
CHANGED
|
@@ -39,11 +39,8 @@ export interface WalletInitParams {
|
|
|
39
39
|
operatorId: number;
|
|
40
40
|
sessionId: string;
|
|
41
41
|
userId: string | number;
|
|
42
|
-
/** @deprecated Use browserInfo.userAgent instead */
|
|
43
42
|
userAgent: string;
|
|
44
|
-
/** @deprecated Use browserInfo.viewport instead */
|
|
45
43
|
viewport: Viewport;
|
|
46
|
-
browserInfo?: BrowserInfo;
|
|
47
44
|
userData?: UserData;
|
|
48
45
|
timestamp: string;
|
|
49
46
|
buildDate: string;
|
|
@@ -54,19 +51,6 @@ export interface Viewport {
|
|
|
54
51
|
innerWidth: number;
|
|
55
52
|
innerHeight: number;
|
|
56
53
|
}
|
|
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
|
-
}
|
|
70
54
|
export interface WalletConfig {
|
|
71
55
|
autofillCreditCardName: boolean;
|
|
72
56
|
balanceDisplayed: boolean;
|
|
@@ -92,6 +76,7 @@ export interface WalletConfig {
|
|
|
92
76
|
};
|
|
93
77
|
withdrawalInFiatCurrency: boolean;
|
|
94
78
|
banner?: Banner;
|
|
79
|
+
campaign?: Campaign | null;
|
|
95
80
|
manualBonusCodesEnabled?: boolean;
|
|
96
81
|
}
|
|
97
82
|
export interface Promotion {
|
|
@@ -152,7 +137,6 @@ export interface EncryptionSettings {
|
|
|
152
137
|
encryptionType: EncryptionType;
|
|
153
138
|
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
154
139
|
encryptCardholderName: boolean;
|
|
155
|
-
encryptFullYear: boolean;
|
|
156
140
|
}
|
|
157
141
|
export declare enum EncryptionType {
|
|
158
142
|
NO_ENCRYPTION = "NO_ENCRYPTION",
|
|
@@ -396,3 +380,14 @@ export interface Banner {
|
|
|
396
380
|
ctaLabel: string;
|
|
397
381
|
iconUrl: string;
|
|
398
382
|
}
|
|
383
|
+
export interface CampaignChatIcon {
|
|
384
|
+
step: string;
|
|
385
|
+
url: string;
|
|
386
|
+
}
|
|
387
|
+
export interface Campaign {
|
|
388
|
+
enableChatIcons: boolean;
|
|
389
|
+
enableSuccessAnimation: boolean;
|
|
390
|
+
chatIconSource: 'fluid' | 'theme';
|
|
391
|
+
chatIcons: CampaignChatIcon[];
|
|
392
|
+
glyph: string;
|
|
393
|
+
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -45,11 +45,8 @@ export interface WalletInitParams {
|
|
|
45
45
|
operatorId: number;
|
|
46
46
|
sessionId: string;
|
|
47
47
|
userId: string | number;
|
|
48
|
-
/** @deprecated Use browserInfo.userAgent instead */
|
|
49
48
|
userAgent: string;
|
|
50
|
-
/** @deprecated Use browserInfo.viewport instead */
|
|
51
49
|
viewport: Viewport;
|
|
52
|
-
browserInfo?: BrowserInfo;
|
|
53
50
|
userData?: UserData;
|
|
54
51
|
timestamp: string;
|
|
55
52
|
buildDate: string;
|
|
@@ -62,21 +59,6 @@ export interface Viewport {
|
|
|
62
59
|
innerHeight: number;
|
|
63
60
|
}
|
|
64
61
|
|
|
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
|
-
|
|
80
62
|
export interface WalletConfig {
|
|
81
63
|
autofillCreditCardName: boolean;
|
|
82
64
|
balanceDisplayed: boolean;
|
|
@@ -102,6 +84,7 @@ export interface WalletConfig {
|
|
|
102
84
|
},
|
|
103
85
|
withdrawalInFiatCurrency: boolean;
|
|
104
86
|
banner?: Banner;
|
|
87
|
+
campaign?: Campaign | null;
|
|
105
88
|
manualBonusCodesEnabled?: boolean;
|
|
106
89
|
}
|
|
107
90
|
|
|
@@ -170,7 +153,6 @@ export interface EncryptionSettings {
|
|
|
170
153
|
encryptionType: EncryptionType;
|
|
171
154
|
expiryDateEncryptionMode: ExpiryDateEncryptionMode;
|
|
172
155
|
encryptCardholderName: boolean;
|
|
173
|
-
encryptFullYear: boolean;
|
|
174
156
|
}
|
|
175
157
|
|
|
176
158
|
export enum EncryptionType {
|
|
@@ -448,3 +430,16 @@ export interface Banner {
|
|
|
448
430
|
ctaLabel: string;
|
|
449
431
|
iconUrl: string;
|
|
450
432
|
}
|
|
433
|
+
|
|
434
|
+
export interface CampaignChatIcon {
|
|
435
|
+
step: string;
|
|
436
|
+
url: string;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export interface Campaign {
|
|
440
|
+
enableChatIcons: boolean;
|
|
441
|
+
enableSuccessAnimation: boolean;
|
|
442
|
+
chatIconSource: 'fluid' | 'theme';
|
|
443
|
+
chatIcons: CampaignChatIcon[];
|
|
444
|
+
glyph: string;
|
|
445
|
+
}
|