60p82u21t54k 1.0.15 → 1.0.17

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.
@@ -4748,7 +4748,11 @@ const setPromo = (data) => {
4748
4748
  name: "excludePromo",
4749
4749
  disabled: true,
4750
4750
  welcomeBonus: false,
4751
- dailyBonus: false
4751
+ dailyBonus: false,
4752
+ minDepositAmount: 0,
4753
+ maxPromoAmount: 0,
4754
+ percentage: 0,
4755
+ description: ""
4752
4756
  };
4753
4757
  const promo = data.map((v) => {
4754
4758
  return {
@@ -4756,7 +4760,11 @@ const setPromo = (data) => {
4756
4760
  name: v.promodesc,
4757
4761
  disabled: false,
4758
4762
  welcomeBonus: v.dtype === "5" && v.type === "F",
4759
- dailyBonus: v.dtype === "5" && v.type === "D"
4763
+ dailyBonus: v.dtype === "5" && v.type === "D",
4764
+ minDepositAmount: Number(v.min_deposit),
4765
+ maxPromoAmount: Number(v.max_promo_amt),
4766
+ percentage: Number(v.percentage),
4767
+ description: v.tcdesc
4760
4768
  };
4761
4769
  });
4762
4770
  return [defaultPromo, ...promo];
@@ -10550,6 +10558,40 @@ const telegramLoginApi = async (data) => {
10550
10558
  }
10551
10559
  return result;
10552
10560
  };
10561
+ const DefaultSocialLoginData = {
10562
+ data: {
10563
+ status: false,
10564
+ message: ""
10565
+ }
10566
+ };
10567
+ const socialLoginApi = async (loginToken, loginEmail, loginMethod) => {
10568
+ let result = {
10569
+ status: 200,
10570
+ message: "",
10571
+ ...DefaultSocialLoginData
10572
+ };
10573
+ try {
10574
+ const payload = {
10575
+ token: loginToken,
10576
+ email: loginEmail,
10577
+ social_type: loginMethod
10578
+ };
10579
+ const request = await axiosInstance.post("/graph/socialLogin", payload);
10580
+ const output = request.data;
10581
+ result.data = {
10582
+ status: output.status == 1,
10583
+ message: output.errormessage ?? ""
10584
+ };
10585
+ } catch (error) {
10586
+ const extendedError = error;
10587
+ result = {
10588
+ status: extendedError.status || 500,
10589
+ message: error.message,
10590
+ ...DefaultSocialLoginData
10591
+ };
10592
+ }
10593
+ return result;
10594
+ };
10553
10595
  export {
10554
10596
  AccumulateDepositStatus,
10555
10597
  Api,
@@ -10573,5 +10615,6 @@ export {
10573
10615
  post,
10574
10616
  rename,
10575
10617
  setLocaleApi,
10618
+ socialLoginApi,
10576
10619
  telegramLoginApi
10577
10620
  };