@soltech/fluid-common 1.7.1 → 1.7.2-beta.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 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,6 +54,19 @@ 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;
@@ -126,6 +142,7 @@ export interface PaymentMethod {
126
142
  storedMethodInputFields?: InputField[];
127
143
  bonusCodes?: string[];
128
144
  instructions?: string;
145
+ withdrawalInstructions?: string;
129
146
  fees?: PaymentMethodFees;
130
147
  windowRedirectType?: WindowRedirectType;
131
148
  voucherAmounts?: number[];
@@ -241,6 +258,7 @@ export interface TransactionResult {
241
258
  statusCode: string;
242
259
  transactionId: string;
243
260
  pspStatusCode?: string;
261
+ details?: Record<string, unknown>;
244
262
  }
245
263
  export interface RedirectOutput {
246
264
  container: RedirectContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.7.1",
3
+ "version": "1.7.2-beta.1",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
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,6 +62,21 @@ 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;
@@ -142,6 +160,7 @@ export interface PaymentMethod {
142
160
  storedMethodInputFields?: InputField[];
143
161
  bonusCodes?: string[];
144
162
  instructions?: string;
163
+ withdrawalInstructions?: string;
145
164
  fees?: PaymentMethodFees;
146
165
  windowRedirectType?: WindowRedirectType;
147
166
  voucherAmounts?: number[];
@@ -272,6 +291,7 @@ export interface TransactionResult {
272
291
  statusCode: string;
273
292
  transactionId: string;
274
293
  pspStatusCode?: string;
294
+ details?: Record<string, unknown>;
275
295
  }
276
296
 
277
297
  export interface RedirectOutput {