@soltech/fluid-common 0.6.58 → 0.6.60

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
@@ -150,11 +150,10 @@ export interface EWalletTransactionParams extends TransactionParams {
150
150
  service?: string;
151
151
  }
152
152
  export interface TransactionOptions {
153
- bonus?: {
154
- [key: string]: string;
155
- };
153
+ bonusCode?: string;
156
154
  activityId?: string;
157
155
  originalActivityId?: string;
156
+ userData?: UserData;
158
157
  }
159
158
  export interface TransactionResult {
160
159
  error?: ProviderTransactionError;
@@ -165,16 +164,12 @@ export interface TransactionResult {
165
164
  suggestedAmounts?: SuggestedAmountsPrediction;
166
165
  }
167
166
  export interface RedirectOutput {
168
- container: RedirectContainer;
169
- height?: number;
170
- html?: string;
171
- method?: HttpVerb;
167
+ container: string;
172
168
  parameters?: Record<string, string>;
173
- sizeUnit?: string;
174
- url: string;
169
+ height?: number;
175
170
  width?: number;
171
+ url: string;
176
172
  }
177
- export type RedirectContainer = 'iframe' | 'window' | 'redirect';
178
173
  export declare enum TransactionState {
179
174
  SUCCESS = "SUCCESS",
180
175
  FAIL = "FAIL",
@@ -190,12 +185,6 @@ export interface ProviderTransactionError {
190
185
  text: string;
191
186
  textTitle: string;
192
187
  }
193
- export declare enum HttpVerb {
194
- DELETE = "DELETE",
195
- GET = "GET",
196
- POST = "POST",
197
- PUT = "PUT"
198
- }
199
188
  export declare enum Action {
200
189
  RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
201
190
  RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
@@ -233,6 +222,9 @@ export interface UserData {
233
222
  age?: number;
234
223
  dayOfMonth?: number;
235
224
  dayOfWeek?: string;
225
+ depositLimit?: number;
226
+ minimumDeposit?: number;
227
+ maximumDeposit?: number;
236
228
  previousDeposit?: number;
237
229
  timeOfDay?: string;
238
230
  }
package/lib/index.js CHANGED
@@ -33,13 +33,6 @@ export var TransactionState;
33
33
  TransactionState["WAITING_INPUT"] = "WAITING_INPUT";
34
34
  TransactionState["CANCELLED"] = "CANCELLED";
35
35
  })(TransactionState || (TransactionState = {}));
36
- export var HttpVerb;
37
- (function (HttpVerb) {
38
- HttpVerb["DELETE"] = "DELETE";
39
- HttpVerb["GET"] = "GET";
40
- HttpVerb["POST"] = "POST";
41
- HttpVerb["PUT"] = "PUT";
42
- })(HttpVerb || (HttpVerb = {}));
43
36
  export var Action;
44
37
  (function (Action) {
45
38
  Action["RESTART_PRESERVING_DETAILS"] = "RESTART_PRESERVING_DETAILS";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.6.58",
3
+ "version": "0.6.60",
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
@@ -171,11 +171,10 @@ export interface EWalletTransactionParams extends TransactionParams {
171
171
  }
172
172
 
173
173
  export interface TransactionOptions {
174
- bonus?: {
175
- [key: string]: string
176
- };
174
+ bonusCode?: string;
177
175
  activityId?: string;
178
176
  originalActivityId?: string;
177
+ userData?: UserData;
179
178
  }
180
179
 
181
180
  export interface TransactionResult {
@@ -188,18 +187,13 @@ export interface TransactionResult {
188
187
  }
189
188
 
190
189
  export interface RedirectOutput {
191
- container: RedirectContainer;
192
- height?: number;
193
- html?: string;
194
- method?: HttpVerb;
190
+ container: string;
195
191
  parameters?: Record<string, string>;
196
- sizeUnit?: string;
197
- url: string;
192
+ height?: number;
198
193
  width?: number;
194
+ url: string;
199
195
  }
200
196
 
201
- export type RedirectContainer = 'iframe' | 'window' | 'redirect';
202
-
203
197
  export enum TransactionState {
204
198
  SUCCESS = 'SUCCESS',
205
199
  FAIL = 'FAIL',
@@ -217,13 +211,6 @@ export interface ProviderTransactionError {
217
211
  textTitle: string;
218
212
  }
219
213
 
220
- export enum HttpVerb {
221
- DELETE = 'DELETE',
222
- GET = 'GET',
223
- POST = 'POST',
224
- PUT = 'PUT'
225
- }
226
-
227
214
  export enum Action {
228
215
  RESTART_PRESERVING_DETAILS = 'RESTART_PRESERVING_DETAILS',
229
216
  RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
@@ -267,6 +254,9 @@ export interface UserData {
267
254
  age?: number;
268
255
  dayOfMonth?: number;
269
256
  dayOfWeek?: string;
257
+ depositLimit?: number;
258
+ minimumDeposit?: number;
259
+ maximumDeposit?: number;
270
260
  previousDeposit?: number;
271
261
  timeOfDay?: string;
272
262
  }