60p82u21t54k 1.0.14 → 1.0.16
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 +42 -1
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/login/loginApi.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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/model/getSetting/getGetSettingResponse.d.ts +3 -0
- package/dist/model/getSetting/getGetSettingResponse.d.ts.map +1 -1
- package/dist/model/getSetting/type.d.ts +7 -1
- package/dist/model/getSetting/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -5297,6 +5297,9 @@ var SettingCategory = /* @__PURE__ */ ((SettingCategory2) => {
|
|
|
5297
5297
|
SettingCategory2["facebookPixelIdArr"] = "facebook_pixel_id_arr";
|
|
5298
5298
|
SettingCategory2["googleAnalyticArr"] = "google_analytic_arr";
|
|
5299
5299
|
SettingCategory2["agentLinkFirstRedirect"] = "agentlink_first_redirect";
|
|
5300
|
+
SettingCategory2["socialFirebaseApikey"] = "social_firebase_apikey";
|
|
5301
|
+
SettingCategory2["socialFirebaseProjectId"] = "social_firebase_projectid";
|
|
5302
|
+
SettingCategory2["socialFirebaseAppId"] = "social_firebase_appid";
|
|
5300
5303
|
return SettingCategory2;
|
|
5301
5304
|
})(SettingCategory || {});
|
|
5302
5305
|
const modifyVipListRequest = (requests) => {
|
|
@@ -5822,7 +5825,10 @@ const getGetSettingResponse = (raw) => {
|
|
|
5822
5825
|
facebookPixelId: raw.facebookpixelid ?? "",
|
|
5823
5826
|
facebookPixelIdArr: raw.facebook_pixel_id_arr ?? [],
|
|
5824
5827
|
googleAnalyticArr: raw.google_analytic_arr ?? [],
|
|
5825
|
-
agentLinkRedirectPath: raw.agentlink_first_redirect ?? ""
|
|
5828
|
+
agentLinkRedirectPath: raw.agentlink_first_redirect ?? "",
|
|
5829
|
+
socialFirebaseApikey: raw.social_firebase_apikey ?? "",
|
|
5830
|
+
socialFirebaseProjectId: raw.social_firebase_projectid ?? "",
|
|
5831
|
+
socialFirebaseAppId: raw.social_firebase_appid ?? ""
|
|
5826
5832
|
};
|
|
5827
5833
|
};
|
|
5828
5834
|
const modifyGetSettingRequest = (requests) => {
|
|
@@ -10544,6 +10550,40 @@ const telegramLoginApi = async (data) => {
|
|
|
10544
10550
|
}
|
|
10545
10551
|
return result;
|
|
10546
10552
|
};
|
|
10553
|
+
const DefaultSocialLoginData = {
|
|
10554
|
+
data: {
|
|
10555
|
+
status: false,
|
|
10556
|
+
message: ""
|
|
10557
|
+
}
|
|
10558
|
+
};
|
|
10559
|
+
const socialLoginApi = async (loginToken, loginEmail, loginMethod) => {
|
|
10560
|
+
let result = {
|
|
10561
|
+
status: 200,
|
|
10562
|
+
message: "",
|
|
10563
|
+
...DefaultSocialLoginData
|
|
10564
|
+
};
|
|
10565
|
+
try {
|
|
10566
|
+
const payload = {
|
|
10567
|
+
token: loginToken,
|
|
10568
|
+
email: loginEmail,
|
|
10569
|
+
social_type: loginMethod
|
|
10570
|
+
};
|
|
10571
|
+
const request = await axiosInstance.post("/graph/socialLogin", payload);
|
|
10572
|
+
const output = request.data;
|
|
10573
|
+
result.data = {
|
|
10574
|
+
status: output.status == 1,
|
|
10575
|
+
message: output.errormessage ?? ""
|
|
10576
|
+
};
|
|
10577
|
+
} catch (error) {
|
|
10578
|
+
const extendedError = error;
|
|
10579
|
+
result = {
|
|
10580
|
+
status: extendedError.status || 500,
|
|
10581
|
+
message: error.message,
|
|
10582
|
+
...DefaultSocialLoginData
|
|
10583
|
+
};
|
|
10584
|
+
}
|
|
10585
|
+
return result;
|
|
10586
|
+
};
|
|
10547
10587
|
export {
|
|
10548
10588
|
AccumulateDepositStatus,
|
|
10549
10589
|
Api,
|
|
@@ -10567,5 +10607,6 @@ export {
|
|
|
10567
10607
|
post,
|
|
10568
10608
|
rename,
|
|
10569
10609
|
setLocaleApi,
|
|
10610
|
+
socialLoginApi,
|
|
10570
10611
|
telegramLoginApi
|
|
10571
10612
|
};
|