@beam3_dev/api_module 0.0.100 → 0.0.101

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
@@ -1006,86 +1006,7 @@ function $e(e, t, n, s = void 0, o = void 0) {
1006
1006
  }
1007
1007
  });
1008
1008
  }
1009
- function Ue(e, t = void 0, n = void 0) {
1010
- return console.log("credentials", e), new Promise((s) => {
1011
- if (e.token === "" && T(e), !e.space || e.space === "") {
1012
- const i = J();
1013
- console.log("platformeInfo", i);
1014
- }
1015
- b(
1016
- e,
1017
- "Common space",
1018
- ["VPLMProjectLeader", "VPLMCreator"],
1019
- void 0,
1020
- (i) => e.ctx = i,
1021
- (i) => {
1022
- console.log("onError =>", i);
1023
- },
1024
- !0
1025
- );
1026
- const o = N.now().ts, c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
1027
- m(c, {
1028
- onComplete(i) {
1029
- if (Array.isArray(JSON.parse(i))) {
1030
- const a = JSON.parse(i);
1031
- console.log("serviceId=3dsearch", a);
1032
- const r = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
1033
- m(r, {
1034
- method: "POST",
1035
- headers: {
1036
- Accept: "application/json",
1037
- "Content-Type": "application/json"
1038
- },
1039
- data: JSON.stringify({
1040
- with_indexing_date: !0,
1041
- with_nls: !1,
1042
- label: `3DSearch-${o}`,
1043
- locale: "en",
1044
- select_predicate: [
1045
- "ds6w:label",
1046
- "ds6w:type",
1047
- "ds6w:description",
1048
- "ds6w:identifier",
1049
- "ds6w:responsible",
1050
- "ds6wg:fullname"
1051
- ],
1052
- select_file: [
1053
- "icon",
1054
- "thumbnail_2d"
1055
- ],
1056
- query: '([ds6w:type]:(Group) AND [ds6w:status]:(Public)) OR (flattenedtaxonomies:"types/Person" AND current:"active")',
1057
- order_by: "desc",
1058
- order_field: "relevance",
1059
- nresults: 1e3,
1060
- start: "0",
1061
- source: [
1062
- "3dspace",
1063
- "usersgroup"
1064
- ],
1065
- tenant: e.tenant,
1066
- login: {
1067
- "3dspace": {
1068
- SecurityContext: `ctx::${e.ctx}`
1069
- }
1070
- }
1071
- }),
1072
- type: "json",
1073
- onComplete(d) {
1074
- t && t(d);
1075
- },
1076
- onFailure(d) {
1077
- n && n(d);
1078
- }
1079
- });
1080
- }
1081
- },
1082
- onFailure(i) {
1083
- n && n(i);
1084
- }
1085
- });
1086
- });
1087
- }
1088
- function Ie(e, t, n, s, o = void 0, c = void 0) {
1009
+ function Ue(e, t, n, s, o = void 0, c = void 0) {
1089
1010
  return console.log("credentials", e), new Promise(
1090
1011
  (i) => {
1091
1012
  `${e.space}`, JSON.stringify({
@@ -1109,7 +1030,7 @@ function Ie(e, t, n, s, o = void 0, c = void 0) {
1109
1030
  );
1110
1031
  }
1111
1032
  //!SECTION
1112
- function ve(e, t = void 0, n = void 0) {
1033
+ function Ie(e, t = void 0, n = void 0) {
1113
1034
  const s = {
1114
1035
  base: `${e.space}`,
1115
1036
  uri: "/resources/bps/cspaces",
@@ -1130,7 +1051,7 @@ function ve(e, t = void 0, n = void 0) {
1130
1051
  }
1131
1052
  });
1132
1053
  }
1133
- function Re(e, t, n, s) {
1054
+ function ve(e, t, n, s) {
1134
1055
  j(
1135
1056
  e.space,
1136
1057
  t,
@@ -1147,7 +1068,7 @@ function Re(e, t, n, s) {
1147
1068
  }
1148
1069
  );
1149
1070
  }
1150
- async function Pe(e, t, n = void 0, s = void 0) {
1071
+ async function Re(e, t, n = void 0, s = void 0) {
1151
1072
  return new Promise((o) => {
1152
1073
  j(e, t, (c) => {
1153
1074
  m(c, {
@@ -1159,7 +1080,7 @@ async function Pe(e, t, n = void 0, s = void 0) {
1159
1080
  });
1160
1081
  });
1161
1082
  }
1162
- function xe(e, t, n, s = void 0, o = void 0) {
1083
+ function Pe(e, t, n, s = void 0, o = void 0) {
1163
1084
  const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
1164
1085
  k(
1165
1086
  e,
@@ -1184,7 +1105,7 @@ function xe(e, t, n, s = void 0, o = void 0) {
1184
1105
  }
1185
1106
  let R, P;
1186
1107
  const A = [];
1187
- async function Me(e, t = void 0, n = void 0) {
1108
+ async function xe(e, t = void 0, n = void 0) {
1188
1109
  e.objID && e.objID !== "" ? k(
1189
1110
  e,
1190
1111
  (s) => {
@@ -1203,7 +1124,7 @@ async function Me(e, t = void 0, n = void 0) {
1203
1124
  }
1204
1125
  );
1205
1126
  }
1206
- async function Le(e, t = void 0, n = void 0) {
1127
+ async function Me(e, t = void 0, n = void 0) {
1207
1128
  console.log("getDatasByTenant (getDocuments)", e), await v(
1208
1129
  e,
1209
1130
  (s) => {
@@ -1215,7 +1136,7 @@ async function Le(e, t = void 0, n = void 0) {
1215
1136
  }
1216
1137
  );
1217
1138
  }
1218
- function Je(e, t = void 0, n = void 0) {
1139
+ function Le(e, t = void 0, n = void 0) {
1219
1140
  const s = [];
1220
1141
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1221
1142
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1264,7 +1185,7 @@ const q = "FA35FB9B177A280065800EA0000F599C", H = [
1264
1185
  order_by: "desc",
1265
1186
  tag: "testTag"
1266
1187
  };
1267
- function Ee(e, t, n = void 0, s = void 0) {
1188
+ function Je(e, t, n = void 0, s = void 0) {
1268
1189
  const { space: o, tenant: c } = e, { objId: i, pred: a, tag: r } = t, d = {
1269
1190
  uri: "/resources/6w/tags",
1270
1191
  otpCTX: "SecurityContext=preferred",
@@ -1407,7 +1328,7 @@ function Q(e, t, n = void 0, s = void 0) {
1407
1328
  }
1408
1329
  });
1409
1330
  }
1410
- function Ge(e, t, n = void 0, s = void 0) {
1331
+ function Ee(e, t, n = void 0, s = void 0) {
1411
1332
  const { objId: o, pred: c, tag: i } = t, a = {
1412
1333
  uri: "/resources/6w/tags",
1413
1334
  otpCTX: "SecurityContext=preferred",
@@ -1443,7 +1364,7 @@ function Ge(e, t, n = void 0, s = void 0) {
1443
1364
  }
1444
1365
  });
1445
1366
  }
1446
- function Ke(e, t = "", n = void 0, s = void 0) {
1367
+ function Ge(e, t = "", n = void 0, s = void 0) {
1447
1368
  const { space: o } = e;
1448
1369
  if (t === "")
1449
1370
  return;
@@ -1479,7 +1400,7 @@ async function w(e, t = void 0, n = void 0) {
1479
1400
  }
1480
1401
  });
1481
1402
  }
1482
- function Xe(e, t = void 0, n = void 0) {
1403
+ function Ke(e, t = void 0, n = void 0) {
1483
1404
  const s = `${e.space}/api/exalead/whatsnew`, o = {
1484
1405
  params: {
1485
1406
  community_id: null,
@@ -1509,7 +1430,7 @@ function Xe(e, t = void 0, n = void 0) {
1509
1430
  });
1510
1431
  });
1511
1432
  }
1512
- function Ve(e, t = void 0, n = void 0) {
1433
+ function Xe(e, t = void 0, n = void 0) {
1513
1434
  const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
1514
1435
  params: {
1515
1436
  idsToFilterArr: [],
@@ -1539,7 +1460,7 @@ function Ve(e, t = void 0, n = void 0) {
1539
1460
  });
1540
1461
  });
1541
1462
  }
1542
- function We(e, t = void 0, n = void 0) {
1463
+ function Ve(e, t = void 0, n = void 0) {
1543
1464
  const s = {
1544
1465
  base: e.space,
1545
1466
  uri: "/api/community/listmycommunities",
@@ -1609,7 +1530,7 @@ function Z(e, t, n, s) {
1609
1530
  });
1610
1531
  });
1611
1532
  }
1612
- function Be(e, t = void 0, n = void 0) {
1533
+ function We(e, t = void 0, n = void 0) {
1613
1534
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1614
1535
  e.commu_id || (e.commu_id = s);
1615
1536
  const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -1632,7 +1553,7 @@ function Be(e, t = void 0, n = void 0) {
1632
1553
  });
1633
1554
  });
1634
1555
  }
1635
- function Ye(e, t, n = void 0, s = void 0) {
1556
+ function Be(e, t, n = void 0, s = void 0) {
1636
1557
  const { listAllContacts: o, currentUser: c } = e;
1637
1558
  console.log("__listAllContacts", o.hits);
1638
1559
  const i = `${e.space}/api/directmessages`, a = {
@@ -1758,7 +1679,7 @@ const ne = {
1758
1679
  idee_id: "THhRI8rlQNWKRxpv3Xqqug"
1759
1680
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1760
1681
  };
1761
- function qe(e, t, n = void 0, s = void 0) {
1682
+ function Ye(e, t, n = void 0, s = void 0) {
1762
1683
  const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1763
1684
  (r) => r.id === t.community_id
1764
1685
  ), i = e.swymCommunities.find(
@@ -1797,7 +1718,7 @@ function qe(e, t, n = void 0, s = void 0) {
1797
1718
  });
1798
1719
  });
1799
1720
  }
1800
- function He(e, t, n = void 0, s = void 0) {
1721
+ function qe(e, t, n = void 0, s = void 0) {
1801
1722
  const o = `${e.space}/api/idea/delete`, c = {
1802
1723
  params: {
1803
1724
  community_id: t.community_id,
@@ -1824,7 +1745,7 @@ function He(e, t, n = void 0, s = void 0) {
1824
1745
  });
1825
1746
  });
1826
1747
  }
1827
- function ze(e, t = "", n = void 0, s = void 0) {
1748
+ function He(e, t = "", n = void 0, s = void 0) {
1828
1749
  const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1829
1750
  t === "" && (t = o);
1830
1751
  const c = `${e.space}/api/idea/get`, i = {
@@ -1853,7 +1774,7 @@ function ze(e, t = "", n = void 0, s = void 0) {
1853
1774
  });
1854
1775
  });
1855
1776
  }
1856
- function Qe(e, t = ne, n = void 0, s = void 0) {
1777
+ function ze(e, t = ne, n = void 0, s = void 0) {
1857
1778
  const o = {
1858
1779
  uri: "/api/idea/list",
1859
1780
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
@@ -1951,7 +1872,7 @@ function se(e) {
1951
1872
  <p>
1952
1873
  </p>` : e;
1953
1874
  }
1954
- function Ze(e, t = void 0, n = void 0) {
1875
+ function Qe(e, t = void 0, n = void 0) {
1955
1876
  const s = e.space + "/api/user/getcurrent/";
1956
1877
  w(e, (o) => {
1957
1878
  m(s, {
@@ -1970,7 +1891,7 @@ function Ze(e, t = void 0, n = void 0) {
1970
1891
  });
1971
1892
  });
1972
1893
  }
1973
- function et(e, t, n = void 0, s = void 0) {
1894
+ function Ze(e, t, n = void 0, s = void 0) {
1974
1895
  const o = e.space + "/api/user/find/login/" + t;
1975
1896
  w(
1976
1897
  e,
@@ -1990,21 +1911,100 @@ function et(e, t, n = void 0, s = void 0) {
1990
1911
  s
1991
1912
  );
1992
1913
  }
1993
- function tt(e) {
1914
+ function et(e) {
1994
1915
  const t = "Hello " + e;
1995
1916
  return console.log(t), t;
1996
1917
  }
1918
+ function tt(e, t = void 0, n = void 0) {
1919
+ return console.log("credentials", e), new Promise((s) => {
1920
+ if (e.token === "" && T(e), !e.space || e.space === "") {
1921
+ const i = J();
1922
+ console.log("platformeInfo", i);
1923
+ }
1924
+ b(
1925
+ e,
1926
+ "Common space",
1927
+ ["VPLMProjectLeader", "VPLMCreator"],
1928
+ void 0,
1929
+ (i) => e.ctx = i,
1930
+ (i) => {
1931
+ console.log("onError =>", i);
1932
+ },
1933
+ !0
1934
+ );
1935
+ const o = N.now().ts, c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
1936
+ m(c, {
1937
+ onComplete(i) {
1938
+ if (Array.isArray(JSON.parse(i))) {
1939
+ const a = JSON.parse(i);
1940
+ console.log("serviceId=3dsearch", a);
1941
+ const r = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
1942
+ m(r, {
1943
+ method: "POST",
1944
+ headers: {
1945
+ Accept: "application/json",
1946
+ "Content-Type": "application/json"
1947
+ },
1948
+ data: JSON.stringify({
1949
+ with_indexing_date: !0,
1950
+ with_nls: !1,
1951
+ label: `3DSearch-${o}`,
1952
+ locale: "en",
1953
+ select_predicate: [
1954
+ "ds6w:label",
1955
+ "ds6w:type",
1956
+ "ds6w:description",
1957
+ "ds6w:identifier",
1958
+ "ds6w:responsible",
1959
+ "ds6wg:fullname"
1960
+ ],
1961
+ select_file: [
1962
+ "icon",
1963
+ "thumbnail_2d"
1964
+ ],
1965
+ query: '([ds6w:type]:(Group) AND [ds6w:status]:(Public)) OR (flattenedtaxonomies:"types/Person" AND current:"active")',
1966
+ order_by: "desc",
1967
+ order_field: "relevance",
1968
+ nresults: 1e3,
1969
+ start: "0",
1970
+ source: [
1971
+ "3dspace",
1972
+ "usersgroup"
1973
+ ],
1974
+ tenant: e.tenant,
1975
+ login: {
1976
+ "3dspace": {
1977
+ SecurityContext: `ctx::${e.ctx}`
1978
+ }
1979
+ }
1980
+ }),
1981
+ type: "json",
1982
+ onComplete(d) {
1983
+ t && t(d);
1984
+ },
1985
+ onFailure(d) {
1986
+ n && n(d);
1987
+ }
1988
+ });
1989
+ }
1990
+ },
1991
+ onFailure(i) {
1992
+ n && n(i);
1993
+ }
1994
+ });
1995
+ });
1996
+ }
1997
1997
  export {
1998
1998
  I as UUID,
1999
+ tt as _3DSearch_usersGroup,
1999
2000
  ke as _3DSpace_Create_Doc,
2000
- Ie as _3DSpace_bookmark_addSubsciptions,
2001
+ Ue as _3DSpace_bookmark_addSubsciptions,
2001
2002
  T as _3DSpace_csrf,
2002
2003
  v as _3DSpace_download_doc,
2003
2004
  W as _3DSpace_download_multidoc,
2004
2005
  X as _3DSpace_file_update,
2005
2006
  V as _3DSpace_file_update_csr,
2006
2007
  Ne as _3DSpace_file_url_csr,
2007
- Ue as _3DSpace_findUsersGroup,
2008
2008
  k as _3DSpace_get_csrf,
2009
2009
  K as _3DSpace_get_docInfo,
2010
2010
  B as _3DSpace_get_downloadTicket_multidoc,
@@ -2015,20 +2015,20 @@ export {
2015
2015
  je as _3DSpace_lifecycle_getGraph,
2016
2016
  Ae as _3DSpace_lifecycle_getNextRevision,
2017
2017
  De as _3DSpace_lifecycle_getNextStates,
2018
- Ye as _3DSwym_buildDirectMessage,
2019
- He as _3DSwym_deleteIdea,
2018
+ Be as _3DSwym_buildDirectMessage,
2019
+ qe as _3DSwym_deleteIdea,
2020
2020
  ee as _3DSwym_findCommunityToInstantMSG,
2021
- We as _3DSwym_getAllCommunities,
2022
- Xe as _3DSwym_getAllNews,
2023
- Ve as _3DSwym_getFamiliarPeople,
2024
- Be as _3DSwym_getIdeaStatusMaturity,
2021
+ Ve as _3DSwym_getAllCommunities,
2022
+ Ke as _3DSwym_getAllNews,
2023
+ Xe as _3DSwym_getFamiliarPeople,
2024
+ We as _3DSwym_getIdeaStatusMaturity,
2025
2025
  Z as _3DSwym_getMembersCommunity,
2026
- ze as _3DSwym_getSWYMIdea,
2027
- Qe as _3DSwym_get_AllSWYMIdeas,
2028
- Ze as _3DSwym_get_currentUser,
2029
- et as _3DSwym_get_findUser,
2026
+ He as _3DSwym_getSWYMIdea,
2027
+ ze as _3DSwym_get_AllSWYMIdeas,
2028
+ Qe as _3DSwym_get_currentUser,
2029
+ Ze as _3DSwym_get_findUser,
2030
2030
  w as _3DSwym_get_version,
2031
- qe as _3DSwym_postIdea,
2031
+ Ye as _3DSwym_postIdea,
2032
2032
  $ as _3DSwym_sendMessageData,
2033
2033
  Se as _AppMngt_get_info_user,
2034
2034
  he as _AppMngt_get_users,
@@ -2038,32 +2038,32 @@ export {
2038
2038
  pe as _setDraggable,
2039
2039
  fe as _setDroppable,
2040
2040
  ue as _setupTagger,
2041
- Ee as addTagToDoc,
2041
+ Je as addTagToDoc,
2042
2042
  ge as compass_getListAdditionalApps,
2043
2043
  L as couleurs,
2044
2044
  _e as createUserGroups,
2045
2045
  Y as dataMixing,
2046
2046
  Ce as deleteUserGroups,
2047
2047
  ce as findAdresse,
2048
- ve as getAllContextSecurity,
2048
+ Ie as getAllContextSecurity,
2049
2049
  G as getCSRFToken,
2050
2050
  re as getCommunes,
2051
2051
  ye as getComplementUG,
2052
- Re as getDataFrom3DSpace,
2052
+ ve as getDataFrom3DSpace,
2053
2053
  de as getDataFromGouvFr,
2054
- Le as getDatasByTenant,
2055
- Je as getDatasFrom3DSpace,
2056
- Pe as getDownloadDocument,
2057
- Ke as getInfoDocTags,
2054
+ Me as getDatasByTenant,
2055
+ Le as getDatasFrom3DSpace,
2056
+ Re as getDownloadDocument,
2057
+ Ge as getInfoDocTags,
2058
2058
  we as getUserGroupsList,
2059
2059
  E as getUsersGroupRules,
2060
- Me as get_3DSpace_csrf,
2060
+ xe as get_3DSpace_csrf,
2061
2061
  Te as patchUserGroups,
2062
2062
  Oe as patchUserGroupsControl,
2063
- xe as pushDataIn3DSpace,
2063
+ Pe as pushDataIn3DSpace,
2064
2064
  be as readUserGroupControl,
2065
- Ge as removeTagToDoc,
2066
- tt as sayHello,
2065
+ Ee as removeTagToDoc,
2066
+ et as sayHello,
2067
2067
  le as updateEvent
2068
2068
  };
2069
2069
  //# sourceMappingURL=wb3Api.js.map