@beam3_dev/api_module 0.0.59 → 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 CHANGED
@@ -430,7 +430,7 @@ function U(e, t = void 0, n = void 0) {
430
430
  e,
431
431
  (o) => {
432
432
  console.log(
433
- "_3DSpace_file_url / onComplete / ☠️ info => ",
433
+ "_3DSpace_get_ticket / onComplete / ☠️ info => ",
434
434
  o,
435
435
  e.token
436
436
  ), f(s, {
@@ -439,9 +439,7 @@ function U(e, t = void 0, n = void 0) {
439
439
  ENO_CSRF_TOKEN: e.token
440
440
  },
441
441
  onComplete(c) {
442
- let i = JSON.parse(c);
443
- console.log("_3DSpace_file_url() / ☠️ info => ", i);
444
- const a = i.data[0].dataelements.ticketURL;
442
+ const a = JSON.parse(c).data[0].dataelements.ticketURL;
445
443
  console.log("le ticket est dans la callback"), t && t(a);
446
444
  },
447
445
  onFailure(c, i) {
@@ -450,7 +448,7 @@ function U(e, t = void 0, n = void 0) {
450
448
  });
451
449
  },
452
450
  (o) => {
453
- console.warn("_3DSpace_file_url / error => ", o), n && n(o);
451
+ console.warn("_3DSpace_get_ticket / error => ", o), n && n(o);
454
452
  }
455
453
  );
456
454
  }
@@ -682,7 +680,7 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
682
680
  ), console.log("_3DSpace_download_doc / credentials", e), U(
683
681
  e,
684
682
  (c) => {
685
- console.log("_3DSpace_download_doc / ticketURL ", c), console.log(e.token), f(c, {
683
+ console.info("_3DSpace_download_doc / ticketURL ", c), console.log(e.token), f(c, {
686
684
  headers: {
687
685
  ENO_CSRF_TOKEN: e.token
688
686
  },
@@ -1890,12 +1888,12 @@ export {
1890
1888
  W as _3DSpace_download_multidoc,
1891
1889
  G as _3DSpace_file_update,
1892
1890
  K as _3DSpace_file_update_csr,
1893
- U as _3DSpace_file_url,
1894
1891
  be as _3DSpace_file_url_csr,
1895
1892
  k as _3DSpace_get_csrf,
1896
1893
  J as _3DSpace_get_docInfo,
1897
1894
  X as _3DSpace_get_downloadTicket_multidoc,
1898
1895
  b as _3DSpace_get_securityContexts,
1896
+ U as _3DSpace_get_ticket,
1899
1897
  $e as _3DSpace_lifecycle_changeRevision,
1900
1898
  De as _3DSpace_lifecycle_changeState,
1901
1899
  Fe as _3DSpace_lifecycle_getGraph,