@beam3_dev/api_module 0.0.242 → 0.0.244

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
@@ -284,7 +284,7 @@ function Fe(e, t, n = void 0, s = void 0) {
284
284
  }
285
285
  });
286
286
  }
287
- const A = {
287
+ const k = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
@@ -305,7 +305,7 @@ function je(e, t, n = void 0, s = void 0) {
305
305
  };
306
306
  m(a, {
307
307
  method: "POST",
308
- headers: A,
308
+ headers: k,
309
309
  data: JSON.stringify(c),
310
310
  onComplete(d) {
311
311
  n && n(JSON.parse(d));
@@ -317,7 +317,7 @@ function je(e, t, n = void 0, s = void 0) {
317
317
  }
318
318
  });
319
319
  }
320
- function Ae(e, t, n = void 0, s = void 0) {
320
+ function ke(e, t, n = void 0, s = void 0) {
321
321
  const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
322
322
  m(d, {
323
323
  opts: {
@@ -352,7 +352,7 @@ function q(e, t = void 0, n = void 0) {
352
352
  }
353
353
  });
354
354
  }
355
- function ke(e, t = void 0, n = void 0) {
355
+ function Ae(e, t = void 0, n = void 0) {
356
356
  const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
357
357
  "Content-Type": "application/json",
358
358
  Accept: "application/json,text/javascript,*/*"
@@ -400,7 +400,7 @@ function xe(e, t, n, s = void 0, i = void 0) {
400
400
  OPTsTenant: `tenant=dstenant:${o}`
401
401
  }, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
402
402
  m(d, {
403
- headers: A,
403
+ headers: k,
404
404
  method: "PATCH",
405
405
  data: u,
406
406
  type: "json",
@@ -416,7 +416,7 @@ function Pe(e, t, n, s = void 0, i = void 0) {
416
416
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
417
417
  m(a, {
418
418
  method: "PATCH",
419
- headers: A,
419
+ headers: k,
420
420
  data: JSON.stringify(n),
421
421
  type: "json",
422
422
  onComplete(d) {
@@ -582,7 +582,7 @@ function O(e, t = void 0, n = void 0) {
582
582
  } else
583
583
  n && n("ERROR : url du 3DSpace non défini.");
584
584
  }
585
- function k(e, t = void 0, n = void 0) {
585
+ function A(e, t = void 0, n = void 0) {
586
586
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
587
  F(
588
588
  e,
@@ -912,7 +912,7 @@ async function L(e, t = void 0, n = void 0) {
912
912
  console.log("☠️ error => ", s);
913
913
  }
914
914
  ), new Promise((s, i) => {
915
- k(
915
+ A(
916
916
  e,
917
917
  (r) => {
918
918
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
@@ -1292,7 +1292,7 @@ function Ye(e, t = void 0, n = void 0) {
1292
1292
  });
1293
1293
  }
1294
1294
  function qe(e, t, n, s) {
1295
- k(
1295
+ A(
1296
1296
  e.space,
1297
1297
  t,
1298
1298
  (i) => {
@@ -1310,7 +1310,7 @@ function qe(e, t, n, s) {
1310
1310
  }
1311
1311
  async function He(e, t, n = void 0, s = void 0) {
1312
1312
  return new Promise((i) => {
1313
- k(e, t, (r) => {
1313
+ A(e, t, (r) => {
1314
1314
  m(r, {
1315
1315
  onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1316
1316
  onFailure: (o, a, c) => {
@@ -2353,7 +2353,9 @@ function _t(e, t = void 0, n = void 0) {
2353
2353
  }
2354
2354
  function wt(e, t = void 0, n = void 0) {
2355
2355
  e.tenant && b(e, (s) => {
2356
- const i = s.services.find((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2356
+ const i = s.services.find(
2357
+ (a) => a.id === "3dpassport"
2358
+ )?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2357
2359
  m(o, {
2358
2360
  async onComplete(a) {
2359
2361
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
@@ -2384,9 +2386,12 @@ function Ct(e, t = void 0, n = void 0) {
2384
2386
  async function Tt(e, t, n = void 0, s = void 0) {
2385
2387
  e.tenant && b(e, (i) => {
2386
2388
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2387
- fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2388
- method: "POST"
2389
- }).then((c) => c.json()).then((c) => {
2389
+ fetch(
2390
+ `https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`,
2391
+ {
2392
+ method: "POST"
2393
+ }
2394
+ ).then((c) => c.json()).then((c) => {
2390
2395
  n && n(c);
2391
2396
  }).catch((c) => {
2392
2397
  s && s(c);
@@ -2394,23 +2399,29 @@ async function Tt(e, t, n = void 0, s = void 0) {
2394
2399
  });
2395
2400
  }
2396
2401
  async function bt(e, t, n = void 0, s = void 0) {
2397
- e.tenant && b(e, (i) => {
2398
- const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2399
- fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2400
- method: "GET"
2401
- }).then((c) => c.json()).then((c) => {
2402
- n && n(c);
2403
- }).catch((c) => {
2404
- s && s(c);
2402
+ if (e.tenant) {
2403
+ const i = e.tenant.toLowerCase();
2404
+ fetch(
2405
+ `https://api.uixhome.fr/${i}/iterop/repository/data/tables?t=${t}`,
2406
+ {
2407
+ method: "GET"
2408
+ }
2409
+ ).then((r) => r.json()).then((r) => {
2410
+ n && n(r);
2411
+ }).catch((r) => {
2412
+ s && s(r);
2405
2413
  });
2406
- });
2414
+ }
2407
2415
  }
2408
2416
  async function Ot(e, t, n, s = void 0, i = void 0) {
2409
2417
  if (e.tenant) {
2410
2418
  const r = e.tenant.toLowerCase();
2411
- fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${n}?t=${t}`, {
2412
- method: "POST"
2413
- }).then((o) => o.json()).then((o) => {
2419
+ fetch(
2420
+ `https://api.uixhome.fr/${r}/iterop/businesstable/one/${n}?t=${t}`,
2421
+ {
2422
+ method: "POST"
2423
+ }
2424
+ ).then((o) => o.json()).then((o) => {
2414
2425
  s && s(o);
2415
2426
  }).catch((o) => {
2416
2427
  i && i(o);
@@ -2420,9 +2431,12 @@ async function Ot(e, t, n, s = void 0, i = void 0) {
2420
2431
  async function $t(e, t, n, s = void 0, i = void 0) {
2421
2432
  if (e.tenant) {
2422
2433
  const r = e.tenant.toLowerCase();
2423
- fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`, {
2424
- method: "POST"
2425
- }).then((o) => o.json()).then((o) => {
2434
+ fetch(
2435
+ `https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`,
2436
+ {
2437
+ method: "POST"
2438
+ }
2439
+ ).then((o) => o.json()).then((o) => {
2426
2440
  s && s(o);
2427
2441
  }).catch((o) => {
2428
2442
  i && i(o);
@@ -2433,9 +2447,12 @@ async function Nt(e, t, n, s, i = void 0, r = void 0) {
2433
2447
  e.tenant && b(e, (o) => {
2434
2448
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2435
2449
  const a = e.tenant.toLowerCase();
2436
- fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`, {
2437
- method: "POST"
2438
- }).then((c) => c.json()).then((c) => {
2450
+ fetch(
2451
+ `https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
2452
+ {
2453
+ method: "POST"
2454
+ }
2455
+ ).then((c) => c.json()).then((c) => {
2439
2456
  i && i(c);
2440
2457
  }).catch((c) => {
2441
2458
  r && r(c, n, s);
@@ -2510,7 +2527,7 @@ async function jt(e, t, n, s = void 0, i = void 0) {
2510
2527
  });
2511
2528
  });
2512
2529
  }
2513
- async function At(e, t, n, s, i, r = void 0, o = void 0) {
2530
+ async function kt(e, t, n, s, i, r = void 0, o = void 0) {
2514
2531
  e.tenant && b(e, (a) => {
2515
2532
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2516
2533
  const c = e.tenant.toLowerCase();
@@ -2526,7 +2543,7 @@ async function At(e, t, n, s, i, r = void 0, o = void 0) {
2526
2543
  });
2527
2544
  });
2528
2545
  }
2529
- async function kt(e, t, n, s, i = void 0, r = void 0) {
2546
+ async function At(e, t, n, s, i = void 0, r = void 0) {
2530
2547
  e.tenant && b(e, (o) => {
2531
2548
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2532
2549
  const a = e.tenant.toLowerCase();
@@ -2660,7 +2677,7 @@ export {
2660
2677
  ae as _3DSpace_get_downloadTicket_multidoc,
2661
2678
  De as _3DSpace_get_multiDocInfo,
2662
2679
  j as _3DSpace_get_securityContexts,
2663
- k as _3DSpace_get_ticket,
2680
+ A as _3DSpace_get_ticket,
2664
2681
  We as _3DSpace_lifecycle_changeRevision,
2665
2682
  Ke as _3DSpace_lifecycle_changeState,
2666
2683
  Ee as _3DSpace_lifecycle_getGraph,
@@ -2692,8 +2709,8 @@ export {
2692
2709
  jt as _Iterop_GetOneDependencyTable,
2693
2710
  Ut as _Iterop_GetOneList,
2694
2711
  Tt as _Iterop_ListUsers,
2695
- At as _Iterop_PatchDependencyTable,
2696
- kt as _Iterop_PutDependencyTable,
2712
+ kt as _Iterop_PatchDependencyTable,
2713
+ At as _Iterop_PutDependencyTable,
2697
2714
  It as _Iterop_businessTableSearchInRows,
2698
2715
  bt as _Iterop_getAllBusinessTables,
2699
2716
  Ot as _Iterop_getOneBusinessTable,
@@ -2721,14 +2738,14 @@ export {
2721
2738
  Ye as getAllContextSecurity,
2722
2739
  H as getCSRFToken,
2723
2740
  Se as getCommunes,
2724
- Ae as getComplementUG,
2741
+ ke as getComplementUG,
2725
2742
  qe as getDataFrom3DSpace,
2726
2743
  we as getDataFromGouvFr,
2727
2744
  Ze as getDatasByTenant,
2728
2745
  et as getDatasFrom3DSpace,
2729
2746
  He as getDownloadDocument,
2730
2747
  st as getInfoDocTags,
2731
- ke as getUserGroupsList,
2748
+ Ae as getUserGroupsList,
2732
2749
  q as getUsersGroupRules,
2733
2750
  Qe as get_3DSpace_csrf,
2734
2751
  xe as patchUserGroups,