@beam3_dev/api_module 0.0.95 → 0.0.97

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 M } from "uuid";
2
2
  import { DateTime as b } from "luxon";
3
- import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
3
+ import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
4
4
  function R() {
5
5
  return M();
6
6
  }
@@ -118,7 +118,7 @@ function ue(e, t = void 0) {
118
118
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
119
119
  let n;
120
120
  n === void 0 && (n = s.createProxy({
121
- widgetId: j.id,
121
+ widgetId: U.id,
122
122
  filteringMode: "WithFilteringServices"
123
123
  }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
124
124
  });
@@ -132,7 +132,7 @@ async function me(e, t = void 0, s = void 0) {
132
132
  await O(
133
133
  ["DS/i3DXCompassServices/i3DXCompassServices"],
134
134
  (n) => {
135
- (!e || e === "") && (e = j.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
135
+ (!e || e === "") && (e = U.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
136
136
  n.getPlatformServices({
137
137
  platformId: e,
138
138
  onComplete: t,
@@ -441,7 +441,7 @@ function T(e, t = void 0, s = void 0) {
441
441
  } else
442
442
  s && s("ERROR : url du 3DSpace non défini.");
443
443
  }
444
- function A(e, t = void 0, s = void 0) {
444
+ function $(e, t = void 0, s = void 0) {
445
445
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
446
446
  k(
447
447
  e,
@@ -693,7 +693,7 @@ async function v(e, t = void 0, s = void 0) {
693
693
  ), console.warn(
694
694
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
695
695
  )), new Promise((n, o) => {
696
- A(
696
+ $(
697
697
  e,
698
698
  (r) => {
699
699
  m(r, {
@@ -877,7 +877,7 @@ function De(e, t, s, n = void 0, o = void 0) {
877
877
  }
878
878
  });
879
879
  }
880
- function Ae(e, t, s = void 0, n = void 0) {
880
+ function $e(e, t, s = void 0, n = void 0) {
881
881
  return new Promise((o) => {
882
882
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
883
883
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
@@ -916,7 +916,7 @@ function Ae(e, t, s = void 0, n = void 0) {
916
916
  }
917
917
  });
918
918
  }
919
- function $e(e, t, s = void 0, n = void 0) {
919
+ function Ae(e, t, s = void 0, n = void 0) {
920
920
  return new Promise((o) => {
921
921
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
922
922
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -961,7 +961,7 @@ function $e(e, t, s = void 0, n = void 0) {
961
961
  }
962
962
  });
963
963
  }
964
- function Ue(e, t, s, n = void 0, o = void 0) {
964
+ function je(e, t, s, n = void 0, o = void 0) {
965
965
  return new Promise((r) => {
966
966
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
967
967
  const c = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1006,21 +1006,22 @@ function Ue(e, t, s, n = void 0, o = void 0) {
1006
1006
  }
1007
1007
  });
1008
1008
  }
1009
- function je(e, t, s = void 0, n = void 0) {
1010
- return new Promise((o) => {
1009
+ function Ue(e, t, s = void 0, n = void 0) {
1010
+ return console.log("credentials", e), new Promise((o) => {
1011
1011
  if (e.token === "" && T(e), !e.space || e.space === "") {
1012
1012
  const r = J();
1013
1013
  console.log("platformeInfo", r);
1014
1014
  }
1015
1015
  if (N(
1016
- e.space,
1017
- "ESPACE COMMUN",
1016
+ e,
1017
+ "Common space",
1018
1018
  ["VPLMProjectLeader", "VPLMCreator"],
1019
1019
  void 0,
1020
1020
  (r) => e.ctx = r,
1021
1021
  (r) => {
1022
1022
  console.log("onError =>", r);
1023
- }
1023
+ },
1024
+ !0
1024
1025
  ), t !== void 0 && t !== "" && t !== null) {
1025
1026
  const r = b.now().ts;
1026
1027
  `${e.space}`;
@@ -1128,7 +1129,7 @@ function Re(e, t = void 0, s = void 0) {
1128
1129
  });
1129
1130
  }
1130
1131
  function ve(e, t, s, n) {
1131
- A(
1132
+ $(
1132
1133
  e.space,
1133
1134
  t,
1134
1135
  (o) => {
@@ -1146,7 +1147,7 @@ function ve(e, t, s, n) {
1146
1147
  }
1147
1148
  async function Ie(e, t, s = void 0, n = void 0) {
1148
1149
  return new Promise((o) => {
1149
- A(e, t, (r) => {
1150
+ $(e, t, (r) => {
1150
1151
  m(r, {
1151
1152
  onComplete: (c, a, i) => (o(JSON.parse(c)), s && s(JSON.parse(c), a, i), o),
1152
1153
  onFailure: (c, a, i) => {
@@ -1180,7 +1181,7 @@ function xe(e, t, s, n = void 0, o = void 0) {
1180
1181
  );
1181
1182
  }
1182
1183
  let I, x;
1183
- const $ = [];
1184
+ const A = [];
1184
1185
  async function Pe(e, t = void 0, s = void 0) {
1185
1186
  e.objID && e.objID !== "" ? k(
1186
1187
  e,
@@ -1234,7 +1235,7 @@ function Y(e, t, s = void 0, n = void 0) {
1234
1235
  I,
1235
1236
  (o) => {
1236
1237
  const r = [...t];
1237
- r.find((c) => c.objectID === o.objectId).data = o.data, x = r, $.push(o.data), s && s($);
1238
+ r.find((c) => c.objectID === o.objectId).data = o.data, x = r, A.push(o.data), s && s(A);
1238
1239
  },
1239
1240
  (o) => {
1240
1241
  n && (n(o), console.log(o));
@@ -1644,7 +1645,7 @@ function Be(e, t, s = void 0, n = void 0) {
1644
1645
  ee(
1645
1646
  a.users,
1646
1647
  (l) => {
1647
- l !== void 0 && (i.id_msg = l.id, d = !0, U(e, i));
1648
+ l !== void 0 && (i.id_msg = l.id, d = !0, j(e, i));
1648
1649
  },
1649
1650
  (l) => {
1650
1651
  d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
@@ -1662,7 +1663,7 @@ function Be(e, t, s = void 0, n = void 0) {
1662
1663
  type: "json",
1663
1664
  onComplete(p, u, f) {
1664
1665
  const g = p;
1665
- g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id, U(e, i);
1666
+ g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id, j(e, i);
1666
1667
  },
1667
1668
  onFailure(p, u, f) {
1668
1669
  const g = p;
@@ -1701,7 +1702,7 @@ function ee(e, t, s, n) {
1701
1702
  });
1702
1703
  });
1703
1704
  }
1704
- function U(e, t, s = void 0, n = void 0) {
1705
+ function j(e, t, s = void 0, n = void 0) {
1705
1706
  const o = {
1706
1707
  base: e.space,
1707
1708
  uri: "/api/community",
@@ -1994,7 +1995,7 @@ function et(e) {
1994
1995
  export {
1995
1996
  R as UUID,
1996
1997
  ke as _3DSpace_Create_Doc,
1997
- je as _3DSpace_bookmark_addSubsciptions,
1998
+ Ue as _3DSpace_bookmark_addSubsciptions,
1998
1999
  T as _3DSpace_csrf,
1999
2000
  v as _3DSpace_download_doc,
2000
2001
  W as _3DSpace_download_multidoc,
@@ -2005,11 +2006,11 @@ export {
2005
2006
  K as _3DSpace_get_docInfo,
2006
2007
  B as _3DSpace_get_downloadTicket_multidoc,
2007
2008
  N as _3DSpace_get_securityContexts,
2008
- A as _3DSpace_get_ticket,
2009
- Ue as _3DSpace_lifecycle_changeRevision,
2009
+ $ as _3DSpace_get_ticket,
2010
+ je as _3DSpace_lifecycle_changeRevision,
2010
2011
  De as _3DSpace_lifecycle_changeState,
2011
- Ae as _3DSpace_lifecycle_getGraph,
2012
- $e as _3DSpace_lifecycle_getNextRevision,
2012
+ $e as _3DSpace_lifecycle_getGraph,
2013
+ Ae as _3DSpace_lifecycle_getNextRevision,
2013
2014
  Fe as _3DSpace_lifecycle_getNextStates,
2014
2015
  Be as _3DSwym_buildDirectMessage,
2015
2016
  qe as _3DSwym_deleteIdea,
@@ -2025,7 +2026,7 @@ export {
2025
2026
  Ze as _3DSwym_get_findUser,
2026
2027
  w as _3DSwym_get_version,
2027
2028
  Ye as _3DSwym_postIdea,
2028
- U as _3DSwym_sendMessageData,
2029
+ j as _3DSwym_sendMessageData,
2029
2030
  Se as _AppMngt_get_info_user,
2030
2031
  he as _AppMngt_get_users,
2031
2032
  J as _getPlateformInfos,