@beam3_dev/api_module 0.0.139 → 0.0.140

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
@@ -1,6 +1,6 @@
1
1
  import { v4 as L } from "uuid";
2
2
  import { DateTime as N } from "luxon";
3
- import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
3
+ import { requirejs as O, widget as D } from "@widget-lab/3ddashboard-utils";
4
4
  function j() {
5
5
  return L();
6
6
  }
@@ -121,7 +121,7 @@ function fe(e, t = void 0) {
121
121
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
122
122
  let s;
123
123
  s === void 0 && (s = n.createProxy({
124
- widgetId: U.id,
124
+ widgetId: D.id,
125
125
  filteringMode: "WithFilteringServices"
126
126
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
127
127
  });
@@ -137,7 +137,7 @@ async function ge(e, t = void 0, n = void 0) {
137
137
  await O(
138
138
  ["DS/i3DXCompassServices/i3DXCompassServices"],
139
139
  (s) => {
140
- (!e || e === "") && (e = U.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
140
+ (!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
141
141
  s.getPlatformServices({
142
142
  platformId: e,
143
143
  onComplete: t,
@@ -250,7 +250,7 @@ function ye(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const $ = {
253
+ const F = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,7 +271,7 @@ function we(e, t, n = void 0, s = void 0) {
271
271
  };
272
272
  f(a, {
273
273
  method: "POST",
274
- headers: $,
274
+ headers: F,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
@@ -366,7 +366,7 @@ function be(e, t, n, s = void 0, i = void 0) {
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = n, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(c);
368
368
  f(d, {
369
- headers: $,
369
+ headers: F,
370
370
  method: "PATCH",
371
371
  data: l,
372
372
  type: "json",
@@ -382,7 +382,7 @@ function Ne(e, t, n, s = void 0, i = void 0) {
382
382
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
383
  f(a, {
384
384
  method: "PATCH",
385
- headers: $,
385
+ headers: F,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -483,7 +483,7 @@ function T(e, t = void 0, n = void 0) {
483
483
  } else
484
484
  n && n("ERROR : url du 3DSpace non défini.");
485
485
  }
486
- function F(e, t = void 0, n = void 0) {
486
+ function $(e, t = void 0, n = void 0) {
487
487
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
488
488
  v(
489
489
  e,
@@ -534,7 +534,7 @@ function X(e, t, n, s, i, r = void 0, o = void 0) {
534
534
  e,
535
535
  t,
536
536
  (a) => {
537
- B(
537
+ W(
538
538
  e,
539
539
  t,
540
540
  n,
@@ -547,7 +547,7 @@ function X(e, t, n, s, i, r = void 0, o = void 0) {
547
547
  }
548
548
  );
549
549
  }
550
- function B(e, t, n, s, i, r, o = void 0, a = void 0) {
550
+ function W(e, t, n, s, i, r, o = void 0, a = void 0) {
551
551
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
552
552
  f(c, {
553
553
  method: "PUT",
@@ -735,7 +735,7 @@ async function R(e, t = void 0, n = void 0) {
735
735
  ), console.warn(
736
736
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
737
737
  )), new Promise((s, i) => {
738
- F(
738
+ $(
739
739
  e,
740
740
  (r) => {
741
741
  f(r, {
@@ -771,7 +771,7 @@ async function R(e, t = void 0, n = void 0) {
771
771
  );
772
772
  });
773
773
  }
774
- async function W(e, t, n = void 0, s = void 0) {
774
+ async function B(e, t, n = void 0, s = void 0) {
775
775
  let i = [];
776
776
  if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
777
777
  for (let a = 0; a < t.length; a += 80) {
@@ -840,7 +840,7 @@ function Y(e, t, n = void 0, s = void 0, i = void 0) {
840
840
  }
841
841
  });
842
842
  }
843
- function $e(e, t, n = void 0, s = void 0) {
843
+ function Fe(e, t, n = void 0, s = void 0) {
844
844
  return new Promise((i) => {
845
845
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
846
846
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -879,7 +879,7 @@ function $e(e, t, n = void 0, s = void 0) {
879
879
  }
880
880
  });
881
881
  }
882
- function Fe(e, t, n, s = void 0, i = void 0) {
882
+ function $e(e, t, n, s = void 0, i = void 0) {
883
883
  return new Promise((r) => {
884
884
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
885
885
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -958,7 +958,7 @@ function Ie(e, t, n = void 0, s = void 0) {
958
958
  }
959
959
  });
960
960
  }
961
- function De(e, t, n = void 0, s = void 0) {
961
+ function Ue(e, t, n = void 0, s = void 0) {
962
962
  return new Promise((i) => {
963
963
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
964
964
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -1003,7 +1003,7 @@ function De(e, t, n = void 0, s = void 0) {
1003
1003
  }
1004
1004
  });
1005
1005
  }
1006
- function Ue(e, t, n, s = void 0, i = void 0) {
1006
+ function De(e, t, n, s = void 0, i = void 0) {
1007
1007
  return new Promise((r) => {
1008
1008
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1009
1009
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1092,7 +1092,7 @@ function Re(e, t = void 0, n = void 0) {
1092
1092
  });
1093
1093
  }
1094
1094
  function Pe(e, t, n, s) {
1095
- F(
1095
+ $(
1096
1096
  e.space,
1097
1097
  t,
1098
1098
  (i) => {
@@ -1110,7 +1110,7 @@ function Pe(e, t, n, s) {
1110
1110
  }
1111
1111
  async function xe(e, t, n = void 0, s = void 0) {
1112
1112
  return new Promise((i) => {
1113
- F(e, t, (r) => {
1113
+ $(e, t, (r) => {
1114
1114
  f(r, {
1115
1115
  onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1116
1116
  onFailure: (o, a, c) => {
@@ -1193,7 +1193,7 @@ function Ee(e, t = void 0, n = void 0) {
1193
1193
  });
1194
1194
  }
1195
1195
  function q(e, t, n = void 0, s = void 0) {
1196
- W(
1196
+ B(
1197
1197
  e,
1198
1198
  P,
1199
1199
  (i) => {
@@ -1470,7 +1470,7 @@ function Xe(e, t = void 0, n = void 0) {
1470
1470
  });
1471
1471
  });
1472
1472
  }
1473
- function Be(e, t = void 0, n = void 0) {
1473
+ function We(e, t = void 0, n = void 0) {
1474
1474
  const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1475
1475
  params: {
1476
1476
  idsToFilterArr: [],
@@ -1500,7 +1500,7 @@ function Be(e, t = void 0, n = void 0) {
1500
1500
  });
1501
1501
  });
1502
1502
  }
1503
- function We(e, t = void 0, n = void 0) {
1503
+ function Be(e, t = void 0, n = void 0) {
1504
1504
  const s = {
1505
1505
  base: e.space,
1506
1506
  uri: "/api/community/listmycommunities",
@@ -1608,7 +1608,7 @@ function qe(e, t, n = void 0, s = void 0) {
1608
1608
  te(
1609
1609
  a.users,
1610
1610
  (l) => {
1611
- l !== void 0 && (c.id_msg = l.id, d = !0, D(e, c));
1611
+ l !== void 0 && (c.id_msg = l.id, d = !0, U(e, c));
1612
1612
  },
1613
1613
  (l) => {
1614
1614
  d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
@@ -1626,7 +1626,7 @@ function qe(e, t, n = void 0, s = void 0) {
1626
1626
  type: "json",
1627
1627
  onComplete(p, u, m) {
1628
1628
  const g = p;
1629
- g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, D(e, c);
1629
+ g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, U(e, c);
1630
1630
  },
1631
1631
  onFailure(p, u, m) {
1632
1632
  const g = p;
@@ -1665,7 +1665,7 @@ function te(e, t, n, s) {
1665
1665
  });
1666
1666
  });
1667
1667
  }
1668
- function D(e, t, n = void 0, s = void 0) {
1668
+ function U(e, t, n = void 0, s = void 0) {
1669
1669
  const i = {
1670
1670
  base: e.space,
1671
1671
  uri: "/api/community",
@@ -1986,26 +1986,20 @@ function st(e, t = void 0, n = void 0) {
1986
1986
  }
1987
1987
  async function at(e, t, n = void 0, s = void 0) {
1988
1988
  e.tenant && A(e, (i) => {
1989
- console.log("serviceUrls", i);
1990
- const r = i.services.find((c) => c.id === "3dpassport")?.url, o = i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2", a = `${r}/login/?service=${o}/identity/users`;
1991
- f(a, {
1989
+ console.log("serviceUrls", i), i.services.find((a) => a.id === "3dpassport")?.url;
1990
+ const o = `${i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
1991
+ f(o, {
1992
1992
  headers: {
1993
1993
  Authorization: `Bearer ${t}`
1994
1994
  },
1995
- onComplete(c) {
1996
- console.log("response", c), n && n(c);
1995
+ onComplete(a) {
1996
+ console.log("response", a), n && n(a);
1997
1997
  },
1998
- onFailure(c) {
1999
- s && s(c);
1998
+ onFailure(a) {
1999
+ s && s(a);
2000
2000
  }
2001
2001
  });
2002
- }), await fetch(urlAPIV2Iterop, {
2003
- headers: {
2004
- Authorization: `Bearer ${t}`
2005
- }
2006
- }).then((i) => i.json()).then((i) => {
2007
- console.log(i);
2008
- }).catch((i) => console.log(i));
2002
+ });
2009
2003
  }
2010
2004
  function it(e) {
2011
2005
  const t = "Hello " + e;
@@ -2097,26 +2091,26 @@ export {
2097
2091
  je as _3DSpace_bookmark_addSubsciptions,
2098
2092
  T as _3DSpace_csrf,
2099
2093
  R as _3DSpace_download_doc,
2100
- W as _3DSpace_download_multidoc,
2094
+ B as _3DSpace_download_multidoc,
2101
2095
  X as _3DSpace_file_update,
2102
- B as _3DSpace_file_update_csr,
2096
+ W as _3DSpace_file_update_csr,
2103
2097
  ke as _3DSpace_file_url_csr,
2104
2098
  v as _3DSpace_get_csrf,
2105
2099
  V as _3DSpace_get_docInfo,
2106
2100
  Y as _3DSpace_get_downloadTicket_multidoc,
2107
2101
  b as _3DSpace_get_securityContexts,
2108
- F as _3DSpace_get_ticket,
2109
- Ue as _3DSpace_lifecycle_changeRevision,
2110
- Fe as _3DSpace_lifecycle_changeState,
2102
+ $ as _3DSpace_get_ticket,
2103
+ De as _3DSpace_lifecycle_changeRevision,
2104
+ $e as _3DSpace_lifecycle_changeState,
2111
2105
  Ie as _3DSpace_lifecycle_getGraph,
2112
- De as _3DSpace_lifecycle_getNextRevision,
2113
- $e as _3DSpace_lifecycle_getNextStates,
2106
+ Ue as _3DSpace_lifecycle_getNextRevision,
2107
+ Fe as _3DSpace_lifecycle_getNextStates,
2114
2108
  qe as _3DSwym_buildDirectMessage,
2115
2109
  He as _3DSwym_deleteIdea,
2116
2110
  te as _3DSwym_findCommunityToInstantMSG,
2117
- We as _3DSwym_getAllCommunities,
2111
+ Be as _3DSwym_getAllCommunities,
2118
2112
  Xe as _3DSwym_getAllNews,
2119
- Be as _3DSwym_getFamiliarPeople,
2113
+ We as _3DSwym_getFamiliarPeople,
2120
2114
  Ye as _3DSwym_getIdeaStatusMaturity,
2121
2115
  ee as _3DSwym_getMembersCommunity,
2122
2116
  Qe as _3DSwym_getSWYMIdea,
@@ -2125,7 +2119,7 @@ export {
2125
2119
  tt as _3DSwym_get_findUser,
2126
2120
  w as _3DSwym_get_version,
2127
2121
  ze as _3DSwym_postIdea,
2128
- D as _3DSwym_sendMessageData,
2122
+ U as _3DSwym_sendMessageData,
2129
2123
  ye as _AppMngt_get_info_user,
2130
2124
  _e as _AppMngt_get_users,
2131
2125
  st as _Iterop_Auth_CAS,