@beam3_dev/api_module 0.0.218 → 0.0.219

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
@@ -167,7 +167,7 @@ function Ce(e, t) {
167
167
  });
168
168
  });
169
169
  }
170
- async function be(e, t = void 0, s = void 0) {
170
+ async function Te(e, t = void 0, s = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
173
  (n) => {
@@ -195,7 +195,7 @@ function Y() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function T(e, t = void 0, s = void 0) {
198
+ function b(e, t = void 0, s = void 0) {
199
199
  if (e.tenant) {
200
200
  const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
201
  m(n, {
@@ -215,7 +215,7 @@ function T(e, t = void 0, s = void 0) {
215
215
  });
216
216
  }
217
217
  }
218
- function Te(e, t = void 0, s = void 0) {
218
+ function be(e, t = void 0, s = void 0) {
219
219
  if (e.tenant) {
220
220
  const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
221
221
  m(n, {
@@ -688,11 +688,11 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
688
688
  ]
689
689
  }),
690
690
  type: "json",
691
- onComplete(b) {
692
- o && o(b);
691
+ onComplete(T) {
692
+ o && o(T);
693
693
  },
694
- onFailure(b) {
695
- a && a(b);
694
+ onFailure(T) {
695
+ a && a(T);
696
696
  }
697
697
  }, w = e.tenant.toUpperCase();
698
698
  m(
@@ -749,7 +749,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
749
749
  method: "POST",
750
750
  data: g,
751
751
  onComplete(_) {
752
- let w = D(), b = {
752
+ let w = D(), T = {
753
753
  method: "POST",
754
754
  headers: {
755
755
  ENO_CSRF_TOKEN: a,
@@ -789,7 +789,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
789
789
  };
790
790
  m(
791
791
  o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
792
- b
792
+ T
793
793
  );
794
794
  },
795
795
  onFailure(_) {
@@ -2096,11 +2096,11 @@ function ut(e, t, s = void 0, n = void 0) {
2096
2096
  if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2097
2097
  d.push(w.response.result);
2098
2098
  else {
2099
- const b = w.response.result.find(
2099
+ const T = w.response.result.find(
2100
2100
  (v) => v.title.includes(c)
2101
2101
  );
2102
- if (b) {
2103
- s(b);
2102
+ if (T) {
2103
+ s(T);
2104
2104
  return;
2105
2105
  }
2106
2106
  }
@@ -2112,8 +2112,8 @@ function ut(e, t, s = void 0, n = void 0) {
2112
2112
  }
2113
2113
  },
2114
2114
  onFailure(_, w) {
2115
- const b = _;
2116
- b.status = w.status, b.response = w.errormsg, n && n(b);
2115
+ const T = _;
2116
+ T.status = w.status, T.response = w.errormsg, n && n(T);
2117
2117
  }
2118
2118
  });
2119
2119
  };
@@ -2235,14 +2235,14 @@ function ft(e, t, s = void 0, n = void 0) {
2235
2235
  );
2236
2236
  }
2237
2237
  function mt(e, t = void 0, s = void 0) {
2238
- e.tenant && T(e, (n) => {
2238
+ e.tenant && b(e, (n) => {
2239
2239
  console.log("serviceUrls", n);
2240
2240
  const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2241
2241
  return t && t(i), i;
2242
2242
  });
2243
2243
  }
2244
2244
  function gt(e, t = void 0, s = void 0) {
2245
- e.tenant && T(e, (n) => {
2245
+ e.tenant && b(e, (n) => {
2246
2246
  console.log("serviceUrls", n);
2247
2247
  const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2248
2248
  m(o, {
@@ -2274,7 +2274,7 @@ function ht(e, t = void 0, s = void 0) {
2274
2274
  }
2275
2275
  }
2276
2276
  async function yt(e, t, s = void 0, n = void 0) {
2277
- e.tenant && T(e, (i) => {
2277
+ e.tenant && b(e, (i) => {
2278
2278
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2279
2279
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2280
2280
  method: "POST"
@@ -2286,7 +2286,7 @@ async function yt(e, t, s = void 0, n = void 0) {
2286
2286
  });
2287
2287
  }
2288
2288
  async function St(e, t, s = void 0, n = void 0) {
2289
- e.tenant && T(e, (i) => {
2289
+ e.tenant && b(e, (i) => {
2290
2290
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2291
2291
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2292
2292
  method: "GET"
@@ -2322,39 +2322,36 @@ async function wt(e, t, s, n = void 0, i = void 0) {
2322
2322
  }
2323
2323
  }
2324
2324
  async function Ct(e, t, s, n, i = void 0, r = void 0) {
2325
- e.tenant && T(e, (o) => {
2325
+ e.tenant && b(e, (o) => {
2326
2326
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2327
2327
  const a = e.tenant.toLowerCase();
2328
- fetch(
2329
- `https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
2330
- {
2331
- method: "POST"
2332
- }
2333
- ).then((c) => c.json()).then((c) => {
2328
+ fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`, {
2329
+ method: "POST"
2330
+ }).then((c) => c.json()).then((c) => {
2334
2331
  i && i(c);
2335
2332
  }).catch((c) => {
2336
- r && r(c);
2333
+ r && r(c, s, n);
2337
2334
  });
2338
2335
  });
2339
2336
  }
2340
- async function bt(e, t, s, n = [], i = [], r = void 0, o = void 0) {
2341
- e.tenant && T(e, (a) => {
2342
- a.services.find((p) => p.id === "businessprocess")?.url + "";
2343
- const c = encodeURIComponent(JSON.stringify({ rowsToRemove: i, rowsToAdd: n })), d = e.tenant.toLowerCase();
2337
+ async function Tt(e, t, s, n, i = void 0, r = void 0) {
2338
+ e.tenant && b(e, (o) => {
2339
+ o.services.find((c) => c.id === "businessprocess")?.url + "";
2340
+ const a = e.tenant.toLowerCase();
2344
2341
  fetch(
2345
- `https://api.uixhome.fr/${d}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${c}`,
2342
+ `https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
2346
2343
  {
2347
2344
  method: "POST"
2348
2345
  }
2349
- ).then((p) => p.json()).then((p) => {
2350
- r && r(p);
2351
- }).catch((p) => {
2352
- o && o(p);
2346
+ ).then((c) => c.json()).then((c) => {
2347
+ i && i(c);
2348
+ }).catch((c) => {
2349
+ r && r(c);
2353
2350
  });
2354
2351
  });
2355
2352
  }
2356
- async function Tt(e, t, s, n = void 0, i = void 0) {
2357
- e.tenant && T(e, (r) => {
2353
+ async function bt(e, t, s, n = void 0, i = void 0) {
2354
+ e.tenant && b(e, (r) => {
2358
2355
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2359
2356
  const o = e.tenant.toLowerCase();
2360
2357
  fetch(
@@ -2370,7 +2367,7 @@ async function Tt(e, t, s, n = void 0, i = void 0) {
2370
2367
  });
2371
2368
  }
2372
2369
  async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2373
- e.tenant && T(e, (a) => {
2370
+ e.tenant && b(e, (a) => {
2374
2371
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2375
2372
  const c = e.tenant.toLowerCase();
2376
2373
  fetch(
@@ -2386,7 +2383,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2386
2383
  });
2387
2384
  }
2388
2385
  async function $t(e, t, s, n, i = void 0, r = void 0) {
2389
- e.tenant && T(e, (o) => {
2386
+ e.tenant && b(e, (o) => {
2390
2387
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2391
2388
  const a = e.tenant.toLowerCase();
2392
2389
  fetch(
@@ -2527,9 +2524,9 @@ export {
2527
2524
  P as _3DSwym_sendMessageData,
2528
2525
  ve as _AppMngt_get_info_user,
2529
2526
  $e as _AppMngt_get_users,
2530
- bt as _Iterop_AddOrRemoveRows,
2527
+ Ct as _Iterop_AddOrRemoveRows,
2531
2528
  gt as _Iterop_Auth_CAS,
2532
- Tt as _Iterop_GetOneDependencyTable,
2529
+ bt as _Iterop_GetOneDependencyTable,
2533
2530
  yt as _Iterop_ListUsers,
2534
2531
  Ot as _Iterop_PatchDependencyTable,
2535
2532
  $t as _Iterop_PutDependencyTable,
@@ -2537,11 +2534,11 @@ export {
2537
2534
  _t as _Iterop_getOneBusinessTable,
2538
2535
  wt as _Iterop_getOneBusinessTableRows,
2539
2536
  ht as _Iterop_jwtUser,
2540
- Ct as _Iterop_runProcess,
2537
+ Tt as _Iterop_runProcess,
2541
2538
  Y as _getPlateformInfos,
2542
- be as _getPlatformServices,
2543
- T as _getServiceUrl,
2544
- Te as _getServiceUrl_3DPassport,
2539
+ Te as _getPlatformServices,
2540
+ b as _getServiceUrl,
2541
+ be as _getServiceUrl_3DPassport,
2545
2542
  mt as _getServiceUrl_Iterop,
2546
2543
  m as _httpCallAuthenticated,
2547
2544
  _e as _setDraggable,