@beam3_dev/api_module 0.0.161 → 0.0.163

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
@@ -2063,7 +2063,7 @@ function dt(e, t = void 0, n = void 0) {
2063
2063
  e.tenant && $(e, (s) => {
2064
2064
  console.log("serviceUrls", s);
2065
2065
  const a = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2066
- t && t(a);
2066
+ return t && t(a), a;
2067
2067
  });
2068
2068
  }
2069
2069
  function lt(e, t = void 0, n = void 0) {
@@ -2089,7 +2089,7 @@ function lt(e, t = void 0, n = void 0) {
2089
2089
  async function pt(e, t, n = void 0, s = void 0) {
2090
2090
  e.tenant && $(e, (a) => {
2091
2091
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
2092
- fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
2092
+ fetch(`https://api.uixhome.fr/${e.tenant}/iterop/listusers?t=${t}&s=${o}`, {
2093
2093
  method: "POST"
2094
2094
  }).then((i) => i.json()).then((i) => {
2095
2095
  n && n(i);
@@ -2101,7 +2101,7 @@ async function pt(e, t, n = void 0, s = void 0) {
2101
2101
  async function ut(e, t, n = void 0, s = void 0) {
2102
2102
  e.tenant && $(e, (a) => {
2103
2103
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
2104
- fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`, {
2104
+ fetch(`https://api.uixhome.fr/${e.tenant}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2105
2105
  method: "GET"
2106
2106
  }).then((i) => i.json()).then((i) => {
2107
2107
  n && n(i);
@@ -2114,7 +2114,7 @@ async function ft(e, t, n, s, a = void 0, r = void 0) {
2114
2114
  e.tenant && $(e, (o) => {
2115
2115
  const i = o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", c = encodeURIComponent(`${i}`);
2116
2116
  fetch(
2117
- `https://api.uixhome.fr/iterop/runtime/processes/${n}?t=${t}&s=${c}&b=${s}`,
2117
+ `https://api.uixhome.fr/${e.tenant}/iterop/runtime/processes/${n}?t=${t}&s=${c}&b=${s}`,
2118
2118
  {
2119
2119
  method: "POST"
2120
2120
  }