@beam3_dev/api_module 0.0.146 → 0.0.147

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 I(e, t = void 0, n = void 0) {
444
+ function $(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
- I(
488
+ $(
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 Ie(e, t, n, s = void 0, a = void 0) {
510
+ function $e(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 Ie(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
- I(
533
+ $(
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 $e(e, t, n, s, a = void 0, r = void 0) {
601
+ async function Ie(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 $e(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 $ = {
625
+ const I = {
626
626
  method: "POST",
627
627
  headers: {
628
628
  ENO_CSRF_TOKEN: i,
@@ -653,7 +653,7 @@ async function $e(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, $);
656
+ c !== "" && f(l.url_Post, I);
657
657
  } else
658
658
  console.warn("le store est vide");
659
659
  },
@@ -662,9 +662,9 @@ async function $e(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, $) {
665
+ function y(C, I) {
666
666
  console.log("Erreur -- response ", C, `
667
- headers `, $), r && r(C);
667
+ headers `, I), 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
- I(
1125
+ $(
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 !== "" ? I(
1149
+ e.objID && e.objID !== "" ? $(
1150
1150
  e,
1151
1151
  (s) => {
1152
1152
  t && t(s);
@@ -2004,10 +2004,13 @@ async function at(e, t, n = void 0, s = void 0) {
2004
2004
  }
2005
2005
  async function ot(e, t, n, s, a = void 0, r = void 0) {
2006
2006
  e.tenant && v(e, (o) => {
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=${encodeURIComponent(s)}`, {
2009
- method: "POST"
2010
- }).then((d) => d.json()).then((d) => {
2007
+ const i = o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", c = encodeURIComponent(`${i}`);
2008
+ fetch(
2009
+ `https://api.uixhome.fr/iterop/runtime/processes/${n}?t=${t}&s=${c}&b=${s}`,
2010
+ {
2011
+ method: "POST"
2012
+ }
2013
+ ).then((d) => d.json()).then((d) => {
2011
2014
  a && a(d);
2012
2015
  }).catch((d) => {
2013
2016
  r && r(d);
@@ -2100,15 +2103,15 @@ function ct(e, t = void 0, n = void 0) {
2100
2103
  export {
2101
2104
  D as UUID,
2102
2105
  ct as _3DSearch_usersGroup,
2103
- $e as _3DSpace_Create_Doc,
2106
+ Ie as _3DSpace_Create_Doc,
2104
2107
  De as _3DSpace_bookmark_addSubsciptions,
2105
2108
  T as _3DSpace_csrf,
2106
2109
  P as _3DSpace_download_doc,
2107
2110
  B as _3DSpace_download_multidoc,
2108
2111
  X as _3DSpace_file_update,
2109
2112
  W as _3DSpace_file_update_csr,
2110
- Ie as _3DSpace_file_url_csr,
2111
- I as _3DSpace_get_csrf,
2113
+ $e as _3DSpace_file_url_csr,
2114
+ $ as _3DSpace_get_csrf,
2112
2115
  V as _3DSpace_get_docInfo,
2113
2116
  Y as _3DSpace_get_downloadTicket_multidoc,
2114
2117
  b as _3DSpace_get_securityContexts,
@@ -2138,7 +2141,7 @@ export {
2138
2141
  st as _Iterop_Auth_CAS,
2139
2142
  it as _Iterop_ListUsers,
2140
2143
  at as _Iterop_getAllBusinessTables,
2141
- ot as _Iterop_processStart,
2144
+ ot as _Iterop_runProcess,
2142
2145
  E as _getPlateformInfos,
2143
2146
  ge as _getPlatformServices,
2144
2147
  v as _getServiceUrl,