@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.mjs CHANGED
@@ -18661,7 +18661,7 @@ const getToken = () => {
18661
18661
  };
18662
18662
  //#endregion
18663
18663
  const GetSettingGroup = (callback) => {
18664
- const _url = `${BASE_URL}/api/config/get-setting-config-group`;
18664
+ const _url = `${BASE_URL}/api/escore/get-setting-config-group`;
18665
18665
  const options = {
18666
18666
  method: 'POST',
18667
18667
  headers: {
@@ -18699,7 +18699,7 @@ const GetSettingGroup = (callback) => {
18699
18699
  });
18700
18700
  };
18701
18701
  const GetSettingConfigClient = async (callback) => {
18702
- const _url = `${BASE_URL}/api/config/get-setting-config-client`;
18702
+ const _url = `${BASE_URL}/api/escore/get-setting-config-client`;
18703
18703
  const _obj = {
18704
18704
  ModuleId: REACT_APP_PRODUCT_CODE,
18705
18705
  StateId: '',
@@ -18742,7 +18742,7 @@ const GetSettingConfigClient = async (callback) => {
18742
18742
  });
18743
18743
  };
18744
18744
  const GetSettingConfigByGroup = (obj, callback) => {
18745
- const _url = `${BASE_URL}/api/config/get-setting-config-by-group`;
18745
+ const _url = `${BASE_URL}/api/escore/get-setting-config-by-group`;
18746
18746
  const options = {
18747
18747
  method: 'POST',
18748
18748
  headers: {
@@ -18780,7 +18780,7 @@ const GetSettingConfigByGroup = (obj, callback) => {
18780
18780
  };
18781
18781
  //Update setting data
18782
18782
  const UpdateSettingConfig = (obj, file, callback) => {
18783
- const _url = `${BASE_URL}/api/config/update-setting-config`;
18783
+ const _url = `${BASE_URL}/api/escore/update-setting-config`;
18784
18784
  const formData = new FormData();
18785
18785
  formData.append(`GroupId`, obj.GroupId);
18786
18786
  formData.append(`ModuleId`, REACT_APP_PRODUCT_CODE ?? "");
@@ -18792,6 +18792,9 @@ const UpdateSettingConfig = (obj, file, callback) => {
18792
18792
  if (file) {
18793
18793
  formData.append("file", file);
18794
18794
  }
18795
+ else {
18796
+ formData.append("file", '');
18797
+ }
18795
18798
  const options = {
18796
18799
  method: 'POST',
18797
18800
  headers: {