arco-support-request 0.1.17 → 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 +15 -5
- package/esm2020/lib/entity-type-setup/service/entity-type-setup.service.mjs +2 -1
- package/fesm2015/arco-support-request.mjs +15 -4
- package/fesm2015/arco-support-request.mjs.map +1 -1
- package/fesm2020/arco-support-request.mjs +15 -4
- package/fesm2020/arco-support-request.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1950,23 +1950,33 @@ 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/",
|
|
1957
|
-
"ManpowerUrl": "https://
|
|
1957
|
+
"ManpowerUrl": "https://test.arco.sa/ManpowerApp/",
|
|
1958
1958
|
"BusinessUrl": "https://test.arco.sa:220/",
|
|
1959
1959
|
"FinanceApiUrl": "https://test.arco.sa:520/"
|
|
1960
1960
|
},
|
|
1961
1961
|
"Live": {
|
|
1962
1962
|
"ERPUrl": "https://erp.arco.sa/",
|
|
1963
1963
|
"ProducivityUrl": "https://erp.arco.sa/productivity/",
|
|
1964
|
-
"ManpowerUrl": "https://arco
|
|
1964
|
+
"ManpowerUrl": "https://erp.arco.sa/ManpowerApp/",
|
|
1965
1965
|
"BusinessUrl": "https://erp.arco.sa:220/",
|
|
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";
|
|
@@ -2658,6 +2668,7 @@ class EntityTypeSetupService {
|
|
|
2658
2668
|
let headers = this.setHeaders(restData.Headers, FormValues);
|
|
2659
2669
|
let parameter = this.getArraycolumn(params);
|
|
2660
2670
|
let _url = restData.URL + parameter;
|
|
2671
|
+
_url = _url.replace(/([^:]\/)\/+/g, "$1");
|
|
2661
2672
|
// searchCriteria = this.setCriteriaField(restData.QueryStrings,FormValues,searchCriteria)
|
|
2662
2673
|
let _responseType = restData.ResponseType ? restData.ResponseType : 'json';
|
|
2663
2674
|
switch (restData.Method) {
|