@soltech/fluid-common 0.8.7 → 0.8.9
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/README.md +11 -0
- package/lib/index.d.ts +6 -3
- package/package.json +1 -1
- package/src/index.ts +6 -3
package/README.md
CHANGED
|
@@ -7,3 +7,14 @@
|
|
|
7
7
|
2. Bump the package version according to change severity
|
|
8
8
|
3. Commit
|
|
9
9
|
4. run `npm run pub` - it'll build the package, publish it to npm and push changes to github
|
|
10
|
+
|
|
11
|
+
But during the time of development, another version could have been deployed, without your change only available in your Pull Request.
|
|
12
|
+
And you need to keep your branch updated with the `main` one.
|
|
13
|
+
In that case, follow these steps:
|
|
14
|
+
|
|
15
|
+
1. make sure your commons is up to date with main
|
|
16
|
+
2. create a branch out of main and make your changes or update the branch of the PR
|
|
17
|
+
3. bump the package version according to severity - that’s a bit tricky as that version may already be taken by a parallel work, so it’s worth checking other active branches or the npm itself
|
|
18
|
+
4. commit and push the branch
|
|
19
|
+
5. run `npm run pub` to publish the package
|
|
20
|
+
6. refer to the package in your branch in another repo
|
package/lib/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface WalletInitParams {
|
|
|
35
35
|
userAgent: string;
|
|
36
36
|
userData?: UserData;
|
|
37
37
|
timestamp: string;
|
|
38
|
-
transactionAttributes
|
|
38
|
+
transactionAttributes?: Record<string, string>;
|
|
39
39
|
}
|
|
40
40
|
export interface WalletConfig {
|
|
41
41
|
contentText: Record<string, string>;
|
|
@@ -44,10 +44,11 @@ export interface WalletConfig {
|
|
|
44
44
|
logo: string;
|
|
45
45
|
suggestedDepositAmounts: number[];
|
|
46
46
|
theme: Record<string, string>;
|
|
47
|
-
aiPredictionsEnabled: boolean;
|
|
48
47
|
balanceDisplayed: boolean;
|
|
49
48
|
transactionToggleDisplayed: boolean;
|
|
50
49
|
kycDepositLimit: number | null;
|
|
50
|
+
autofillCreditCardName: boolean;
|
|
51
|
+
contactSupportLink: string;
|
|
51
52
|
}
|
|
52
53
|
export interface WalletConfigParams {
|
|
53
54
|
contentText: Record<string, ContentType>;
|
|
@@ -96,6 +97,7 @@ export interface InputField {
|
|
|
96
97
|
errorText: string;
|
|
97
98
|
options: InputFieldOption[];
|
|
98
99
|
optionsRequired: boolean;
|
|
100
|
+
prefillKey?: string;
|
|
99
101
|
}
|
|
100
102
|
export interface InputFieldOption {
|
|
101
103
|
label: string;
|
|
@@ -238,6 +240,7 @@ export declare enum KycStatus {
|
|
|
238
240
|
PROCESSING = "processing"
|
|
239
241
|
}
|
|
240
242
|
export interface UserData {
|
|
243
|
+
fullName?: string;
|
|
241
244
|
age?: number;
|
|
242
245
|
dayOfMonth?: number;
|
|
243
246
|
dayOfWeek?: string;
|
|
@@ -246,7 +249,7 @@ export interface UserData {
|
|
|
246
249
|
maximumDeposit?: number;
|
|
247
250
|
previousDeposit?: number;
|
|
248
251
|
timeOfDay?: string;
|
|
249
|
-
|
|
252
|
+
lifetimeDeposit?: number;
|
|
250
253
|
kycStatus?: KycStatus;
|
|
251
254
|
}
|
|
252
255
|
export interface AiModelQueryParams {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface WalletInitParams {
|
|
|
40
40
|
userAgent: string;
|
|
41
41
|
userData?: UserData;
|
|
42
42
|
timestamp: string;
|
|
43
|
-
transactionAttributes
|
|
43
|
+
transactionAttributes?: Record<string, string>;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface WalletConfig {
|
|
@@ -50,10 +50,11 @@ export interface WalletConfig {
|
|
|
50
50
|
logo: string;
|
|
51
51
|
suggestedDepositAmounts: number[];
|
|
52
52
|
theme: Record<string, string>;
|
|
53
|
-
aiPredictionsEnabled: boolean;
|
|
54
53
|
balanceDisplayed: boolean;
|
|
55
54
|
transactionToggleDisplayed: boolean;
|
|
56
55
|
kycDepositLimit: number | null;
|
|
56
|
+
autofillCreditCardName: boolean;
|
|
57
|
+
contactSupportLink: string;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
export interface WalletConfigParams {
|
|
@@ -109,6 +110,7 @@ export interface InputField {
|
|
|
109
110
|
errorText: string;
|
|
110
111
|
options: InputFieldOption[];
|
|
111
112
|
optionsRequired: boolean;
|
|
113
|
+
prefillKey?: string;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
export interface InputFieldOption {
|
|
@@ -273,6 +275,7 @@ export enum KycStatus {
|
|
|
273
275
|
}
|
|
274
276
|
|
|
275
277
|
export interface UserData {
|
|
278
|
+
fullName?: string;
|
|
276
279
|
age?: number;
|
|
277
280
|
dayOfMonth?: number;
|
|
278
281
|
dayOfWeek?: string;
|
|
@@ -281,7 +284,7 @@ export interface UserData {
|
|
|
281
284
|
maximumDeposit?: number;
|
|
282
285
|
previousDeposit?: number;
|
|
283
286
|
timeOfDay?: string;
|
|
284
|
-
|
|
287
|
+
lifetimeDeposit?: number;
|
|
285
288
|
kycStatus?: KycStatus;
|
|
286
289
|
}
|
|
287
290
|
|