@soltech/fluid-common 0.6.53 → 0.6.55

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