@beam3_dev/api_module 0.0.271 → 0.0.272

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
@@ -317,7 +317,7 @@ function Re(e, t, s = void 0, n = void 0) {
317
317
  }
318
318
  });
319
319
  }
320
- function je(e, t, s = void 0, n = void 0) {
320
+ function ke(e, t, s = void 0, n = void 0) {
321
321
  const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
322
322
  m(d, {
323
323
  opts: {
@@ -352,7 +352,7 @@ function Y(e, t = void 0, s = void 0) {
352
352
  }
353
353
  });
354
354
  }
355
- function ke(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,*/*"
@@ -582,7 +582,7 @@ function b(e, t = void 0, s = void 0) {
582
582
  } else
583
583
  s && s("ERROR : url du 3DSpace non défini.");
584
584
  }
585
- function j(e, t = void 0, s = void 0) {
585
+ function k(e, t = void 0, s = void 0) {
586
586
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
587
  U(
588
588
  e,
@@ -944,7 +944,7 @@ async function L(e, t = void 0, s = void 0) {
944
944
  console.log("☠️ error => ", n);
945
945
  }
946
946
  ), new Promise((n, i) => {
947
- j(
947
+ k(
948
948
  e,
949
949
  (r) => {
950
950
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
@@ -1324,7 +1324,7 @@ function Ye(e, t = void 0, s = void 0) {
1324
1324
  });
1325
1325
  }
1326
1326
  function He(e, t, s, n) {
1327
- j(
1327
+ k(
1328
1328
  e.space,
1329
1329
  t,
1330
1330
  (i) => {
@@ -1342,7 +1342,7 @@ function He(e, t, s, n) {
1342
1342
  }
1343
1343
  async function ze(e, t, s = void 0, n = void 0) {
1344
1344
  return new Promise((i) => {
1345
- j(e, t, (r) => {
1345
+ k(e, t, (r) => {
1346
1346
  m(r, {
1347
1347
  onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
1348
1348
  onFailure: (o, a, c) => {
@@ -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 k = [];
1379
+ const j = [];
1380
1380
  async function Ze(e, t = void 0, s = void 0) {
1381
1381
  e.objID && e.objID !== "" ? U(
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, k.push(i.data), s && s(k);
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));
@@ -2320,8 +2320,11 @@ function yt(e, t = void 0, s = void 0) {
2320
2320
  console.log("_3DSwym_get_currentUser | url", o), m(o, {
2321
2321
  method: "GET",
2322
2322
  onComplete(a, c, d) {
2323
- const u = a.json();
2324
- u.first_name = u.firstName, u.last_name = u.lastName, console.log("_3DSwym_get_currentUser | info", u), r = u, n(u);
2323
+ let u = {};
2324
+ const p = String(a).replace(/'/g, '"');
2325
+ Object.keys(p).forEach((f) => {
2326
+ p[f] === "firstName" && (u.first_name = p.firstName);
2327
+ }), u.first_name = u.firstName, u.last_name = u.lastName, console.log("_3DSwym_get_currentUser | info", u), r = u, n(u);
2325
2328
  },
2326
2329
  onFailure(a) {
2327
2330
  i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
@@ -2547,7 +2550,7 @@ async function Rt(e, t, s, n, i = void 0, r = void 0) {
2547
2550
  });
2548
2551
  }
2549
2552
  }
2550
- async function jt(e, t, s, n = void 0, i = void 0) {
2553
+ async function kt(e, t, s, n = void 0, i = void 0) {
2551
2554
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2552
2555
  const r = e.tenant.toLowerCase();
2553
2556
  fetch(
@@ -2562,7 +2565,7 @@ async function jt(e, t, s, n = void 0, i = void 0) {
2562
2565
  });
2563
2566
  }
2564
2567
  }
2565
- async function kt(e, t, s, n, i, r = void 0, o = void 0) {
2568
+ async function jt(e, t, s, n, i, r = void 0, o = void 0) {
2566
2569
  if (e.tenant) {
2567
2570
  const a = e.tenant.toLowerCase();
2568
2571
  fetch(
@@ -2710,7 +2713,7 @@ export {
2710
2713
  ae as _3DSpace_get_downloadTicket_multidoc,
2711
2714
  Pe as _3DSpace_get_multiDocInfo,
2712
2715
  F as _3DSpace_get_securityContexts,
2713
- j as _3DSpace_get_ticket,
2716
+ k as _3DSpace_get_ticket,
2714
2717
  Xe as _3DSpace_lifecycle_changeRevision,
2715
2718
  Ke as _3DSpace_lifecycle_changeState,
2716
2719
  Be as _3DSpace_lifecycle_getGraph,
@@ -2740,9 +2743,9 @@ export {
2740
2743
  Ue as _AppMngt_get_users,
2741
2744
  Nt as _Iterop_AddOrRemoveRows,
2742
2745
  Ct as _Iterop_Auth_CAS,
2743
- jt as _Iterop_GetOneDependencyTable,
2746
+ kt as _Iterop_GetOneDependencyTable,
2744
2747
  vt as _Iterop_GetOneList,
2745
- kt as _Iterop_PatchDependencyTable,
2748
+ jt as _Iterop_PatchDependencyTable,
2746
2749
  At as _Iterop_PutDependencyTable,
2747
2750
  It as _Iterop_businessTableSearchInRows,
2748
2751
  Ft as _Iterop_createBusinessTable,
@@ -2772,14 +2775,14 @@ export {
2772
2775
  Ye as getAllContextSecurity,
2773
2776
  H as getCSRFToken,
2774
2777
  _e as getCommunes,
2775
- je as getComplementUG,
2778
+ ke as getComplementUG,
2776
2779
  He as getDataFrom3DSpace,
2777
2780
  we as getDataFromGouvFr,
2778
2781
  et as getDatasByTenant,
2779
2782
  tt as getDatasFrom3DSpace,
2780
2783
  ze as getDownloadDocument,
2781
2784
  it as getInfoDocTags,
2782
- ke as getUserGroupsList,
2785
+ je as getUserGroupsList,
2783
2786
  Y as getUsersGroupRules,
2784
2787
  Ze as get_3DSpace_csrf,
2785
2788
  ve as patchUserGroups,