60p82u21t54k 1.1.39 → 1.1.41

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.
Files changed (38) hide show
  1. package/dist/60p82u21t54k.cjs.js +1 -1
  2. package/dist/60p82u21t54k.es.js +49 -54
  3. package/dist/60p82u21t54k.umd.js +1 -1
  4. package/dist/api/autoRegister/type.d.ts +2 -3
  5. package/dist/api/autoRegister/type.d.ts.map +1 -1
  6. package/dist/api/getMaintenanceMode/getMaintenanceModeApi.d.ts.map +1 -1
  7. package/dist/api/getMaintenanceMode/type.d.ts +2 -3
  8. package/dist/api/getMaintenanceMode/type.d.ts.map +1 -1
  9. package/dist/api/jackpotData/jackpotDataApi.d.ts.map +1 -1
  10. package/dist/api/jackpotData/type.d.ts +2 -3
  11. package/dist/api/jackpotData/type.d.ts.map +1 -1
  12. package/dist/api/loadMatch/loadMatchApi.d.ts.map +1 -1
  13. package/dist/api/loadMatch/type.d.ts +2 -3
  14. package/dist/api/loadMatch/type.d.ts.map +1 -1
  15. package/dist/api/login/loginApi.d.ts.map +1 -1
  16. package/dist/api/login/type.d.ts +2 -4
  17. package/dist/api/login/type.d.ts.map +1 -1
  18. package/dist/api/logout/type.d.ts +2 -4
  19. package/dist/api/logout/type.d.ts.map +1 -1
  20. package/dist/api/rename/type.d.ts +2 -4
  21. package/dist/api/rename/type.d.ts.map +1 -1
  22. package/dist/api/sessionToJwt/sessionToJwtApi.d.ts.map +1 -1
  23. package/dist/api/sessionToJwt/type.d.ts +5 -4
  24. package/dist/api/sessionToJwt/type.d.ts.map +1 -1
  25. package/dist/api/setLocale/type.d.ts +2 -3
  26. package/dist/api/setLocale/type.d.ts.map +1 -1
  27. package/dist/api/socialLogin/socialLoginApi.d.ts.map +1 -1
  28. package/dist/api/socialLogin/type.d.ts +6 -3
  29. package/dist/api/socialLogin/type.d.ts.map +1 -1
  30. package/dist/api/telegramLogin/telegramLoginApi.d.ts.map +1 -1
  31. package/dist/api/telegramLogin/type.d.ts +2 -4
  32. package/dist/api/telegramLogin/type.d.ts.map +1 -1
  33. package/dist/model/getSetting/getGetSettingResponse.d.ts.map +1 -1
  34. package/dist/model/getSetting/type.d.ts +6 -1
  35. package/dist/model/getSetting/type.d.ts.map +1 -1
  36. package/dist/util/type.d.ts +5 -0
  37. package/dist/util/type.d.ts.map +1 -0
  38. package/package.json +1 -1
@@ -2027,7 +2027,11 @@ const getGetSettingResponse = (raw) => {
2027
2027
  status: item.status == 1
2028
2028
  };
2029
2029
  }),
2030
- mobileValidate: raw.mobilevalidate ? raw.mobilevalidate === "1" : false,
2030
+ mobileValidate: {
2031
+ register: (Number(raw.mobilevalidate) & 1) > 0,
2032
+ deposit: (Number(raw.mobilevalidate) & 2) > 0,
2033
+ withdraw: (Number(raw.mobilevalidate) & 4) > 0
2034
+ },
2031
2035
  withdrawTAC: raw.withdrawtac ? raw.withdrawtac === "1" : false,
2032
2036
  imageDomain: (_b = raw.imagedomain) != null ? _b : "",
2033
2037
  withdrawalCodeType: {
@@ -6728,8 +6732,8 @@ const autoRegisterApi = () => __async(void 0, null, function* () {
6728
6732
  message: ""
6729
6733
  }, DefaultAutoRegisterData);
6730
6734
  try {
6731
- const request = yield get("/graph/autoregister");
6732
- const output = request.data;
6735
+ const response = yield get("/graph/autoregister");
6736
+ const output = response.data;
6733
6737
  result.data = {
6734
6738
  status: output.status == 1,
6735
6739
  message: (_a = output.message) != null ? _a : "",
@@ -6766,8 +6770,8 @@ const getMaintenanceModeApi = () => __async(void 0, null, function* () {
6766
6770
  message: ""
6767
6771
  }, DefaultGetMaintenanceModeData);
6768
6772
  try {
6769
- const request = yield get("/graph/getMaintenanceMode");
6770
- const output = request.data;
6773
+ const response = yield get("/graph/getMaintenanceMode");
6774
+ const output = response.data;
6771
6775
  result.data = {
6772
6776
  status: output.status == 1,
6773
6777
  message: (_a = output.msg) != null ? _a : "",
@@ -6800,8 +6804,8 @@ const jackpotDataApi = () => __async(void 0, null, function* () {
6800
6804
  message: ""
6801
6805
  }, DefaultjackpotData);
6802
6806
  try {
6803
- const request = yield get("/api/jackpotData");
6804
- const output = request.data;
6807
+ const response = yield get("/api/jackpotData");
6808
+ const output = response.data;
6805
6809
  result.data = {
6806
6810
  startTimestamp: output.startTimestamp,
6807
6811
  startJackpot: output.startJackpot,
@@ -6817,18 +6821,20 @@ const jackpotDataApi = () => __async(void 0, null, function* () {
6817
6821
  }
6818
6822
  return result;
6819
6823
  });
6824
+ const DefaultLoadMatchData = {
6825
+ data: {
6826
+ message: "",
6827
+ urlLink: ""
6828
+ }
6829
+ };
6820
6830
  const loadMatchApi = (gameId, stage, sportId, tagId, matchId) => __async(void 0, null, function* () {
6821
6831
  var _a, _b, _c, _d;
6822
- let result = {
6832
+ let result = __spreadValues({
6823
6833
  status: 200,
6824
- message: "",
6825
- data: {
6826
- message: "",
6827
- urlLink: ""
6828
- }
6829
- };
6834
+ message: ""
6835
+ }, DefaultLoadMatchData);
6830
6836
  try {
6831
- const request = yield customPost(`/loadgame/${gameId}`, {
6837
+ const response = yield customPost(`/loadgame/${gameId}`, {
6832
6838
  wanturl: 1,
6833
6839
  extra: {
6834
6840
  Stage: stage,
@@ -6837,7 +6843,7 @@ const loadMatchApi = (gameId, stage, sportId, tagId, matchId) => __async(void 0,
6837
6843
  MatchId: matchId
6838
6844
  }
6839
6845
  });
6840
- const output = request.data;
6846
+ const output = response.data;
6841
6847
  result = {
6842
6848
  status: (_a = output.code) != null ? _a : 200,
6843
6849
  message: (_b = output.message) != null ? _b : "",
@@ -6848,14 +6854,10 @@ const loadMatchApi = (gameId, stage, sportId, tagId, matchId) => __async(void 0,
6848
6854
  };
6849
6855
  } catch (error) {
6850
6856
  const extendedError = error;
6851
- result = {
6857
+ result = __spreadValues({
6852
6858
  status: extendedError.status || 500,
6853
- message: error.message,
6854
- data: {
6855
- message: "",
6856
- urlLink: ""
6857
- }
6858
- };
6859
+ message: error.message
6860
+ }, DefaultLoadMatchData);
6859
6861
  }
6860
6862
  return result;
6861
6863
  });
@@ -6873,10 +6875,6 @@ const loginApi = (username, password, type = "") => __async(void 0, null, functi
6873
6875
  payload.type = type;
6874
6876
  }
6875
6877
  yield customPost("/graph/auth/sesh", payload);
6876
- result = {
6877
- status: 200,
6878
- message: ""
6879
- };
6880
6878
  } catch (error) {
6881
6879
  const extendedError = error;
6882
6880
  result = {
@@ -6908,14 +6906,14 @@ const rename = (fullname) => __async(void 0, null, function* () {
6908
6906
  message: ""
6909
6907
  };
6910
6908
  try {
6911
- const request = yield customPost("/graph/rename", {
6909
+ const response = yield customPost("/graph/rename", {
6912
6910
  fullname
6913
6911
  });
6914
6912
  if (false) ;
6915
- const response = request.data;
6913
+ const output = response.data;
6916
6914
  result = {
6917
- status: response.status == 1 ? 200 : 509,
6918
- message: response.msg ? response.msg : ""
6915
+ status: output.status == 1 ? 200 : 509,
6916
+ message: output.msg ? output.msg : ""
6919
6917
  };
6920
6918
  } catch (error) {
6921
6919
  const extendedError = error;
@@ -6939,11 +6937,11 @@ const setLocaleApi = (localeCode, udid) => __async(void 0, null, function* () {
6939
6937
  message: ""
6940
6938
  }, DefaultSetLocaleData);
6941
6939
  try {
6942
- const request = yield customPost("/graph/setlocale", {
6940
+ const response = yield customPost("/graph/setlocale", {
6943
6941
  language: localeCode,
6944
6942
  udid: udid != null ? udid : ""
6945
6943
  });
6946
- const output = request.data;
6944
+ const output = response.data;
6947
6945
  result.data = {
6948
6946
  status: output.status == 1,
6949
6947
  message: (_a = output.message) != null ? _a : ""
@@ -6964,10 +6962,6 @@ const telegramLoginApi = (data) => __async(void 0, null, function* () {
6964
6962
  };
6965
6963
  try {
6966
6964
  yield customPost("/loginVia/telegram", data);
6967
- result = {
6968
- status: 200,
6969
- message: ""
6970
- };
6971
6965
  } catch (error) {
6972
6966
  const extendedError = error;
6973
6967
  result = {
@@ -6995,11 +6989,11 @@ const socialLoginApi = (loginToken, loginEmail, loginMethod) => __async(void 0,
6995
6989
  email: loginEmail,
6996
6990
  social_type: loginMethod
6997
6991
  };
6998
- const request = yield customPost(
6992
+ const response = yield customPost(
6999
6993
  "/graph/socialLogin",
7000
6994
  payload
7001
6995
  );
7002
- const output = request.data;
6996
+ const output = response.data;
7003
6997
  result.data = {
7004
6998
  status: output.status == 1,
7005
6999
  message: (_a = output.errormessage) != null ? _a : ""
@@ -7013,30 +7007,31 @@ const socialLoginApi = (loginToken, loginEmail, loginMethod) => __async(void 0,
7013
7007
  }
7014
7008
  return result;
7015
7009
  });
7010
+ const DefaultSessionToJwtData = {
7011
+ data: {
7012
+ accessToken: ""
7013
+ }
7014
+ };
7016
7015
  const sessionToJwtApi = () => __async(void 0, null, function* () {
7017
- var _a, _b;
7018
- let result = {
7016
+ var _a;
7017
+ let result = __spreadValues({
7019
7018
  status: 200,
7020
- message: "",
7021
- accessToken: ""
7022
- };
7019
+ message: ""
7020
+ }, DefaultSessionToJwtData);
7023
7021
  try {
7024
- const request = yield customPost(
7022
+ const response = yield customPost(
7025
7023
  "/graph/auth/session-to-jwt"
7026
7024
  );
7027
- const response = request.data;
7028
- result = {
7029
- status: 200,
7030
- message: (_a = response.message) != null ? _a : "",
7031
- accessToken: (_b = response.access_token) != null ? _b : ""
7025
+ const output = response.data;
7026
+ result.data = {
7027
+ accessToken: (_a = output.access_token) != null ? _a : ""
7032
7028
  };
7033
7029
  } catch (error) {
7034
7030
  const extendedError = error;
7035
- result = {
7031
+ result = __spreadValues({
7036
7032
  status: extendedError.status || 500,
7037
- message: error.message,
7038
- accessToken: ""
7039
- };
7033
+ message: error.message
7034
+ }, DefaultSessionToJwtData);
7040
7035
  }
7041
7036
  return result;
7042
7037
  });