@beam3_dev/api_module 0.0.344 → 0.0.349

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,84 @@ 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
+ mainStore();
1558
+ const { _fedSearch: i, currentTenant: s, ctx: r } = e;
1559
+ 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" });
1560
+ const o = {
1561
+ base: i,
1562
+ uri: "/federated/search",
1563
+ opt: `?tenant=${s}`
1564
+ }, a = {
1565
+ select_predicate: [
1566
+ "ds6w:label",
1567
+ "physicalid",
1568
+ "mxid",
1569
+ "ds6w:type",
1570
+ "ds6w:identifier",
1571
+ "ds6w:classification",
1572
+ "icon_2ddefaultthb.subtype",
1573
+ "ds6w:reservedBy",
1574
+ "relcount",
1575
+ "taxonomies",
1576
+ "ParentBk",
1577
+ "owner",
1578
+ "ds6wg:revision",
1579
+ "ds6w:reserved",
1580
+ "ds6w:description",
1581
+ "ds6w:modified",
1582
+ "ds6w:created",
1583
+ "ds6w:responsible",
1584
+ "ds6w:status",
1585
+ "ds6w:policy",
1586
+ "ds6w:organizationResponsible",
1587
+ "ds6w:project"
1588
+ ],
1589
+ label: `Folder_read_getRoots_${(/* @__PURE__ */ new Date()).getTime()}`,
1590
+ with_synthesis: "false",
1591
+ order_by: "asc",
1592
+ order_field: "ds6w:label",
1593
+ start: 0,
1594
+ nresults: 1e3,
1595
+ select_file: ["icon", "thumbnail_2d"],
1596
+ query: 'flattenedtaxonomies:"types/Workspace"',
1597
+ locale: "fr",
1598
+ tenant: s,
1599
+ source: ["3dspace"],
1600
+ indexmode: "true",
1601
+ login: {
1602
+ "3dspace": {
1603
+ SecurityContext: `ctx::${r}`
1604
+ }
1605
+ }
1606
+ }, c = `${o.base}${o.uri}${o.opt}`;
1607
+ m(c, {
1608
+ method: "POST",
1609
+ headers: {
1610
+ Accept: "application/json",
1611
+ "content-Type": "application/json",
1612
+ SecurityContext: `ctx::${r}`
1613
+ },
1614
+ data: JSON.stringify(a),
1615
+ type: "json",
1616
+ onComplete(d, u, p) {
1617
+ const l = d.results.map((g) => {
1618
+ const h = { id: g.attributes[0].value };
1619
+ return g.attributes.forEach((y) => {
1620
+ y.name === "ds6w:label" && (h.name = y.value);
1621
+ }), h;
1622
+ });
1623
+ n(l);
1624
+ },
1625
+ onFailure(d, u, p) {
1626
+ const f = {};
1627
+ f.error = d, f.headers = u, f.xhr = p, t(f);
1628
+ }
1629
+ });
1630
+ });
1631
+ }
1632
+ function ct(e, n) {
1556
1633
  return new Promise((t, i) => {
1557
1634
  const s = `${e.space}/resources/v1/FolderManagement/Folder/${n}/folderTree?tenant=${e.tenant.toUpperCase()}`, r = {
1558
1635
  expandList: "",
@@ -1586,7 +1663,7 @@ function rt(e, n) {
1586
1663
  });
1587
1664
  });
1588
1665
  }
1589
- function ct(e, n) {
1666
+ function dt(e, n) {
1590
1667
  return new Promise((t, i) => {
1591
1668
  const s = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
1592
1669
  m(s, {
@@ -1608,7 +1685,7 @@ function ct(e, n) {
1608
1685
  });
1609
1686
  });
1610
1687
  }
1611
- function dt(e, n, t, i, s = void 0, r = void 0) {
1688
+ function ut(e, n, t, i, s = void 0, r = void 0) {
1612
1689
  return new Promise((o) => {
1613
1690
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1614
1691
  let c = {
@@ -1641,7 +1718,7 @@ function dt(e, n, t, i, s = void 0, r = void 0) {
1641
1718
  m(a, u);
1642
1719
  });
1643
1720
  }
1644
- function ut(e, n, t, i, s = void 0, r = void 0) {
1721
+ function pt(e, n, t, i, s = void 0, r = void 0) {
1645
1722
  return console.log("credentials", e), new Promise((o) => {
1646
1723
  `${e.space}`, JSON.stringify({
1647
1724
  csrf: {
@@ -1665,7 +1742,7 @@ function ut(e, n, t, i, s = void 0, r = void 0) {
1665
1742
  });
1666
1743
  }
1667
1744
  //!SECTION
1668
- function pt(e, n = void 0, t = void 0) {
1745
+ function lt(e, n = void 0, t = void 0) {
1669
1746
  const i = {
1670
1747
  base: `${e.space}`,
1671
1748
  uri: "/resources/bps/cspaces",
@@ -1686,7 +1763,7 @@ function pt(e, n = void 0, t = void 0) {
1686
1763
  }
1687
1764
  });
1688
1765
  }
1689
- function lt(e, n, t, i) {
1766
+ function ft(e, n, t, i) {
1690
1767
  j(
1691
1768
  e.space,
1692
1769
  n,
@@ -1703,7 +1780,7 @@ function lt(e, n, t, i) {
1703
1780
  }
1704
1781
  );
1705
1782
  }
1706
- async function ft(e, n, t = void 0, i = void 0) {
1783
+ async function mt(e, n, t = void 0, i = void 0) {
1707
1784
  return new Promise((s) => {
1708
1785
  j(e, n, (r) => {
1709
1786
  m(r, {
@@ -1715,9 +1792,9 @@ async function ft(e, n, t = void 0, i = void 0) {
1715
1792
  });
1716
1793
  });
1717
1794
  }
1718
- function mt(e, n, t, i = void 0, s = void 0) {
1795
+ function gt(e, n, t, i = void 0, s = void 0) {
1719
1796
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1720
- e = { ...e, objID: t }, I(
1797
+ e = { ...e, objID: t }, N(
1721
1798
  e,
1722
1799
  (o) => {
1723
1800
  console.log("_3DSpace_get_csrf | onDone | data", o);
@@ -1743,8 +1820,8 @@ function mt(e, n, t, i = void 0, s = void 0) {
1743
1820
  }
1744
1821
  let K, q;
1745
1822
  const A = [];
1746
- async function gt(e, n = void 0, t = void 0) {
1747
- e.objID && e.objID !== "" ? I(
1823
+ async function ht(e, n = void 0, t = void 0) {
1824
+ e.objID && e.objID !== "" ? N(
1748
1825
  e,
1749
1826
  (i) => {
1750
1827
  n && n(i);
@@ -1762,7 +1839,7 @@ async function gt(e, n = void 0, t = void 0) {
1762
1839
  }
1763
1840
  );
1764
1841
  }
1765
- async function ht(e, n = void 0, t = void 0) {
1842
+ async function yt(e, n = void 0, t = void 0) {
1766
1843
  console.log("getDatasByTenant (getDocuments)", e), await E(
1767
1844
  e,
1768
1845
  (i) => {
@@ -1774,7 +1851,7 @@ async function ht(e, n = void 0, t = void 0) {
1774
1851
  }
1775
1852
  );
1776
1853
  }
1777
- function yt(e, n = void 0, t = void 0) {
1854
+ function _t(e, n = void 0, t = void 0) {
1778
1855
  const i = [];
1779
1856
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1780
1857
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1823,7 +1900,7 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1823
1900
  order_by: "desc",
1824
1901
  tag: "testTag"
1825
1902
  };
1826
- function _t(e, n, t = void 0, i = void 0) {
1903
+ function St(e, n, t = void 0, i = void 0) {
1827
1904
  const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1828
1905
  uri: "/resources/6w/tags",
1829
1906
  otpCTX: "SecurityContext=preferred",
@@ -1854,7 +1931,7 @@ function _t(e, n, t = void 0, i = void 0) {
1854
1931
  JSON.parse(f);
1855
1932
  const l = {};
1856
1933
  setTimeout(() => {
1857
- J(
1934
+ M(
1858
1935
  e,
1859
1936
  o,
1860
1937
  (g) => {
@@ -1966,7 +2043,7 @@ function ge(e, n, t = void 0, i = void 0) {
1966
2043
  }
1967
2044
  });
1968
2045
  }
1969
- function St(e, n, t = void 0, i = void 0) {
2046
+ function wt(e, n, t = void 0, i = void 0) {
1970
2047
  const { objId: s, pred: r, tag: o } = n, a = {
1971
2048
  uri: "/resources/6w/tags",
1972
2049
  otpCTX: "SecurityContext=preferred",
@@ -2002,7 +2079,7 @@ function St(e, n, t = void 0, i = void 0) {
2002
2079
  }
2003
2080
  });
2004
2081
  }
2005
- function wt(e, n = "", t = void 0, i = void 0) {
2082
+ function Ct(e, n = "", t = void 0, i = void 0) {
2006
2083
  const { space: s } = e;
2007
2084
  if (n === "")
2008
2085
  return;
@@ -2038,7 +2115,7 @@ async function C(e, n = void 0, t = void 0) {
2038
2115
  }
2039
2116
  });
2040
2117
  }
2041
- function Ct(e, n = void 0, t = void 0) {
2118
+ function bt(e, n = void 0, t = void 0) {
2042
2119
  const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
2043
2120
  params: {
2044
2121
  community_id: null,
@@ -2068,7 +2145,7 @@ function Ct(e, n = void 0, t = void 0) {
2068
2145
  });
2069
2146
  });
2070
2147
  }
2071
- function bt(e, n = void 0, t = void 0) {
2148
+ function Ot(e, n = void 0, t = void 0) {
2072
2149
  const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
2073
2150
  params: {
2074
2151
  idsToFilterArr: [],
@@ -2098,7 +2175,7 @@ function bt(e, n = void 0, t = void 0) {
2098
2175
  });
2099
2176
  });
2100
2177
  }
2101
- function Ot(e, n = void 0, t = void 0) {
2178
+ function Tt(e, n = void 0, t = void 0) {
2102
2179
  const i = {
2103
2180
  base: e._3DSwym,
2104
2181
  uri: "/api/community/listmycommunities",
@@ -2168,7 +2245,7 @@ function he(e, n, t, i) {
2168
2245
  });
2169
2246
  });
2170
2247
  }
2171
- function Tt(e, n = void 0, t = void 0) {
2248
+ function $t(e, n = void 0, t = void 0) {
2172
2249
  const i = "YXdA5x4DSUKtlAi2wmnyTA";
2173
2250
  e.commu_id || (e.commu_id = i);
2174
2251
  const s = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -2191,7 +2268,7 @@ function Tt(e, n = void 0, t = void 0) {
2191
2268
  });
2192
2269
  });
2193
2270
  }
2194
- function $t(e, n, t = void 0, i = void 0) {
2271
+ function xt(e, n, t = void 0, i = void 0) {
2195
2272
  const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
2196
2273
  console.log("__listAllContacts", s.hits);
2197
2274
  const a = `${o}/api/directmessages`, c = {
@@ -2346,7 +2423,7 @@ function Ut(e, n, t = void 0, i = void 0) {
2346
2423
  });
2347
2424
  });
2348
2425
  }
2349
- function xt(e, n = void 0, t = void 0) {
2426
+ function Rt(e, n = void 0, t = void 0) {
2350
2427
  const i = { base: e.space, uri: "/api/idea/add" };
2351
2428
  if (!Array.isArray(e.swymCommunities)) {
2352
2429
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
@@ -2474,7 +2551,7 @@ function Nt(e, n = void 0, t = void 0) {
2474
2551
  }
2475
2552
  });
2476
2553
  }
2477
- function It(e, n, t) {
2554
+ function kt(e, n, t) {
2478
2555
  const {
2479
2556
  _3DSwym: i,
2480
2557
  _3DSwym_token: s,
@@ -2519,7 +2596,7 @@ function It(e, n, t) {
2519
2596
  };
2520
2597
  m(p.base + p.uri, l);
2521
2598
  }
2522
- function Rt(e, n, t = void 0, i = void 0) {
2599
+ function It(e, n, t = void 0, i = void 0) {
2523
2600
  const { _3DSwym: s } = e;
2524
2601
  let { community_id: r, limit: o, page: a, search: c } = n;
2525
2602
  const d = [], u = 1;
@@ -2546,7 +2623,7 @@ function Rt(e, n, t = void 0, i = void 0) {
2546
2623
  d.push(_.response.result);
2547
2624
  else {
2548
2625
  const O = _.response.result.find(
2549
- (k) => k.title.includes(c)
2626
+ (I) => I.title.includes(c)
2550
2627
  );
2551
2628
  if (O) {
2552
2629
  t(O);
@@ -2644,7 +2721,7 @@ function Se(e) {
2644
2721
  <p>
2645
2722
  </p>` : e;
2646
2723
  }
2647
- function kt(e, n = void 0, t = void 0) {
2724
+ function jt(e, n = void 0, t = void 0) {
2648
2725
  const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2649
2726
  if (i && s && r && o && a) {
2650
2727
  const c = `${s}/api/idea/forward`;
@@ -2677,7 +2754,7 @@ function kt(e, n = void 0, t = void 0) {
2677
2754
  credentials: e
2678
2755
  });
2679
2756
  }
2680
- function jt(e, n = void 0, t = void 0) {
2757
+ function vt(e, n = void 0, t = void 0) {
2681
2758
  return new Promise((i, s) => {
2682
2759
  try {
2683
2760
  let r;
@@ -2707,7 +2784,7 @@ function jt(e, n = void 0, t = void 0) {
2707
2784
  }
2708
2785
  });
2709
2786
  }
2710
- function vt(e, n, t = void 0, i = void 0) {
2787
+ function Dt(e, n, t = void 0, i = void 0) {
2711
2788
  const s = e.space + "/api/user/find/login/" + n;
2712
2789
  C(
2713
2790
  e,
@@ -2727,7 +2804,7 @@ function vt(e, n, t = void 0, i = void 0) {
2727
2804
  i
2728
2805
  );
2729
2806
  }
2730
- function Dt(e, n = void 0, t = void 0) {
2807
+ function At(e, n = void 0, t = void 0) {
2731
2808
  const {
2732
2809
  _3DSwym: i,
2733
2810
  _3DSwym_token: s,
@@ -2754,14 +2831,14 @@ function Dt(e, n = void 0, t = void 0) {
2754
2831
  };
2755
2832
  m(a, d);
2756
2833
  }
2757
- function At(e, n = void 0, t = void 0) {
2758
- e.tenant && M(e, (i) => {
2834
+ function Pt(e, n = void 0, t = void 0) {
2835
+ e.tenant && J(e, (i) => {
2759
2836
  const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2760
2837
  return n && n(s), s;
2761
2838
  });
2762
2839
  }
2763
- function Pt(e, n = void 0, t = void 0) {
2764
- e.tenant ? M(e, (i) => {
2840
+ function Lt(e, n = void 0, t = void 0) {
2841
+ e.tenant ? J(e, (i) => {
2765
2842
  const s = i.services.find(
2766
2843
  (a) => a.id === "3dpassport"
2767
2844
  )?.url, r = i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${s}/login/?cors=false&service=${r}/auth/cas`;
@@ -2780,7 +2857,7 @@ function Pt(e, n = void 0, t = void 0) {
2780
2857
  });
2781
2858
  }) : t && t("No tenant");
2782
2859
  }
2783
- function Lt(e, n = void 0, t = void 0) {
2860
+ function Jt(e, n = void 0, t = void 0) {
2784
2861
  if (e.tenant) {
2785
2862
  const i = e.tenant.toLowerCase();
2786
2863
  fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
@@ -2807,7 +2884,7 @@ async function Mt(e, n, t = void 0, i = void 0) {
2807
2884
  });
2808
2885
  }
2809
2886
  }
2810
- function Jt(e, n, t, i = void 0, s = void 0) {
2887
+ function Gt(e, n, t, i = void 0, s = void 0) {
2811
2888
  if (e.tenant) {
2812
2889
  const r = e.tenant.toLowerCase();
2813
2890
  fetch(
@@ -2822,7 +2899,7 @@ function Jt(e, n, t, i = void 0, s = void 0) {
2822
2899
  });
2823
2900
  }
2824
2901
  }
2825
- async function Gt(e, n, t, i = void 0, s = void 0) {
2902
+ async function Bt(e, n, t, i = void 0, s = void 0) {
2826
2903
  if (e.tenant) {
2827
2904
  const r = e.tenant.toLowerCase();
2828
2905
  fetch(
@@ -2840,7 +2917,7 @@ async function Gt(e, n, t, i = void 0, s = void 0) {
2840
2917
  });
2841
2918
  }
2842
2919
  }
2843
- async function Bt(e, n, t, i, s = void 0, r = void 0) {
2920
+ async function Et(e, n, t, i, s = void 0, r = void 0) {
2844
2921
  if (e.tenant) {
2845
2922
  const o = e.tenant.toLowerCase();
2846
2923
  fetch(
@@ -2855,7 +2932,7 @@ async function Bt(e, n, t, i, s = void 0, r = void 0) {
2855
2932
  });
2856
2933
  }
2857
2934
  }
2858
- async function Et(e, n, t, i, s, r = void 0, o = void 0) {
2935
+ async function Kt(e, n, t, i, s, r = void 0, o = void 0) {
2859
2936
  if (e.tenant) {
2860
2937
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2861
2938
  i
@@ -2874,7 +2951,7 @@ async function Et(e, n, t, i, s, r = void 0, o = void 0) {
2874
2951
  });
2875
2952
  }
2876
2953
  }
2877
- async function Kt(e, n, t, i, s = void 0, r = void 0) {
2954
+ async function qt(e, n, t, i, s = void 0, r = void 0) {
2878
2955
  if (e.tenant) {
2879
2956
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2880
2957
  i
@@ -2891,7 +2968,7 @@ async function Kt(e, n, t, i, s = void 0, r = void 0) {
2891
2968
  });
2892
2969
  }
2893
2970
  }
2894
- async function qt(e, n, t, i = void 0, s = void 0) {
2971
+ async function Xt(e, n, t, i = void 0, s = void 0) {
2895
2972
  if (e.tenant) {
2896
2973
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
2897
2974
  t
@@ -2908,7 +2985,7 @@ async function qt(e, n, t, i = void 0, s = void 0) {
2908
2985
  });
2909
2986
  }
2910
2987
  }
2911
- async function Xt(e, n, t, i, s = void 0, r = void 0) {
2988
+ async function Wt(e, n, t, i, s = void 0, r = void 0) {
2912
2989
  if (e.tenant) {
2913
2990
  const o = e.tenant.toLowerCase();
2914
2991
  fetch(
@@ -2923,7 +3000,7 @@ async function Xt(e, n, t, i, s = void 0, r = void 0) {
2923
3000
  });
2924
3001
  }
2925
3002
  }
2926
- async function Wt(e, n, t, i = void 0, s = void 0) {
3003
+ async function Vt(e, n, t, i = void 0, s = void 0) {
2927
3004
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2928
3005
  const r = e.tenant.toLowerCase();
2929
3006
  fetch(
@@ -2938,7 +3015,7 @@ async function Wt(e, n, t, i = void 0, s = void 0) {
2938
3015
  });
2939
3016
  }
2940
3017
  }
2941
- async function Vt(e, n, t, i, s, r = void 0, o = void 0) {
3018
+ async function Yt(e, n, t, i, s, r = void 0, o = void 0) {
2942
3019
  if (e.tenant) {
2943
3020
  const a = e.tenant.toLowerCase();
2944
3021
  fetch(
@@ -2953,7 +3030,7 @@ async function Vt(e, n, t, i, s, r = void 0, o = void 0) {
2953
3030
  });
2954
3031
  }
2955
3032
  }
2956
- async function Yt(e, n, t, i, s = void 0, r = void 0) {
3033
+ async function zt(e, n, t, i, s = void 0, r = void 0) {
2957
3034
  if (e.tenant) {
2958
3035
  const o = e.tenant.toLowerCase();
2959
3036
  fetch(
@@ -2969,7 +3046,7 @@ async function Yt(e, n, t, i, s = void 0, r = void 0) {
2969
3046
  }
2970
3047
  }
2971
3048
  //!SECTION
2972
- async function zt(e, n, t, i = void 0, s = void 0) {
3049
+ async function Ht(e, n, t, i = void 0, s = void 0) {
2973
3050
  if (e.tenant) {
2974
3051
  const r = e.tenant.toLowerCase();
2975
3052
  fetch(
@@ -2985,17 +3062,17 @@ async function zt(e, n, t, i = void 0, s = void 0) {
2985
3062
  }
2986
3063
  }
2987
3064
  //!SECTION
2988
- function Ht(e) {
3065
+ function Qt(e) {
2989
3066
  const n = "Hello " + e;
2990
3067
  return console.log(n), n;
2991
3068
  }
2992
- function Qt(e, n = void 0, t = void 0) {
3069
+ function Zt(e, n = void 0, t = void 0) {
2993
3070
  return console.log("credentials", e), new Promise((i) => {
2994
3071
  if (e.token === "" && b(e), !e.space || e.space === "") {
2995
3072
  const o = Z();
2996
3073
  console.log("platformeInfo", o);
2997
3074
  }
2998
- R(
3075
+ k(
2999
3076
  e,
3000
3077
  "Common space",
3001
3078
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -3070,25 +3147,26 @@ function Qt(e, n = void 0, t = void 0) {
3070
3147
  }
3071
3148
  export {
3072
3149
  Y as UUID,
3073
- Qt as _3DSearch_usersGroup,
3150
+ Zt as _3DSearch_usersGroup,
3074
3151
  et as _3DSpace_Create_Doc,
3075
3152
  Ze as _3DSpace_Update_Doc,
3076
3153
  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,
3154
+ pt as _3DSpace_bookmark_addSubsciptions,
3155
+ dt as _3DSpace_bookmark_getItems,
3156
+ ct as _3DSpace_bookmark_getSubSignets,
3157
+ ut as _3DSpace_bookmark_newWorkspace,
3081
3158
  b as _3DSpace_csrf,
3082
3159
  E as _3DSpace_download_doc,
3083
3160
  ce as _3DSpace_download_multidoc,
3084
3161
  G as _3DSpace_file_update,
3085
3162
  oe as _3DSpace_file_update_csr,
3086
3163
  ze as _3DSpace_file_url_csr,
3087
- I as _3DSpace_get_csrf,
3088
- J as _3DSpace_get_docInfo,
3164
+ rt as _3DSpace_getBookmarksRoot,
3165
+ N as _3DSpace_get_csrf,
3166
+ M as _3DSpace_get_docInfo,
3089
3167
  de as _3DSpace_get_downloadTicket_multidoc,
3090
3168
  Ye as _3DSpace_get_multiDocInfo,
3091
- R as _3DSpace_get_securityContexts,
3169
+ k as _3DSpace_get_securityContexts,
3092
3170
  j as _3DSpace_get_ticket,
3093
3171
  ot as _3DSpace_lifecycle_changeRevision,
3094
3172
  nt as _3DSpace_lifecycle_changeState,
@@ -3097,81 +3175,81 @@ export {
3097
3175
  tt as _3DSpace_lifecycle_getNextStates,
3098
3176
  at as _3DSpace_lifecycle_getRevisions,
3099
3177
  He as _3DSpace_put_docInfo,
3100
- kt as _3DSwym_ForwardIdea,
3101
- Dt as _3DSwym_addComment,
3102
- $t as _3DSwym_buildDirectMessage,
3178
+ jt as _3DSwym_ForwardIdea,
3179
+ At as _3DSwym_addComment,
3180
+ xt as _3DSwym_buildDirectMessage,
3103
3181
  Ft as _3DSwym_deleteIdea,
3104
- It as _3DSwym_editIdea,
3182
+ kt as _3DSwym_editIdea,
3105
3183
  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,
3184
+ Tt as _3DSwym_getAllCommunities,
3185
+ It as _3DSwym_getAllListIdeas,
3186
+ bt as _3DSwym_getAllNews,
3187
+ Ot as _3DSwym_getFamiliarPeople,
3188
+ $t as _3DSwym_getIdeaStatusMaturity,
3111
3189
  he as _3DSwym_getMembersCommunity,
3112
3190
  Nt as _3DSwym_getOneIdea,
3113
3191
  C as _3DSwym_get_Token,
3114
- jt as _3DSwym_get_currentUser,
3115
- vt as _3DSwym_get_findUser,
3116
- xt as _3DSwym_postIdea,
3192
+ vt as _3DSwym_get_currentUser,
3193
+ Dt as _3DSwym_get_findUser,
3194
+ Rt as _3DSwym_postIdea,
3117
3195
  Ut as _3DSwym_postIdeaTemplate,
3118
3196
  P as _3DSwym_sendMessageData,
3119
- Me as _AppMngt_get_info_user,
3197
+ Je as _AppMngt_get_info_user,
3120
3198
  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,
3199
+ Et as _Iterop_AddOrRemoveRows,
3200
+ Lt as _Iterop_Auth_CAS,
3201
+ Vt as _Iterop_GetOneDependencyTable,
3202
+ Ht as _Iterop_GetOneList,
3203
+ Yt as _Iterop_PatchDependencyTable,
3204
+ zt as _Iterop_PutDependencyTable,
3205
+ Kt as _Iterop_businessTableSearchInRows,
3206
+ Xt as _Iterop_createBusinessTable,
3129
3207
  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,
3208
+ Gt as _Iterop_getOneBusinessTable,
3209
+ Bt as _Iterop_getOneBusinessTableRows,
3210
+ Jt as _Iterop_jwtUser,
3211
+ Wt as _Iterop_runProcess,
3212
+ qt as _Iterop_updateBusinessTable,
3135
3213
  Ae as _Registry_getServicesUrl,
3136
3214
  ve as _getMe,
3137
3215
  Z as _getPlateformInfos,
3138
3216
  je as _getPlatformServices,
3139
- M as _getServiceUrl,
3217
+ J as _getServiceUrl,
3140
3218
  De as _getServiceUrl_3DPassport,
3141
- At as _getServiceUrl_Iterop,
3219
+ Pt as _getServiceUrl_Iterop,
3142
3220
  m as _httpCallAuthenticated,
3143
- Ie as _setDraggable,
3144
- ke as _setDroppable,
3145
- Re as _setupTagger,
3146
- _t as addTagToDoc,
3221
+ Ne as _setDraggable,
3222
+ Ie as _setDroppable,
3223
+ ke as _setupTagger,
3224
+ St as addTagToDoc,
3147
3225
  H as chunkArray,
3148
3226
  Pe as compass_getListAdditionalApps,
3149
3227
  z as couleurs,
3150
- Je as createUserGroups,
3228
+ Me as createUserGroups,
3151
3229
  pe as dataMixing,
3152
3230
  qe as deleteUserGroups,
3153
- xe as findAdresse,
3154
- pt as getAllContextSecurity,
3231
+ Ue as findAdresse,
3232
+ lt as getAllContextSecurity,
3155
3233
  te as getCSRFToken,
3156
- Ue as getCommunes,
3234
+ xe as getCommunes,
3157
3235
  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,
3236
+ ft as getDataFrom3DSpace,
3237
+ Re as getDataFromGouvFr,
3238
+ yt as getDatasByTenant,
3239
+ _t as getDatasFrom3DSpace,
3240
+ mt as getDownloadDocument,
3241
+ Ct as getInfoDocTags,
3164
3242
  Ke as getUserGroupsByEmailList,
3165
3243
  Ee as getUserGroupsByURIList,
3166
3244
  Be as getUserGroupsList,
3167
3245
  ee as getUsersGroupRules,
3168
- gt as get_3DSpace_csrf,
3246
+ ht as get_3DSpace_csrf,
3169
3247
  Xe as patchUserGroups,
3170
3248
  We as patchUserGroupsControl,
3171
- mt as pushDataIn3DSpace,
3249
+ gt as pushDataIn3DSpace,
3172
3250
  Ve as readUserGroupControl,
3173
- St as removeTagToDoc,
3174
- Ht as sayHello,
3175
- Ne as updateEvent
3251
+ wt as removeTagToDoc,
3252
+ Qt as sayHello,
3253
+ Fe as updateEvent
3176
3254
  };
3177
3255
  //# sourceMappingURL=wb3Api.js.map