@beam3_dev/api_module 0.0.231 → 0.0.233

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
@@ -383,13 +383,13 @@ function Ue(e, t = void 0, n = void 0) {
383
383
  console.log(u);
384
384
  }
385
385
  }
386
- function xe(e, t) {
386
+ function je(e, t) {
387
387
  const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
388
388
  m(i, {
389
389
  method: "DELETE"
390
390
  });
391
391
  }
392
- function je(e, t, n, s = void 0, i = void 0) {
392
+ function xe(e, t, n, s = void 0, i = void 0) {
393
393
  const { space: r, tenant: o } = e, a = {
394
394
  URITI: "/3drdfpersist/resources/v1/template-instances",
395
395
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -1344,7 +1344,7 @@ function ze(e, t, n, s = void 0, i = void 0) {
1344
1344
  );
1345
1345
  }
1346
1346
  let M, J;
1347
- const x = [];
1347
+ const j = [];
1348
1348
  async function Qe(e, t = void 0, n = void 0) {
1349
1349
  e.objID && e.objID !== "" ? F(
1350
1350
  e,
@@ -1398,7 +1398,7 @@ function oe(e, t, n = void 0, s = void 0) {
1398
1398
  M,
1399
1399
  (i) => {
1400
1400
  const r = [...t];
1401
- r.find((o) => o.objectID === i.objectId).data = i.data, J = r, x.push(i.data), n && n(x);
1401
+ r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data), n && n(j);
1402
1402
  },
1403
1403
  (i) => {
1404
1404
  s && (s(i), console.log(i));
@@ -1808,7 +1808,7 @@ function ct(e, t, n = void 0, s = void 0) {
1808
1808
  le(
1809
1809
  c.users,
1810
1810
  (p) => {
1811
- p !== void 0 && (d.id_msg = p.id, u = !0, j(e, d));
1811
+ p !== void 0 && (d.id_msg = p.id, u = !0, x(e, d));
1812
1812
  },
1813
1813
  (p) => {
1814
1814
  u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
@@ -1826,7 +1826,7 @@ function ct(e, t, n = void 0, s = void 0) {
1826
1826
  type: "json",
1827
1827
  onComplete(f, l, g) {
1828
1828
  const h = f;
1829
- h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, j(e, d);
1829
+ h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, x(e, d);
1830
1830
  },
1831
1831
  onFailure(f, l, g) {
1832
1832
  const h = f;
@@ -1865,7 +1865,7 @@ function le(e, t, n, s) {
1865
1865
  });
1866
1866
  });
1867
1867
  }
1868
- function j(e, t, n = void 0, s = void 0) {
1868
+ function x(e, t, n = void 0, s = void 0) {
1869
1869
  const i = {
1870
1870
  base: e._3DSwym,
1871
1871
  uri: "/api/community",
@@ -2247,6 +2247,8 @@ function gt(e, t = void 0, n = void 0) {
2247
2247
  m(c, {
2248
2248
  method: "POST",
2249
2249
  headers: {
2250
+ "Content-type": "application/json;charset=UTF-8",
2251
+ Accept: "application/json",
2250
2252
  "X-DS-SWYM-CSRFTOKEN": r
2251
2253
  },
2252
2254
  data: JSON.stringify({
@@ -2254,6 +2256,7 @@ function gt(e, t = void 0, n = void 0) {
2254
2256
  content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
2255
2257
  timeout: 3e4
2256
2258
  }),
2259
+ type: "json",
2257
2260
  onComplete(d) {
2258
2261
  t && t(d);
2259
2262
  },
@@ -2518,11 +2521,11 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
2518
2521
  }
2519
2522
  }
2520
2523
  //!SECTION
2521
- function xt(e) {
2524
+ function jt(e) {
2522
2525
  const t = "Hello " + e;
2523
2526
  return console.log(t), t;
2524
2527
  }
2525
- function jt(e, t = void 0, n = void 0) {
2528
+ function xt(e, t = void 0, n = void 0) {
2526
2529
  return console.log("credentials", e), new Promise((s) => {
2527
2530
  if (e.token === "" && O(e), !e.space || e.space === "") {
2528
2531
  const o = q();
@@ -2603,7 +2606,7 @@ function jt(e, t = void 0, n = void 0) {
2603
2606
  }
2604
2607
  export {
2605
2608
  B as UUID,
2606
- jt as _3DSearch_usersGroup,
2609
+ xt as _3DSearch_usersGroup,
2607
2610
  Je as _3DSpace_Create_Doc,
2608
2611
  Me as _3DSpace_Update_Doc,
2609
2612
  Xe as _3DSpace_bookmark_addSubsciptions,
@@ -2642,7 +2645,7 @@ export {
2642
2645
  yt as _3DSwym_get_findUser,
2643
2646
  ut as _3DSwym_postIdea,
2644
2647
  dt as _3DSwym_postIdeaTemplate,
2645
- j as _3DSwym_sendMessageData,
2648
+ x as _3DSwym_sendMessageData,
2646
2649
  Fe as _AppMngt_get_info_user,
2647
2650
  ve as _AppMngt_get_users,
2648
2651
  $t as _Iterop_AddOrRemoveRows,
@@ -2674,7 +2677,7 @@ export {
2674
2677
  V as couleurs,
2675
2678
  ke as createUserGroups,
2676
2679
  oe as dataMixing,
2677
- xe as deleteUserGroups,
2680
+ je as deleteUserGroups,
2678
2681
  _e as findAdresse,
2679
2682
  qe as getAllContextSecurity,
2680
2683
  H as getCSRFToken,
@@ -2689,12 +2692,12 @@ export {
2689
2692
  Ue as getUserGroupsList,
2690
2693
  Y as getUsersGroupRules,
2691
2694
  Qe as get_3DSpace_csrf,
2692
- je as patchUserGroups,
2695
+ xe as patchUserGroups,
2693
2696
  Pe as patchUserGroupsControl,
2694
2697
  ze as pushDataIn3DSpace,
2695
2698
  Re as readUserGroupControl,
2696
2699
  nt as removeTagToDoc,
2697
- xt as sayHello,
2700
+ jt as sayHello,
2698
2701
  Ce as updateEvent
2699
2702
  };
2700
2703
  //# sourceMappingURL=wb3Api.js.map