@beam3_dev/api_module 0.0.97 → 0.0.99
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 +12 -14
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +3 -3
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -441,7 +441,7 @@ function T(e, t = void 0, s = void 0) {
|
|
|
441
441
|
} else
|
|
442
442
|
s && s("ERROR : url du 3DSpace non défini.");
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function A(e, t = void 0, s = void 0) {
|
|
445
445
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
446
446
|
k(
|
|
447
447
|
e,
|
|
@@ -693,7 +693,7 @@ async function v(e, t = void 0, s = void 0) {
|
|
|
693
693
|
), console.warn(
|
|
694
694
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
695
695
|
)), new Promise((n, o) => {
|
|
696
|
-
|
|
696
|
+
A(
|
|
697
697
|
e,
|
|
698
698
|
(r) => {
|
|
699
699
|
m(r, {
|
|
@@ -877,7 +877,7 @@ function De(e, t, s, n = void 0, o = void 0) {
|
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Ae(e, t, s = void 0, n = void 0) {
|
|
881
881
|
return new Promise((o) => {
|
|
882
882
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
883
883
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -916,7 +916,7 @@ function $e(e, t, s = void 0, n = void 0) {
|
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function $e(e, t, s = void 0, n = void 0) {
|
|
920
920
|
return new Promise((o) => {
|
|
921
921
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
922
922
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1031,12 +1031,10 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
1031
1031
|
if (Array.isArray(JSON.parse(a))) {
|
|
1032
1032
|
const i = JSON.parse(a);
|
|
1033
1033
|
console.log("serviceId=3dsearch", i);
|
|
1034
|
-
const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest
|
|
1034
|
+
const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
1035
1035
|
m(d, {
|
|
1036
1036
|
method: "POST",
|
|
1037
1037
|
headers: {
|
|
1038
|
-
securitycontext: "ctx::" + e.ctx,
|
|
1039
|
-
ENO_CSRF_TOKEN: e.token,
|
|
1040
1038
|
Accept: "application/json",
|
|
1041
1039
|
"Content-Type": "application/json"
|
|
1042
1040
|
},
|
|
@@ -1129,7 +1127,7 @@ function Re(e, t = void 0, s = void 0) {
|
|
|
1129
1127
|
});
|
|
1130
1128
|
}
|
|
1131
1129
|
function ve(e, t, s, n) {
|
|
1132
|
-
|
|
1130
|
+
A(
|
|
1133
1131
|
e.space,
|
|
1134
1132
|
t,
|
|
1135
1133
|
(o) => {
|
|
@@ -1147,7 +1145,7 @@ function ve(e, t, s, n) {
|
|
|
1147
1145
|
}
|
|
1148
1146
|
async function Ie(e, t, s = void 0, n = void 0) {
|
|
1149
1147
|
return new Promise((o) => {
|
|
1150
|
-
|
|
1148
|
+
A(e, t, (r) => {
|
|
1151
1149
|
m(r, {
|
|
1152
1150
|
onComplete: (c, a, i) => (o(JSON.parse(c)), s && s(JSON.parse(c), a, i), o),
|
|
1153
1151
|
onFailure: (c, a, i) => {
|
|
@@ -1181,7 +1179,7 @@ function xe(e, t, s, n = void 0, o = void 0) {
|
|
|
1181
1179
|
);
|
|
1182
1180
|
}
|
|
1183
1181
|
let I, x;
|
|
1184
|
-
const
|
|
1182
|
+
const $ = [];
|
|
1185
1183
|
async function Pe(e, t = void 0, s = void 0) {
|
|
1186
1184
|
e.objID && e.objID !== "" ? k(
|
|
1187
1185
|
e,
|
|
@@ -1235,7 +1233,7 @@ function Y(e, t, s = void 0, n = void 0) {
|
|
|
1235
1233
|
I,
|
|
1236
1234
|
(o) => {
|
|
1237
1235
|
const r = [...t];
|
|
1238
|
-
r.find((c) => c.objectID === o.objectId).data = o.data, x = r,
|
|
1236
|
+
r.find((c) => c.objectID === o.objectId).data = o.data, x = r, $.push(o.data), s && s($);
|
|
1239
1237
|
},
|
|
1240
1238
|
(o) => {
|
|
1241
1239
|
n && (n(o), console.log(o));
|
|
@@ -2006,11 +2004,11 @@ export {
|
|
|
2006
2004
|
K as _3DSpace_get_docInfo,
|
|
2007
2005
|
B as _3DSpace_get_downloadTicket_multidoc,
|
|
2008
2006
|
N as _3DSpace_get_securityContexts,
|
|
2009
|
-
|
|
2007
|
+
A as _3DSpace_get_ticket,
|
|
2010
2008
|
je as _3DSpace_lifecycle_changeRevision,
|
|
2011
2009
|
De as _3DSpace_lifecycle_changeState,
|
|
2012
|
-
|
|
2013
|
-
|
|
2010
|
+
Ae as _3DSpace_lifecycle_getGraph,
|
|
2011
|
+
$e as _3DSpace_lifecycle_getNextRevision,
|
|
2014
2012
|
Fe as _3DSpace_lifecycle_getNextStates,
|
|
2015
2013
|
Be as _3DSwym_buildDirectMessage,
|
|
2016
2014
|
qe as _3DSwym_deleteIdea,
|