@beam3_dev/api_module 0.0.327 → 0.0.328

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
@@ -134,7 +134,7 @@ function Q(e, n, t) {
134
134
  };
135
135
  a(r);
136
136
  }
137
- async function Re(e, n, t = !0) {
137
+ async function Ne(e, n, t = !0) {
138
138
  const s = e.events.findIndex((i) => i.uuid === n.uuid);
139
139
  return s === -1 ? e.events.push(n) : t ? e.events[s] = n : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
140
140
  }
@@ -143,7 +143,7 @@ function m(e, n) {
143
143
  t.authenticatedRequest(e, n);
144
144
  });
145
145
  }
146
- function Ne(e, n, t) {
146
+ function Re(e, n, t) {
147
147
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
148
  s.draggable(e, {
149
149
  data: n,
@@ -195,7 +195,7 @@ function Z() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function De(e, n = void 0, t = void 0) {
198
+ function ve(e, n = void 0, t = void 0) {
199
199
  if (e.tenant) {
200
200
  const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
201
  m(s, {
@@ -227,7 +227,7 @@ function M(e, n = void 0, t = void 0) {
227
227
  });
228
228
  }
229
229
  }
230
- function ve(e, n = void 0, t = void 0) {
230
+ function De(e, n = void 0, t = void 0) {
231
231
  if (e.tenant) {
232
232
  const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
233
233
  m(s, {
@@ -296,7 +296,7 @@ function Le(e, n, t = void 0, s = void 0) {
296
296
  }
297
297
  });
298
298
  }
299
- const R = {
299
+ const N = {
300
300
  "Content-Type": "application/json",
301
301
  Accept: "application/json,text/javascript,*/*"
302
302
  };
@@ -317,7 +317,7 @@ function Me(e, n, t = void 0, s = void 0) {
317
317
  };
318
318
  m(a, {
319
319
  method: "POST",
320
- headers: R,
320
+ headers: N,
321
321
  data: JSON.stringify(c),
322
322
  onComplete(d) {
323
323
  t && t(JSON.parse(d));
@@ -415,17 +415,17 @@ function Be(e, n, t) {
415
415
  const o = {
416
416
  baseUrl: s,
417
417
  uri: "/3drdfpersist/resources/v1/usersgroup/groups",
418
- opt: "?select=uri,members"
419
- }, a = `${o.baseUrl}${o.uri}`, c = {
418
+ opt: "?select=uri, title, description, owner, members, pending_members, creation_date, modification_date, visibility"
419
+ }, a = `${o.baseUrl}${o.uri}${o.opt}`, c = {
420
420
  method: "POST",
421
- headers: R,
421
+ headers: N,
422
422
  data: JSON.stringify({ groups: i })
423
423
  };
424
424
  try {
425
425
  m(a, {
426
426
  ...c,
427
427
  onComplete(d) {
428
- n && n(d);
428
+ n && n(JSON.parse(d));
429
429
  },
430
430
  onFailure(d, u) {
431
431
  const p = {
@@ -468,7 +468,7 @@ function Ee(e, n, t, s = void 0, i = void 0) {
468
468
  OPTsTenant: `tenant=dstenant:${o}`
469
469
  }, c = t, d = `${r}${a.URIUGr}/${n}`, u = JSON.stringify(c);
470
470
  m(d, {
471
- headers: R,
471
+ headers: N,
472
472
  method: "PATCH",
473
473
  data: u,
474
474
  type: "json",
@@ -484,7 +484,7 @@ function qe(e, n, t, s = void 0, i = void 0) {
484
484
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
485
485
  m(a, {
486
486
  method: "PATCH",
487
- headers: R,
487
+ headers: N,
488
488
  data: JSON.stringify(t),
489
489
  type: "json",
490
490
  onComplete(d) {
@@ -608,7 +608,7 @@ async function We(e, n = void 0, t = void 0, s = void 0) {
608
608
  }
609
609
  });
610
610
  }
611
- function N(e, n = void 0, t = void 0) {
611
+ function R(e, n = void 0, t = void 0) {
612
612
  if (e.objID && e.objID !== "") {
613
613
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
614
614
  m(s, {
@@ -652,7 +652,7 @@ function b(e, n = void 0, t = void 0) {
652
652
  }
653
653
  function k(e, n = void 0, t = void 0) {
654
654
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
655
- N(
655
+ R(
656
656
  e,
657
657
  (i) => {
658
658
  m(s, {
@@ -707,7 +707,7 @@ function G(e, n, t, s, i, r = void 0, o = void 0) {
707
707
  r,
708
708
  o
709
709
  );
710
- e.token ? a() : N(
710
+ e.token ? a() : R(
711
711
  e,
712
712
  n,
713
713
  (c) => {
@@ -857,9 +857,9 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
857
857
  const j = new DOMParser().parseFromString(
858
858
  _,
859
859
  "text/html"
860
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, D = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
860
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
861
861
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
862
- const v = JSON.stringify({
862
+ const D = JSON.stringify({
863
863
  actions: [],
864
864
  businessobj: {
865
865
  description: e?.description ? e?.description : "",
@@ -875,14 +875,14 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
875
875
  },
876
876
  collabspace: a
877
877
  });
878
- m(D, {
878
+ m(v, {
879
879
  method: "POST",
880
880
  headers: {
881
881
  Accept: "application/json",
882
882
  "Content-Type": "application/json;charset=UTF-8",
883
883
  "X-DS-CSRFTOKEN": p
884
884
  },
885
- data: v,
885
+ data: D,
886
886
  type: "json",
887
887
  onComplete(I, Ce, be) {
888
888
  s && s(I);
@@ -890,7 +890,7 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
890
890
  onFailure(I) {
891
891
  console.warn(
892
892
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
893
- { url: D, bodyRequest: v, err: I }
893
+ { url: v, bodyRequest: D, err: I }
894
894
  ), i && i(I);
895
895
  }
896
896
  });
@@ -1592,7 +1592,7 @@ async function dt(e, n, t = void 0, s = void 0) {
1592
1592
  }
1593
1593
  function ut(e, n, t, s = void 0, i = void 0) {
1594
1594
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1595
- e = { ...e, objID: t }, N(
1595
+ e = { ...e, objID: t }, R(
1596
1596
  e,
1597
1597
  (o) => {
1598
1598
  console.log("_3DSpace_get_csrf | onDone | data", o);
@@ -1619,7 +1619,7 @@ function ut(e, n, t, s = void 0, i = void 0) {
1619
1619
  let E, q;
1620
1620
  const A = [];
1621
1621
  async function pt(e, n = void 0, t = void 0) {
1622
- e.objID && e.objID !== "" ? N(
1622
+ e.objID && e.objID !== "" ? R(
1623
1623
  e,
1624
1624
  (s) => {
1625
1625
  n && n(s);
@@ -2552,7 +2552,7 @@ function It(e, n = void 0, t = void 0) {
2552
2552
  credentials: e
2553
2553
  });
2554
2554
  }
2555
- function Rt(e, n = void 0, t = void 0) {
2555
+ function Nt(e, n = void 0, t = void 0) {
2556
2556
  return new Promise((s, i) => {
2557
2557
  try {
2558
2558
  let r;
@@ -2582,7 +2582,7 @@ function Rt(e, n = void 0, t = void 0) {
2582
2582
  }
2583
2583
  });
2584
2584
  }
2585
- function Nt(e, n, t = void 0, s = void 0) {
2585
+ function Rt(e, n, t = void 0, s = void 0) {
2586
2586
  const i = e.space + "/api/user/find/login/" + n;
2587
2587
  C(
2588
2588
  e,
@@ -2657,7 +2657,7 @@ function kt(e, n = void 0, t = void 0) {
2657
2657
  });
2658
2658
  });
2659
2659
  }
2660
- function Dt(e, n = void 0, t = void 0) {
2660
+ function vt(e, n = void 0, t = void 0) {
2661
2661
  if (e.tenant) {
2662
2662
  const s = e.tenant.toLowerCase();
2663
2663
  fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
@@ -2669,7 +2669,7 @@ function Dt(e, n = void 0, t = void 0) {
2669
2669
  });
2670
2670
  }
2671
2671
  }
2672
- async function vt(e, n, t = void 0, s = void 0) {
2672
+ async function Dt(e, n, t = void 0, s = void 0) {
2673
2673
  if (e.tenant) {
2674
2674
  const i = e.tenant.toLowerCase();
2675
2675
  fetch(
@@ -2956,7 +2956,7 @@ export {
2956
2956
  G as _3DSpace_file_update,
2957
2957
  oe as _3DSpace_file_update_csr,
2958
2958
  Ve as _3DSpace_file_url_csr,
2959
- N as _3DSpace_get_csrf,
2959
+ R as _3DSpace_get_csrf,
2960
2960
  J as _3DSpace_get_docInfo,
2961
2961
  de as _3DSpace_get_downloadTicket_multidoc,
2962
2962
  We as _3DSpace_get_multiDocInfo,
@@ -2983,8 +2983,8 @@ export {
2983
2983
  he as _3DSwym_getMembersCommunity,
2984
2984
  $t as _3DSwym_getOneIdea,
2985
2985
  C as _3DSwym_get_Token,
2986
- Rt as _3DSwym_get_currentUser,
2987
- Nt as _3DSwym_get_findUser,
2986
+ Nt as _3DSwym_get_currentUser,
2987
+ Rt as _3DSwym_get_findUser,
2988
2988
  Tt as _3DSwym_postIdea,
2989
2989
  bt as _3DSwym_postIdeaTemplate,
2990
2990
  P as _3DSwym_sendMessageData,
@@ -2998,20 +2998,20 @@ export {
2998
2998
  qt as _Iterop_PutDependencyTable,
2999
2999
  Mt as _Iterop_businessTableSearchInRows,
3000
3000
  Gt as _Iterop_createBusinessTable,
3001
- vt as _Iterop_getAllBusinessTables,
3001
+ Dt as _Iterop_getAllBusinessTables,
3002
3002
  At as _Iterop_getOneBusinessTable,
3003
3003
  Pt as _Iterop_getOneBusinessTableRows,
3004
- Dt as _Iterop_jwtUser,
3004
+ vt as _Iterop_jwtUser,
3005
3005
  Bt as _Iterop_runProcess,
3006
3006
  Jt as _Iterop_updateBusinessTable,
3007
- De as _getMe,
3007
+ ve as _getMe,
3008
3008
  Z as _getPlateformInfos,
3009
3009
  ke as _getPlatformServices,
3010
3010
  M as _getServiceUrl,
3011
- ve as _getServiceUrl_3DPassport,
3011
+ De as _getServiceUrl_3DPassport,
3012
3012
  jt as _getServiceUrl_Iterop,
3013
3013
  m as _httpCallAuthenticated,
3014
- Ne as _setDraggable,
3014
+ Re as _setDraggable,
3015
3015
  je as _setDroppable,
3016
3016
  Fe as _setupTagger,
3017
3017
  mt as addTagToDoc,
@@ -3042,6 +3042,6 @@ export {
3042
3042
  Xe as readUserGroupControl,
3043
3043
  gt as removeTagToDoc,
3044
3044
  Wt as sayHello,
3045
- Re as updateEvent
3045
+ Ne as updateEvent
3046
3046
  };
3047
3047
  //# sourceMappingURL=wb3Api.js.map