@beam3_dev/api_module 0.0.259 → 0.0.261
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 +57 -39
- 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, n = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function je(e, t, n = void 0, s = 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 ke(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
|
};
|
|
291
|
-
function
|
|
291
|
+
function ke(e, t, n = void 0, s = 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, 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 Ue(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 ve(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,*/*"
|
|
@@ -383,7 +383,7 @@ function Ae(e, t = void 0, n = void 0) {
|
|
|
383
383
|
console.log(u);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ae(e, t) {
|
|
387
387
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
@@ -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 Re(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 b(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 U(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,
|
|
@@ -879,7 +879,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function j(e, t = void 0, n = void 0, s = 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",
|
|
@@ -944,7 +944,7 @@ async function L(e, t = void 0, n = void 0) {
|
|
|
944
944
|
console.log("☠️ error => ", s);
|
|
945
945
|
}
|
|
946
946
|
), new Promise((s, i) => {
|
|
947
|
-
|
|
947
|
+
U(
|
|
948
948
|
e,
|
|
949
949
|
(r) => {
|
|
950
950
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
@@ -1114,7 +1114,7 @@ function Be(e, t, n = void 0, s = 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
|
+
j(
|
|
1118
1118
|
e.space,
|
|
1119
1119
|
"ESPACE COMMUN",
|
|
1120
1120
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1155,7 +1155,7 @@ function We(e, t, n = void 0, s = 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
|
+
j(
|
|
1159
1159
|
e.space,
|
|
1160
1160
|
"ESPACE COMMUN",
|
|
1161
1161
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1202,7 +1202,7 @@ function Xe(e, t, n, s = 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
|
+
j(
|
|
1206
1206
|
e.space,
|
|
1207
1207
|
"ESPACE COMMUN",
|
|
1208
1208
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1324,7 +1324,7 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
1326
|
function He(e, t, n, s) {
|
|
1327
|
-
|
|
1327
|
+
U(
|
|
1328
1328
|
e.space,
|
|
1329
1329
|
t,
|
|
1330
1330
|
(i) => {
|
|
@@ -1342,7 +1342,7 @@ function He(e, t, n, s) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
async function ze(e, t, n = void 0, s = void 0) {
|
|
1344
1344
|
return new Promise((i) => {
|
|
1345
|
-
|
|
1345
|
+
U(e, t, (r) => {
|
|
1346
1346
|
m(r, {
|
|
1347
1347
|
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1348
1348
|
onFailure: (o, a, c) => {
|
|
@@ -1376,7 +1376,7 @@ function Qe(e, t, n, s = void 0, i = void 0) {
|
|
|
1376
1376
|
);
|
|
1377
1377
|
}
|
|
1378
1378
|
let M, J;
|
|
1379
|
-
const
|
|
1379
|
+
const v = [];
|
|
1380
1380
|
async function Ze(e, t = void 0, n = void 0) {
|
|
1381
1381
|
e.objID && e.objID !== "" ? F(
|
|
1382
1382
|
e,
|
|
@@ -1430,7 +1430,7 @@ function oe(e, t, n = void 0, s = 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, v.push(i.data), n && n(v);
|
|
1434
1434
|
},
|
|
1435
1435
|
(i) => {
|
|
1436
1436
|
s && (s(i), console.log(i));
|
|
@@ -1840,7 +1840,7 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
1840
1840
|
le(
|
|
1841
1841
|
c.users,
|
|
1842
1842
|
(p) => {
|
|
1843
|
-
p !== void 0 && (d.id_msg = p.id, u = !0,
|
|
1843
|
+
p !== void 0 && (d.id_msg = p.id, u = !0, A(e, d));
|
|
1844
1844
|
},
|
|
1845
1845
|
(p) => {
|
|
1846
1846
|
u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
|
|
@@ -1858,7 +1858,7 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
1858
1858
|
type: "json",
|
|
1859
1859
|
onComplete(f, l, g) {
|
|
1860
1860
|
const h = f;
|
|
1861
|
-
h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id,
|
|
1861
|
+
h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, A(e, d);
|
|
1862
1862
|
},
|
|
1863
1863
|
onFailure(f, l, g) {
|
|
1864
1864
|
const h = f;
|
|
@@ -1897,7 +1897,7 @@ function le(e, t, n, s) {
|
|
|
1897
1897
|
});
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function A(e, t, n = void 0, s = void 0) {
|
|
1901
1901
|
const i = {
|
|
1902
1902
|
base: e._3DSwym,
|
|
1903
1903
|
uri: "/api/community",
|
|
@@ -2511,6 +2511,23 @@ async function Ft(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2511
2511
|
});
|
|
2512
2512
|
}
|
|
2513
2513
|
}
|
|
2514
|
+
async function jt(e, t, n, s = void 0, i = void 0) {
|
|
2515
|
+
if (e.tenant) {
|
|
2516
|
+
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2517
|
+
n
|
|
2518
|
+
)}`;
|
|
2519
|
+
fetch(r, {
|
|
2520
|
+
method: "POST"
|
|
2521
|
+
}).then((o) => o.json()).then((o) => {
|
|
2522
|
+
s && s(o);
|
|
2523
|
+
}).catch((o) => {
|
|
2524
|
+
i && i({
|
|
2525
|
+
error: o,
|
|
2526
|
+
url: r
|
|
2527
|
+
});
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2514
2531
|
async function kt(e, t, n, s, i = void 0, r = void 0) {
|
|
2515
2532
|
if (e.tenant) {
|
|
2516
2533
|
const o = e.tenant.toLowerCase();
|
|
@@ -2526,7 +2543,7 @@ async function kt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2526
2543
|
});
|
|
2527
2544
|
}
|
|
2528
2545
|
}
|
|
2529
|
-
async function
|
|
2546
|
+
async function Ut(e, t, n, s = void 0, i = void 0) {
|
|
2530
2547
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2531
2548
|
const r = e.tenant.toLowerCase();
|
|
2532
2549
|
fetch(
|
|
@@ -2572,7 +2589,7 @@ async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2572
2589
|
}
|
|
2573
2590
|
}
|
|
2574
2591
|
//!SECTION
|
|
2575
|
-
async function
|
|
2592
|
+
async function xt(e, t, n, s = void 0, i = void 0) {
|
|
2576
2593
|
if (e.tenant) {
|
|
2577
2594
|
const r = e.tenant.toLowerCase();
|
|
2578
2595
|
fetch(
|
|
@@ -2588,17 +2605,17 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
|
|
|
2588
2605
|
}
|
|
2589
2606
|
}
|
|
2590
2607
|
//!SECTION
|
|
2591
|
-
function
|
|
2608
|
+
function Rt(e) {
|
|
2592
2609
|
const t = "Hello " + e;
|
|
2593
2610
|
return console.log(t), t;
|
|
2594
2611
|
}
|
|
2595
|
-
function
|
|
2612
|
+
function Pt(e, t = void 0, n = void 0) {
|
|
2596
2613
|
return console.log("credentials", e), new Promise((s) => {
|
|
2597
2614
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2598
2615
|
const o = Y();
|
|
2599
2616
|
console.log("platformeInfo", o);
|
|
2600
2617
|
}
|
|
2601
|
-
|
|
2618
|
+
j(
|
|
2602
2619
|
e,
|
|
2603
2620
|
"Common space",
|
|
2604
2621
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2673,7 +2690,7 @@ function Rt(e, t = void 0, n = void 0) {
|
|
|
2673
2690
|
}
|
|
2674
2691
|
export {
|
|
2675
2692
|
B as UUID,
|
|
2676
|
-
|
|
2693
|
+
Pt as _3DSearch_usersGroup,
|
|
2677
2694
|
Ge as _3DSpace_Create_Doc,
|
|
2678
2695
|
Je as _3DSpace_Update_Doc,
|
|
2679
2696
|
Ye as _3DSpace_bookmark_addSubsciptions,
|
|
@@ -2688,8 +2705,8 @@ export {
|
|
|
2688
2705
|
P as _3DSpace_get_docInfo,
|
|
2689
2706
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2690
2707
|
De as _3DSpace_get_multiDocInfo,
|
|
2691
|
-
|
|
2692
|
-
|
|
2708
|
+
j as _3DSpace_get_securityContexts,
|
|
2709
|
+
U as _3DSpace_get_ticket,
|
|
2693
2710
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2694
2711
|
Ee as _3DSpace_lifecycle_changeState,
|
|
2695
2712
|
Be as _3DSpace_lifecycle_getGraph,
|
|
@@ -2714,16 +2731,17 @@ export {
|
|
|
2714
2731
|
St as _3DSwym_get_findUser,
|
|
2715
2732
|
pt as _3DSwym_postIdea,
|
|
2716
2733
|
ut as _3DSwym_postIdeaTemplate,
|
|
2717
|
-
|
|
2718
|
-
|
|
2734
|
+
A as _3DSwym_sendMessageData,
|
|
2735
|
+
je as _AppMngt_get_info_user,
|
|
2719
2736
|
Fe as _AppMngt_get_users,
|
|
2720
2737
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2721
2738
|
Ct as _Iterop_Auth_CAS,
|
|
2722
|
-
|
|
2723
|
-
|
|
2739
|
+
Ut as _Iterop_GetOneDependencyTable,
|
|
2740
|
+
xt as _Iterop_GetOneList,
|
|
2724
2741
|
vt as _Iterop_PatchDependencyTable,
|
|
2725
2742
|
At as _Iterop_PutDependencyTable,
|
|
2726
2743
|
It as _Iterop_businessTableSearchInRows,
|
|
2744
|
+
jt as _Iterop_createBusinessTable,
|
|
2727
2745
|
bt as _Iterop_getAllBusinessTables,
|
|
2728
2746
|
Ot as _Iterop_getOneBusinessTable,
|
|
2729
2747
|
$t as _Iterop_getOneBusinessTableRows,
|
|
@@ -2743,21 +2761,21 @@ export {
|
|
|
2743
2761
|
X as chunkArray,
|
|
2744
2762
|
Ie as compass_getListAdditionalApps,
|
|
2745
2763
|
W as couleurs,
|
|
2746
|
-
|
|
2764
|
+
ke as createUserGroups,
|
|
2747
2765
|
oe as dataMixing,
|
|
2748
|
-
|
|
2766
|
+
Ae as deleteUserGroups,
|
|
2749
2767
|
_e as findAdresse,
|
|
2750
2768
|
qe as getAllContextSecurity,
|
|
2751
2769
|
H as getCSRFToken,
|
|
2752
2770
|
Se as getCommunes,
|
|
2753
|
-
|
|
2771
|
+
Ue as getComplementUG,
|
|
2754
2772
|
He as getDataFrom3DSpace,
|
|
2755
2773
|
we as getDataFromGouvFr,
|
|
2756
2774
|
et as getDatasByTenant,
|
|
2757
2775
|
tt as getDatasFrom3DSpace,
|
|
2758
2776
|
ze as getDownloadDocument,
|
|
2759
2777
|
it as getInfoDocTags,
|
|
2760
|
-
|
|
2778
|
+
ve as getUserGroupsList,
|
|
2761
2779
|
q as getUsersGroupRules,
|
|
2762
2780
|
Ze as get_3DSpace_csrf,
|
|
2763
2781
|
xe as patchUserGroups,
|
|
@@ -2765,7 +2783,7 @@ export {
|
|
|
2765
2783
|
Qe as pushDataIn3DSpace,
|
|
2766
2784
|
Pe as readUserGroupControl,
|
|
2767
2785
|
st as removeTagToDoc,
|
|
2768
|
-
|
|
2786
|
+
Rt as sayHello,
|
|
2769
2787
|
Ce as updateEvent
|
|
2770
2788
|
};
|
|
2771
2789
|
//# sourceMappingURL=wb3Api.js.map
|