@soltech/fluid-common 0.6.54 → 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 +13 -6
- package/lib/index.js +7 -0
- package/package.json +1 -1
- package/src/index.ts +15 -6
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:
|
|
169
|
-
parameters?: Record<string, string>;
|
|
168
|
+
container: RedirectContainer;
|
|
170
169
|
height?: number;
|
|
171
|
-
|
|
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",
|
|
@@ -223,9 +233,6 @@ export interface UserData {
|
|
|
223
233
|
age?: number;
|
|
224
234
|
dayOfMonth?: string;
|
|
225
235
|
dayOfWeek?: string;
|
|
226
|
-
depositLimit?: number;
|
|
227
|
-
minimumDeposit?: number;
|
|
228
|
-
maximumDeposit?: number;
|
|
229
236
|
previousDeposit?: number;
|
|
230
237
|
timeOfDay?: string;
|
|
231
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
package/src/index.ts
CHANGED
|
@@ -188,13 +188,18 @@ export interface TransactionResult {
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export interface RedirectOutput {
|
|
191
|
-
container:
|
|
192
|
-
parameters?: Record<string, string>;
|
|
191
|
+
container: RedirectContainer;
|
|
193
192
|
height?: number;
|
|
194
|
-
|
|
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',
|
|
@@ -255,9 +267,6 @@ export interface UserData {
|
|
|
255
267
|
age?: number;
|
|
256
268
|
dayOfMonth?: string;
|
|
257
269
|
dayOfWeek?: string;
|
|
258
|
-
depositLimit?: number;
|
|
259
|
-
minimumDeposit?: number;
|
|
260
|
-
maximumDeposit?: number;
|
|
261
270
|
previousDeposit?: number;
|
|
262
271
|
timeOfDay?: string;
|
|
263
272
|
}
|