@soltech/fluid-common 0.8.8 → 0.8.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/.husky/pre-commit CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
2
 
4
3
  npx lint-staged
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,6 @@ export interface WalletInitParams {
35
35
  userAgent: string;
36
36
  userData?: UserData;
37
37
  timestamp: string;
38
- transactionAttributes?: Record<string, string>;
39
38
  }
40
39
  export interface WalletConfig {
41
40
  contentText: Record<string, string>;
@@ -48,6 +47,8 @@ export interface WalletConfig {
48
47
  transactionToggleDisplayed: boolean;
49
48
  kycDepositLimit: number | null;
50
49
  autofillCreditCardName: boolean;
50
+ contactSupportLink: string;
51
+ numberCharactersHolderName: number | null;
51
52
  }
52
53
  export interface WalletConfigParams {
53
54
  contentText: Record<string, ContentType>;
@@ -251,12 +252,6 @@ export interface UserData {
251
252
  lifetimeDeposit?: number;
252
253
  kycStatus?: KycStatus;
253
254
  }
254
- export interface AiModelQueryParams {
255
- country: string;
256
- currency?: string;
257
- operatorId: number;
258
- userData?: UserData;
259
- }
260
255
  export interface SuggestedAmountsPrediction {
261
256
  prefilled: number;
262
257
  buttons: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soltech/fluid-common",
3
- "version": "0.8.8",
3
+ "version": "0.8.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
@@ -40,7 +40,6 @@ export interface WalletInitParams {
40
40
  userAgent: string;
41
41
  userData?: UserData;
42
42
  timestamp: string;
43
- transactionAttributes?: Record<string, string>;
44
43
  }
45
44
 
46
45
  export interface WalletConfig {
@@ -54,6 +53,8 @@ export interface WalletConfig {
54
53
  transactionToggleDisplayed: boolean;
55
54
  kycDepositLimit: number | null;
56
55
  autofillCreditCardName: boolean;
56
+ contactSupportLink: string;
57
+ numberCharactersHolderName: number | null;
57
58
  }
58
59
 
59
60
  export interface WalletConfigParams {
@@ -287,13 +288,6 @@ export interface UserData {
287
288
  kycStatus?: KycStatus;
288
289
  }
289
290
 
290
- export interface AiModelQueryParams {
291
- country: string;
292
- currency?: string;
293
- operatorId: number;
294
- userData?: UserData;
295
- }
296
-
297
291
  export interface SuggestedAmountsPrediction {
298
292
  prefilled: number;
299
293
  buttons: number[];