@soltech/fluid-common 1.16.0 → 1.18.0-sc24475.0
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 +46 -15
- package/lib/flows.d.ts +93 -0
- package/lib/flows.js +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/payment-methods.d.ts +6 -0
- package/package.json +5 -2
- package/.editorconfig +0 -21
- package/.eslintignore +0 -2
- package/.eslintrc +0 -11
- package/.gitattributes +0 -2
- package/.greptile/config.json +0 -13
- package/.husky/pre-commit +0 -3
- package/.nvmrc +0 -2
- package/AGENTS.md +0 -5
- package/CLAUDE.md +0 -78
- package/src/bonus.ts +0 -12
- package/src/index.ts +0 -7
- package/src/payment-methods.ts +0 -165
- package/src/tracking.ts +0 -36
- package/src/transactions.ts +0 -179
- package/src/user.ts +0 -23
- package/src/wallet-config-keys.ts +0 -472
- package/src/wallet.ts +0 -114
- package/tsconfig.json +0 -23
package/src/wallet.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import type { TransactionOptions } from './transactions.js';
|
|
2
|
-
import type { UserData } from './user.js';
|
|
3
|
-
|
|
4
|
-
export enum Integration {
|
|
5
|
-
LEFT = 'LEFT',
|
|
6
|
-
CENTER = 'CENTER',
|
|
7
|
-
RIGHT = 'RIGHT',
|
|
8
|
-
INLINE = 'INLINE'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface Viewport {
|
|
12
|
-
innerWidth: number;
|
|
13
|
-
innerHeight: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ScreenDimensions {
|
|
17
|
-
height: number;
|
|
18
|
-
width: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface BrowserInfo {
|
|
22
|
-
userAgent: string;
|
|
23
|
-
acceptHeader: string;
|
|
24
|
-
javaEnabled: boolean;
|
|
25
|
-
colorDepth: number;
|
|
26
|
-
screen: ScreenDimensions;
|
|
27
|
-
viewport: Viewport;
|
|
28
|
-
timezoneOffset: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface WalletRequestBody {
|
|
32
|
-
payload?: object | string;
|
|
33
|
-
payloadOptions?: TransactionOptions;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface WalletInitParams {
|
|
37
|
-
country: string;
|
|
38
|
-
ipAddress: string;
|
|
39
|
-
locale: string;
|
|
40
|
-
currency: string,
|
|
41
|
-
operatorId: number;
|
|
42
|
-
sessionId: string;
|
|
43
|
-
userId: string | number;
|
|
44
|
-
/** @deprecated Use browserInfo.userAgent instead */
|
|
45
|
-
userAgent: string;
|
|
46
|
-
/** @deprecated Use browserInfo.viewport instead */
|
|
47
|
-
viewport: Viewport;
|
|
48
|
-
browserInfo?: BrowserInfo;
|
|
49
|
-
userData?: UserData;
|
|
50
|
-
timestamp: string;
|
|
51
|
-
buildDate: string;
|
|
52
|
-
hostSiteUrl: string;
|
|
53
|
-
virtual: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface WalletConfig {
|
|
57
|
-
allowCustomAmount: boolean;
|
|
58
|
-
autofillCreditCardName: boolean;
|
|
59
|
-
balanceDisplayed: boolean;
|
|
60
|
-
bonusOutlined: boolean;
|
|
61
|
-
campaign?: Campaign;
|
|
62
|
-
cardHolderNameRegex: string | null;
|
|
63
|
-
contactSupportEnabled: boolean;
|
|
64
|
-
contactSupportLink: string;
|
|
65
|
-
contentText: Record<string, string>;
|
|
66
|
-
expressFlowEnabled: boolean;
|
|
67
|
-
defaultDepositAmount: number;
|
|
68
|
-
depositAbandonModalEnabled: boolean;
|
|
69
|
-
fullListOfDepositMethodsDisplayed: boolean;
|
|
70
|
-
hideMinMaxEnabled: boolean;
|
|
71
|
-
integration: Integration;
|
|
72
|
-
kycDepositLimit: number | null;
|
|
73
|
-
manualBonusCodesEnabled?: boolean;
|
|
74
|
-
pendingWithdrawalsReminder: {
|
|
75
|
-
threshold: number;
|
|
76
|
-
userResponseRequired: boolean;
|
|
77
|
-
};
|
|
78
|
-
successScreen: {
|
|
79
|
-
promotion: Promotion | null;
|
|
80
|
-
};
|
|
81
|
-
suggestedDepositAmounts: number[];
|
|
82
|
-
theme: Record<string, string>;
|
|
83
|
-
transactionToggleDisplayed: boolean;
|
|
84
|
-
withdrawalInFiatCurrency: boolean;
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface Promotion {
|
|
89
|
-
title: string;
|
|
90
|
-
description: string;
|
|
91
|
-
tag: string;
|
|
92
|
-
ctaLinkLabel: string;
|
|
93
|
-
ctaLinkUrl: string;
|
|
94
|
-
thumbnail: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface CampaignChatIcons {
|
|
98
|
-
amount?: string;
|
|
99
|
-
bonus?: string;
|
|
100
|
-
paymentMethod?: string;
|
|
101
|
-
paymentDetails?: string;
|
|
102
|
-
securePayment?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface Campaign {
|
|
106
|
-
enableSuccessAnimation: boolean;
|
|
107
|
-
customChatIcons?: CampaignChatIcons;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface DepositAmountsSettings {
|
|
111
|
-
id?: string;
|
|
112
|
-
defaultDepositAmount: number;
|
|
113
|
-
suggestedDepositAmounts: number[];
|
|
114
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "./lib",
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"strict": true,
|
|
6
|
-
"target": "ESNext",
|
|
7
|
-
"module": "NodeNext",
|
|
8
|
-
"moduleResolution": "NodeNext",
|
|
9
|
-
"useDefineForClassFields": true,
|
|
10
|
-
"lib": [
|
|
11
|
-
"DOM",
|
|
12
|
-
"ES2020",
|
|
13
|
-
],
|
|
14
|
-
"baseUrl": ".",
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
"checkJs": true,
|
|
17
|
-
"esModuleInterop": true,
|
|
18
|
-
},
|
|
19
|
-
"include": [
|
|
20
|
-
"src/**/*.d.ts",
|
|
21
|
-
"src/**/*",
|
|
22
|
-
]
|
|
23
|
-
}
|