@beam3_dev/api_module 0.0.197 → 0.0.198

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
@@ -147,7 +147,7 @@ async function Te(e, t = void 0, s = void 0) {
147
147
  }
148
148
  );
149
149
  }
150
- function W() {
150
+ function X() {
151
151
  let e = {};
152
152
  return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
153
153
  const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
@@ -302,7 +302,7 @@ function Ne(e, t, s = void 0, n = void 0) {
302
302
  }
303
303
  });
304
304
  }
305
- function X(e, t = void 0, s = void 0) {
305
+ function W(e, t = void 0, s = void 0) {
306
306
  const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
307
307
  method: "GET",
308
308
  Accept: "application/json,*/*,test/javascript"
@@ -330,7 +330,7 @@ function Ie(e, t = void 0, s = void 0) {
330
330
  const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
331
331
  if (i && Object.keys(i).length > 0) {
332
332
  const g = l.filter((y) => y.owner === i.email), h = l.filter((y) => y.members.includes(i.email)), S = g.concat(h);
333
- f.iam = S, f.UG = l, f.iamMember = h, X(
333
+ f.iam = S, f.UG = l, f.iamMember = h, W(
334
334
  e,
335
335
  (y) => {
336
336
  f.rules = y, t && t(f);
@@ -428,7 +428,7 @@ var I = {};
428
428
  function q(e, t) {
429
429
  return Object.prototype.hasOwnProperty.call(e, t);
430
430
  }
431
- var z = function(e, t, s, n) {
431
+ var H = function(e, t, s, n) {
432
432
  t = t || "&", s = s || "=";
433
433
  var i = {};
434
434
  if (typeof e != "string" || e.length === 0)
@@ -455,7 +455,7 @@ var z = function(e, t, s, n) {
455
455
  default:
456
456
  return "";
457
457
  }
458
- }, H = function(e, t, s, n) {
458
+ }, z = 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
460
  var r = encodeURIComponent(v(i)) + s;
461
461
  return Array.isArray(e[i]) ? e[i].map(function(o) {
@@ -463,8 +463,8 @@ var z = function(e, t, s, n) {
463
463
  }).join(t) : r + encodeURIComponent(v(e[i]));
464
464
  }).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
465
465
  };
466
- I.decode = I.parse = z;
467
- I.encode = I.stringify = H;
466
+ I.decode = I.parse = H;
467
+ I.encode = I.stringify = z;
468
468
  async function L(e, t = void 0, s = void 0, n = void 0) {
469
469
  const i = e.space;
470
470
  if (t === void 0) {
@@ -1242,7 +1242,7 @@ function Ve(e, t, s, n) {
1242
1242
  }
1243
1243
  );
1244
1244
  }
1245
- async function We(e, t, s = void 0, n = void 0) {
1245
+ async function Xe(e, t, s = void 0, n = void 0) {
1246
1246
  return new Promise((i) => {
1247
1247
  j(e, t, (r) => {
1248
1248
  m(r, {
@@ -1254,7 +1254,7 @@ async function We(e, t, s = void 0, n = void 0) {
1254
1254
  });
1255
1255
  });
1256
1256
  }
1257
- function Xe(e, t, s, n = void 0, i = void 0) {
1257
+ function We(e, t, s, n = void 0, i = void 0) {
1258
1258
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1259
1259
  A(
1260
1260
  e,
@@ -1310,7 +1310,7 @@ async function qe(e, t = void 0, s = void 0) {
1310
1310
  }
1311
1311
  );
1312
1312
  }
1313
- function ze(e, t = void 0, s = void 0) {
1313
+ function He(e, t = void 0, s = void 0) {
1314
1314
  const n = [];
1315
1315
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1316
1316
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1359,7 +1359,7 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
1359
1359
  order_by: "desc",
1360
1360
  tag: "testTag"
1361
1361
  };
1362
- function He(e, t, s = void 0, n = void 0) {
1362
+ function ze(e, t, s = void 0, n = void 0) {
1363
1363
  const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
1364
1364
  uri: "/resources/6w/tags",
1365
1365
  otpCTX: "SecurityContext=preferred",
@@ -2062,7 +2062,7 @@ function dt(e, t, s) {
2062
2062
  function pt(e, t = de, s = void 0, n = void 0) {
2063
2063
  const i = {
2064
2064
  uri: "/api/idea/list",
2065
- comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
2065
+ comId: `/community_id/${t.community_id}`,
2066
2066
  limit: `/limit/${t.limit ? t.limit : 1e3}`,
2067
2067
  page: `/page/${t.page ? t.page : 1}`
2068
2068
  }, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
@@ -2371,7 +2371,7 @@ function $t(e) {
2371
2371
  function vt(e, t = void 0, s = void 0) {
2372
2372
  return console.log("credentials", e), new Promise((n) => {
2373
2373
  if (e.token === "" && b(e), !e.space || e.space === "") {
2374
- const o = W();
2374
+ const o = X();
2375
2375
  console.log("platformeInfo", o);
2376
2376
  }
2377
2377
  k(
@@ -2501,7 +2501,7 @@ export {
2501
2501
  _t as _Iterop_getOneBusinessTableRows,
2502
2502
  gt as _Iterop_jwtUser,
2503
2503
  wt as _Iterop_runProcess,
2504
- W as _getPlateformInfos,
2504
+ X as _getPlateformInfos,
2505
2505
  Te as _getPlatformServices,
2506
2506
  T as _getServiceUrl,
2507
2507
  Ce as _getServiceUrl_3DPassport,
@@ -2510,7 +2510,7 @@ export {
2510
2510
  ye as _setDraggable,
2511
2511
  we as _setDroppable,
2512
2512
  _e as _setupTagger,
2513
- He as addTagToDoc,
2513
+ ze as addTagToDoc,
2514
2514
  be as compass_getListAdditionalApps,
2515
2515
  V as couleurs,
2516
2516
  ve as createUserGroups,
@@ -2524,15 +2524,15 @@ export {
2524
2524
  Ve as getDataFrom3DSpace,
2525
2525
  he as getDataFromGouvFr,
2526
2526
  qe as getDatasByTenant,
2527
- ze as getDatasFrom3DSpace,
2528
- We as getDownloadDocument,
2527
+ He as getDatasFrom3DSpace,
2528
+ Xe as getDownloadDocument,
2529
2529
  Ze as getInfoDocTags,
2530
2530
  Ie as getUserGroupsList,
2531
- X as getUsersGroupRules,
2531
+ W as getUsersGroupRules,
2532
2532
  Ye as get_3DSpace_csrf,
2533
2533
  ke as patchUserGroups,
2534
2534
  Fe as patchUserGroupsControl,
2535
- Xe as pushDataIn3DSpace,
2535
+ We as pushDataIn3DSpace,
2536
2536
  Ue as readUserGroupControl,
2537
2537
  Qe as removeTagToDoc,
2538
2538
  $t as sayHello,