@soltech/fluid-common 1.0.5 → 1.0.7
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 +6 -4
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +7 -4
package/lib/index.d.ts
CHANGED
|
@@ -61,10 +61,6 @@ export interface WalletConfig {
|
|
|
61
61
|
suggestedDepositAmounts: number[];
|
|
62
62
|
theme: Record<string, string>;
|
|
63
63
|
transactionToggleDisplayed: boolean;
|
|
64
|
-
pendingWithdrawalsReminder: {
|
|
65
|
-
enforceUserToAnswer: boolean;
|
|
66
|
-
allowedNumberOfPendingWithdrawalsBeforeEnforcing: number;
|
|
67
|
-
};
|
|
68
64
|
}
|
|
69
65
|
export interface Promotion {
|
|
70
66
|
title: string;
|
|
@@ -117,6 +113,12 @@ export interface PaymentMethod {
|
|
|
117
113
|
withdrawalHandledByHostSite?: boolean;
|
|
118
114
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
119
115
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
116
|
+
encryptionType?: EncryptionType;
|
|
117
|
+
}
|
|
118
|
+
export declare enum EncryptionType {
|
|
119
|
+
RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
120
|
+
RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
|
|
121
|
+
SHA384_SIGNATURE = "SHA384_SIGNATURE"
|
|
120
122
|
}
|
|
121
123
|
export type PaymentMethodFees = {
|
|
122
124
|
fixed?: number;
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,12 @@ 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["RSA_PKCS1"] = "RSA_PKCS1";
|
|
30
|
+
EncryptionType["RSA_OAEP"] = "RSA_OAEP";
|
|
31
|
+
EncryptionType["SHA384_SIGNATURE"] = "SHA384_SIGNATURE"; // SHA-384-based signature (headers)
|
|
32
|
+
})(EncryptionType || (EncryptionType = {}));
|
|
27
33
|
export var RecentMethodMaskedAccountFormat;
|
|
28
34
|
(function (RecentMethodMaskedAccountFormat) {
|
|
29
35
|
RecentMethodMaskedAccountFormat["DEFAULT"] = "Default";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -68,10 +68,6 @@ export interface WalletConfig {
|
|
|
68
68
|
suggestedDepositAmounts: number[];
|
|
69
69
|
theme: Record<string, string>;
|
|
70
70
|
transactionToggleDisplayed: boolean;
|
|
71
|
-
pendingWithdrawalsReminder: {
|
|
72
|
-
enforceUserToAnswer: boolean;
|
|
73
|
-
allowedNumberOfPendingWithdrawalsBeforeEnforcing: number;
|
|
74
|
-
}
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
export interface Promotion {
|
|
@@ -131,6 +127,13 @@ export interface PaymentMethod {
|
|
|
131
127
|
withdrawalHandledByHostSite?: boolean;
|
|
132
128
|
withdrawalInputsShownWhenMethodIsStored: boolean;
|
|
133
129
|
transactionStatusCheck?: TransactionStatusCheck;
|
|
130
|
+
encryptionType?: EncryptionType;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export enum EncryptionType {
|
|
134
|
+
RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
|
|
135
|
+
RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
|
|
136
|
+
SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
export type PaymentMethodFees = {
|