@beam3_dev/api_module 0.0.270 → 0.0.271

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 ke(e, t, s = void 0, n = void 0) {
320
+ function je(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 je(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,*/*"
@@ -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 k(e, t = void 0, s = void 0) {
585
+ function j(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
- k(
947
+ j(
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
- k(
1327
+ j(
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
- k(e, t, (r) => {
1345
+ j(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 j = [];
1379
+ const k = [];
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, j.push(i.data), s && s(j);
1433
+ r.find((o) => o.objectID === i.objectId).data = i.data, J = r, k.push(i.data), s && s(k);
1434
1434
  },
1435
1435
  (i) => {
1436
1436
  n && (n(i), console.log(i));
@@ -2314,23 +2314,21 @@ function ht(e, t = void 0, s = void 0) {
2314
2314
  function yt(e, t = void 0, s = void 0) {
2315
2315
  return new Promise((n, i) => {
2316
2316
  try {
2317
- const { _3DDashboard: r, _3DSwym: o } = e;
2318
- let a;
2319
- if (console.log("_3DSwym_get_currentUser", e), r) {
2320
- const c = r + "/api/users/current";
2321
- m(c, {
2317
+ let r;
2318
+ if (e._3DDashboard) {
2319
+ const o = e._3DDashboard + "/api/users/current";
2320
+ console.log("_3DSwym_get_currentUser | url", o), m(o, {
2322
2321
  method: "GET",
2323
- onComplete(d, u, p) {
2324
- console.log("_3DSwym_get_currentUser | response", d);
2325
- const f = JSON.parse(d);
2326
- f.first_name = f.firstName, f.last_name = f.lastName, a = f, n(f);
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);
2327
2325
  },
2328
- onFailure(d) {
2329
- i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", d);
2326
+ onFailure(a) {
2327
+ i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2330
2328
  }
2331
2329
  });
2332
2330
  }
2333
- a ? n(a) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2331
+ r ? n(r) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2334
2332
  } catch (r) {
2335
2333
  i("ERROR | _3DSwym_get_currentUser => ", r);
2336
2334
  }
@@ -2549,7 +2547,7 @@ async function Rt(e, t, s, n, i = void 0, r = void 0) {
2549
2547
  });
2550
2548
  }
2551
2549
  }
2552
- async function kt(e, t, s, n = void 0, i = void 0) {
2550
+ async function jt(e, t, s, n = void 0, i = void 0) {
2553
2551
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2554
2552
  const r = e.tenant.toLowerCase();
2555
2553
  fetch(
@@ -2564,7 +2562,7 @@ async function kt(e, t, s, n = void 0, i = void 0) {
2564
2562
  });
2565
2563
  }
2566
2564
  }
2567
- async function jt(e, t, s, n, i, r = void 0, o = void 0) {
2565
+ async function kt(e, t, s, n, i, r = void 0, o = void 0) {
2568
2566
  if (e.tenant) {
2569
2567
  const a = e.tenant.toLowerCase();
2570
2568
  fetch(
@@ -2712,7 +2710,7 @@ export {
2712
2710
  ae as _3DSpace_get_downloadTicket_multidoc,
2713
2711
  Pe as _3DSpace_get_multiDocInfo,
2714
2712
  F as _3DSpace_get_securityContexts,
2715
- k as _3DSpace_get_ticket,
2713
+ j as _3DSpace_get_ticket,
2716
2714
  Xe as _3DSpace_lifecycle_changeRevision,
2717
2715
  Ke as _3DSpace_lifecycle_changeState,
2718
2716
  Be as _3DSpace_lifecycle_getGraph,
@@ -2742,9 +2740,9 @@ export {
2742
2740
  Ue as _AppMngt_get_users,
2743
2741
  Nt as _Iterop_AddOrRemoveRows,
2744
2742
  Ct as _Iterop_Auth_CAS,
2745
- kt as _Iterop_GetOneDependencyTable,
2743
+ jt as _Iterop_GetOneDependencyTable,
2746
2744
  vt as _Iterop_GetOneList,
2747
- jt as _Iterop_PatchDependencyTable,
2745
+ kt as _Iterop_PatchDependencyTable,
2748
2746
  At as _Iterop_PutDependencyTable,
2749
2747
  It as _Iterop_businessTableSearchInRows,
2750
2748
  Ft as _Iterop_createBusinessTable,
@@ -2774,14 +2772,14 @@ export {
2774
2772
  Ye as getAllContextSecurity,
2775
2773
  H as getCSRFToken,
2776
2774
  _e as getCommunes,
2777
- ke as getComplementUG,
2775
+ je as getComplementUG,
2778
2776
  He as getDataFrom3DSpace,
2779
2777
  we as getDataFromGouvFr,
2780
2778
  et as getDatasByTenant,
2781
2779
  tt as getDatasFrom3DSpace,
2782
2780
  ze as getDownloadDocument,
2783
2781
  it as getInfoDocTags,
2784
- je as getUserGroupsList,
2782
+ ke as getUserGroupsList,
2785
2783
  Y as getUsersGroupRules,
2786
2784
  Ze as get_3DSpace_csrf,
2787
2785
  ve as patchUserGroups,