@beam3_dev/api_module 0.0.100 → 0.0.102

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