@soltech/fluid-common 0.6.60 → 0.7.0

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