@beam3_dev/api_module 0.0.121 → 0.0.123
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 +1 -1
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
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
|
|
486
|
+
function A(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
|
-
|
|
738
|
+
A(
|
|
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
|
|
843
|
+
function Ae(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 De(e, t, n = void 0, s = void 0) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function $e(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`;
|
|
@@ -919,7 +919,7 @@ function Ae(e, t, n, s = void 0, i = void 0) {
|
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function De(e, t, n = void 0, s = void 0) {
|
|
923
923
|
return new Promise((i) => {
|
|
924
924
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
925
925
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -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
|
-
|
|
1095
|
+
A(
|
|
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
|
-
|
|
1113
|
+
A(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 $ = [];
|
|
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,
|
|
1201
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, x = r, $.push(i.data), n && n($);
|
|
1202
1202
|
},
|
|
1203
1203
|
(i) => {
|
|
1204
1204
|
s && (s(i), console.log(i));
|
|
@@ -1608,7 +1608,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1608
1608
|
te(
|
|
1609
1609
|
a.users,
|
|
1610
1610
|
(l) => {
|
|
1611
|
-
l !== void 0 && (c.id_msg = l.id, d = !0,
|
|
1611
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, D(e, c));
|
|
1612
1612
|
},
|
|
1613
1613
|
(l) => {
|
|
1614
1614
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
@@ -1626,7 +1626,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1626
1626
|
type: "json",
|
|
1627
1627
|
onComplete(p, u, m) {
|
|
1628
1628
|
const g = p;
|
|
1629
|
-
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id,
|
|
1629
|
+
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, D(e, c);
|
|
1630
1630
|
},
|
|
1631
1631
|
onFailure(p, u, m) {
|
|
1632
1632
|
const g = p;
|
|
@@ -1665,7 +1665,7 @@ function te(e, t, n, s) {
|
|
|
1665
1665
|
});
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function D(e, t, n = void 0, s = void 0) {
|
|
1669
1669
|
const i = {
|
|
1670
1670
|
base: e.space,
|
|
1671
1671
|
uri: "/api/community",
|
|
@@ -1963,8 +1963,8 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1963
1963
|
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
1964
1964
|
await fetch(c, {
|
|
1965
1965
|
method: "POST"
|
|
1966
|
-
}).then(
|
|
1967
|
-
console.log("
|
|
1966
|
+
}).then((d) => d.json()).then((d) => {
|
|
1967
|
+
console.log("data", d), t && t(d);
|
|
1968
1968
|
});
|
|
1969
1969
|
},
|
|
1970
1970
|
onFailure(a) {
|
|
@@ -2071,12 +2071,12 @@ export {
|
|
|
2071
2071
|
X as _3DSpace_get_docInfo,
|
|
2072
2072
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2073
2073
|
b as _3DSpace_get_securityContexts,
|
|
2074
|
-
|
|
2074
|
+
A as _3DSpace_get_ticket,
|
|
2075
2075
|
je as _3DSpace_lifecycle_changeRevision,
|
|
2076
|
-
|
|
2077
|
-
|
|
2076
|
+
$e as _3DSpace_lifecycle_changeState,
|
|
2077
|
+
De as _3DSpace_lifecycle_getGraph,
|
|
2078
2078
|
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
2079
|
-
|
|
2079
|
+
Ae as _3DSpace_lifecycle_getNextStates,
|
|
2080
2080
|
qe as _3DSwym_buildDirectMessage,
|
|
2081
2081
|
ze as _3DSwym_deleteIdea,
|
|
2082
2082
|
te as _3DSwym_findCommunityToInstantMSG,
|
|
@@ -2091,7 +2091,7 @@ export {
|
|
|
2091
2091
|
tt as _3DSwym_get_findUser,
|
|
2092
2092
|
w as _3DSwym_get_version,
|
|
2093
2093
|
He as _3DSwym_postIdea,
|
|
2094
|
-
|
|
2094
|
+
D as _3DSwym_sendMessageData,
|
|
2095
2095
|
ye as _AppMngt_get_info_user,
|
|
2096
2096
|
_e as _AppMngt_get_users,
|
|
2097
2097
|
nt as _Iterop_Auth_CAS,
|