@beam3_dev/api_module 0.0.96 → 0.0.98
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 +16 -16
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -4
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
2
|
import { DateTime as b } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
3
|
+
import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function R() {
|
|
5
5
|
return M();
|
|
6
6
|
}
|
|
@@ -118,7 +118,7 @@ function ue(e, t = void 0) {
|
|
|
118
118
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
119
119
|
let n;
|
|
120
120
|
n === void 0 && (n = s.createProxy({
|
|
121
|
-
widgetId:
|
|
121
|
+
widgetId: U.id,
|
|
122
122
|
filteringMode: "WithFilteringServices"
|
|
123
123
|
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
124
124
|
});
|
|
@@ -132,7 +132,7 @@ async function me(e, t = void 0, s = void 0) {
|
|
|
132
132
|
await O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(n) => {
|
|
135
|
-
(!e || e === "") && (e =
|
|
135
|
+
(!e || e === "") && (e = U.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
136
136
|
n.getPlatformServices({
|
|
137
137
|
platformId: e,
|
|
138
138
|
onComplete: t,
|
|
@@ -961,7 +961,7 @@ function $e(e, t, s = void 0, n = void 0) {
|
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function je(e, t, s, n = void 0, o = void 0) {
|
|
965
965
|
return new Promise((r) => {
|
|
966
966
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
967
967
|
const c = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1006,21 +1006,22 @@ function Ue(e, t, s, n = void 0, o = void 0) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Ue(e, t, s = void 0, n = void 0) {
|
|
1010
1010
|
return console.log("credentials", e), new Promise((o) => {
|
|
1011
1011
|
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
1012
1012
|
const r = J();
|
|
1013
1013
|
console.log("platformeInfo", r);
|
|
1014
1014
|
}
|
|
1015
1015
|
if (N(
|
|
1016
|
-
e
|
|
1017
|
-
"
|
|
1016
|
+
e,
|
|
1017
|
+
"Common space",
|
|
1018
1018
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1019
1019
|
void 0,
|
|
1020
1020
|
(r) => e.ctx = r,
|
|
1021
1021
|
(r) => {
|
|
1022
1022
|
console.log("onError =>", r);
|
|
1023
|
-
}
|
|
1023
|
+
},
|
|
1024
|
+
!0
|
|
1024
1025
|
), t !== void 0 && t !== "" && t !== null) {
|
|
1025
1026
|
const r = b.now().ts;
|
|
1026
1027
|
`${e.space}`;
|
|
@@ -1030,12 +1031,11 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
1030
1031
|
if (Array.isArray(JSON.parse(a))) {
|
|
1031
1032
|
const i = JSON.parse(a);
|
|
1032
1033
|
console.log("serviceId=3dsearch", i);
|
|
1033
|
-
const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest
|
|
1034
|
+
const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
1034
1035
|
m(d, {
|
|
1035
1036
|
method: "POST",
|
|
1036
1037
|
headers: {
|
|
1037
1038
|
securitycontext: "ctx::" + e.ctx,
|
|
1038
|
-
ENO_CSRF_TOKEN: e.token,
|
|
1039
1039
|
Accept: "application/json",
|
|
1040
1040
|
"Content-Type": "application/json"
|
|
1041
1041
|
},
|
|
@@ -1644,7 +1644,7 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1644
1644
|
ee(
|
|
1645
1645
|
a.users,
|
|
1646
1646
|
(l) => {
|
|
1647
|
-
l !== void 0 && (i.id_msg = l.id, d = !0,
|
|
1647
|
+
l !== void 0 && (i.id_msg = l.id, d = !0, j(e, i));
|
|
1648
1648
|
},
|
|
1649
1649
|
(l) => {
|
|
1650
1650
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
|
|
@@ -1662,7 +1662,7 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1662
1662
|
type: "json",
|
|
1663
1663
|
onComplete(p, u, f) {
|
|
1664
1664
|
const g = p;
|
|
1665
|
-
g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id,
|
|
1665
|
+
g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id, j(e, i);
|
|
1666
1666
|
},
|
|
1667
1667
|
onFailure(p, u, f) {
|
|
1668
1668
|
const g = p;
|
|
@@ -1701,7 +1701,7 @@ function ee(e, t, s, n) {
|
|
|
1701
1701
|
});
|
|
1702
1702
|
});
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function j(e, t, s = void 0, n = void 0) {
|
|
1705
1705
|
const o = {
|
|
1706
1706
|
base: e.space,
|
|
1707
1707
|
uri: "/api/community",
|
|
@@ -1994,7 +1994,7 @@ function et(e) {
|
|
|
1994
1994
|
export {
|
|
1995
1995
|
R as UUID,
|
|
1996
1996
|
ke as _3DSpace_Create_Doc,
|
|
1997
|
-
|
|
1997
|
+
Ue as _3DSpace_bookmark_addSubsciptions,
|
|
1998
1998
|
T as _3DSpace_csrf,
|
|
1999
1999
|
v as _3DSpace_download_doc,
|
|
2000
2000
|
W as _3DSpace_download_multidoc,
|
|
@@ -2006,7 +2006,7 @@ export {
|
|
|
2006
2006
|
B as _3DSpace_get_downloadTicket_multidoc,
|
|
2007
2007
|
N as _3DSpace_get_securityContexts,
|
|
2008
2008
|
A as _3DSpace_get_ticket,
|
|
2009
|
-
|
|
2009
|
+
je as _3DSpace_lifecycle_changeRevision,
|
|
2010
2010
|
De as _3DSpace_lifecycle_changeState,
|
|
2011
2011
|
Ae as _3DSpace_lifecycle_getGraph,
|
|
2012
2012
|
$e as _3DSpace_lifecycle_getNextRevision,
|
|
@@ -2025,7 +2025,7 @@ export {
|
|
|
2025
2025
|
Ze as _3DSwym_get_findUser,
|
|
2026
2026
|
w as _3DSwym_get_version,
|
|
2027
2027
|
Ye as _3DSwym_postIdea,
|
|
2028
|
-
|
|
2028
|
+
j as _3DSwym_sendMessageData,
|
|
2029
2029
|
Se as _AppMngt_get_info_user,
|
|
2030
2030
|
he as _AppMngt_get_users,
|
|
2031
2031
|
J as _getPlateformInfos,
|