@beam3_dev/api_module 0.0.217 → 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(_) {
@@ -2093,29 +2093,27 @@ function ut(e, t, s = void 0, n = void 0) {
2093
2093
  onComplete(_) {
2094
2094
  const w = { response: JSON.parse(_) };
2095
2095
  if (f = Math.ceil(Number(w.response.nb_result) / 100), _ && f >= a) {
2096
- if (a++, f < a)
2097
- return;
2098
- if (l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2096
+ if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2099
2097
  d.push(w.response.result);
2100
2098
  else {
2101
- const b = w.response.result.find(
2099
+ const T = w.response.result.find(
2102
2100
  (v) => v.title.includes(c)
2103
2101
  );
2104
- if (b) {
2105
- s(b);
2102
+ if (T) {
2103
+ s(T);
2106
2104
  return;
2107
2105
  }
2108
2106
  }
2107
+ if (s && f < a && !c) {
2108
+ u = !0, s(d);
2109
+ return;
2110
+ }
2109
2111
  y(S);
2110
2112
  }
2111
- if (s && f <= a) {
2112
- u = !0, s(d);
2113
- return;
2114
- }
2115
2113
  },
2116
2114
  onFailure(_, w) {
2117
- const b = _;
2118
- 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);
2119
2117
  }
2120
2118
  });
2121
2119
  };
@@ -2237,14 +2235,14 @@ function ft(e, t, s = void 0, n = void 0) {
2237
2235
  );
2238
2236
  }
2239
2237
  function mt(e, t = void 0, s = void 0) {
2240
- e.tenant && T(e, (n) => {
2238
+ e.tenant && b(e, (n) => {
2241
2239
  console.log("serviceUrls", n);
2242
2240
  const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2243
2241
  return t && t(i), i;
2244
2242
  });
2245
2243
  }
2246
2244
  function gt(e, t = void 0, s = void 0) {
2247
- e.tenant && T(e, (n) => {
2245
+ e.tenant && b(e, (n) => {
2248
2246
  console.log("serviceUrls", n);
2249
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`;
2250
2248
  m(o, {
@@ -2276,7 +2274,7 @@ function ht(e, t = void 0, s = void 0) {
2276
2274
  }
2277
2275
  }
2278
2276
  async function yt(e, t, s = void 0, n = void 0) {
2279
- e.tenant && T(e, (i) => {
2277
+ e.tenant && b(e, (i) => {
2280
2278
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2281
2279
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2282
2280
  method: "POST"
@@ -2288,7 +2286,7 @@ async function yt(e, t, s = void 0, n = void 0) {
2288
2286
  });
2289
2287
  }
2290
2288
  async function St(e, t, s = void 0, n = void 0) {
2291
- e.tenant && T(e, (i) => {
2289
+ e.tenant && b(e, (i) => {
2292
2290
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2293
2291
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2294
2292
  method: "GET"
@@ -2324,39 +2322,36 @@ async function wt(e, t, s, n = void 0, i = void 0) {
2324
2322
  }
2325
2323
  }
2326
2324
  async function Ct(e, t, s, n, i = void 0, r = void 0) {
2327
- e.tenant && T(e, (o) => {
2325
+ e.tenant && b(e, (o) => {
2328
2326
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2329
2327
  const a = e.tenant.toLowerCase();
2330
- fetch(
2331
- `https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
2332
- {
2333
- method: "POST"
2334
- }
2335
- ).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) => {
2336
2331
  i && i(c);
2337
2332
  }).catch((c) => {
2338
- r && r(c);
2333
+ r && r(c, s, n);
2339
2334
  });
2340
2335
  });
2341
2336
  }
2342
- async function bt(e, t, s, n = [], i = [], r = void 0, o = void 0) {
2343
- e.tenant && T(e, (a) => {
2344
- a.services.find((p) => p.id === "businessprocess")?.url + "";
2345
- 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();
2346
2341
  fetch(
2347
- `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}`,
2348
2343
  {
2349
2344
  method: "POST"
2350
2345
  }
2351
- ).then((p) => p.json()).then((p) => {
2352
- r && r(p);
2353
- }).catch((p) => {
2354
- o && o(p);
2346
+ ).then((c) => c.json()).then((c) => {
2347
+ i && i(c);
2348
+ }).catch((c) => {
2349
+ r && r(c);
2355
2350
  });
2356
2351
  });
2357
2352
  }
2358
- async function Tt(e, t, s, n = void 0, i = void 0) {
2359
- e.tenant && T(e, (r) => {
2353
+ async function bt(e, t, s, n = void 0, i = void 0) {
2354
+ e.tenant && b(e, (r) => {
2360
2355
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2361
2356
  const o = e.tenant.toLowerCase();
2362
2357
  fetch(
@@ -2372,7 +2367,7 @@ async function Tt(e, t, s, n = void 0, i = void 0) {
2372
2367
  });
2373
2368
  }
2374
2369
  async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2375
- e.tenant && T(e, (a) => {
2370
+ e.tenant && b(e, (a) => {
2376
2371
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2377
2372
  const c = e.tenant.toLowerCase();
2378
2373
  fetch(
@@ -2388,7 +2383,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2388
2383
  });
2389
2384
  }
2390
2385
  async function $t(e, t, s, n, i = void 0, r = void 0) {
2391
- e.tenant && T(e, (o) => {
2386
+ e.tenant && b(e, (o) => {
2392
2387
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2393
2388
  const a = e.tenant.toLowerCase();
2394
2389
  fetch(
@@ -2529,9 +2524,9 @@ export {
2529
2524
  P as _3DSwym_sendMessageData,
2530
2525
  ve as _AppMngt_get_info_user,
2531
2526
  $e as _AppMngt_get_users,
2532
- bt as _Iterop_AddOrRemoveRows,
2527
+ Ct as _Iterop_AddOrRemoveRows,
2533
2528
  gt as _Iterop_Auth_CAS,
2534
- Tt as _Iterop_GetOneDependencyTable,
2529
+ bt as _Iterop_GetOneDependencyTable,
2535
2530
  yt as _Iterop_ListUsers,
2536
2531
  Ot as _Iterop_PatchDependencyTable,
2537
2532
  $t as _Iterop_PutDependencyTable,
@@ -2539,11 +2534,11 @@ export {
2539
2534
  _t as _Iterop_getOneBusinessTable,
2540
2535
  wt as _Iterop_getOneBusinessTableRows,
2541
2536
  ht as _Iterop_jwtUser,
2542
- Ct as _Iterop_runProcess,
2537
+ Tt as _Iterop_runProcess,
2543
2538
  Y as _getPlateformInfos,
2544
- be as _getPlatformServices,
2545
- T as _getServiceUrl,
2546
- Te as _getServiceUrl_3DPassport,
2539
+ Te as _getPlatformServices,
2540
+ b as _getServiceUrl,
2541
+ be as _getServiceUrl_3DPassport,
2547
2542
  mt as _getServiceUrl_Iterop,
2548
2543
  m as _httpCallAuthenticated,
2549
2544
  _e as _setDraggable,