@beam3_dev/api_module 0.0.281 → 0.0.282

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
@@ -554,7 +554,7 @@ async function qe(e, t = void 0, n = void 0, s = void 0) {
554
554
  }
555
555
  });
556
556
  }
557
- function U(e, t = void 0, n = void 0) {
557
+ function I(e, t = void 0, n = void 0) {
558
558
  if (e.objID && e.objID !== "") {
559
559
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
560
560
  m(s, {
@@ -598,7 +598,7 @@ function b(e, t = void 0, n = void 0) {
598
598
  }
599
599
  function j(e, t = void 0, n = void 0) {
600
600
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
601
- U(
601
+ I(
602
602
  e,
603
603
  (i) => {
604
604
  m(s, {
@@ -653,7 +653,7 @@ function M(e, t, n, s, i, r = void 0, o = void 0) {
653
653
  r,
654
654
  o
655
655
  );
656
- e.token ? a() : U(
656
+ e.token ? a() : I(
657
657
  e,
658
658
  t,
659
659
  (c) => {
@@ -785,8 +785,8 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
785
785
  n,
786
786
  t,
787
787
  (w) => {
788
- const x = new DOMParser().parseFromString(w, "text/html").body.firstChild.querySelector("input").getAttributeNode("value").value, q = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${a}/contents?receipt=${encodeURIComponent(
789
- x
788
+ const R = new DOMParser().parseFromString(w, "text/html").body.firstChild.querySelector("input").getAttributeNode("value").value, q = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${a}/contents?receipt=${encodeURIComponent(
789
+ R
790
790
  )}`;
791
791
  let X = /(?:\.([^.]+))?$/.exec(t)[1];
792
792
  const W = JSON.stringify({
@@ -814,11 +814,11 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
814
814
  },
815
815
  data: W,
816
816
  type: "json",
817
- onComplete(I, we, Ce) {
818
- console.log("_3DSpace_Upload_Doc | pushFileInFcs | onComplete", I), s && s(I);
817
+ onComplete(x, we, Ce) {
818
+ s && s(x);
819
819
  },
820
- onFailure(I) {
821
- console.log("_3DSpace_Upload_Doc | pushFileInFcs | onFailure"), i && i(I);
820
+ onFailure(x) {
821
+ console.warn("_3DSpace_Upload_Doc | pushFileInFcs | onFailure"), i && i(x);
822
822
  }
823
823
  });
824
824
  },
@@ -993,7 +993,7 @@ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
993
993
  }
994
994
  });
995
995
  }
996
- function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
996
+ function U(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
997
997
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
998
998
  m(a, {
999
999
  method: "GET",
@@ -1228,7 +1228,7 @@ function Ze(e, t, n = void 0, s = void 0) {
1228
1228
  return new Promise((i) => {
1229
1229
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1230
1230
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1231
- R(
1231
+ U(
1232
1232
  e.space,
1233
1233
  "ESPACE COMMUN",
1234
1234
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1269,7 +1269,7 @@ function et(e, t, n = void 0, s = void 0) {
1269
1269
  return new Promise((i) => {
1270
1270
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1271
1271
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1272
- R(
1272
+ U(
1273
1273
  e.space,
1274
1274
  "ESPACE COMMUN",
1275
1275
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1316,7 +1316,7 @@ function tt(e, t, n, s = void 0, i = void 0) {
1316
1316
  return new Promise((r) => {
1317
1317
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1318
1318
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1319
- R(
1319
+ U(
1320
1320
  e.space,
1321
1321
  "ESPACE COMMUN",
1322
1322
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1468,7 +1468,7 @@ async function ot(e, t, n = void 0, s = void 0) {
1468
1468
  }
1469
1469
  function rt(e, t, n, s = void 0, i = void 0) {
1470
1470
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1471
- U(
1471
+ I(
1472
1472
  e,
1473
1473
  n,
1474
1474
  (o) => {
@@ -1492,7 +1492,7 @@ function rt(e, t, n, s = void 0, i = void 0) {
1492
1492
  let K, B;
1493
1493
  const D = [];
1494
1494
  async function ct(e, t = void 0, n = void 0) {
1495
- e.objID && e.objID !== "" ? U(
1495
+ e.objID && e.objID !== "" ? I(
1496
1496
  e,
1497
1497
  (s) => {
1498
1498
  t && t(s);
@@ -2294,7 +2294,7 @@ function Ot(e, t, n = void 0, s = void 0) {
2294
2294
  d.push(w.response.result);
2295
2295
  else {
2296
2296
  const T = w.response.result.find(
2297
- (x) => x.title.includes(c)
2297
+ (R) => R.title.includes(c)
2298
2298
  );
2299
2299
  if (T) {
2300
2300
  n(T);
@@ -2740,7 +2740,7 @@ function qt(e, t = void 0, n = void 0) {
2740
2740
  const o = Z();
2741
2741
  console.log("platformeInfo", o);
2742
2742
  }
2743
- R(
2743
+ U(
2744
2744
  e,
2745
2745
  "Common space",
2746
2746
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2827,11 +2827,11 @@ export {
2827
2827
  M as _3DSpace_file_update,
2828
2828
  ae as _3DSpace_file_update_csr,
2829
2829
  Xe as _3DSpace_file_url_csr,
2830
- U as _3DSpace_get_csrf,
2830
+ I as _3DSpace_get_csrf,
2831
2831
  L as _3DSpace_get_docInfo,
2832
2832
  de as _3DSpace_get_downloadTicket_multidoc,
2833
2833
  qe as _3DSpace_get_multiDocInfo,
2834
- R as _3DSpace_get_securityContexts,
2834
+ U as _3DSpace_get_securityContexts,
2835
2835
  j as _3DSpace_get_ticket,
2836
2836
  tt as _3DSpace_lifecycle_changeRevision,
2837
2837
  Qe as _3DSpace_lifecycle_changeState,