@beam3_dev/api_module 0.0.231 → 0.0.232

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",
@@ -2049,7 +2049,7 @@ function pt(e, t, n = void 0, s = void 0) {
2049
2049
  });
2050
2050
  }
2051
2051
  function lt(e, t = void 0, n = void 0) {
2052
- const s = `${e._3DSwym}/api/idea/get`;
2052
+ const s = `${e._}/api/idea/get`;
2053
2053
  if (e.idPost === "") {
2054
2054
  const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2055
2055
  throw new Error(`Erreur sur cette requête : ${s}`, { cause: r });
@@ -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
  },
@@ -2263,7 +2266,12 @@ function gt(e, t = void 0, n = void 0) {
2263
2266
  }
2264
2267
  });
2265
2268
  } else
2266
- n && n({ status: "error", msg: "Credentials incomplet !", attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id", credentials: e });
2269
+ n && n({
2270
+ status: "error",
2271
+ msg: "Credentials incomplet !",
2272
+ attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id",
2273
+ credentials: e
2274
+ });
2267
2275
  }
2268
2276
  function ht(e, t = void 0, n = void 0) {
2269
2277
  const s = e._3DSwym + "/api/user/getcurrent/";
@@ -2518,11 +2526,11 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
2518
2526
  }
2519
2527
  }
2520
2528
  //!SECTION
2521
- function xt(e) {
2529
+ function jt(e) {
2522
2530
  const t = "Hello " + e;
2523
2531
  return console.log(t), t;
2524
2532
  }
2525
- function jt(e, t = void 0, n = void 0) {
2533
+ function xt(e, t = void 0, n = void 0) {
2526
2534
  return console.log("credentials", e), new Promise((s) => {
2527
2535
  if (e.token === "" && O(e), !e.space || e.space === "") {
2528
2536
  const o = q();
@@ -2603,7 +2611,7 @@ function jt(e, t = void 0, n = void 0) {
2603
2611
  }
2604
2612
  export {
2605
2613
  B as UUID,
2606
- jt as _3DSearch_usersGroup,
2614
+ xt as _3DSearch_usersGroup,
2607
2615
  Je as _3DSpace_Create_Doc,
2608
2616
  Me as _3DSpace_Update_Doc,
2609
2617
  Xe as _3DSpace_bookmark_addSubsciptions,
@@ -2642,7 +2650,7 @@ export {
2642
2650
  yt as _3DSwym_get_findUser,
2643
2651
  ut as _3DSwym_postIdea,
2644
2652
  dt as _3DSwym_postIdeaTemplate,
2645
- j as _3DSwym_sendMessageData,
2653
+ x as _3DSwym_sendMessageData,
2646
2654
  Fe as _AppMngt_get_info_user,
2647
2655
  ve as _AppMngt_get_users,
2648
2656
  $t as _Iterop_AddOrRemoveRows,
@@ -2674,7 +2682,7 @@ export {
2674
2682
  V as couleurs,
2675
2683
  ke as createUserGroups,
2676
2684
  oe as dataMixing,
2677
- xe as deleteUserGroups,
2685
+ je as deleteUserGroups,
2678
2686
  _e as findAdresse,
2679
2687
  qe as getAllContextSecurity,
2680
2688
  H as getCSRFToken,
@@ -2689,12 +2697,12 @@ export {
2689
2697
  Ue as getUserGroupsList,
2690
2698
  Y as getUsersGroupRules,
2691
2699
  Qe as get_3DSpace_csrf,
2692
- je as patchUserGroups,
2700
+ xe as patchUserGroups,
2693
2701
  Pe as patchUserGroupsControl,
2694
2702
  ze as pushDataIn3DSpace,
2695
2703
  Re as readUserGroupControl,
2696
2704
  nt as removeTagToDoc,
2697
- xt as sayHello,
2705
+ jt as sayHello,
2698
2706
  Ce as updateEvent
2699
2707
  };
2700
2708
  //# sourceMappingURL=wb3Api.js.map