@soltech/fluid-common 0.6.60 → 0.6.61

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
@@ -164,12 +164,16 @@ export interface TransactionResult {
164
164
  suggestedAmounts?: SuggestedAmountsPrediction;
165
165
  }
166
166
  export interface RedirectOutput {
167
- container: string;
168
- parameters?: Record<string, string>;
167
+ container: RedirectContainer;
169
168
  height?: number;
170
- width?: number;
169
+ html?: string;
170
+ method?: HttpVerb;
171
+ parameters?: Record<string, string>;
172
+ sizeUnit?: string;
171
173
  url: string;
174
+ width?: number;
172
175
  }
176
+ export type RedirectContainer = 'iframe' | 'window' | 'redirect';
173
177
  export declare enum TransactionState {
174
178
  SUCCESS = "SUCCESS",
175
179
  FAIL = "FAIL",
@@ -185,6 +189,12 @@ export interface ProviderTransactionError {
185
189
  text: string;
186
190
  textTitle: string;
187
191
  }
192
+ export declare enum HttpVerb {
193
+ DELETE = "DELETE",
194
+ GET = "GET",
195
+ POST = "POST",
196
+ PUT = "PUT"
197
+ }
188
198
  export declare enum Action {
189
199
  RESTART_PRESERVING_DETAILS = "RESTART_PRESERVING_DETAILS",
190
200
  RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
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.6.61",
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
@@ -187,13 +187,18 @@ export interface TransactionResult {
187
187
  }
188
188
 
189
189
  export interface RedirectOutput {
190
- container: string;
191
- parameters?: Record<string, string>;
190
+ container: RedirectContainer;
192
191
  height?: number;
193
- width?: number;
192
+ html?: string;
193
+ method?: HttpVerb;
194
+ parameters?: Record<string, string>;
195
+ sizeUnit?: string;
194
196
  url: string;
197
+ width?: number;
195
198
  }
196
199
 
200
+ export type RedirectContainer = 'iframe' | 'window' | 'redirect';
201
+
197
202
  export enum TransactionState {
198
203
  SUCCESS = 'SUCCESS',
199
204
  FAIL = 'FAIL',
@@ -211,6 +216,13 @@ export interface ProviderTransactionError {
211
216
  textTitle: string;
212
217
  }
213
218
 
219
+ export enum HttpVerb {
220
+ DELETE = 'DELETE',
221
+ GET = 'GET',
222
+ POST = 'POST',
223
+ PUT = 'PUT'
224
+ }
225
+
214
226
  export enum Action {
215
227
  RESTART_PRESERVING_DETAILS = 'RESTART_PRESERVING_DETAILS',
216
228
  RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',