@beam3_dev/api_module 0.0.97 → 0.0.98

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
@@ -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 $(e, t = void 0, s = void 0) {
444
+ function A(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
- $(
696
+ A(
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 $e(e, t, s = void 0, n = void 0) {
880
+ function Ae(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 $e(e, t, s = void 0, n = void 0) {
916
916
  }
917
917
  });
918
918
  }
919
- function Ae(e, t, s = void 0, n = void 0) {
919
+ function $e(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}`;
@@ -1031,12 +1031,11 @@ function Ue(e, t, s = void 0, n = void 0) {
1031
1031
  if (Array.isArray(JSON.parse(a))) {
1032
1032
  const i = JSON.parse(a);
1033
1033
  console.log("serviceId=3dsearch", i);
1034
- const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e.tenant}&timestamp=${r}`;
1034
+ const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
1035
1035
  m(d, {
1036
1036
  method: "POST",
1037
1037
  headers: {
1038
1038
  securitycontext: "ctx::" + e.ctx,
1039
- ENO_CSRF_TOKEN: e.token,
1040
1039
  Accept: "application/json",
1041
1040
  "Content-Type": "application/json"
1042
1041
  },
@@ -1129,7 +1128,7 @@ function Re(e, t = void 0, s = void 0) {
1129
1128
  });
1130
1129
  }
1131
1130
  function ve(e, t, s, n) {
1132
- $(
1131
+ A(
1133
1132
  e.space,
1134
1133
  t,
1135
1134
  (o) => {
@@ -1147,7 +1146,7 @@ function ve(e, t, s, n) {
1147
1146
  }
1148
1147
  async function Ie(e, t, s = void 0, n = void 0) {
1149
1148
  return new Promise((o) => {
1150
- $(e, t, (r) => {
1149
+ A(e, t, (r) => {
1151
1150
  m(r, {
1152
1151
  onComplete: (c, a, i) => (o(JSON.parse(c)), s && s(JSON.parse(c), a, i), o),
1153
1152
  onFailure: (c, a, i) => {
@@ -1181,7 +1180,7 @@ function xe(e, t, s, n = void 0, o = void 0) {
1181
1180
  );
1182
1181
  }
1183
1182
  let I, x;
1184
- const A = [];
1183
+ const $ = [];
1185
1184
  async function Pe(e, t = void 0, s = void 0) {
1186
1185
  e.objID && e.objID !== "" ? k(
1187
1186
  e,
@@ -1235,7 +1234,7 @@ function Y(e, t, s = void 0, n = void 0) {
1235
1234
  I,
1236
1235
  (o) => {
1237
1236
  const r = [...t];
1238
- r.find((c) => c.objectID === o.objectId).data = o.data, x = r, A.push(o.data), s && s(A);
1237
+ r.find((c) => c.objectID === o.objectId).data = o.data, x = r, $.push(o.data), s && s($);
1239
1238
  },
1240
1239
  (o) => {
1241
1240
  n && (n(o), console.log(o));
@@ -2006,11 +2005,11 @@ export {
2006
2005
  K as _3DSpace_get_docInfo,
2007
2006
  B as _3DSpace_get_downloadTicket_multidoc,
2008
2007
  N as _3DSpace_get_securityContexts,
2009
- $ as _3DSpace_get_ticket,
2008
+ A as _3DSpace_get_ticket,
2010
2009
  je as _3DSpace_lifecycle_changeRevision,
2011
2010
  De as _3DSpace_lifecycle_changeState,
2012
- $e as _3DSpace_lifecycle_getGraph,
2013
- Ae as _3DSpace_lifecycle_getNextRevision,
2011
+ Ae as _3DSpace_lifecycle_getGraph,
2012
+ $e as _3DSpace_lifecycle_getNextRevision,
2014
2013
  Fe as _3DSpace_lifecycle_getNextStates,
2015
2014
  Be as _3DSwym_buildDirectMessage,
2016
2015
  qe as _3DSwym_deleteIdea,