@soltech/fluid-common 0.6.56 → 0.6.58

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
@@ -155,7 +155,6 @@ export interface TransactionOptions {
155
155
  };
156
156
  activityId?: string;
157
157
  originalActivityId?: string;
158
- userData?: UserData;
159
158
  }
160
159
  export interface TransactionResult {
161
160
  error?: ProviderTransactionError;
@@ -166,12 +165,16 @@ export interface TransactionResult {
166
165
  suggestedAmounts?: SuggestedAmountsPrediction;
167
166
  }
168
167
  export interface RedirectOutput {
169
- container: string;
170
- parameters?: Record<string, string>;
168
+ container: RedirectContainer;
171
169
  height?: number;
172
- width?: number;
170
+ html?: string;
171
+ method?: HttpVerb;
172
+ parameters?: Record<string, string>;
173
+ sizeUnit?: string;
173
174
  url: string;
175
+ width?: number;
174
176
  }
177
+ export type RedirectContainer = 'iframe' | 'window' | 'redirect';
175
178
  export declare enum TransactionState {
176
179
  SUCCESS = "SUCCESS",
177
180
  FAIL = "FAIL",
@@ -187,6 +190,12 @@ export interface ProviderTransactionError {
187
190
  text: string;
188
191
  textTitle: string;
189
192
  }
193
+ export declare enum HttpVerb {
194
+ DELETE = "DELETE",
195
+ GET = "GET",
196
+ POST = "POST",
197
+ PUT = "PUT"
198
+ }
190
199
  export declare enum Action {
191
200
  RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
192
201
  RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
@@ -222,11 +231,8 @@ export interface TrackingEvent {
222
231
  }
223
232
  export interface UserData {
224
233
  age?: number;
225
- dayOfMonth?: string;
234
+ dayOfMonth?: number;
226
235
  dayOfWeek?: string;
227
- depositLimit?: number;
228
- minimumDeposit?: number;
229
- maximumDeposit?: number;
230
236
  previousDeposit?: number;
231
237
  timeOfDay?: string;
232
238
  }
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.56",
3
+ "version": "0.6.58",
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
@@ -176,7 +176,6 @@ export interface TransactionOptions {
176
176
  };
177
177
  activityId?: string;
178
178
  originalActivityId?: string;
179
- userData?: UserData;
180
179
  }
181
180
 
182
181
  export interface TransactionResult {
@@ -189,13 +188,18 @@ export interface TransactionResult {
189
188
  }
190
189
 
191
190
  export interface RedirectOutput {
192
- container: string;
193
- parameters?: Record<string, string>;
191
+ container: RedirectContainer;
194
192
  height?: number;
195
- width?: number;
193
+ html?: string;
194
+ method?: HttpVerb;
195
+ parameters?: Record<string, string>;
196
+ sizeUnit?: string;
196
197
  url: string;
198
+ width?: number;
197
199
  }
198
200
 
201
+ export type RedirectContainer = 'iframe' | 'window' | 'redirect';
202
+
199
203
  export enum TransactionState {
200
204
  SUCCESS = 'SUCCESS',
201
205
  FAIL = 'FAIL',
@@ -213,6 +217,13 @@ export interface ProviderTransactionError {
213
217
  textTitle: string;
214
218
  }
215
219
 
220
+ export enum HttpVerb {
221
+ DELETE = 'DELETE',
222
+ GET = 'GET',
223
+ POST = 'POST',
224
+ PUT = 'PUT'
225
+ }
226
+
216
227
  export enum Action {
217
228
  RESTART_PRESERVING_DETAILS = 'RESTART_PRESERVING_DETAILS',
218
229
  RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
@@ -254,11 +265,8 @@ export interface TrackingEvent {
254
265
 
255
266
  export interface UserData {
256
267
  age?: number;
257
- dayOfMonth?: string;
268
+ dayOfMonth?: number;
258
269
  dayOfWeek?: string;
259
- depositLimit?: number;
260
- minimumDeposit?: number;
261
- maximumDeposit?: number;
262
270
  previousDeposit?: number;
263
271
  timeOfDay?: string;
264
272
  }