@soltech/fluid-common 0.6.59 → 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 +14 -4
- package/lib/index.js +7 -0
- package/package.json +1 -1
- package/src/index.ts +16 -4
package/lib/index.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ export interface EWalletTransactionParams extends TransactionParams {
|
|
|
150
150
|
service?: string;
|
|
151
151
|
}
|
|
152
152
|
export interface TransactionOptions {
|
|
153
|
-
|
|
153
|
+
bonusCode?: string;
|
|
154
154
|
activityId?: string;
|
|
155
155
|
originalActivityId?: string;
|
|
156
156
|
userData?: UserData;
|
|
@@ -164,12 +164,16 @@ export interface TransactionResult {
|
|
|
164
164
|
suggestedAmounts?: SuggestedAmountsPrediction;
|
|
165
165
|
}
|
|
166
166
|
export interface RedirectOutput {
|
|
167
|
-
container:
|
|
168
|
-
parameters?: Record<string, string>;
|
|
167
|
+
container: RedirectContainer;
|
|
169
168
|
height?: number;
|
|
170
|
-
|
|
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
package/src/index.ts
CHANGED
|
@@ -171,7 +171,7 @@ export interface EWalletTransactionParams extends TransactionParams {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
export interface TransactionOptions {
|
|
174
|
-
|
|
174
|
+
bonusCode?: string;
|
|
175
175
|
activityId?: string;
|
|
176
176
|
originalActivityId?: string;
|
|
177
177
|
userData?: UserData;
|
|
@@ -187,13 +187,18 @@ export interface TransactionResult {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
export interface RedirectOutput {
|
|
190
|
-
container:
|
|
191
|
-
parameters?: Record<string, string>;
|
|
190
|
+
container: RedirectContainer;
|
|
192
191
|
height?: number;
|
|
193
|
-
|
|
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',
|