@beam3_dev/api_module 0.0.103 → 0.0.104
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 +19 -19
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +2 -2
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -168,7 +168,7 @@ 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) => {
|
|
171
|
+
const i = r.platforms.find((a) => {
|
|
172
172
|
a.id, e.tenant;
|
|
173
173
|
});
|
|
174
174
|
t && t(i);
|
|
@@ -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,
|
|
@@ -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}`;
|
|
@@ -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));
|
|
@@ -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",
|
|
@@ -1955,7 +1955,7 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1955
1955
|
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
1956
|
f(i, {
|
|
1957
1957
|
onComplete(a, c) {
|
|
1958
|
-
console.log("response", a), console.log("headers", c);
|
|
1958
|
+
console.log("response", a), console.log("headers", c), t && t(c);
|
|
1959
1959
|
},
|
|
1960
1960
|
onFailure(a) {
|
|
1961
1961
|
n && n(a);
|
|
@@ -2061,12 +2061,12 @@ export {
|
|
|
2061
2061
|
X as _3DSpace_get_docInfo,
|
|
2062
2062
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2063
2063
|
b as _3DSpace_get_securityContexts,
|
|
2064
|
-
|
|
2064
|
+
A as _3DSpace_get_ticket,
|
|
2065
2065
|
Ue as _3DSpace_lifecycle_changeRevision,
|
|
2066
|
-
|
|
2067
|
-
|
|
2066
|
+
$e as _3DSpace_lifecycle_changeState,
|
|
2067
|
+
De as _3DSpace_lifecycle_getGraph,
|
|
2068
2068
|
je as _3DSpace_lifecycle_getNextRevision,
|
|
2069
|
-
|
|
2069
|
+
Ae as _3DSpace_lifecycle_getNextStates,
|
|
2070
2070
|
qe as _3DSwym_buildDirectMessage,
|
|
2071
2071
|
ze as _3DSwym_deleteIdea,
|
|
2072
2072
|
te as _3DSwym_findCommunityToInstantMSG,
|
|
@@ -2081,7 +2081,7 @@ export {
|
|
|
2081
2081
|
tt as _3DSwym_get_findUser,
|
|
2082
2082
|
w as _3DSwym_get_version,
|
|
2083
2083
|
He as _3DSwym_postIdea,
|
|
2084
|
-
|
|
2084
|
+
D as _3DSwym_sendMessageData,
|
|
2085
2085
|
ye as _AppMngt_get_info_user,
|
|
2086
2086
|
_e as _AppMngt_get_users,
|
|
2087
2087
|
nt as _Iterop_Auth_CAS,
|