@beam3_dev/api_module 0.0.186 → 0.0.187

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
@@ -254,7 +254,7 @@ const F = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
257
- function ve(e, t, s = void 0, n = void 0) {
257
+ function Ne(e, t, s = void 0, n = void 0) {
258
258
  const { space: i, currentUser: r } = e, a = `${i}${{
259
259
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
260
260
  }.URIUGr}`, c = {
@@ -283,7 +283,7 @@ function ve(e, t, s = void 0, n = void 0) {
283
283
  }
284
284
  });
285
285
  }
286
- function Ne(e, t, s = void 0, n = void 0) {
286
+ function ve(e, t, s = void 0, n = void 0) {
287
287
  const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
288
288
  f(d, {
289
289
  opts: {
@@ -355,7 +355,7 @@ function Ae(e, t) {
355
355
  method: "DELETE"
356
356
  });
357
357
  }
358
- function ke(e, t, s, n = void 0, i = void 0) {
358
+ function Ue(e, t, s, n = void 0, i = void 0) {
359
359
  const { space: r, tenant: o } = e, a = {
360
360
  URITI: "/3drdfpersist/resources/v1/template-instances",
361
361
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -378,7 +378,7 @@ function ke(e, t, s, n = void 0, i = void 0) {
378
378
  }
379
379
  });
380
380
  }
381
- function Ue(e, t, s, n = void 0, i = void 0) {
381
+ function ke(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
  f(a, {
384
384
  method: "PATCH",
@@ -444,7 +444,7 @@ var z = function(e, t, s, n) {
444
444
  p >= 0 ? (u = d.substr(0, p), m = d.substr(p + 1)) : (u = d, m = ""), l = decodeURIComponent(u), g = decodeURIComponent(m), q(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
445
445
  }
446
446
  return i;
447
- }, N = function(e) {
447
+ }, v = function(e) {
448
448
  switch (typeof e) {
449
449
  case "string":
450
450
  return e;
@@ -457,11 +457,11 @@ var z = function(e, t, s, n) {
457
457
  }
458
458
  }, H = function(e, t, s, n) {
459
459
  return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
460
- var r = encodeURIComponent(N(i)) + s;
460
+ var r = encodeURIComponent(v(i)) + s;
461
461
  return Array.isArray(e[i]) ? e[i].map(function(o) {
462
- return r + encodeURIComponent(N(o));
463
- }).join(t) : r + encodeURIComponent(N(e[i]));
464
- }).filter(Boolean).join(t) : n ? encodeURIComponent(N(n)) + s + encodeURIComponent(N(e)) : "";
462
+ return r + encodeURIComponent(v(o));
463
+ }).join(t) : r + encodeURIComponent(v(e[i]));
464
+ }).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
465
465
  };
466
466
  A.decode = A.parse = z;
467
467
  A.encode = A.stringify = H;
@@ -506,7 +506,7 @@ async function je(e, t = void 0, s = void 0, n = void 0) {
506
506
  }
507
507
  });
508
508
  }
509
- function k(e, t = void 0, s = void 0) {
509
+ function U(e, t = void 0, s = void 0) {
510
510
  if (e.objID && e.objID !== "") {
511
511
  let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
512
512
  f(n, {
@@ -550,7 +550,7 @@ function b(e, t = void 0, s = void 0) {
550
550
  }
551
551
  function j(e, t = void 0, s = void 0) {
552
552
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
553
- k(
553
+ U(
554
554
  e,
555
555
  (i) => {
556
556
  f(n, {
@@ -605,7 +605,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
605
605
  r,
606
606
  o
607
607
  );
608
- e.token ? a() : k(
608
+ e.token ? a() : U(
609
609
  e,
610
610
  t,
611
611
  (c) => {
@@ -656,11 +656,11 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
656
656
  ]
657
657
  }),
658
658
  type: "json",
659
- onComplete(v) {
660
- o && o(v);
659
+ onComplete(N) {
660
+ o && o(N);
661
661
  },
662
- onFailure(v) {
663
- a && a(v);
662
+ onFailure(N) {
663
+ a && a(N);
664
664
  }
665
665
  }, T = e.tenant.toUpperCase();
666
666
  f(
@@ -717,7 +717,7 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
717
717
  method: "POST",
718
718
  data: g,
719
719
  onComplete(_) {
720
- let T = D(), v = {
720
+ let T = D(), N = {
721
721
  method: "POST",
722
722
  headers: {
723
723
  ENO_CSRF_TOKEN: a,
@@ -748,16 +748,16 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
748
748
  ]
749
749
  }),
750
750
  type: "json",
751
- onComplete(U) {
752
- i && i(U);
751
+ onComplete(k) {
752
+ i && i(k);
753
753
  },
754
- onFailure(U) {
755
- r && r(U);
754
+ onFailure(k) {
755
+ r && r(k);
756
756
  }
757
757
  };
758
758
  f(
759
759
  o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
760
- v
760
+ N
761
761
  );
762
762
  },
763
763
  onFailure(_) {
@@ -1278,7 +1278,7 @@ async function We(e, t, s = void 0, n = void 0) {
1278
1278
  }
1279
1279
  function Xe(e, t, s, n = void 0, i = void 0) {
1280
1280
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1281
- k(
1281
+ U(
1282
1282
  e,
1283
1283
  s,
1284
1284
  (o) => {
@@ -1302,7 +1302,7 @@ function Xe(e, t, s, n = void 0, i = void 0) {
1302
1302
  let G, E;
1303
1303
  const P = [];
1304
1304
  async function Ye(e, t = void 0, s = void 0) {
1305
- e.objID && e.objID !== "" ? k(
1305
+ e.objID && e.objID !== "" ? U(
1306
1306
  e,
1307
1307
  (n) => {
1308
1308
  t && t(n);
@@ -1959,7 +1959,7 @@ function ot(e, t = void 0, s = void 0) {
1959
1959
  headers: {
1960
1960
  "Content-type": "application/json;charset=UTF-8",
1961
1961
  Accept: "application/json",
1962
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1962
+ "X-DS-SWYM-CSRFTOKEN": o
1963
1963
  },
1964
1964
  method: "POST",
1965
1965
  data: JSON.stringify(r),
@@ -2374,7 +2374,7 @@ function $t(e) {
2374
2374
  const t = "Hello " + e;
2375
2375
  return console.log(t), t;
2376
2376
  }
2377
- function vt(e, t = void 0, s = void 0) {
2377
+ function Nt(e, t = void 0, s = void 0) {
2378
2378
  return console.log("credentials", e), new Promise((n) => {
2379
2379
  if (e.token === "" && b(e), !e.space || e.space === "") {
2380
2380
  const o = W();
@@ -2455,7 +2455,7 @@ function vt(e, t = void 0, s = void 0) {
2455
2455
  }
2456
2456
  export {
2457
2457
  D as UUID,
2458
- vt as _3DSearch_usersGroup,
2458
+ Nt as _3DSearch_usersGroup,
2459
2459
  Re as _3DSpace_Create_Doc,
2460
2460
  xe as _3DSpace_Update_Doc,
2461
2461
  Ke as _3DSpace_bookmark_addSubsciptions,
@@ -2466,7 +2466,7 @@ export {
2466
2466
  M as _3DSpace_file_update,
2467
2467
  Q as _3DSpace_file_update_csr,
2468
2468
  Pe as _3DSpace_file_url_csr,
2469
- k as _3DSpace_get_csrf,
2469
+ U as _3DSpace_get_csrf,
2470
2470
  L as _3DSpace_get_docInfo,
2471
2471
  ee as _3DSpace_get_downloadTicket_multidoc,
2472
2472
  je as _3DSpace_get_multiDocInfo,
@@ -2519,14 +2519,14 @@ export {
2519
2519
  He as addTagToDoc,
2520
2520
  be as compass_getListAdditionalApps,
2521
2521
  V as couleurs,
2522
- ve as createUserGroups,
2522
+ Ne as createUserGroups,
2523
2523
  te as dataMixing,
2524
2524
  Ae as deleteUserGroups,
2525
2525
  ge as findAdresse,
2526
2526
  Be as getAllContextSecurity,
2527
2527
  Y as getCSRFToken,
2528
2528
  me as getCommunes,
2529
- Ne as getComplementUG,
2529
+ ve as getComplementUG,
2530
2530
  Ve as getDataFrom3DSpace,
2531
2531
  he as getDataFromGouvFr,
2532
2532
  qe as getDatasByTenant,
@@ -2536,8 +2536,8 @@ export {
2536
2536
  Ie as getUserGroupsList,
2537
2537
  X as getUsersGroupRules,
2538
2538
  Ye as get_3DSpace_csrf,
2539
- ke as patchUserGroups,
2540
- Ue as patchUserGroupsControl,
2539
+ Ue as patchUserGroups,
2540
+ ke as patchUserGroupsControl,
2541
2541
  Xe as pushDataIn3DSpace,
2542
2542
  Fe as readUserGroupControl,
2543
2543
  Qe as removeTagToDoc,