60p82u21t54k 1.1.0 → 1.1.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/dist/60p82u21t54k.cjs.js +1 -1
- package/dist/60p82u21t54k.es.js +328 -197
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/autoRegister/autoRegisterApi.d.ts.map +1 -1
- package/dist/api/general/api.d.ts +4 -2
- package/dist/api/general/api.d.ts.map +1 -1
- package/dist/api/general/api_axios_backup.d.ts +1 -0
- package/dist/api/general/api_axios_backup.d.ts.map +1 -0
- package/dist/api/general/type.d.ts +18 -1
- package/dist/api/general/type.d.ts.map +1 -1
- package/dist/api/getMaintenanceMode/getMaintenanceModeApi.d.ts.map +1 -1
- package/dist/api/jackpotData/jackpotDataApi.d.ts.map +1 -1
- package/dist/api/loadMatch/loadMatchApi.d.ts.map +1 -1
- package/dist/api/login/loginApi.d.ts.map +1 -1
- package/dist/api/logout/logoutApi.d.ts.map +1 -1
- package/dist/api/rename/renameApi.d.ts.map +1 -1
- package/dist/api/setLocale/setLocaleApi.d.ts.map +1 -1
- package/dist/api/socialLogin/index.d.ts +3 -0
- package/dist/api/socialLogin/index.d.ts.map +1 -0
- package/dist/api/socialLogin/socialLoginApi.d.ts +3 -0
- package/dist/api/socialLogin/socialLoginApi.d.ts.map +1 -0
- package/dist/api/socialLogin/type.d.ts +5 -0
- package/dist/api/socialLogin/type.d.ts.map +1 -0
- package/dist/api/telegramLogin/telegramLoginApi.d.ts.map +1 -1
- package/dist/core/apiRegistration.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/model/getSetting/getGetSettingResponse.d.ts +8 -0
- package/dist/model/getSetting/getGetSettingResponse.d.ts.map +1 -1
- package/dist/model/getSetting/type.d.ts +17 -3
- package/dist/model/getSetting/type.d.ts.map +1 -1
- package/dist/model/getUserProfile/getGetUserProfileResponse.d.ts.map +1 -1
- package/dist/model/getUserProfile/type.d.ts +1 -0
- package/dist/model/getUserProfile/type.d.ts.map +1 -1
- package/dist/model/paymentsProvider/getPaymentsProviderResponse.d.ts.map +1 -1
- package/dist/model/paymentsProvider/type.d.ts +4 -0
- package/dist/model/paymentsProvider/type.d.ts.map +1 -1
- package/dist/model/submitTacCode/getSubmitTacCodeResponse.d.ts +6 -0
- package/dist/model/submitTacCode/getSubmitTacCodeResponse.d.ts.map +1 -0
- package/dist/model/submitTacCode/index.d.ts +5 -0
- package/dist/model/submitTacCode/index.d.ts.map +1 -0
- package/dist/model/submitTacCode/modifySubmitTacCodeRequest.d.ts +3 -0
- package/dist/model/submitTacCode/modifySubmitTacCodeRequest.d.ts.map +1 -0
- package/dist/model/submitTacCode/modifySubmitTacCodeResponse.d.ts +3 -0
- package/dist/model/submitTacCode/modifySubmitTacCodeResponse.d.ts.map +1 -0
- package/dist/model/submitTacCode/type.d.ts +3 -0
- package/dist/model/submitTacCode/type.d.ts.map +1 -0
- package/dist/model/transactionReport/getTransactionReportResponse.d.ts.map +1 -1
- package/dist/model/transactionReport/type.d.ts +11 -1
- package/dist/model/transactionReport/type.d.ts.map +1 -1
- package/dist/model/updateRegister/getUpdateRegisterResponse.d.ts +6 -0
- package/dist/model/updateRegister/getUpdateRegisterResponse.d.ts.map +1 -0
- package/dist/model/updateRegister/index.d.ts +5 -0
- package/dist/model/updateRegister/index.d.ts.map +1 -0
- package/dist/model/updateRegister/modifyUpdateRegisterRequest.d.ts +3 -0
- package/dist/model/updateRegister/modifyUpdateRegisterRequest.d.ts.map +1 -0
- package/dist/model/updateRegister/modifyUpdateRegisterResponse.d.ts +3 -0
- package/dist/model/updateRegister/modifyUpdateRegisterResponse.d.ts.map +1 -0
- package/dist/model/updateRegister/type.d.ts +3 -0
- package/dist/model/updateRegister/type.d.ts.map +1 -0
- package/dist/model/vipList/modifyVipListResponse.d.ts.map +1 -1
- package/dist/util/axiosConfig.d.ts +0 -2
- package/dist/util/axiosConfig.d.ts.map +1 -1
- package/dist/util/tool.d.ts.map +1 -1
- package/package.json +2 -5
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -38,83 +38,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import axios from "axios";
|
|
42
|
-
class DefaultApiModelRegistry {
|
|
43
|
-
constructor() {
|
|
44
|
-
__publicField(this, "models", /* @__PURE__ */ new Map());
|
|
45
|
-
}
|
|
46
|
-
register(apiName, transformer, requestModifier, responseModifier) {
|
|
47
|
-
this.models.set(apiName, {
|
|
48
|
-
transformer: { transform: transformer },
|
|
49
|
-
requestModifier: { modifyRequest: requestModifier },
|
|
50
|
-
responseModifier: { modifyResponse: responseModifier }
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
getTransformer(apiName) {
|
|
54
|
-
var _a;
|
|
55
|
-
return ((_a = this.models.get(apiName)) == null ? void 0 : _a.transformer) || null;
|
|
56
|
-
}
|
|
57
|
-
getRequestModifier(apiName) {
|
|
58
|
-
var _a;
|
|
59
|
-
return ((_a = this.models.get(apiName)) == null ? void 0 : _a.requestModifier) || null;
|
|
60
|
-
}
|
|
61
|
-
getResponseModifier(apiName) {
|
|
62
|
-
var _a;
|
|
63
|
-
return ((_a = this.models.get(apiName)) == null ? void 0 : _a.responseModifier) || null;
|
|
64
|
-
}
|
|
65
|
-
hasModel(apiName) {
|
|
66
|
-
return this.models.has(apiName);
|
|
67
|
-
}
|
|
68
|
-
// Get all registered API names
|
|
69
|
-
getRegisteredApis() {
|
|
70
|
-
return Array.from(this.models.keys());
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
const apiModelRegistry = new DefaultApiModelRegistry();
|
|
74
|
-
const processApiTransformation = (apiName, rawResponse) => {
|
|
75
|
-
const transformer = apiModelRegistry.getTransformer(apiName);
|
|
76
|
-
if (transformer) {
|
|
77
|
-
return transformer.transform(rawResponse);
|
|
78
|
-
}
|
|
79
|
-
return rawResponse;
|
|
80
|
-
};
|
|
81
|
-
const processRequestModifications = (requests) => {
|
|
82
|
-
let modifiedRequests = [...requests];
|
|
83
|
-
for (const request of requests) {
|
|
84
|
-
const modifier = apiModelRegistry.getRequestModifier(request.name);
|
|
85
|
-
if (modifier) {
|
|
86
|
-
modifiedRequests = modifier.modifyRequest(modifiedRequests);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return modifiedRequests;
|
|
90
|
-
};
|
|
91
|
-
const processResponseModifications = (result) => {
|
|
92
|
-
let modifiedResult = __spreadValues({}, result);
|
|
93
|
-
for (const apiName of Object.keys(result)) {
|
|
94
|
-
const modifier = apiModelRegistry.getResponseModifier(apiName);
|
|
95
|
-
if (modifier) {
|
|
96
|
-
modifiedResult = modifier.modifyResponse(modifiedResult);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return modifiedResult;
|
|
100
|
-
};
|
|
101
|
-
const getAnnouncementResponse = (raw) => {
|
|
102
|
-
var _a;
|
|
103
|
-
return (_a = raw == null ? void 0 : raw.map((item) => {
|
|
104
|
-
var _a2;
|
|
105
|
-
return {
|
|
106
|
-
alert: item.announcement_alert === "1",
|
|
107
|
-
content: (_a2 = item.announcement_simplified) != null ? _a2 : "",
|
|
108
|
-
lastUpdatedTime: item.announcement_lastupdated
|
|
109
|
-
};
|
|
110
|
-
})) != null ? _a : [];
|
|
111
|
-
};
|
|
112
|
-
const modifyAnnouncementRequest = (requests) => {
|
|
113
|
-
return requests;
|
|
114
|
-
};
|
|
115
|
-
const modifyAnnouncementResponse = (result) => {
|
|
116
|
-
return result;
|
|
117
|
-
};
|
|
118
41
|
let currentConfig = {
|
|
119
42
|
prefix: "188",
|
|
120
43
|
timezone: -4,
|
|
@@ -4037,9 +3960,6 @@ function fromZonedTime(date, timeZone, options) {
|
|
|
4037
3960
|
const offsetMilliseconds = tzParseTimezone(timeZone, new Date(utc));
|
|
4038
3961
|
return new Date(utc + offsetMilliseconds);
|
|
4039
3962
|
}
|
|
4040
|
-
const stringToBytes = (str) => {
|
|
4041
|
-
return new TextEncoder().encode(str);
|
|
4042
|
-
};
|
|
4043
3963
|
const base64Decode = (encodedData) => {
|
|
4044
3964
|
try {
|
|
4045
3965
|
return atob(encodedData);
|
|
@@ -4267,13 +4187,17 @@ const isTimeExpired = (targetDate, seconds = 0) => {
|
|
|
4267
4187
|
}
|
|
4268
4188
|
return false;
|
|
4269
4189
|
};
|
|
4190
|
+
const getStringNumericValue = (value) => {
|
|
4191
|
+
const numericValue = parseFloat(value.replace(/,/g, "").replace(/[^\d.-]/g, ""));
|
|
4192
|
+
return isNaN(numericValue) ? 0 : numericValue;
|
|
4193
|
+
};
|
|
4270
4194
|
const getFormattedAmount = (value, decimalPlaces = 2) => {
|
|
4271
4195
|
if (Number(value) !== 0 && !Number(value)) {
|
|
4272
4196
|
return `${value || ""}`;
|
|
4273
4197
|
}
|
|
4274
4198
|
const formattedZero = `0${decimalPlaces ? "." + "0".repeat(decimalPlaces) : ""}`;
|
|
4275
4199
|
const parsedValue = parseFloat(value);
|
|
4276
|
-
if (isNaN(parsedValue) || typeof value === "string" &&
|
|
4200
|
+
if (isNaN(parsedValue) || typeof value === "string" && !/^-?[\d.,]+$/.test(value)) {
|
|
4277
4201
|
return `${formattedZero}`;
|
|
4278
4202
|
}
|
|
4279
4203
|
return `${parsedValue.toFixed(decimalPlaces).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
|
|
@@ -4306,6 +4230,82 @@ const getImgPath = (initPath, gameId, versioning) => {
|
|
|
4306
4230
|
}
|
|
4307
4231
|
return path;
|
|
4308
4232
|
};
|
|
4233
|
+
class DefaultApiModelRegistry {
|
|
4234
|
+
constructor() {
|
|
4235
|
+
__publicField(this, "models", /* @__PURE__ */ new Map());
|
|
4236
|
+
}
|
|
4237
|
+
register(apiName, transformer, requestModifier, responseModifier) {
|
|
4238
|
+
this.models.set(apiName, {
|
|
4239
|
+
transformer: { transform: transformer },
|
|
4240
|
+
requestModifier: { modifyRequest: requestModifier },
|
|
4241
|
+
responseModifier: { modifyResponse: responseModifier }
|
|
4242
|
+
});
|
|
4243
|
+
}
|
|
4244
|
+
getTransformer(apiName) {
|
|
4245
|
+
var _a;
|
|
4246
|
+
return ((_a = this.models.get(apiName)) == null ? void 0 : _a.transformer) || null;
|
|
4247
|
+
}
|
|
4248
|
+
getRequestModifier(apiName) {
|
|
4249
|
+
var _a;
|
|
4250
|
+
return ((_a = this.models.get(apiName)) == null ? void 0 : _a.requestModifier) || null;
|
|
4251
|
+
}
|
|
4252
|
+
getResponseModifier(apiName) {
|
|
4253
|
+
var _a;
|
|
4254
|
+
return ((_a = this.models.get(apiName)) == null ? void 0 : _a.responseModifier) || null;
|
|
4255
|
+
}
|
|
4256
|
+
hasModel(apiName) {
|
|
4257
|
+
return this.models.has(apiName);
|
|
4258
|
+
}
|
|
4259
|
+
// Get all registered API names
|
|
4260
|
+
getRegisteredApis() {
|
|
4261
|
+
return Array.from(this.models.keys());
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
const apiModelRegistry = new DefaultApiModelRegistry();
|
|
4265
|
+
const processApiTransformation = (apiName, rawResponse) => {
|
|
4266
|
+
const transformer = apiModelRegistry.getTransformer(apiName);
|
|
4267
|
+
if (transformer) {
|
|
4268
|
+
return transformer.transform(rawResponse);
|
|
4269
|
+
}
|
|
4270
|
+
return rawResponse;
|
|
4271
|
+
};
|
|
4272
|
+
const processRequestModifications = (requests) => {
|
|
4273
|
+
let modifiedRequests = [...requests];
|
|
4274
|
+
for (const request of requests) {
|
|
4275
|
+
const modifier = apiModelRegistry.getRequestModifier(request.name);
|
|
4276
|
+
if (modifier) {
|
|
4277
|
+
modifiedRequests = modifier.modifyRequest(modifiedRequests);
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
return modifiedRequests;
|
|
4281
|
+
};
|
|
4282
|
+
const processResponseModifications = (result) => {
|
|
4283
|
+
let modifiedResult = __spreadValues({}, result);
|
|
4284
|
+
for (const apiName of Object.keys(result)) {
|
|
4285
|
+
const modifier = apiModelRegistry.getResponseModifier(apiName);
|
|
4286
|
+
if (modifier) {
|
|
4287
|
+
modifiedResult = modifier.modifyResponse(modifiedResult);
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
return modifiedResult;
|
|
4291
|
+
};
|
|
4292
|
+
const getAnnouncementResponse = (raw) => {
|
|
4293
|
+
var _a;
|
|
4294
|
+
return (_a = raw == null ? void 0 : raw.map((item) => {
|
|
4295
|
+
var _a2;
|
|
4296
|
+
return {
|
|
4297
|
+
alert: item.announcement_alert === "1",
|
|
4298
|
+
content: (_a2 = item.announcement_simplified) != null ? _a2 : "",
|
|
4299
|
+
lastUpdatedTime: item.announcement_lastupdated
|
|
4300
|
+
};
|
|
4301
|
+
})) != null ? _a : [];
|
|
4302
|
+
};
|
|
4303
|
+
const modifyAnnouncementRequest = (requests) => {
|
|
4304
|
+
return requests;
|
|
4305
|
+
};
|
|
4306
|
+
const modifyAnnouncementResponse = (result) => {
|
|
4307
|
+
return result;
|
|
4308
|
+
};
|
|
4309
4309
|
const getGameListResponse = (raw) => {
|
|
4310
4310
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
4311
4311
|
return {
|
|
@@ -4519,6 +4519,8 @@ var Api = /* @__PURE__ */ ((Api2) => {
|
|
|
4519
4519
|
Api2["isMobileRegistered"] = "isMobileRegistered";
|
|
4520
4520
|
Api2["getActivePlatform"] = "getActivePlatform";
|
|
4521
4521
|
Api2["agMemberTransaction"] = "agMemberTransaction";
|
|
4522
|
+
Api2["submitTacCode"] = "submitTacCode";
|
|
4523
|
+
Api2["updateRegister"] = "updateRegister";
|
|
4522
4524
|
return Api2;
|
|
4523
4525
|
})(Api || {});
|
|
4524
4526
|
const modifyGameListRequest = (requests) => {
|
|
@@ -4787,7 +4789,11 @@ const setPromo = (data) => {
|
|
|
4787
4789
|
name: "excludePromo",
|
|
4788
4790
|
disabled: true,
|
|
4789
4791
|
welcomeBonus: false,
|
|
4790
|
-
dailyBonus: false
|
|
4792
|
+
dailyBonus: false,
|
|
4793
|
+
minDepositAmount: 0,
|
|
4794
|
+
maxPromoAmount: 0,
|
|
4795
|
+
percentage: 0,
|
|
4796
|
+
description: ""
|
|
4791
4797
|
};
|
|
4792
4798
|
const promo = data.map((v) => {
|
|
4793
4799
|
return {
|
|
@@ -4795,7 +4801,11 @@ const setPromo = (data) => {
|
|
|
4795
4801
|
name: v.promodesc,
|
|
4796
4802
|
disabled: false,
|
|
4797
4803
|
welcomeBonus: v.dtype === "5" && v.type === "F",
|
|
4798
|
-
dailyBonus: v.dtype === "5" && v.type === "D"
|
|
4804
|
+
dailyBonus: v.dtype === "5" && v.type === "D",
|
|
4805
|
+
minDepositAmount: Number(v.min_deposit),
|
|
4806
|
+
maxPromoAmount: Number(v.max_promo_amt),
|
|
4807
|
+
percentage: Number(v.percentage),
|
|
4808
|
+
description: v.tcdesc
|
|
4799
4809
|
};
|
|
4800
4810
|
});
|
|
4801
4811
|
return [defaultPromo, ...promo];
|
|
@@ -5120,7 +5130,8 @@ const getGetUserProfileResponse = (raw) => {
|
|
|
5120
5130
|
email: (_d = raw.mdUserDetail.email) != null ? _d : "",
|
|
5121
5131
|
fullName: (_e = raw.mdUserDetail.firstname) != null ? _e : "",
|
|
5122
5132
|
phoneNumber: (_f = raw.mdUserDetail.mobileno) != null ? _f : "",
|
|
5123
|
-
profilePicUrl: (_g = raw.mdUserDetail.profile_pic) != null ? _g : ""
|
|
5133
|
+
profilePicUrl: (_g = raw.mdUserDetail.profile_pic) != null ? _g : "",
|
|
5134
|
+
isPhoneNumVerified: raw.mdUserDetail.isVerify == "1"
|
|
5124
5135
|
};
|
|
5125
5136
|
};
|
|
5126
5137
|
const modifyGetUserProfileRequest = (requests) => {
|
|
@@ -5342,6 +5353,11 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
|
|
|
5342
5353
|
SettingCategory2["facebookPixelIdArr"] = "facebook_pixel_id_arr";
|
|
5343
5354
|
SettingCategory2["googleAnalyticArr"] = "google_analytic_arr";
|
|
5344
5355
|
SettingCategory2["agentLinkFirstRedirect"] = "agentlink_first_redirect";
|
|
5356
|
+
SettingCategory2["socialFirebaseApikey"] = "social_firebase_apikey";
|
|
5357
|
+
SettingCategory2["socialFirebaseProjectId"] = "social_firebase_projectid";
|
|
5358
|
+
SettingCategory2["socialFirebaseAppId"] = "social_firebase_appid";
|
|
5359
|
+
SettingCategory2["userDetailMobileValidation"] = "userdetailmobilevalidation";
|
|
5360
|
+
SettingCategory2["allLiveChats"] = "alllivechats";
|
|
5345
5361
|
return SettingCategory2;
|
|
5346
5362
|
})(SettingCategory || {});
|
|
5347
5363
|
const modifyVipListRequest = (requests) => {
|
|
@@ -5409,13 +5425,13 @@ const modifyVipListResponse = (result) => {
|
|
|
5409
5425
|
const next_deposit_total = nextItem === void 0 ? "0.00" : nextItem.deposit.total;
|
|
5410
5426
|
const next_turnover_total = nextItem === void 0 ? "0.00" : nextItem.turnover.total;
|
|
5411
5427
|
if (i === userVipLevelIndex) {
|
|
5412
|
-
c_deposit = `${Math.min(
|
|
5413
|
-
c_turnover = `${Math.min(
|
|
5428
|
+
c_deposit = `${Math.min(getStringNumericValue(deposit), getStringNumericValue(next_deposit_total))}`;
|
|
5429
|
+
c_turnover = `${Math.min(getStringNumericValue(turnover), getStringNumericValue(next_turnover_total))}`;
|
|
5414
5430
|
c_percentage = percentage;
|
|
5415
5431
|
} else if (i < userVipLevelIndex) {
|
|
5416
5432
|
c_deposit = item.deposit.total;
|
|
5417
5433
|
c_turnover = item.turnover.total;
|
|
5418
|
-
c_percentage =
|
|
5434
|
+
c_percentage = 100;
|
|
5419
5435
|
} else if (i > userVipLevelIndex) {
|
|
5420
5436
|
c_deposit = "0.00";
|
|
5421
5437
|
c_turnover = "0.00";
|
|
@@ -5812,19 +5828,19 @@ const modifyPromotionResponse = (result) => {
|
|
|
5812
5828
|
return result;
|
|
5813
5829
|
};
|
|
5814
5830
|
const getGetSettingResponse = (raw) => {
|
|
5815
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
5831
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
|
5816
5832
|
let vipCalculation = 4;
|
|
5817
5833
|
if (raw.vipcalculation) {
|
|
5818
5834
|
vipCalculation = Number(raw.vipcalculation);
|
|
5819
5835
|
}
|
|
5820
|
-
let
|
|
5836
|
+
let extraLiveChatList = [];
|
|
5821
5837
|
if (raw.extralivechat) {
|
|
5822
|
-
|
|
5838
|
+
extraLiveChatList = JSON.parse(raw.extralivechat);
|
|
5823
5839
|
}
|
|
5824
5840
|
return {
|
|
5825
5841
|
vipCalculation,
|
|
5826
5842
|
livechat: (_a = raw.livechat) != null ? _a : "",
|
|
5827
|
-
|
|
5843
|
+
extraLiveChatList: extraLiveChatList.filter((item) => item.status == 1).map((item) => {
|
|
5828
5844
|
let imgUrl = item.imgname;
|
|
5829
5845
|
if (imgUrl.slice(-4) === ".png") {
|
|
5830
5846
|
imgUrl = item.imgname.slice(0, -4);
|
|
@@ -5866,7 +5882,18 @@ const getGetSettingResponse = (raw) => {
|
|
|
5866
5882
|
facebookPixelId: (_v = raw.facebookpixelid) != null ? _v : "",
|
|
5867
5883
|
facebookPixelIdArr: (_w = raw.facebook_pixel_id_arr) != null ? _w : [],
|
|
5868
5884
|
googleAnalyticArr: (_x = raw.google_analytic_arr) != null ? _x : [],
|
|
5869
|
-
agentLinkRedirectPath: (_y = raw.agentlink_first_redirect) != null ? _y : ""
|
|
5885
|
+
agentLinkRedirectPath: (_y = raw.agentlink_first_redirect) != null ? _y : "",
|
|
5886
|
+
socialFirebaseApikey: (_z = raw.social_firebase_apikey) != null ? _z : "",
|
|
5887
|
+
socialFirebaseProjectId: (_A = raw.social_firebase_projectid) != null ? _A : "",
|
|
5888
|
+
socialFirebaseAppId: (_B = raw.social_firebase_appid) != null ? _B : "",
|
|
5889
|
+
userDetailMobileValidation: raw.userdetailmobilevalidation ? raw.userdetailmobilevalidation === "1" : false,
|
|
5890
|
+
liveChatList: (_D = (_C = raw.alllivechats) == null ? void 0 : _C.map((item) => {
|
|
5891
|
+
var _a2, _b2;
|
|
5892
|
+
return {
|
|
5893
|
+
name: (_a2 = item.name) != null ? _a2 : "",
|
|
5894
|
+
url: (_b2 = item.url) != null ? _b2 : ""
|
|
5895
|
+
};
|
|
5896
|
+
})) != null ? _D : []
|
|
5870
5897
|
};
|
|
5871
5898
|
};
|
|
5872
5899
|
const modifyGetSettingRequest = (requests) => {
|
|
@@ -6326,9 +6353,19 @@ var TransactionMethod = /* @__PURE__ */ ((TransactionMethod2) => {
|
|
|
6326
6353
|
TransactionMethod2["transfer"] = "transfer";
|
|
6327
6354
|
TransactionMethod2["incentive"] = "incentive";
|
|
6328
6355
|
TransactionMethod2["upgradeBonus"] = "upgradeBonus";
|
|
6356
|
+
TransactionMethod2["monthlyBonus"] = "monthlyBonus";
|
|
6357
|
+
TransactionMethod2["weeklyBonus"] = "weeklyBonus";
|
|
6358
|
+
TransactionMethod2["dailyBonus"] = "dailyBonus";
|
|
6329
6359
|
TransactionMethod2["extension"] = "extension";
|
|
6330
6360
|
TransactionMethod2["creditTransfer"] = "creditTransfer";
|
|
6331
6361
|
TransactionMethod2["shareHolder"] = "shareHolderDividend";
|
|
6362
|
+
TransactionMethod2["mainToInterest"] = "mainToInterest";
|
|
6363
|
+
TransactionMethod2["interestToMain"] = "interestToMain";
|
|
6364
|
+
TransactionMethod2["birthdayBonus"] = "birthdayBonus";
|
|
6365
|
+
TransactionMethod2["firstSalaryBonus"] = "firstSalaryBonus";
|
|
6366
|
+
TransactionMethod2["tenthSalaryBonus"] = "tenthSalaryBonus";
|
|
6367
|
+
TransactionMethod2["twentiethSalaryBonus"] = "twentiethSalaryBonus";
|
|
6368
|
+
TransactionMethod2["purchaseWeekCard"] = "purchaseWeekCard";
|
|
6332
6369
|
return TransactionMethod2;
|
|
6333
6370
|
})(TransactionMethod || {});
|
|
6334
6371
|
const getTransactionReportResponse = (raw) => {
|
|
@@ -6396,12 +6433,32 @@ const getFundType = (index, transactionIndex) => {
|
|
|
6396
6433
|
return TransactionMethod.incentive;
|
|
6397
6434
|
case 36:
|
|
6398
6435
|
return TransactionMethod.upgradeBonus;
|
|
6436
|
+
case 37:
|
|
6437
|
+
return TransactionMethod.monthlyBonus;
|
|
6438
|
+
case 38:
|
|
6439
|
+
return TransactionMethod.dailyBonus;
|
|
6440
|
+
case 39:
|
|
6441
|
+
return TransactionMethod.dailyBonus;
|
|
6399
6442
|
case 40:
|
|
6400
6443
|
return TransactionMethod.extension;
|
|
6401
6444
|
case 42:
|
|
6402
6445
|
return TransactionMethod.creditTransfer;
|
|
6403
6446
|
case 43:
|
|
6404
6447
|
return TransactionMethod.shareHolder;
|
|
6448
|
+
case 45:
|
|
6449
|
+
return TransactionMethod.mainToInterest;
|
|
6450
|
+
case 46:
|
|
6451
|
+
return TransactionMethod.interestToMain;
|
|
6452
|
+
case 47:
|
|
6453
|
+
return TransactionMethod.birthdayBonus;
|
|
6454
|
+
case 48:
|
|
6455
|
+
return TransactionMethod.firstSalaryBonus;
|
|
6456
|
+
case 49:
|
|
6457
|
+
return TransactionMethod.tenthSalaryBonus;
|
|
6458
|
+
case 50:
|
|
6459
|
+
return TransactionMethod.twentiethSalaryBonus;
|
|
6460
|
+
case 51:
|
|
6461
|
+
return TransactionMethod.purchaseWeekCard;
|
|
6405
6462
|
}
|
|
6406
6463
|
return "";
|
|
6407
6464
|
};
|
|
@@ -9234,6 +9291,24 @@ const modifyGetActivePlatformRequest = (requests) => {
|
|
|
9234
9291
|
const modifyGetActivePlatformResponse = (result) => {
|
|
9235
9292
|
return result;
|
|
9236
9293
|
};
|
|
9294
|
+
const getSubmitTacCodeResponse = (raw) => {
|
|
9295
|
+
return getBaseResponse(raw);
|
|
9296
|
+
};
|
|
9297
|
+
const modifySubmitTacCodeRequest = (requests) => {
|
|
9298
|
+
return requests;
|
|
9299
|
+
};
|
|
9300
|
+
const modifySubmitTacCodeResponse = (result) => {
|
|
9301
|
+
return result;
|
|
9302
|
+
};
|
|
9303
|
+
const getUpdateRegisterResponse = (raw) => {
|
|
9304
|
+
return getBaseResponse(raw);
|
|
9305
|
+
};
|
|
9306
|
+
const modifyUpdateRegisterRequest = (requests) => {
|
|
9307
|
+
return requests;
|
|
9308
|
+
};
|
|
9309
|
+
const modifyUpdateRegisterResponse = (result) => {
|
|
9310
|
+
return result;
|
|
9311
|
+
};
|
|
9237
9312
|
const getAgMemberTransactionResponse = (raw) => {
|
|
9238
9313
|
var _a, _b, _c, _d, _e, _f;
|
|
9239
9314
|
if (raw.status == 0) {
|
|
@@ -10205,115 +10280,122 @@ const registerAllApiModels = () => {
|
|
|
10205
10280
|
modifyAgMemberTransactionRequest,
|
|
10206
10281
|
modifyAgMemberTransactionResponse
|
|
10207
10282
|
);
|
|
10283
|
+
apiModelRegistry.register(
|
|
10284
|
+
Api.submitTacCode,
|
|
10285
|
+
getSubmitTacCodeResponse,
|
|
10286
|
+
modifySubmitTacCodeRequest,
|
|
10287
|
+
modifySubmitTacCodeResponse
|
|
10288
|
+
);
|
|
10289
|
+
apiModelRegistry.register(
|
|
10290
|
+
Api.updateRegister,
|
|
10291
|
+
getUpdateRegisterResponse,
|
|
10292
|
+
modifyUpdateRegisterRequest,
|
|
10293
|
+
modifyUpdateRegisterResponse
|
|
10294
|
+
);
|
|
10208
10295
|
} catch (error) {
|
|
10209
10296
|
console.error("❌ Failed to register API models:", error);
|
|
10210
10297
|
}
|
|
10211
10298
|
};
|
|
10212
10299
|
registerAllApiModels();
|
|
10213
|
-
const
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
}
|
|
10220
|
-
// params: { apiKey: 'your-api-key' }, // Default query parameters that will be sent with each request.
|
|
10221
|
-
// auth: { username: 'user', password: 'pass' }, // Basic authentication credentials.
|
|
10222
|
-
// responseEncoding: 'utf8', // Indicates the encoding to use for the response.
|
|
10223
|
-
// responseType: 'json', // Specifies the type of data the server will respond with.
|
|
10224
|
-
// xsrfCookieName: 'XSRF-TOKEN', // The name of the cookie to use as a value for the xsrf token.
|
|
10225
|
-
// xsrfHeaderName: 'X-XSRF-TOKEN', // The name of the HTTP header that carries the xsrf token value.
|
|
10226
|
-
// maxContentLength: 2000, // The maximum size of the HTTP response content in bytes allowed.
|
|
10227
|
-
// maxBodyLength: 2000, // The maximum size of the request body in bytes allowed.
|
|
10228
|
-
// // Allows changes to the request data before it is sent to the server.
|
|
10229
|
-
// transformRequest: [
|
|
10230
|
-
// (data, headers) => {
|
|
10231
|
-
// console.log(headers)
|
|
10232
|
-
// console.log(data)
|
|
10233
|
-
// // Modify data and headers here
|
|
10234
|
-
// return data
|
|
10235
|
-
// },
|
|
10236
|
-
// ],
|
|
10237
|
-
// // Allows changes to the response data before it is passed to then or catch.
|
|
10238
|
-
// transformResponse: [
|
|
10239
|
-
// (data) => {
|
|
10240
|
-
// // Modify data here
|
|
10241
|
-
// return data
|
|
10242
|
-
// },
|
|
10243
|
-
// ],
|
|
10244
|
-
// // Custom function to validate the response status code.
|
|
10245
|
-
// validateStatus: (status) => {
|
|
10246
|
-
// return status >= 200 && status < 300 // default
|
|
10247
|
-
// },
|
|
10248
|
-
// withCredentials: true, // Indicates whether or not cross-site Access-Control requests should be made using credentials.
|
|
10249
|
-
// // Defines the proxy server settings.
|
|
10250
|
-
// proxy: {
|
|
10251
|
-
// host: '127.0.0.1',
|
|
10252
|
-
// port: 9000,
|
|
10253
|
-
// auth: {
|
|
10254
|
-
// username: 'proxyuser',
|
|
10255
|
-
// password: 'proxypass',
|
|
10256
|
-
// },
|
|
10257
|
-
// },
|
|
10300
|
+
const get = (endpoint) => __async(void 0, null, function* () {
|
|
10301
|
+
const response = yield fetchWithTimeout(`${endpoint}`, {
|
|
10302
|
+
method: "GET",
|
|
10303
|
+
headers: authHeaders()
|
|
10304
|
+
});
|
|
10305
|
+
return handleGetResponse(response);
|
|
10258
10306
|
});
|
|
10259
|
-
|
|
10260
|
-
(config2) => {
|
|
10261
|
-
const token = localStorage.getItem("token");
|
|
10262
|
-
if (token) {
|
|
10263
|
-
config2.headers.Authorization = `Bearer ${token}`;
|
|
10264
|
-
}
|
|
10265
|
-
return config2;
|
|
10266
|
-
},
|
|
10267
|
-
(error) => {
|
|
10268
|
-
console.error("Error request:", error.response);
|
|
10269
|
-
return Promise.reject(error);
|
|
10270
|
-
}
|
|
10271
|
-
);
|
|
10272
|
-
axiosInstance.interceptors.response.use(
|
|
10273
|
-
(response) => {
|
|
10274
|
-
return response;
|
|
10275
|
-
},
|
|
10276
|
-
(error) => {
|
|
10277
|
-
const errorResponse = {
|
|
10278
|
-
status: null,
|
|
10279
|
-
message: "An error occurred"
|
|
10280
|
-
};
|
|
10281
|
-
if (error.response) {
|
|
10282
|
-
errorResponse.status = error.response.status;
|
|
10283
|
-
errorResponse.message = error.response.data.message || error.response.statusText;
|
|
10284
|
-
console.error("Error response:", JSON.stringify(errorResponse));
|
|
10285
|
-
if (error.response.status === 401) {
|
|
10286
|
-
console.error("Unauthorized access - redirecting to login.");
|
|
10287
|
-
} else if (error.response.status === 404) {
|
|
10288
|
-
console.error("Resource not found.");
|
|
10289
|
-
} else if (error.response.status >= 500) {
|
|
10290
|
-
console.error("Server error. Please try again later.");
|
|
10291
|
-
}
|
|
10292
|
-
} else if (error.request) {
|
|
10293
|
-
console.error("No response received:", error.request);
|
|
10294
|
-
} else {
|
|
10295
|
-
console.error("Error setting up request:", error.message);
|
|
10296
|
-
}
|
|
10297
|
-
return Promise.reject(errorResponse);
|
|
10298
|
-
}
|
|
10299
|
-
);
|
|
10300
|
-
const post = (requests) => __async(void 0, null, function* () {
|
|
10307
|
+
const post = (requests, requestPath = `/graph/jwt`) => __async(void 0, null, function* () {
|
|
10301
10308
|
const modifiedRequests = processRequestModifications(requests);
|
|
10302
10309
|
const requestData = modifiedRequests.map((item) => ({
|
|
10303
10310
|
name: item.name,
|
|
10304
10311
|
query: btoa(item.query)
|
|
10305
10312
|
}));
|
|
10306
10313
|
const payload = { requests: requestData };
|
|
10307
|
-
const response = yield
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10314
|
+
const response = yield fetchWithTimeout(requestPath, {
|
|
10315
|
+
method: "POST",
|
|
10316
|
+
headers: authHeaders(),
|
|
10317
|
+
body: JSON.stringify(payload)
|
|
10318
|
+
});
|
|
10319
|
+
return handlePostResponse(response);
|
|
10320
|
+
});
|
|
10321
|
+
const customPost = (requestPath, request) => __async(void 0, null, function* () {
|
|
10322
|
+
const response = yield fetchWithTimeout(requestPath, {
|
|
10323
|
+
method: "POST",
|
|
10324
|
+
headers: authHeaders(),
|
|
10325
|
+
body: JSON.stringify(request)
|
|
10326
|
+
});
|
|
10327
|
+
return handleCustomPostResponse(response);
|
|
10328
|
+
});
|
|
10329
|
+
const fetchWithTimeout = (url, options, timeout = 29e3) => __async(void 0, null, function* () {
|
|
10330
|
+
const controller = new AbortController();
|
|
10331
|
+
const id = setTimeout(() => controller.abort(), timeout);
|
|
10332
|
+
try {
|
|
10333
|
+
const response = yield fetch(url, __spreadProps(__spreadValues({}, options), {
|
|
10334
|
+
signal: controller.signal
|
|
10335
|
+
}));
|
|
10336
|
+
return response;
|
|
10337
|
+
} finally {
|
|
10338
|
+
clearTimeout(id);
|
|
10339
|
+
}
|
|
10340
|
+
});
|
|
10341
|
+
const authHeaders = () => {
|
|
10342
|
+
const token = localStorage.getItem("token");
|
|
10343
|
+
return __spreadValues({
|
|
10344
|
+
"Content-Type": "application/json"
|
|
10345
|
+
}, token ? { Authorization: `Bearer ${token}` } : {});
|
|
10346
|
+
};
|
|
10347
|
+
const safeJson = (response) => __async(void 0, null, function* () {
|
|
10348
|
+
try {
|
|
10349
|
+
if (response.status === 204 || response.headers.get("content-length") === "0") {
|
|
10350
|
+
return null;
|
|
10351
|
+
}
|
|
10352
|
+
return yield response.json();
|
|
10353
|
+
} catch (e) {
|
|
10354
|
+
return null;
|
|
10355
|
+
}
|
|
10356
|
+
});
|
|
10357
|
+
const getErrorMessage = (response) => __async(void 0, null, function* () {
|
|
10358
|
+
const errorBody = yield safeJson(response);
|
|
10359
|
+
const errorResponse = {
|
|
10360
|
+
status: response.status,
|
|
10361
|
+
message: (errorBody == null ? void 0 : errorBody.message) || response.statusText || "An error occurred"
|
|
10362
|
+
};
|
|
10363
|
+
console.error("Error response:", JSON.stringify(errorResponse));
|
|
10364
|
+
if (response.status === 401) {
|
|
10365
|
+
console.error("Unauthorized access - redirecting to login.");
|
|
10366
|
+
} else if (response.status === 404) {
|
|
10367
|
+
console.error("Resource not found.");
|
|
10368
|
+
} else if (response.status >= 500) {
|
|
10369
|
+
console.error("Server error. Please try again later.");
|
|
10370
|
+
}
|
|
10371
|
+
return errorResponse;
|
|
10372
|
+
});
|
|
10373
|
+
const handleGetResponse = (response) => __async(void 0, null, function* () {
|
|
10374
|
+
if (!response.ok) {
|
|
10375
|
+
const errorResponse = yield getErrorMessage(response);
|
|
10376
|
+
return Promise.reject(errorResponse);
|
|
10377
|
+
}
|
|
10378
|
+
const data = yield safeJson(response);
|
|
10379
|
+
return {
|
|
10380
|
+
data,
|
|
10381
|
+
status: response.status,
|
|
10382
|
+
msg: response.statusText,
|
|
10383
|
+
headers: response.headers,
|
|
10384
|
+
ok: response.ok
|
|
10385
|
+
};
|
|
10386
|
+
});
|
|
10387
|
+
const handlePostResponse = (response) => __async(void 0, null, function* () {
|
|
10311
10388
|
const result = {
|
|
10312
10389
|
status: 200,
|
|
10313
10390
|
message: "",
|
|
10314
10391
|
result: {}
|
|
10315
10392
|
};
|
|
10316
|
-
|
|
10393
|
+
if (!response.ok) {
|
|
10394
|
+
const errorResponse = yield getErrorMessage(response);
|
|
10395
|
+
return Promise.reject(errorResponse);
|
|
10396
|
+
}
|
|
10397
|
+
const responseJSON = yield safeJson(response);
|
|
10398
|
+
for (const res of responseJSON.responses) {
|
|
10317
10399
|
if (res.error != null && res.error.code != 200) {
|
|
10318
10400
|
result.status = res.error.code;
|
|
10319
10401
|
result.message = res.error.message;
|
|
@@ -10333,8 +10415,25 @@ const post = (requests) => __async(void 0, null, function* () {
|
|
|
10333
10415
|
result.result = processResponseModifications(result.result);
|
|
10334
10416
|
return result;
|
|
10335
10417
|
});
|
|
10418
|
+
const handleCustomPostResponse = (response) => __async(void 0, null, function* () {
|
|
10419
|
+
if (!response) return;
|
|
10420
|
+
if (!response.ok) {
|
|
10421
|
+
const errorResponse = yield getErrorMessage(response);
|
|
10422
|
+
return Promise.reject(errorResponse);
|
|
10423
|
+
}
|
|
10424
|
+
const data = yield safeJson(response);
|
|
10425
|
+
const responses = Array.isArray(data == null ? void 0 : data.responses) ? data.responses.filter((res) => res == null ? void 0 : res.attributes) : [];
|
|
10426
|
+
if (responses.length === 0) {
|
|
10427
|
+
return true;
|
|
10428
|
+
}
|
|
10429
|
+
const firstResponse = responses[0];
|
|
10430
|
+
const decodedData = base64Decode(firstResponse.attributes);
|
|
10431
|
+
return JSON.parse(decodedData);
|
|
10432
|
+
});
|
|
10336
10433
|
const api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10337
10434
|
__proto__: null,
|
|
10435
|
+
customPost,
|
|
10436
|
+
get,
|
|
10338
10437
|
post
|
|
10339
10438
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10340
10439
|
var ImageCategory = /* @__PURE__ */ ((ImageCategory2) => {
|
|
@@ -10363,7 +10462,7 @@ const autoRegisterApi = () => __async(void 0, null, function* () {
|
|
|
10363
10462
|
message: ""
|
|
10364
10463
|
}, DefaultAutoRegisterData);
|
|
10365
10464
|
try {
|
|
10366
|
-
const request = yield
|
|
10465
|
+
const request = yield get("/graph/autoregister");
|
|
10367
10466
|
const output = request.data;
|
|
10368
10467
|
result.data = {
|
|
10369
10468
|
status: output.status == 1,
|
|
@@ -10401,7 +10500,7 @@ const getMaintenanceModeApi = () => __async(void 0, null, function* () {
|
|
|
10401
10500
|
message: ""
|
|
10402
10501
|
}, DefaultGetMaintenanceModeData);
|
|
10403
10502
|
try {
|
|
10404
|
-
const request = yield
|
|
10503
|
+
const request = yield get("/graph/getMaintenanceMode");
|
|
10405
10504
|
const output = request.data;
|
|
10406
10505
|
result.data = {
|
|
10407
10506
|
status: output.status == 1,
|
|
@@ -10435,7 +10534,7 @@ const jackpotDataApi = () => __async(void 0, null, function* () {
|
|
|
10435
10534
|
message: ""
|
|
10436
10535
|
}, DefaultjackpotData);
|
|
10437
10536
|
try {
|
|
10438
|
-
const request = yield
|
|
10537
|
+
const request = yield get("/api/jackpotData");
|
|
10439
10538
|
const output = request.data;
|
|
10440
10539
|
result.data = {
|
|
10441
10540
|
startTimestamp: output.startTimestamp,
|
|
@@ -10463,7 +10562,7 @@ const loadMatchApi = (gameId, stage, sportId, tagId, matchId) => __async(void 0,
|
|
|
10463
10562
|
}
|
|
10464
10563
|
};
|
|
10465
10564
|
try {
|
|
10466
|
-
const request = yield
|
|
10565
|
+
const request = yield customPost(`/loadgame/${gameId}`, {
|
|
10467
10566
|
wanturl: 1,
|
|
10468
10567
|
extra: {
|
|
10469
10568
|
Stage: stage,
|
|
@@ -10507,7 +10606,7 @@ const loginApi = (username, password, type = "") => __async(void 0, null, functi
|
|
|
10507
10606
|
if (type !== "") {
|
|
10508
10607
|
payload.type = type;
|
|
10509
10608
|
}
|
|
10510
|
-
yield
|
|
10609
|
+
yield customPost("/graph/auth/sesh", payload);
|
|
10511
10610
|
result = {
|
|
10512
10611
|
status: 200,
|
|
10513
10612
|
message: ""
|
|
@@ -10527,7 +10626,7 @@ const logoutApi = () => __async(void 0, null, function* () {
|
|
|
10527
10626
|
message: ""
|
|
10528
10627
|
};
|
|
10529
10628
|
try {
|
|
10530
|
-
yield
|
|
10629
|
+
yield customPost("/graph/auth/sesh/logout");
|
|
10531
10630
|
} catch (error) {
|
|
10532
10631
|
const extendedError = error;
|
|
10533
10632
|
result = {
|
|
@@ -10543,14 +10642,14 @@ const rename = (fullname) => __async(void 0, null, function* () {
|
|
|
10543
10642
|
message: ""
|
|
10544
10643
|
};
|
|
10545
10644
|
try {
|
|
10546
|
-
const request = yield
|
|
10645
|
+
const request = yield customPost("/graph/rename", {
|
|
10547
10646
|
fullname
|
|
10548
10647
|
});
|
|
10549
10648
|
if (false) ;
|
|
10550
10649
|
const response = request.data;
|
|
10551
10650
|
result = {
|
|
10552
10651
|
status: response.status == 1 ? 200 : 509,
|
|
10553
|
-
message: response.msg ?
|
|
10652
|
+
message: response.msg ? response.msg : ""
|
|
10554
10653
|
};
|
|
10555
10654
|
} catch (error) {
|
|
10556
10655
|
const extendedError = error;
|
|
@@ -10574,13 +10673,11 @@ const setLocaleApi = (localeCode, udid) => __async(void 0, null, function* () {
|
|
|
10574
10673
|
message: ""
|
|
10575
10674
|
}, DefaultSetLocaleData);
|
|
10576
10675
|
try {
|
|
10577
|
-
const request = yield
|
|
10676
|
+
const request = yield customPost("/graph/setlocale", {
|
|
10578
10677
|
language: localeCode,
|
|
10579
10678
|
udid: udid != null ? udid : ""
|
|
10580
10679
|
});
|
|
10581
|
-
const output =
|
|
10582
|
-
atob(request.data.responses[0].attributes)
|
|
10583
|
-
);
|
|
10680
|
+
const output = request;
|
|
10584
10681
|
result.data = {
|
|
10585
10682
|
status: output.status == 1,
|
|
10586
10683
|
message: (_a = output.message) != null ? _a : ""
|
|
@@ -10600,7 +10697,7 @@ const telegramLoginApi = (data) => __async(void 0, null, function* () {
|
|
|
10600
10697
|
message: ""
|
|
10601
10698
|
};
|
|
10602
10699
|
try {
|
|
10603
|
-
yield
|
|
10700
|
+
yield customPost("/loginVia/telegram", data);
|
|
10604
10701
|
result = {
|
|
10605
10702
|
status: 200,
|
|
10606
10703
|
message: ""
|
|
@@ -10614,6 +10711,39 @@ const telegramLoginApi = (data) => __async(void 0, null, function* () {
|
|
|
10614
10711
|
}
|
|
10615
10712
|
return result;
|
|
10616
10713
|
});
|
|
10714
|
+
const DefaultSocialLoginData = {
|
|
10715
|
+
data: {
|
|
10716
|
+
status: false,
|
|
10717
|
+
message: ""
|
|
10718
|
+
}
|
|
10719
|
+
};
|
|
10720
|
+
const socialLoginApi = (loginToken, loginEmail, loginMethod) => __async(void 0, null, function* () {
|
|
10721
|
+
var _a;
|
|
10722
|
+
let result = __spreadValues({
|
|
10723
|
+
status: 200,
|
|
10724
|
+
message: ""
|
|
10725
|
+
}, DefaultSocialLoginData);
|
|
10726
|
+
try {
|
|
10727
|
+
const payload = {
|
|
10728
|
+
token: loginToken,
|
|
10729
|
+
email: loginEmail,
|
|
10730
|
+
social_type: loginMethod
|
|
10731
|
+
};
|
|
10732
|
+
const request = yield customPost("/graph/socialLogin", payload);
|
|
10733
|
+
const output = request.data;
|
|
10734
|
+
result.data = {
|
|
10735
|
+
status: output.status == 1,
|
|
10736
|
+
message: (_a = output.errormessage) != null ? _a : ""
|
|
10737
|
+
};
|
|
10738
|
+
} catch (error) {
|
|
10739
|
+
const extendedError = error;
|
|
10740
|
+
result = __spreadValues({
|
|
10741
|
+
status: extendedError.status || 500,
|
|
10742
|
+
message: error.message
|
|
10743
|
+
}, DefaultSocialLoginData);
|
|
10744
|
+
}
|
|
10745
|
+
return result;
|
|
10746
|
+
});
|
|
10617
10747
|
export {
|
|
10618
10748
|
AccumulateDepositStatus,
|
|
10619
10749
|
Api,
|
|
@@ -10637,5 +10767,6 @@ export {
|
|
|
10637
10767
|
post,
|
|
10638
10768
|
rename,
|
|
10639
10769
|
setLocaleApi,
|
|
10770
|
+
socialLoginApi,
|
|
10640
10771
|
telegramLoginApi
|
|
10641
10772
|
};
|