@soltech/fluid-common 0.4.37 → 0.4.39
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/.editorconfig +21 -0
- package/.eslintignore +2 -0
- package/.eslintrc +11 -0
- package/.husky/pre-commit +4 -0
- package/lib/index.d.ts +0 -5
- package/package.json +33 -19
- package/src/index.ts +6 -11
package/.editorconfig
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
+
|
|
3
|
+
# top-most EditorConfig file
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
# Unix-style newlines with a newline ending every file
|
|
7
|
+
[*]
|
|
8
|
+
charset = utf-8
|
|
9
|
+
indent_style = tab
|
|
10
|
+
indent_size = 4
|
|
11
|
+
end_of_line = lf
|
|
12
|
+
max_line_length = 140
|
|
13
|
+
insert_final_newline = true
|
|
14
|
+
trim_trailing_whitespace = true
|
|
15
|
+
|
|
16
|
+
[*.md]
|
|
17
|
+
trim_trailing_whitespace = false
|
|
18
|
+
max_line_length = off
|
|
19
|
+
|
|
20
|
+
[{package.json,package-lock.json}]
|
|
21
|
+
max_line_length = off
|
package/.eslintignore
ADDED
package/.eslintrc
ADDED
package/lib/index.d.ts
CHANGED
|
@@ -63,11 +63,6 @@ export interface PaymentMethod {
|
|
|
63
63
|
inputFields?: InputField[];
|
|
64
64
|
bonusCodes?: string[];
|
|
65
65
|
instructions?: string;
|
|
66
|
-
fees: PaymentMethodFees;
|
|
67
|
-
}
|
|
68
|
-
export interface PaymentMethodFees {
|
|
69
|
-
fixedAmount?: string;
|
|
70
|
-
percentage?: string;
|
|
71
66
|
}
|
|
72
67
|
export interface PaymentMethodLogo {
|
|
73
68
|
height: number;
|
package/package.json
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
"name": "@soltech/fluid-common",
|
|
3
|
+
"version": "0.4.39",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Fluid frontend and API commons",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types:": "lib/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"pub": "npm run build && npm publish && git push",
|
|
11
|
+
"lint": "npx eslint .",
|
|
12
|
+
"lint:fix": "npx eslint . --fix",
|
|
13
|
+
"prepare": "husky install"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/soltechno/cashin-common.git"
|
|
18
|
+
},
|
|
19
|
+
"author": "Sol Technologies",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@soltech/eslint-config": "^0.1.0",
|
|
23
|
+
"@stylistic/eslint-plugin": "^1.5.1",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
25
|
+
"@typescript-eslint/parser": "^6.15.0",
|
|
26
|
+
"eslint": ">=8.50",
|
|
27
|
+
"eslint-plugin-smarter-tabs": "^1.2.0",
|
|
28
|
+
"husky": "^8.0.0",
|
|
29
|
+
"lint-staged": "^15.2.0",
|
|
30
|
+
"typescript": "^5.0.4"
|
|
31
|
+
},
|
|
32
|
+
"lint-staged": {
|
|
33
|
+
"*.{ts}": "eslint --fix"
|
|
34
|
+
}
|
|
21
35
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
export enum Integration {
|
|
2
3
|
LEFT = 'LEFT',
|
|
3
4
|
RIGHT = 'RIGHT',
|
|
@@ -73,12 +74,6 @@ export interface PaymentMethod {
|
|
|
73
74
|
inputFields?: InputField[];
|
|
74
75
|
bonusCodes?: string[];
|
|
75
76
|
instructions?: string;
|
|
76
|
-
fees: PaymentMethodFees;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface PaymentMethodFees {
|
|
80
|
-
fixedAmount?: string;
|
|
81
|
-
percentage?: string;
|
|
82
77
|
}
|
|
83
78
|
|
|
84
79
|
export interface PaymentMethodLogo {
|
|
@@ -189,10 +184,10 @@ export enum TransactionState {
|
|
|
189
184
|
}
|
|
190
185
|
|
|
191
186
|
export interface ProviderTransactionError {
|
|
192
|
-
|
|
187
|
+
code: string;
|
|
193
188
|
textTitle: string;
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
text: string;
|
|
190
|
+
action: Action;
|
|
196
191
|
}
|
|
197
192
|
|
|
198
193
|
export enum Action {
|
|
@@ -200,7 +195,7 @@ export enum Action {
|
|
|
200
195
|
RESTART_CLEARING_DETAILS = 'RESTART_CLEARING_DETAILS',
|
|
201
196
|
SHOW_DETAILS_STEP_PRESERVING_DETAILS = 'SHOW_DETAILS_STEP_PRESERVING_DETAILS',
|
|
202
197
|
SHOW_DETAILS_STEP_CLEARING_DETAILS = 'SHOW_DETAILS_STEP_CLEARING_DETAILS',
|
|
203
|
-
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
198
|
+
SHOW_CVC_EDIT = 'SHOW_CVC_EDIT'
|
|
204
199
|
}
|
|
205
200
|
|
|
206
201
|
export interface PendingWithdrawal {
|
|
@@ -228,5 +223,5 @@ export interface BonusPaymentMethod {
|
|
|
228
223
|
|
|
229
224
|
export interface TrackingEvent {
|
|
230
225
|
eventId: string;
|
|
231
|
-
data: object;
|
|
226
|
+
data: object;
|
|
232
227
|
}
|