@soltech/fluid-common 1.0.8 → 1.0.10

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 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
- userResponseRequired: boolean;
66
- threshold: number;
67
- };
68
64
  }
69
65
  export interface Promotion {
70
66
  title: string;
@@ -117,6 +113,13 @@ 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
+ NO_ENCRYPTION = "NO_ENCRYPTION",
120
+ RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
121
+ RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
122
+ SHA384_SIGNATURE = "SHA384_SIGNATURE"
120
123
  }
121
124
  export type PaymentMethodFees = {
122
125
  fixed?: number;
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "description": "Fluid frontend, API and AI common interfaces & enums",
6
6
  "main": "lib/index.js",
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
- userResponseRequired: boolean;
73
- threshold: number;
74
- }
75
71
  }
76
72
 
77
73
  export interface Promotion {
@@ -131,6 +127,14 @@ 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
+ NO_ENCRYPTION = 'NO_ENCRYPTION',
135
+ RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
136
+ RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
137
+ SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
134
138
  }
135
139
 
136
140
  export type PaymentMethodFees = {