@beam3_dev/api_module 0.0.45 → 0.0.47
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 +4 -7
- 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
|
@@ -446,14 +446,14 @@ function D(e, t, n = void 0, s = void 0) {
|
|
|
446
446
|
}
|
|
447
447
|
function be(e, t, n, s = void 0, i = void 0) {
|
|
448
448
|
const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
449
|
-
f(c, {
|
|
449
|
+
n || (n = e.token), f(c, {
|
|
450
450
|
method: "PUT",
|
|
451
451
|
headers: {
|
|
452
452
|
ENO_CSRF_TOKEN: n
|
|
453
453
|
},
|
|
454
454
|
onComplete(o) {
|
|
455
455
|
let a = JSON.parse(o);
|
|
456
|
-
if (a.success === !0)
|
|
456
|
+
if (console.log("☠️ info => ", a), a.success === !0)
|
|
457
457
|
try {
|
|
458
458
|
const r = a.data[0].dataelements.ticketURL;
|
|
459
459
|
s && s(r);
|
|
@@ -669,14 +669,11 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
669
669
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
670
670
|
);
|
|
671
671
|
try {
|
|
672
|
-
console.log("credentials", e), D(
|
|
672
|
+
console.log("_3DSpace_download_doc / credentials", e), D(
|
|
673
673
|
e,
|
|
674
674
|
i,
|
|
675
675
|
(c) => {
|
|
676
|
-
|
|
677
|
-
"_3dspace_download_doc / _3DSpace_file_url / response ",
|
|
678
|
-
c
|
|
679
|
-
), f(c, {
|
|
676
|
+
f(c, {
|
|
680
677
|
headers: {
|
|
681
678
|
ENO_CSRF_TOKEN: e.token
|
|
682
679
|
},
|