@beam3_dev/api_module 0.0.266 → 0.0.267

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
@@ -284,11 +284,11 @@ function Ue(e, t, s = void 0, n = void 0) {
284
284
  }
285
285
  });
286
286
  }
287
- const j = {
287
+ const R = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
291
- function je(e, t, s = void 0, n = void 0) {
291
+ function Re(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 je(e, t, s = void 0, n = void 0) {
305
305
  };
306
306
  m(a, {
307
307
  method: "POST",
308
- headers: j,
308
+ headers: R,
309
309
  data: JSON.stringify(c),
310
310
  onComplete(d) {
311
311
  s && s(JSON.parse(d));
@@ -352,7 +352,7 @@ function q(e, t = void 0, s = void 0) {
352
352
  }
353
353
  });
354
354
  }
355
- function Re(e, t = void 0, s = void 0) {
355
+ function je(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,*/*"
@@ -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: j,
403
+ headers: R,
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: j,
419
+ headers: R,
420
420
  data: JSON.stringify(s),
421
421
  type: "json",
422
422
  onComplete(d) {
@@ -427,7 +427,7 @@ function xe(e, t, s, n = void 0, i = void 0) {
427
427
  }
428
428
  });
429
429
  }
430
- function Pe(e, t, s = void 0, n = void 0) {
430
+ function De(e, t, s = void 0, n = void 0) {
431
431
  const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
432
432
  m(o, {
433
433
  opts: {
@@ -499,7 +499,7 @@ var Q = function(e, t, s, n) {
499
499
  };
500
500
  I.decode = I.parse = Q;
501
501
  I.encode = I.stringify = Z;
502
- async function P(e, t = void 0, s = void 0, n = void 0) {
502
+ async function D(e, t = void 0, s = void 0, n = void 0) {
503
503
  const i = e.space;
504
504
  if (t === void 0) {
505
505
  console.log("Le paramètre docid est obligatoire");
@@ -516,7 +516,7 @@ async function P(e, t = void 0, s = void 0, n = void 0) {
516
516
  }
517
517
  });
518
518
  }
519
- async function De(e, t = void 0, s = void 0, n = void 0) {
519
+ async function Pe(e, t = void 0, s = void 0, n = void 0) {
520
520
  const i = e.space;
521
521
  if (t === void 0) {
522
522
  console.log("Le paramètre docids est obligatoire");
@@ -628,7 +628,7 @@ function Le(e, t, s = void 0, n = void 0, i = void 0) {
628
628
  }
629
629
  });
630
630
  }
631
- function D(e, t, s, n, i, r = void 0, o = void 0) {
631
+ function P(e, t, s, n, i, r = void 0, o = void 0) {
632
632
  const a = () => ee(
633
633
  e,
634
634
  t,
@@ -735,12 +735,12 @@ async function Me(e, t, s = void 0, n = void 0) {
735
735
  });
736
736
  }
737
737
  async function Je(e, t, s, n = void 0, i = void 0) {
738
- e.space, e.token, e.ctx, P(
738
+ e.space, e.token, e.ctx, D(
739
739
  e,
740
740
  t,
741
741
  (r) => {
742
742
  const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
743
- D(
743
+ P(
744
744
  e,
745
745
  t,
746
746
  o,
@@ -1359,7 +1359,7 @@ function Qe(e, t, s, n = void 0, i = void 0) {
1359
1359
  s,
1360
1360
  (o) => {
1361
1361
  const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1362
- D(
1362
+ P(
1363
1363
  e,
1364
1364
  s,
1365
1365
  a,
@@ -1376,7 +1376,7 @@ function Qe(e, t, s, n = void 0, i = void 0) {
1376
1376
  );
1377
1377
  }
1378
1378
  let M, J;
1379
- const R = [];
1379
+ const j = [];
1380
1380
  async function Ze(e, t = void 0, s = void 0) {
1381
1381
  e.objID && e.objID !== "" ? F(
1382
1382
  e,
@@ -1430,7 +1430,7 @@ function oe(e, t, s = void 0, n = void 0) {
1430
1430
  M,
1431
1431
  (i) => {
1432
1432
  const r = [...t];
1433
- r.find((o) => o.objectID === i.objectId).data = i.data, J = r, R.push(i.data), s && s(R);
1433
+ r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data), s && s(j);
1434
1434
  },
1435
1435
  (i) => {
1436
1436
  n && (n(i), console.log(i));
@@ -1488,7 +1488,7 @@ function nt(e, t, s = void 0, n = void 0) {
1488
1488
  JSON.parse(f);
1489
1489
  const l = {};
1490
1490
  setTimeout(() => {
1491
- P(
1491
+ D(
1492
1492
  e,
1493
1493
  o,
1494
1494
  (g) => {
@@ -2315,7 +2315,7 @@ function yt(e, t = void 0, s = void 0) {
2315
2315
  return new Promise((n, i) => {
2316
2316
  try {
2317
2317
  const { _3DDashboard: r, _3DSwym: o } = e;
2318
- let a = null;
2318
+ let a;
2319
2319
  if (o) {
2320
2320
  const c = e._3DSwym + "/api/user/getcurrent/";
2321
2321
  w(e, (d) => {
@@ -2341,7 +2341,8 @@ function yt(e, t = void 0, s = void 0) {
2341
2341
  });
2342
2342
  }
2343
2343
  a ? n(a) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2344
- } catch {
2344
+ } catch (r) {
2345
+ i("ERROR | _3DSwym_get_currentUser => ", r);
2345
2346
  }
2346
2347
  });
2347
2348
  }
@@ -2543,7 +2544,7 @@ async function Ut(e, t, s, n = void 0, i = void 0) {
2543
2544
  });
2544
2545
  }
2545
2546
  }
2546
- async function jt(e, t, s, n, i = void 0, r = void 0) {
2547
+ async function Rt(e, t, s, n, i = void 0, r = void 0) {
2547
2548
  if (e.tenant) {
2548
2549
  const o = e.tenant.toLowerCase();
2549
2550
  fetch(
@@ -2573,7 +2574,7 @@ async function kt(e, t, s, n = void 0, i = void 0) {
2573
2574
  });
2574
2575
  }
2575
2576
  }
2576
- async function Rt(e, t, s, n, i, r = void 0, o = void 0) {
2577
+ async function jt(e, t, s, n, i, r = void 0, o = void 0) {
2577
2578
  if (e.tenant) {
2578
2579
  const a = e.tenant.toLowerCase();
2579
2580
  fetch(
@@ -2624,7 +2625,7 @@ function xt(e) {
2624
2625
  const t = "Hello " + e;
2625
2626
  return console.log(t), t;
2626
2627
  }
2627
- function Pt(e, t = void 0, s = void 0) {
2628
+ function Dt(e, t = void 0, s = void 0) {
2628
2629
  return console.log("credentials", e), new Promise((n) => {
2629
2630
  if (e.token === "" && b(e), !e.space || e.space === "") {
2630
2631
  const o = Y();
@@ -2705,7 +2706,7 @@ function Pt(e, t = void 0, s = void 0) {
2705
2706
  }
2706
2707
  export {
2707
2708
  B as UUID,
2708
- Pt as _3DSearch_usersGroup,
2709
+ Dt as _3DSearch_usersGroup,
2709
2710
  Ge as _3DSpace_Create_Doc,
2710
2711
  Je as _3DSpace_Update_Doc,
2711
2712
  Ye as _3DSpace_bookmark_addSubsciptions,
@@ -2713,13 +2714,13 @@ export {
2713
2714
  b as _3DSpace_csrf,
2714
2715
  L as _3DSpace_download_doc,
2715
2716
  ie as _3DSpace_download_multidoc,
2716
- D as _3DSpace_file_update,
2717
+ P as _3DSpace_file_update,
2717
2718
  ee as _3DSpace_file_update_csr,
2718
2719
  Le as _3DSpace_file_url_csr,
2719
2720
  F as _3DSpace_get_csrf,
2720
- P as _3DSpace_get_docInfo,
2721
+ D as _3DSpace_get_docInfo,
2721
2722
  ae as _3DSpace_get_downloadTicket_multidoc,
2722
- De as _3DSpace_get_multiDocInfo,
2723
+ Pe as _3DSpace_get_multiDocInfo,
2723
2724
  U as _3DSpace_get_securityContexts,
2724
2725
  k as _3DSpace_get_ticket,
2725
2726
  Xe as _3DSpace_lifecycle_changeRevision,
@@ -2753,7 +2754,7 @@ export {
2753
2754
  Ct as _Iterop_Auth_CAS,
2754
2755
  kt as _Iterop_GetOneDependencyTable,
2755
2756
  At as _Iterop_GetOneList,
2756
- Rt as _Iterop_PatchDependencyTable,
2757
+ jt as _Iterop_PatchDependencyTable,
2757
2758
  vt as _Iterop_PutDependencyTable,
2758
2759
  It as _Iterop_businessTableSearchInRows,
2759
2760
  Ut as _Iterop_createBusinessTable,
@@ -2761,7 +2762,7 @@ export {
2761
2762
  Ot as _Iterop_getOneBusinessTable,
2762
2763
  $t as _Iterop_getOneBusinessTableRows,
2763
2764
  Tt as _Iterop_jwtUser,
2764
- jt as _Iterop_runProcess,
2765
+ Rt as _Iterop_runProcess,
2765
2766
  Ft as _Iterop_updateBusinessTable,
2766
2767
  Y as _getPlateformInfos,
2767
2768
  $e as _getPlatformServices,
@@ -2776,7 +2777,7 @@ export {
2776
2777
  X as chunkArray,
2777
2778
  Ie as compass_getListAdditionalApps,
2778
2779
  W as couleurs,
2779
- je as createUserGroups,
2780
+ Re as createUserGroups,
2780
2781
  oe as dataMixing,
2781
2782
  ve as deleteUserGroups,
2782
2783
  Se as findAdresse,
@@ -2790,13 +2791,13 @@ export {
2790
2791
  tt as getDatasFrom3DSpace,
2791
2792
  ze as getDownloadDocument,
2792
2793
  it as getInfoDocTags,
2793
- Re as getUserGroupsList,
2794
+ je as getUserGroupsList,
2794
2795
  q as getUsersGroupRules,
2795
2796
  Ze as get_3DSpace_csrf,
2796
2797
  Ae as patchUserGroups,
2797
2798
  xe as patchUserGroupsControl,
2798
2799
  Qe as pushDataIn3DSpace,
2799
- Pe as readUserGroupControl,
2800
+ De as readUserGroupControl,
2800
2801
  st as removeTagToDoc,
2801
2802
  xt as sayHello,
2802
2803
  Ce as updateEvent