@beam3_dev/api_module 0.0.112 → 0.0.114
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/wb3Api.js +22 -13
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1954,22 +1954,31 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1954
1954
|
function nt(e, t = void 0, n = void 0) {
|
|
1955
1955
|
e.tenant && E(e, (s) => {
|
|
1956
1956
|
console.log("serviceUrls", s);
|
|
1957
|
-
const i = s.services.find((
|
|
1958
|
-
f(
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1957
|
+
const i = s.services.find((d) => d.id === "3dpassport")?.url, r = s.services.find((d) => d.id === "3dcompass")?.url, o = s.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", a = `${i}/login/?service=${r}/resources/AppsMngt/api/pull/self`, c = `${i}/login/?service=${o}/auth/cas`;
|
|
1958
|
+
f(a, {
|
|
1959
|
+
method: "POST",
|
|
1960
|
+
onComplete(d) {
|
|
1961
|
+
f(c, {
|
|
1962
|
+
onComplete(l) {
|
|
1963
|
+
console.log("response", l);
|
|
1964
|
+
const p = typeof l == "string" ? JSON.parse(l)?.x3ds_service_redirect_url : l?.x3ds_service_redirect_url;
|
|
1965
|
+
p ? f(p, {
|
|
1966
|
+
method: "POST",
|
|
1967
|
+
onComplete(u) {
|
|
1968
|
+
t && t(u);
|
|
1969
|
+
},
|
|
1970
|
+
onFailure(u) {
|
|
1971
|
+
n && n(u);
|
|
1972
|
+
}
|
|
1973
|
+
}) : n && n("x3ds_service_redirect_url is undefined");
|
|
1965
1974
|
},
|
|
1966
|
-
onFailure(
|
|
1967
|
-
n && n(
|
|
1975
|
+
onFailure(l) {
|
|
1976
|
+
n && n(l);
|
|
1968
1977
|
}
|
|
1969
|
-
})
|
|
1978
|
+
});
|
|
1970
1979
|
},
|
|
1971
|
-
onFailure(
|
|
1972
|
-
n && n(
|
|
1980
|
+
onFailure(d) {
|
|
1981
|
+
n && n(d);
|
|
1973
1982
|
}
|
|
1974
1983
|
});
|
|
1975
1984
|
});
|