@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 +56 -39
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +6 -6
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
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
|
|
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:
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
2388
|
-
|
|
2389
|
-
|
|
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
|
|
2398
|
-
const
|
|
2399
|
-
fetch(
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
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(
|
|
2412
|
-
|
|
2413
|
-
|
|
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(
|
|
2424
|
-
|
|
2425
|
-
|
|
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(
|
|
2437
|
-
|
|
2438
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
2696
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2748
|
+
Ae as getUserGroupsList,
|
|
2732
2749
|
q as getUsersGroupRules,
|
|
2733
2750
|
Qe as get_3DSpace_csrf,
|
|
2734
2751
|
xe as patchUserGroups,
|