60p82u21t54k 1.1.44 → 1.1.46
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/dist/60p82u21t54k.cjs.js +1 -1
- package/dist/60p82u21t54k.es.js +19 -19
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/general/api.d.ts +1 -1
- package/dist/api/general/api.d.ts.map +1 -1
- package/dist/model/getBankCardData/getGetBankCardDataResponse.d.ts +14 -14
- package/dist/model/getBankCardData/getGetBankCardDataResponse.d.ts.map +1 -1
- package/dist/model/getBankCardData/type.d.ts +4 -4
- package/dist/model/getBankCardData/type.d.ts.map +1 -1
- package/dist/util/tool.d.ts +1 -0
- package/dist/util/tool.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -379,6 +379,9 @@ const timeConversion = (date, fromTimeZone, toTimeZone) => {
|
|
|
379
379
|
return new Date(date.getTime() + tzDifference * 60 * 60 * 1e3);
|
|
380
380
|
};
|
|
381
381
|
const currentTS = Date.now();
|
|
382
|
+
const buildQuery = (params) => {
|
|
383
|
+
return new URLSearchParams(Object.entries(params).map(([k, v]) => [k, String(v)]));
|
|
384
|
+
};
|
|
382
385
|
class DefaultApiModelRegistry {
|
|
383
386
|
constructor() {
|
|
384
387
|
__publicField(this, "models", /* @__PURE__ */ new Map());
|
|
@@ -1332,7 +1335,7 @@ const getFinalPhoneNoString = (areaCode, phoneNo) => {
|
|
|
1332
1335
|
const tempPhoneNo = phoneNo.substring(1, phoneNo.length);
|
|
1333
1336
|
return `${areaCode}${tempPhoneNo}`;
|
|
1334
1337
|
} else {
|
|
1335
|
-
return
|
|
1338
|
+
return `+${phoneNo}`;
|
|
1336
1339
|
}
|
|
1337
1340
|
};
|
|
1338
1341
|
const modifyGetUserProfileRequest = (requests) => {
|
|
@@ -2457,7 +2460,7 @@ const modifyApplyVipBonusResponse = (result) => {
|
|
|
2457
2460
|
return result;
|
|
2458
2461
|
};
|
|
2459
2462
|
const getGetBankCardDataResponse = (raw) => {
|
|
2460
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
2463
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
2461
2464
|
return {
|
|
2462
2465
|
bankCard: (_b = (_a = raw.bankCard) == null ? void 0 : _a.map((item) => {
|
|
2463
2466
|
var _a2, _b2, _c2, _d2;
|
|
@@ -2497,23 +2500,22 @@ const getGetBankCardDataResponse = (raw) => {
|
|
|
2497
2500
|
};
|
|
2498
2501
|
})) != null ? _f : [],
|
|
2499
2502
|
cryptoAccount: (_h = (_g = raw.mdAccountCrypto) == null ? void 0 : _g.map((item) => {
|
|
2500
|
-
var _a2, _b2;
|
|
2501
2503
|
return {
|
|
2502
|
-
id: item.
|
|
2503
|
-
|
|
2504
|
-
|
|
2504
|
+
id: item.crypto_id,
|
|
2505
|
+
type: item.type,
|
|
2506
|
+
name: item.crypto_name,
|
|
2505
2507
|
address: item.address
|
|
2506
2508
|
};
|
|
2507
2509
|
})) != null ? _h : [],
|
|
2508
2510
|
cryptoDetail: {
|
|
2509
|
-
limit: raw.mdCryptoDetail.cryptolimit,
|
|
2510
|
-
|
|
2511
|
+
limit: (_j = (_i = raw.mdCryptoDetail) == null ? void 0 : _i.cryptolimit) != null ? _j : 0,
|
|
2512
|
+
protocol: (_m = (_l = (_k = raw.mdCryptoDetail) == null ? void 0 : _k.cryptoprotocol) == null ? void 0 : _l.map((item) => {
|
|
2511
2513
|
return {
|
|
2512
2514
|
id: item.id,
|
|
2513
|
-
name:
|
|
2514
|
-
|
|
2515
|
+
name: item.name,
|
|
2516
|
+
status: item.status == "1"
|
|
2515
2517
|
};
|
|
2516
|
-
})) != null ?
|
|
2518
|
+
})) != null ? _m : []
|
|
2517
2519
|
},
|
|
2518
2520
|
alipayData: raw.subWithdrawalAlipayData,
|
|
2519
2521
|
user: {
|
|
@@ -2525,12 +2527,6 @@ const getGetBankCardDataResponse = (raw) => {
|
|
|
2525
2527
|
bankCardLimit: raw.bankcardlimit
|
|
2526
2528
|
};
|
|
2527
2529
|
};
|
|
2528
|
-
const getCryptoName = (networkList, networkId) => {
|
|
2529
|
-
if (!networkList) return "";
|
|
2530
|
-
const targetIndex = networkList.findIndex((network) => network.id == networkId);
|
|
2531
|
-
const target = networkList[targetIndex];
|
|
2532
|
-
return `${target.name} (${target.value.toUpperCase()})`;
|
|
2533
|
-
};
|
|
2534
2530
|
const modifyGetBankCardDataRequest = (requests) => {
|
|
2535
2531
|
return requests;
|
|
2536
2532
|
};
|
|
@@ -7677,8 +7673,12 @@ const registerAllApiModels = () => {
|
|
|
7677
7673
|
}
|
|
7678
7674
|
};
|
|
7679
7675
|
registerAllApiModels();
|
|
7680
|
-
const get = (endpoint) => __async(void 0, null, function* () {
|
|
7681
|
-
|
|
7676
|
+
const get = (endpoint, query = null) => __async(void 0, null, function* () {
|
|
7677
|
+
let requestPath = endpoint;
|
|
7678
|
+
if (query) {
|
|
7679
|
+
requestPath = `${requestPath}?${buildQuery(query)}`;
|
|
7680
|
+
}
|
|
7681
|
+
const response = yield fetchWithTimeout(requestPath, {
|
|
7682
7682
|
method: "GET",
|
|
7683
7683
|
headers: authHeaders(),
|
|
7684
7684
|
credentials: "include"
|