@soltech/fluid-common 1.1.0 → 1.1.2

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
@@ -38,6 +38,7 @@ export interface WalletInitParams {
38
38
  timestamp: string;
39
39
  buildDate: string;
40
40
  hostSiteUrl: string;
41
+ virtual: boolean;
41
42
  }
42
43
  export interface Viewport {
43
44
  innerWidth: number;
@@ -65,7 +66,6 @@ export interface WalletConfig {
65
66
  userResponseRequired: boolean;
66
67
  threshold: number;
67
68
  };
68
- virtual: boolean;
69
69
  }
70
70
  export interface Promotion {
71
71
  title: string;
@@ -118,6 +118,13 @@ export interface PaymentMethod {
118
118
  withdrawalHandledByHostSite?: boolean;
119
119
  withdrawalInputsShownWhenMethodIsStored: boolean;
120
120
  transactionStatusCheck?: TransactionStatusCheck;
121
+ encryptionType?: EncryptionType;
122
+ }
123
+ export declare enum EncryptionType {
124
+ NO_ENCRYPTION = "NO_ENCRYPTION",
125
+ RSA_PKCS1 = "RSA_PKCS1",// RSA with PKCS#1 v1.5 padding (jsencrypt default)
126
+ RSA_OAEP = "RSA_OAEP",// RSA with OAEP padding (crypto/Web Crypto)
127
+ SHA384_SIGNATURE = "SHA384_SIGNATURE"
121
128
  }
122
129
  export type PaymentMethodFees = {
123
130
  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.1.0",
3
+ "version": "1.1.2",
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
@@ -43,6 +43,7 @@ export interface WalletInitParams {
43
43
  timestamp: string;
44
44
  buildDate: string;
45
45
  hostSiteUrl: string;
46
+ virtual: boolean;
46
47
  }
47
48
 
48
49
  export interface Viewport {
@@ -71,8 +72,7 @@ export interface WalletConfig {
71
72
  pendingWithdrawalsReminder: {
72
73
  userResponseRequired: boolean;
73
74
  threshold: number;
74
- },
75
- virtual: boolean;
75
+ }
76
76
  }
77
77
 
78
78
  export interface Promotion {
@@ -132,6 +132,14 @@ export interface PaymentMethod {
132
132
  withdrawalHandledByHostSite?: boolean;
133
133
  withdrawalInputsShownWhenMethodIsStored: boolean;
134
134
  transactionStatusCheck?: TransactionStatusCheck;
135
+ encryptionType?: EncryptionType;
136
+ }
137
+
138
+ export enum EncryptionType {
139
+ NO_ENCRYPTION = 'NO_ENCRYPTION',
140
+ RSA_PKCS1 = 'RSA_PKCS1', // RSA with PKCS#1 v1.5 padding (jsencrypt default)
141
+ RSA_OAEP = 'RSA_OAEP', // RSA with OAEP padding (crypto/Web Crypto)
142
+ SHA384_SIGNATURE = 'SHA384_SIGNATURE' // SHA-384-based signature (headers)
135
143
  }
136
144
 
137
145
  export type PaymentMethodFees = {