@jetthai/cuora 1.1.488 → 1.2.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/.husky/pre-commit +3 -1
- package/CHANGELOG.md +0 -349
- package/README.md +15 -299
- package/package.json +3 -6
- package/resetGitBranch.sh +101 -0
- package/src/api/activity.js +39 -24
- package/src/api/auth.js +35 -4
- package/src/api/common.js +1 -8
- package/src/api/game.js +10 -0
- package/src/api/index.js +1 -3
- package/src/api/payment.js +55 -17
- package/src/api/user.js +16 -11
- package/src/index.js +2 -2
- package/src/lib/fingerprint_v3_11_12.js +11433 -0
- package/src/machine/activity/activity.js +209 -0
- package/src/machine/activity/activity_cash.js +18 -71
- package/src/machine/activity/diamond_shop_activity_cash.js +1 -0
- package/src/machine/activity/diamond_shop_activity_fc.js +196 -0
- package/src/machine/activity/diamond_shop_activity_vn.js +178 -0
- package/src/machine/activity/fafafa_activity.js +10 -0
- package/src/machine/activity/index.js +12 -0
- package/src/machine/activity/invite_friends_activity.js +114 -0
- package/src/machine/activity/mini_game_activity.js +68 -0
- package/src/machine/activity/return_bonus_activity.js +153 -0
- package/src/machine/activity/roulette_activity_v2.js +0 -5
- package/src/machine/auth.js +109 -158
- package/src/machine/auth_otp_v2.js +177 -0
- package/src/machine/auth_otp_v3.js +32 -111
- package/src/machine/bank_binding.js +2 -2
- package/src/machine/bank_binding_amb.js +145 -0
- package/src/machine/bonus.js +75 -0
- package/src/machine/common.js +91 -27
- package/src/machine/deposit/amb.js +92 -0
- package/src/machine/deposit/crypto_bank.js +325 -0
- package/src/machine/deposit/crypto_bank_cash.js +8 -19
- package/src/machine/deposit/crypto_qrcode.js +148 -0
- package/src/machine/deposit/crypto_qrcode_cash.js +41 -26
- package/src/machine/deposit/crypto_way.js +247 -0
- package/src/machine/deposit/crypto_way_cash.js +32 -52
- package/src/machine/deposit/deposit_fc.js +271 -0
- package/src/machine/deposit/direct.js +310 -0
- package/src/machine/deposit/direct_cash.js +9 -8
- package/src/machine/deposit/float.js +374 -0
- package/src/machine/deposit/index.js +28 -0
- package/src/machine/deposit/krway.js +151 -0
- package/src/machine/deposit/loadcard_cash.js +31 -14
- package/src/machine/deposit/loadcard_vn.js +351 -0
- package/src/machine/deposit/manual_cash.js +10 -8
- package/src/machine/deposit/manual_vn.js +458 -0
- package/src/machine/deposit/qrcode_cash.js +30 -14
- package/src/machine/deposit/qrcode_v2.js +338 -0
- package/src/machine/deposit/usdt.js +144 -0
- package/src/machine/deposit/virtual_bank_cash.js +2 -5
- package/src/machine/deposit/virtual_bank_vn.js +269 -0
- package/src/machine/deposit/vpay.js +367 -0
- package/src/machine/error.js +0 -7
- package/src/machine/game_hot_new.js +79 -0
- package/src/machine/game_info.js +12 -5
- package/src/machine/game_replay.js +46 -0
- package/src/machine/game_search_v2.js +401 -0
- package/src/machine/game_v2_1.js +88 -43
- package/src/machine/honor_board.js +132 -0
- package/src/machine/honor_board_cash.js +18 -15
- package/src/machine/inbox.js +12 -0
- package/src/machine/index.js +32 -0
- package/src/machine/leaderboard.js +11 -8
- package/src/machine/merge.js +57 -0
- package/src/machine/payment_data.js +86 -0
- package/src/machine/promotions.js +170 -0
- package/src/machine/ranking.js +25 -43
- package/src/machine/reward.js +255 -0
- package/src/machine/reward_cash.js +41 -2
- package/src/machine/reward_fc.js +98 -0
- package/src/machine/roulette_v2.js +25 -20
- package/src/machine/side.js +154 -0
- package/src/machine/side_cash.js +2 -3
- package/src/machine/side_v2.js +209 -0
- package/src/machine/user_reset_password.js +15 -4
- package/src/machine/user_sign_up.js +60 -46
- package/src/machine/vip_table.js +57 -0
- package/src/machine/websocket.js +325 -378
- package/src/machine/welcome.js +110 -0
- package/src/machine/withdraw/index.js +6 -0
- package/src/machine/withdraw/withdraw_crypto_cash.js +327 -0
- package/src/machine/withdraw/withdraw_krway.js +222 -0
- package/src/machine/withdraw/withdraw_manual.js +533 -0
- package/src/machine/withdraw/withdraw_manual_cash.js +38 -59
- package/src/request/config.js +0 -2
- package/src/request/request.js +62 -130
- package/src/util/constant.js +2 -6
- package/src/util/deviceToken.js +59 -0
- package/src/util/index.js +4 -2
- package/src/util/math.js +4 -0
- package/.claude/commands/sync-ai-prompts.md +0 -93
- package/.claude/settings.local.json +0 -23
- package/.github/copilot-instructions.md +0 -448
- package/.husky/post-checkout +0 -32
- package/.husky/pre-push +0 -36
- package/AGENTS.md +0 -448
- package/AI_PROMPT_SOURCE.md +0 -446
- package/CLAUDE.md +0 -448
- package/GEMINI.md +0 -448
- package/docs/kibana/crypto-way-deposit-amount-bug-analysis.md +0 -1003
- package/docs/kibana/play-providerId-error.md +0 -202
- package/docs/kibana/play-selectedWalletType.md +0 -1
- package/docs/kibana/play-selectedWalletType_2.md +0 -1
- package/docs/kibana/play-selectedWalletType_analysis.md +0 -565
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/branch-transfer.md +0 -14
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/cash-module-preparation.json +0 -40
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/cash-module-verification.md +0 -41
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/implementation-ledger.md +0 -87
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/module-report.md +0 -73
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/plan.md +0 -309
- package/docs/my-claude/feat-sharon-JT-1790247240-socket/test-cases.md +0 -245
- package/docs/my-claude/feat-sharon-JT-1791180540-onesignal/transfer.md +0 -9
- package/scripts/auto-version.js +0 -68
- package/scripts/auto-version.sh +0 -33
- package/scripts/branch-auto-npm-publish.js +0 -29
- package/scripts/check-version.sh +0 -36
- package/scripts/clean-tags.sh +0 -84
- package/src/api/account.js +0 -7
- package/src/api/otp.js +0 -5
- package/src/util/amount.js +0 -8
- package/src/util/err998SentryExtra.js +0 -26
- package/src/util/paramStore.js +0 -139
- package/src/util/socketPolicy.js +0 -57
- package/test/auth_otp_v3.test.js +0 -323
- package/tests/websocket.test.mjs +0 -779
package/src/api/payment.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
getPaymentHistory: (returnDays) => ({ url: 'payment/v2/history', method: 'post', params: { returnDays } }),
|
|
3
|
+
getSpotMarket: () => ({ url: 'payment/v2/spotmarket', method: 'get' }),
|
|
2
4
|
getTransactionHistory: (payload) => ({
|
|
3
5
|
url: 'payment/v2/transactionHistory',
|
|
4
6
|
method: 'post',
|
|
5
7
|
params: { ...payload },
|
|
6
8
|
}),
|
|
7
9
|
getTransactionHistoryOptions: () => ({ url: 'payment/v2/category/options', method: 'get' }),
|
|
8
|
-
getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }),
|
|
10
|
+
getPaymentInfo: () => ({ url: `payment/v2/paymentInfo`, method: 'get' }),
|
|
9
11
|
getBindingPaymentInfo: () => ({ url: `payment/v2/getBindingPaymentInfo`, method: 'get' }),
|
|
10
12
|
updatePaymentInfo: ({
|
|
11
13
|
bankCode,
|
|
@@ -56,8 +58,19 @@ export default {
|
|
|
56
58
|
}),
|
|
57
59
|
getBankList: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/getBankList`, method: 'get' }),
|
|
58
60
|
getBindingBankList: ({ appSecret }) => ({ url: 'payment/v2/getBindingBankList', method: 'get', params: { appSecret }, isPublic: true }),
|
|
59
|
-
getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/v2/getBindingPaymentList', method: 'get', params: { appSecret } }),
|
|
61
|
+
getBindingPaymentList: ({ appSecret }) => ({ url: 'payment/v2/getBindingPaymentList', method: 'get', params: { appSecret }, isPublic: true }),
|
|
62
|
+
getWithdrawBankList: () => ({ url: 'payment/v2/getWithdrawBankList', method: 'get' }),
|
|
63
|
+
makeTransaction: ({ type, payload, paymentMethod }) => ({
|
|
64
|
+
url: `payment/v2/${paymentMethod}/transaction`,
|
|
65
|
+
method: 'post',
|
|
66
|
+
params: {
|
|
67
|
+
transferType: type,
|
|
68
|
+
...payload,
|
|
69
|
+
},
|
|
70
|
+
}),
|
|
71
|
+
checkTransaction: (paymentMethod) => ({ url: `payment/v2/${paymentMethod}/checkTransaction`, method: 'post' }),
|
|
60
72
|
setBonusSetting: ({ bonus }) => ({ url: 'payment/v2/setting', method: 'post', params: { bonus } }),
|
|
73
|
+
getCurrentWithdrawRule: () => ({ url: 'payment/v2/getCurrentWithdrawRule', method: 'get' }),
|
|
61
74
|
getDoubleWalletWithdrawRule: ({ walletType }) => ({
|
|
62
75
|
url: 'payment/v2/withdrawRule',
|
|
63
76
|
method: 'post',
|
|
@@ -68,6 +81,7 @@ export default {
|
|
|
68
81
|
method: 'post',
|
|
69
82
|
params: { exchangeType, cryptoNetwork, targetAddress },
|
|
70
83
|
}),
|
|
84
|
+
mergeWallet: () => ({ url: 'payment/v2/mergeWallet', method: 'post' }),
|
|
71
85
|
getPaymentDetail: ({ transferType } = {}) => ({
|
|
72
86
|
url: 'payment/v2/paymentDetail',
|
|
73
87
|
method: 'post',
|
|
@@ -88,6 +102,11 @@ export default {
|
|
|
88
102
|
method: 'post',
|
|
89
103
|
params: { transferType: 'WITHDRAW', amount, cryptoCurrency, promotionsNo },
|
|
90
104
|
}),
|
|
105
|
+
getWithdrawExpectedResult: ({ method, amount, cryptoNetwork }) => ({
|
|
106
|
+
url: `payment/v2/${method}/expected/result`,
|
|
107
|
+
method: 'post',
|
|
108
|
+
params: { transferType: 'WITHDRAW', amount, cryptoNetwork },
|
|
109
|
+
}),
|
|
91
110
|
submitDepositTransactionCrypto: ({ method, amount, cryptoCurrency, cryptoNetwork, sourceAddress, promotionsNo, receipt }) => ({
|
|
92
111
|
url: `payment/v2/${method}/transaction`,
|
|
93
112
|
method: 'post',
|
|
@@ -157,12 +176,12 @@ export default {
|
|
|
157
176
|
params: { transferType: 'DEPOSIT', amount, promotionsNo },
|
|
158
177
|
}),
|
|
159
178
|
submitWithdrawTransactionCrypto: ({ method, amount, cryptoCurrency, cryptoNetwork, targetAddress, applyerHolderName }) => ({
|
|
160
|
-
url:
|
|
179
|
+
url: `payment/v2/${method}/transaction`,
|
|
161
180
|
method: 'post',
|
|
162
181
|
params: { transferType: 'WITHDRAW', amount, cryptoCurrency, cryptoNetwork, targetAddress, applyerHolderName },
|
|
163
182
|
}),
|
|
164
183
|
submitWithdrawTransactionVN: ({ method, amount, applyerBankCode, applyerAccountNumber, applyerIfscCode, branch, applyerHolderName }) => ({
|
|
165
|
-
url:
|
|
184
|
+
url: `payment/v2/${method}/transaction`,
|
|
166
185
|
method: 'post',
|
|
167
186
|
params: {
|
|
168
187
|
transferType: 'WITHDRAW',
|
|
@@ -174,6 +193,38 @@ export default {
|
|
|
174
193
|
applyerHolderName,
|
|
175
194
|
},
|
|
176
195
|
}),
|
|
196
|
+
submitWithdrawTransactionManual: ({
|
|
197
|
+
method,
|
|
198
|
+
amount,
|
|
199
|
+
applyerBankCode,
|
|
200
|
+
applyerAccountNumber,
|
|
201
|
+
applyerIfscCode,
|
|
202
|
+
branch,
|
|
203
|
+
holderName,
|
|
204
|
+
cryptoCurrency,
|
|
205
|
+
cryptoNetwork,
|
|
206
|
+
targetAddress,
|
|
207
|
+
}) => ({
|
|
208
|
+
url: `payment/v2/${method}/transaction`,
|
|
209
|
+
method: 'post',
|
|
210
|
+
params: {
|
|
211
|
+
transferType: 'WITHDRAW',
|
|
212
|
+
amount,
|
|
213
|
+
applyerBankCode,
|
|
214
|
+
applyerAccountNumber,
|
|
215
|
+
applyerIfscCode,
|
|
216
|
+
branch,
|
|
217
|
+
holderName,
|
|
218
|
+
cryptoCurrency,
|
|
219
|
+
cryptoNetwork,
|
|
220
|
+
targetAddress,
|
|
221
|
+
},
|
|
222
|
+
}),
|
|
223
|
+
submitWithdrawTransactionAmb: ({ method, amount }) => ({
|
|
224
|
+
url: `payment/v2/${method}/transaction`,
|
|
225
|
+
method: 'post',
|
|
226
|
+
params: { transferType: 'WITHDRAW', amount },
|
|
227
|
+
}),
|
|
177
228
|
getPromotionsList: () => ({ url: `payment/v2/bankWallet/promotions`, method: 'get' }),
|
|
178
229
|
getWithdrawRulePreview: ({ applyType, applyNo, amount, isFreeGame }) => ({
|
|
179
230
|
url: `payment/v2/bankWallet/promotion/preview`,
|
|
@@ -196,17 +247,4 @@ export default {
|
|
|
196
247
|
withdrawCheck: () => ({ url: `payment/v2/withdrawCheck`, method: 'post' }),
|
|
197
248
|
updateUtr: ({ applyId, utr }) => ({ url: 'payment/v2/updateUtr', method: 'post', params: { applyId, utr } }),
|
|
198
249
|
uploadCommonSlip: ({ applyId, slip }) => ({ url: 'payment/v2/uploadCommonSlip', method: 'post', params: { applyId, slip } }),
|
|
199
|
-
otpAcknowledge: ({ method, requestId, code }) => ({
|
|
200
|
-
url: `/payment/v2/${method}/withdraw-otp/acknowledge`,
|
|
201
|
-
method: 'post',
|
|
202
|
-
params: { requestId, code },
|
|
203
|
-
isPublic: true,
|
|
204
|
-
}),
|
|
205
|
-
otpReset: ({ method, requestId }) => ({
|
|
206
|
-
url: `/payment/v2/${method}/withdraw-otp/reset-otp`,
|
|
207
|
-
method: 'post',
|
|
208
|
-
params: { requestId },
|
|
209
|
-
isPublic: true,
|
|
210
|
-
}),
|
|
211
|
-
getPaymentPromotions: () => ({ url: 'payment/v2/promotions', method: 'get' }),
|
|
212
250
|
}
|
package/src/api/user.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
export const PASSWORD_RESET_INIT = 'otp-verifying'
|
|
2
|
+
export const PASSWORD_RESET_ALLOW = 'allow-change-password'
|
|
3
|
+
|
|
1
4
|
export default {
|
|
2
5
|
checkDt: () => ({ url: 'checkDt', method: 'get' }),
|
|
3
6
|
updateDt: (data) => ({ url: 'updateDt', method: 'post', params: data }),
|
|
4
7
|
getUserInfo: () => ({ url: 'self', method: 'get' }),
|
|
5
8
|
updateUserInfo: (data) => ({ url: 'self', method: 'post', params: data }),
|
|
6
9
|
changePassword: (data) => ({ url: 'settings/password', method: 'post', params: data }),
|
|
10
|
+
setPreference: ({ defaultCategory }) => ({ url: 'settings/preference', method: 'post', params: { defaultCategory } }),
|
|
7
11
|
resetOtp: ({ requestId, number }) => ({ url: 'reset', method: 'post', params: { requestId, number } }),
|
|
12
|
+
getAffiliate: () => ({ url: 'affiliate', method: 'get' }),
|
|
13
|
+
getAffiliateHome: () => ({ url: 'affiliate/home', method: 'get' }),
|
|
14
|
+
getAffiliateDashboard: () => ({ url: 'affiliate/dashboard', method: 'get' }),
|
|
15
|
+
getAffiliateDashboardList: ({ level, page, row }) => ({ url: 'affiliate/dashboard/list', method: 'post', params: { level, page, row } }),
|
|
16
|
+
postAffiliate: ({ affiliateCode }) => ({ url: 'affiliate', method: 'post', params: { affiliateCode } }),
|
|
8
17
|
getFriends: () => ({ url: 'friends', method: 'get' }),
|
|
9
18
|
getFriendsHome: () => ({ url: 'friends/home', method: 'get' }),
|
|
10
19
|
getFriendsDashboard: () => ({ url: 'friends/dashboard', method: 'get' }),
|
|
11
20
|
getFriendsDashboardList: ({ level, page, row }) => ({ url: 'friends/dashboard/list', method: 'post', params: { level, page, row } }),
|
|
12
21
|
getFriendsList: ({ type, page, row }) => ({ url: 'friends/reward-list', method: 'post', params: { type, page, row } }),
|
|
13
22
|
postFriends: ({ friendCode }) => ({ url: 'friends', method: 'post', params: { friendCode } }),
|
|
23
|
+
passwordRecovery: (recoveryData) => ({ url: 'recovery', method: 'post', params: recoveryData, isPublic: true }),
|
|
14
24
|
// passwordAbandon: ({ number }) => ({ url: 'recovery/abandon', method: 'post', params: { number }, isPublic: true }), 平台版和現金網未使用
|
|
15
25
|
// passwordAcknowledge: (acknowledgeData) => ({ url: 'recovery/acknowledge', method: 'post', params: acknowledgeData, isPublic: true }), 平台版和現金網未使用
|
|
16
26
|
verify: () => ({ url: 'verify', method: 'post' }),
|
|
@@ -40,6 +50,12 @@ export default {
|
|
|
40
50
|
params: { requestId, target, newPassword, appSecret },
|
|
41
51
|
isPublic: true,
|
|
42
52
|
}),
|
|
53
|
+
verifyV2Initiate: ({ strategy }) => ({
|
|
54
|
+
// strategy: 'phone' | 'email'
|
|
55
|
+
url: '/verify/v2/initiate',
|
|
56
|
+
method: 'post',
|
|
57
|
+
params: { strategy },
|
|
58
|
+
}),
|
|
43
59
|
otpAcknowledge: ({ requestId, target, code }) => ({
|
|
44
60
|
url: '/otpsso/acknowledge',
|
|
45
61
|
method: 'post',
|
|
@@ -49,15 +65,4 @@ export default {
|
|
|
49
65
|
otpReset: ({ requestId, target }) => ({ url: '/otpsso/reset', method: 'post', params: { requestId, target }, isPublic: true }),
|
|
50
66
|
getUserPhotoList: () => ({ url: 'getAllAvatar', method: 'get' }),
|
|
51
67
|
updateUserPhoto: (data) => ({ url: 'updateUserAvatar', method: 'post', params: data }),
|
|
52
|
-
getUserProfile: () => ({ url: 'user-info/get-profile', method: 'get' }),
|
|
53
|
-
subscribeStatus: ({ deviceTokenId, domain }) => ({
|
|
54
|
-
url: 'notification-subscription/status',
|
|
55
|
-
method: 'post',
|
|
56
|
-
params: { deviceTokenId, domain },
|
|
57
|
-
}),
|
|
58
|
-
subscribeUpdate: ({ deviceTokenId, domain, action = 'subscribe' }) => ({
|
|
59
|
-
url: 'notification-subscription/update',
|
|
60
|
-
method: 'post',
|
|
61
|
-
params: { deviceTokenId, domain, action },
|
|
62
|
-
}),
|
|
63
68
|
}
|
package/src/index.js
CHANGED
|
@@ -2,6 +2,6 @@ import api from './api/index.js'
|
|
|
2
2
|
import machine from './machine/index.js'
|
|
3
3
|
import Request from './request/request.js'
|
|
4
4
|
import Config from './request/config.js'
|
|
5
|
-
import { constant, storage
|
|
5
|
+
import util, { constant, storage } from './util/index.js'
|
|
6
6
|
|
|
7
|
-
export { api, machine, Request, Config, constant, storage
|
|
7
|
+
export { api, machine, Request, Config, util, constant, storage }
|