@beam3_dev/api_module 0.0.58 → 0.0.60
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 +7 -10
- 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
|
@@ -135,7 +135,6 @@ async function ue(e, t = void 0, n = void 0) {
|
|
|
135
135
|
(!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && (console.log("i3DXCompassServices", s), t(
|
|
136
136
|
s.getPlatformServices({
|
|
137
137
|
platformId: e,
|
|
138
|
-
public: !0,
|
|
139
138
|
onComplete: t,
|
|
140
139
|
onFailure: n
|
|
141
140
|
})
|
|
@@ -390,7 +389,7 @@ async function J(e, t = void 0, n = void 0, s = void 0) {
|
|
|
390
389
|
function k(e, t = void 0, n = void 0) {
|
|
391
390
|
if (e.objID && e.objID !== "") {
|
|
392
391
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
393
|
-
f(s, {
|
|
392
|
+
console.log("_3DSpace_get_csrf / url", s), f(s, {
|
|
394
393
|
onComplete(o, c, i) {
|
|
395
394
|
const a = JSON.parse(o);
|
|
396
395
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
@@ -431,7 +430,7 @@ function U(e, t = void 0, n = void 0) {
|
|
|
431
430
|
e,
|
|
432
431
|
(o) => {
|
|
433
432
|
console.log(
|
|
434
|
-
"
|
|
433
|
+
"_3DSpace_get_ticket / onComplete / ☠️ info => ",
|
|
435
434
|
o,
|
|
436
435
|
e.token
|
|
437
436
|
), f(s, {
|
|
@@ -440,9 +439,7 @@ function U(e, t = void 0, n = void 0) {
|
|
|
440
439
|
ENO_CSRF_TOKEN: e.token
|
|
441
440
|
},
|
|
442
441
|
onComplete(c) {
|
|
443
|
-
|
|
444
|
-
console.log("_3DSpace_file_url() / ☠️ info => ", i);
|
|
445
|
-
const a = i.data[0].dataelements.ticketURL;
|
|
442
|
+
const a = JSON.parse(c).data[0].dataelements.ticketURL;
|
|
446
443
|
console.log("le ticket est dans la callback"), t && t(a);
|
|
447
444
|
},
|
|
448
445
|
onFailure(c, i) {
|
|
@@ -451,7 +448,7 @@ function U(e, t = void 0, n = void 0) {
|
|
|
451
448
|
});
|
|
452
449
|
},
|
|
453
450
|
(o) => {
|
|
454
|
-
console.warn("
|
|
451
|
+
console.warn("_3DSpace_get_ticket / error => ", o), n && n(o);
|
|
455
452
|
}
|
|
456
453
|
);
|
|
457
454
|
}
|
|
@@ -683,7 +680,7 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
683
680
|
), console.log("_3DSpace_download_doc / credentials", e), U(
|
|
684
681
|
e,
|
|
685
682
|
(c) => {
|
|
686
|
-
console.
|
|
683
|
+
console.info("_3DSpace_download_doc / ticketURL ", c), console.log(e.token), f(c, {
|
|
687
684
|
headers: {
|
|
688
685
|
ENO_CSRF_TOKEN: e.token
|
|
689
686
|
},
|
|
@@ -1337,7 +1334,7 @@ function Je(e, t = "", n = void 0, s = void 0) {
|
|
|
1337
1334
|
if (t === "")
|
|
1338
1335
|
return;
|
|
1339
1336
|
const c = {
|
|
1340
|
-
uri: "/
|
|
1337
|
+
uri: "/resources/v1/modeler/documents"
|
|
1341
1338
|
}, i = {
|
|
1342
1339
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1343
1340
|
Accept: "application/json,text/javascript,*/*"
|
|
@@ -1891,12 +1888,12 @@ export {
|
|
|
1891
1888
|
W as _3DSpace_download_multidoc,
|
|
1892
1889
|
G as _3DSpace_file_update,
|
|
1893
1890
|
K as _3DSpace_file_update_csr,
|
|
1894
|
-
U as _3DSpace_file_url,
|
|
1895
1891
|
be as _3DSpace_file_url_csr,
|
|
1896
1892
|
k as _3DSpace_get_csrf,
|
|
1897
1893
|
J as _3DSpace_get_docInfo,
|
|
1898
1894
|
X as _3DSpace_get_downloadTicket_multidoc,
|
|
1899
1895
|
b as _3DSpace_get_securityContexts,
|
|
1896
|
+
U as _3DSpace_get_ticket,
|
|
1900
1897
|
$e as _3DSpace_lifecycle_changeRevision,
|
|
1901
1898
|
De as _3DSpace_lifecycle_changeState,
|
|
1902
1899
|
Fe as _3DSpace_lifecycle_getGraph,
|