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