@beam3_dev/api_module 0.0.216 → 0.0.217

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 Te(e, t = void 0, s = void 0) {
170
+ async function be(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 b(e, t = void 0, s = void 0) {
198
+ function T(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 b(e, t = void 0, s = void 0) {
215
215
  });
216
216
  }
217
217
  }
218
- function be(e, t = void 0, s = void 0) {
218
+ function Te(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, {
@@ -352,7 +352,7 @@ function q(e, t = void 0, s = void 0) {
352
352
  }
353
353
  });
354
354
  }
355
- function Ae(e, t = void 0, s = void 0) {
355
+ function ke(e, t = void 0, s = void 0) {
356
356
  const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
357
357
  "Content-Type": "application/json",
358
358
  Accept: "application/json,text/javascript,*/*"
@@ -383,7 +383,7 @@ function Ae(e, t = void 0, s = void 0) {
383
383
  console.log(p);
384
384
  }
385
385
  }
386
- function ke(e, t) {
386
+ function Ae(e, t) {
387
387
  const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
388
388
  m(i, {
389
389
  method: "DELETE"
@@ -458,7 +458,7 @@ async function H(e, t, s) {
458
458
  });
459
459
  }
460
460
  }
461
- var A = {};
461
+ var k = {};
462
462
  function z(e, t) {
463
463
  return Object.prototype.hasOwnProperty.call(e, t);
464
464
  }
@@ -497,8 +497,8 @@ var Q = function(e, t, s, n) {
497
497
  }).join(t) : r + encodeURIComponent(N(e[i]));
498
498
  }).filter(Boolean).join(t) : n ? encodeURIComponent(N(n)) + s + encodeURIComponent(N(e)) : "";
499
499
  };
500
- A.decode = A.parse = Q;
501
- A.encode = A.stringify = Z;
500
+ k.decode = k.parse = Q;
501
+ k.encode = k.stringify = Z;
502
502
  async function L(e, t = void 0, s = void 0, n = void 0) {
503
503
  const i = e.space;
504
504
  if (t === void 0) {
@@ -522,7 +522,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
522
522
  console.log("Le paramètre docids est obligatoire");
523
523
  return;
524
524
  }
525
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = A.stringify({
525
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = k.stringify({
526
526
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
527
527
  });
528
528
  m(r, {
@@ -540,7 +540,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
540
540
  }
541
541
  });
542
542
  }
543
- function k(e, t = void 0, s = void 0) {
543
+ function A(e, t = void 0, s = void 0) {
544
544
  if (e.objID && e.objID !== "") {
545
545
  let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
546
  m(n, {
@@ -584,7 +584,7 @@ function O(e, t = void 0, s = void 0) {
584
584
  }
585
585
  function U(e, t = void 0, s = void 0) {
586
586
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
- k(
587
+ A(
588
588
  e,
589
589
  (i) => {
590
590
  m(n, {
@@ -639,7 +639,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
639
639
  r,
640
640
  o
641
641
  );
642
- e.token ? a() : k(
642
+ e.token ? a() : A(
643
643
  e,
644
644
  t,
645
645
  (c) => {
@@ -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(T) {
692
- o && o(T);
691
+ onComplete(b) {
692
+ o && o(b);
693
693
  },
694
- onFailure(T) {
695
- a && a(T);
694
+ onFailure(b) {
695
+ a && a(b);
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(), T = {
752
+ let w = D(), b = {
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
- T
792
+ b
793
793
  );
794
794
  },
795
795
  onFailure(_) {
@@ -1277,7 +1277,7 @@ async function Xe(e, t, s = void 0, n = void 0) {
1277
1277
  }
1278
1278
  function Ye(e, t, s, n = void 0, i = void 0) {
1279
1279
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1280
- k(
1280
+ A(
1281
1281
  e,
1282
1282
  s,
1283
1283
  (o) => {
@@ -1301,7 +1301,7 @@ function Ye(e, t, s, n = void 0, i = void 0) {
1301
1301
  let G, E;
1302
1302
  const x = [];
1303
1303
  async function qe(e, t = void 0, s = void 0) {
1304
- e.objID && e.objID !== "" ? k(
1304
+ e.objID && e.objID !== "" ? A(
1305
1305
  e,
1306
1306
  (n) => {
1307
1307
  t && t(n);
@@ -2098,11 +2098,11 @@ function ut(e, t, s = void 0, n = void 0) {
2098
2098
  if (l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2099
2099
  d.push(w.response.result);
2100
2100
  else {
2101
- const T = w.response.result.find(
2101
+ const b = w.response.result.find(
2102
2102
  (v) => v.title.includes(c)
2103
2103
  );
2104
- if (T) {
2105
- s(T);
2104
+ if (b) {
2105
+ s(b);
2106
2106
  return;
2107
2107
  }
2108
2108
  }
@@ -2114,8 +2114,8 @@ function ut(e, t, s = void 0, n = void 0) {
2114
2114
  }
2115
2115
  },
2116
2116
  onFailure(_, w) {
2117
- const T = _;
2118
- T.status = w.status, T.response = w.errormsg, n && n(T);
2117
+ const b = _;
2118
+ b.status = w.status, b.response = w.errormsg, n && n(b);
2119
2119
  }
2120
2120
  });
2121
2121
  };
@@ -2237,14 +2237,14 @@ function ft(e, t, s = void 0, n = void 0) {
2237
2237
  );
2238
2238
  }
2239
2239
  function mt(e, t = void 0, s = void 0) {
2240
- e.tenant && b(e, (n) => {
2240
+ e.tenant && T(e, (n) => {
2241
2241
  console.log("serviceUrls", n);
2242
2242
  const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2243
2243
  return t && t(i), i;
2244
2244
  });
2245
2245
  }
2246
2246
  function gt(e, t = void 0, s = void 0) {
2247
- e.tenant && b(e, (n) => {
2247
+ e.tenant && T(e, (n) => {
2248
2248
  console.log("serviceUrls", n);
2249
2249
  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
2250
  m(o, {
@@ -2276,7 +2276,7 @@ function ht(e, t = void 0, s = void 0) {
2276
2276
  }
2277
2277
  }
2278
2278
  async function yt(e, t, s = void 0, n = void 0) {
2279
- e.tenant && b(e, (i) => {
2279
+ e.tenant && T(e, (i) => {
2280
2280
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2281
2281
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2282
2282
  method: "POST"
@@ -2288,7 +2288,7 @@ async function yt(e, t, s = void 0, n = void 0) {
2288
2288
  });
2289
2289
  }
2290
2290
  async function St(e, t, s = void 0, n = void 0) {
2291
- e.tenant && b(e, (i) => {
2291
+ e.tenant && T(e, (i) => {
2292
2292
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2293
2293
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2294
2294
  method: "GET"
@@ -2324,7 +2324,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
2324
2324
  }
2325
2325
  }
2326
2326
  async function Ct(e, t, s, n, i = void 0, r = void 0) {
2327
- e.tenant && b(e, (o) => {
2327
+ e.tenant && T(e, (o) => {
2328
2328
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2329
2329
  const a = e.tenant.toLowerCase();
2330
2330
  fetch(
@@ -2339,24 +2339,24 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
2339
2339
  });
2340
2340
  });
2341
2341
  }
2342
- async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
2343
- e.tenant && b(e, (a) => {
2344
- a.services.find((d) => d.id === "businessprocess")?.url + "";
2345
- const c = e.tenant.toLowerCase();
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();
2346
2346
  fetch(
2347
- `https://api.uixhome.fr/${c}/iterop/businesstable/patch/${s}/rows?t=${t}&rowsToAdd=${n}&rowsToRemove=${i}`,
2347
+ `https://api.uixhome.fr/${d}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${c}`,
2348
2348
  {
2349
2349
  method: "POST"
2350
2350
  }
2351
- ).then((d) => d.json()).then((d) => {
2352
- r && r(d);
2353
- }).catch((d) => {
2354
- o && o(d);
2351
+ ).then((p) => p.json()).then((p) => {
2352
+ r && r(p);
2353
+ }).catch((p) => {
2354
+ o && o(p);
2355
2355
  });
2356
2356
  });
2357
2357
  }
2358
- async function bt(e, t, s, n = void 0, i = void 0) {
2359
- e.tenant && b(e, (r) => {
2358
+ async function Tt(e, t, s, n = void 0, i = void 0) {
2359
+ e.tenant && T(e, (r) => {
2360
2360
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2361
2361
  const o = e.tenant.toLowerCase();
2362
2362
  fetch(
@@ -2372,7 +2372,7 @@ async function bt(e, t, s, n = void 0, i = void 0) {
2372
2372
  });
2373
2373
  }
2374
2374
  async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2375
- e.tenant && b(e, (a) => {
2375
+ e.tenant && T(e, (a) => {
2376
2376
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2377
2377
  const c = e.tenant.toLowerCase();
2378
2378
  fetch(
@@ -2388,7 +2388,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2388
2388
  });
2389
2389
  }
2390
2390
  async function $t(e, t, s, n, i = void 0, r = void 0) {
2391
- e.tenant && b(e, (o) => {
2391
+ e.tenant && T(e, (o) => {
2392
2392
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2393
2393
  const a = e.tenant.toLowerCase();
2394
2394
  fetch(
@@ -2499,7 +2499,7 @@ export {
2499
2499
  M as _3DSpace_file_update,
2500
2500
  ee as _3DSpace_file_update_csr,
2501
2501
  Pe as _3DSpace_file_url_csr,
2502
- k as _3DSpace_get_csrf,
2502
+ A as _3DSpace_get_csrf,
2503
2503
  L as _3DSpace_get_docInfo,
2504
2504
  ne as _3DSpace_get_downloadTicket_multidoc,
2505
2505
  xe as _3DSpace_get_multiDocInfo,
@@ -2529,9 +2529,9 @@ export {
2529
2529
  P as _3DSwym_sendMessageData,
2530
2530
  ve as _AppMngt_get_info_user,
2531
2531
  $e as _AppMngt_get_users,
2532
- Tt as _Iterop_AddOrRemoveRows,
2532
+ bt as _Iterop_AddOrRemoveRows,
2533
2533
  gt as _Iterop_Auth_CAS,
2534
- bt as _Iterop_GetOneDependencyTable,
2534
+ Tt as _Iterop_GetOneDependencyTable,
2535
2535
  yt as _Iterop_ListUsers,
2536
2536
  Ot as _Iterop_PatchDependencyTable,
2537
2537
  $t as _Iterop_PutDependencyTable,
@@ -2541,9 +2541,9 @@ export {
2541
2541
  ht as _Iterop_jwtUser,
2542
2542
  Ct as _Iterop_runProcess,
2543
2543
  Y as _getPlateformInfos,
2544
- Te as _getPlatformServices,
2545
- b as _getServiceUrl,
2546
- be as _getServiceUrl_3DPassport,
2544
+ be as _getPlatformServices,
2545
+ T as _getServiceUrl,
2546
+ Te as _getServiceUrl_3DPassport,
2547
2547
  mt as _getServiceUrl_Iterop,
2548
2548
  m as _httpCallAuthenticated,
2549
2549
  _e as _setDraggable,
@@ -2555,7 +2555,7 @@ export {
2555
2555
  V as couleurs,
2556
2556
  Ne as createUserGroups,
2557
2557
  se as dataMixing,
2558
- ke as deleteUserGroups,
2558
+ Ae as deleteUserGroups,
2559
2559
  he as findAdresse,
2560
2560
  Ve as getAllContextSecurity,
2561
2561
  H as getCSRFToken,
@@ -2567,7 +2567,7 @@ export {
2567
2567
  ze as getDatasFrom3DSpace,
2568
2568
  Xe as getDownloadDocument,
2569
2569
  et as getInfoDocTags,
2570
- Ae as getUserGroupsList,
2570
+ ke as getUserGroupsList,
2571
2571
  q as getUsersGroupRules,
2572
2572
  qe as get_3DSpace_csrf,
2573
2573
  Fe as patchUserGroups,