@soltech/fluid-common 0.4.41 → 0.4.43

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
@@ -27,6 +27,7 @@ export interface WalletInitParams {
27
27
  operatorId: number;
28
28
  sessionId: string;
29
29
  userId: string | number;
30
+ userAgent: string;
30
31
  }
31
32
  export interface WalletConfig {
32
33
  contentText: Record<string, string>;
@@ -189,7 +190,10 @@ export declare enum WithdrawalState {
189
190
  }
190
191
  export interface AvailableBonusWithPaymentMethods {
191
192
  code: string;
192
- paymentMethodFilter?: BonusPaymentMethod[];
193
+ paymentMethodFilter?: {
194
+ applyTo?: BonusPaymentMethod[];
195
+ excludeFrom?: BonusPaymentMethod[];
196
+ };
193
197
  }
194
198
  export interface BonusPaymentMethod {
195
199
  providerType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.4.41",
3
+ "version": "0.4.43",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend and API commons",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -32,6 +32,7 @@ export interface WalletInitParams {
32
32
  operatorId: number;
33
33
  sessionId: string;
34
34
  userId: string | number;
35
+ userAgent: string;
35
36
  }
36
37
 
37
38
  export interface WalletConfig {
@@ -217,8 +218,11 @@ export enum WithdrawalState {
217
218
  }
218
219
 
219
220
  export interface AvailableBonusWithPaymentMethods {
220
- code: string;
221
- paymentMethodFilter?: BonusPaymentMethod[];
221
+ code: string;
222
+ paymentMethodFilter?: {
223
+ applyTo?: BonusPaymentMethod[];
224
+ excludeFrom?: BonusPaymentMethod[];
225
+ }
222
226
  }
223
227
 
224
228
  export interface BonusPaymentMethod {