@beam3_dev/api_module 0.0.124 → 0.0.125

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
@@ -483,7 +483,7 @@ function T(e, t = void 0, n = void 0) {
483
483
  } else
484
484
  n && n("ERROR : url du 3DSpace non défini.");
485
485
  }
486
- function A(e, t = void 0, n = void 0) {
486
+ function $(e, t = void 0, n = void 0) {
487
487
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
488
488
  v(
489
489
  e,
@@ -735,7 +735,7 @@ async function I(e, t = void 0, n = void 0) {
735
735
  ), console.warn(
736
736
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
737
737
  )), new Promise((s, i) => {
738
- A(
738
+ $(
739
739
  e,
740
740
  (r) => {
741
741
  f(r, {
@@ -840,7 +840,7 @@ function Y(e, t, n = void 0, s = void 0, i = void 0) {
840
840
  }
841
841
  });
842
842
  }
843
- function Ae(e, t, n = void 0, s = void 0) {
843
+ function $e(e, t, n = void 0, s = void 0) {
844
844
  return new Promise((i) => {
845
845
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
846
846
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -879,7 +879,7 @@ function Ae(e, t, n = void 0, s = void 0) {
879
879
  }
880
880
  });
881
881
  }
882
- function $e(e, t, n, s = void 0, i = void 0) {
882
+ function Ae(e, t, n, s = void 0, i = void 0) {
883
883
  return new Promise((r) => {
884
884
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
885
885
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1092,7 +1092,7 @@ function Re(e, t = void 0, n = void 0) {
1092
1092
  });
1093
1093
  }
1094
1094
  function xe(e, t, n, s) {
1095
- A(
1095
+ $(
1096
1096
  e.space,
1097
1097
  t,
1098
1098
  (i) => {
@@ -1110,7 +1110,7 @@ function xe(e, t, n, s) {
1110
1110
  }
1111
1111
  async function Pe(e, t, n = void 0, s = void 0) {
1112
1112
  return new Promise((i) => {
1113
- A(e, t, (r) => {
1113
+ $(e, t, (r) => {
1114
1114
  f(r, {
1115
1115
  onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1116
1116
  onFailure: (o, a, c) => {
@@ -1144,7 +1144,7 @@ function Me(e, t, n, s = void 0, i = void 0) {
1144
1144
  );
1145
1145
  }
1146
1146
  let R, x;
1147
- const $ = [];
1147
+ const A = [];
1148
1148
  async function Le(e, t = void 0, n = void 0) {
1149
1149
  e.objID && e.objID !== "" ? v(
1150
1150
  e,
@@ -1198,7 +1198,7 @@ function q(e, t, n = void 0, s = void 0) {
1198
1198
  R,
1199
1199
  (i) => {
1200
1200
  const r = [...t];
1201
- r.find((o) => o.objectID === i.objectId).data = i.data, x = r, $.push(i.data), n && n($);
1201
+ r.find((o) => o.objectID === i.objectId).data = i.data, x = r, A.push(i.data), n && n(A);
1202
1202
  },
1203
1203
  (i) => {
1204
1204
  s && (s(i), console.log(i));
@@ -1954,9 +1954,7 @@ function tt(e, t, n = void 0, s = void 0) {
1954
1954
  function nt(e, t = void 0, n = void 0) {
1955
1955
  e.tenant && E(e, (s) => {
1956
1956
  console.log("serviceUrls", s);
1957
- const i = s.services.find((a) => a.id === "3dpassport")?.url;
1958
- s.services.find((a) => a.id === "3dcompass")?.url;
1959
- const r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
1957
+ const i = s.services.find((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
1960
1958
  f(o, {
1961
1959
  async onComplete(a) {
1962
1960
  console.log("response", a);
@@ -1973,11 +1971,21 @@ function nt(e, t = void 0, n = void 0) {
1973
1971
  });
1974
1972
  });
1975
1973
  }
1976
- function st(e) {
1974
+ function st(e, t) {
1975
+ const n = new Headers();
1976
+ n.append("Authorization", `Bearer ${t}`);
1977
+ const s = {
1978
+ method: "GET",
1979
+ headers: n,
1980
+ redirect: "follow"
1981
+ };
1982
+ fetch(`${e}/identity/users`, s).then((i) => i.text()).then((i) => console.log(i)).catch((i) => console.error(i));
1983
+ }
1984
+ function at(e) {
1977
1985
  const t = "Hello " + e;
1978
1986
  return console.log(t), t;
1979
1987
  }
1980
- function at(e, t = void 0, n = void 0) {
1988
+ function it(e, t = void 0, n = void 0) {
1981
1989
  return console.log("credentials", e), new Promise((s) => {
1982
1990
  if (e.token === "" && T(e), !e.space || e.space === "") {
1983
1991
  const o = J();
@@ -2058,7 +2066,7 @@ function at(e, t = void 0, n = void 0) {
2058
2066
  }
2059
2067
  export {
2060
2068
  j as UUID,
2061
- at as _3DSearch_usersGroup,
2069
+ it as _3DSearch_usersGroup,
2062
2070
  Fe as _3DSpace_Create_Doc,
2063
2071
  Ie as _3DSpace_bookmark_addSubsciptions,
2064
2072
  T as _3DSpace_csrf,
@@ -2071,12 +2079,12 @@ export {
2071
2079
  X as _3DSpace_get_docInfo,
2072
2080
  Y as _3DSpace_get_downloadTicket_multidoc,
2073
2081
  b as _3DSpace_get_securityContexts,
2074
- A as _3DSpace_get_ticket,
2082
+ $ as _3DSpace_get_ticket,
2075
2083
  je as _3DSpace_lifecycle_changeRevision,
2076
- $e as _3DSpace_lifecycle_changeState,
2084
+ Ae as _3DSpace_lifecycle_changeState,
2077
2085
  De as _3DSpace_lifecycle_getGraph,
2078
2086
  Ue as _3DSpace_lifecycle_getNextRevision,
2079
- Ae as _3DSpace_lifecycle_getNextStates,
2087
+ $e as _3DSpace_lifecycle_getNextStates,
2080
2088
  qe as _3DSwym_buildDirectMessage,
2081
2089
  ze as _3DSwym_deleteIdea,
2082
2090
  te as _3DSwym_findCommunityToInstantMSG,
@@ -2095,6 +2103,7 @@ export {
2095
2103
  ye as _AppMngt_get_info_user,
2096
2104
  _e as _AppMngt_get_users,
2097
2105
  nt as _Iterop_Auth_CAS,
2106
+ st as _Iterop_ListUsers,
2098
2107
  J as _getPlateformInfos,
2099
2108
  ge as _getPlatformServices,
2100
2109
  E as _getServiceUrl,
@@ -2128,7 +2137,7 @@ export {
2128
2137
  Me as pushDataIn3DSpace,
2129
2138
  ve as readUserGroupControl,
2130
2139
  Ke as removeTagToDoc,
2131
- st as sayHello,
2140
+ at as sayHello,
2132
2141
  pe as updateEvent
2133
2142
  };
2134
2143
  //# sourceMappingURL=wb3Api.js.map