@beam3_dev/api_module 0.0.168 → 0.0.170

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
@@ -250,7 +250,7 @@ function be(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const F = {
253
+ const U = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,7 +271,7 @@ function Ne(e, t, n = void 0, s = void 0) {
271
271
  };
272
272
  m(a, {
273
273
  method: "POST",
274
- headers: F,
274
+ headers: U,
275
275
  data: JSON.stringify(r),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
@@ -366,7 +366,7 @@ function Ae(e, t, n, s = void 0, i = void 0) {
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, r = n, d = `${c}${a.URIUGr}/${t}`, p = JSON.stringify(r);
368
368
  m(d, {
369
- headers: F,
369
+ headers: U,
370
370
  method: "PATCH",
371
371
  data: p,
372
372
  type: "json",
@@ -382,7 +382,7 @@ function ke(e, t, n, s = void 0, i = void 0) {
382
382
  const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
383
  m(a, {
384
384
  method: "PATCH",
385
- headers: F,
385
+ headers: U,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -393,7 +393,7 @@ function ke(e, t, n, s = void 0, i = void 0) {
393
393
  }
394
394
  });
395
395
  }
396
- function Fe(e, t, n = void 0, s = void 0) {
396
+ function Ue(e, t, n = void 0, s = void 0) {
397
397
  const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
398
398
  m(o, {
399
399
  opts: {
@@ -482,7 +482,7 @@ async function H(e, t = void 0, n = void 0, s = void 0) {
482
482
  }
483
483
  });
484
484
  }
485
- async function Ue(e, t = void 0, n = void 0, s = void 0) {
485
+ async function Fe(e, t = void 0, n = void 0, s = void 0) {
486
486
  const i = e.space;
487
487
  if (t === void 0) {
488
488
  console.log("Le paramètre docids est obligatoire");
@@ -548,7 +548,7 @@ function T(e, t = void 0, n = void 0) {
548
548
  } else
549
549
  n && n("ERROR : url du 3DSpace non défini.");
550
550
  }
551
- function U(e, t = void 0, n = void 0) {
551
+ function F(e, t = void 0, n = void 0) {
552
552
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
553
553
  A(
554
554
  e,
@@ -628,13 +628,11 @@ function q(e, t, n, s, i, c, o = void 0, a = void 0) {
628
628
  let _ = {
629
629
  method: "PUT",
630
630
  headers: {
631
- SecurityContext: e.ctx
631
+ SecurityContext: "ctx::" + e.ctx
632
632
  },
633
633
  data: JSON.stringify({
634
634
  csrf: f,
635
635
  data: [{
636
- id: t,
637
- updateAction: "NONE",
638
636
  relateddata: {
639
637
  files: [{
640
638
  dataelements: {
@@ -643,7 +641,9 @@ function q(e, t, n, s, i, c, o = void 0, a = void 0) {
643
641
  },
644
642
  updateAction: "REVISE"
645
643
  }]
646
- }
644
+ },
645
+ id: t,
646
+ updateAction: "NONE"
647
647
  }]
648
648
  }),
649
649
  type: "json",
@@ -655,7 +655,7 @@ function q(e, t, n, s, i, c, o = void 0, a = void 0) {
655
655
  }
656
656
  };
657
657
  m(
658
- e.space + `/resources/v1/modeler/documents/${t}`,
658
+ e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${e.tenant.toUpperCase()}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
659
659
  _
660
660
  );
661
661
  }, h.onFailure = function(S) {
@@ -799,7 +799,7 @@ async function D(e, t = void 0, n = void 0) {
799
799
  console.log("☠️ error => ", s);
800
800
  }
801
801
  ), new Promise((s, i) => {
802
- U(
802
+ F(
803
803
  e,
804
804
  (c) => {
805
805
  e?.returnType === "blob" ? (console.log("ticketURL blob", c), fetch(c).then((o) => o.blob()).then((o) => {
@@ -1200,7 +1200,7 @@ function Ee(e, t = void 0, n = void 0) {
1200
1200
  });
1201
1201
  }
1202
1202
  function Ke(e, t, n, s) {
1203
- U(
1203
+ F(
1204
1204
  e.space,
1205
1205
  t,
1206
1206
  (i) => {
@@ -1218,7 +1218,7 @@ function Ke(e, t, n, s) {
1218
1218
  }
1219
1219
  async function Ve(e, t, n = void 0, s = void 0) {
1220
1220
  return new Promise((i) => {
1221
- U(e, t, (c) => {
1221
+ F(e, t, (c) => {
1222
1222
  m(c, {
1223
1223
  onComplete: (o, a, r) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, r), i),
1224
1224
  onFailure: (o, a, r) => {
@@ -2264,9 +2264,9 @@ export {
2264
2264
  A as _3DSpace_get_csrf,
2265
2265
  H as _3DSpace_get_docInfo,
2266
2266
  Z as _3DSpace_get_downloadTicket_multidoc,
2267
- Ue as _3DSpace_get_multiDocInfo,
2267
+ Fe as _3DSpace_get_multiDocInfo,
2268
2268
  N as _3DSpace_get_securityContexts,
2269
- U as _3DSpace_get_ticket,
2269
+ F as _3DSpace_get_ticket,
2270
2270
  Me as _3DSpace_lifecycle_changeRevision,
2271
2271
  xe as _3DSpace_lifecycle_changeState,
2272
2272
  De as _3DSpace_lifecycle_getGraph,
@@ -2328,7 +2328,7 @@ export {
2328
2328
  Ae as patchUserGroups,
2329
2329
  ke as patchUserGroupsControl,
2330
2330
  Be as pushDataIn3DSpace,
2331
- Fe as readUserGroupControl,
2331
+ Ue as readUserGroupControl,
2332
2332
  ze as removeTagToDoc,
2333
2333
  St as sayHello,
2334
2334
  he as updateEvent