@soltech/fluid-common 0.6.25 → 0.6.27

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;
@@ -169,11 +170,10 @@ export declare enum TransactionState {
169
170
  WAITING_INPUT = "WAITING_INPUT"
170
171
  }
171
172
  export interface ProviderTransactionError {
172
- action: Action;
173
173
  code: string;
174
- providerCode: string;
175
- text: string;
176
174
  textTitle: string;
175
+ text: string;
176
+ action: Action;
177
177
  }
178
178
  export declare enum Action {
179
179
  RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
@@ -217,8 +217,9 @@ export interface UserData {
217
217
  timeOfDay?: string;
218
218
  }
219
219
  export interface AiModelQueryParams {
220
+ country: string;
220
221
  operatorId: number;
221
- userData: UserData;
222
+ userData?: UserData;
222
223
  }
223
224
  export interface SuggestedAmountsPrediction {
224
225
  prefilled: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.6.25",
3
+ "version": "0.6.27",
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;
@@ -194,11 +195,10 @@ export enum TransactionState {
194
195
  }
195
196
 
196
197
  export interface ProviderTransactionError {
197
- action: Action;
198
198
  code: string;
199
- providerCode: string;
200
- text: string;
201
199
  textTitle: string;
200
+ text: string;
201
+ action: Action;
202
202
  }
203
203
 
204
204
  export enum Action {
@@ -250,8 +250,9 @@ export interface UserData {
250
250
  }
251
251
 
252
252
  export interface AiModelQueryParams {
253
+ country: string;
253
254
  operatorId: number;
254
- userData: UserData;
255
+ userData?: UserData;
255
256
  }
256
257
 
257
258
  export interface SuggestedAmountsPrediction {