@esvndev/es-react-config-setting 1.0.79 → 1.0.81

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/index.js CHANGED
@@ -18688,7 +18688,7 @@ const getToken = () => {
18688
18688
  };
18689
18689
  //#endregion
18690
18690
  const GetSettingGroup = (callback) => {
18691
- const _url = `${BASE_URL}/api/config/get-setting-config-group`;
18691
+ const _url = `${BASE_URL}/api/escore/get-setting-config-group`;
18692
18692
  const options = {
18693
18693
  method: 'POST',
18694
18694
  headers: {
@@ -18726,7 +18726,7 @@ const GetSettingGroup = (callback) => {
18726
18726
  });
18727
18727
  };
18728
18728
  const GetSettingConfigClient = async (callback) => {
18729
- const _url = `${BASE_URL}/api/config/get-setting-config-client`;
18729
+ const _url = `${BASE_URL}/api/escore/get-setting-config-client`;
18730
18730
  const _obj = {
18731
18731
  ModuleId: REACT_APP_PRODUCT_CODE,
18732
18732
  StateId: '',
@@ -18769,7 +18769,7 @@ const GetSettingConfigClient = async (callback) => {
18769
18769
  });
18770
18770
  };
18771
18771
  const GetSettingConfigByGroup = (obj, callback) => {
18772
- const _url = `${BASE_URL}/api/config/get-setting-config-by-group`;
18772
+ const _url = `${BASE_URL}/api/escore/get-setting-config-by-group`;
18773
18773
  const options = {
18774
18774
  method: 'POST',
18775
18775
  headers: {
@@ -18807,7 +18807,7 @@ const GetSettingConfigByGroup = (obj, callback) => {
18807
18807
  };
18808
18808
  //Update setting data
18809
18809
  const UpdateSettingConfig = (obj, file, callback) => {
18810
- const _url = `${BASE_URL}/api/config/update-setting-config`;
18810
+ const _url = `${BASE_URL}/api/escore/update-setting-config`;
18811
18811
  const formData = new FormData();
18812
18812
  formData.append(`GroupId`, obj.GroupId);
18813
18813
  formData.append(`ModuleId`, REACT_APP_PRODUCT_CODE ?? "");
@@ -18819,6 +18819,9 @@ const UpdateSettingConfig = (obj, file, callback) => {
18819
18819
  if (file) {
18820
18820
  formData.append("file", file);
18821
18821
  }
18822
+ else {
18823
+ formData.append("file", '');
18824
+ }
18822
18825
  const options = {
18823
18826
  method: 'POST',
18824
18827
  headers: {