@beam3_dev/api_module 0.0.145 → 0.0.146

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
@@ -441,7 +441,7 @@ async function V(e, t = void 0, n = void 0, s = void 0) {
441
441
  }
442
442
  });
443
443
  }
444
- function $(e, t = void 0, n = void 0) {
444
+ function I(e, t = void 0, n = void 0) {
445
445
  if (e.objID && e.objID !== "") {
446
446
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
447
447
  f(s, {
@@ -485,7 +485,7 @@ function T(e, t = void 0, n = void 0) {
485
485
  }
486
486
  function A(e, t = void 0, n = void 0) {
487
487
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
488
- $(
488
+ I(
489
489
  e,
490
490
  (a) => {
491
491
  f(s, {
@@ -507,7 +507,7 @@ function A(e, t = void 0, n = void 0) {
507
507
  }
508
508
  );
509
509
  }
510
- function $e(e, t, n, s = void 0, a = void 0) {
510
+ function Ie(e, t, n, s = void 0, a = void 0) {
511
511
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
512
512
  n || (n = e.token), f(r, {
513
513
  method: "PUT",
@@ -530,7 +530,7 @@ function $e(e, t, n, s = void 0, a = void 0) {
530
530
  });
531
531
  }
532
532
  function X(e, t, n, s, a, r = void 0, o = void 0) {
533
- $(
533
+ I(
534
534
  e,
535
535
  t,
536
536
  (i) => {
@@ -598,7 +598,7 @@ function W(e, t, n, s, a, r, o = void 0, i = void 0) {
598
598
  }
599
599
  });
600
600
  }
601
- async function Ie(e, t, n, s, a = void 0, r = void 0) {
601
+ async function $e(e, t, n, s, a = void 0, r = void 0) {
602
602
  const o = e.space, i = e.token, c = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
603
603
  type: "text/plain"
604
604
  }), l = {
@@ -622,7 +622,7 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
622
622
  data: d,
623
623
  onComplete(C) {
624
624
  if (c !== "" && i !== "") {
625
- const I = {
625
+ const $ = {
626
626
  method: "POST",
627
627
  headers: {
628
628
  ENO_CSRF_TOKEN: i,
@@ -653,7 +653,7 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
653
653
  onComplete: _,
654
654
  onFailure: y
655
655
  };
656
- c !== "" && f(l.url_Post, I);
656
+ c !== "" && f(l.url_Post, $);
657
657
  } else
658
658
  console.warn("le store est vide");
659
659
  },
@@ -662,9 +662,9 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
662
662
  function _(C) {
663
663
  console.log("Success -- response ", C.data[0]), a && a(C);
664
664
  }
665
- function y(C, I) {
665
+ function y(C, $) {
666
666
  console.log("Erreur -- response ", C, `
667
- headers `, I), r && r(C);
667
+ headers `, $), r && r(C);
668
668
  }
669
669
  f(h.ticketURL, S);
670
670
  }
@@ -1122,7 +1122,7 @@ async function xe(e, t, n = void 0, s = void 0) {
1122
1122
  }
1123
1123
  function Me(e, t, n, s = void 0, a = void 0) {
1124
1124
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1125
- $(
1125
+ I(
1126
1126
  e,
1127
1127
  n,
1128
1128
  (o) => {
@@ -1146,7 +1146,7 @@ function Me(e, t, n, s = void 0, a = void 0) {
1146
1146
  let R, x;
1147
1147
  const F = [];
1148
1148
  async function Le(e, t = void 0, n = void 0) {
1149
- e.objID && e.objID !== "" ? $(
1149
+ e.objID && e.objID !== "" ? I(
1150
1150
  e,
1151
1151
  (s) => {
1152
1152
  t && t(s);
@@ -2005,7 +2005,7 @@ async function at(e, t, n = void 0, s = void 0) {
2005
2005
  async function ot(e, t, n, s, a = void 0, r = void 0) {
2006
2006
  e.tenant && v(e, (o) => {
2007
2007
  const c = `${o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
2008
- fetch(`https://api.uixhome.fr/iterop/runtime/processes?k=${n}&t=${t}&s=${c}&b=${s}`, {
2008
+ fetch(`https://api.uixhome.fr/iterop/runtime/processes?k=${n}&t=${t}&s=${c}&b=${encodeURIComponent(s)}`, {
2009
2009
  method: "POST"
2010
2010
  }).then((d) => d.json()).then((d) => {
2011
2011
  a && a(d);
@@ -2100,15 +2100,15 @@ function ct(e, t = void 0, n = void 0) {
2100
2100
  export {
2101
2101
  D as UUID,
2102
2102
  ct as _3DSearch_usersGroup,
2103
- Ie as _3DSpace_Create_Doc,
2103
+ $e as _3DSpace_Create_Doc,
2104
2104
  De as _3DSpace_bookmark_addSubsciptions,
2105
2105
  T as _3DSpace_csrf,
2106
2106
  P as _3DSpace_download_doc,
2107
2107
  B as _3DSpace_download_multidoc,
2108
2108
  X as _3DSpace_file_update,
2109
2109
  W as _3DSpace_file_update_csr,
2110
- $e as _3DSpace_file_url_csr,
2111
- $ as _3DSpace_get_csrf,
2110
+ Ie as _3DSpace_file_url_csr,
2111
+ I as _3DSpace_get_csrf,
2112
2112
  V as _3DSpace_get_docInfo,
2113
2113
  Y as _3DSpace_get_downloadTicket_multidoc,
2114
2114
  b as _3DSpace_get_securityContexts,