@beam3_dev/api_module 0.0.147 → 0.0.149

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,6 +1,6 @@
1
1
  import { v4 as L } from "uuid";
2
2
  import { DateTime as N } from "luxon";
3
- import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
3
+ import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
4
4
  function D() {
5
5
  return L();
6
6
  }
@@ -121,7 +121,7 @@ function fe(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: j.id,
124
+ widgetId: U.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 ge(e, t = void 0, n = void 0) {
137
137
  await O(
138
138
  ["DS/i3DXCompassServices/i3DXCompassServices"],
139
139
  (s) => {
140
- (!e || e === "") && (e = j.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
140
+ (!e || e === "") && (e = U.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
141
141
  s.getPlatformServices({
142
142
  platformId: e,
143
143
  onComplete: t,
@@ -250,7 +250,7 @@ function ye(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const k = {
253
+ const I = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,7 +271,7 @@ function we(e, t, n = void 0, s = void 0) {
271
271
  };
272
272
  f(i, {
273
273
  method: "POST",
274
- headers: k,
274
+ headers: I,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
@@ -366,7 +366,7 @@ function be(e, t, n, s = void 0, a = void 0) {
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = n, d = `${r}${i.URIUGr}/${t}`, p = JSON.stringify(c);
368
368
  f(d, {
369
- headers: k,
369
+ headers: I,
370
370
  method: "PATCH",
371
371
  data: p,
372
372
  type: "json",
@@ -382,7 +382,7 @@ function Ne(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
  f(i, {
384
384
  method: "PATCH",
385
- headers: k,
385
+ headers: I,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -441,7 +441,7 @@ async function V(e, t = void 0, n = void 0, s = void 0) {
441
441
  }
442
442
  });
443
443
  }
444
- function $(e, t = void 0, n = void 0) {
444
+ function k(e, t = void 0, n = void 0) {
445
445
  if (e.objID && e.objID !== "") {
446
446
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
447
447
  f(s, {
@@ -485,7 +485,7 @@ function T(e, t = void 0, n = void 0) {
485
485
  }
486
486
  function A(e, t = void 0, n = void 0) {
487
487
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
488
- $(
488
+ k(
489
489
  e,
490
490
  (a) => {
491
491
  f(s, {
@@ -507,7 +507,7 @@ function A(e, t = void 0, n = void 0) {
507
507
  }
508
508
  );
509
509
  }
510
- function $e(e, t, n, s = void 0, a = void 0) {
510
+ function ke(e, t, n, s = void 0, a = void 0) {
511
511
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
512
512
  n || (n = e.token), f(r, {
513
513
  method: "PUT",
@@ -529,12 +529,12 @@ function $e(e, t, n, s = void 0, a = void 0) {
529
529
  }
530
530
  });
531
531
  }
532
- function X(e, t, n, s, a, r = void 0, o = void 0) {
533
- $(
532
+ function W(e, t, n, s, a, r = void 0, o = void 0) {
533
+ k(
534
534
  e,
535
535
  t,
536
536
  (i) => {
537
- W(
537
+ B(
538
538
  e,
539
539
  t,
540
540
  n,
@@ -547,7 +547,7 @@ function X(e, t, n, s, a, r = void 0, o = void 0) {
547
547
  }
548
548
  );
549
549
  }
550
- function W(e, t, n, s, a, r, o = void 0, i = void 0) {
550
+ function B(e, t, n, s, a, r, o = void 0, i = void 0) {
551
551
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
552
552
  f(c, {
553
553
  method: "PUT",
@@ -565,20 +565,24 @@ function W(e, t, n, s, a, r, o = void 0, i = void 0) {
565
565
  ENO_CSRF_TOKEN: r
566
566
  },
567
567
  data: JSON.stringify({
568
- data: [{
569
- id: t,
570
- relateddata: {
571
- files: [{
572
- id: n,
573
- dataelements: {
574
- title: a,
575
- receipt: h
576
- },
577
- updateAction: "REVISE"
578
- }]
579
- },
580
- tempId: S
581
- }]
568
+ data: [
569
+ {
570
+ id: t,
571
+ relateddata: {
572
+ files: [
573
+ {
574
+ id: n,
575
+ dataelements: {
576
+ title: a,
577
+ receipt: h
578
+ },
579
+ updateAction: "REVISE"
580
+ }
581
+ ]
582
+ },
583
+ tempId: S
584
+ }
585
+ ]
582
586
  }),
583
587
  type: "json",
584
588
  onComplete(y) {
@@ -598,7 +602,7 @@ function W(e, t, n, s, a, r, o = void 0, i = void 0) {
598
602
  }
599
603
  });
600
604
  }
601
- async function Ie(e, t, n, s, a = void 0, r = void 0) {
605
+ async function $e(e, t, n, s, a = void 0, r = void 0) {
602
606
  const o = e.space, i = e.token, c = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
603
607
  type: "text/plain"
604
608
  }), l = {
@@ -622,7 +626,7 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
622
626
  data: d,
623
627
  onComplete(C) {
624
628
  if (c !== "" && i !== "") {
625
- const I = {
629
+ const $ = {
626
630
  method: "POST",
627
631
  headers: {
628
632
  ENO_CSRF_TOKEN: i,
@@ -630,30 +634,34 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
630
634
  "Content-Type": "application/json"
631
635
  },
632
636
  data: JSON.stringify({
633
- data: [{
634
- type: "Document",
635
- dataelements: {
636
- title: `Title_${n.toLowerCase().split(" ").join("_")}`,
637
- policy: "Document Release",
638
- description: s
639
- },
640
- relateddata: {
641
- files: [{
642
- dataelements: {
643
- title: `${n}.json`,
644
- receipt: C
645
- }
646
- }]
647
- },
648
- tempId: D()
649
- }]
637
+ data: [
638
+ {
639
+ type: "Document",
640
+ dataelements: {
641
+ title: `Title_${n.toLowerCase().split(" ").join("_")}`,
642
+ policy: "Document Release",
643
+ description: s
644
+ },
645
+ relateddata: {
646
+ files: [
647
+ {
648
+ dataelements: {
649
+ title: `${n}.json`,
650
+ receipt: C
651
+ }
652
+ }
653
+ ]
654
+ },
655
+ tempId: D()
656
+ }
657
+ ]
650
658
  }),
651
659
  type: "json",
652
660
  timeout: 0,
653
661
  onComplete: _,
654
662
  onFailure: y
655
663
  };
656
- c !== "" && f(l.url_Post, I);
664
+ c !== "" && f(l.url_Post, $);
657
665
  } else
658
666
  console.warn("le store est vide");
659
667
  },
@@ -662,9 +670,9 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
662
670
  function _(C) {
663
671
  console.log("Success -- response ", C.data[0]), a && a(C);
664
672
  }
665
- function y(C, I) {
673
+ function y(C, $) {
666
674
  console.log("Erreur -- response ", C, `
667
- headers `, I), r && r(C);
675
+ headers `, $), r && r(C);
668
676
  }
669
677
  f(h.ticketURL, S);
670
678
  }
@@ -724,7 +732,7 @@ async function P(e, t = void 0, n = void 0) {
724
732
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
725
733
  ), (e.space === "" || !e.space) && console.warn(
726
734
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
727
- ), (e.token === "" || !e.token) && (K(
735
+ ), (e.token === "" || !e.token) && K(
728
736
  e,
729
737
  (s) => {
730
738
  e.token = s;
@@ -732,9 +740,7 @@ async function P(e, t = void 0, n = void 0) {
732
740
  (s) => {
733
741
  console.log("☠️ error => ", s);
734
742
  }
735
- ), console.warn(
736
- "_3DSpace_download_doc() / Le paramètre token est obligatoire"
737
- )), new Promise((s, a) => {
743
+ ), new Promise((s, a) => {
738
744
  A(
739
745
  e,
740
746
  (r) => {
@@ -771,7 +777,7 @@ async function P(e, t = void 0, n = void 0) {
771
777
  );
772
778
  });
773
779
  }
774
- async function B(e, t, n = void 0, s = void 0) {
780
+ async function X(e, t, n = void 0, s = void 0) {
775
781
  let a = [];
776
782
  if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
777
783
  for (let i = 0; i < t.length; i += 80) {
@@ -792,7 +798,11 @@ async function B(e, t, n = void 0, s = void 0) {
792
798
  };
793
799
  o(0);
794
800
  } else
795
- console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), s && s("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
801
+ console.warn(
802
+ "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
803
+ ), s && s(
804
+ "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
805
+ );
796
806
  }
797
807
  function Y(e, t, n = void 0, s = void 0, a = void 0) {
798
808
  const r = [];
@@ -840,7 +850,7 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
840
850
  }
841
851
  });
842
852
  }
843
- function ke(e, t, n = void 0, s = void 0) {
853
+ function Ie(e, t, n = void 0, s = void 0) {
844
854
  return new Promise((a) => {
845
855
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
846
856
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -863,9 +873,11 @@ function ke(e, t, n = void 0, s = void 0) {
863
873
  "Content-Type": "application/json"
864
874
  },
865
875
  data: JSON.stringify({
866
- data: [{
867
- id: t
868
- }]
876
+ data: [
877
+ {
878
+ id: t
879
+ }
880
+ ]
869
881
  }),
870
882
  type: "json",
871
883
  onComplete(i) {
@@ -902,10 +914,12 @@ function Ae(e, t, n, s = void 0, a = void 0) {
902
914
  "Content-Type": "application/json"
903
915
  },
904
916
  data: JSON.stringify({
905
- data: [{
906
- id: t,
907
- nextState: n
908
- }]
917
+ data: [
918
+ {
919
+ id: t,
920
+ nextState: n
921
+ }
922
+ ]
909
923
  }),
910
924
  type: "json",
911
925
  onComplete(c) {
@@ -942,9 +956,11 @@ function Fe(e, t, n = void 0, s = void 0) {
942
956
  "Content-Type": "application/json"
943
957
  },
944
958
  data: JSON.stringify({
945
- graphRequests: [{
946
- id: t
947
- }]
959
+ graphRequests: [
960
+ {
961
+ id: t
962
+ }
963
+ ]
948
964
  }),
949
965
  type: "json",
950
966
  onComplete(i) {
@@ -958,7 +974,7 @@ function Fe(e, t, n = void 0, s = void 0) {
958
974
  }
959
975
  });
960
976
  }
961
- function Ue(e, t, n = void 0, s = void 0) {
977
+ function je(e, t, n = void 0, s = void 0) {
962
978
  return new Promise((a) => {
963
979
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
964
980
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -981,15 +997,17 @@ function Ue(e, t, n = void 0, s = void 0) {
981
997
  "Content-Type": "application/json"
982
998
  },
983
999
  data: JSON.stringify({
984
- data: [{
985
- "attribute[PLMReference.V_versionComment]": null,
986
- physicalid: t,
987
- type: "Document",
988
- tenant: e.tenant,
989
- objectId: t,
990
- policy: "Document Release",
991
- availableSemantic: ["E", "LAST", "NEW", "DUP"]
992
- }]
1000
+ data: [
1001
+ {
1002
+ "attribute[PLMReference.V_versionComment]": null,
1003
+ physicalid: t,
1004
+ type: "Document",
1005
+ tenant: e.tenant,
1006
+ objectId: t,
1007
+ policy: "Document Release",
1008
+ availableSemantic: ["E", "LAST", "NEW", "DUP"]
1009
+ }
1010
+ ]
993
1011
  }),
994
1012
  type: "json",
995
1013
  onComplete(i) {
@@ -1003,7 +1021,7 @@ function Ue(e, t, n = void 0, s = void 0) {
1003
1021
  }
1004
1022
  });
1005
1023
  }
1006
- function je(e, t, n, s = void 0, a = void 0) {
1024
+ function Ue(e, t, n, s = void 0, a = void 0) {
1007
1025
  return new Promise((r) => {
1008
1026
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1009
1027
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1026,13 +1044,15 @@ function je(e, t, n, s = void 0, a = void 0) {
1026
1044
  "Content-Type": "application/json"
1027
1045
  },
1028
1046
  data: JSON.stringify({
1029
- data: [{
1030
- physicalid: t,
1031
- proposedRevision: n,
1032
- modifiedAttributes: {
1033
- revision: n
1047
+ data: [
1048
+ {
1049
+ physicalid: t,
1050
+ proposedRevision: n,
1051
+ modifiedAttributes: {
1052
+ revision: n
1053
+ }
1034
1054
  }
1035
- }],
1055
+ ],
1036
1056
  folderid: null,
1037
1057
  notificationTimeout: 600
1038
1058
  }),
@@ -1048,29 +1068,64 @@ function je(e, t, n, s = void 0, a = void 0) {
1048
1068
  }
1049
1069
  });
1050
1070
  }
1051
- function De(e, t, n, s, a = void 0, r = void 0) {
1071
+ function De(e, t, n, s = void 0, a = void 0) {
1072
+ return new Promise((r) => {
1073
+ const o = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1074
+ let i = {
1075
+ attributes: {
1076
+ title: n,
1077
+ description,
1078
+ inheritedAccess: "no"
1079
+ }
1080
+ }, c = {
1081
+ items: []
1082
+ };
1083
+ t && (c.parentId = t), c.items.push(i);
1084
+ let d = {
1085
+ method: "POST",
1086
+ headers: {
1087
+ Accept: "application/json",
1088
+ "Content-Type": "application/json",
1089
+ SecurityContext: e.ctx,
1090
+ ENO_CSRF_TOKEN: e.token
1091
+ },
1092
+ data: JSON.stringify(c),
1093
+ type: "json",
1094
+ onComplete(p) {
1095
+ s && s(p);
1096
+ },
1097
+ onFailure(p) {
1098
+ a && a(p);
1099
+ }
1100
+ };
1101
+ f(o, d);
1102
+ });
1103
+ }
1104
+ function Pe(e, t, n, s, a = void 0, r = void 0) {
1052
1105
  return console.log("credentials", e), new Promise((o) => {
1053
1106
  `${e.space}`, JSON.stringify({
1054
1107
  csrf: {
1055
1108
  name: "ENO_CSRF_TOKEN",
1056
1109
  value: e.token
1057
1110
  },
1058
- data: [{
1059
- type: "Workspace",
1060
- cestamp: "businessobject",
1061
- relId: t,
1062
- id: t,
1063
- dataelements: {
1064
- personList: "<uuid:5ca25b8e-98d0-46c3-ac43-3faa83c4295a>",
1065
- eventsList: "NXFolderCreated,NXFolderDeleted,NXContentAdded,NXContentRemoved"
1066
- },
1067
- tenant: e.tenant
1068
- }]
1111
+ data: [
1112
+ {
1113
+ type: "Workspace",
1114
+ cestamp: "businessobject",
1115
+ relId: t,
1116
+ id: t,
1117
+ dataelements: {
1118
+ personList: n,
1119
+ eventsList: s
1120
+ },
1121
+ tenant: e.tenant
1122
+ }
1123
+ ]
1069
1124
  });
1070
1125
  });
1071
1126
  }
1072
1127
  //!SECTION
1073
- function Pe(e, t = void 0, n = void 0) {
1128
+ function Re(e, t = void 0, n = void 0) {
1074
1129
  const s = {
1075
1130
  base: `${e.space}`,
1076
1131
  uri: "/resources/bps/cspaces",
@@ -1091,7 +1146,7 @@ function Pe(e, t = void 0, n = void 0) {
1091
1146
  }
1092
1147
  });
1093
1148
  }
1094
- function Re(e, t, n, s) {
1149
+ function xe(e, t, n, s) {
1095
1150
  A(
1096
1151
  e.space,
1097
1152
  t,
@@ -1108,7 +1163,7 @@ function Re(e, t, n, s) {
1108
1163
  }
1109
1164
  );
1110
1165
  }
1111
- async function xe(e, t, n = void 0, s = void 0) {
1166
+ async function Me(e, t, n = void 0, s = void 0) {
1112
1167
  return new Promise((a) => {
1113
1168
  A(e, t, (r) => {
1114
1169
  f(r, {
@@ -1120,14 +1175,14 @@ async function xe(e, t, n = void 0, s = void 0) {
1120
1175
  });
1121
1176
  });
1122
1177
  }
1123
- function Me(e, t, n, s = void 0, a = void 0) {
1178
+ function Le(e, t, n, s = void 0, a = void 0) {
1124
1179
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1125
- $(
1180
+ k(
1126
1181
  e,
1127
1182
  n,
1128
1183
  (o) => {
1129
1184
  const i = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1130
- X(
1185
+ W(
1131
1186
  e,
1132
1187
  n,
1133
1188
  i,
@@ -1145,8 +1200,8 @@ function Me(e, t, n, s = void 0, a = void 0) {
1145
1200
  }
1146
1201
  let R, x;
1147
1202
  const F = [];
1148
- async function Le(e, t = void 0, n = void 0) {
1149
- e.objID && e.objID !== "" ? $(
1203
+ async function Je(e, t = void 0, n = void 0) {
1204
+ e.objID && e.objID !== "" ? k(
1150
1205
  e,
1151
1206
  (s) => {
1152
1207
  t && t(s);
@@ -1164,7 +1219,7 @@ async function Le(e, t = void 0, n = void 0) {
1164
1219
  }
1165
1220
  );
1166
1221
  }
1167
- async function Je(e, t = void 0, n = void 0) {
1222
+ async function Ee(e, t = void 0, n = void 0) {
1168
1223
  console.log("getDatasByTenant (getDocuments)", e), await P(
1169
1224
  e,
1170
1225
  (s) => {
@@ -1176,7 +1231,7 @@ async function Je(e, t = void 0, n = void 0) {
1176
1231
  }
1177
1232
  );
1178
1233
  }
1179
- function Ee(e, t = void 0, n = void 0) {
1234
+ function Ge(e, t = void 0, n = void 0) {
1180
1235
  const s = [];
1181
1236
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1182
1237
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1193,7 +1248,7 @@ function Ee(e, t = void 0, n = void 0) {
1193
1248
  });
1194
1249
  }
1195
1250
  function q(e, t, n = void 0, s = void 0) {
1196
- B(
1251
+ X(
1197
1252
  e,
1198
1253
  R,
1199
1254
  (a) => {
@@ -1225,7 +1280,7 @@ const H = "FA35FB9B177A280065800EA0000F599C", z = [
1225
1280
  order_by: "desc",
1226
1281
  tag: "testTag"
1227
1282
  };
1228
- function Ge(e, t, n = void 0, s = void 0) {
1283
+ function Ke(e, t, n = void 0, s = void 0) {
1229
1284
  const { space: a, tenant: r } = e, { objId: o, pred: i, tag: c } = t, d = {
1230
1285
  uri: "/resources/6w/tags",
1231
1286
  otpCTX: "SecurityContext=preferred",
@@ -1368,7 +1423,7 @@ function Z(e, t, n = void 0, s = void 0) {
1368
1423
  }
1369
1424
  });
1370
1425
  }
1371
- function Ke(e, t, n = void 0, s = void 0) {
1426
+ function Ve(e, t, n = void 0, s = void 0) {
1372
1427
  const { objId: a, pred: r, tag: o } = t, i = {
1373
1428
  uri: "/resources/6w/tags",
1374
1429
  otpCTX: "SecurityContext=preferred",
@@ -1404,7 +1459,7 @@ function Ke(e, t, n = void 0, s = void 0) {
1404
1459
  }
1405
1460
  });
1406
1461
  }
1407
- function Ve(e, t = "", n = void 0, s = void 0) {
1462
+ function We(e, t = "", n = void 0, s = void 0) {
1408
1463
  const { space: a } = e;
1409
1464
  if (t === "")
1410
1465
  return;
@@ -1440,7 +1495,7 @@ async function w(e, t = void 0, n = void 0) {
1440
1495
  }
1441
1496
  });
1442
1497
  }
1443
- function Xe(e, t = void 0, n = void 0) {
1498
+ function Be(e, t = void 0, n = void 0) {
1444
1499
  const s = `${e.space}/api/exalead/whatsnew`, a = {
1445
1500
  params: {
1446
1501
  community_id: null,
@@ -1470,7 +1525,7 @@ function Xe(e, t = void 0, n = void 0) {
1470
1525
  });
1471
1526
  });
1472
1527
  }
1473
- function We(e, t = void 0, n = void 0) {
1528
+ function Xe(e, t = void 0, n = void 0) {
1474
1529
  const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, a = {
1475
1530
  params: {
1476
1531
  idsToFilterArr: [],
@@ -1500,7 +1555,7 @@ function We(e, t = void 0, n = void 0) {
1500
1555
  });
1501
1556
  });
1502
1557
  }
1503
- function Be(e, t = void 0, n = void 0) {
1558
+ function Ye(e, t = void 0, n = void 0) {
1504
1559
  const s = {
1505
1560
  base: e.space,
1506
1561
  uri: "/api/community/listmycommunities",
@@ -1570,7 +1625,7 @@ function ee(e, t, n, s) {
1570
1625
  });
1571
1626
  });
1572
1627
  }
1573
- function Ye(e, t = void 0, n = void 0) {
1628
+ function qe(e, t = void 0, n = void 0) {
1574
1629
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1575
1630
  e.commu_id || (e.commu_id = s);
1576
1631
  const a = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -1593,7 +1648,7 @@ function Ye(e, t = void 0, n = void 0) {
1593
1648
  });
1594
1649
  });
1595
1650
  }
1596
- function qe(e, t, n = void 0, s = void 0) {
1651
+ function He(e, t, n = void 0, s = void 0) {
1597
1652
  const { listAllContacts: a, currentUser: r } = e;
1598
1653
  console.log("__listAllContacts", a.hits);
1599
1654
  const o = `${e.space}/api/directmessages`, i = {
@@ -1608,7 +1663,7 @@ function qe(e, t, n = void 0, s = void 0) {
1608
1663
  te(
1609
1664
  i.users,
1610
1665
  (p) => {
1611
- p !== void 0 && (c.id_msg = p.id, d = !0, U(e, c));
1666
+ p !== void 0 && (c.id_msg = p.id, d = !0, j(e, c));
1612
1667
  },
1613
1668
  (p) => {
1614
1669
  d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), c.id_msg = "";
@@ -1626,7 +1681,7 @@ function qe(e, t, n = void 0, s = void 0) {
1626
1681
  type: "json",
1627
1682
  onComplete(l, u, m) {
1628
1683
  const g = l;
1629
- g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, U(e, c);
1684
+ g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, j(e, c);
1630
1685
  },
1631
1686
  onFailure(l, u, m) {
1632
1687
  const g = l;
@@ -1665,7 +1720,7 @@ function te(e, t, n, s) {
1665
1720
  });
1666
1721
  });
1667
1722
  }
1668
- function U(e, t, n = void 0, s = void 0) {
1723
+ function j(e, t, n = void 0, s = void 0) {
1669
1724
  const a = {
1670
1725
  base: e.space,
1671
1726
  uri: "/api/community",
@@ -1719,7 +1774,7 @@ const se = {
1719
1774
  idee_id: "THhRI8rlQNWKRxpv3Xqqug"
1720
1775
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1721
1776
  };
1722
- function He(e, t, n = void 0, s = void 0) {
1777
+ function ze(e, t, n = void 0, s = void 0) {
1723
1778
  const a = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1724
1779
  (c) => c.id === t.community_id
1725
1780
  ), o = e.swymCommunities.find(
@@ -1758,7 +1813,7 @@ function He(e, t, n = void 0, s = void 0) {
1758
1813
  });
1759
1814
  });
1760
1815
  }
1761
- function ze(e, t, n = void 0, s = void 0) {
1816
+ function Qe(e, t, n = void 0, s = void 0) {
1762
1817
  const a = `${e.space}/api/idea/delete`, r = {
1763
1818
  params: {
1764
1819
  community_id: t.community_id,
@@ -1785,7 +1840,7 @@ function ze(e, t, n = void 0, s = void 0) {
1785
1840
  });
1786
1841
  });
1787
1842
  }
1788
- function Qe(e, t = "", n = void 0, s = void 0) {
1843
+ function Ze(e, t = "", n = void 0, s = void 0) {
1789
1844
  const a = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1790
1845
  t === "" && (t = a);
1791
1846
  const r = `${e.space}/api/idea/get`, o = {
@@ -1814,7 +1869,7 @@ function Qe(e, t = "", n = void 0, s = void 0) {
1814
1869
  });
1815
1870
  });
1816
1871
  }
1817
- function Ze(e, t = se, n = void 0, s = void 0) {
1872
+ function et(e, t = se, n = void 0, s = void 0) {
1818
1873
  const a = {
1819
1874
  uri: "/api/idea/list",
1820
1875
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
@@ -1912,7 +1967,7 @@ function ie(e) {
1912
1967
  <p>
1913
1968
  </p>` : e;
1914
1969
  }
1915
- function et(e, t = void 0, n = void 0) {
1970
+ function tt(e, t = void 0, n = void 0) {
1916
1971
  const s = e.space + "/api/user/getcurrent/";
1917
1972
  w(e, (a) => {
1918
1973
  f(s, {
@@ -1931,7 +1986,7 @@ function et(e, t = void 0, n = void 0) {
1931
1986
  });
1932
1987
  });
1933
1988
  }
1934
- function tt(e, t, n = void 0, s = void 0) {
1989
+ function nt(e, t, n = void 0, s = void 0) {
1935
1990
  const a = e.space + "/api/user/find/login/" + t;
1936
1991
  w(
1937
1992
  e,
@@ -1951,14 +2006,14 @@ function tt(e, t, n = void 0, s = void 0) {
1951
2006
  s
1952
2007
  );
1953
2008
  }
1954
- function nt(e, t = void 0, n = void 0) {
2009
+ function st(e, t = void 0, n = void 0) {
1955
2010
  e.tenant && v(e, (s) => {
1956
2011
  console.log("serviceUrls", s);
1957
2012
  const a = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
1958
2013
  t && t(a);
1959
2014
  });
1960
2015
  }
1961
- function st(e, t = void 0, n = void 0) {
2016
+ function it(e, t = void 0, n = void 0) {
1962
2017
  e.tenant && v(e, (s) => {
1963
2018
  console.log("serviceUrls", s);
1964
2019
  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`;
@@ -1978,7 +2033,7 @@ function st(e, t = void 0, n = void 0) {
1978
2033
  });
1979
2034
  });
1980
2035
  }
1981
- async function it(e, t, n = void 0, s = void 0) {
2036
+ async function at(e, t, n = void 0, s = void 0) {
1982
2037
  e.tenant && v(e, (a) => {
1983
2038
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
1984
2039
  fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
@@ -1990,7 +2045,7 @@ async function it(e, t, n = void 0, s = void 0) {
1990
2045
  });
1991
2046
  });
1992
2047
  }
1993
- async function at(e, t, n = void 0, s = void 0) {
2048
+ async function ot(e, t, n = void 0, s = void 0) {
1994
2049
  e.tenant && v(e, (a) => {
1995
2050
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
1996
2051
  fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`, {
@@ -2002,7 +2057,7 @@ async function at(e, t, n = void 0, s = void 0) {
2002
2057
  });
2003
2058
  });
2004
2059
  }
2005
- async function ot(e, t, n, s, a = void 0, r = void 0) {
2060
+ async function rt(e, t, n, s, a = void 0, r = void 0) {
2006
2061
  e.tenant && v(e, (o) => {
2007
2062
  const i = o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", c = encodeURIComponent(`${i}`);
2008
2063
  fetch(
@@ -2017,11 +2072,11 @@ async function ot(e, t, n, s, a = void 0, r = void 0) {
2017
2072
  });
2018
2073
  });
2019
2074
  }
2020
- function rt(e) {
2075
+ function ct(e) {
2021
2076
  const t = "Hello " + e;
2022
2077
  return console.log(t), t;
2023
2078
  }
2024
- function ct(e, t = void 0, n = void 0) {
2079
+ function dt(e, t = void 0, n = void 0) {
2025
2080
  return console.log("credentials", e), new Promise((s) => {
2026
2081
  if (e.token === "" && T(e), !e.space || e.space === "") {
2027
2082
  const o = E();
@@ -2102,81 +2157,82 @@ function ct(e, t = void 0, n = void 0) {
2102
2157
  }
2103
2158
  export {
2104
2159
  D as UUID,
2105
- ct as _3DSearch_usersGroup,
2106
- Ie as _3DSpace_Create_Doc,
2107
- De as _3DSpace_bookmark_addSubsciptions,
2160
+ dt as _3DSearch_usersGroup,
2161
+ $e as _3DSpace_Create_Doc,
2162
+ Pe as _3DSpace_bookmark_addSubsciptions,
2163
+ De as _3DSpace_bookmark_newWorkspace,
2108
2164
  T as _3DSpace_csrf,
2109
2165
  P as _3DSpace_download_doc,
2110
- B as _3DSpace_download_multidoc,
2111
- X as _3DSpace_file_update,
2112
- W as _3DSpace_file_update_csr,
2113
- $e as _3DSpace_file_url_csr,
2114
- $ as _3DSpace_get_csrf,
2166
+ X as _3DSpace_download_multidoc,
2167
+ W as _3DSpace_file_update,
2168
+ B as _3DSpace_file_update_csr,
2169
+ ke as _3DSpace_file_url_csr,
2170
+ k as _3DSpace_get_csrf,
2115
2171
  V as _3DSpace_get_docInfo,
2116
2172
  Y as _3DSpace_get_downloadTicket_multidoc,
2117
2173
  b as _3DSpace_get_securityContexts,
2118
2174
  A as _3DSpace_get_ticket,
2119
- je as _3DSpace_lifecycle_changeRevision,
2175
+ Ue as _3DSpace_lifecycle_changeRevision,
2120
2176
  Ae as _3DSpace_lifecycle_changeState,
2121
2177
  Fe as _3DSpace_lifecycle_getGraph,
2122
- Ue as _3DSpace_lifecycle_getNextRevision,
2123
- ke as _3DSpace_lifecycle_getNextStates,
2124
- qe as _3DSwym_buildDirectMessage,
2125
- ze as _3DSwym_deleteIdea,
2178
+ je as _3DSpace_lifecycle_getNextRevision,
2179
+ Ie as _3DSpace_lifecycle_getNextStates,
2180
+ He as _3DSwym_buildDirectMessage,
2181
+ Qe as _3DSwym_deleteIdea,
2126
2182
  te as _3DSwym_findCommunityToInstantMSG,
2127
- Be as _3DSwym_getAllCommunities,
2128
- Xe as _3DSwym_getAllNews,
2129
- We as _3DSwym_getFamiliarPeople,
2130
- Ye as _3DSwym_getIdeaStatusMaturity,
2183
+ Ye as _3DSwym_getAllCommunities,
2184
+ Be as _3DSwym_getAllNews,
2185
+ Xe as _3DSwym_getFamiliarPeople,
2186
+ qe as _3DSwym_getIdeaStatusMaturity,
2131
2187
  ee as _3DSwym_getMembersCommunity,
2132
- Qe as _3DSwym_getSWYMIdea,
2133
- Ze as _3DSwym_get_AllSWYMIdeas,
2134
- et as _3DSwym_get_currentUser,
2135
- tt as _3DSwym_get_findUser,
2188
+ Ze as _3DSwym_getSWYMIdea,
2189
+ et as _3DSwym_get_AllSWYMIdeas,
2190
+ tt as _3DSwym_get_currentUser,
2191
+ nt as _3DSwym_get_findUser,
2136
2192
  w as _3DSwym_get_version,
2137
- He as _3DSwym_postIdea,
2138
- U as _3DSwym_sendMessageData,
2193
+ ze as _3DSwym_postIdea,
2194
+ j as _3DSwym_sendMessageData,
2139
2195
  ye as _AppMngt_get_info_user,
2140
2196
  _e as _AppMngt_get_users,
2141
- st as _Iterop_Auth_CAS,
2142
- it as _Iterop_ListUsers,
2143
- at as _Iterop_getAllBusinessTables,
2144
- ot as _Iterop_runProcess,
2197
+ it as _Iterop_Auth_CAS,
2198
+ at as _Iterop_ListUsers,
2199
+ ot as _Iterop_getAllBusinessTables,
2200
+ rt as _Iterop_runProcess,
2145
2201
  E as _getPlateformInfos,
2146
2202
  ge as _getPlatformServices,
2147
2203
  v as _getServiceUrl,
2148
2204
  he as _getServiceUrl_3DPassport,
2149
- nt as _getServiceUrl_Iterop,
2205
+ st as _getServiceUrl_Iterop,
2150
2206
  f as _httpCallAuthenticated,
2151
2207
  ue as _setDraggable,
2152
2208
  me as _setDroppable,
2153
2209
  fe as _setupTagger,
2154
- Ge as addTagToDoc,
2210
+ Ke as addTagToDoc,
2155
2211
  Se as compass_getListAdditionalApps,
2156
2212
  J as couleurs,
2157
2213
  we as createUserGroups,
2158
2214
  q as dataMixing,
2159
2215
  Oe as deleteUserGroups,
2160
2216
  de as findAdresse,
2161
- Pe as getAllContextSecurity,
2217
+ Re as getAllContextSecurity,
2162
2218
  K as getCSRFToken,
2163
2219
  ce as getCommunes,
2164
2220
  Ce as getComplementUG,
2165
- Re as getDataFrom3DSpace,
2221
+ xe as getDataFrom3DSpace,
2166
2222
  pe as getDataFromGouvFr,
2167
- Je as getDatasByTenant,
2168
- Ee as getDatasFrom3DSpace,
2169
- xe as getDownloadDocument,
2170
- Ve as getInfoDocTags,
2223
+ Ee as getDatasByTenant,
2224
+ Ge as getDatasFrom3DSpace,
2225
+ Me as getDownloadDocument,
2226
+ We as getInfoDocTags,
2171
2227
  Te as getUserGroupsList,
2172
2228
  G as getUsersGroupRules,
2173
- Le as get_3DSpace_csrf,
2229
+ Je as get_3DSpace_csrf,
2174
2230
  be as patchUserGroups,
2175
2231
  Ne as patchUserGroupsControl,
2176
- Me as pushDataIn3DSpace,
2232
+ Le as pushDataIn3DSpace,
2177
2233
  ve as readUserGroupControl,
2178
- Ke as removeTagToDoc,
2179
- rt as sayHello,
2234
+ Ve as removeTagToDoc,
2235
+ ct as sayHello,
2180
2236
  le as updateEvent
2181
2237
  };
2182
2238
  //# sourceMappingURL=wb3Api.js.map