@soltech/fluid-common 1.0.9 → 1.0.11
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 +12 -2
- package/lib/index.js +7 -1
- package/package.json +1 -1
- package/src/index.ts +13 -2
package/lib/index.d.ts
CHANGED
|
@@ -61,6 +61,10 @@ export interface WalletConfig {
|
|
|
61
61
|
suggestedDepositAmounts: number[];
|
|
62
62
|
theme: Record<string, string>;
|
|
63
63
|
transactionToggleDisplayed: boolean;
|
|
64
|
+
pendingWithdrawalsReminder: {
|
|
65
|
+
userResponseRequired: boolean;
|
|
66
|
+
threshold: number;
|
|
67
|
+
};
|
|
64
68
|
}
|
|
65
69
|
export interface Promotion {
|
|
66
70
|
title: string;
|
|
@@ -113,6 +117,13 @@ export interface PaymentMethod {
|
|
|
113
117
|
withdrawalHandledByHostSite?: boolean;
|
|
114
118
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
115
119
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
120
|
+
encryptionType?: EncryptionType;
|
|
121
|
+
}
|
|
122
|
+
export declare enum EncryptionType {
|
|
123
|
+
NO_ENCRYPTION = "NO_ENCRYPTION",
|
|
124
|
+
RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
125
|
+
RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
|
|
126
|
+
SHA384_SIGNATURE = "SHA384_SIGNATURE"
|
|
116
127
|
}
|
|
117
128
|
export type PaymentMethodFees = {
|
|
118
129
|
fixed?: number;
|
|
@@ -257,8 +268,7 @@ export declare enum Action {
|
|
|
257
268
|
RESTART_CLEARING_DETAILS = "RESTART_CLEARING_DETAILS",
|
|
258
269
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = "SHOW_DETAILS_STEP_PRESERVING_DETAILS",
|
|
259
270
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = "SHOW_DETAILS_STEP_CLEARING_DETAILS",
|
|
260
|
-
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
261
|
-
DISMISS = "DISMISS"
|
|
271
|
+
SHOW_CVC_EDIT = "SHOW_CVC_EDIT"
|
|
262
272
|
}
|
|
263
273
|
export interface PendingWithdrawal {
|
|
264
274
|
amount: string;
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,13 @@ export var PaymentType;
|
|
|
24
24
|
PaymentType["CRYPTO"] = "Crypto";
|
|
25
25
|
PaymentType["EWALLET"] = "EWallet";
|
|
26
26
|
})(PaymentType || (PaymentType = {}));
|
|
27
|
+
export var EncryptionType;
|
|
28
|
+
(function (EncryptionType) {
|
|
29
|
+
EncryptionType["NO_ENCRYPTION"] = "NO_ENCRYPTION";
|
|
30
|
+
EncryptionType["RSA_PKCS1"] = "RSA_PKCS1";
|
|
31
|
+
EncryptionType["RSA_OAEP"] = "RSA_OAEP";
|
|
32
|
+
EncryptionType["SHA384_SIGNATURE"] = "SHA384_SIGNATURE"; // SHA-384-based signature (headers)
|
|
33
|
+
})(EncryptionType || (EncryptionType = {}));
|
|
27
34
|
export var RecentMethodMaskedAccountFormat;
|
|
28
35
|
(function (RecentMethodMaskedAccountFormat) {
|
|
29
36
|
RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
|
|
@@ -54,7 +61,6 @@ export var Action;
|
|
|
54
61
|
Action["SHOW_DETAILS_STEP_PRESERVING_DETAILS"] = "SHOW_DETAILS_STEP_PRESERVING_DETAILS";
|
|
55
62
|
Action["SHOW_DETAILS_STEP_CLEARING_DETAILS"] = "SHOW_DETAILS_STEP_CLEARING_DETAILS";
|
|
56
63
|
Action["SHOW_CVC_EDIT"] = "SHOW_CVC_EDIT";
|
|
57
|
-
Action["DISMISS"] = "DISMISS";
|
|
58
64
|
})(Action || (Action = {}));
|
|
59
65
|
export var WithdrawalState;
|
|
60
66
|
(function (WithdrawalState) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -68,6 +68,10 @@ export interface WalletConfig {
|
|
|
68
68
|
suggestedDepositAmounts: number[];
|
|
69
69
|
theme: Record<string, string>;
|
|
70
70
|
transactionToggleDisplayed: boolean;
|
|
71
|
+
pendingWithdrawalsReminder: {
|
|
72
|
+
userResponseRequired: boolean;
|
|
73
|
+
threshold: number;
|
|
74
|
+
}
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
export interface Promotion {
|
|
@@ -127,6 +131,14 @@ export interface PaymentMethod {
|
|
|
127
131
|
withdrawalHandledByHostSite?: boolean;
|
|
128
132
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
129
133
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
134
|
+
encryptionType?: EncryptionType;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export enum EncryptionType {
|
|
138
|
+
NO_ENCRYPTION = 'NO_ENCRYPTION',
|
|
139
|
+
RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
140
|
+
RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
|
|
141
|
+
SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
|
|
130
142
|
}
|
|
131
143
|
|
|
132
144
|
export type PaymentMethodFees = {
|
|
@@ -290,8 +302,7 @@ export enum Action {
|
|
|
290
302
|
RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
|
|
291
303
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = 'SHOW_DETAILS_STEP_PRESERVING_DETAILS',
|
|
292
304
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = 'SHOW_DETAILS_STEP_CLEARING_DETAILS',
|
|
293
|
-
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
294
|
-
DISMISS = 'DISMISS'
|
|
305
|
+
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
295
306
|
}
|
|
296
307
|
|
|
297
308
|
export interface PendingWithdrawal {
|