@soltech/fluid-common 1.10.0-beta.1 → 1.10.0-sc23269.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 +447 -7
- package/lib/index.js +97 -7
- package/package.json +1 -1
- package/src/index.ts +512 -7
- package/.claude/settings.local.json +0 -12
- package/lib/bonus.d.ts +0 -11
- package/lib/bonus.js +0 -1
- package/lib/payment-methods.d.ts +0 -114
- package/lib/payment-methods.js +0 -29
- package/lib/tracking.d.ts +0 -23
- package/lib/tracking.js +0 -1
- package/lib/transactions.d.ts +0 -98
- package/lib/transactions.js +0 -36
- package/lib/user.d.ts +0 -22
- package/lib/user.js +0 -6
- package/lib/wallet-config-keys.d.ts +0 -459
- package/lib/wallet-config-keys.js +0 -462
- package/lib/wallet.d.ts +0 -92
- package/lib/wallet.js +0 -7
- package/src/bonus.ts +0 -12
- package/src/payment-methods.ts +0 -129
- package/src/tracking.ts +0 -26
- package/src/transactions.ts +0 -111
- package/src/user.ts +0 -23
- package/src/wallet-config-keys.ts +0 -466
- package/src/wallet.ts +0 -103
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
export enum ContentType {
|
|
2
|
-
PLAIN_TEXT = 'PLAIN_TEXT',
|
|
3
|
-
HTML = 'HTML'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export enum TraitType {
|
|
7
|
-
COLOR = 'COLOR',
|
|
8
|
-
IMAGE = 'IMAGE',
|
|
9
|
-
TEXT = 'TEXT',
|
|
10
|
-
SOUND = 'SOUND'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface WalletConfigParams {
|
|
14
|
-
contentText: Record<string, ContentType>,
|
|
15
|
-
theme: Record<string, TraitType>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// The keys fluid-api accepts for WalletConfigParams. Removing a member is a breaking API change:
|
|
19
|
-
// widgets are cached on operator sites, so an older one may still request it.
|
|
20
|
-
export enum Trait {
|
|
21
|
-
buttonGradientDirection = 'buttonGradientDirection',
|
|
22
|
-
buttonStyle = 'buttonStyle',
|
|
23
|
-
bonusImagePlaceholder = 'bonusImagePlaceholder',
|
|
24
|
-
colorAlert = 'colorAlert',
|
|
25
|
-
colorBackgroundBase = 'colorBackgroundBase',
|
|
26
|
-
colorBackgroundZero = 'colorBackgroundZero',
|
|
27
|
-
colorBorder = 'colorBorder',
|
|
28
|
-
colorButtonBase = 'colorButtonBase',
|
|
29
|
-
colorButtonBaseStop = 'colorButtonBaseStop',
|
|
30
|
-
colorButtonHover = 'colorButtonHover',
|
|
31
|
-
colorButtonHoverStop = 'colorButtonHoverStop',
|
|
32
|
-
colorButtonGhostText = 'colorButtonGhostText',
|
|
33
|
-
colorButtonText = 'colorButtonText',
|
|
34
|
-
colorCardGradiantEnd = 'colorCardGradiantEnd',
|
|
35
|
-
colorCardGradiantStart = 'colorCardGradiantStart',
|
|
36
|
-
colorDivider = 'colorDivider',
|
|
37
|
-
colorError = 'colorError',
|
|
38
|
-
colorIcon = 'colorIcon',
|
|
39
|
-
colorInfo = 'colorInfo',
|
|
40
|
-
colorInputBase = 'colorInputBase',
|
|
41
|
-
colorInputBorder = 'colorInputBorder',
|
|
42
|
-
colorInputIcon = 'colorInputIcon',
|
|
43
|
-
colorOverlay = 'colorOverlay',
|
|
44
|
-
colorPillBase = 'colorPillBase',
|
|
45
|
-
colorPillBaseActive = 'colorPillBaseActive',
|
|
46
|
-
colorPillText = 'colorPillText',
|
|
47
|
-
colorPillTextActive = 'colorPillTextActive',
|
|
48
|
-
colorPrimary = 'colorPrimary',
|
|
49
|
-
colorProgressBarBase = 'colorProgressBarBase',
|
|
50
|
-
colorProgressBarEnd = 'colorProgressBarEnd',
|
|
51
|
-
colorProgressBarStart = 'colorProgressBarStart',
|
|
52
|
-
colorSuccess = 'colorSuccess',
|
|
53
|
-
colorTextAmount = 'colorTextAmount',
|
|
54
|
-
colorTextDisabled = 'colorTextDisabled',
|
|
55
|
-
colorTextPrimary = 'colorTextPrimary',
|
|
56
|
-
colorTextSecondary = 'colorTextSecondary',
|
|
57
|
-
fontWeightMedium = 'fontWeightMedium',
|
|
58
|
-
fontWeightSemiBold = 'fontWeightSemiBold',
|
|
59
|
-
fontWeightBold = 'fontWeightBold',
|
|
60
|
-
inlineQuickDepositBorderRadius = 'inlineQuickDepositBorderRadius',
|
|
61
|
-
inputFieldRadius = 'inputFieldRadius',
|
|
62
|
-
stepAmount = 'stepAmount',
|
|
63
|
-
stepBonus = 'stepBonus',
|
|
64
|
-
stepCheckingDetails = 'stepCheckingDetails',
|
|
65
|
-
stepPaymentMethod = 'stepPaymentMethod',
|
|
66
|
-
stepSecure = 'stepSecure',
|
|
67
|
-
successSound = 'successSound',
|
|
68
|
-
depositCurrencyIcon = 'depositCurrencyIcon',
|
|
69
|
-
withdrawalCurrencyIcon = 'withdrawalCurrencyIcon'
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export enum Content {
|
|
73
|
-
acceptNoBonusAndContinue = 'acceptNoBonusAndContinue',
|
|
74
|
-
amountPlaceholderLabel = 'amountPlaceholderLabel',
|
|
75
|
-
authorisationTitle = 'authorisationTitle',
|
|
76
|
-
backLabel = 'backLabel',
|
|
77
|
-
bonus = 'bonus',
|
|
78
|
-
bonusCodeInputPlaceholder = 'bonusCodeInputPlaceholder',
|
|
79
|
-
bonusCodeMessage = 'bonusCodeMessage',
|
|
80
|
-
bonusMaximumDepositUpTo = 'bonusMaximumDepositUpTo',
|
|
81
|
-
bonusMinimumDepositFrom = 'bonusMinimumDepositFrom',
|
|
82
|
-
bonusModalTitle = 'bonusModalTitle',
|
|
83
|
-
bonusNotAvailableForPaymentMethod = 'bonusNotAvailableForPaymentMethod',
|
|
84
|
-
cancelWithdrawalsSuccess = 'cancelWithdrawalsSuccess',
|
|
85
|
-
cancelWithdrawalSuccess = 'cancelWithdrawalSuccess',
|
|
86
|
-
cardDetailsGenericError = 'cardDetailsGenericError',
|
|
87
|
-
cardInformation = 'cardInformation',
|
|
88
|
-
cardNumber = 'cardNumber',
|
|
89
|
-
closeLabel = 'closeLabel',
|
|
90
|
-
closingPromptContent = 'closingPromptContent',
|
|
91
|
-
closingPromptTitle = 'closingPromptTitle',
|
|
92
|
-
completeTransactionDepositInfo = 'completeTransactionDepositInfo',
|
|
93
|
-
completeTransactionDepositSummary = 'completeTransactionDepositSummary',
|
|
94
|
-
completeTransactionDepositTitle = 'completeTransactionDepositTitle',
|
|
95
|
-
completeTransactionWithdrawalInfo = 'completeTransactionWithdrawalInfo',
|
|
96
|
-
completeTransactionWithdrawalSummary = 'completeTransactionWithdrawalSummary',
|
|
97
|
-
completeTransactionWithdrawalTitle = 'completeTransactionWithdrawalTitle',
|
|
98
|
-
confirmationWithdrawingLabel = 'confirmationWithdrawingLabel',
|
|
99
|
-
continueCtaLabel = 'continueCtaLabel',
|
|
100
|
-
creditDebit = 'creditDebit',
|
|
101
|
-
cvc = 'cvc',
|
|
102
|
-
cvcTooltipLabel = 'cvcTooltipLabel',
|
|
103
|
-
depositAmountWithoutFee = 'depositAmountWithoutFee',
|
|
104
|
-
depositCtaLabel = 'depositCtaLabel',
|
|
105
|
-
depositTitle = 'depositTitle',
|
|
106
|
-
errorDepositAnotherMethodMessage = 'errorDepositAnotherMethodMessage',
|
|
107
|
-
errorDepositContactSupportMessage = 'errorDepositContactSupportMessage',
|
|
108
|
-
errorDepositCtaMessage = 'errorDepositCtaMessage',
|
|
109
|
-
errorDepositMessage = 'errorDepositMessage',
|
|
110
|
-
errorDepositTitle = 'errorDepositTitle',
|
|
111
|
-
errorDepositTooltip = 'errorDepositTooltip',
|
|
112
|
-
errorDepositTooltipCopied = 'errorDepositTooltipCopied',
|
|
113
|
-
errorVoucherAmountsOutsideLimits = 'errorVoucherAmountsOutsideLimits',
|
|
114
|
-
feeInfo = 'feeInfo',
|
|
115
|
-
feeLabel = 'feeLabel',
|
|
116
|
-
feeInfoWithinRange = 'feeInfoWithinRange',
|
|
117
|
-
feeInfoAboveMin = 'feeInfoAboveMin',
|
|
118
|
-
feeInfoBelowMax = 'feeInfoBelowMax',
|
|
119
|
-
fluentAmountEditMessage = 'fluentAmountEditMessage',
|
|
120
|
-
fluentAmountEditTitle = 'fluentAmountEditTitle',
|
|
121
|
-
fluentBonusClaimInfo = 'fluentBonusClaimInfo',
|
|
122
|
-
fluentBonusEditMessage = 'fluentBonusEditMessage',
|
|
123
|
-
fluentBonusEditTitle = 'fluentBonusEditTitle',
|
|
124
|
-
fluentBonusFullClaimMessage = 'fluentBonusFullClaimMessage',
|
|
125
|
-
fluentBonusFullClaimTitle = 'fluentBonusFullClaimTitle',
|
|
126
|
-
fluentBonusMaximumAmountExceededMessage = 'fluentBonusMaximumAmountExceededMessage',
|
|
127
|
-
fluentBonusMaximumAmountExceededTitle = 'fluentBonusMaximumAmountExceededTitle',
|
|
128
|
-
fluentBonusMessage = 'fluentBonusMessage',
|
|
129
|
-
fluentBonusMinimumAmountForThisBonusMessage = 'fluentBonusMinimumAmountForThisBonusMessage',
|
|
130
|
-
fluentBonusMinimumAmountNotMetMessage = 'fluentBonusMinimumAmountNotMetMessage',
|
|
131
|
-
fluentBonusMinimumAmountNotMetTitle = 'fluentBonusMinimumAmountNotMetTitle',
|
|
132
|
-
fluentBonusTeaserDismissedMessage = 'fluentBonusTeaserDismissedMessage',
|
|
133
|
-
fluentBonusTeaserDismissedTitle = 'fluentBonusTeaserDismissedTitle',
|
|
134
|
-
fluentBonusTeaserMessage = 'fluentBonusTeaserMessage',
|
|
135
|
-
fluentBonusTitle = 'fluentBonusTitle',
|
|
136
|
-
fluentBonusWithNoMaxSelectedMessage = 'fluentBonusWithNoMaxSelectedMessage',
|
|
137
|
-
fluentBonusWithNoMaxSelectedTitle = 'fluentBonusWithNoMaxSelectedTitle',
|
|
138
|
-
fluentDepositAmountAboveBonusMaxDepositLimit = 'fluentDepositAmountAboveBonusMaxDepositLimit',
|
|
139
|
-
fluentDepositAmountAboveLimit = 'fluentDepositAmountAboveLimit',
|
|
140
|
-
fluentDepositAmountAboveResponsibleGamingLimit = 'fluentDepositAmountAboveResponsibleGamingLimit',
|
|
141
|
-
fluentDepositAmountBelowLimit = 'fluentDepositAmountBelowLimit',
|
|
142
|
-
fluentDepositCVCNotRequired = 'fluentDepositCvcNotRequired',
|
|
143
|
-
fluentDepositCVCRequired = 'fluentDepositCvcRequired',
|
|
144
|
-
fluentDepositMessage = 'fluentDepositMessage',
|
|
145
|
-
fluentDepositTitle = 'fluentDepositTitle',
|
|
146
|
-
fluentDepositTitleAmountBad = 'fluentDepositTitleAmountBad',
|
|
147
|
-
fluentDepositTitleAmountGood = 'fluentDepositTitleAmountGood',
|
|
148
|
-
fluentDetailCard = 'fluentDetailCard',
|
|
149
|
-
fluentDetailExternal = 'fluentDetailExternal',
|
|
150
|
-
fluentDetailTitle = 'fluentDetailTitle',
|
|
151
|
-
fluentForfeitBonusNoticeMessage = 'fluentForfeitBonusNoticeMessage',
|
|
152
|
-
fluentForfeitBonusNoticeTitle = 'fluentForfeitBonusNoticeTitle',
|
|
153
|
-
fluentKycLimitNearlyReachedMessage = 'fluentKycLimitNearlyReachedMessage',
|
|
154
|
-
fluentKycLimitReachedMessage = 'fluentKycLimitReachedMessage',
|
|
155
|
-
fluentMaxAmountWithdrawal = 'fluentMaxAmountWithdrawal',
|
|
156
|
-
fluentMethodMessage = 'fluentMethodMessage',
|
|
157
|
-
fluentMethodTitle = 'fluentMethodTitle',
|
|
158
|
-
fluentNoWithdrawableBalanceMessage = 'fluentNoWithdrawableBalanceMessage',
|
|
159
|
-
fluentNoWithdrawableBalanceTitle = 'fluentNoWithdrawableBalanceTitle',
|
|
160
|
-
fluentOnePendingWithdrawalOnlyMessage = 'fluentOnePendingWithdrawalOnlyMessage',
|
|
161
|
-
fluentPendingWithdrawalsMessage = 'fluentPendingWithdrawalsMessage',
|
|
162
|
-
fluentPendingWithdrawalsTitle = 'fluentPendingWithdrawalsTitle',
|
|
163
|
-
fluentRgLimitReachedMessage = 'fluentRgLimitReachedMessage',
|
|
164
|
-
fluentRgLimitReachedTitle = 'fluentRgLimitReachedTitle',
|
|
165
|
-
fluentVerificationRequiredTitle = 'fluentVerificationRequiredTitle',
|
|
166
|
-
fluentVerifyCta = 'fluentVerifyCta',
|
|
167
|
-
fluentWithdrawalAmountAboveLimit = 'fluentWithdrawalAmountAboveLimit',
|
|
168
|
-
fluentWithdrawalAmountBelowLimit = 'fluentWithdrawalAmountBelowLimit',
|
|
169
|
-
fluentWithdrawalAmountError = 'fluentWithdrawalAmountError',
|
|
170
|
-
fluentWithdrawalAmountGoodTitle = 'fluentWithdrawalAmountGoodTitle',
|
|
171
|
-
fluentWithdrawalAmountMessage = 'fluentWithdrawalAmountMessage',
|
|
172
|
-
fluentWithdrawalAmountTitle = 'fluentWithdrawalAmountTitle',
|
|
173
|
-
fluentWithdrawalDetailDefaultMessage = 'fluentWithdrawalDetailDefaultMessage',
|
|
174
|
-
fluentWithdrawalDetailMessage = 'fluentWithdrawalDetailMessage',
|
|
175
|
-
fluentWithdrawalDetailTitle = 'fluentWithdrawalDetailTitle',
|
|
176
|
-
fluentWithdrawalSummaryMessage = 'fluentWithdrawalSummaryMessage',
|
|
177
|
-
fluentWithdrawalSummaryTitle = 'fluentWithdrawalSummaryTitle',
|
|
178
|
-
goBackModalContent = 'goBackModalContent',
|
|
179
|
-
goBackModalTitle = 'goBackModalTitle',
|
|
180
|
-
johnDoe = 'johnDoe',
|
|
181
|
-
labelButtonCancelAllWithdrawals = 'labelButtonCancelAllWithdrawals',
|
|
182
|
-
labelDeposit = 'labelDeposit',
|
|
183
|
-
labelInfoIcon = 'labelInfoIcon',
|
|
184
|
-
labelWithdraw = 'labelWithdraw',
|
|
185
|
-
landscapeWarning = 'landscapeWarning',
|
|
186
|
-
lockedBalanceTitle = 'lockedBalanceTitle',
|
|
187
|
-
lockedInfoModalContent = 'lockedInfoModalContent',
|
|
188
|
-
lockedInfoModalTitle = 'lockedInfoModalTitle',
|
|
189
|
-
manualBonusCodeApply = 'manualBonusCodeApply',
|
|
190
|
-
manualBonusCodeError = 'manualBonusCodeError',
|
|
191
|
-
manualBonusCodeLabel = 'manualBonusCodeLabel',
|
|
192
|
-
manualBonusCodeRemove = 'manualBonusCodeRemove',
|
|
193
|
-
manualBonusCodeValidated = 'manualBonusCodeValidated',
|
|
194
|
-
manualBonusCodeValidatedNotOptedIn = 'manualBonusCodeValidatedNotOptedIn',
|
|
195
|
-
maxAmount = 'maxAmount',
|
|
196
|
-
methodLimitExceededPromptBody = 'methodLimitExceededPromptBody',
|
|
197
|
-
methodLimitExceededPromptOptionDismiss = 'methodLimitExceededPromptOptionDismiss',
|
|
198
|
-
methodLimitExceededPromptOptionEdit = 'methodLimitExceededPromptOptionEdit',
|
|
199
|
-
methodLimitExceededPromptTitle = 'methodLimitExceededPromptTitle',
|
|
200
|
-
minAmount = 'minAmount',
|
|
201
|
-
mmYy = 'mmYy',
|
|
202
|
-
mmYyyy = 'mmYyyy',
|
|
203
|
-
modalFooterCta = 'modalFooterCta',
|
|
204
|
-
modifyAmount = 'modifyAmount',
|
|
205
|
-
modifyBonus = 'modifyBonus',
|
|
206
|
-
moreMethodsLabel = 'moreMethodsLabel',
|
|
207
|
-
nameOnCard = 'nameOnCard',
|
|
208
|
-
negativePromptModalContent = 'negativePromptModalContent',
|
|
209
|
-
newMethod = 'newMethod',
|
|
210
|
-
noBonusAvailableMessage = 'noBonusAvailableMessage',
|
|
211
|
-
noBonusAvailableTitle = 'noBonusAvailableTitle',
|
|
212
|
-
noBonusMessage = 'noBonusMessage',
|
|
213
|
-
noBonusSelected = 'noBonusSelected',
|
|
214
|
-
noBonusTitle = 'noBonusTitle',
|
|
215
|
-
noPaymentMethodsAvailableMessage = 'noPaymentMethodsAvailableMessage',
|
|
216
|
-
noPaymentMethodsAvailableTitle = 'noPaymentMethodsAvailableTitle',
|
|
217
|
-
noWithdrawalMethodsAvailable = 'noWithdrawalMethodsAvailable',
|
|
218
|
-
pendingTransactionTitle = 'pendingTransactionTitle',
|
|
219
|
-
pendingTransactionMessage = 'pendingTransactionMessage',
|
|
220
|
-
paymentMethodInfoModalTitle = 'paymentMethodInfoModalTitle',
|
|
221
|
-
paymentMethodsTitle = 'paymentMethodsTitle',
|
|
222
|
-
pendingWithdrawalsLinkLabel = 'pendingWithdrawalsLinkLabel',
|
|
223
|
-
phoneNumber = 'phoneNumber',
|
|
224
|
-
phonePrefix = 'phonePrefix',
|
|
225
|
-
positivePromptModalContent = 'positivePromptModalContent',
|
|
226
|
-
promptLabelNegative = 'promptLabelNegative',
|
|
227
|
-
promptLabelPositive = 'promptLabelPositive',
|
|
228
|
-
quickDepositTitle = 'quickDepositTitle',
|
|
229
|
-
selectAnotherPaymentMethodWithBonus = 'selectAnotherPaymentMethodWithBonus',
|
|
230
|
-
selectedBonusNotAvailable = 'selectedBonusNotAvailable',
|
|
231
|
-
sslTitle = 'sslTitle',
|
|
232
|
-
storedMethods = 'storedMethods',
|
|
233
|
-
successDepositTitle = 'successDepositTitle',
|
|
234
|
-
successPlayButton = 'successPlayButton',
|
|
235
|
-
successWithdrawalTitle = 'successWithdrawalTitle',
|
|
236
|
-
summaryDepositTitle = 'summaryDepositTitle',
|
|
237
|
-
summaryEditLabel = 'summaryEditLabel',
|
|
238
|
-
summaryWithdrawalTitle = 'summaryWithdrawalTitle',
|
|
239
|
-
totalAmountMessage = 'totalAmountMessage',
|
|
240
|
-
transactionInfo = 'transactionInfo',
|
|
241
|
-
transactionLoaderMessage = 'transactionLoaderMessage',
|
|
242
|
-
transactionLoaderTitle = 'transactionLoaderTitle',
|
|
243
|
-
transactionSplit = 'transactionSplit',
|
|
244
|
-
transactionSplitBonus = 'transactionSplitBonus',
|
|
245
|
-
transactionStatusFailure = 'transactionStatusFailure',
|
|
246
|
-
transactionStatusSuccess = 'transactionStatusSuccess',
|
|
247
|
-
turnedOverTitle = 'turnedOverTitle',
|
|
248
|
-
unavailableBonusModalBody = 'unavailableBonusModalBody',
|
|
249
|
-
unavailableBonusModalTitle = 'unavailableBonusModalTitle',
|
|
250
|
-
updateAvailableCta = 'updateAvailableCta',
|
|
251
|
-
updateAvailableMessage = 'updateAvailableMessage',
|
|
252
|
-
updateAvailableTitle = 'updateAvailableTitle',
|
|
253
|
-
userCloseBrowserTabPromptMessage = 'userCloseBrowserTabPromptMessage',
|
|
254
|
-
verificationScreenCtaLabel = 'verificationScreenCtaLabel',
|
|
255
|
-
verificationScreenMessage = 'verificationScreenMessage',
|
|
256
|
-
verificationScreenTitle = 'verificationScreenTitle',
|
|
257
|
-
withdrawalAmountLeftoverAfterFees = 'withdrawalAmountLeftoverAfterFees',
|
|
258
|
-
withdrawalApproved = 'withdrawalApproved',
|
|
259
|
-
withdrawalCancelLabel = 'withdrawalCancelLabel',
|
|
260
|
-
withdrawalCancelModalButtonNegative = 'withdrawalCancelModalButtonNegative',
|
|
261
|
-
withdrawalCancelModalButtonPositive = 'withdrawalCancelModalButtonPositive',
|
|
262
|
-
withdrawalCancelModalContent = 'withdrawalCancelModalContent',
|
|
263
|
-
withdrawalCancelModalTitle = 'withdrawalCancelModalTitle',
|
|
264
|
-
withdrawalCtaLabel = 'withdrawalCtaLabel',
|
|
265
|
-
withdrawalInfoModalContent = 'withdrawalInfoModalContent',
|
|
266
|
-
withdrawalInfoModalTitle = 'withdrawalInfoModalTitle',
|
|
267
|
-
withdrawalListTitle = 'withdrawalListTitle',
|
|
268
|
-
withdrawalProcessing = 'withdrawalProcessing',
|
|
269
|
-
withdrawalRemainingBalance = 'withdrawalRemainingBalance',
|
|
270
|
-
withdrawalRequestDate = 'withdrawalRequestDate',
|
|
271
|
-
withdrawalRequested = 'withdrawalRequested',
|
|
272
|
-
withdrawalTitle = 'withdrawalTitle',
|
|
273
|
-
withdrawalTransactionIdLabel = 'withdrawalTransactionIdLabel',
|
|
274
|
-
withdrawal2faHeaderTitle = 'withdrawal2faHeaderTitle',
|
|
275
|
-
withdrawal2faTitle = 'withdrawal2faTitle',
|
|
276
|
-
withdrawal2faBody = 'withdrawal2faBody',
|
|
277
|
-
withdrawal2faLabel = 'withdrawal2faLabel',
|
|
278
|
-
withdrawal2faPlaceholder = 'withdrawal2faPlaceholder',
|
|
279
|
-
withdrawal2faVerifyButton = 'withdrawal2faVerifyButton',
|
|
280
|
-
withdrawal2faInvalidCode = 'withdrawal2faInvalidCode',
|
|
281
|
-
withdrawal2faRateLimited = 'withdrawal2faRateLimited',
|
|
282
|
-
withMethod = 'withMethod'
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export enum ContentVirtual {
|
|
286
|
-
abandonDepositModalMessage = 'abandonDepositModalMessage',
|
|
287
|
-
abandonDepositModalNegativeButton = 'abandonDepositModalNegativeButton',
|
|
288
|
-
abandonDepositModalPositiveButton = 'abandonDepositModalPositiveButton',
|
|
289
|
-
abandonDepositModalTitle = 'abandonDepositModalTitle',
|
|
290
|
-
authorisationTitle = 'authorisationTitle',
|
|
291
|
-
backLabel = 'backLabel',
|
|
292
|
-
cancelWithdrawalsSuccess = 'cancelWithdrawalsSuccess',
|
|
293
|
-
cancelWithdrawalSuccess = 'cancelWithdrawalSuccess',
|
|
294
|
-
cardDetailsGenericError = 'cardDetailsGenericError',
|
|
295
|
-
cardInformation = 'cardInformation',
|
|
296
|
-
cardNumber = 'cardNumber',
|
|
297
|
-
closeLabel = 'closeLabel',
|
|
298
|
-
closingPromptContent = 'closingPromptContent',
|
|
299
|
-
closingPromptTitle = 'closingPromptTitle',
|
|
300
|
-
completeTransactionDepositInfo = 'completeTransactionDepositInfo',
|
|
301
|
-
completeTransactionDepositSummary = 'completeTransactionDepositSummary',
|
|
302
|
-
completeTransactionDepositTitle = 'completeTransactionDepositTitle',
|
|
303
|
-
completeTransactionWithdrawalInfo = 'completeTransactionWithdrawalInfo',
|
|
304
|
-
completeTransactionWithdrawalSummary = 'completeTransactionWithdrawalSummary',
|
|
305
|
-
completeTransactionWithdrawalTitle = 'completeTransactionWithdrawalTitle',
|
|
306
|
-
confirmationWithdrawingLabel = 'confirmationWithdrawingLabel',
|
|
307
|
-
continueCtaLabel = 'continueCtaLabel',
|
|
308
|
-
creditDebit = 'creditDebit',
|
|
309
|
-
customAmountLabel = 'customAmountLabel',
|
|
310
|
-
cvc = 'cvc',
|
|
311
|
-
cvcTooltipLabel = 'cvcTooltipLabel',
|
|
312
|
-
depositAmountWithoutFee = 'depositAmountWithoutFee',
|
|
313
|
-
depositCtaLabel = 'depositCtaLabel',
|
|
314
|
-
depositTitle = 'depositTitle',
|
|
315
|
-
errorDepositAnotherMethodMessage = 'errorDepositAnotherMethodMessage',
|
|
316
|
-
errorDepositContactSupportMessage = 'errorDepositContactSupportMessage',
|
|
317
|
-
errorDepositCtaMessage = 'errorDepositCtaMessage',
|
|
318
|
-
errorDepositMessage = 'errorDepositMessage',
|
|
319
|
-
errorDepositTitle = 'errorDepositTitle',
|
|
320
|
-
errorDepositTooltip = 'errorDepositTooltip',
|
|
321
|
-
errorDepositTooltipCopied = 'errorDepositTooltipCopied',
|
|
322
|
-
errorVoucherAmountsOutsideLimits = 'errorVoucherAmountsOutsideLimits',
|
|
323
|
-
featuredLabel = 'featuredLabel',
|
|
324
|
-
feeInfo = 'feeInfo',
|
|
325
|
-
feeInfoAboveMin = 'feeInfoAboveMin',
|
|
326
|
-
feeInfoBelowMax = 'feeInfoBelowMax',
|
|
327
|
-
feeInfoWithinRange = 'feeInfoWithinRange',
|
|
328
|
-
feeLabel = 'feeLabel',
|
|
329
|
-
fluentBuyCoinsCustomAmountGoodMessage = 'fluentBuyCoinsCustomAmountGoodMessage',
|
|
330
|
-
fluentBuyCoinsPackSelectedGoodMessage = 'fluentBuyCoinsPackSelectedGoodMessage',
|
|
331
|
-
fluentBuyCoinsPackSelectedGoodTitle = 'fluentBuyCoinsPackSelectedGoodTitle',
|
|
332
|
-
fluentBuyCoinsStoredTitle = 'fluentBuyCoinsStoredTitle',
|
|
333
|
-
fluentChangePackMessage = 'fluentChangePackMessage',
|
|
334
|
-
fluentChangePackTitle = 'fluentChangePackTitle',
|
|
335
|
-
fluentDepositAmountAboveLimit = 'fluentDepositAmountAboveLimit',
|
|
336
|
-
fluentDepositAmountBelowLimit = 'fluentDepositAmountBelowLimit',
|
|
337
|
-
fluentDepositCVCNotRequired = 'fluentDepositCvcNotRequired',
|
|
338
|
-
fluentDepositCVCRequired = 'fluentDepositCvcRequired',
|
|
339
|
-
fluentDepositMessage = 'fluentDepositMessage',
|
|
340
|
-
fluentDepositTitle = 'fluentDepositTitle',
|
|
341
|
-
fluentDepositTitleAmountBad = 'fluentDepositTitleAmountBad',
|
|
342
|
-
fluentDepositTitleAmountGood = 'fluentDepositTitleAmountGood',
|
|
343
|
-
fluentDetailCard = 'fluentDetailCard',
|
|
344
|
-
fluentDetailExternal = 'fluentDetailExternal',
|
|
345
|
-
fluentDetailTitle = 'fluentDetailTitle',
|
|
346
|
-
fluentKycLimitNearlyReachedMessage = 'fluentKycLimitNearlyReachedMessage',
|
|
347
|
-
fluentKycLimitReachedMessage = 'fluentKycLimitReachedMessage',
|
|
348
|
-
fluentMaxAmountWithdrawal = 'fluentMaxAmountWithdrawal',
|
|
349
|
-
fluentMethodCompletePurchaseCustomAmountMessage = 'fluentMethodCompletePurchaseCustomAmountMessage',
|
|
350
|
-
fluentMethodCompletePurchasePackMessage = 'fluentMethodCompletePurchasePackMessage',
|
|
351
|
-
fluentMethodCompletePurchaseTitle = 'fluentMethodCompletePurchaseTitle',
|
|
352
|
-
fluentNoWithdrawableBalanceMessage = 'fluentNoWithdrawableBalanceMessage',
|
|
353
|
-
fluentNoWithdrawableBalanceTitle = 'fluentNoWithdrawableBalanceTitle',
|
|
354
|
-
fluentOnePendingWithdrawalOnlyMessage = 'fluentOnePendingWithdrawalOnlyMessage',
|
|
355
|
-
fluentPendingWithdrawalsMessage = 'fluentPendingWithdrawalsMessage',
|
|
356
|
-
fluentPendingWithdrawalsTitle = 'fluentPendingWithdrawalsTitle',
|
|
357
|
-
fluentVerificationRequiredTitle = 'fluentVerificationRequiredTitle',
|
|
358
|
-
fluentVerifyCta = 'fluentVerifyCta',
|
|
359
|
-
fluentWithdrawalAmountAboveLimit = 'fluentWithdrawalAmountAboveLimit',
|
|
360
|
-
fluentWithdrawalAmountBelowLimit = 'fluentWithdrawalAmountBelowLimit',
|
|
361
|
-
fluentWithdrawalAmountError = 'fluentWithdrawalAmountError',
|
|
362
|
-
fluentWithdrawalAmountGoodMessage = 'fluentWithdrawalAmountGoodMessage',
|
|
363
|
-
fluentWithdrawalFiatAmountGoodMessage = 'fluentWithdrawalFiatAmountGoodMessage',
|
|
364
|
-
fluentWithdrawalAmountGoodTitle = 'fluentWithdrawalAmountGoodTitle',
|
|
365
|
-
fluentWithdrawalAmountMessage = 'fluentWithdrawalAmountMessage',
|
|
366
|
-
fluentWithdrawalAmountTitle = 'fluentWithdrawalAmountTitle',
|
|
367
|
-
fluentWithdrawalDetailDefaultMessage = 'fluentWithdrawalDetailDefaultMessage',
|
|
368
|
-
fluentWithdrawalDetailMessage = 'fluentWithdrawalDetailMessage',
|
|
369
|
-
fluentWithdrawalDetailTitle = 'fluentWithdrawalDetailTitle',
|
|
370
|
-
fluentWithdrawalSummaryMessage = 'fluentWithdrawalSummaryMessage',
|
|
371
|
-
fluentWithdrawalSummaryTitle = 'fluentWithdrawalSummaryTitle',
|
|
372
|
-
goBackModalContent = 'goBackModalContent',
|
|
373
|
-
goBackModalTitle = 'goBackModalTitle',
|
|
374
|
-
johnDoe = 'johnDoe',
|
|
375
|
-
labelButtonCancelAllWithdrawals = 'labelButtonCancelAllWithdrawals',
|
|
376
|
-
labelDeposit = 'labelDeposit',
|
|
377
|
-
labelInfoIcon = 'labelInfoIcon',
|
|
378
|
-
labelWithdraw = 'labelWithdraw',
|
|
379
|
-
landscapeWarning = 'landscapeWarning',
|
|
380
|
-
lockedBalanceTitle = 'lockedBalanceTitle',
|
|
381
|
-
lockedInfoModalContent = 'lockedInfoModalContent',
|
|
382
|
-
lockedInfoModalTitle = 'lockedInfoModalTitle',
|
|
383
|
-
maxAmount = 'maxAmount',
|
|
384
|
-
methodLimitExceededPromptBody = 'methodLimitExceededPromptBody',
|
|
385
|
-
methodLimitExceededPromptOptionDismiss = 'methodLimitExceededPromptOptionDismiss',
|
|
386
|
-
methodLimitExceededPromptOptionEdit = 'methodLimitExceededPromptOptionEdit',
|
|
387
|
-
methodLimitExceededPromptTitle = 'methodLimitExceededPromptTitle',
|
|
388
|
-
minAmount = 'minAmount',
|
|
389
|
-
mmYy = 'mmYy',
|
|
390
|
-
modalFooterCta = 'modalFooterCta',
|
|
391
|
-
modifyAmount = 'modifyAmount',
|
|
392
|
-
moreMethodsLabel = 'moreMethodsLabel',
|
|
393
|
-
nameOnCard = 'nameOnCard',
|
|
394
|
-
negativePromptModalContent = 'negativePromptModalContent',
|
|
395
|
-
newMethod = 'newMethod',
|
|
396
|
-
noPaymentMethodsAvailableMessage = 'noPaymentMethodsAvailableMessage',
|
|
397
|
-
noPaymentMethodsAvailableTitle = 'noPaymentMethodsAvailableTitle',
|
|
398
|
-
noWithdrawalMethodsAvailable = 'noWithdrawalMethodsAvailable',
|
|
399
|
-
orChooseAPackDivider = 'orChooseAPackDivider',
|
|
400
|
-
otherCategoryLabel = 'otherCategoryLabel',
|
|
401
|
-
packSelectionLabel = 'packSelectionLabel',
|
|
402
|
-
paymentMethodInfoModalTitle = 'paymentMethodInfoModalTitle',
|
|
403
|
-
paymentMethodsTitle = 'paymentMethodsTitle',
|
|
404
|
-
pendingTransactionMessage = 'pendingTransactionMessage',
|
|
405
|
-
pendingTransactionTitle = 'pendingTransactionTitle',
|
|
406
|
-
pendingWithdrawalsLinkLabel = 'pendingWithdrawalsLinkLabel',
|
|
407
|
-
phoneNumber = 'phoneNumber',
|
|
408
|
-
phonePrefix = 'phonePrefix',
|
|
409
|
-
positivePromptModalContent = 'positivePromptModalContent',
|
|
410
|
-
promptLabelNegative = 'promptLabelNegative',
|
|
411
|
-
promptLabelPositive = 'promptLabelPositive',
|
|
412
|
-
quickBuyAuthorisationTitle = 'quickBuyAuthorisationTitle',
|
|
413
|
-
quickBuyPaymentMethodDetailsTitle = 'quickBuyPaymentMethodDetailsTitle',
|
|
414
|
-
quickBuyPaymentMethodTitle = 'quickBuyPaymentMethodTitle',
|
|
415
|
-
quickBuyTransactionStatusTitleError = 'quickBuyTransactionStatusTitleError',
|
|
416
|
-
quickBuyTransactionStatusTitleSuccess = 'quickBuyTransactionStatusTitleSuccess',
|
|
417
|
-
quickDepositTitle = 'quickDepositTitle',
|
|
418
|
-
regularPacksDivider = 'regularPacksDivider',
|
|
419
|
-
specialPackDivider = 'specialPackDivider',
|
|
420
|
-
sslTitle = 'sslTitle',
|
|
421
|
-
stickyUpsellClaimButtonText = 'stickyUpsellClaimButtonText',
|
|
422
|
-
storedMethods = 'storedMethods',
|
|
423
|
-
successDepositTitle = 'successDepositTitle',
|
|
424
|
-
successPlayButton = 'successPlayButton',
|
|
425
|
-
successWithdrawalTitle = 'successWithdrawalTitle',
|
|
426
|
-
summaryDepositTitle = 'summaryDepositTitle',
|
|
427
|
-
summaryEditLabel = 'summaryEditLabel',
|
|
428
|
-
summaryWithdrawalCurrencyTitle = 'summaryWithdrawalCurrencyTitle',
|
|
429
|
-
summaryWithdrawalTitle = 'summaryWithdrawalTitle',
|
|
430
|
-
totalAmountMessage = 'totalAmountMessage',
|
|
431
|
-
transactionInfo = 'transactionInfo',
|
|
432
|
-
transactionLoaderMessage = 'transactionLoaderMessage',
|
|
433
|
-
transactionLoaderTitle = 'transactionLoaderTitle',
|
|
434
|
-
transactionSplitVirtualCoin = 'transactionSplitVirtualCoin',
|
|
435
|
-
transactionStatusFailure = 'transactionStatusFailure',
|
|
436
|
-
transactionStatusSuccess = 'transactionStatusSuccess',
|
|
437
|
-
updateAvailableCta = 'updateAvailableCta',
|
|
438
|
-
updateAvailableMessage = 'updateAvailableMessage',
|
|
439
|
-
updateAvailableTitle = 'updateAvailableTitle',
|
|
440
|
-
upsellCarouselSpecialOfferDivider = 'upsellCarouselSpecialOfferDivider',
|
|
441
|
-
upsellClaimedButtonText = 'upsellClaimedButtonText',
|
|
442
|
-
upsellTimerPaused = 'upsellTimerPaused',
|
|
443
|
-
userCloseBrowserTabPromptMessage = 'userCloseBrowserTabPromptMessage',
|
|
444
|
-
verificationScreenCtaLabel = 'verificationScreenCtaLabel',
|
|
445
|
-
verificationScreenMessage = 'verificationScreenMessage',
|
|
446
|
-
verificationScreenTitle = 'verificationScreenTitle',
|
|
447
|
-
viewAllPacksCta = 'viewAllPacksCta',
|
|
448
|
-
withdrawalAmountLeftoverAfterFees = 'withdrawalAmountLeftoverAfterFees',
|
|
449
|
-
withdrawalApproved = 'withdrawalApproved',
|
|
450
|
-
withdrawalCancelLabel = 'withdrawalCancelLabel',
|
|
451
|
-
withdrawalCancelModalButtonNegative = 'withdrawalCancelModalButtonNegative',
|
|
452
|
-
withdrawalCancelModalButtonPositive = 'withdrawalCancelModalButtonPositive',
|
|
453
|
-
withdrawalCancelModalContent = 'withdrawalCancelModalContent',
|
|
454
|
-
withdrawalCancelModalTitle = 'withdrawalCancelModalTitle',
|
|
455
|
-
withdrawalCtaLabel = 'withdrawalCtaLabel',
|
|
456
|
-
withdrawalInfoModalContent = 'withdrawalInfoModalContent',
|
|
457
|
-
withdrawalInfoModalTitle = 'withdrawalInfoModalTitle',
|
|
458
|
-
withdrawalListTitle = 'withdrawalListTitle',
|
|
459
|
-
withdrawalProcessing = 'withdrawalProcessing',
|
|
460
|
-
withdrawalRemainingBalance = 'withdrawalRemainingBalance',
|
|
461
|
-
withdrawalRequestDate = 'withdrawalRequestDate',
|
|
462
|
-
withdrawalRequested = 'withdrawalRequested',
|
|
463
|
-
withdrawalTitle = 'withdrawalTitle',
|
|
464
|
-
withdrawalTransactionIdLabel = 'withdrawalTransactionIdLabel',
|
|
465
|
-
withMethod = 'withMethod'
|
|
466
|
-
}
|
package/src/wallet.ts
DELETED
|
@@ -1,103 +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 WalletRequestBody {
|
|
17
|
-
payload?: object | string;
|
|
18
|
-
payloadOptions?: TransactionOptions;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface WalletInitParams {
|
|
22
|
-
country: string;
|
|
23
|
-
ipAddress: string;
|
|
24
|
-
locale: string;
|
|
25
|
-
currency: string,
|
|
26
|
-
operatorId: number;
|
|
27
|
-
sessionId: string;
|
|
28
|
-
userId: string | number;
|
|
29
|
-
userAgent: string;
|
|
30
|
-
viewport: Viewport;
|
|
31
|
-
userData?: UserData;
|
|
32
|
-
timestamp: string;
|
|
33
|
-
buildDate: string;
|
|
34
|
-
hostSiteUrl: string;
|
|
35
|
-
virtual: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface WalletConfig {
|
|
39
|
-
allowCustomAmount: boolean;
|
|
40
|
-
autofillCreditCardName: boolean;
|
|
41
|
-
balanceDisplayed: boolean;
|
|
42
|
-
banner?: Banner;
|
|
43
|
-
bonusOutlined: boolean;
|
|
44
|
-
campaign?: Campaign;
|
|
45
|
-
cardHolderNameRegex: string | null;
|
|
46
|
-
contactSupportEnabled: boolean;
|
|
47
|
-
contactSupportLink: string;
|
|
48
|
-
contentText: Record<string, string>;
|
|
49
|
-
expressFlowEnabled: boolean;
|
|
50
|
-
defaultDepositAmount: number;
|
|
51
|
-
fullListOfDepositMethodsDisplayed: boolean;
|
|
52
|
-
hideMinMaxEnabled: boolean;
|
|
53
|
-
integration: Integration;
|
|
54
|
-
kycDepositLimit: number | null;
|
|
55
|
-
manualBonusCodesEnabled?: boolean;
|
|
56
|
-
pendingWithdrawalsReminder: {
|
|
57
|
-
threshold: number;
|
|
58
|
-
userResponseRequired: boolean;
|
|
59
|
-
};
|
|
60
|
-
successScreen: {
|
|
61
|
-
promotion: Promotion | null;
|
|
62
|
-
};
|
|
63
|
-
suggestedDepositAmounts: number[];
|
|
64
|
-
theme: Record<string, string>;
|
|
65
|
-
transactionToggleDisplayed: boolean;
|
|
66
|
-
withdrawalInFiatCurrency: boolean;
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface Promotion {
|
|
71
|
-
title: string;
|
|
72
|
-
description: string;
|
|
73
|
-
tag: string;
|
|
74
|
-
ctaLinkLabel: string;
|
|
75
|
-
ctaLinkUrl: string;
|
|
76
|
-
thumbnail: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface Banner {
|
|
80
|
-
title: string;
|
|
81
|
-
body: string;
|
|
82
|
-
ctaLabel: string;
|
|
83
|
-
iconUrl: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface CampaignChatIcons {
|
|
87
|
-
amount?: string;
|
|
88
|
-
bonus?: string;
|
|
89
|
-
paymentMethod?: string;
|
|
90
|
-
paymentDetails?: string;
|
|
91
|
-
securePayment?: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface Campaign {
|
|
95
|
-
enableSuccessAnimation: boolean;
|
|
96
|
-
customChatIcons?: CampaignChatIcons;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface DepositAmountsSettings {
|
|
100
|
-
id?: string;
|
|
101
|
-
defaultDepositAmount: number;
|
|
102
|
-
suggestedDepositAmounts: number[];
|
|
103
|
-
}
|