@beam3_dev/api_module 0.0.266 → 0.0.268
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 +44 -40
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +7 -7
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -271,7 +271,7 @@ function Fe(e, t = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Re(e, t, s = void 0, n = void 0) {
|
|
275
275
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
277
|
onComplete(r, o, a) {
|
|
@@ -284,11 +284,11 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const U = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Ue(e, t, s = void 0, n = void 0) {
|
|
292
292
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
@@ -305,7 +305,7 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: U,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
s && s(JSON.parse(d));
|
|
@@ -352,7 +352,7 @@ function q(e, t = void 0, s = void 0) {
|
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function je(e, t = void 0, s = void 0) {
|
|
356
356
|
const { space: n, currentUser: i } = e, a = `${n}/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 Ae(e, t, s, n = void 0, i = void 0) {
|
|
|
400
400
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
401
|
}, c = s, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
|
-
headers:
|
|
403
|
+
headers: U,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: u,
|
|
406
406
|
type: "json",
|
|
@@ -416,7 +416,7 @@ function xe(e, t, s, n = 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: U,
|
|
420
420
|
data: JSON.stringify(s),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -427,7 +427,7 @@ function xe(e, t, s, n = void 0, i = void 0) {
|
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function De(e, t, s = void 0, n = void 0) {
|
|
431
431
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
432
432
|
m(o, {
|
|
433
433
|
opts: {
|
|
@@ -499,7 +499,7 @@ var Q = function(e, t, s, n) {
|
|
|
499
499
|
};
|
|
500
500
|
I.decode = I.parse = Q;
|
|
501
501
|
I.encode = I.stringify = Z;
|
|
502
|
-
async function
|
|
502
|
+
async function D(e, t = void 0, s = void 0, n = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
504
|
if (t === void 0) {
|
|
505
505
|
console.log("Le paramètre docid est obligatoire");
|
|
@@ -516,7 +516,7 @@ async function P(e, t = void 0, s = void 0, n = void 0) {
|
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
async function
|
|
519
|
+
async function Pe(e, t = void 0, s = void 0, n = void 0) {
|
|
520
520
|
const i = e.space;
|
|
521
521
|
if (t === void 0) {
|
|
522
522
|
console.log("Le paramètre docids est obligatoire");
|
|
@@ -628,7 +628,7 @@ function Le(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function P(e, t, s, n, i, r = void 0, o = void 0) {
|
|
632
632
|
const a = () => ee(
|
|
633
633
|
e,
|
|
634
634
|
t,
|
|
@@ -735,12 +735,12 @@ async function Me(e, t, s = void 0, n = void 0) {
|
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
async function Je(e, t, s, n = void 0, i = void 0) {
|
|
738
|
-
e.space, e.token, e.ctx,
|
|
738
|
+
e.space, e.token, e.ctx, D(
|
|
739
739
|
e,
|
|
740
740
|
t,
|
|
741
741
|
(r) => {
|
|
742
742
|
const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
|
|
743
|
-
|
|
743
|
+
P(
|
|
744
744
|
e,
|
|
745
745
|
t,
|
|
746
746
|
o,
|
|
@@ -879,7 +879,7 @@ function se(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function R(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
883
883
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
884
884
|
m(a, {
|
|
885
885
|
method: "GET",
|
|
@@ -1114,7 +1114,7 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1114
1114
|
return new Promise((i) => {
|
|
1115
1115
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1116
1116
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1117
|
-
|
|
1117
|
+
R(
|
|
1118
1118
|
e.space,
|
|
1119
1119
|
"ESPACE COMMUN",
|
|
1120
1120
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1155,7 +1155,7 @@ function We(e, t, s = void 0, n = void 0) {
|
|
|
1155
1155
|
return new Promise((i) => {
|
|
1156
1156
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1157
1157
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1158
|
-
|
|
1158
|
+
R(
|
|
1159
1159
|
e.space,
|
|
1160
1160
|
"ESPACE COMMUN",
|
|
1161
1161
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1202,7 +1202,7 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1202
1202
|
return new Promise((r) => {
|
|
1203
1203
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1204
1204
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1205
|
-
|
|
1205
|
+
R(
|
|
1206
1206
|
e.space,
|
|
1207
1207
|
"ESPACE COMMUN",
|
|
1208
1208
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1359,7 +1359,7 @@ function Qe(e, t, s, n = void 0, i = void 0) {
|
|
|
1359
1359
|
s,
|
|
1360
1360
|
(o) => {
|
|
1361
1361
|
const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1362
|
-
|
|
1362
|
+
P(
|
|
1363
1363
|
e,
|
|
1364
1364
|
s,
|
|
1365
1365
|
a,
|
|
@@ -1376,7 +1376,7 @@ function Qe(e, t, s, n = void 0, i = void 0) {
|
|
|
1376
1376
|
);
|
|
1377
1377
|
}
|
|
1378
1378
|
let M, J;
|
|
1379
|
-
const
|
|
1379
|
+
const j = [];
|
|
1380
1380
|
async function Ze(e, t = void 0, s = void 0) {
|
|
1381
1381
|
e.objID && e.objID !== "" ? F(
|
|
1382
1382
|
e,
|
|
@@ -1430,7 +1430,7 @@ function oe(e, t, s = void 0, n = void 0) {
|
|
|
1430
1430
|
M,
|
|
1431
1431
|
(i) => {
|
|
1432
1432
|
const r = [...t];
|
|
1433
|
-
r.find((o) => o.objectID === i.objectId).data = i.data, J = r,
|
|
1433
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data), s && s(j);
|
|
1434
1434
|
},
|
|
1435
1435
|
(i) => {
|
|
1436
1436
|
n && (n(i), console.log(i));
|
|
@@ -1488,7 +1488,7 @@ function nt(e, t, s = void 0, n = void 0) {
|
|
|
1488
1488
|
JSON.parse(f);
|
|
1489
1489
|
const l = {};
|
|
1490
1490
|
setTimeout(() => {
|
|
1491
|
-
|
|
1491
|
+
D(
|
|
1492
1492
|
e,
|
|
1493
1493
|
o,
|
|
1494
1494
|
(g) => {
|
|
@@ -2315,7 +2315,7 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
2315
2315
|
return new Promise((n, i) => {
|
|
2316
2316
|
try {
|
|
2317
2317
|
const { _3DDashboard: r, _3DSwym: o } = e;
|
|
2318
|
-
let a
|
|
2318
|
+
let a;
|
|
2319
2319
|
if (o) {
|
|
2320
2320
|
const c = e._3DSwym + "/api/user/getcurrent/";
|
|
2321
2321
|
w(e, (d) => {
|
|
@@ -2337,11 +2337,15 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
2337
2337
|
onComplete(d, u, p) {
|
|
2338
2338
|
const f = JSON.parse(d);
|
|
2339
2339
|
f.first_name = f.firstName, f.last_name = f.lastName, a = f;
|
|
2340
|
+
},
|
|
2341
|
+
onFailure(d) {
|
|
2342
|
+
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", d);
|
|
2340
2343
|
}
|
|
2341
2344
|
});
|
|
2342
2345
|
}
|
|
2343
2346
|
a ? n(a) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
|
|
2344
|
-
} catch {
|
|
2347
|
+
} catch (r) {
|
|
2348
|
+
i("ERROR | _3DSwym_get_currentUser => ", r);
|
|
2345
2349
|
}
|
|
2346
2350
|
});
|
|
2347
2351
|
}
|
|
@@ -2526,7 +2530,7 @@ async function Ft(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2526
2530
|
});
|
|
2527
2531
|
}
|
|
2528
2532
|
}
|
|
2529
|
-
async function
|
|
2533
|
+
async function Rt(e, t, s, n = void 0, i = void 0) {
|
|
2530
2534
|
if (e.tenant) {
|
|
2531
2535
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2532
2536
|
s
|
|
@@ -2543,7 +2547,7 @@ async function Ut(e, t, s, n = void 0, i = void 0) {
|
|
|
2543
2547
|
});
|
|
2544
2548
|
}
|
|
2545
2549
|
}
|
|
2546
|
-
async function
|
|
2550
|
+
async function Ut(e, t, s, n, i = void 0, r = void 0) {
|
|
2547
2551
|
if (e.tenant) {
|
|
2548
2552
|
const o = e.tenant.toLowerCase();
|
|
2549
2553
|
fetch(
|
|
@@ -2573,7 +2577,7 @@ async function kt(e, t, s, n = void 0, i = void 0) {
|
|
|
2573
2577
|
});
|
|
2574
2578
|
}
|
|
2575
2579
|
}
|
|
2576
|
-
async function
|
|
2580
|
+
async function jt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2577
2581
|
if (e.tenant) {
|
|
2578
2582
|
const a = e.tenant.toLowerCase();
|
|
2579
2583
|
fetch(
|
|
@@ -2624,13 +2628,13 @@ function xt(e) {
|
|
|
2624
2628
|
const t = "Hello " + e;
|
|
2625
2629
|
return console.log(t), t;
|
|
2626
2630
|
}
|
|
2627
|
-
function
|
|
2631
|
+
function Dt(e, t = void 0, s = void 0) {
|
|
2628
2632
|
return console.log("credentials", e), new Promise((n) => {
|
|
2629
2633
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2630
2634
|
const o = Y();
|
|
2631
2635
|
console.log("platformeInfo", o);
|
|
2632
2636
|
}
|
|
2633
|
-
|
|
2637
|
+
R(
|
|
2634
2638
|
e,
|
|
2635
2639
|
"Common space",
|
|
2636
2640
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2705,7 +2709,7 @@ function Pt(e, t = void 0, s = void 0) {
|
|
|
2705
2709
|
}
|
|
2706
2710
|
export {
|
|
2707
2711
|
B as UUID,
|
|
2708
|
-
|
|
2712
|
+
Dt as _3DSearch_usersGroup,
|
|
2709
2713
|
Ge as _3DSpace_Create_Doc,
|
|
2710
2714
|
Je as _3DSpace_Update_Doc,
|
|
2711
2715
|
Ye as _3DSpace_bookmark_addSubsciptions,
|
|
@@ -2713,14 +2717,14 @@ export {
|
|
|
2713
2717
|
b as _3DSpace_csrf,
|
|
2714
2718
|
L as _3DSpace_download_doc,
|
|
2715
2719
|
ie as _3DSpace_download_multidoc,
|
|
2716
|
-
|
|
2720
|
+
P as _3DSpace_file_update,
|
|
2717
2721
|
ee as _3DSpace_file_update_csr,
|
|
2718
2722
|
Le as _3DSpace_file_url_csr,
|
|
2719
2723
|
F as _3DSpace_get_csrf,
|
|
2720
|
-
|
|
2724
|
+
D as _3DSpace_get_docInfo,
|
|
2721
2725
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2722
|
-
|
|
2723
|
-
|
|
2726
|
+
Pe as _3DSpace_get_multiDocInfo,
|
|
2727
|
+
R as _3DSpace_get_securityContexts,
|
|
2724
2728
|
k as _3DSpace_get_ticket,
|
|
2725
2729
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2726
2730
|
Ke as _3DSpace_lifecycle_changeState,
|
|
@@ -2747,21 +2751,21 @@ export {
|
|
|
2747
2751
|
pt as _3DSwym_postIdea,
|
|
2748
2752
|
ut as _3DSwym_postIdeaTemplate,
|
|
2749
2753
|
v as _3DSwym_sendMessageData,
|
|
2750
|
-
|
|
2754
|
+
Re as _AppMngt_get_info_user,
|
|
2751
2755
|
Fe as _AppMngt_get_users,
|
|
2752
2756
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2753
2757
|
Ct as _Iterop_Auth_CAS,
|
|
2754
2758
|
kt as _Iterop_GetOneDependencyTable,
|
|
2755
2759
|
At as _Iterop_GetOneList,
|
|
2756
|
-
|
|
2760
|
+
jt as _Iterop_PatchDependencyTable,
|
|
2757
2761
|
vt as _Iterop_PutDependencyTable,
|
|
2758
2762
|
It as _Iterop_businessTableSearchInRows,
|
|
2759
|
-
|
|
2763
|
+
Rt as _Iterop_createBusinessTable,
|
|
2760
2764
|
bt as _Iterop_getAllBusinessTables,
|
|
2761
2765
|
Ot as _Iterop_getOneBusinessTable,
|
|
2762
2766
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2763
2767
|
Tt as _Iterop_jwtUser,
|
|
2764
|
-
|
|
2768
|
+
Ut as _Iterop_runProcess,
|
|
2765
2769
|
Ft as _Iterop_updateBusinessTable,
|
|
2766
2770
|
Y as _getPlateformInfos,
|
|
2767
2771
|
$e as _getPlatformServices,
|
|
@@ -2776,7 +2780,7 @@ export {
|
|
|
2776
2780
|
X as chunkArray,
|
|
2777
2781
|
Ie as compass_getListAdditionalApps,
|
|
2778
2782
|
W as couleurs,
|
|
2779
|
-
|
|
2783
|
+
Ue as createUserGroups,
|
|
2780
2784
|
oe as dataMixing,
|
|
2781
2785
|
ve as deleteUserGroups,
|
|
2782
2786
|
Se as findAdresse,
|
|
@@ -2790,13 +2794,13 @@ export {
|
|
|
2790
2794
|
tt as getDatasFrom3DSpace,
|
|
2791
2795
|
ze as getDownloadDocument,
|
|
2792
2796
|
it as getInfoDocTags,
|
|
2793
|
-
|
|
2797
|
+
je as getUserGroupsList,
|
|
2794
2798
|
q as getUsersGroupRules,
|
|
2795
2799
|
Ze as get_3DSpace_csrf,
|
|
2796
2800
|
Ae as patchUserGroups,
|
|
2797
2801
|
xe as patchUserGroupsControl,
|
|
2798
2802
|
Qe as pushDataIn3DSpace,
|
|
2799
|
-
|
|
2803
|
+
De as readUserGroupControl,
|
|
2800
2804
|
st as removeTagToDoc,
|
|
2801
2805
|
xt as sayHello,
|
|
2802
2806
|
Ce as updateEvent
|