@beam3_dev/api_module 0.0.202 → 0.0.203

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
@@ -34,7 +34,7 @@ const V = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function ge(e, t = void 0, s = void 0) {
37
+ async function he(e, t = void 0, s = void 0) {
38
38
  const n = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
@@ -50,7 +50,7 @@ async function ge(e, t = void 0, s = void 0) {
50
50
  s && s(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function he(e, t = void 0, s = void 0) {
53
+ async function ye(e, t = void 0, s = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -65,7 +65,7 @@ async function he(e, t = void 0, s = void 0) {
65
65
  s && s(n), console.error("Erreur : " + n);
66
66
  });
67
67
  }
68
- async function ye(e, t = V) {
68
+ async function Se(e, t = V) {
69
69
  let s = N.now().year;
70
70
  const n = e, i = [], r = (a) => {
71
71
  for (let c in a)
@@ -100,13 +100,13 @@ async function ye(e, t = V) {
100
100
  return a;
101
101
  })();
102
102
  }
103
- function Se(e, t, s) {
103
+ function X(e, t, s) {
104
104
  const { myArray: n, chunk: i, fn_to_call: r } = e, o = [];
105
105
  for (let a = 0; a < n.length; a += i) {
106
106
  const c = n.slice(a, a + i);
107
107
  o.push(c);
108
108
  }
109
- X(
109
+ W(
110
110
  { chunks: o, initLoop: 0, fn: r },
111
111
  (a) => {
112
112
  t && t(a);
@@ -116,7 +116,7 @@ function Se(e, t, s) {
116
116
  }
117
117
  );
118
118
  }
119
- function X(e, t, s) {
119
+ function W(e, t, s) {
120
120
  const { chunks: n, initLoop: i, fn: r } = e, o = (a) => {
121
121
  r(
122
122
  n[a],
@@ -180,7 +180,7 @@ async function be(e, t = void 0, s = void 0) {
180
180
  }
181
181
  );
182
182
  }
183
- function W() {
183
+ function Y() {
184
184
  let e = {};
185
185
  return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
186
186
  const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
@@ -335,7 +335,7 @@ function Ae(e, t, s = void 0, n = void 0) {
335
335
  }
336
336
  });
337
337
  }
338
- function Y(e, t = void 0, s = void 0) {
338
+ function q(e, t = void 0, s = void 0) {
339
339
  const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
340
340
  method: "GET",
341
341
  Accept: "application/json,*/*,test/javascript"
@@ -363,7 +363,7 @@ function ke(e, t = void 0, s = void 0) {
363
363
  const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
364
364
  if (i && Object.keys(i).length > 0) {
365
365
  const g = l.filter((S) => S.owner === i.email), h = l.filter((S) => S.members.includes(i.email)), y = g.concat(h);
366
- f.iam = y, f.UG = l, f.iamMember = h, Y(
366
+ f.iam = y, f.UG = l, f.iamMember = h, q(
367
367
  e,
368
368
  (S) => {
369
369
  f.rules = S, t && t(f);
@@ -444,7 +444,7 @@ function xe(e, t, s = void 0, n = void 0) {
444
444
  }
445
445
  });
446
446
  }
447
- async function q(e, t, s) {
447
+ async function H(e, t, s) {
448
448
  if (e.space) {
449
449
  const n = `${e.space}/resources/v1/application/CSRF`;
450
450
  m(n, {
@@ -458,10 +458,10 @@ async function q(e, t, s) {
458
458
  }
459
459
  }
460
460
  var I = {};
461
- function H(e, t) {
461
+ function z(e, t) {
462
462
  return Object.prototype.hasOwnProperty.call(e, t);
463
463
  }
464
- var z = function(e, t, s, n) {
464
+ var Q = function(e, t, s, n) {
465
465
  t = t || "&", s = s || "=";
466
466
  var i = {};
467
467
  if (typeof e != "string" || e.length === 0)
@@ -474,7 +474,7 @@ var z = function(e, t, s, n) {
474
474
  o > 0 && a > o && (a = o);
475
475
  for (var c = 0; c < a; ++c) {
476
476
  var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
477
- p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), H(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
477
+ p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
478
478
  }
479
479
  return i;
480
480
  }, v = function(e) {
@@ -488,7 +488,7 @@ var z = function(e, t, s, n) {
488
488
  default:
489
489
  return "";
490
490
  }
491
- }, Q = function(e, t, s, n) {
491
+ }, Z = function(e, t, s, n) {
492
492
  return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
493
493
  var r = encodeURIComponent(v(i)) + s;
494
494
  return Array.isArray(e[i]) ? e[i].map(function(o) {
@@ -496,8 +496,8 @@ var z = function(e, t, s, n) {
496
496
  }).join(t) : r + encodeURIComponent(v(e[i]));
497
497
  }).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
498
498
  };
499
- I.decode = I.parse = z;
500
- I.encode = I.stringify = Q;
499
+ I.decode = I.parse = Q;
500
+ I.encode = I.stringify = Z;
501
501
  async function L(e, t = void 0, s = void 0, n = void 0) {
502
502
  const i = e.space;
503
503
  if (t === void 0) {
@@ -628,7 +628,7 @@ function Pe(e, t, s, n = void 0, i = void 0) {
628
628
  });
629
629
  }
630
630
  function M(e, t, s, n, i, r = void 0, o = void 0) {
631
- const a = () => Z(
631
+ const a = () => ee(
632
632
  e,
633
633
  t,
634
634
  s,
@@ -646,7 +646,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
646
646
  }
647
647
  );
648
648
  }
649
- function Z(e, t, s, n, i, r, o = void 0, a = void 0) {
649
+ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
650
650
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
651
651
  m(c, {
652
652
  method: "PUT",
@@ -857,7 +857,7 @@ async function J(e, t = void 0, s = void 0) {
857
857
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
858
858
  )), (e.space === "" || !e.space) && (console.warn(
859
859
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
860
- ), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && q(
860
+ ), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
861
861
  e,
862
862
  (n) => {
863
863
  e.token = n;
@@ -902,24 +902,20 @@ async function J(e, t = void 0, s = void 0) {
902
902
  );
903
903
  });
904
904
  }
905
- async function ee(e, t, s = void 0, n = void 0) {
906
- if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
907
- const i = {
908
- myArray: t,
909
- chunk: 80,
910
- fn_to_call: te
911
- };
912
- chunkArray(i, (r) => {
913
- s && s(r);
914
- });
915
- } else
916
- console.warn(
917
- "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
918
- ), n && n(
919
- "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
920
- );
921
- }
922
- function te(e, t, s = void 0, n = void 0, i = void 0) {
905
+ async function te(e, t, s = void 0, n = void 0) {
906
+ typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
907
+ myArray: t,
908
+ chunk: 80,
909
+ fn_to_call: ne
910
+ }, (r) => {
911
+ s && s(r);
912
+ }) : (console.warn(
913
+ "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
914
+ ), n && n(
915
+ "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
916
+ ));
917
+ }
918
+ function ne(e, t, s = void 0, n = void 0, i = void 0) {
923
919
  const r = [];
924
920
  t.forEach((c) => {
925
921
  r.push({
@@ -1344,13 +1340,13 @@ function Qe(e, t = void 0, s = void 0) {
1344
1340
  e,
1345
1341
  i.objID,
1346
1342
  (o) => {
1347
- n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), ne(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1343
+ n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), se(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1348
1344
  }
1349
1345
  );
1350
1346
  });
1351
1347
  }
1352
- function ne(e, t, s = void 0, n = void 0) {
1353
- ee(
1348
+ function se(e, t, s = void 0, n = void 0) {
1349
+ te(
1354
1350
  e,
1355
1351
  G,
1356
1352
  (i) => {
@@ -1362,7 +1358,7 @@ function ne(e, t, s = void 0, n = void 0) {
1362
1358
  }
1363
1359
  );
1364
1360
  }
1365
- const se = "FA35FB9B177A280065800EA0000F599C", ie = [
1361
+ const ie = "FA35FB9B177A280065800EA0000F599C", ae = [
1366
1362
  "swym",
1367
1363
  "3dspace",
1368
1364
  "drive",
@@ -1376,8 +1372,8 @@ const se = "FA35FB9B177A280065800EA0000F599C", ie = [
1376
1372
  where: "ds6w:where",
1377
1373
  who: "ds6w:who",
1378
1374
  why: "ds6w:why"
1379
- }, ae = {
1380
- objId: se,
1375
+ }, oe = {
1376
+ objId: ie,
1381
1377
  pred: "who",
1382
1378
  order_by: "desc",
1383
1379
  tag: "testTag"
@@ -1418,7 +1414,7 @@ function Ze(e, t, s = void 0, n = void 0) {
1418
1414
  o,
1419
1415
  (g) => {
1420
1416
  const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1421
- l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, oe(
1417
+ l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, re(
1422
1418
  e,
1423
1419
  t,
1424
1420
  (_) => {
@@ -1442,7 +1438,7 @@ function Ze(e, t, s = void 0, n = void 0) {
1442
1438
  }
1443
1439
  });
1444
1440
  }
1445
- function oe(e, t, s = void 0, n = void 0) {
1441
+ function re(e, t, s = void 0, n = void 0) {
1446
1442
  console.log("obj ", t);
1447
1443
  const i = t.info.name, r = {
1448
1444
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1492,7 +1488,7 @@ function oe(e, t, s = void 0, n = void 0) {
1492
1488
  }
1493
1489
  },
1494
1490
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1495
- order_by: ae.order_by,
1491
+ order_by: oe.order_by,
1496
1492
  order_field: "relevance",
1497
1493
  select_snippets: [
1498
1494
  "ds6w:snippet",
@@ -1503,7 +1499,7 @@ function oe(e, t, s = void 0, n = void 0) {
1503
1499
  ],
1504
1500
  nresults: 40,
1505
1501
  start: "0",
1506
- source: ie,
1502
+ source: ae,
1507
1503
  tenant: e.tenant,
1508
1504
  login: {
1509
1505
  "3dspace": {
@@ -1682,7 +1678,7 @@ function it(e, t = void 0, s = void 0) {
1682
1678
  role: l.role,
1683
1679
  access: l.access
1684
1680
  };
1685
- re(
1681
+ ce(
1686
1682
  e,
1687
1683
  l.id,
1688
1684
  (h) => {
@@ -1699,7 +1695,7 @@ function it(e, t = void 0, s = void 0) {
1699
1695
  });
1700
1696
  });
1701
1697
  }
1702
- function re(e, t, s, n) {
1698
+ function ce(e, t, s, n) {
1703
1699
  const i = `${e.space}/api/community/listmembers`, r = {
1704
1700
  params: {
1705
1701
  page: e.page ? e.page : 1,
@@ -1759,10 +1755,10 @@ function ot(e, t, s = void 0, n = void 0) {
1759
1755
  id_msg: "",
1760
1756
  senderId: e.currentUser.login,
1761
1757
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1762
- msg: de(t.msg)
1758
+ msg: pe(t.msg)
1763
1759
  };
1764
1760
  let d = !1;
1765
- ce(
1761
+ de(
1766
1762
  a.users,
1767
1763
  (p) => {
1768
1764
  p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
@@ -1793,7 +1789,7 @@ function ot(e, t, s = void 0, n = void 0) {
1793
1789
  });
1794
1790
  }, 500);
1795
1791
  }
1796
- function ce(e, t, s, n) {
1792
+ function de(e, t, s, n) {
1797
1793
  const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1798
1794
  w(e, (r) => {
1799
1795
  m(i, {
@@ -1859,14 +1855,14 @@ function R(e, t, s = void 0, n = void 0) {
1859
1855
  });
1860
1856
  });
1861
1857
  }
1862
- function de(e) {
1858
+ function pe(e) {
1863
1859
  const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1864
1860
  return `<p>${e} </p>
1865
1861
  <br/>
1866
1862
  <hr/>
1867
1863
  <p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
1868
1864
  }
1869
- const pe = {
1865
+ const ue = {
1870
1866
  title: "TEST DEV COMMUNITY IDEA",
1871
1867
  // titre du post
1872
1868
  community_id: "YXdA5x4DSUKtlAi2wmnyTA",
@@ -1887,7 +1883,7 @@ function rt(e, t, s = void 0, n = void 0) {
1887
1883
  // String, le nom de l'affaire
1888
1884
  community_id: r?.id !== void 0 ? r.id : o.id,
1889
1885
  // String, l'id de la communauté
1890
- message: ue(t.text_html),
1886
+ message: le(t.text_html),
1891
1887
  // STRING => le contenue du message doit être au format HTML
1892
1888
  published: 1
1893
1889
  // 1 publier, 0 non publier
@@ -2082,7 +2078,7 @@ function ut(e, t, s) {
2082
2078
  m(n.base + n.uri, o);
2083
2079
  });
2084
2080
  }
2085
- function lt(e, t = pe, s = void 0, n = void 0) {
2081
+ function lt(e, t = ue, s = void 0, n = void 0) {
2086
2082
  const i = {
2087
2083
  uri: "/api/idea/list",
2088
2084
  comId: `/community_id/${t.community_id}`,
@@ -2106,7 +2102,7 @@ function lt(e, t = pe, s = void 0, n = void 0) {
2106
2102
  });
2107
2103
  });
2108
2104
  }
2109
- function ue(e) {
2105
+ function le(e) {
2110
2106
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
2111
2107
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
2112
2108
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -2394,7 +2390,7 @@ function Nt(e) {
2394
2390
  function It(e, t = void 0, s = void 0) {
2395
2391
  return console.log("credentials", e), new Promise((n) => {
2396
2392
  if (e.token === "" && b(e), !e.space || e.space === "") {
2397
- const o = W();
2393
+ const o = Y();
2398
2394
  console.log("platformeInfo", o);
2399
2395
  }
2400
2396
  k(
@@ -2479,13 +2475,13 @@ export {
2479
2475
  Be as _3DSpace_bookmark_newWorkspace,
2480
2476
  b as _3DSpace_csrf,
2481
2477
  J as _3DSpace_download_doc,
2482
- ee as _3DSpace_download_multidoc,
2478
+ te as _3DSpace_download_multidoc,
2483
2479
  M as _3DSpace_file_update,
2484
- Z as _3DSpace_file_update_csr,
2480
+ ee as _3DSpace_file_update_csr,
2485
2481
  Pe as _3DSpace_file_url_csr,
2486
2482
  A as _3DSpace_get_csrf,
2487
2483
  L as _3DSpace_get_docInfo,
2488
- te as _3DSpace_get_downloadTicket_multidoc,
2484
+ ne as _3DSpace_get_downloadTicket_multidoc,
2489
2485
  Re as _3DSpace_get_multiDocInfo,
2490
2486
  k as _3DSpace_get_securityContexts,
2491
2487
  j as _3DSpace_get_ticket,
@@ -2497,13 +2493,13 @@ export {
2497
2493
  ot as _3DSwym_buildDirectMessage,
2498
2494
  dt as _3DSwym_deleteIdea,
2499
2495
  ut as _3DSwym_editIdea,
2500
- ce as _3DSwym_findCommunityToInstantMSG,
2496
+ de as _3DSwym_findCommunityToInstantMSG,
2501
2497
  it as _3DSwym_getAllCommunities,
2502
2498
  lt as _3DSwym_getAllListIdeas,
2503
2499
  nt as _3DSwym_getAllNews,
2504
2500
  st as _3DSwym_getFamiliarPeople,
2505
2501
  at as _3DSwym_getIdeaStatusMaturity,
2506
- re as _3DSwym_getMembersCommunity,
2502
+ ce as _3DSwym_getMembersCommunity,
2507
2503
  pt as _3DSwym_getOneIdea,
2508
2504
  w as _3DSwym_get_Token,
2509
2505
  ft as _3DSwym_get_currentUser,
@@ -2524,7 +2520,7 @@ export {
2524
2520
  Tt as _Iterop_getOneBusinessTableRows,
2525
2521
  yt as _Iterop_jwtUser,
2526
2522
  Ct as _Iterop_runProcess,
2527
- W as _getPlateformInfos,
2523
+ Y as _getPlateformInfos,
2528
2524
  be as _getPlatformServices,
2529
2525
  T as _getServiceUrl,
2530
2526
  Oe as _getServiceUrl_3DPassport,
@@ -2534,25 +2530,25 @@ export {
2534
2530
  Ce as _setDroppable,
2535
2531
  Te as _setupTagger,
2536
2532
  Ze as addTagToDoc,
2537
- Se as chunkArray,
2533
+ X as chunkArray,
2538
2534
  $e as compass_getListAdditionalApps,
2539
2535
  V as couleurs,
2540
2536
  Ie as createUserGroups,
2541
- ne as dataMixing,
2537
+ se as dataMixing,
2542
2538
  Fe as deleteUserGroups,
2543
- he as findAdresse,
2539
+ ye as findAdresse,
2544
2540
  Xe as getAllContextSecurity,
2545
- q as getCSRFToken,
2546
- ge as getCommunes,
2541
+ H as getCSRFToken,
2542
+ he as getCommunes,
2547
2543
  Ae as getComplementUG,
2548
2544
  We as getDataFrom3DSpace,
2549
- ye as getDataFromGouvFr,
2545
+ Se as getDataFromGouvFr,
2550
2546
  ze as getDatasByTenant,
2551
2547
  Qe as getDatasFrom3DSpace,
2552
2548
  Ye as getDownloadDocument,
2553
2549
  tt as getInfoDocTags,
2554
2550
  ke as getUserGroupsList,
2555
- Y as getUsersGroupRules,
2551
+ q as getUsersGroupRules,
2556
2552
  He as get_3DSpace_csrf,
2557
2553
  Ue as patchUserGroups,
2558
2554
  je as patchUserGroupsControl,