@soltech/fluid-common 1.5.11 → 1.6.0
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 -19
- package/package.json +1 -1
- package/src/index.ts +14 -21
- package/.greptile/config.json +0 -13
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",
|
|
@@ -188,8 +172,6 @@ export interface InputField {
|
|
|
188
172
|
options: InputFieldOption[];
|
|
189
173
|
prefillKey?: string;
|
|
190
174
|
removePrefixPlusSign?: boolean;
|
|
191
|
-
relatesTo?: string;
|
|
192
|
-
showForValues?: string[];
|
|
193
175
|
}
|
|
194
176
|
export interface InputFieldOption {
|
|
195
177
|
label: string;
|
|
@@ -396,3 +378,14 @@ export interface Banner {
|
|
|
396
378
|
ctaLabel: string;
|
|
397
379
|
iconUrl: string;
|
|
398
380
|
}
|
|
381
|
+
export interface CampaignChatIcon {
|
|
382
|
+
step: string;
|
|
383
|
+
url: string;
|
|
384
|
+
}
|
|
385
|
+
export interface Campaign {
|
|
386
|
+
enableChatIcons: boolean;
|
|
387
|
+
enableSuccessAnimation: boolean;
|
|
388
|
+
chatIconSource: 'fluid' | 'theme';
|
|
389
|
+
chatIcons: CampaignChatIcon[];
|
|
390
|
+
glyph: string;
|
|
391
|
+
}
|
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 {
|
|
@@ -211,8 +193,6 @@ export interface InputField {
|
|
|
211
193
|
options: InputFieldOption[];
|
|
212
194
|
prefillKey?: string;
|
|
213
195
|
removePrefixPlusSign?: boolean;
|
|
214
|
-
relatesTo?: string;
|
|
215
|
-
showForValues?: string[];
|
|
216
196
|
}
|
|
217
197
|
|
|
218
198
|
export interface InputFieldOption {
|
|
@@ -448,3 +428,16 @@ export interface Banner {
|
|
|
448
428
|
ctaLabel: string;
|
|
449
429
|
iconUrl: string;
|
|
450
430
|
}
|
|
431
|
+
|
|
432
|
+
export interface CampaignChatIcon {
|
|
433
|
+
step: string;
|
|
434
|
+
url: string;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export interface Campaign {
|
|
438
|
+
enableChatIcons: boolean;
|
|
439
|
+
enableSuccessAnimation: boolean;
|
|
440
|
+
chatIconSource: 'fluid' | 'theme';
|
|
441
|
+
chatIcons: CampaignChatIcon[];
|
|
442
|
+
glyph: string;
|
|
443
|
+
}
|
package/.greptile/config.json
DELETED