@soltech/fluid-common 0.6.32 → 0.6.34

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
@@ -25,6 +25,7 @@ export interface WalletRequestBody {
25
25
  payloadOptions?: TransactionOptions;
26
26
  }
27
27
  export interface WalletInitParams {
28
+ country: string;
28
29
  locale: string;
29
30
  operatorId: number;
30
31
  sessionId: string;
@@ -171,10 +172,11 @@ export declare enum TransactionState {
171
172
  WAITING_INPUT = "WAITING_INPUT"
172
173
  }
173
174
  export interface ProviderTransactionError {
175
+ action: Action;
174
176
  code: string;
175
- textTitle: string;
177
+ providerCode: string;
176
178
  text: string;
177
- action: Action;
179
+ textTitle: string;
178
180
  }
179
181
  export declare enum Action {
180
182
  RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
@@ -211,15 +213,15 @@ export interface TrackingEvent {
211
213
  }
212
214
  export interface UserData {
213
215
  age?: number;
214
- country?: string;
215
216
  dayOfMonth?: string;
216
217
  dayOfWeek?: string;
217
218
  previousDeposit?: number;
218
219
  timeOfDay?: string;
219
220
  }
220
221
  export interface AiModelQueryParams {
222
+ country: string;
221
223
  operatorId: number;
222
- userData: UserData;
224
+ userData?: UserData;
223
225
  }
224
226
  export interface SuggestedAmountsPrediction {
225
227
  prefilled: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.6.32",
3
+ "version": "0.6.34",
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
@@ -30,6 +30,7 @@ export interface WalletRequestBody {
30
30
  }
31
31
 
32
32
  export interface WalletInitParams {
33
+ country: string;
33
34
  locale: string;
34
35
  operatorId: number;
35
36
  sessionId: string;
@@ -196,10 +197,11 @@ export enum TransactionState {
196
197
  }
197
198
 
198
199
  export interface ProviderTransactionError {
200
+ action: Action;
199
201
  code: string;
200
- textTitle: string;
202
+ providerCode: string;
201
203
  text: string;
202
- action: Action;
204
+ textTitle: string;
203
205
  }
204
206
 
205
207
  export enum Action {
@@ -243,7 +245,6 @@ export interface TrackingEvent {
243
245
 
244
246
  export interface UserData {
245
247
  age?: number;
246
- country?: string;
247
248
  dayOfMonth?: string;
248
249
  dayOfWeek?: string;
249
250
  previousDeposit?: number;
@@ -251,8 +252,9 @@ export interface UserData {
251
252
  }
252
253
 
253
254
  export interface AiModelQueryParams {
255
+ country: string;
254
256
  operatorId: number;
255
- userData: UserData;
257
+ userData?: UserData;
256
258
  }
257
259
 
258
260
  export interface SuggestedAmountsPrediction {