@beam3_dev/api_module 0.0.103 → 0.0.105
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 +32 -31
- 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,7 +1,7 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
2
|
import { DateTime as N } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
3
|
+
import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function j() {
|
|
5
5
|
return M();
|
|
6
6
|
}
|
|
7
7
|
const L = {
|
|
@@ -121,7 +121,7 @@ function fe(e, t = void 0) {
|
|
|
121
121
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
122
122
|
let s;
|
|
123
123
|
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: U.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
@@ -137,7 +137,7 @@ async function ge(e, t = void 0, n = void 0) {
|
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = U.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -168,8 +168,8 @@ function E(e, t = void 0, n = void 0) {
|
|
|
168
168
|
onComplete(o) {
|
|
169
169
|
const r = JSON.parse(o);
|
|
170
170
|
if (console.log("_getServiceUrl", r), r && "platforms" in r) {
|
|
171
|
-
const i = r.find((a) => {
|
|
172
|
-
a.id, e.tenant;
|
|
171
|
+
const i = r.platforms.find((a) => {
|
|
172
|
+
a.id, e.tenant.toUpperCase();
|
|
173
173
|
});
|
|
174
174
|
t && t(i);
|
|
175
175
|
}
|
|
@@ -482,7 +482,7 @@ function T(e, t = void 0, n = void 0) {
|
|
|
482
482
|
} else
|
|
483
483
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function A(e, t = void 0, n = void 0) {
|
|
486
486
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
487
487
|
k(
|
|
488
488
|
e,
|
|
@@ -644,7 +644,7 @@ async function ve(e, t, n, s, o = void 0, r = void 0) {
|
|
|
644
644
|
}
|
|
645
645
|
}]
|
|
646
646
|
},
|
|
647
|
-
tempId:
|
|
647
|
+
tempId: j()
|
|
648
648
|
}]
|
|
649
649
|
}),
|
|
650
650
|
type: "json",
|
|
@@ -734,7 +734,7 @@ async function I(e, t = void 0, n = void 0) {
|
|
|
734
734
|
), console.warn(
|
|
735
735
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
736
736
|
)), new Promise((s, o) => {
|
|
737
|
-
|
|
737
|
+
A(
|
|
738
738
|
e,
|
|
739
739
|
(r) => {
|
|
740
740
|
f(r, {
|
|
@@ -839,7 +839,7 @@ function Y(e, t, n = void 0, s = void 0, o = void 0) {
|
|
|
839
839
|
}
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Ae(e, t, n = void 0, s = void 0) {
|
|
843
843
|
return new Promise((o) => {
|
|
844
844
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
845
845
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -878,7 +878,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
878
878
|
}
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function $e(e, t, n, s = void 0, o = void 0) {
|
|
882
882
|
return new Promise((r) => {
|
|
883
883
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
884
884
|
const i = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -918,7 +918,7 @@ function Ae(e, t, n, s = void 0, o = void 0) {
|
|
|
918
918
|
}
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function De(e, t, n = void 0, s = void 0) {
|
|
922
922
|
return new Promise((o) => {
|
|
923
923
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
924
924
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -957,7 +957,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
957
957
|
}
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function Ue(e, t, n = void 0, s = void 0) {
|
|
961
961
|
return new Promise((o) => {
|
|
962
962
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
963
963
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1002,7 +1002,7 @@ function je(e, t, n = void 0, s = void 0) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function je(e, t, n, s = void 0, o = void 0) {
|
|
1006
1006
|
return new Promise((r) => {
|
|
1007
1007
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1008
1008
|
const i = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1091,7 +1091,7 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1091
1091
|
});
|
|
1092
1092
|
}
|
|
1093
1093
|
function Pe(e, t, n, s) {
|
|
1094
|
-
|
|
1094
|
+
A(
|
|
1095
1095
|
e.space,
|
|
1096
1096
|
t,
|
|
1097
1097
|
(o) => {
|
|
@@ -1109,7 +1109,7 @@ function Pe(e, t, n, s) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
async function xe(e, t, n = void 0, s = void 0) {
|
|
1111
1111
|
return new Promise((o) => {
|
|
1112
|
-
|
|
1112
|
+
A(e, t, (r) => {
|
|
1113
1113
|
f(r, {
|
|
1114
1114
|
onComplete: (i, a, c) => (o(JSON.parse(i)), n && n(JSON.parse(i), a, c), o),
|
|
1115
1115
|
onFailure: (i, a, c) => {
|
|
@@ -1143,7 +1143,7 @@ function Me(e, t, n, s = void 0, o = void 0) {
|
|
|
1143
1143
|
);
|
|
1144
1144
|
}
|
|
1145
1145
|
let R, P;
|
|
1146
|
-
const
|
|
1146
|
+
const $ = [];
|
|
1147
1147
|
async function Le(e, t = void 0, n = void 0) {
|
|
1148
1148
|
e.objID && e.objID !== "" ? k(
|
|
1149
1149
|
e,
|
|
@@ -1197,7 +1197,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1197
1197
|
R,
|
|
1198
1198
|
(o) => {
|
|
1199
1199
|
const r = [...t];
|
|
1200
|
-
r.find((i) => i.objectID === o.objectId).data = o.data, P = r,
|
|
1200
|
+
r.find((i) => i.objectID === o.objectId).data = o.data, P = r, $.push(o.data), n && n($);
|
|
1201
1201
|
},
|
|
1202
1202
|
(o) => {
|
|
1203
1203
|
s && (s(o), console.log(o));
|
|
@@ -1292,7 +1292,7 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1292
1292
|
}, i = `${r.baseUrl}${r.uri}`, a = {
|
|
1293
1293
|
"Content-Type": "application/json",
|
|
1294
1294
|
Accept: "application/json,text/javascript,*/*"
|
|
1295
|
-
}, c =
|
|
1295
|
+
}, c = j(), d = {
|
|
1296
1296
|
with_indexing_date: !0,
|
|
1297
1297
|
with_synthesis: !0,
|
|
1298
1298
|
with_nls: !1,
|
|
@@ -1607,7 +1607,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1607
1607
|
te(
|
|
1608
1608
|
a.users,
|
|
1609
1609
|
(l) => {
|
|
1610
|
-
l !== void 0 && (c.id_msg = l.id, d = !0,
|
|
1610
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, D(e, c));
|
|
1611
1611
|
},
|
|
1612
1612
|
(l) => {
|
|
1613
1613
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
@@ -1625,7 +1625,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1625
1625
|
type: "json",
|
|
1626
1626
|
onComplete(p, u, m) {
|
|
1627
1627
|
const g = p;
|
|
1628
|
-
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id,
|
|
1628
|
+
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, D(e, c);
|
|
1629
1629
|
},
|
|
1630
1630
|
onFailure(p, u, m) {
|
|
1631
1631
|
const g = p;
|
|
@@ -1664,7 +1664,7 @@ function te(e, t, n, s) {
|
|
|
1664
1664
|
});
|
|
1665
1665
|
});
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function D(e, t, n = void 0, s = void 0) {
|
|
1668
1668
|
const o = {
|
|
1669
1669
|
base: e.space,
|
|
1670
1670
|
uri: "/api/community",
|
|
@@ -1952,10 +1952,11 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
function nt(e, t = void 0, n = void 0) {
|
|
1954
1954
|
e.tenant && E(e, (s) => {
|
|
1955
|
+
console.log("serviceUrls", s);
|
|
1955
1956
|
const o = s.find((a) => a.id === "3dpassport")?.url, r = s.find((a) => a.id === "businessprocess")?.url + "/api/v2", i = `${o}/login/?service=${r}/auth/cas`;
|
|
1956
1957
|
f(i, {
|
|
1957
1958
|
onComplete(a, c) {
|
|
1958
|
-
console.log("response", a), console.log("headers", c);
|
|
1959
|
+
console.log("response", a), console.log("headers", c), t && t(c);
|
|
1959
1960
|
},
|
|
1960
1961
|
onFailure(a) {
|
|
1961
1962
|
n && n(a);
|
|
@@ -2047,7 +2048,7 @@ function at(e, t = void 0, n = void 0) {
|
|
|
2047
2048
|
});
|
|
2048
2049
|
}
|
|
2049
2050
|
export {
|
|
2050
|
-
|
|
2051
|
+
j as UUID,
|
|
2051
2052
|
at as _3DSearch_usersGroup,
|
|
2052
2053
|
ve as _3DSpace_Create_Doc,
|
|
2053
2054
|
Ie as _3DSpace_bookmark_addSubsciptions,
|
|
@@ -2061,12 +2062,12 @@ export {
|
|
|
2061
2062
|
X as _3DSpace_get_docInfo,
|
|
2062
2063
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2063
2064
|
b as _3DSpace_get_securityContexts,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2065
|
+
A as _3DSpace_get_ticket,
|
|
2066
|
+
je as _3DSpace_lifecycle_changeRevision,
|
|
2067
|
+
$e as _3DSpace_lifecycle_changeState,
|
|
2068
|
+
De as _3DSpace_lifecycle_getGraph,
|
|
2069
|
+
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
2070
|
+
Ae as _3DSpace_lifecycle_getNextStates,
|
|
2070
2071
|
qe as _3DSwym_buildDirectMessage,
|
|
2071
2072
|
ze as _3DSwym_deleteIdea,
|
|
2072
2073
|
te as _3DSwym_findCommunityToInstantMSG,
|
|
@@ -2081,7 +2082,7 @@ export {
|
|
|
2081
2082
|
tt as _3DSwym_get_findUser,
|
|
2082
2083
|
w as _3DSwym_get_version,
|
|
2083
2084
|
He as _3DSwym_postIdea,
|
|
2084
|
-
|
|
2085
|
+
D as _3DSwym_sendMessageData,
|
|
2085
2086
|
ye as _AppMngt_get_info_user,
|
|
2086
2087
|
_e as _AppMngt_get_users,
|
|
2087
2088
|
nt as _Iterop_Auth_CAS,
|