@beam3_dev/api_module 0.0.348 → 0.0.350

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 z = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function Ue(e, n = void 0, t = void 0) {
37
+ async function xe(e, n = void 0, t = void 0) {
38
38
  const i = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + i,
@@ -50,7 +50,7 @@ async function Ue(e, n = void 0, t = void 0) {
50
50
  t && t(s), console.error("Erreur : " + s);
51
51
  });
52
52
  }
53
- async function xe(e, n = void 0, t = void 0) {
53
+ async function Ue(e, n = void 0, t = 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 xe(e, n = void 0, t = void 0) {
65
65
  t && t(i), console.error("Erreur : " + i);
66
66
  });
67
67
  }
68
- async function Fe(e, n = z) {
68
+ async function Re(e, n = z) {
69
69
  let t = T.now().year;
70
70
  const i = e, s = [], r = (a) => {
71
71
  for (let c in a)
@@ -134,7 +134,7 @@ function Q(e, n, t) {
134
134
  };
135
135
  a(r);
136
136
  }
137
- async function Ne(e, n, t = !0) {
137
+ async function Fe(e, n, t = !0) {
138
138
  const i = e.events.findIndex((s) => s.uuid === n.uuid);
139
139
  return i === -1 ? e.events.push(n) : t ? e.events[i] = n : e.events.splice(i, 1), e.length > 0 && e.sort((s, r) => s.start - r.start), e;
140
140
  }
@@ -143,7 +143,7 @@ function m(e, n) {
143
143
  t.authenticatedRequest(e, n);
144
144
  });
145
145
  }
146
- function Ie(e, n, t) {
146
+ function Ne(e, n, t) {
147
147
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (i) => {
148
148
  i.draggable(e, {
149
149
  data: n,
@@ -151,7 +151,7 @@ function Ie(e, n, t) {
151
151
  });
152
152
  });
153
153
  }
154
- function Re(e, n = void 0) {
154
+ function ke(e, n = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (t) => {
156
156
  let i;
157
157
  i === void 0 && (i = t.createProxy({
@@ -160,7 +160,7 @@ function Re(e, n = void 0) {
160
160
  }), n !== void 0 && i.addEvent("onFilterSubjectsChange", n)), i.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function ke(e, n) {
163
+ function Ie(e, n) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
165
165
  t.droppable(e, {
166
166
  drop: n
@@ -209,7 +209,7 @@ function ve(e, n = void 0, t = void 0) {
209
209
  });
210
210
  }
211
211
  }
212
- function M(e, n = void 0, t = void 0) {
212
+ function J(e, n = void 0, t = void 0) {
213
213
  if (e.tenant) {
214
214
  const i = `https://${e.tenant.toLowerCase()}-eu1-compass.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?platform=${e.tenant.toUpperCase()}&cors=true&xrequestedwith=xmlhttprequest`;
215
215
  m(i, {
@@ -297,7 +297,7 @@ function Le(e, n = void 0, t = void 0) {
297
297
  }
298
298
  });
299
299
  }
300
- function Me(e, n, t = void 0, i = void 0) {
300
+ function Je(e, n, t = void 0, i = void 0) {
301
301
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
302
302
  m(s, {
303
303
  onComplete(r, o, a) {
@@ -310,11 +310,11 @@ function Me(e, n, t = void 0, i = void 0) {
310
310
  }
311
311
  });
312
312
  }
313
- const F = {
313
+ const R = {
314
314
  "Content-Type": "application/json",
315
315
  Accept: "application/json,text/javascript,*/*"
316
316
  };
317
- function Je(e, n, t = void 0, i = void 0) {
317
+ function Me(e, n, t = void 0, i = void 0) {
318
318
  const { space: s, currentUser: r } = e, a = `${s}${{
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
320
320
  }.URIUGr}`, c = {
@@ -331,7 +331,7 @@ function Je(e, n, t = void 0, i = void 0) {
331
331
  };
332
332
  m(a, {
333
333
  method: "POST",
334
- headers: F,
334
+ headers: R,
335
335
  data: JSON.stringify(c),
336
336
  onComplete(d) {
337
337
  t && t(JSON.parse(d));
@@ -432,7 +432,7 @@ function Ee(e, n, t) {
432
432
  opt: "?select=uri,title,owner,members"
433
433
  }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
434
434
  method: "POST",
435
- headers: F,
435
+ headers: R,
436
436
  data: JSON.stringify({ groups: s })
437
437
  };
438
438
  try {
@@ -479,7 +479,7 @@ function Ke(e, n, t) {
479
479
  opt: "?person_ident=email"
480
480
  }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
481
481
  method: "POST",
482
- headers: F,
482
+ headers: R,
483
483
  data: JSON.stringify({ users: s })
484
484
  };
485
485
  try {
@@ -535,7 +535,7 @@ function Xe(e, n, t, i = void 0, s = void 0) {
535
535
  OPTsTenant: `tenant=dstenant:${o}`
536
536
  }, c = t, d = `${r}${a.URIUGr}/${n}`, u = JSON.stringify(c);
537
537
  m(d, {
538
- headers: F,
538
+ headers: R,
539
539
  method: "PATCH",
540
540
  data: u,
541
541
  type: "json",
@@ -551,7 +551,7 @@ function We(e, n, t, i = void 0, s = void 0) {
551
551
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
552
552
  m(a, {
553
553
  method: "PATCH",
554
- headers: F,
554
+ headers: R,
555
555
  data: JSON.stringify(t),
556
556
  type: "json",
557
557
  onComplete(d) {
@@ -593,7 +593,7 @@ async function te(e, n, t) {
593
593
  });
594
594
  }
595
595
  }
596
- var x = {};
596
+ var U = {};
597
597
  function ne(e, n) {
598
598
  return Object.prototype.hasOwnProperty.call(e, n);
599
599
  }
@@ -613,7 +613,7 @@ var se = function(e, n, t, i) {
613
613
  u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(s, l) ? Array.isArray(s[l]) ? s[l].push(g) : s[l] = [s[l], g] : s[l] = g;
614
614
  }
615
615
  return s;
616
- }, U = function(e) {
616
+ }, x = function(e) {
617
617
  switch (typeof e) {
618
618
  case "string":
619
619
  return e;
@@ -626,15 +626,15 @@ var se = function(e, n, t, i) {
626
626
  }
627
627
  }, ie = function(e, n, t, i) {
628
628
  return n = n || "&", t = t || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(s) {
629
- var r = encodeURIComponent(U(s)) + t;
629
+ var r = encodeURIComponent(x(s)) + t;
630
630
  return Array.isArray(e[s]) ? e[s].map(function(o) {
631
- return r + encodeURIComponent(U(o));
632
- }).join(n) : r + encodeURIComponent(U(e[s]));
633
- }).filter(Boolean).join(n) : i ? encodeURIComponent(U(i)) + t + encodeURIComponent(U(e)) : "";
631
+ return r + encodeURIComponent(x(o));
632
+ }).join(n) : r + encodeURIComponent(x(e[s]));
633
+ }).filter(Boolean).join(n) : i ? encodeURIComponent(x(i)) + t + encodeURIComponent(x(e)) : "";
634
634
  };
635
- x.decode = x.parse = se;
636
- x.encode = x.stringify = ie;
637
- async function J(e, n = void 0, t = void 0, i = void 0) {
635
+ U.decode = U.parse = se;
636
+ U.encode = U.stringify = ie;
637
+ async function M(e, n = void 0, t = void 0, i = void 0) {
638
638
  const s = e.space;
639
639
  if (n === void 0) {
640
640
  console.log("Le paramètre docid est obligatoire");
@@ -657,7 +657,7 @@ async function Ye(e, n = void 0, t = void 0, i = void 0) {
657
657
  console.log("Le paramètre docids est obligatoire");
658
658
  return;
659
659
  }
660
- let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = x.stringify({
660
+ let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = U.stringify({
661
661
  $ids: n.toString().replace('"', "").replace("[", "").replace("]", "")
662
662
  });
663
663
  m(r, {
@@ -675,7 +675,7 @@ async function Ye(e, n = void 0, t = void 0, i = void 0) {
675
675
  }
676
676
  });
677
677
  }
678
- function I(e, n = void 0, t = void 0) {
678
+ function N(e, n = void 0, t = void 0) {
679
679
  if (e.objID && e.objID !== "") {
680
680
  let i = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
681
681
  m(i, {
@@ -719,7 +719,7 @@ function b(e, n = void 0, t = void 0) {
719
719
  }
720
720
  function j(e, n = void 0, t = void 0) {
721
721
  let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
722
- I(
722
+ N(
723
723
  e,
724
724
  (s) => {
725
725
  m(i, {
@@ -774,7 +774,7 @@ function G(e, n, t, i, s, r = void 0, o = void 0) {
774
774
  r,
775
775
  o
776
776
  );
777
- e.token ? a() : I(
777
+ e.token ? a() : N(
778
778
  e,
779
779
  n,
780
780
  (c) => {
@@ -921,12 +921,12 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
921
921
  t,
922
922
  n,
923
923
  (_) => {
924
- const k = new DOMParser().parseFromString(
924
+ const I = new DOMParser().parseFromString(
925
925
  _,
926
926
  "text/html"
927
927
  ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
928
928
  a
929
- )}/contents?receipt=${encodeURIComponent(k)}`;
929
+ )}/contents?receipt=${encodeURIComponent(I)}`;
930
930
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
931
931
  const D = JSON.stringify({
932
932
  actions: [],
@@ -953,14 +953,14 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
953
953
  },
954
954
  data: D,
955
955
  type: "json",
956
- onComplete(N, Ce, be) {
957
- i && i(N);
956
+ onComplete(F, Ce, be) {
957
+ i && i(F);
958
958
  },
959
- onFailure(N) {
959
+ onFailure(F) {
960
960
  console.warn(
961
961
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
962
- { url: v, bodyRequest: D, err: N }
963
- ), s && s(N);
962
+ { url: v, bodyRequest: D, err: F }
963
+ ), s && s(F);
964
964
  }
965
965
  });
966
966
  },
@@ -991,7 +991,7 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
991
991
  );
992
992
  }
993
993
  async function Ze(e, n, t, i = void 0, s = void 0) {
994
- e.space, e.token, e.ctx, J(
994
+ e.space, e.token, e.ctx, M(
995
995
  e,
996
996
  n,
997
997
  (r) => {
@@ -1137,7 +1137,7 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1137
1137
  }
1138
1138
  });
1139
1139
  }
1140
- function R(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
1140
+ function k(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
1141
1141
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1142
1142
  m(a, {
1143
1143
  method: "GET",
@@ -1372,7 +1372,7 @@ function st(e, n, t = void 0, i = void 0) {
1372
1372
  return new Promise((s) => {
1373
1373
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1374
1374
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1375
- R(
1375
+ k(
1376
1376
  e.space,
1377
1377
  "ESPACE COMMUN",
1378
1378
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1413,7 +1413,7 @@ function it(e, n, t = void 0, i = void 0) {
1413
1413
  return new Promise((s) => {
1414
1414
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1415
1415
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1416
- R(
1416
+ k(
1417
1417
  e.space,
1418
1418
  "ESPACE COMMUN",
1419
1419
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1460,7 +1460,7 @@ function ot(e, n, t, i = void 0, s = void 0) {
1460
1460
  return new Promise((r) => {
1461
1461
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1462
1462
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1463
- R(
1463
+ k(
1464
1464
  e.space,
1465
1465
  "ESPACE COMMUN",
1466
1466
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1552,7 +1552,83 @@ function at(e, n, t = void 0, i = void 0) {
1552
1552
  m(d, p);
1553
1553
  });
1554
1554
  }
1555
- function rt(e, n) {
1555
+ function rt(e) {
1556
+ return new Promise((n, t) => {
1557
+ const { _fedSearch: i, currentTenant: s, ctx: r } = e;
1558
+ r || t({ success: !1, msg: "getBookmarksRoot: ctx is missing in credentials" }), i || t({ success: !1, msg: "getBookmarksRoot: _fedSearch is missing in credentials" }), s || t({ success: !1, msg: "getBookmarksRoot: currentTenant is missing in credentials" });
1559
+ const o = {
1560
+ base: i,
1561
+ uri: "/federated/search",
1562
+ opt: `?tenant=${s}`
1563
+ }, a = {
1564
+ select_predicate: [
1565
+ "ds6w:label",
1566
+ "physicalid",
1567
+ "mxid",
1568
+ "ds6w:type",
1569
+ "ds6w:identifier",
1570
+ "ds6w:classification",
1571
+ "icon_2ddefaultthb.subtype",
1572
+ "ds6w:reservedBy",
1573
+ "relcount",
1574
+ "taxonomies",
1575
+ "ParentBk",
1576
+ "owner",
1577
+ "ds6wg:revision",
1578
+ "ds6w:reserved",
1579
+ "ds6w:description",
1580
+ "ds6w:modified",
1581
+ "ds6w:created",
1582
+ "ds6w:responsible",
1583
+ "ds6w:status",
1584
+ "ds6w:policy",
1585
+ "ds6w:organizationResponsible",
1586
+ "ds6w:project"
1587
+ ],
1588
+ label: `Folder_read_getRoots_${(/* @__PURE__ */ new Date()).getTime()}`,
1589
+ with_synthesis: "false",
1590
+ order_by: "asc",
1591
+ order_field: "ds6w:label",
1592
+ start: 0,
1593
+ nresults: 1e3,
1594
+ select_file: ["icon", "thumbnail_2d"],
1595
+ query: 'flattenedtaxonomies:"types/Workspace"',
1596
+ locale: "fr",
1597
+ tenant: s,
1598
+ source: ["3dspace"],
1599
+ indexmode: "true",
1600
+ login: {
1601
+ "3dspace": {
1602
+ SecurityContext: `ctx::${r}`
1603
+ }
1604
+ }
1605
+ }, c = `${o.base}${o.uri}${o.opt}`;
1606
+ m(c, {
1607
+ method: "POST",
1608
+ headers: {
1609
+ Accept: "application/json",
1610
+ "content-Type": "application/json",
1611
+ SecurityContext: `ctx::${r}`
1612
+ },
1613
+ data: JSON.stringify(a),
1614
+ type: "json",
1615
+ onComplete(d, u, p) {
1616
+ const l = d.results.map((g) => {
1617
+ const h = { id: g.attributes[0].value };
1618
+ return g.attributes.forEach((y) => {
1619
+ y.name === "ds6w:label" && (h.name = y.value);
1620
+ }), h;
1621
+ });
1622
+ n(l);
1623
+ },
1624
+ onFailure(d, u, p) {
1625
+ const f = {};
1626
+ f.error = d, f.headers = u, f.xhr = p, t(f);
1627
+ }
1628
+ });
1629
+ });
1630
+ }
1631
+ function ct(e, n) {
1556
1632
  return new Promise((t, i) => {
1557
1633
  const s = `${e.space}/resources/v1/FolderManagement/Folder/${n}/folderTree?tenant=${e.tenant.toUpperCase()}`, r = {
1558
1634
  expandList: "",
@@ -1586,7 +1662,7 @@ function rt(e, n) {
1586
1662
  });
1587
1663
  });
1588
1664
  }
1589
- function ct(e, n) {
1665
+ function dt(e, n) {
1590
1666
  return new Promise((t, i) => {
1591
1667
  const s = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
1592
1668
  m(s, {
@@ -1608,7 +1684,7 @@ function ct(e, n) {
1608
1684
  });
1609
1685
  });
1610
1686
  }
1611
- function dt(e, n, t, i, s = void 0, r = void 0) {
1687
+ function ut(e, n, t, i, s = void 0, r = void 0) {
1612
1688
  return new Promise((o) => {
1613
1689
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1614
1690
  let c = {
@@ -1641,7 +1717,7 @@ function dt(e, n, t, i, s = void 0, r = void 0) {
1641
1717
  m(a, u);
1642
1718
  });
1643
1719
  }
1644
- function ut(e, n, t, i, s = void 0, r = void 0) {
1720
+ function pt(e, n, t, i, s = void 0, r = void 0) {
1645
1721
  return console.log("credentials", e), new Promise((o) => {
1646
1722
  `${e.space}`, JSON.stringify({
1647
1723
  csrf: {
@@ -1665,7 +1741,7 @@ function ut(e, n, t, i, s = void 0, r = void 0) {
1665
1741
  });
1666
1742
  }
1667
1743
  //!SECTION
1668
- function pt(e, n = void 0, t = void 0) {
1744
+ function lt(e, n = void 0, t = void 0) {
1669
1745
  const i = {
1670
1746
  base: `${e.space}`,
1671
1747
  uri: "/resources/bps/cspaces",
@@ -1686,7 +1762,7 @@ function pt(e, n = void 0, t = void 0) {
1686
1762
  }
1687
1763
  });
1688
1764
  }
1689
- function lt(e, n, t, i) {
1765
+ function ft(e, n, t, i) {
1690
1766
  j(
1691
1767
  e.space,
1692
1768
  n,
@@ -1703,7 +1779,7 @@ function lt(e, n, t, i) {
1703
1779
  }
1704
1780
  );
1705
1781
  }
1706
- async function ft(e, n, t = void 0, i = void 0) {
1782
+ async function mt(e, n, t = void 0, i = void 0) {
1707
1783
  return new Promise((s) => {
1708
1784
  j(e, n, (r) => {
1709
1785
  m(r, {
@@ -1715,9 +1791,9 @@ async function ft(e, n, t = void 0, i = void 0) {
1715
1791
  });
1716
1792
  });
1717
1793
  }
1718
- function mt(e, n, t, i = void 0, s = void 0) {
1794
+ function gt(e, n, t, i = void 0, s = void 0) {
1719
1795
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1720
- e = { ...e, objID: t }, I(
1796
+ e = { ...e, objID: t }, N(
1721
1797
  e,
1722
1798
  (o) => {
1723
1799
  console.log("_3DSpace_get_csrf | onDone | data", o);
@@ -1743,8 +1819,8 @@ function mt(e, n, t, i = void 0, s = void 0) {
1743
1819
  }
1744
1820
  let K, q;
1745
1821
  const A = [];
1746
- async function gt(e, n = void 0, t = void 0) {
1747
- e.objID && e.objID !== "" ? I(
1822
+ async function ht(e, n = void 0, t = void 0) {
1823
+ e.objID && e.objID !== "" ? N(
1748
1824
  e,
1749
1825
  (i) => {
1750
1826
  n && n(i);
@@ -1762,7 +1838,7 @@ async function gt(e, n = void 0, t = void 0) {
1762
1838
  }
1763
1839
  );
1764
1840
  }
1765
- async function ht(e, n = void 0, t = void 0) {
1841
+ async function yt(e, n = void 0, t = void 0) {
1766
1842
  console.log("getDatasByTenant (getDocuments)", e), await E(
1767
1843
  e,
1768
1844
  (i) => {
@@ -1774,7 +1850,7 @@ async function ht(e, n = void 0, t = void 0) {
1774
1850
  }
1775
1851
  );
1776
1852
  }
1777
- function yt(e, n = void 0, t = void 0) {
1853
+ function _t(e, n = void 0, t = void 0) {
1778
1854
  const i = [];
1779
1855
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1780
1856
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1823,7 +1899,7 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1823
1899
  order_by: "desc",
1824
1900
  tag: "testTag"
1825
1901
  };
1826
- function _t(e, n, t = void 0, i = void 0) {
1902
+ function St(e, n, t = void 0, i = void 0) {
1827
1903
  const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1828
1904
  uri: "/resources/6w/tags",
1829
1905
  otpCTX: "SecurityContext=preferred",
@@ -1854,7 +1930,7 @@ function _t(e, n, t = void 0, i = void 0) {
1854
1930
  JSON.parse(f);
1855
1931
  const l = {};
1856
1932
  setTimeout(() => {
1857
- J(
1933
+ M(
1858
1934
  e,
1859
1935
  o,
1860
1936
  (g) => {
@@ -1966,7 +2042,7 @@ function ge(e, n, t = void 0, i = void 0) {
1966
2042
  }
1967
2043
  });
1968
2044
  }
1969
- function St(e, n, t = void 0, i = void 0) {
2045
+ function wt(e, n, t = void 0, i = void 0) {
1970
2046
  const { objId: s, pred: r, tag: o } = n, a = {
1971
2047
  uri: "/resources/6w/tags",
1972
2048
  otpCTX: "SecurityContext=preferred",
@@ -2002,7 +2078,7 @@ function St(e, n, t = void 0, i = void 0) {
2002
2078
  }
2003
2079
  });
2004
2080
  }
2005
- function wt(e, n = "", t = void 0, i = void 0) {
2081
+ function Ct(e, n = "", t = void 0, i = void 0) {
2006
2082
  const { space: s } = e;
2007
2083
  if (n === "")
2008
2084
  return;
@@ -2038,7 +2114,7 @@ async function C(e, n = void 0, t = void 0) {
2038
2114
  }
2039
2115
  });
2040
2116
  }
2041
- function Ct(e, n = void 0, t = void 0) {
2117
+ function bt(e, n = void 0, t = void 0) {
2042
2118
  const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
2043
2119
  params: {
2044
2120
  community_id: null,
@@ -2068,7 +2144,7 @@ function Ct(e, n = void 0, t = void 0) {
2068
2144
  });
2069
2145
  });
2070
2146
  }
2071
- function bt(e, n = void 0, t = void 0) {
2147
+ function Ot(e, n = void 0, t = void 0) {
2072
2148
  const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
2073
2149
  params: {
2074
2150
  idsToFilterArr: [],
@@ -2098,7 +2174,7 @@ function bt(e, n = void 0, t = void 0) {
2098
2174
  });
2099
2175
  });
2100
2176
  }
2101
- function Ot(e, n = void 0, t = void 0) {
2177
+ function Tt(e, n = void 0, t = void 0) {
2102
2178
  const i = {
2103
2179
  base: e._3DSwym,
2104
2180
  uri: "/api/community/listmycommunities",
@@ -2168,7 +2244,7 @@ function he(e, n, t, i) {
2168
2244
  });
2169
2245
  });
2170
2246
  }
2171
- function Tt(e, n = void 0, t = void 0) {
2247
+ function $t(e, n = void 0, t = void 0) {
2172
2248
  const i = "YXdA5x4DSUKtlAi2wmnyTA";
2173
2249
  e.commu_id || (e.commu_id = i);
2174
2250
  const s = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -2191,7 +2267,7 @@ function Tt(e, n = void 0, t = void 0) {
2191
2267
  });
2192
2268
  });
2193
2269
  }
2194
- function $t(e, n, t = void 0, i = void 0) {
2270
+ function xt(e, n, t = void 0, i = void 0) {
2195
2271
  const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
2196
2272
  console.log("__listAllContacts", s.hits);
2197
2273
  const a = `${o}/api/directmessages`, c = {
@@ -2346,7 +2422,7 @@ function Ut(e, n, t = void 0, i = void 0) {
2346
2422
  });
2347
2423
  });
2348
2424
  }
2349
- function xt(e, n = void 0, t = void 0) {
2425
+ function Rt(e, n = void 0, t = void 0) {
2350
2426
  const i = { base: e.space, uri: "/api/idea/add" };
2351
2427
  if (!Array.isArray(e.swymCommunities)) {
2352
2428
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
@@ -2474,7 +2550,7 @@ function Nt(e, n = void 0, t = void 0) {
2474
2550
  }
2475
2551
  });
2476
2552
  }
2477
- function It(e, n, t) {
2553
+ function kt(e, n, t) {
2478
2554
  const {
2479
2555
  _3DSwym: i,
2480
2556
  _3DSwym_token: s,
@@ -2519,7 +2595,7 @@ function It(e, n, t) {
2519
2595
  };
2520
2596
  m(p.base + p.uri, l);
2521
2597
  }
2522
- function Rt(e, n, t = void 0, i = void 0) {
2598
+ function It(e, n, t = void 0, i = void 0) {
2523
2599
  const { _3DSwym: s } = e;
2524
2600
  let { community_id: r, limit: o, page: a, search: c } = n;
2525
2601
  const d = [], u = 1;
@@ -2546,7 +2622,7 @@ function Rt(e, n, t = void 0, i = void 0) {
2546
2622
  d.push(_.response.result);
2547
2623
  else {
2548
2624
  const O = _.response.result.find(
2549
- (k) => k.title.includes(c)
2625
+ (I) => I.title.includes(c)
2550
2626
  );
2551
2627
  if (O) {
2552
2628
  t(O);
@@ -2644,7 +2720,7 @@ function Se(e) {
2644
2720
  <p>
2645
2721
  </p>` : e;
2646
2722
  }
2647
- function kt(e, n = void 0, t = void 0) {
2723
+ function jt(e, n = void 0, t = void 0) {
2648
2724
  const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2649
2725
  if (i && s && r && o && a) {
2650
2726
  const c = `${s}/api/idea/forward`;
@@ -2677,7 +2753,7 @@ function kt(e, n = void 0, t = void 0) {
2677
2753
  credentials: e
2678
2754
  });
2679
2755
  }
2680
- function jt(e, n = void 0, t = void 0) {
2756
+ function vt(e, n = void 0, t = void 0) {
2681
2757
  return new Promise((i, s) => {
2682
2758
  try {
2683
2759
  let r;
@@ -2707,7 +2783,7 @@ function jt(e, n = void 0, t = void 0) {
2707
2783
  }
2708
2784
  });
2709
2785
  }
2710
- function vt(e, n, t = void 0, i = void 0) {
2786
+ function Dt(e, n, t = void 0, i = void 0) {
2711
2787
  const s = e.space + "/api/user/find/login/" + n;
2712
2788
  C(
2713
2789
  e,
@@ -2727,7 +2803,7 @@ function vt(e, n, t = void 0, i = void 0) {
2727
2803
  i
2728
2804
  );
2729
2805
  }
2730
- function Dt(e, n = void 0, t = void 0) {
2806
+ function At(e, n = void 0, t = void 0) {
2731
2807
  const {
2732
2808
  _3DSwym: i,
2733
2809
  _3DSwym_token: s,
@@ -2754,14 +2830,14 @@ function Dt(e, n = void 0, t = void 0) {
2754
2830
  };
2755
2831
  m(a, d);
2756
2832
  }
2757
- function At(e, n = void 0, t = void 0) {
2758
- e.tenant && M(e, (i) => {
2833
+ function Pt(e, n = void 0, t = void 0) {
2834
+ e.tenant && J(e, (i) => {
2759
2835
  const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2760
2836
  return n && n(s), s;
2761
2837
  });
2762
2838
  }
2763
- function Pt(e, n = void 0, t = void 0) {
2764
- e.tenant ? M(e, (i) => {
2839
+ function Lt(e, n = void 0, t = void 0) {
2840
+ e.tenant ? J(e, (i) => {
2765
2841
  const s = i.services.find(
2766
2842
  (a) => a.id === "3dpassport"
2767
2843
  )?.url, r = i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${s}/login/?cors=false&service=${r}/auth/cas`;
@@ -2780,7 +2856,7 @@ function Pt(e, n = void 0, t = void 0) {
2780
2856
  });
2781
2857
  }) : t && t("No tenant");
2782
2858
  }
2783
- function Lt(e, n = void 0, t = void 0) {
2859
+ function Jt(e, n = void 0, t = void 0) {
2784
2860
  if (e.tenant) {
2785
2861
  const i = e.tenant.toLowerCase();
2786
2862
  fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
@@ -2807,7 +2883,7 @@ async function Mt(e, n, t = void 0, i = void 0) {
2807
2883
  });
2808
2884
  }
2809
2885
  }
2810
- function Jt(e, n, t, i = void 0, s = void 0) {
2886
+ function Gt(e, n, t, i = void 0, s = void 0) {
2811
2887
  if (e.tenant) {
2812
2888
  const r = e.tenant.toLowerCase();
2813
2889
  fetch(
@@ -2822,7 +2898,7 @@ function Jt(e, n, t, i = void 0, s = void 0) {
2822
2898
  });
2823
2899
  }
2824
2900
  }
2825
- async function Gt(e, n, t, i = void 0, s = void 0) {
2901
+ async function Bt(e, n, t, i = void 0, s = void 0) {
2826
2902
  if (e.tenant) {
2827
2903
  const r = e.tenant.toLowerCase();
2828
2904
  fetch(
@@ -2840,7 +2916,7 @@ async function Gt(e, n, t, i = void 0, s = void 0) {
2840
2916
  });
2841
2917
  }
2842
2918
  }
2843
- async function Bt(e, n, t, i, s = void 0, r = void 0) {
2919
+ async function Et(e, n, t, i, s = void 0, r = void 0) {
2844
2920
  if (e.tenant) {
2845
2921
  const o = e.tenant.toLowerCase();
2846
2922
  fetch(
@@ -2855,7 +2931,7 @@ async function Bt(e, n, t, i, s = void 0, r = void 0) {
2855
2931
  });
2856
2932
  }
2857
2933
  }
2858
- async function Et(e, n, t, i, s, r = void 0, o = void 0) {
2934
+ async function Kt(e, n, t, i, s, r = void 0, o = void 0) {
2859
2935
  if (e.tenant) {
2860
2936
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2861
2937
  i
@@ -2874,7 +2950,7 @@ async function Et(e, n, t, i, s, r = void 0, o = void 0) {
2874
2950
  });
2875
2951
  }
2876
2952
  }
2877
- async function Kt(e, n, t, i, s = void 0, r = void 0) {
2953
+ async function qt(e, n, t, i, s = void 0, r = void 0) {
2878
2954
  if (e.tenant) {
2879
2955
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2880
2956
  i
@@ -2891,7 +2967,7 @@ async function Kt(e, n, t, i, s = void 0, r = void 0) {
2891
2967
  });
2892
2968
  }
2893
2969
  }
2894
- async function qt(e, n, t, i = void 0, s = void 0) {
2970
+ async function Xt(e, n, t, i = void 0, s = void 0) {
2895
2971
  if (e.tenant) {
2896
2972
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
2897
2973
  t
@@ -2908,7 +2984,7 @@ async function qt(e, n, t, i = void 0, s = void 0) {
2908
2984
  });
2909
2985
  }
2910
2986
  }
2911
- async function Xt(e, n, t, i, s = void 0, r = void 0) {
2987
+ async function Wt(e, n, t, i, s = void 0, r = void 0) {
2912
2988
  if (e.tenant) {
2913
2989
  const o = e.tenant.toLowerCase();
2914
2990
  fetch(
@@ -2923,7 +2999,7 @@ async function Xt(e, n, t, i, s = void 0, r = void 0) {
2923
2999
  });
2924
3000
  }
2925
3001
  }
2926
- async function Wt(e, n, t, i = void 0, s = void 0) {
3002
+ async function Vt(e, n, t, i = void 0, s = void 0) {
2927
3003
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2928
3004
  const r = e.tenant.toLowerCase();
2929
3005
  fetch(
@@ -2938,7 +3014,7 @@ async function Wt(e, n, t, i = void 0, s = void 0) {
2938
3014
  });
2939
3015
  }
2940
3016
  }
2941
- async function Vt(e, n, t, i, s, r = void 0, o = void 0) {
3017
+ async function Yt(e, n, t, i, s, r = void 0, o = void 0) {
2942
3018
  if (e.tenant) {
2943
3019
  const a = e.tenant.toLowerCase();
2944
3020
  fetch(
@@ -2953,7 +3029,7 @@ async function Vt(e, n, t, i, s, r = void 0, o = void 0) {
2953
3029
  });
2954
3030
  }
2955
3031
  }
2956
- async function Yt(e, n, t, i, s = void 0, r = void 0) {
3032
+ async function zt(e, n, t, i, s = void 0, r = void 0) {
2957
3033
  if (e.tenant) {
2958
3034
  const o = e.tenant.toLowerCase();
2959
3035
  fetch(
@@ -2969,7 +3045,7 @@ async function Yt(e, n, t, i, s = void 0, r = void 0) {
2969
3045
  }
2970
3046
  }
2971
3047
  //!SECTION
2972
- async function zt(e, n, t, i = void 0, s = void 0) {
3048
+ async function Ht(e, n, t, i = void 0, s = void 0) {
2973
3049
  if (e.tenant) {
2974
3050
  const r = e.tenant.toLowerCase();
2975
3051
  fetch(
@@ -2985,17 +3061,17 @@ async function zt(e, n, t, i = void 0, s = void 0) {
2985
3061
  }
2986
3062
  }
2987
3063
  //!SECTION
2988
- function Ht(e) {
3064
+ function Qt(e) {
2989
3065
  const n = "Hello " + e;
2990
3066
  return console.log(n), n;
2991
3067
  }
2992
- function Qt(e, n = void 0, t = void 0) {
3068
+ function Zt(e, n = void 0, t = void 0) {
2993
3069
  return console.log("credentials", e), new Promise((i) => {
2994
3070
  if (e.token === "" && b(e), !e.space || e.space === "") {
2995
3071
  const o = Z();
2996
3072
  console.log("platformeInfo", o);
2997
3073
  }
2998
- R(
3074
+ k(
2999
3075
  e,
3000
3076
  "Common space",
3001
3077
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -3070,25 +3146,26 @@ function Qt(e, n = void 0, t = void 0) {
3070
3146
  }
3071
3147
  export {
3072
3148
  Y as UUID,
3073
- Qt as _3DSearch_usersGroup,
3149
+ Zt as _3DSearch_usersGroup,
3074
3150
  et as _3DSpace_Create_Doc,
3075
3151
  Ze as _3DSpace_Update_Doc,
3076
3152
  Qe as _3DSpace_Upload_File,
3077
- ut as _3DSpace_bookmark_addSubsciptions,
3078
- ct as _3DSpace_bookmark_getItems,
3079
- rt as _3DSpace_bookmark_getSubSignets,
3080
- dt as _3DSpace_bookmark_newWorkspace,
3153
+ pt as _3DSpace_bookmark_addSubsciptions,
3154
+ dt as _3DSpace_bookmark_getItems,
3155
+ ct as _3DSpace_bookmark_getSubSignets,
3156
+ ut as _3DSpace_bookmark_newWorkspace,
3081
3157
  b as _3DSpace_csrf,
3082
3158
  E as _3DSpace_download_doc,
3083
3159
  ce as _3DSpace_download_multidoc,
3084
3160
  G as _3DSpace_file_update,
3085
3161
  oe as _3DSpace_file_update_csr,
3086
3162
  ze as _3DSpace_file_url_csr,
3087
- I as _3DSpace_get_csrf,
3088
- J as _3DSpace_get_docInfo,
3163
+ rt as _3DSpace_getBookmarksRoot,
3164
+ N as _3DSpace_get_csrf,
3165
+ M as _3DSpace_get_docInfo,
3089
3166
  de as _3DSpace_get_downloadTicket_multidoc,
3090
3167
  Ye as _3DSpace_get_multiDocInfo,
3091
- R as _3DSpace_get_securityContexts,
3168
+ k as _3DSpace_get_securityContexts,
3092
3169
  j as _3DSpace_get_ticket,
3093
3170
  ot as _3DSpace_lifecycle_changeRevision,
3094
3171
  nt as _3DSpace_lifecycle_changeState,
@@ -3097,81 +3174,81 @@ export {
3097
3174
  tt as _3DSpace_lifecycle_getNextStates,
3098
3175
  at as _3DSpace_lifecycle_getRevisions,
3099
3176
  He as _3DSpace_put_docInfo,
3100
- kt as _3DSwym_ForwardIdea,
3101
- Dt as _3DSwym_addComment,
3102
- $t as _3DSwym_buildDirectMessage,
3177
+ jt as _3DSwym_ForwardIdea,
3178
+ At as _3DSwym_addComment,
3179
+ xt as _3DSwym_buildDirectMessage,
3103
3180
  Ft as _3DSwym_deleteIdea,
3104
- It as _3DSwym_editIdea,
3181
+ kt as _3DSwym_editIdea,
3105
3182
  ye as _3DSwym_findCommunityToInstantMSG,
3106
- Ot as _3DSwym_getAllCommunities,
3107
- Rt as _3DSwym_getAllListIdeas,
3108
- Ct as _3DSwym_getAllNews,
3109
- bt as _3DSwym_getFamiliarPeople,
3110
- Tt as _3DSwym_getIdeaStatusMaturity,
3183
+ Tt as _3DSwym_getAllCommunities,
3184
+ It as _3DSwym_getAllListIdeas,
3185
+ bt as _3DSwym_getAllNews,
3186
+ Ot as _3DSwym_getFamiliarPeople,
3187
+ $t as _3DSwym_getIdeaStatusMaturity,
3111
3188
  he as _3DSwym_getMembersCommunity,
3112
3189
  Nt as _3DSwym_getOneIdea,
3113
3190
  C as _3DSwym_get_Token,
3114
- jt as _3DSwym_get_currentUser,
3115
- vt as _3DSwym_get_findUser,
3116
- xt as _3DSwym_postIdea,
3191
+ vt as _3DSwym_get_currentUser,
3192
+ Dt as _3DSwym_get_findUser,
3193
+ Rt as _3DSwym_postIdea,
3117
3194
  Ut as _3DSwym_postIdeaTemplate,
3118
3195
  P as _3DSwym_sendMessageData,
3119
- Me as _AppMngt_get_info_user,
3196
+ Je as _AppMngt_get_info_user,
3120
3197
  Le as _AppMngt_get_users,
3121
- Bt as _Iterop_AddOrRemoveRows,
3122
- Pt as _Iterop_Auth_CAS,
3123
- Wt as _Iterop_GetOneDependencyTable,
3124
- zt as _Iterop_GetOneList,
3125
- Vt as _Iterop_PatchDependencyTable,
3126
- Yt as _Iterop_PutDependencyTable,
3127
- Et as _Iterop_businessTableSearchInRows,
3128
- qt as _Iterop_createBusinessTable,
3198
+ Et as _Iterop_AddOrRemoveRows,
3199
+ Lt as _Iterop_Auth_CAS,
3200
+ Vt as _Iterop_GetOneDependencyTable,
3201
+ Ht as _Iterop_GetOneList,
3202
+ Yt as _Iterop_PatchDependencyTable,
3203
+ zt as _Iterop_PutDependencyTable,
3204
+ Kt as _Iterop_businessTableSearchInRows,
3205
+ Xt as _Iterop_createBusinessTable,
3129
3206
  Mt as _Iterop_getAllBusinessTables,
3130
- Jt as _Iterop_getOneBusinessTable,
3131
- Gt as _Iterop_getOneBusinessTableRows,
3132
- Lt as _Iterop_jwtUser,
3133
- Xt as _Iterop_runProcess,
3134
- Kt as _Iterop_updateBusinessTable,
3207
+ Gt as _Iterop_getOneBusinessTable,
3208
+ Bt as _Iterop_getOneBusinessTableRows,
3209
+ Jt as _Iterop_jwtUser,
3210
+ Wt as _Iterop_runProcess,
3211
+ qt as _Iterop_updateBusinessTable,
3135
3212
  Ae as _Registry_getServicesUrl,
3136
3213
  ve as _getMe,
3137
3214
  Z as _getPlateformInfos,
3138
3215
  je as _getPlatformServices,
3139
- M as _getServiceUrl,
3216
+ J as _getServiceUrl,
3140
3217
  De as _getServiceUrl_3DPassport,
3141
- At as _getServiceUrl_Iterop,
3218
+ Pt as _getServiceUrl_Iterop,
3142
3219
  m as _httpCallAuthenticated,
3143
- Ie as _setDraggable,
3144
- ke as _setDroppable,
3145
- Re as _setupTagger,
3146
- _t as addTagToDoc,
3220
+ Ne as _setDraggable,
3221
+ Ie as _setDroppable,
3222
+ ke as _setupTagger,
3223
+ St as addTagToDoc,
3147
3224
  H as chunkArray,
3148
3225
  Pe as compass_getListAdditionalApps,
3149
3226
  z as couleurs,
3150
- Je as createUserGroups,
3227
+ Me as createUserGroups,
3151
3228
  pe as dataMixing,
3152
3229
  qe as deleteUserGroups,
3153
- xe as findAdresse,
3154
- pt as getAllContextSecurity,
3230
+ Ue as findAdresse,
3231
+ lt as getAllContextSecurity,
3155
3232
  te as getCSRFToken,
3156
- Ue as getCommunes,
3233
+ xe as getCommunes,
3157
3234
  Ge as getComplementUG,
3158
- lt as getDataFrom3DSpace,
3159
- Fe as getDataFromGouvFr,
3160
- ht as getDatasByTenant,
3161
- yt as getDatasFrom3DSpace,
3162
- ft as getDownloadDocument,
3163
- wt as getInfoDocTags,
3235
+ ft as getDataFrom3DSpace,
3236
+ Re as getDataFromGouvFr,
3237
+ yt as getDatasByTenant,
3238
+ _t as getDatasFrom3DSpace,
3239
+ mt as getDownloadDocument,
3240
+ Ct as getInfoDocTags,
3164
3241
  Ke as getUserGroupsByEmailList,
3165
3242
  Ee as getUserGroupsByURIList,
3166
3243
  Be as getUserGroupsList,
3167
3244
  ee as getUsersGroupRules,
3168
- gt as get_3DSpace_csrf,
3245
+ ht as get_3DSpace_csrf,
3169
3246
  Xe as patchUserGroups,
3170
3247
  We as patchUserGroupsControl,
3171
- mt as pushDataIn3DSpace,
3248
+ gt as pushDataIn3DSpace,
3172
3249
  Ve as readUserGroupControl,
3173
- St as removeTagToDoc,
3174
- Ht as sayHello,
3175
- Ne as updateEvent
3250
+ wt as removeTagToDoc,
3251
+ Qt as sayHello,
3252
+ Fe as updateEvent
3176
3253
  };
3177
3254
  //# sourceMappingURL=wb3Api.js.map