@beam3_dev/api_module 0.0.188 → 0.0.190

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 $e(e, t, s = void 0, n = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const k = {
253
+ const j = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,7 +271,7 @@ function Ne(e, t, s = void 0, n = void 0) {
271
271
  };
272
272
  m(a, {
273
273
  method: "POST",
274
- headers: k,
274
+ headers: j,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  s && s(JSON.parse(d));
@@ -366,7 +366,7 @@ function Ue(e, t, s, n = void 0, i = void 0) {
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
368
368
  m(d, {
369
- headers: k,
369
+ headers: j,
370
370
  method: "PATCH",
371
371
  data: p,
372
372
  type: "json",
@@ -382,7 +382,7 @@ function Fe(e, t, s, n = void 0, i = void 0) {
382
382
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
383
  m(a, {
384
384
  method: "PATCH",
385
- headers: k,
385
+ headers: j,
386
386
  data: JSON.stringify(s),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -393,7 +393,7 @@ function Fe(e, t, s, n = void 0, i = void 0) {
393
393
  }
394
394
  });
395
395
  }
396
- function ke(e, t, s = void 0, n = void 0) {
396
+ function je(e, t, s = void 0, n = 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 L(e, t = void 0, s = void 0, n = void 0) {
482
482
  }
483
483
  });
484
484
  }
485
- async function je(e, t = void 0, s = void 0, n = void 0) {
485
+ async function ke(e, t = void 0, s = void 0, n = 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 b(e, t = void 0, s = void 0) {
548
548
  } else
549
549
  s && s("ERROR : url du 3DSpace non défini.");
550
550
  }
551
- function j(e, t = void 0, s = void 0) {
551
+ function k(e, t = void 0, s = void 0) {
552
552
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
553
553
  U(
554
554
  e,
@@ -835,7 +835,7 @@ async function J(e, t = void 0, s = void 0) {
835
835
  console.log("☠️ error => ", n);
836
836
  }
837
837
  ), new Promise((n, i) => {
838
- j(
838
+ k(
839
839
  e,
840
840
  (r) => {
841
841
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
@@ -1248,7 +1248,7 @@ function Be(e, t = void 0, s = void 0) {
1248
1248
  });
1249
1249
  }
1250
1250
  function Ve(e, t, s, n) {
1251
- j(
1251
+ k(
1252
1252
  e.space,
1253
1253
  t,
1254
1254
  (i) => {
@@ -1266,7 +1266,7 @@ function Ve(e, t, s, n) {
1266
1266
  }
1267
1267
  async function We(e, t, s = void 0, n = void 0) {
1268
1268
  return new Promise((i) => {
1269
- j(e, t, (r) => {
1269
+ k(e, t, (r) => {
1270
1270
  m(r, {
1271
1271
  onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
1272
1272
  onFailure: (o, a, c) => {
@@ -1956,17 +1956,14 @@ function ot(e, t = void 0, s = void 0) {
1956
1956
  };
1957
1957
  w(e, (o) => {
1958
1958
  if (o)
1959
- throw new Error(
1960
- "☠️ token n'est pas renseigner dans le paramètre credentials",
1961
- {
1962
- cause: o
1963
- }
1964
- );
1959
+ throw new Error(o, {
1960
+ cause: o
1961
+ });
1965
1962
  const a = {
1966
1963
  headers: {
1967
1964
  "Content-type": "application/json;charset=UTF-8",
1968
1965
  Accept: "application/json",
1969
- "X-DS-SWYM-CSRFTOKEN": o
1966
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1970
1967
  },
1971
1968
  method: "POST",
1972
1969
  data: JSON.stringify(r),
@@ -2482,9 +2479,9 @@ export {
2482
2479
  U as _3DSpace_get_csrf,
2483
2480
  L as _3DSpace_get_docInfo,
2484
2481
  ee as _3DSpace_get_downloadTicket_multidoc,
2485
- je as _3DSpace_get_multiDocInfo,
2482
+ ke as _3DSpace_get_multiDocInfo,
2486
2483
  $ as _3DSpace_get_securityContexts,
2487
- j as _3DSpace_get_ticket,
2484
+ k as _3DSpace_get_ticket,
2488
2485
  Ee as _3DSpace_lifecycle_changeRevision,
2489
2486
  Le as _3DSpace_lifecycle_changeState,
2490
2487
  Me as _3DSpace_lifecycle_getGraph,
@@ -2552,7 +2549,7 @@ export {
2552
2549
  Ue as patchUserGroups,
2553
2550
  Fe as patchUserGroupsControl,
2554
2551
  Xe as pushDataIn3DSpace,
2555
- ke as readUserGroupControl,
2552
+ je as readUserGroupControl,
2556
2553
  Qe as removeTagToDoc,
2557
2554
  $t as sayHello,
2558
2555
  Se as updateEvent