@beam3_dev/api_module 0.0.267 → 0.0.268

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
@@ -271,7 +271,7 @@ function Fe(e, t = void 0, s = void 0) {
271
271
  }
272
272
  });
273
273
  }
274
- function Ue(e, t, s = void 0, n = void 0) {
274
+ function Re(e, t, s = void 0, n = void 0) {
275
275
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
276
276
  m(i, {
277
277
  onComplete(r, o, a) {
@@ -284,11 +284,11 @@ function Ue(e, t, s = void 0, n = void 0) {
284
284
  }
285
285
  });
286
286
  }
287
- const R = {
287
+ const U = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
291
- function Re(e, t, s = void 0, n = void 0) {
291
+ function Ue(e, t, s = void 0, n = void 0) {
292
292
  const { space: i, currentUser: r } = e, a = `${i}${{
293
293
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
294
294
  }.URIUGr}`, c = {
@@ -305,7 +305,7 @@ function Re(e, t, s = void 0, n = void 0) {
305
305
  };
306
306
  m(a, {
307
307
  method: "POST",
308
- headers: R,
308
+ headers: U,
309
309
  data: JSON.stringify(c),
310
310
  onComplete(d) {
311
311
  s && s(JSON.parse(d));
@@ -400,7 +400,7 @@ function Ae(e, t, s, n = void 0, i = void 0) {
400
400
  OPTsTenant: `tenant=dstenant:${o}`
401
401
  }, c = s, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
402
402
  m(d, {
403
- headers: R,
403
+ headers: U,
404
404
  method: "PATCH",
405
405
  data: u,
406
406
  type: "json",
@@ -416,7 +416,7 @@ function xe(e, t, s, n = void 0, i = void 0) {
416
416
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
417
417
  m(a, {
418
418
  method: "PATCH",
419
- headers: R,
419
+ headers: U,
420
420
  data: JSON.stringify(s),
421
421
  type: "json",
422
422
  onComplete(d) {
@@ -879,7 +879,7 @@ function se(e, t, s, n = void 0, i = void 0, r = void 0) {
879
879
  }
880
880
  });
881
881
  }
882
- function U(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
882
+ function R(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
883
883
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
884
884
  m(a, {
885
885
  method: "GET",
@@ -1114,7 +1114,7 @@ function Be(e, t, s = void 0, n = void 0) {
1114
1114
  return new Promise((i) => {
1115
1115
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1116
1116
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1117
- U(
1117
+ R(
1118
1118
  e.space,
1119
1119
  "ESPACE COMMUN",
1120
1120
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1155,7 +1155,7 @@ function We(e, t, s = void 0, n = void 0) {
1155
1155
  return new Promise((i) => {
1156
1156
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1157
1157
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1158
- U(
1158
+ R(
1159
1159
  e.space,
1160
1160
  "ESPACE COMMUN",
1161
1161
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1202,7 +1202,7 @@ function Xe(e, t, s, n = void 0, i = void 0) {
1202
1202
  return new Promise((r) => {
1203
1203
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1204
1204
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1205
- U(
1205
+ R(
1206
1206
  e.space,
1207
1207
  "ESPACE COMMUN",
1208
1208
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2337,6 +2337,9 @@ function yt(e, t = void 0, s = void 0) {
2337
2337
  onComplete(d, u, p) {
2338
2338
  const f = JSON.parse(d);
2339
2339
  f.first_name = f.firstName, f.last_name = f.lastName, a = f;
2340
+ },
2341
+ onFailure(d) {
2342
+ i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", d);
2340
2343
  }
2341
2344
  });
2342
2345
  }
@@ -2527,7 +2530,7 @@ async function Ft(e, t, s, n, i = void 0, r = void 0) {
2527
2530
  });
2528
2531
  }
2529
2532
  }
2530
- async function Ut(e, t, s, n = void 0, i = void 0) {
2533
+ async function Rt(e, t, s, n = void 0, i = void 0) {
2531
2534
  if (e.tenant) {
2532
2535
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
2533
2536
  s
@@ -2544,7 +2547,7 @@ async function Ut(e, t, s, n = void 0, i = void 0) {
2544
2547
  });
2545
2548
  }
2546
2549
  }
2547
- async function Rt(e, t, s, n, i = void 0, r = void 0) {
2550
+ async function Ut(e, t, s, n, i = void 0, r = void 0) {
2548
2551
  if (e.tenant) {
2549
2552
  const o = e.tenant.toLowerCase();
2550
2553
  fetch(
@@ -2631,7 +2634,7 @@ function Dt(e, t = void 0, s = void 0) {
2631
2634
  const o = Y();
2632
2635
  console.log("platformeInfo", o);
2633
2636
  }
2634
- U(
2637
+ R(
2635
2638
  e,
2636
2639
  "Common space",
2637
2640
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2721,7 +2724,7 @@ export {
2721
2724
  D as _3DSpace_get_docInfo,
2722
2725
  ae as _3DSpace_get_downloadTicket_multidoc,
2723
2726
  Pe as _3DSpace_get_multiDocInfo,
2724
- U as _3DSpace_get_securityContexts,
2727
+ R as _3DSpace_get_securityContexts,
2725
2728
  k as _3DSpace_get_ticket,
2726
2729
  Xe as _3DSpace_lifecycle_changeRevision,
2727
2730
  Ke as _3DSpace_lifecycle_changeState,
@@ -2748,7 +2751,7 @@ export {
2748
2751
  pt as _3DSwym_postIdea,
2749
2752
  ut as _3DSwym_postIdeaTemplate,
2750
2753
  v as _3DSwym_sendMessageData,
2751
- Ue as _AppMngt_get_info_user,
2754
+ Re as _AppMngt_get_info_user,
2752
2755
  Fe as _AppMngt_get_users,
2753
2756
  Nt as _Iterop_AddOrRemoveRows,
2754
2757
  Ct as _Iterop_Auth_CAS,
@@ -2757,12 +2760,12 @@ export {
2757
2760
  jt as _Iterop_PatchDependencyTable,
2758
2761
  vt as _Iterop_PutDependencyTable,
2759
2762
  It as _Iterop_businessTableSearchInRows,
2760
- Ut as _Iterop_createBusinessTable,
2763
+ Rt as _Iterop_createBusinessTable,
2761
2764
  bt as _Iterop_getAllBusinessTables,
2762
2765
  Ot as _Iterop_getOneBusinessTable,
2763
2766
  $t as _Iterop_getOneBusinessTableRows,
2764
2767
  Tt as _Iterop_jwtUser,
2765
- Rt as _Iterop_runProcess,
2768
+ Ut as _Iterop_runProcess,
2766
2769
  Ft as _Iterop_updateBusinessTable,
2767
2770
  Y as _getPlateformInfos,
2768
2771
  $e as _getPlatformServices,
@@ -2777,7 +2780,7 @@ export {
2777
2780
  X as chunkArray,
2778
2781
  Ie as compass_getListAdditionalApps,
2779
2782
  W as couleurs,
2780
- Re as createUserGroups,
2783
+ Ue as createUserGroups,
2781
2784
  oe as dataMixing,
2782
2785
  ve as deleteUserGroups,
2783
2786
  Se as findAdresse,