60p82u21t54k 1.2.2 → 1.2.4
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 +184 -96
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/general/type.d.ts +10 -1
- package/dist/api/general/type.d.ts.map +1 -1
- package/dist/core/apiRegistration.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/model/getCryptoSelected/getGetCryptoSelectedResponse.d.ts +16 -0
- package/dist/model/getCryptoSelected/getGetCryptoSelectedResponse.d.ts.map +1 -0
- package/dist/model/getCryptoSelected/index.d.ts +5 -0
- package/dist/model/getCryptoSelected/index.d.ts.map +1 -0
- package/dist/model/getCryptoSelected/modifyGetCryptoSelectedRequest.d.ts +3 -0
- package/dist/model/getCryptoSelected/modifyGetCryptoSelectedRequest.d.ts.map +1 -0
- package/dist/model/getCryptoSelected/modifyGetCryptoSelectedResponse.d.ts +3 -0
- package/dist/model/getCryptoSelected/modifyGetCryptoSelectedResponse.d.ts.map +1 -0
- package/dist/model/getCryptoSelected/type.d.ts +13 -0
- package/dist/model/getCryptoSelected/type.d.ts.map +1 -0
- package/dist/model/getSetting/getGetSettingResponse.d.ts +2 -0
- package/dist/model/getSetting/getGetSettingResponse.d.ts.map +1 -1
- package/dist/model/getSetting/type.d.ts +9 -1
- package/dist/model/getSetting/type.d.ts.map +1 -1
- package/dist/model/memberWallet/getMemberWalletResponse.d.ts +16 -0
- package/dist/model/memberWallet/getMemberWalletResponse.d.ts.map +1 -0
- package/dist/model/memberWallet/index.d.ts +5 -0
- package/dist/model/memberWallet/index.d.ts.map +1 -0
- package/dist/model/memberWallet/modifyMemberWalletRequest.d.ts +3 -0
- package/dist/model/memberWallet/modifyMemberWalletRequest.d.ts.map +1 -0
- package/dist/model/memberWallet/modifyMemberWalletResponse.d.ts +3 -0
- package/dist/model/memberWallet/modifyMemberWalletResponse.d.ts.map +1 -0
- package/dist/model/memberWallet/type.d.ts +14 -0
- package/dist/model/memberWallet/type.d.ts.map +1 -0
- package/dist/model/updateCryptoSelected/getUpdateCryptoSelectedResponse.d.ts +11 -0
- package/dist/model/updateCryptoSelected/getUpdateCryptoSelectedResponse.d.ts.map +1 -0
- package/dist/model/updateCryptoSelected/index.d.ts +5 -0
- package/dist/model/updateCryptoSelected/index.d.ts.map +1 -0
- package/dist/model/updateCryptoSelected/modifyUpdateCryptoSelectedRequest.d.ts +3 -0
- package/dist/model/updateCryptoSelected/modifyUpdateCryptoSelectedRequest.d.ts.map +1 -0
- package/dist/model/updateCryptoSelected/modifyUpdateCryptoSelectedResponse.d.ts +3 -0
- package/dist/model/updateCryptoSelected/modifyUpdateCryptoSelectedResponse.d.ts.map +1 -0
- package/dist/model/updateCryptoSelected/type.d.ts +3 -0
- package/dist/model/updateCryptoSelected/type.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -441,82 +441,6 @@ const processResponseModifications = (result) => {
|
|
|
441
441
|
}
|
|
442
442
|
return modifiedResult;
|
|
443
443
|
};
|
|
444
|
-
const getAnnouncementResponse = (raw) => {
|
|
445
|
-
var _a;
|
|
446
|
-
return (_a = raw == null ? void 0 : raw.map((item) => {
|
|
447
|
-
var _a2;
|
|
448
|
-
return {
|
|
449
|
-
alert: item.announcement_alert === "1",
|
|
450
|
-
content: (_a2 = item.announcement_simplified) != null ? _a2 : "",
|
|
451
|
-
lastUpdatedTime: item.announcement_lastupdated
|
|
452
|
-
};
|
|
453
|
-
})) != null ? _a : [];
|
|
454
|
-
};
|
|
455
|
-
const modifyAnnouncementRequest = (requests) => {
|
|
456
|
-
return requests;
|
|
457
|
-
};
|
|
458
|
-
const modifyAnnouncementResponse = (result) => {
|
|
459
|
-
return result;
|
|
460
|
-
};
|
|
461
|
-
const getGameListResponse = (raw) => {
|
|
462
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
463
|
-
return {
|
|
464
|
-
platformGame: (_b = (_a = raw.mdGameListResult) == null ? void 0 : _a.map((product) => {
|
|
465
|
-
var _a2, _b2;
|
|
466
|
-
return {
|
|
467
|
-
code: product.code.toLowerCase(),
|
|
468
|
-
id: product.id,
|
|
469
|
-
name: product.name,
|
|
470
|
-
iconUrl: `/image/side_menu/${product.code.toLowerCase()}.png?ts=${currentTS}`,
|
|
471
|
-
nextPage: product.nextPage === 1,
|
|
472
|
-
list: product.mdPlatformProducts && ((_a2 = product.mdPlatformProducts) == null ? void 0 : _a2.length) > 0 ? (_b2 = product.mdPlatformProducts) == null ? void 0 : _b2.map((item) => {
|
|
473
|
-
return {
|
|
474
|
-
gameId: item.id_GameMaster,
|
|
475
|
-
platformId: item.id,
|
|
476
|
-
platformCode: item.code,
|
|
477
|
-
platformName: item.name,
|
|
478
|
-
name: item.name,
|
|
479
|
-
flag: {
|
|
480
|
-
value: item.flag,
|
|
481
|
-
hot: (item.flag & 2) > 0,
|
|
482
|
-
trial: (item.flag & 4) > 0,
|
|
483
|
-
new: (item.flag & 8) > 0
|
|
484
|
-
},
|
|
485
|
-
imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
|
|
486
|
-
logoUrl: `/image/platform_logo/${item.img.split("/").pop()}?ts=${currentTS}`,
|
|
487
|
-
rate: "0.00",
|
|
488
|
-
jackpotAmount: ""
|
|
489
|
-
};
|
|
490
|
-
}) : []
|
|
491
|
-
};
|
|
492
|
-
})) != null ? _b : [],
|
|
493
|
-
gameList: {
|
|
494
|
-
currentPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.current_page) != null ? _d : 1,
|
|
495
|
-
lastPage: (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.last_page) != null ? _f : 1,
|
|
496
|
-
data: (_j = (_i = (_h = (_g = raw.mdGameLists) == null ? void 0 : _g.data) == null ? void 0 : _h.map((item) => {
|
|
497
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
|
|
498
|
-
return {
|
|
499
|
-
gameId: (_a2 = item.id) != null ? _a2 : 0,
|
|
500
|
-
platformId: (_b2 = item.id_PlatformProduct) != null ? _b2 : 0,
|
|
501
|
-
platformCode: (_c2 = item.code_PlatformProduct) != null ? _c2 : "",
|
|
502
|
-
platformName: (_d2 = item.name_PlatformProduct) != null ? _d2 : "",
|
|
503
|
-
name: (_e2 = item.name) != null ? _e2 : "",
|
|
504
|
-
flag: {
|
|
505
|
-
value: (_f2 = item.flag) != null ? _f2 : 0,
|
|
506
|
-
hot: ((_g2 = item.flag) != null ? _g2 : 0 & 2) > 0,
|
|
507
|
-
trial: ((_h2 = item.flag) != null ? _h2 : 0 & 4) > 0,
|
|
508
|
-
new: ((_i2 = item.flag) != null ? _i2 : 0 & 8) > 0
|
|
509
|
-
},
|
|
510
|
-
imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[(_j2 = item.mdDomains_id) != null ? _j2 : 0]}${getImgPath((_k = item.img) != null ? _k : "", (_l = item.filemtime) != null ? _l : 0)}` : "",
|
|
511
|
-
logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformProduct}.png?ts=${currentTS}`,
|
|
512
|
-
rate: "0.00",
|
|
513
|
-
jackpotAmount: (_m = item.jackpotAmount) != null ? _m : ""
|
|
514
|
-
};
|
|
515
|
-
})) == null ? void 0 : _i.sort((a, b) => (b.jackpotAmount ? 1 : 0) - (a.jackpotAmount ? 1 : 0))) != null ? _j : []
|
|
516
|
-
},
|
|
517
|
-
trialGameList: []
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
444
|
var Api = /* @__PURE__ */ ((Api2) => {
|
|
521
445
|
Api2["announcement"] = "announcement";
|
|
522
446
|
Api2["gameList"] = "gameList";
|
|
@@ -712,8 +636,87 @@ var Api = /* @__PURE__ */ ((Api2) => {
|
|
|
712
636
|
Api2["agAllocReport"] = "agAllocReport";
|
|
713
637
|
Api2["agGetTransferReason"] = "agGetTransferReason";
|
|
714
638
|
Api2["agChangeEatRate"] = "agChangeEatRate";
|
|
639
|
+
Api2["getCryptoSelected"] = "getCryptoSelected";
|
|
640
|
+
Api2["updateCryptoSelected"] = "updateCryptoSelected";
|
|
641
|
+
Api2["memberWallet"] = "memberWallet";
|
|
715
642
|
return Api2;
|
|
716
643
|
})(Api || {});
|
|
644
|
+
const getAnnouncementResponse = (raw) => {
|
|
645
|
+
var _a;
|
|
646
|
+
return (_a = raw == null ? void 0 : raw.map((item) => {
|
|
647
|
+
var _a2;
|
|
648
|
+
return {
|
|
649
|
+
alert: item.announcement_alert === "1",
|
|
650
|
+
content: (_a2 = item.announcement_simplified) != null ? _a2 : "",
|
|
651
|
+
lastUpdatedTime: item.announcement_lastupdated
|
|
652
|
+
};
|
|
653
|
+
})) != null ? _a : [];
|
|
654
|
+
};
|
|
655
|
+
const modifyAnnouncementRequest = (requests) => {
|
|
656
|
+
return requests;
|
|
657
|
+
};
|
|
658
|
+
const modifyAnnouncementResponse = (result) => {
|
|
659
|
+
return result;
|
|
660
|
+
};
|
|
661
|
+
const getGameListResponse = (raw) => {
|
|
662
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
663
|
+
return {
|
|
664
|
+
platformGame: (_b = (_a = raw.mdGameListResult) == null ? void 0 : _a.map((product) => {
|
|
665
|
+
var _a2, _b2;
|
|
666
|
+
return {
|
|
667
|
+
code: product.code.toLowerCase(),
|
|
668
|
+
id: product.id,
|
|
669
|
+
name: product.name,
|
|
670
|
+
iconUrl: `/image/side_menu/${product.code.toLowerCase()}.png?ts=${currentTS}`,
|
|
671
|
+
nextPage: product.nextPage === 1,
|
|
672
|
+
list: product.mdPlatformProducts && ((_a2 = product.mdPlatformProducts) == null ? void 0 : _a2.length) > 0 ? (_b2 = product.mdPlatformProducts) == null ? void 0 : _b2.map((item) => {
|
|
673
|
+
return {
|
|
674
|
+
gameId: item.id_GameMaster,
|
|
675
|
+
platformId: item.id,
|
|
676
|
+
platformCode: item.code,
|
|
677
|
+
platformName: item.name,
|
|
678
|
+
name: item.name,
|
|
679
|
+
flag: {
|
|
680
|
+
value: item.flag,
|
|
681
|
+
hot: (item.flag & 2) > 0,
|
|
682
|
+
trial: (item.flag & 4) > 0,
|
|
683
|
+
new: (item.flag & 8) > 0
|
|
684
|
+
},
|
|
685
|
+
imageUrl: `${raw.mdDomains[item.mdDomains_id]}${getImgPath(item.img, item.filemtime)}`,
|
|
686
|
+
logoUrl: `/image/platform_logo/${item.img.split("/").pop()}?ts=${currentTS}`,
|
|
687
|
+
rate: "0.00",
|
|
688
|
+
jackpotAmount: ""
|
|
689
|
+
};
|
|
690
|
+
}) : []
|
|
691
|
+
};
|
|
692
|
+
})) != null ? _b : [],
|
|
693
|
+
gameList: {
|
|
694
|
+
currentPage: (_d = (_c = raw.mdGameLists) == null ? void 0 : _c.current_page) != null ? _d : 1,
|
|
695
|
+
lastPage: (_f = (_e = raw.mdGameLists) == null ? void 0 : _e.last_page) != null ? _f : 1,
|
|
696
|
+
data: (_j = (_i = (_h = (_g = raw.mdGameLists) == null ? void 0 : _g.data) == null ? void 0 : _h.map((item) => {
|
|
697
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k, _l, _m;
|
|
698
|
+
return {
|
|
699
|
+
gameId: (_a2 = item.id) != null ? _a2 : 0,
|
|
700
|
+
platformId: (_b2 = item.id_PlatformProduct) != null ? _b2 : 0,
|
|
701
|
+
platformCode: (_c2 = item.code_PlatformProduct) != null ? _c2 : "",
|
|
702
|
+
platformName: (_d2 = item.name_PlatformProduct) != null ? _d2 : "",
|
|
703
|
+
name: (_e2 = item.name) != null ? _e2 : "",
|
|
704
|
+
flag: {
|
|
705
|
+
value: (_f2 = item.flag) != null ? _f2 : 0,
|
|
706
|
+
hot: ((_g2 = item.flag) != null ? _g2 : 0 & 2) > 0,
|
|
707
|
+
trial: ((_h2 = item.flag) != null ? _h2 : 0 & 4) > 0,
|
|
708
|
+
new: ((_i2 = item.flag) != null ? _i2 : 0 & 8) > 0
|
|
709
|
+
},
|
|
710
|
+
imageUrl: raw.mdDomains && raw.mdDomains.length > 0 ? `${raw.mdDomains[(_j2 = item.mdDomains_id) != null ? _j2 : 0]}${getImgPath((_k = item.img) != null ? _k : "", (_l = item.filemtime) != null ? _l : 0)}` : "",
|
|
711
|
+
logoUrl: `/image/platform_logo/platform_logo_${item.code_PlatformProduct}.png?ts=${currentTS}`,
|
|
712
|
+
rate: "0.00",
|
|
713
|
+
jackpotAmount: (_m = item.jackpotAmount) != null ? _m : ""
|
|
714
|
+
};
|
|
715
|
+
})) == null ? void 0 : _i.sort((a, b) => (b.jackpotAmount ? 1 : 0) - (a.jackpotAmount ? 1 : 0))) != null ? _j : []
|
|
716
|
+
},
|
|
717
|
+
trialGameList: []
|
|
718
|
+
};
|
|
719
|
+
};
|
|
717
720
|
const modifyGameListRequest = (requests) => {
|
|
718
721
|
if (requests.findIndex((item) => item.name === Api.gameList) > -1) {
|
|
719
722
|
if (requests.findIndex((item) => item.name === Api.getPlatformTurnoverRate) === -1) {
|
|
@@ -890,6 +893,17 @@ const modifyCmsListRequest = (requests) => {
|
|
|
890
893
|
const modifyCmsListResponse = (result) => {
|
|
891
894
|
return result;
|
|
892
895
|
};
|
|
896
|
+
var CmsCategory = /* @__PURE__ */ ((CmsCategory2) => {
|
|
897
|
+
CmsCategory2["mobileBanner"] = "mobileBanner";
|
|
898
|
+
CmsCategory2["mobileAbout"] = "mobileAbout";
|
|
899
|
+
CmsCategory2["mobileAd"] = "mobileAd";
|
|
900
|
+
CmsCategory2["about"] = "about";
|
|
901
|
+
CmsCategory2["appAd"] = "appAd";
|
|
902
|
+
CmsCategory2["deposit"] = "deposit";
|
|
903
|
+
CmsCategory2["eventPopupBotLeft"] = "eventPopupBotLeft";
|
|
904
|
+
CmsCategory2["eventPopupBotRight"] = "eventPopupBotRight";
|
|
905
|
+
return CmsCategory2;
|
|
906
|
+
})(CmsCategory || {});
|
|
893
907
|
var PaymentType = /* @__PURE__ */ ((PaymentType2) => {
|
|
894
908
|
PaymentType2["default"] = "default";
|
|
895
909
|
PaymentType2["pay"] = "pay";
|
|
@@ -1260,17 +1274,6 @@ const setFixAmount = (name, bankId, data) => {
|
|
|
1260
1274
|
};
|
|
1261
1275
|
return payment;
|
|
1262
1276
|
};
|
|
1263
|
-
var CmsCategory = /* @__PURE__ */ ((CmsCategory2) => {
|
|
1264
|
-
CmsCategory2["mobileBanner"] = "mobileBanner";
|
|
1265
|
-
CmsCategory2["mobileAbout"] = "mobileAbout";
|
|
1266
|
-
CmsCategory2["mobileAd"] = "mobileAd";
|
|
1267
|
-
CmsCategory2["about"] = "about";
|
|
1268
|
-
CmsCategory2["appAd"] = "appAd";
|
|
1269
|
-
CmsCategory2["deposit"] = "deposit";
|
|
1270
|
-
CmsCategory2["eventPopupBotLeft"] = "eventPopupBotLeft";
|
|
1271
|
-
CmsCategory2["eventPopupBotRight"] = "eventPopupBotRight";
|
|
1272
|
-
return CmsCategory2;
|
|
1273
|
-
})(CmsCategory || {});
|
|
1274
1277
|
const modifyPaymentsProviderRequest = (requests) => {
|
|
1275
1278
|
if (requests.findIndex((item) => item.name === Api.paymentsProvider) > -1) {
|
|
1276
1279
|
const cmsListIndex = requests.findIndex((item) => item.name === Api.cmsList);
|
|
@@ -1571,6 +1574,8 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
|
|
|
1571
1574
|
SettingCategory2["socialUsernameLoginStatus"] = "social_username_login_status";
|
|
1572
1575
|
SettingCategory2["cocoEntrance"] = "coco_entrance";
|
|
1573
1576
|
SettingCategory2["cocoDomain"] = "coco_domain";
|
|
1577
|
+
SettingCategory2["depositMethod"] = "deposit_method";
|
|
1578
|
+
SettingCategory2["withdrawMethod"] = "withdraw_method";
|
|
1574
1579
|
return SettingCategory2;
|
|
1575
1580
|
})(SettingCategory || {});
|
|
1576
1581
|
const modifyVipListRequest = (requests) => {
|
|
@@ -2125,7 +2130,15 @@ const getGetSettingResponse = (raw) => {
|
|
|
2125
2130
|
socialPhoneLoginStatus: raw.social_phone_login_status == "1" || false,
|
|
2126
2131
|
socialUsernameLoginStatus: raw.social_username_login_status == "1" || false,
|
|
2127
2132
|
cocoEntrance: raw.coco_entrance == "1" || false,
|
|
2128
|
-
cocoDomain: (_E = raw.coco_domain) != null ? _E : ""
|
|
2133
|
+
cocoDomain: (_E = raw.coco_domain) != null ? _E : "",
|
|
2134
|
+
depositCurrency: {
|
|
2135
|
+
fiat: (Number(raw.deposit_method) & 1) > 0,
|
|
2136
|
+
crypto: (Number(raw.deposit_method) & 2) > 0
|
|
2137
|
+
},
|
|
2138
|
+
withdrawCurrency: {
|
|
2139
|
+
fiat: (Number(raw.withdraw_method) & 1) > 0,
|
|
2140
|
+
crypto: (Number(raw.withdraw_method) & 2) > 0
|
|
2141
|
+
}
|
|
2129
2142
|
};
|
|
2130
2143
|
};
|
|
2131
2144
|
const modifyGetSettingRequest = (requests) => {
|
|
@@ -3381,6 +3394,14 @@ const modifyGetImageRequest = (requests) => {
|
|
|
3381
3394
|
const modifyGetImageResponse = (result) => {
|
|
3382
3395
|
return result;
|
|
3383
3396
|
};
|
|
3397
|
+
var ImageCategory = /* @__PURE__ */ ((ImageCategory2) => {
|
|
3398
|
+
ImageCategory2["default"] = "default";
|
|
3399
|
+
ImageCategory2["online"] = "online";
|
|
3400
|
+
ImageCategory2["mycard"] = "mycard";
|
|
3401
|
+
ImageCategory2["qrcode"] = "qrcode";
|
|
3402
|
+
ImageCategory2["personal"] = "personal";
|
|
3403
|
+
return ImageCategory2;
|
|
3404
|
+
})(ImageCategory || {});
|
|
3384
3405
|
const getGetDepositValidateResponse = (raw) => {
|
|
3385
3406
|
return {
|
|
3386
3407
|
validated: raw.withdrawValidate === 1 || raw.depositValidate === 1 || raw.TransferCreditValidate === 1,
|
|
@@ -5618,6 +5639,39 @@ const modifySubmitChangePasswordTACRequest = (requests) => {
|
|
|
5618
5639
|
const modifySubmitChangePasswordTACResponse = (result) => {
|
|
5619
5640
|
return result;
|
|
5620
5641
|
};
|
|
5642
|
+
const getGetCryptoSelectedResponse = (raw) => {
|
|
5643
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
5644
|
+
return {
|
|
5645
|
+
status: raw.status == 1,
|
|
5646
|
+
message: raw.message,
|
|
5647
|
+
data: {
|
|
5648
|
+
cryptoId: (_b = (_a = raw.data) == null ? void 0 : _a.cr_id) != null ? _b : "",
|
|
5649
|
+
cryptoName: (_d = (_c = raw.data) == null ? void 0 : _c.code) != null ? _d : "",
|
|
5650
|
+
coinAmount: (_f = Number((_e = raw.data) == null ? void 0 : _e.amount)) != null ? _f : 0,
|
|
5651
|
+
fiatAmount: ((_h = Number((_g = raw.data) == null ? void 0 : _g.amount)) != null ? _h : 0) * ((_j = Number((_i = raw.data) == null ? void 0 : _i.final_rate)) != null ? _j : 0),
|
|
5652
|
+
rate: (_l = Number((_k = raw.data) == null ? void 0 : _k.final_rate)) != null ? _l : 0
|
|
5653
|
+
}
|
|
5654
|
+
};
|
|
5655
|
+
};
|
|
5656
|
+
const modifyGetCryptoSelectedRequest = (requests) => {
|
|
5657
|
+
return requests;
|
|
5658
|
+
};
|
|
5659
|
+
const modifyGetCryptoSelectedResponse = (result) => {
|
|
5660
|
+
return result;
|
|
5661
|
+
};
|
|
5662
|
+
const getUpdateCryptoSelectedResponse = (raw) => {
|
|
5663
|
+
var _a;
|
|
5664
|
+
return {
|
|
5665
|
+
status: raw.status == 1,
|
|
5666
|
+
message: (_a = raw.message) != null ? _a : ""
|
|
5667
|
+
};
|
|
5668
|
+
};
|
|
5669
|
+
const modifyUpdateCryptoSelectedRequest = (requests) => {
|
|
5670
|
+
return requests;
|
|
5671
|
+
};
|
|
5672
|
+
const modifyUpdateCryptoSelectedResponse = (result) => {
|
|
5673
|
+
return result;
|
|
5674
|
+
};
|
|
5621
5675
|
const getAgBetReportResponse = (raw) => {
|
|
5622
5676
|
var _a, _b;
|
|
5623
5677
|
return {
|
|
@@ -6503,6 +6557,30 @@ const modifyAgShareHoldReportRequest = (requests) => {
|
|
|
6503
6557
|
const modifyAgShareHoldReportResponse = (result) => {
|
|
6504
6558
|
return result;
|
|
6505
6559
|
};
|
|
6560
|
+
const getMemberWalletResponse = (raw) => {
|
|
6561
|
+
var _a, _b, _c;
|
|
6562
|
+
return {
|
|
6563
|
+
status: raw.status == 1,
|
|
6564
|
+
message: (_a = raw.message) != null ? _a : "",
|
|
6565
|
+
data: (_c = (_b = raw.data) == null ? void 0 : _b.map((item) => {
|
|
6566
|
+
var _a2, _b2, _c2, _d, _e, _f;
|
|
6567
|
+
return {
|
|
6568
|
+
cryptoId: (_a2 = item.cr_id) != null ? _a2 : "",
|
|
6569
|
+
cryptoName: (_b2 = item.code) != null ? _b2 : "",
|
|
6570
|
+
coinAmount: (_c2 = Number(item.amount)) != null ? _c2 : 0,
|
|
6571
|
+
fiatAmount: ((_d = Number(item.amount)) != null ? _d : 0) * ((_e = Number(item.final_rate)) != null ? _e : 0),
|
|
6572
|
+
rate: (_f = Number(item.final_rate)) != null ? _f : 0,
|
|
6573
|
+
canSelect: item.canSelect == "1"
|
|
6574
|
+
};
|
|
6575
|
+
})) != null ? _c : []
|
|
6576
|
+
};
|
|
6577
|
+
};
|
|
6578
|
+
const modifyMemberWalletRequest = (requests) => {
|
|
6579
|
+
return requests;
|
|
6580
|
+
};
|
|
6581
|
+
const modifyMemberWalletResponse = (result) => {
|
|
6582
|
+
return result;
|
|
6583
|
+
};
|
|
6506
6584
|
const registerAllApiModels = () => {
|
|
6507
6585
|
try {
|
|
6508
6586
|
apiModelRegistry.register(
|
|
@@ -7669,6 +7747,24 @@ const registerAllApiModels = () => {
|
|
|
7669
7747
|
modifyAgShareHoldReportRequest,
|
|
7670
7748
|
modifyAgShareHoldReportResponse
|
|
7671
7749
|
);
|
|
7750
|
+
apiModelRegistry.register(
|
|
7751
|
+
Api.getCryptoSelected,
|
|
7752
|
+
getGetCryptoSelectedResponse,
|
|
7753
|
+
modifyGetCryptoSelectedRequest,
|
|
7754
|
+
modifyGetCryptoSelectedResponse
|
|
7755
|
+
);
|
|
7756
|
+
apiModelRegistry.register(
|
|
7757
|
+
Api.updateCryptoSelected,
|
|
7758
|
+
getUpdateCryptoSelectedResponse,
|
|
7759
|
+
modifyUpdateCryptoSelectedRequest,
|
|
7760
|
+
modifyUpdateCryptoSelectedResponse
|
|
7761
|
+
);
|
|
7762
|
+
apiModelRegistry.register(
|
|
7763
|
+
Api.memberWallet,
|
|
7764
|
+
getMemberWalletResponse,
|
|
7765
|
+
modifyMemberWalletRequest,
|
|
7766
|
+
modifyMemberWalletResponse
|
|
7767
|
+
);
|
|
7672
7768
|
} catch (error) {
|
|
7673
7769
|
console.error("❌ Failed to register API models:", error);
|
|
7674
7770
|
}
|
|
@@ -7830,14 +7926,6 @@ const api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
7830
7926
|
get,
|
|
7831
7927
|
post
|
|
7832
7928
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7833
|
-
var ImageCategory = /* @__PURE__ */ ((ImageCategory2) => {
|
|
7834
|
-
ImageCategory2["default"] = "default";
|
|
7835
|
-
ImageCategory2["online"] = "online";
|
|
7836
|
-
ImageCategory2["mycard"] = "mycard";
|
|
7837
|
-
ImageCategory2["qrcode"] = "qrcode";
|
|
7838
|
-
ImageCategory2["personal"] = "personal";
|
|
7839
|
-
return ImageCategory2;
|
|
7840
|
-
})(ImageCategory || {});
|
|
7841
7929
|
const DefaultAutoRegisterData = {
|
|
7842
7930
|
data: {
|
|
7843
7931
|
status: false,
|