@beam3_dev/api_module 0.0.122 → 0.0.123

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
@@ -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 D(e, t = void 0, n = void 0) {
486
+ function A(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,
@@ -735,7 +735,7 @@ async function I(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
- D(
738
+ A(
739
739
  e,
740
740
  (r) => {
741
741
  f(r, {
@@ -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 De(e, t, n = void 0, s = void 0) {
843
+ function Ae(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 De(e, t, n = void 0, s = void 0) {
879
879
  }
880
880
  });
881
881
  }
882
- function Ae(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`;
@@ -919,7 +919,7 @@ function Ae(e, t, n, s = void 0, i = void 0) {
919
919
  }
920
920
  });
921
921
  }
922
- function $e(e, t, n = void 0, s = void 0) {
922
+ function De(e, t, n = void 0, s = void 0) {
923
923
  return new Promise((i) => {
924
924
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
925
925
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
@@ -1092,7 +1092,7 @@ function Re(e, t = void 0, n = void 0) {
1092
1092
  });
1093
1093
  }
1094
1094
  function xe(e, t, n, s) {
1095
- D(
1095
+ A(
1096
1096
  e.space,
1097
1097
  t,
1098
1098
  (i) => {
@@ -1110,7 +1110,7 @@ function xe(e, t, n, s) {
1110
1110
  }
1111
1111
  async function Pe(e, t, n = void 0, s = void 0) {
1112
1112
  return new Promise((i) => {
1113
- D(e, t, (r) => {
1113
+ A(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) => {
@@ -1144,7 +1144,7 @@ function Me(e, t, n, s = void 0, i = void 0) {
1144
1144
  );
1145
1145
  }
1146
1146
  let R, x;
1147
- const A = [];
1147
+ const $ = [];
1148
1148
  async function Le(e, t = void 0, n = void 0) {
1149
1149
  e.objID && e.objID !== "" ? v(
1150
1150
  e,
@@ -1198,7 +1198,7 @@ function q(e, t, n = void 0, s = void 0) {
1198
1198
  R,
1199
1199
  (i) => {
1200
1200
  const r = [...t];
1201
- r.find((o) => o.objectID === i.objectId).data = i.data, x = r, A.push(i.data), n && n(A);
1201
+ r.find((o) => o.objectID === i.objectId).data = i.data, x = r, $.push(i.data), n && n($);
1202
1202
  },
1203
1203
  (i) => {
1204
1204
  s && (s(i), console.log(i));
@@ -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, $(e, c));
1611
+ l !== void 0 && (c.id_msg = l.id, d = !0, D(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, $(e, c);
1629
+ g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, D(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 $(e, t, n = void 0, s = void 0) {
1668
+ function D(e, t, n = void 0, s = void 0) {
1669
1669
  const i = {
1670
1670
  base: e.space,
1671
1671
  uri: "/api/community",
@@ -1964,7 +1964,7 @@ function nt(e, t = void 0, n = void 0) {
1964
1964
  await fetch(c, {
1965
1965
  method: "POST"
1966
1966
  }).then((d) => d.json()).then((d) => {
1967
- console.log("data", d.data.token);
1967
+ console.log("data", d), t && t(d);
1968
1968
  });
1969
1969
  },
1970
1970
  onFailure(a) {
@@ -2071,12 +2071,12 @@ export {
2071
2071
  X as _3DSpace_get_docInfo,
2072
2072
  Y as _3DSpace_get_downloadTicket_multidoc,
2073
2073
  b as _3DSpace_get_securityContexts,
2074
- D as _3DSpace_get_ticket,
2074
+ A as _3DSpace_get_ticket,
2075
2075
  je as _3DSpace_lifecycle_changeRevision,
2076
- Ae as _3DSpace_lifecycle_changeState,
2077
- $e as _3DSpace_lifecycle_getGraph,
2076
+ $e as _3DSpace_lifecycle_changeState,
2077
+ De as _3DSpace_lifecycle_getGraph,
2078
2078
  Ue as _3DSpace_lifecycle_getNextRevision,
2079
- De as _3DSpace_lifecycle_getNextStates,
2079
+ Ae as _3DSpace_lifecycle_getNextStates,
2080
2080
  qe as _3DSwym_buildDirectMessage,
2081
2081
  ze as _3DSwym_deleteIdea,
2082
2082
  te as _3DSwym_findCommunityToInstantMSG,
@@ -2091,7 +2091,7 @@ export {
2091
2091
  tt as _3DSwym_get_findUser,
2092
2092
  w as _3DSwym_get_version,
2093
2093
  He as _3DSwym_postIdea,
2094
- $ as _3DSwym_sendMessageData,
2094
+ D as _3DSwym_sendMessageData,
2095
2095
  ye as _AppMngt_get_info_user,
2096
2096
  _e as _AppMngt_get_users,
2097
2097
  nt as _Iterop_Auth_CAS,