@beam3_dev/api_module 0.0.113 → 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 CHANGED
@@ -1954,23 +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((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
1958
- f(o, {
1959
- onComplete(a) {
1960
- console.log("response", a);
1961
- const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
1962
- c ? f(c, {
1963
- method: "POST",
1964
- onComplete(d) {
1965
- t && t(d);
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");
1966
1974
  },
1967
- onFailure(d) {
1968
- n && n(d);
1975
+ onFailure(l) {
1976
+ n && n(l);
1969
1977
  }
1970
- }) : n && n("x3ds_service_redirect_url is undefined");
1978
+ });
1971
1979
  },
1972
- onFailure(a) {
1973
- n && n(a);
1980
+ onFailure(d) {
1981
+ n && n(d);
1974
1982
  }
1975
1983
  });
1976
1984
  });