@beam3_dev/api_module 0.0.330 → 0.0.332

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
@@ -160,14 +160,14 @@ function Fe(e, n = void 0) {
160
160
  }), n !== void 0 && s.addEvent("onFilterSubjectsChange", n)), s.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function je(e, n) {
163
+ function ve(e, n) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
165
165
  t.droppable(e, {
166
166
  drop: n
167
167
  });
168
168
  });
169
169
  }
170
- async function ke(e, n = void 0, t = void 0) {
170
+ async function je(e, n = void 0, t = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
173
  (s) => {
@@ -195,7 +195,7 @@ function Z() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function ve(e, n = void 0, t = void 0) {
198
+ function ke(e, n = void 0, t = void 0) {
199
199
  if (e.tenant) {
200
200
  const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
201
  m(s, {
@@ -244,7 +244,21 @@ function De(e, n = void 0, t = void 0) {
244
244
  });
245
245
  }
246
246
  }
247
- function Ae(e, n, t) {
247
+ function Ae(e, n = void 0, t = void 0) {
248
+ if (e.tenant) {
249
+ const s = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
250
+ m(s, {
251
+ type: "json",
252
+ onComplete(i) {
253
+ n && n(i);
254
+ },
255
+ onFailure(i) {
256
+ t && t(i);
257
+ }
258
+ });
259
+ }
260
+ }
261
+ function Pe(e, n, t) {
248
262
  const s = {
249
263
  base: `${e.space}`,
250
264
  uri: "/resources/AppsMngt/api/custom/applications",
@@ -270,7 +284,7 @@ function Ae(e, n, t) {
270
284
  }
271
285
  });
272
286
  }
273
- function Pe(e, n = void 0, t = void 0) {
287
+ function Le(e, n = void 0, t = void 0) {
274
288
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
275
289
  m(s, {
276
290
  onComplete(i, r, o) {
@@ -283,7 +297,7 @@ function Pe(e, n = void 0, t = void 0) {
283
297
  }
284
298
  });
285
299
  }
286
- function Le(e, n, t = void 0, s = void 0) {
300
+ function Je(e, n, t = void 0, s = void 0) {
287
301
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
288
302
  m(i, {
289
303
  onComplete(r, o, a) {
@@ -300,7 +314,7 @@ const I = {
300
314
  "Content-Type": "application/json",
301
315
  Accept: "application/json,text/javascript,*/*"
302
316
  };
303
- function Je(e, n, t = void 0, s = void 0) {
317
+ function Me(e, n, t = void 0, s = void 0) {
304
318
  const { space: i, currentUser: r } = e, a = `${i}${{
305
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
306
320
  }.URIUGr}`, c = {
@@ -329,7 +343,7 @@ function Je(e, n, t = void 0, s = void 0) {
329
343
  }
330
344
  });
331
345
  }
332
- function Me(e, n, t = void 0, s = void 0) {
346
+ function Ge(e, n, t = void 0, s = void 0) {
333
347
  const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
334
348
  m(d, {
335
349
  opts: {
@@ -364,7 +378,7 @@ function ee(e, n = void 0, t = void 0) {
364
378
  }
365
379
  });
366
380
  }
367
- function Ge(e, n = void 0, t = void 0) {
381
+ function Be(e, n = void 0, t = void 0) {
368
382
  const { _usersgroup: s, currentUser: i, numMax: r } = e;
369
383
  r || (r = 50);
370
384
  const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${s}${o}${a}${c}`, p = { method: "GET", headers: {
@@ -451,7 +465,7 @@ function Ee(e, n, t) {
451
465
  t && t(d);
452
466
  }
453
467
  }
454
- function Be(e, n, t) {
468
+ function Ke(e, n, t) {
455
469
  const { _usersgroup: s, list_emails: i } = e;
456
470
  if (!i || i.length === 0) {
457
471
  t({
@@ -474,7 +488,7 @@ function Be(e, n, t) {
474
488
  onComplete(c) {
475
489
  if (n) {
476
490
  const d = JSON.parse(c);
477
- n({ groupes: d[0].groups, reponse: d });
491
+ n({ groupes: d.users[0].groups, reponse: d });
478
492
  }
479
493
  },
480
494
  onFailure(c, d) {
@@ -504,13 +518,13 @@ function Be(e, n, t) {
504
518
  t && t(d);
505
519
  }
506
520
  }
507
- function Ke(e, n) {
521
+ function qe(e, n) {
508
522
  const { space: t } = e, i = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
509
523
  m(i, {
510
524
  method: "DELETE"
511
525
  });
512
526
  }
513
- function qe(e, n, t, s = void 0, i = void 0) {
527
+ function Xe(e, n, t, s = void 0, i = void 0) {
514
528
  const { space: r, tenant: o } = e, a = {
515
529
  URITI: "/3drdfpersist/resources/v1/template-instances",
516
530
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -533,7 +547,7 @@ function qe(e, n, t, s = void 0, i = void 0) {
533
547
  }
534
548
  });
535
549
  }
536
- function Xe(e, n, t, s = void 0, i = void 0) {
550
+ function We(e, n, t, s = void 0, i = void 0) {
537
551
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
538
552
  m(a, {
539
553
  method: "PATCH",
@@ -548,7 +562,7 @@ function Xe(e, n, t, s = void 0, i = void 0) {
548
562
  }
549
563
  });
550
564
  }
551
- function We(e, n, t = void 0, s = void 0) {
565
+ function Ve(e, n, t = void 0, s = void 0) {
552
566
  const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
553
567
  m(o, {
554
568
  opts: {
@@ -637,7 +651,7 @@ async function M(e, n = void 0, t = void 0, s = void 0) {
637
651
  }
638
652
  });
639
653
  }
640
- async function Ve(e, n = void 0, t = void 0, s = void 0) {
654
+ async function Ye(e, n = void 0, t = void 0, s = void 0) {
641
655
  const i = e.space;
642
656
  if (n === void 0) {
643
657
  console.log("Le paramètre docids est obligatoire");
@@ -703,7 +717,7 @@ function O(e, n = void 0, t = void 0) {
703
717
  } else
704
718
  t && t("ERROR : url du 3DSpace non défini.");
705
719
  }
706
- function k(e, n = void 0, t = void 0) {
720
+ function j(e, n = void 0, t = void 0) {
707
721
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
708
722
  R(
709
723
  e,
@@ -727,7 +741,7 @@ function k(e, n = void 0, t = void 0) {
727
741
  }
728
742
  );
729
743
  }
730
- function Ye(e, n, t = void 0, s = void 0, i = void 0) {
744
+ function ze(e, n, t = void 0, s = void 0, i = void 0) {
731
745
  const r = `${e.space}/resources/v1/modeler/documents/${n}/files/DownloadTicket`;
732
746
  t || (t = e.token), m(r, {
733
747
  method: "PUT",
@@ -837,7 +851,7 @@ function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
837
851
  }
838
852
  });
839
853
  }
840
- async function ze(e, n, t = void 0, s = void 0) {
854
+ async function He(e, n, t = void 0, s = void 0) {
841
855
  e.space, e.token, e.ctx;
842
856
  const i = e?.description, r = e?.title;
843
857
  if (!n) {
@@ -870,7 +884,7 @@ async function ze(e, n, t = void 0, s = void 0) {
870
884
  }
871
885
  });
872
886
  }
873
- async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0) {
887
+ async function Qe(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0) {
874
888
  let { tenant: o, cs_name: a } = e;
875
889
  if (!o && !a) {
876
890
  i && i("Credentials undefined");
@@ -902,15 +916,15 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
902
916
  try {
903
917
  if (l = JSON.parse(l), l?.ticket) {
904
918
  const { ticket: y, actionurl: S, jobticket: w } = l;
905
- E(
919
+ B(
906
920
  { dataelements: { ticket: y, ticketURL: S } },
907
921
  t,
908
922
  n,
909
923
  (_) => {
910
- const j = new DOMParser().parseFromString(
924
+ const v = new DOMParser().parseFromString(
911
925
  _,
912
926
  "text/html"
913
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
927
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(v)}`;
914
928
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
915
929
  const D = JSON.stringify({
916
930
  actions: [],
@@ -928,7 +942,7 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
928
942
  },
929
943
  collabspace: a
930
944
  });
931
- m(v, {
945
+ m(k, {
932
946
  method: "POST",
933
947
  headers: {
934
948
  Accept: "application/json",
@@ -943,7 +957,7 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
943
957
  onFailure(N) {
944
958
  console.warn(
945
959
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
946
- { url: v, bodyRequest: D, err: N }
960
+ { url: k, bodyRequest: D, err: N }
947
961
  ), i && i(N);
948
962
  }
949
963
  });
@@ -974,7 +988,7 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
974
988
  }
975
989
  );
976
990
  }
977
- async function Qe(e, n, t, s = void 0, i = void 0) {
991
+ async function Ze(e, n, t, s = void 0, i = void 0) {
978
992
  e.space, e.token, e.ctx, M(
979
993
  e,
980
994
  n,
@@ -999,12 +1013,12 @@ async function Qe(e, n, t, s = void 0, i = void 0) {
999
1013
  }
1000
1014
  );
1001
1015
  }
1002
- async function Ze(e, n, t, s, i = void 0, r = void 0) {
1016
+ async function et(e, n, t, s, i = void 0, r = void 0) {
1003
1017
  ae(
1004
1018
  e,
1005
1019
  (o) => {
1006
1020
  o?.items >= 1 && o.data.forEach((a) => {
1007
- E(
1021
+ B(
1008
1022
  a,
1009
1023
  n,
1010
1024
  t,
@@ -1055,7 +1069,7 @@ function ae(e, n = void 0, t = void 0) {
1055
1069
  } else
1056
1070
  console.log("Error de credentials", e);
1057
1071
  }
1058
- function E(e, n, t, s = void 0, i = void 0, r = void 0) {
1072
+ function B(e, n, t, s = void 0, i = void 0, r = void 0) {
1059
1073
  console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: n, fileName: t });
1060
1074
  let o = new FormData();
1061
1075
  n instanceof Blob || (n = new Blob([n], {
@@ -1170,7 +1184,7 @@ function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1
1170
1184
  }
1171
1185
  });
1172
1186
  }
1173
- async function B(e, n = void 0, t = void 0) {
1187
+ async function E(e, n = void 0, t = void 0) {
1174
1188
  return (!e.objID || e.objID === "") && (console.warn(
1175
1189
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
1176
1190
  ), t && t(
@@ -1186,7 +1200,7 @@ async function B(e, n = void 0, t = void 0) {
1186
1200
  console.log("☠️ error => ", s);
1187
1201
  }
1188
1202
  ), new Promise((s, i) => {
1189
- k(
1203
+ j(
1190
1204
  e,
1191
1205
  (r) => {
1192
1206
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
@@ -1289,7 +1303,7 @@ function de(e, n, t = void 0, s = void 0, i = void 0) {
1289
1303
  }
1290
1304
  });
1291
1305
  }
1292
- function et(e, n, t = void 0, s = void 0) {
1306
+ function tt(e, n, t = void 0, s = void 0) {
1293
1307
  return new Promise((i) => {
1294
1308
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1295
1309
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -1320,7 +1334,7 @@ function et(e, n, t = void 0, s = void 0) {
1320
1334
  }
1321
1335
  });
1322
1336
  }
1323
- function tt(e, n, t, s = void 0, i = void 0) {
1337
+ function nt(e, n, t, s = void 0, i = void 0) {
1324
1338
  return new Promise((r) => {
1325
1339
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1326
1340
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1352,7 +1366,7 @@ function tt(e, n, t, s = void 0, i = void 0) {
1352
1366
  }
1353
1367
  });
1354
1368
  }
1355
- function nt(e, n, t = void 0, s = void 0) {
1369
+ function st(e, n, t = void 0, s = void 0) {
1356
1370
  return new Promise((i) => {
1357
1371
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1358
1372
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
@@ -1393,7 +1407,7 @@ function nt(e, n, t = void 0, s = void 0) {
1393
1407
  }
1394
1408
  });
1395
1409
  }
1396
- function st(e, n, t = void 0, s = void 0) {
1410
+ function it(e, n, t = void 0, s = void 0) {
1397
1411
  return new Promise((i) => {
1398
1412
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1399
1413
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -1440,7 +1454,7 @@ function st(e, n, t = void 0, s = void 0) {
1440
1454
  }
1441
1455
  });
1442
1456
  }
1443
- function it(e, n, t, s = void 0, i = void 0) {
1457
+ function ot(e, n, t, s = void 0, i = void 0) {
1444
1458
  return new Promise((r) => {
1445
1459
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1446
1460
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1501,7 +1515,7 @@ function ue(e) {
1501
1515
  });
1502
1516
  });
1503
1517
  }
1504
- function ot(e, n, t = void 0, s = void 0) {
1518
+ function at(e, n, t = void 0, s = void 0) {
1505
1519
  return new Promise(async (i, r) => {
1506
1520
  const { tenant: o, ctx: a, space: c } = e;
1507
1521
  (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
@@ -1536,7 +1550,7 @@ function ot(e, n, t = void 0, s = void 0) {
1536
1550
  m(d, p);
1537
1551
  });
1538
1552
  }
1539
- function at(e, n, t, s, i = void 0, r = void 0) {
1553
+ function rt(e, n, t, s, i = void 0, r = void 0) {
1540
1554
  return new Promise((o) => {
1541
1555
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1542
1556
  let c = {
@@ -1569,7 +1583,7 @@ function at(e, n, t, s, i = void 0, r = void 0) {
1569
1583
  m(a, u);
1570
1584
  });
1571
1585
  }
1572
- function rt(e, n, t, s, i = void 0, r = void 0) {
1586
+ function ct(e, n, t, s, i = void 0, r = void 0) {
1573
1587
  return console.log("credentials", e), new Promise((o) => {
1574
1588
  `${e.space}`, JSON.stringify({
1575
1589
  csrf: {
@@ -1593,7 +1607,7 @@ function rt(e, n, t, s, i = void 0, r = void 0) {
1593
1607
  });
1594
1608
  }
1595
1609
  //!SECTION
1596
- function ct(e, n = void 0, t = void 0) {
1610
+ function dt(e, n = void 0, t = void 0) {
1597
1611
  const s = {
1598
1612
  base: `${e.space}`,
1599
1613
  uri: "/resources/bps/cspaces",
@@ -1614,8 +1628,8 @@ function ct(e, n = void 0, t = void 0) {
1614
1628
  }
1615
1629
  });
1616
1630
  }
1617
- function dt(e, n, t, s) {
1618
- k(
1631
+ function ut(e, n, t, s) {
1632
+ j(
1619
1633
  e.space,
1620
1634
  n,
1621
1635
  (i) => {
@@ -1631,9 +1645,9 @@ function dt(e, n, t, s) {
1631
1645
  }
1632
1646
  );
1633
1647
  }
1634
- async function ut(e, n, t = void 0, s = void 0) {
1648
+ async function pt(e, n, t = void 0, s = void 0) {
1635
1649
  return new Promise((i) => {
1636
- k(e, n, (r) => {
1650
+ j(e, n, (r) => {
1637
1651
  m(r, {
1638
1652
  onComplete: (o, a, c) => (i(JSON.parse(o)), t && t(JSON.parse(o), a, c), i),
1639
1653
  onFailure: (o, a, c) => {
@@ -1643,7 +1657,7 @@ async function ut(e, n, t = void 0, s = void 0) {
1643
1657
  });
1644
1658
  });
1645
1659
  }
1646
- function pt(e, n, t, s = void 0, i = void 0) {
1660
+ function lt(e, n, t, s = void 0, i = void 0) {
1647
1661
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1648
1662
  e = { ...e, objID: t }, R(
1649
1663
  e,
@@ -1671,7 +1685,7 @@ function pt(e, n, t, s = void 0, i = void 0) {
1671
1685
  }
1672
1686
  let K, q;
1673
1687
  const A = [];
1674
- async function lt(e, n = void 0, t = void 0) {
1688
+ async function ft(e, n = void 0, t = void 0) {
1675
1689
  e.objID && e.objID !== "" ? R(
1676
1690
  e,
1677
1691
  (s) => {
@@ -1690,8 +1704,8 @@ async function lt(e, n = void 0, t = void 0) {
1690
1704
  }
1691
1705
  );
1692
1706
  }
1693
- async function ft(e, n = void 0, t = void 0) {
1694
- console.log("getDatasByTenant (getDocuments)", e), await B(
1707
+ async function mt(e, n = void 0, t = void 0) {
1708
+ console.log("getDatasByTenant (getDocuments)", e), await E(
1695
1709
  e,
1696
1710
  (s) => {
1697
1711
  const i = {};
@@ -1702,14 +1716,14 @@ async function ft(e, n = void 0, t = void 0) {
1702
1716
  }
1703
1717
  );
1704
1718
  }
1705
- function mt(e, n = void 0, t = void 0) {
1719
+ function gt(e, n = void 0, t = void 0) {
1706
1720
  const s = [];
1707
1721
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1708
1722
  console.warn("la liste est vide ou n'est pas un tableau");
1709
1723
  return;
1710
1724
  }
1711
1725
  e.objIds.forEach((i, r) => {
1712
- B(
1726
+ E(
1713
1727
  e,
1714
1728
  i.objID,
1715
1729
  (o) => {
@@ -1751,7 +1765,7 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1751
1765
  order_by: "desc",
1752
1766
  tag: "testTag"
1753
1767
  };
1754
- function gt(e, n, t = void 0, s = void 0) {
1768
+ function ht(e, n, t = void 0, s = void 0) {
1755
1769
  const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1756
1770
  uri: "/resources/6w/tags",
1757
1771
  otpCTX: "SecurityContext=preferred",
@@ -1894,7 +1908,7 @@ function ge(e, n, t = void 0, s = void 0) {
1894
1908
  }
1895
1909
  });
1896
1910
  }
1897
- function ht(e, n, t = void 0, s = void 0) {
1911
+ function yt(e, n, t = void 0, s = void 0) {
1898
1912
  const { objId: i, pred: r, tag: o } = n, a = {
1899
1913
  uri: "/resources/6w/tags",
1900
1914
  otpCTX: "SecurityContext=preferred",
@@ -1930,7 +1944,7 @@ function ht(e, n, t = void 0, s = void 0) {
1930
1944
  }
1931
1945
  });
1932
1946
  }
1933
- function yt(e, n = "", t = void 0, s = void 0) {
1947
+ function _t(e, n = "", t = void 0, s = void 0) {
1934
1948
  const { space: i } = e;
1935
1949
  if (n === "")
1936
1950
  return;
@@ -1966,7 +1980,7 @@ async function C(e, n = void 0, t = void 0) {
1966
1980
  }
1967
1981
  });
1968
1982
  }
1969
- function _t(e, n = void 0, t = void 0) {
1983
+ function St(e, n = void 0, t = void 0) {
1970
1984
  const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1971
1985
  params: {
1972
1986
  community_id: null,
@@ -1996,7 +2010,7 @@ function _t(e, n = void 0, t = void 0) {
1996
2010
  });
1997
2011
  });
1998
2012
  }
1999
- function St(e, n = void 0, t = void 0) {
2013
+ function wt(e, n = void 0, t = void 0) {
2000
2014
  const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
2001
2015
  params: {
2002
2016
  idsToFilterArr: [],
@@ -2026,7 +2040,7 @@ function St(e, n = void 0, t = void 0) {
2026
2040
  });
2027
2041
  });
2028
2042
  }
2029
- function wt(e, n = void 0, t = void 0) {
2043
+ function Ct(e, n = void 0, t = void 0) {
2030
2044
  const s = {
2031
2045
  base: e._3DSwym,
2032
2046
  uri: "/api/community/listmycommunities",
@@ -2096,7 +2110,7 @@ function he(e, n, t, s) {
2096
2110
  });
2097
2111
  });
2098
2112
  }
2099
- function Ct(e, n = void 0, t = void 0) {
2113
+ function Ot(e, n = void 0, t = void 0) {
2100
2114
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
2101
2115
  e.commu_id || (e.commu_id = s);
2102
2116
  const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -2119,7 +2133,7 @@ function Ct(e, n = void 0, t = void 0) {
2119
2133
  });
2120
2134
  });
2121
2135
  }
2122
- function Ot(e, n, t = void 0, s = void 0) {
2136
+ function bt(e, n, t = void 0, s = void 0) {
2123
2137
  const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
2124
2138
  console.log("__listAllContacts", i.hits);
2125
2139
  const a = `${o}/api/directmessages`, c = {
@@ -2235,7 +2249,7 @@ function _e(e) {
2235
2249
  <hr/>
2236
2250
  <p><u>envoyer :</u>Le <b>${n} à ${t}</b></p>`;
2237
2251
  }
2238
- function bt(e, n, t = void 0, s = void 0) {
2252
+ function Tt(e, n, t = void 0, s = void 0) {
2239
2253
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2240
2254
  (c) => c.id === n.community_id
2241
2255
  ), o = e.swymCommunities.find(
@@ -2274,7 +2288,7 @@ function bt(e, n, t = void 0, s = void 0) {
2274
2288
  });
2275
2289
  });
2276
2290
  }
2277
- function Tt(e, n = void 0, t = void 0) {
2291
+ function $t(e, n = void 0, t = void 0) {
2278
2292
  const s = { base: e.space, uri: "/api/idea/add" };
2279
2293
  if (!Array.isArray(e.swymCommunities)) {
2280
2294
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
@@ -2347,7 +2361,7 @@ function Tt(e, n = void 0, t = void 0) {
2347
2361
  m(s.base + s.uri, a);
2348
2362
  });
2349
2363
  }
2350
- function $t(e, n, t = void 0, s = void 0) {
2364
+ function Ut(e, n, t = void 0, s = void 0) {
2351
2365
  const i = `${e.space}/api/idea/delete`, r = {
2352
2366
  params: {
2353
2367
  community_id: n.community_id,
@@ -2374,7 +2388,7 @@ function $t(e, n, t = void 0, s = void 0) {
2374
2388
  });
2375
2389
  });
2376
2390
  }
2377
- function Ut(e, n = void 0, t = void 0) {
2391
+ function xt(e, n = void 0, t = void 0) {
2378
2392
  const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2379
2393
  if (e.idPost === "") {
2380
2394
  const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
@@ -2402,7 +2416,7 @@ function Ut(e, n = void 0, t = void 0) {
2402
2416
  }
2403
2417
  });
2404
2418
  }
2405
- function xt(e, n, t) {
2419
+ function It(e, n, t) {
2406
2420
  const {
2407
2421
  _3DSwym: s,
2408
2422
  _3DSwym_token: i,
@@ -2447,7 +2461,7 @@ function xt(e, n, t) {
2447
2461
  };
2448
2462
  m(p.base + p.uri, l);
2449
2463
  }
2450
- function It(e, n, t = void 0, s = void 0) {
2464
+ function Nt(e, n, t = void 0, s = void 0) {
2451
2465
  const { _3DSwym: i } = e;
2452
2466
  let { community_id: r, limit: o, page: a, search: c } = n;
2453
2467
  const d = [], u = 1;
@@ -2474,7 +2488,7 @@ function It(e, n, t = void 0, s = void 0) {
2474
2488
  d.push(_.response.result);
2475
2489
  else {
2476
2490
  const b = _.response.result.find(
2477
- (j) => j.title.includes(c)
2491
+ (v) => v.title.includes(c)
2478
2492
  );
2479
2493
  if (b) {
2480
2494
  t(b);
@@ -2572,7 +2586,7 @@ function Se(e) {
2572
2586
  <p>
2573
2587
  </p>` : e;
2574
2588
  }
2575
- function Nt(e, n = void 0, t = void 0) {
2589
+ function Rt(e, n = void 0, t = void 0) {
2576
2590
  const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2577
2591
  if (s && i && r && o && a) {
2578
2592
  const c = `${i}/api/idea/forward`;
@@ -2605,7 +2619,7 @@ function Nt(e, n = void 0, t = void 0) {
2605
2619
  credentials: e
2606
2620
  });
2607
2621
  }
2608
- function Rt(e, n = void 0, t = void 0) {
2622
+ function Ft(e, n = void 0, t = void 0) {
2609
2623
  return new Promise((s, i) => {
2610
2624
  try {
2611
2625
  let r;
@@ -2635,7 +2649,7 @@ function Rt(e, n = void 0, t = void 0) {
2635
2649
  }
2636
2650
  });
2637
2651
  }
2638
- function Ft(e, n, t = void 0, s = void 0) {
2652
+ function vt(e, n, t = void 0, s = void 0) {
2639
2653
  const i = e.space + "/api/user/find/login/" + n;
2640
2654
  C(
2641
2655
  e,
@@ -2688,8 +2702,8 @@ function kt(e, n = void 0, t = void 0) {
2688
2702
  return n && n(i), i;
2689
2703
  });
2690
2704
  }
2691
- function vt(e, n = void 0, t = void 0) {
2692
- console.log("_Iterop_Auth_CAS"), e.tenant && J(e, (s) => {
2705
+ function Dt(e, n = void 0, t = void 0) {
2706
+ console.log("_Iterop_Auth_CAS"), e.tenant ? J(e, (s) => {
2693
2707
  console.log("serviceUrls", s);
2694
2708
  const i = s.services.find(
2695
2709
  (a) => a.id === "3dpassport"
@@ -2708,9 +2722,9 @@ function vt(e, n = void 0, t = void 0) {
2708
2722
  t && t(a);
2709
2723
  }
2710
2724
  });
2711
- });
2725
+ }) : t && t("No tenant");
2712
2726
  }
2713
- function Dt(e, n = void 0, t = void 0) {
2727
+ function At(e, n = void 0, t = void 0) {
2714
2728
  if (e.tenant) {
2715
2729
  const s = e.tenant.toLowerCase();
2716
2730
  fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
@@ -2722,7 +2736,7 @@ function Dt(e, n = void 0, t = void 0) {
2722
2736
  });
2723
2737
  }
2724
2738
  }
2725
- async function At(e, n, t = void 0, s = void 0) {
2739
+ async function Pt(e, n, t = void 0, s = void 0) {
2726
2740
  if (e.tenant) {
2727
2741
  const i = e.tenant.toLowerCase();
2728
2742
  fetch(
@@ -2737,7 +2751,7 @@ async function At(e, n, t = void 0, s = void 0) {
2737
2751
  });
2738
2752
  }
2739
2753
  }
2740
- function Pt(e, n, t, s = void 0, i = void 0) {
2754
+ function Lt(e, n, t, s = void 0, i = void 0) {
2741
2755
  if (e.tenant) {
2742
2756
  const r = e.tenant.toLowerCase();
2743
2757
  fetch(
@@ -2752,7 +2766,7 @@ function Pt(e, n, t, s = void 0, i = void 0) {
2752
2766
  });
2753
2767
  }
2754
2768
  }
2755
- async function Lt(e, n, t, s = void 0, i = void 0) {
2769
+ async function Jt(e, n, t, s = void 0, i = void 0) {
2756
2770
  if (e.tenant) {
2757
2771
  const r = e.tenant.toLowerCase();
2758
2772
  fetch(
@@ -2767,7 +2781,7 @@ async function Lt(e, n, t, s = void 0, i = void 0) {
2767
2781
  });
2768
2782
  }
2769
2783
  }
2770
- async function Jt(e, n, t, s, i = void 0, r = void 0) {
2784
+ async function Mt(e, n, t, s, i = void 0, r = void 0) {
2771
2785
  if (e.tenant) {
2772
2786
  const o = e.tenant.toLowerCase();
2773
2787
  fetch(
@@ -2782,7 +2796,7 @@ async function Jt(e, n, t, s, i = void 0, r = void 0) {
2782
2796
  });
2783
2797
  }
2784
2798
  }
2785
- async function Mt(e, n, t, s, i, r = void 0, o = void 0) {
2799
+ async function Gt(e, n, t, s, i, r = void 0, o = void 0) {
2786
2800
  if (e.tenant) {
2787
2801
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2788
2802
  s
@@ -2801,7 +2815,7 @@ async function Mt(e, n, t, s, i, r = void 0, o = void 0) {
2801
2815
  });
2802
2816
  }
2803
2817
  }
2804
- async function Gt(e, n, t, s, i = void 0, r = void 0) {
2818
+ async function Bt(e, n, t, s, i = void 0, r = void 0) {
2805
2819
  if (e.tenant) {
2806
2820
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2807
2821
  s
@@ -2835,7 +2849,7 @@ async function Et(e, n, t, s = void 0, i = void 0) {
2835
2849
  });
2836
2850
  }
2837
2851
  }
2838
- async function Bt(e, n, t, s, i = void 0, r = void 0) {
2852
+ async function Kt(e, n, t, s, i = void 0, r = void 0) {
2839
2853
  if (e.tenant) {
2840
2854
  const o = e.tenant.toLowerCase();
2841
2855
  fetch(
@@ -2850,7 +2864,7 @@ async function Bt(e, n, t, s, i = void 0, r = void 0) {
2850
2864
  });
2851
2865
  }
2852
2866
  }
2853
- async function Kt(e, n, t, s = void 0, i = void 0) {
2867
+ async function qt(e, n, t, s = void 0, i = void 0) {
2854
2868
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2855
2869
  const r = e.tenant.toLowerCase();
2856
2870
  fetch(
@@ -2865,7 +2879,7 @@ async function Kt(e, n, t, s = void 0, i = void 0) {
2865
2879
  });
2866
2880
  }
2867
2881
  }
2868
- async function qt(e, n, t, s, i, r = void 0, o = void 0) {
2882
+ async function Xt(e, n, t, s, i, r = void 0, o = void 0) {
2869
2883
  if (e.tenant) {
2870
2884
  const a = e.tenant.toLowerCase();
2871
2885
  fetch(
@@ -2880,7 +2894,7 @@ async function qt(e, n, t, s, i, r = void 0, o = void 0) {
2880
2894
  });
2881
2895
  }
2882
2896
  }
2883
- async function Xt(e, n, t, s, i = void 0, r = void 0) {
2897
+ async function Wt(e, n, t, s, i = void 0, r = void 0) {
2884
2898
  if (e.tenant) {
2885
2899
  const o = e.tenant.toLowerCase();
2886
2900
  fetch(
@@ -2896,7 +2910,7 @@ async function Xt(e, n, t, s, i = void 0, r = void 0) {
2896
2910
  }
2897
2911
  }
2898
2912
  //!SECTION
2899
- async function Wt(e, n, t, s = void 0, i = void 0) {
2913
+ async function Vt(e, n, t, s = void 0, i = void 0) {
2900
2914
  if (e.tenant) {
2901
2915
  const r = e.tenant.toLowerCase();
2902
2916
  fetch(
@@ -2912,11 +2926,11 @@ async function Wt(e, n, t, s = void 0, i = void 0) {
2912
2926
  }
2913
2927
  }
2914
2928
  //!SECTION
2915
- function Vt(e) {
2929
+ function Yt(e) {
2916
2930
  const n = "Hello " + e;
2917
2931
  return console.log(n), n;
2918
2932
  }
2919
- function Yt(e, n = void 0, t = void 0) {
2933
+ function zt(e, n = void 0, t = void 0) {
2920
2934
  return console.log("credentials", e), new Promise((s) => {
2921
2935
  if (e.token === "" && O(e), !e.space || e.space === "") {
2922
2936
  const o = Z();
@@ -2997,105 +3011,106 @@ function Yt(e, n = void 0, t = void 0) {
2997
3011
  }
2998
3012
  export {
2999
3013
  Y as UUID,
3000
- Yt as _3DSearch_usersGroup,
3001
- Ze as _3DSpace_Create_Doc,
3002
- Qe as _3DSpace_Update_Doc,
3003
- He as _3DSpace_Upload_File,
3004
- rt as _3DSpace_bookmark_addSubsciptions,
3005
- at as _3DSpace_bookmark_newWorkspace,
3014
+ zt as _3DSearch_usersGroup,
3015
+ et as _3DSpace_Create_Doc,
3016
+ Ze as _3DSpace_Update_Doc,
3017
+ Qe as _3DSpace_Upload_File,
3018
+ ct as _3DSpace_bookmark_addSubsciptions,
3019
+ rt as _3DSpace_bookmark_newWorkspace,
3006
3020
  O as _3DSpace_csrf,
3007
- B as _3DSpace_download_doc,
3021
+ E as _3DSpace_download_doc,
3008
3022
  ce as _3DSpace_download_multidoc,
3009
3023
  G as _3DSpace_file_update,
3010
3024
  oe as _3DSpace_file_update_csr,
3011
- Ye as _3DSpace_file_url_csr,
3025
+ ze as _3DSpace_file_url_csr,
3012
3026
  R as _3DSpace_get_csrf,
3013
3027
  M as _3DSpace_get_docInfo,
3014
3028
  de as _3DSpace_get_downloadTicket_multidoc,
3015
- Ve as _3DSpace_get_multiDocInfo,
3029
+ Ye as _3DSpace_get_multiDocInfo,
3016
3030
  F as _3DSpace_get_securityContexts,
3017
- k as _3DSpace_get_ticket,
3018
- it as _3DSpace_lifecycle_changeRevision,
3019
- tt as _3DSpace_lifecycle_changeState,
3020
- nt as _3DSpace_lifecycle_getGraph,
3021
- st as _3DSpace_lifecycle_getNextRevision,
3022
- et as _3DSpace_lifecycle_getNextStates,
3023
- ot as _3DSpace_lifecycle_getRevisions,
3024
- ze as _3DSpace_put_docInfo,
3025
- Nt as _3DSwym_ForwardIdea,
3031
+ j as _3DSpace_get_ticket,
3032
+ ot as _3DSpace_lifecycle_changeRevision,
3033
+ nt as _3DSpace_lifecycle_changeState,
3034
+ st as _3DSpace_lifecycle_getGraph,
3035
+ it as _3DSpace_lifecycle_getNextRevision,
3036
+ tt as _3DSpace_lifecycle_getNextStates,
3037
+ at as _3DSpace_lifecycle_getRevisions,
3038
+ He as _3DSpace_put_docInfo,
3039
+ Rt as _3DSwym_ForwardIdea,
3026
3040
  jt as _3DSwym_addComment,
3027
- Ot as _3DSwym_buildDirectMessage,
3028
- $t as _3DSwym_deleteIdea,
3029
- xt as _3DSwym_editIdea,
3041
+ bt as _3DSwym_buildDirectMessage,
3042
+ Ut as _3DSwym_deleteIdea,
3043
+ It as _3DSwym_editIdea,
3030
3044
  ye as _3DSwym_findCommunityToInstantMSG,
3031
- wt as _3DSwym_getAllCommunities,
3032
- It as _3DSwym_getAllListIdeas,
3033
- _t as _3DSwym_getAllNews,
3034
- St as _3DSwym_getFamiliarPeople,
3035
- Ct as _3DSwym_getIdeaStatusMaturity,
3045
+ Ct as _3DSwym_getAllCommunities,
3046
+ Nt as _3DSwym_getAllListIdeas,
3047
+ St as _3DSwym_getAllNews,
3048
+ wt as _3DSwym_getFamiliarPeople,
3049
+ Ot as _3DSwym_getIdeaStatusMaturity,
3036
3050
  he as _3DSwym_getMembersCommunity,
3037
- Ut as _3DSwym_getOneIdea,
3051
+ xt as _3DSwym_getOneIdea,
3038
3052
  C as _3DSwym_get_Token,
3039
- Rt as _3DSwym_get_currentUser,
3040
- Ft as _3DSwym_get_findUser,
3041
- Tt as _3DSwym_postIdea,
3042
- bt as _3DSwym_postIdeaTemplate,
3053
+ Ft as _3DSwym_get_currentUser,
3054
+ vt as _3DSwym_get_findUser,
3055
+ $t as _3DSwym_postIdea,
3056
+ Tt as _3DSwym_postIdeaTemplate,
3043
3057
  P as _3DSwym_sendMessageData,
3044
- Le as _AppMngt_get_info_user,
3045
- Pe as _AppMngt_get_users,
3046
- Jt as _Iterop_AddOrRemoveRows,
3047
- vt as _Iterop_Auth_CAS,
3048
- Kt as _Iterop_GetOneDependencyTable,
3049
- Wt as _Iterop_GetOneList,
3050
- qt as _Iterop_PatchDependencyTable,
3051
- Xt as _Iterop_PutDependencyTable,
3052
- Mt as _Iterop_businessTableSearchInRows,
3058
+ Je as _AppMngt_get_info_user,
3059
+ Le as _AppMngt_get_users,
3060
+ Mt as _Iterop_AddOrRemoveRows,
3061
+ Dt as _Iterop_Auth_CAS,
3062
+ qt as _Iterop_GetOneDependencyTable,
3063
+ Vt as _Iterop_GetOneList,
3064
+ Xt as _Iterop_PatchDependencyTable,
3065
+ Wt as _Iterop_PutDependencyTable,
3066
+ Gt as _Iterop_businessTableSearchInRows,
3053
3067
  Et as _Iterop_createBusinessTable,
3054
- At as _Iterop_getAllBusinessTables,
3055
- Pt as _Iterop_getOneBusinessTable,
3056
- Lt as _Iterop_getOneBusinessTableRows,
3057
- Dt as _Iterop_jwtUser,
3058
- Bt as _Iterop_runProcess,
3059
- Gt as _Iterop_updateBusinessTable,
3060
- ve as _getMe,
3068
+ Pt as _Iterop_getAllBusinessTables,
3069
+ Lt as _Iterop_getOneBusinessTable,
3070
+ Jt as _Iterop_getOneBusinessTableRows,
3071
+ At as _Iterop_jwtUser,
3072
+ Kt as _Iterop_runProcess,
3073
+ Bt as _Iterop_updateBusinessTable,
3074
+ Ae as _Registry_getServicesUrl,
3075
+ ke as _getMe,
3061
3076
  Z as _getPlateformInfos,
3062
- ke as _getPlatformServices,
3077
+ je as _getPlatformServices,
3063
3078
  J as _getServiceUrl,
3064
3079
  De as _getServiceUrl_3DPassport,
3065
3080
  kt as _getServiceUrl_Iterop,
3066
3081
  m as _httpCallAuthenticated,
3067
3082
  Re as _setDraggable,
3068
- je as _setDroppable,
3083
+ ve as _setDroppable,
3069
3084
  Fe as _setupTagger,
3070
- gt as addTagToDoc,
3085
+ ht as addTagToDoc,
3071
3086
  H as chunkArray,
3072
- Ae as compass_getListAdditionalApps,
3087
+ Pe as compass_getListAdditionalApps,
3073
3088
  z as couleurs,
3074
- Je as createUserGroups,
3089
+ Me as createUserGroups,
3075
3090
  pe as dataMixing,
3076
- Ke as deleteUserGroups,
3091
+ qe as deleteUserGroups,
3077
3092
  xe as findAdresse,
3078
- ct as getAllContextSecurity,
3093
+ dt as getAllContextSecurity,
3079
3094
  te as getCSRFToken,
3080
3095
  Ue as getCommunes,
3081
- Me as getComplementUG,
3082
- dt as getDataFrom3DSpace,
3096
+ Ge as getComplementUG,
3097
+ ut as getDataFrom3DSpace,
3083
3098
  Ie as getDataFromGouvFr,
3084
- ft as getDatasByTenant,
3085
- mt as getDatasFrom3DSpace,
3086
- ut as getDownloadDocument,
3087
- yt as getInfoDocTags,
3088
- Be as getUserGroupsByEmailList,
3099
+ mt as getDatasByTenant,
3100
+ gt as getDatasFrom3DSpace,
3101
+ pt as getDownloadDocument,
3102
+ _t as getInfoDocTags,
3103
+ Ke as getUserGroupsByEmailList,
3089
3104
  Ee as getUserGroupsByURIList,
3090
- Ge as getUserGroupsList,
3105
+ Be as getUserGroupsList,
3091
3106
  ee as getUsersGroupRules,
3092
- lt as get_3DSpace_csrf,
3093
- qe as patchUserGroups,
3094
- Xe as patchUserGroupsControl,
3095
- pt as pushDataIn3DSpace,
3096
- We as readUserGroupControl,
3097
- ht as removeTagToDoc,
3098
- Vt as sayHello,
3107
+ ft as get_3DSpace_csrf,
3108
+ Xe as patchUserGroups,
3109
+ We as patchUserGroupsControl,
3110
+ lt as pushDataIn3DSpace,
3111
+ Ve as readUserGroupControl,
3112
+ yt as removeTagToDoc,
3113
+ Yt as sayHello,
3099
3114
  Ne as updateEvent
3100
3115
  };
3101
3116
  //# sourceMappingURL=wb3Api.js.map