@beam3_dev/api_module 0.0.152 → 0.0.153

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
@@ -250,7 +250,7 @@ function be(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const k = {
253
+ const U = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,7 +271,7 @@ function Ne(e, t, n = void 0, s = void 0) {
271
271
  };
272
272
  m(i, {
273
273
  method: "POST",
274
- headers: k,
274
+ headers: U,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
@@ -366,7 +366,7 @@ function Ae(e, t, n, s = void 0, a = void 0) {
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = n, d = `${r}${i.URIUGr}/${t}`, p = JSON.stringify(c);
368
368
  m(d, {
369
- headers: k,
369
+ headers: U,
370
370
  method: "PATCH",
371
371
  data: p,
372
372
  type: "json",
@@ -378,11 +378,11 @@ function Ae(e, t, n, s = void 0, a = void 0) {
378
378
  }
379
379
  });
380
380
  }
381
- function Ue(e, t, n, s = void 0, a = void 0) {
381
+ function ke(e, t, n, s = void 0, a = void 0) {
382
382
  const { space: r } = e, i = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
383
  m(i, {
384
384
  method: "PATCH",
385
- headers: k,
385
+ headers: U,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -393,7 +393,7 @@ function Ue(e, t, n, s = void 0, a = void 0) {
393
393
  }
394
394
  });
395
395
  }
396
- function ke(e, t, n = void 0, s = void 0) {
396
+ function Ue(e, t, n = void 0, s = void 0) {
397
397
  const { space: a } = e, o = `${a}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
398
398
  m(o, {
399
399
  opts: {
@@ -595,20 +595,21 @@ function je(e, t, n, s = void 0, a = void 0) {
595
595
  });
596
596
  }
597
597
  function z(e, t, n, s, a, r = void 0, o = void 0) {
598
- A(
598
+ const i = () => q(
599
599
  e,
600
600
  t,
601
- (i) => {
602
- q(
603
- e,
604
- t,
605
- n,
606
- s,
607
- a,
608
- i.csrf.value,
609
- r,
610
- o
611
- );
601
+ n,
602
+ s,
603
+ a,
604
+ e.token,
605
+ r,
606
+ o
607
+ );
608
+ e.token ? i() : A(
609
+ e,
610
+ t,
611
+ (c) => {
612
+ e.token = c.csrf.value, i();
612
613
  }
613
614
  );
614
615
  }
@@ -687,7 +688,7 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
687
688
  data: d,
688
689
  onComplete(C) {
689
690
  if (c !== "" && i !== "") {
690
- const U = {
691
+ const k = {
691
692
  method: "POST",
692
693
  headers: {
693
694
  ENO_CSRF_TOKEN: i,
@@ -718,7 +719,7 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
718
719
  onComplete: y,
719
720
  onFailure: _
720
721
  };
721
- c !== "" && m(l.url_Post, U);
722
+ c !== "" && m(l.url_Post, k);
722
723
  } else
723
724
  console.warn("le store est vide");
724
725
  },
@@ -727,9 +728,9 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
727
728
  function y(C) {
728
729
  console.log("Success -- response ", C.data[0]), a && a(C);
729
730
  }
730
- function _(C, U) {
731
+ function _(C, k) {
731
732
  console.log("Erreur -- response ", C, `
732
- headers `, U), r && r(C);
733
+ headers `, k), r && r(C);
733
734
  }
734
735
  m(h.ticketURL, S);
735
736
  }
@@ -2274,9 +2275,9 @@ export {
2274
2275
  V as getUsersGroupRules,
2275
2276
  Be as get_3DSpace_csrf,
2276
2277
  Ae as patchUserGroups,
2277
- Ue as patchUserGroupsControl,
2278
+ ke as patchUserGroupsControl,
2278
2279
  We as pushDataIn3DSpace,
2279
- ke as readUserGroupControl,
2280
+ Ue as readUserGroupControl,
2280
2281
  ze as removeTagToDoc,
2281
2282
  mt as sayHello,
2282
2283
  he as updateEvent