arco-support-request 0.1.18 → 0.1.19
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/esm2020/lib/core/global.service.mjs +13 -3
- package/esm2020/lib/entity-type-setup/service/entity-type-setup.service.mjs +2 -1
- package/fesm2015/arco-support-request.mjs +13 -2
- package/fesm2015/arco-support-request.mjs.map +1 -1
- package/fesm2020/arco-support-request.mjs +13 -2
- package/fesm2020/arco-support-request.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1950,7 +1950,7 @@ class GlobalService {
|
|
|
1950
1950
|
];
|
|
1951
1951
|
}
|
|
1952
1952
|
getUrls() {
|
|
1953
|
-
let
|
|
1953
|
+
let configJson = {
|
|
1954
1954
|
"Test": {
|
|
1955
1955
|
"ERPUrl": "https://test.arco.sa/",
|
|
1956
1956
|
"ProducivityUrl": "https://test.arco.sa/productivity/",
|
|
@@ -1966,7 +1966,17 @@ class GlobalService {
|
|
|
1966
1966
|
"FinanceApiUrl": "https://erp.arco.sa:520/"
|
|
1967
1967
|
}
|
|
1968
1968
|
};
|
|
1969
|
-
|
|
1969
|
+
let path = `${this.HostUrl}/arco-support-request_Library/assets/json/systemConfig.json`;
|
|
1970
|
+
let fileUrl = path.replace(/([^:]\/)\/+/g, "$1");
|
|
1971
|
+
;
|
|
1972
|
+
this.http.get(fileUrl).subscribe((response) => {
|
|
1973
|
+
configJson = response;
|
|
1974
|
+
return configJson;
|
|
1975
|
+
}, (error) => {
|
|
1976
|
+
console.log("Error downloading the systemConfig.json file :- ", error);
|
|
1977
|
+
return configJson;
|
|
1978
|
+
});
|
|
1979
|
+
return configJson;
|
|
1970
1980
|
}
|
|
1971
1981
|
getSystemConfig() {
|
|
1972
1982
|
let type = "test";
|
|
@@ -2657,6 +2667,7 @@ class EntityTypeSetupService {
|
|
|
2657
2667
|
let headers = this.setHeaders(restData.Headers, FormValues);
|
|
2658
2668
|
let parameter = this.getArraycolumn(params);
|
|
2659
2669
|
let _url = restData.URL + parameter;
|
|
2670
|
+
_url = _url.replace(/([^:]\/)\/+/g, "$1");
|
|
2660
2671
|
// searchCriteria = this.setCriteriaField(restData.QueryStrings,FormValues,searchCriteria)
|
|
2661
2672
|
let _responseType = restData.ResponseType ? restData.ResponseType : 'json';
|
|
2662
2673
|
switch (restData.Method) {
|