@beam3_dev/api_module 0.0.155 → 0.0.157

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
@@ -1,7 +1,7 @@
1
1
  import { v4 as E } from "uuid";
2
2
  import { DateTime as v } from "luxon";
3
- import { requirejs as O, widget as D } from "@widget-lab/3ddashboard-utils";
4
- function P() {
3
+ import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
4
+ function D() {
5
5
  return E();
6
6
  }
7
7
  const G = {
@@ -89,7 +89,7 @@ async function ge(e, t = G) {
89
89
  } : s;
90
90
  for (let c of a)
91
91
  i.events.findIndex(
92
- (p) => p.start === v.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
92
+ (l) => l.start === v.fromISO(c.date).toISODate() && l.name === "Férié : " + c.comment
93
93
  ) === -1 && i.events.push({
94
94
  name: "Férié : " + c.comment,
95
95
  start: v.fromISO(c.date).toISODate(),
@@ -121,7 +121,7 @@ function ye(e, t = void 0) {
121
121
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
122
122
  let s;
123
123
  s === void 0 && (s = n.createProxy({
124
- widgetId: D.id,
124
+ widgetId: R.id,
125
125
  filteringMode: "WithFilteringServices"
126
126
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
127
127
  });
@@ -137,7 +137,7 @@ async function we(e, t = void 0, n = void 0) {
137
137
  await O(
138
138
  ["DS/i3DXCompassServices/i3DXCompassServices"],
139
139
  (s) => {
140
- (!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
140
+ (!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
141
141
  s.getPlatformServices({
142
142
  platformId: e,
143
143
  onComplete: t,
@@ -212,9 +212,9 @@ function Te(e, t, n) {
212
212
  Accept: "application/json"
213
213
  },
214
214
  onComplete(r, o, i) {
215
- const c = JSON.parse(r), d = c.data.map((p) => {
216
- const l = p.attributes.name, f = p.id;
217
- return { name: l, id: f };
215
+ const c = JSON.parse(r), d = c.data.map((l) => {
216
+ const p = l.attributes.name, f = l.id;
217
+ return { name: p, id: f };
218
218
  });
219
219
  t && t(d, c);
220
220
  },
@@ -250,7 +250,7 @@ function be(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const U = {
253
+ const F = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,15 +271,15 @@ function Ne(e, t, n = void 0, s = void 0) {
271
271
  };
272
272
  m(i, {
273
273
  method: "POST",
274
- headers: U,
274
+ headers: F,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
278
278
  },
279
- onFailure(d, p) {
279
+ onFailure(d, l) {
280
280
  console.log(d);
281
- const l = d;
282
- l.msg = p.errormsg, l.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
281
+ const p = d;
282
+ p.msg = l.errormsg, p.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
283
283
  }
284
284
  });
285
285
  }
@@ -309,12 +309,12 @@ function V(e, t = void 0, n = void 0) {
309
309
  }, d = `${r}${o}${i}`;
310
310
  m(d, {
311
311
  OPTsH: c,
312
- onComplete(p) {
313
- t && t(JSON.parse(p));
312
+ onComplete(l) {
313
+ t && t(JSON.parse(l));
314
314
  },
315
- onFailure(p, l) {
316
- const f = p;
317
- f.msg = l.errormsg, f.errCode = l.errorcode, n && n(f);
315
+ onFailure(l, p) {
316
+ const f = l;
317
+ f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
318
318
  }
319
319
  });
320
320
  }
@@ -326,8 +326,8 @@ function Ie(e, t = void 0, n = void 0) {
326
326
  try {
327
327
  m(i, {
328
328
  opts: d,
329
- onComplete(p) {
330
- const l = JSON.parse(p), f = {}, u = l.groups.filter((g) => g.uri.startsWith("uuid:"));
329
+ onComplete(l) {
330
+ const p = JSON.parse(l), f = {}, u = p.groups.filter((g) => g.uri.startsWith("uuid:"));
331
331
  if (a && Object.keys(a).length > 0) {
332
332
  const g = u.filter((y) => y.owner === a.email), h = u.filter((y) => y.members.includes(a.email)), S = g.concat(h);
333
333
  f.iam = S, f.UG = u, f.iamMember = h, V(
@@ -341,12 +341,12 @@ function Ie(e, t = void 0, n = void 0) {
341
341
  );
342
342
  }
343
343
  },
344
- onFailure(p) {
345
- n && n(p);
344
+ onFailure(l) {
345
+ n && n(l);
346
346
  }
347
347
  });
348
- } catch (p) {
349
- console.log(p);
348
+ } catch (l) {
349
+ console.log(l);
350
350
  }
351
351
  }
352
352
  function $e(e, t) {
@@ -364,17 +364,17 @@ function Ae(e, t, n, s = void 0, a = void 0) {
364
364
  nexURImem: "/members",
365
365
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
- }, c = n, d = `${r}${i.URIUGr}/${t}`, p = JSON.stringify(c);
367
+ }, c = n, d = `${r}${i.URIUGr}/${t}`, l = JSON.stringify(c);
368
368
  m(d, {
369
- headers: U,
369
+ headers: F,
370
370
  method: "PATCH",
371
- data: p,
371
+ data: l,
372
372
  type: "json",
373
- onComplete(l) {
374
- s && s(l);
373
+ onComplete(p) {
374
+ s && s(p);
375
375
  },
376
- onFailure(l) {
377
- a && a(l);
376
+ onFailure(p) {
377
+ a && a(p);
378
378
  }
379
379
  });
380
380
  }
@@ -382,7 +382,7 @@ function ke(e, t, n, s = void 0, a = void 0) {
382
382
  const { space: r } = e, i = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
383
  m(i, {
384
384
  method: "PATCH",
385
- headers: U,
385
+ headers: F,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -393,7 +393,7 @@ function ke(e, t, n, s = void 0, a = void 0) {
393
393
  }
394
394
  });
395
395
  }
396
- function Ue(e, t, n = void 0, s = void 0) {
396
+ function Fe(e, t, n = void 0, s = void 0) {
397
397
  const { space: a } = e, o = `${a}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
398
398
  m(o, {
399
399
  opts: {
@@ -440,8 +440,8 @@ var X = function(e, t, n, s) {
440
440
  var i = e.length;
441
441
  o > 0 && i > o && (i = o);
442
442
  for (var c = 0; c < i; ++c) {
443
- var d = e[c].replace(r, "%20"), p = d.indexOf(n), l, f, u, g;
444
- p >= 0 ? (l = d.substr(0, p), f = d.substr(p + 1)) : (l = d, f = ""), u = decodeURIComponent(l), g = decodeURIComponent(f), B(a, u) ? Array.isArray(a[u]) ? a[u].push(g) : a[u] = [a[u], g] : a[u] = g;
443
+ var d = e[c].replace(r, "%20"), l = d.indexOf(n), p, f, u, g;
444
+ l >= 0 ? (p = d.substr(0, l), f = d.substr(l + 1)) : (p = d, f = ""), u = decodeURIComponent(p), g = decodeURIComponent(f), B(a, u) ? Array.isArray(a[u]) ? a[u].push(g) : a[u] = [a[u], g] : a[u] = g;
445
445
  }
446
446
  return a;
447
447
  }, N = function(e) {
@@ -482,7 +482,7 @@ async function H(e, t = void 0, n = void 0, s = void 0) {
482
482
  }
483
483
  });
484
484
  }
485
- async function Fe(e, t = void 0, n = void 0, s = void 0) {
485
+ async function Ue(e, t = void 0, n = void 0, s = void 0) {
486
486
  const a = e.space;
487
487
  if (t === void 0) {
488
488
  console.log("Le paramètre docids est obligatoire");
@@ -498,8 +498,8 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
498
498
  },
499
499
  data: o,
500
500
  onComplete(i, c, d) {
501
- const p = JSON.parse(i);
502
- n && n(p);
501
+ const l = JSON.parse(i);
502
+ n && n(l);
503
503
  },
504
504
  onFailure(i) {
505
505
  s && s(i);
@@ -548,7 +548,7 @@ function T(e, t = void 0, n = void 0) {
548
548
  } else
549
549
  n && n("ERROR : url du 3DSpace non défini.");
550
550
  }
551
- function F(e, t = void 0, n = void 0) {
551
+ function U(e, t = void 0, n = void 0) {
552
552
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
553
553
  A(
554
554
  e,
@@ -558,9 +558,9 @@ function F(e, t = void 0, n = void 0) {
558
558
  headers: {
559
559
  ENO_CSRF_TOKEN: e.token
560
560
  },
561
- onComplete(r) {
562
- const i = JSON.parse(r).data[0].dataelements.ticketURL;
563
- t && t(i);
561
+ onComplete(r, o) {
562
+ const c = JSON.parse(r).data[0].dataelements.ticketURL;
563
+ t && t(c, o);
564
564
  },
565
565
  onFailure(r, o) {
566
566
  console.warn("☠️ error => ", r, o), n && n(r, o);
@@ -620,7 +620,7 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
620
620
  headers: {
621
621
  ENO_CSRF_TOKEN: r
622
622
  },
623
- onComplete(d, p, l) {
623
+ onComplete(d, l, p) {
624
624
  const f = JSON.parse(d).data[0].dataelements, u = new FormData();
625
625
  u.append("__fcs__jobTicket", f.ticket), u.append("file_0", s, a);
626
626
  const g = {};
@@ -664,10 +664,10 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
664
664
  }
665
665
  });
666
666
  }
667
- async function Re(e, t, n, s, a = void 0, r = void 0) {
668
- const o = e.space, i = e.token, c = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
667
+ async function Pe(e, t, n, s, a = void 0, r = void 0) {
668
+ const o = e.space, i = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
669
669
  type: "text/plain"
670
- }), l = {
670
+ }), p = {
671
671
  url_Ticket: `${o}/resources/v1/modeler/documents/files/CheckinTicket`,
672
672
  url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${c}`
673
673
  };
@@ -675,14 +675,14 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
675
675
  console.log("le store._3DSpace est vide");
676
676
  return;
677
677
  }
678
- m(l.url_Ticket, {
678
+ m(p.url_Ticket, {
679
679
  method: "PUT",
680
680
  headers: {
681
681
  ENO_CSRF_TOKEN: i.value
682
682
  },
683
683
  onComplete(f, u, g) {
684
684
  const h = JSON.parse(f).data[0].dataelements;
685
- d.append("__fcs__jobTicket", h.ticket), d.append("filename", p, n);
685
+ d.append("__fcs__jobTicket", h.ticket), d.append("filename", l, n);
686
686
  const S = {
687
687
  method: "POST",
688
688
  data: d,
@@ -711,7 +711,7 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
711
711
  }
712
712
  }]
713
713
  },
714
- tempId: P()
714
+ tempId: D()
715
715
  }]
716
716
  }),
717
717
  type: "json",
@@ -719,7 +719,7 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
719
719
  onComplete: y,
720
720
  onFailure: _
721
721
  };
722
- c !== "" && m(l.url_Post, k);
722
+ c !== "" && m(p.url_Post, k);
723
723
  } else
724
724
  console.warn("le store est vide");
725
725
  },
@@ -742,11 +742,11 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
742
742
  method: "GET",
743
743
  onComplete(c) {
744
744
  const d = JSON.parse(c);
745
- let p = "", l, f, u;
745
+ let l = "", p, f, u;
746
746
  if (t) {
747
747
  let g = d.collabspaces.find((h) => h.title === t);
748
748
  if (g) {
749
- l = t;
749
+ p = t;
750
750
  let h = g.couples;
751
751
  h = h.filter(
752
752
  (S, y, _) => y === _.findIndex(
@@ -775,7 +775,7 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
775
775
  }));
776
776
  }
777
777
  }
778
- l && f && u ? (p = u + "." + f + "." + l, a(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(p)) : r && (p = u + "." + f + "." + l, r(p));
778
+ p && f && u ? (l = u + "." + f + "." + p, a(l)) : d.preferredcredentials && o ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(l)) : r && (l = u + "." + f + "." + p, r(l));
779
779
  },
780
780
  onFailure(c, d) {
781
781
  console.log("Erreur de récupération du contexte de sécurité. => ", {
@@ -799,32 +799,30 @@ async function x(e, t = void 0, n = void 0) {
799
799
  console.log("☠️ error => ", s);
800
800
  }
801
801
  ), new Promise((s, a) => {
802
- F(
802
+ U(
803
803
  e,
804
804
  (r) => {
805
- m(r, {
806
- headers: {
807
- "Content-Type": "application/json",
808
- Accept: "application/json"
809
- },
810
- onComplete(i) {
811
- let c;
805
+ e?.returnType === "blob" ? fetch(r).then((o) => o.blob()).then((o) => {
806
+ t && t(o);
807
+ }) : m(r, {
808
+ onComplete(o) {
809
+ let i;
812
810
  try {
813
- c = JSON.parse(i);
811
+ i = JSON.parse(o);
814
812
  } catch {
815
- c = i;
813
+ i = o;
816
814
  }
817
- t && typeof t == "function" && t(c), s(c);
815
+ t && typeof t == "function" && t(i), s(i);
818
816
  },
819
- onFailure(i, c, d) {
820
- n && (console.log("error http", i), n({
821
- msg: JSON.parse(i),
822
- headers: c,
823
- xhr: d
817
+ onFailure(o, i, c) {
818
+ n && (console.log("error http", o), n({
819
+ msg: JSON.parse(o),
820
+ headers: i,
821
+ xhr: c
824
822
  }), a({
825
- msg: JSON.parse(i),
826
- headers: c,
827
- xhr: d
823
+ msg: JSON.parse(o),
824
+ headers: i,
825
+ xhr: c
828
826
  }));
829
827
  }
830
828
  });
@@ -883,21 +881,21 @@ function Z(e, t, n = void 0, s = void 0, a = void 0) {
883
881
  type: "json",
884
882
  onComplete(c) {
885
883
  const d = c.data;
886
- c.success === !0 && (n && n(), d.forEach((p) => {
884
+ c.success === !0 && (n && n(), d.forEach((l) => {
887
885
  try {
888
- const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
886
+ const p = l.dataelements.fileName, f = l.dataelements.ticketURL;
889
887
  m(f, {
890
888
  onComplete: (u, g) => {
891
889
  let h;
892
890
  try {
893
891
  h = JSON.parse(u);
894
892
  } catch {
895
- h = u;
893
+ h = u.blob();
896
894
  }
897
895
  s && s({
898
- objectId: p.id,
896
+ objectId: l.id,
899
897
  headers: g,
900
- fileName: l,
898
+ fileName: p,
901
899
  data: h
902
900
  });
903
901
  },
@@ -905,8 +903,8 @@ function Z(e, t, n = void 0, s = void 0, a = void 0) {
905
903
  console.log("error http", u);
906
904
  }
907
905
  });
908
- } catch (l) {
909
- console.log(l), a && a(l);
906
+ } catch (p) {
907
+ console.log(p), a && a(p);
910
908
  }
911
909
  }));
912
910
  },
@@ -915,7 +913,7 @@ function Z(e, t, n = void 0, s = void 0, a = void 0) {
915
913
  }
916
914
  });
917
915
  }
918
- function De(e, t, n = void 0, s = void 0) {
916
+ function Re(e, t, n = void 0, s = void 0) {
919
917
  return new Promise((a) => {
920
918
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
921
919
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -954,7 +952,7 @@ function De(e, t, n = void 0, s = void 0) {
954
952
  }
955
953
  });
956
954
  }
957
- function Pe(e, t, n, s = void 0, a = void 0) {
955
+ function De(e, t, n, s = void 0, a = void 0) {
958
956
  return new Promise((r) => {
959
957
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
960
958
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1136,7 +1134,7 @@ function Je(e, t, n, s, a = void 0, r = void 0) {
1136
1134
  items: []
1137
1135
  };
1138
1136
  t && (d.parentId = t), d.items.push(c);
1139
- let p = {
1137
+ let l = {
1140
1138
  method: "POST",
1141
1139
  headers: {
1142
1140
  Accept: "application/json",
@@ -1146,14 +1144,14 @@ function Je(e, t, n, s, a = void 0, r = void 0) {
1146
1144
  },
1147
1145
  data: JSON.stringify(d),
1148
1146
  type: "json",
1149
- onComplete(l) {
1150
- a && a(l);
1147
+ onComplete(p) {
1148
+ a && a(p);
1151
1149
  },
1152
- onFailure(l) {
1153
- r && r(l);
1150
+ onFailure(p) {
1151
+ r && r(p);
1154
1152
  }
1155
1153
  };
1156
- m(i, p);
1154
+ m(i, l);
1157
1155
  });
1158
1156
  }
1159
1157
  function Ee(e, t, n, s, a = void 0, r = void 0) {
@@ -1200,7 +1198,7 @@ function Ge(e, t = void 0, n = void 0) {
1200
1198
  });
1201
1199
  }
1202
1200
  function Ke(e, t, n, s) {
1203
- F(
1201
+ U(
1204
1202
  e.space,
1205
1203
  t,
1206
1204
  (a) => {
@@ -1218,7 +1216,7 @@ function Ke(e, t, n, s) {
1218
1216
  }
1219
1217
  async function Ve(e, t, n = void 0, s = void 0) {
1220
1218
  return new Promise((a) => {
1221
- F(e, t, (r) => {
1219
+ U(e, t, (r) => {
1222
1220
  m(r, {
1223
1221
  onComplete: (o, i, c) => (a(JSON.parse(o)), n && n(JSON.parse(o), i, c), a),
1224
1222
  onFailure: (o, i, c) => {
@@ -1338,7 +1336,7 @@ function He(e, t, n = void 0, s = void 0) {
1338
1336
  uri: "/resources/6w/tags",
1339
1337
  otpCTX: "SecurityContext=preferred",
1340
1338
  optTenant: `tenant=${r}`
1341
- }, p = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, l = {
1339
+ }, l = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1342
1340
  tag: [
1343
1341
  {
1344
1342
  subject: [
@@ -1353,13 +1351,13 @@ function He(e, t, n = void 0, s = void 0) {
1353
1351
  }
1354
1352
  ]
1355
1353
  };
1356
- m(p, {
1354
+ m(l, {
1357
1355
  method: "PUT",
1358
1356
  headers: {
1359
1357
  "Content-Type": "application/json",
1360
1358
  Accept: "application/json"
1361
1359
  },
1362
- data: JSON.stringify(l),
1360
+ data: JSON.stringify(p),
1363
1361
  onComplete(f) {
1364
1362
  JSON.parse(f);
1365
1363
  const u = {};
@@ -1401,7 +1399,7 @@ function ie(e, t, n = void 0, s = void 0) {
1401
1399
  }, o = `${r.baseUrl}${r.uri}`, i = {
1402
1400
  "Content-Type": "application/json",
1403
1401
  Accept: "application/json,text/javascript,*/*"
1404
- }, c = P(), d = {
1402
+ }, c = D(), d = {
1405
1403
  with_indexing_date: !0,
1406
1404
  with_synthesis: !0,
1407
1405
  with_nls: !1,
@@ -1466,13 +1464,13 @@ function ie(e, t, n = void 0, s = void 0) {
1466
1464
  method: "POST",
1467
1465
  headers: i,
1468
1466
  data: JSON.stringify(d),
1469
- onComplete(p) {
1470
- const l = JSON.parse(p);
1471
- n(l);
1467
+ onComplete(l) {
1468
+ const p = JSON.parse(l);
1469
+ n(p);
1472
1470
  },
1473
- onFailure(p, l) {
1474
- const f = p;
1475
- f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1471
+ onFailure(l, p) {
1472
+ const f = l;
1473
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", l);
1476
1474
  }
1477
1475
  });
1478
1476
  }
@@ -1503,12 +1501,12 @@ function ze(e, t, n = void 0, s = void 0) {
1503
1501
  "Content-Type": "application/json",
1504
1502
  Accept: "application/json,text/javascript,*/*"
1505
1503
  },
1506
- onComplete(p) {
1507
- n && n(p);
1504
+ onComplete(l) {
1505
+ n && n(l);
1508
1506
  },
1509
- onFailure(p, l) {
1510
- const f = p;
1511
- f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1507
+ onFailure(l, p) {
1508
+ const f = l;
1509
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1512
1510
  }
1513
1511
  });
1514
1512
  }
@@ -1529,9 +1527,9 @@ function qe(e, t = "", n = void 0, s = void 0) {
1529
1527
  onComplete(d) {
1530
1528
  n && n(JSON.parse(d));
1531
1529
  },
1532
- onFailure(d, p) {
1533
- const l = d;
1534
- l.msg = p.error, s && s(l);
1530
+ onFailure(d, l) {
1531
+ const p = d;
1532
+ p.msg = l.error, s && s(p);
1535
1533
  }
1536
1534
  });
1537
1535
  }
@@ -1622,9 +1620,9 @@ function et(e, t = void 0, n = void 0) {
1622
1620
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1623
1621
  },
1624
1622
  onComplete(i, c, d) {
1625
- const l = JSON.parse(i).result;
1623
+ const p = JSON.parse(i).result;
1626
1624
  let f = 0;
1627
- l.forEach((u) => {
1625
+ p.forEach((u) => {
1628
1626
  const g = {
1629
1627
  description: u.description,
1630
1628
  id: u.id,
@@ -1637,7 +1635,7 @@ function et(e, t = void 0, n = void 0) {
1637
1635
  e,
1638
1636
  u.id,
1639
1637
  (h) => {
1640
- f++, g.members = h, r.push(g), f === l.length && t && t(r);
1638
+ f++, g.members = h, r.push(g), f === p.length && t && t(r);
1641
1639
  },
1642
1640
  (h) => n(h)
1643
1641
  );
@@ -1715,29 +1713,29 @@ function nt(e, t, n = void 0, s = void 0) {
1715
1713
  let d = !1;
1716
1714
  oe(
1717
1715
  i.users,
1718
- (p) => {
1719
- p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
1716
+ (l) => {
1717
+ l !== void 0 && (c.id_msg = l.id, d = !0, P(e, c));
1720
1718
  },
1721
- (p) => {
1722
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), c.id_msg = "";
1719
+ (l) => {
1720
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
1723
1721
  }
1724
1722
  ), d === !1 && setTimeout(() => {
1725
- d === !1 && w(e, (p) => {
1723
+ d === !1 && w(e, (l) => {
1726
1724
  m(o, {
1727
1725
  method: "POST",
1728
1726
  headers: {
1729
1727
  "Content-Type": "application/json",
1730
1728
  Accept: "application/json",
1731
- "X-DS-SWYM-CSRFTOKEN": p.result.ServerToken
1729
+ "X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
1732
1730
  },
1733
1731
  data: JSON.stringify(i),
1734
1732
  type: "json",
1735
- onComplete(l, f, u) {
1736
- const g = l;
1737
- g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, R(e, c);
1733
+ onComplete(p, f, u) {
1734
+ const g = p;
1735
+ g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, P(e, c);
1738
1736
  },
1739
- onFailure(l, f, u) {
1740
- const g = l;
1737
+ onFailure(p, f, u) {
1738
+ const g = p;
1741
1739
  g.msg = f.errormsg, g.status = f.status, s && s(g);
1742
1740
  }
1743
1741
  });
@@ -1755,16 +1753,16 @@ function oe(e, t, n, s) {
1755
1753
  },
1756
1754
  onComplete(o) {
1757
1755
  const i = JSON.parse(o), c = [];
1758
- i.result.forEach((l) => {
1759
- l.users = l.users.sort((f, u) => f.login.localeCompare(u.login)), l.users.length === t.length && c.push(l);
1756
+ i.result.forEach((p) => {
1757
+ p.users = p.users.sort((f, u) => f.login.localeCompare(u.login)), p.users.length === t.length && c.push(p);
1760
1758
  });
1761
- const d = t.sort(), p = c.find((l) => {
1759
+ const d = t.sort(), l = c.find((p) => {
1762
1760
  const f = [];
1763
- return l.users.forEach((u) => {
1761
+ return p.users.forEach((u) => {
1764
1762
  f.push(u.login);
1765
1763
  }), JSON.stringify(f) === JSON.stringify(d);
1766
1764
  });
1767
- n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
1765
+ n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
1768
1766
  },
1769
1767
  onFailure(o) {
1770
1768
  const i = o;
@@ -1773,7 +1771,7 @@ function oe(e, t, n, s) {
1773
1771
  });
1774
1772
  });
1775
1773
  }
1776
- function R(e, t, n = void 0, s = void 0) {
1774
+ function P(e, t, n = void 0, s = void 0) {
1777
1775
  const a = {
1778
1776
  base: e.space,
1779
1777
  uri: "/api/community",
@@ -1799,13 +1797,13 @@ function R(e, t, n = void 0, s = void 0) {
1799
1797
  },
1800
1798
  data: JSON.stringify(o),
1801
1799
  type: "json",
1802
- onComplete(c, d, p) {
1803
- const l = c;
1804
- l.status = p.status, l.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", l), n && n(l);
1800
+ onComplete(c, d, l) {
1801
+ const p = c;
1802
+ p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
1805
1803
  },
1806
1804
  onFailure(c, d) {
1807
- const p = c;
1808
- p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
1805
+ const l = c;
1806
+ l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
1809
1807
  }
1810
1808
  });
1811
1809
  });
@@ -1855,13 +1853,13 @@ function st(e, t, n = void 0, s = void 0) {
1855
1853
  headers: d,
1856
1854
  data: JSON.stringify(i),
1857
1855
  type: "json",
1858
- onComplete(p, l, f) {
1859
- const u = JSON.parse(p);
1856
+ onComplete(l, p, f) {
1857
+ const u = JSON.parse(l);
1860
1858
  u.status = f.status, u.response = f.response, n && n(u);
1861
1859
  },
1862
- onFailure(p, l, f) {
1863
- const u = p;
1864
- u.status = l.status, u.response = l.errormsg, s && s(u);
1860
+ onFailure(l, p, f) {
1861
+ const u = l;
1862
+ u.status = p.status, u.response = p.errormsg, s && s(u);
1865
1863
  }
1866
1864
  });
1867
1865
  });
@@ -1887,8 +1885,8 @@ function it(e, t, n = void 0, s = void 0) {
1887
1885
  n && n(i);
1888
1886
  },
1889
1887
  onFailure(i, c, d) {
1890
- const p = i;
1891
- p.status = c.status, p.response = c.errormsg, s && s(p);
1888
+ const l = i;
1889
+ l.status = c.status, l.response = c.errormsg, s && s(l);
1892
1890
  }
1893
1891
  });
1894
1892
  });
@@ -2066,7 +2064,7 @@ function dt(e, t = void 0, n = void 0) {
2066
2064
  t && t(a);
2067
2065
  });
2068
2066
  }
2069
- function pt(e, t = void 0, n = void 0) {
2067
+ function lt(e, t = void 0, n = void 0) {
2070
2068
  e.tenant && $(e, (s) => {
2071
2069
  console.log("serviceUrls", s);
2072
2070
  const a = s.services.find((i) => i.id === "3dpassport")?.url, r = s.services.find((i) => i.id === "businessprocess")?.url + "/api/v2", o = `${a}/login/?service=${r}/auth/cas`;
@@ -2086,7 +2084,7 @@ function pt(e, t = void 0, n = void 0) {
2086
2084
  });
2087
2085
  });
2088
2086
  }
2089
- async function lt(e, t, n = void 0, s = void 0) {
2087
+ async function pt(e, t, n = void 0, s = void 0) {
2090
2088
  e.tenant && $(e, (a) => {
2091
2089
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
2092
2090
  fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
@@ -2209,9 +2207,9 @@ function gt(e, t = void 0, n = void 0) {
2209
2207
  });
2210
2208
  }
2211
2209
  export {
2212
- P as UUID,
2210
+ D as UUID,
2213
2211
  gt as _3DSearch_usersGroup,
2214
- Re as _3DSpace_Create_Doc,
2212
+ Pe as _3DSpace_Create_Doc,
2215
2213
  Ee as _3DSpace_bookmark_addSubsciptions,
2216
2214
  Je as _3DSpace_bookmark_newWorkspace,
2217
2215
  T as _3DSpace_csrf,
@@ -2223,14 +2221,14 @@ export {
2223
2221
  A as _3DSpace_get_csrf,
2224
2222
  H as _3DSpace_get_docInfo,
2225
2223
  Z as _3DSpace_get_downloadTicket_multidoc,
2226
- Fe as _3DSpace_get_multiDocInfo,
2224
+ Ue as _3DSpace_get_multiDocInfo,
2227
2225
  b as _3DSpace_get_securityContexts,
2228
- F as _3DSpace_get_ticket,
2226
+ U as _3DSpace_get_ticket,
2229
2227
  Le as _3DSpace_lifecycle_changeRevision,
2230
- Pe as _3DSpace_lifecycle_changeState,
2228
+ De as _3DSpace_lifecycle_changeState,
2231
2229
  xe as _3DSpace_lifecycle_getGraph,
2232
2230
  Me as _3DSpace_lifecycle_getNextRevision,
2233
- De as _3DSpace_lifecycle_getNextStates,
2231
+ Re as _3DSpace_lifecycle_getNextStates,
2234
2232
  nt as _3DSwym_buildDirectMessage,
2235
2233
  it as _3DSwym_deleteIdea,
2236
2234
  oe as _3DSwym_findCommunityToInstantMSG,
@@ -2245,11 +2243,11 @@ export {
2245
2243
  ct as _3DSwym_get_findUser,
2246
2244
  w as _3DSwym_get_version,
2247
2245
  st as _3DSwym_postIdea,
2248
- R as _3DSwym_sendMessageData,
2246
+ P as _3DSwym_sendMessageData,
2249
2247
  be as _AppMngt_get_info_user,
2250
2248
  Oe as _AppMngt_get_users,
2251
- pt as _Iterop_Auth_CAS,
2252
- lt as _Iterop_ListUsers,
2249
+ lt as _Iterop_Auth_CAS,
2250
+ pt as _Iterop_ListUsers,
2253
2251
  ut as _Iterop_getAllBusinessTables,
2254
2252
  ft as _Iterop_runProcess,
2255
2253
  K as _getPlateformInfos,
@@ -2284,7 +2282,7 @@ export {
2284
2282
  Ae as patchUserGroups,
2285
2283
  ke as patchUserGroupsControl,
2286
2284
  We as pushDataIn3DSpace,
2287
- Ue as readUserGroupControl,
2285
+ Fe as readUserGroupControl,
2288
2286
  ze as removeTagToDoc,
2289
2287
  mt as sayHello,
2290
2288
  he as updateEvent