@beam3_dev/api_module 0.0.89 → 0.0.91

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 M } from "uuid";
2
2
  import { DateTime as N } from "luxon";
3
3
  import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
4
- function R() {
4
+ function I() {
5
5
  return M();
6
6
  }
7
7
  const L = {
@@ -603,7 +603,7 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
603
603
  }
604
604
  }]
605
605
  },
606
- tempId: R()
606
+ tempId: I()
607
607
  }]
608
608
  }),
609
609
  type: "json",
@@ -677,7 +677,7 @@ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, o = !1
677
677
  }
678
678
  });
679
679
  }
680
- async function I(e, t = void 0, s = void 0) {
680
+ async function R(e, t = void 0, s = void 0) {
681
681
  return (!e.objID || e.objID === "") && console.warn(
682
682
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
683
683
  ), (e.space === "" || !e.space) && console.warn(
@@ -1013,7 +1013,9 @@ function je(e, t, s = void 0, n = void 0) {
1013
1013
  `${e.space}`, m(`https://eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e._platformId}`, {
1014
1014
  onComplete(o) {
1015
1015
  if (Array.isArray(JSON.parse(o))) {
1016
- const r = `${JSON.parse(o)[0].service[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e._platformId}&timestamp=${c}`;
1016
+ const a = JSON.parse(o);
1017
+ console.log("serviceId=3dsearch", a);
1018
+ const r = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e._platformId}&timestamp=${c}`;
1017
1019
  m(r, {
1018
1020
  method: "POST",
1019
1021
  headers: {
@@ -1082,7 +1084,7 @@ function je(e, t, s = void 0, n = void 0) {
1082
1084
  });
1083
1085
  }
1084
1086
  //!SECTION
1085
- function Re(e, t = void 0, s = void 0) {
1087
+ function Ie(e, t = void 0, s = void 0) {
1086
1088
  const n = {
1087
1089
  base: `${e.space}`,
1088
1090
  uri: "/resources/bps/cspaces",
@@ -1103,7 +1105,7 @@ function Re(e, t = void 0, s = void 0) {
1103
1105
  }
1104
1106
  });
1105
1107
  }
1106
- function Ie(e, t, s, n) {
1108
+ function Re(e, t, s, n) {
1107
1109
  A(
1108
1110
  e.space,
1109
1111
  t,
@@ -1177,7 +1179,7 @@ async function xe(e, t = void 0, s = void 0) {
1177
1179
  );
1178
1180
  }
1179
1181
  async function Me(e, t = void 0, s = void 0) {
1180
- console.log("getDatasByTenant (getDocuments)", e), await I(
1182
+ console.log("getDatasByTenant (getDocuments)", e), await R(
1181
1183
  e,
1182
1184
  (n) => {
1183
1185
  const i = {};
@@ -1195,7 +1197,7 @@ function Le(e, t = void 0, s = void 0) {
1195
1197
  return;
1196
1198
  }
1197
1199
  e.objIds.forEach((i, c) => {
1198
- I(
1200
+ R(
1199
1201
  e,
1200
1202
  i.objID,
1201
1203
  (o) => {
@@ -1305,7 +1307,7 @@ function z(e, t, s = void 0, n = void 0) {
1305
1307
  }, o = `${c.baseUrl}${c.uri}`, a = {
1306
1308
  "Content-Type": "application/json",
1307
1309
  Accept: "application/json,text/javascript,*/*"
1308
- }, r = R(), d = {
1310
+ }, r = I(), d = {
1309
1311
  with_indexing_date: !0,
1310
1312
  with_synthesis: !0,
1311
1313
  with_nls: !1,
@@ -1968,11 +1970,11 @@ function et(e) {
1968
1970
  return console.log(t), t;
1969
1971
  }
1970
1972
  export {
1971
- R as UUID,
1973
+ I as UUID,
1972
1974
  ke as _3DSpace_Create_Doc,
1973
1975
  je as _3DSpace_bookmark_addSubsciptions,
1974
1976
  T as _3DSpace_csrf,
1975
- I as _3DSpace_download_doc,
1977
+ R as _3DSpace_download_doc,
1976
1978
  W as _3DSpace_download_multidoc,
1977
1979
  K as _3DSpace_file_update,
1978
1980
  X as _3DSpace_file_update_csr,
@@ -2017,11 +2019,11 @@ export {
2017
2019
  B as dataMixing,
2018
2020
  Ce as deleteUserGroups,
2019
2021
  re as findAdresse,
2020
- Re as getAllContextSecurity,
2022
+ Ie as getAllContextSecurity,
2021
2023
  E as getCSRFToken,
2022
2024
  oe as getCommunes,
2023
2025
  ye as getComplementUG,
2024
- Ie as getDataFrom3DSpace,
2026
+ Re as getDataFrom3DSpace,
2025
2027
  ce as getDataFromGouvFr,
2026
2028
  Me as getDatasByTenant,
2027
2029
  Le as getDatasFrom3DSpace,