@beam3_dev/api_module 0.0.274 → 0.0.275
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 +31 -33
- 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
|
@@ -258,7 +258,7 @@ function Ie(e, t, s) {
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Ue(e, t = void 0, s = void 0) {
|
|
262
262
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
263
263
|
m(n, {
|
|
264
264
|
onComplete(i, r, o) {
|
|
@@ -271,7 +271,7 @@ function Re(e, t = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Fe(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 R = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Re(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 Fe(e, t, s = void 0, n = void 0) {
|
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: R,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
s && s(JSON.parse(d));
|
|
@@ -400,7 +400,7 @@ function ve(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: R,
|
|
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: R,
|
|
420
420
|
data: JSON.stringify(s),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -540,7 +540,7 @@ async function Pe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function U(e, t = void 0, s = void 0) {
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
545
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
546
|
m(n, {
|
|
@@ -584,7 +584,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
584
584
|
}
|
|
585
585
|
function k(e, t = void 0, s = void 0) {
|
|
586
586
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
-
|
|
587
|
+
U(
|
|
588
588
|
e,
|
|
589
589
|
(i) => {
|
|
590
590
|
m(n, {
|
|
@@ -639,7 +639,7 @@ function P(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
639
639
|
r,
|
|
640
640
|
o
|
|
641
641
|
);
|
|
642
|
-
e.token ? a() :
|
|
642
|
+
e.token ? a() : U(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
@@ -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 F(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
|
+
F(
|
|
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
|
+
F(
|
|
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
|
+
F(
|
|
1206
1206
|
e.space,
|
|
1207
1207
|
"ESPACE COMMUN",
|
|
1208
1208
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1354,7 +1354,7 @@ async function ze(e, t, s = void 0, n = void 0) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
function Qe(e, t, s, n = void 0, i = void 0) {
|
|
1356
1356
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1357
|
-
|
|
1357
|
+
U(
|
|
1358
1358
|
e,
|
|
1359
1359
|
s,
|
|
1360
1360
|
(o) => {
|
|
@@ -1378,7 +1378,7 @@ function Qe(e, t, s, n = void 0, i = void 0) {
|
|
|
1378
1378
|
let M, J;
|
|
1379
1379
|
const j = [];
|
|
1380
1380
|
async function Ze(e, t = void 0, s = void 0) {
|
|
1381
|
-
e.objID && e.objID !== "" ?
|
|
1381
|
+
e.objID && e.objID !== "" ? U(
|
|
1382
1382
|
e,
|
|
1383
1383
|
(n) => {
|
|
1384
1384
|
t && t(n);
|
|
@@ -2320,11 +2320,9 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
2320
2320
|
console.log("_3DSwym_get_currentUser | url", o), m(o, {
|
|
2321
2321
|
method: "GET",
|
|
2322
2322
|
onComplete(a, c, d) {
|
|
2323
|
-
|
|
2324
|
-
const
|
|
2325
|
-
console.log("
|
|
2326
|
-
p[f] === "firstName" && (u.first_name = p.firstName);
|
|
2327
|
-
}), u.first_name = u.firstName, u.last_name = u.lastName, console.log("_3DSwym_get_currentUser | info", u), r = u, n(u);
|
|
2323
|
+
a = a.replace('"[', "[").replace(']"', "]").replace('"{', "{").replace('}"', "}").replace(/\\/g, "");
|
|
2324
|
+
const u = JSON.parse(a);
|
|
2325
|
+
u.first_name = u.firstName, u.last_name = u.lastName, console.log("_3DSwym_get_currentUser | info", u), r = u, n(u);
|
|
2328
2326
|
},
|
|
2329
2327
|
onFailure(a) {
|
|
2330
2328
|
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
|
|
@@ -2501,7 +2499,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2501
2499
|
});
|
|
2502
2500
|
}
|
|
2503
2501
|
}
|
|
2504
|
-
async function
|
|
2502
|
+
async function Ut(e, t, s, n, i = void 0, r = void 0) {
|
|
2505
2503
|
if (e.tenant) {
|
|
2506
2504
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2507
2505
|
n
|
|
@@ -2518,7 +2516,7 @@ async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2518
2516
|
});
|
|
2519
2517
|
}
|
|
2520
2518
|
}
|
|
2521
|
-
async function
|
|
2519
|
+
async function Ft(e, t, s, n = void 0, i = void 0) {
|
|
2522
2520
|
if (e.tenant) {
|
|
2523
2521
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2524
2522
|
s
|
|
@@ -2535,7 +2533,7 @@ async function Ut(e, t, s, n = void 0, i = void 0) {
|
|
|
2535
2533
|
});
|
|
2536
2534
|
}
|
|
2537
2535
|
}
|
|
2538
|
-
async function
|
|
2536
|
+
async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
2539
2537
|
if (e.tenant) {
|
|
2540
2538
|
const o = e.tenant.toLowerCase();
|
|
2541
2539
|
fetch(
|
|
@@ -2622,7 +2620,7 @@ function Dt(e, t = void 0, s = void 0) {
|
|
|
2622
2620
|
const o = q();
|
|
2623
2621
|
console.log("platformeInfo", o);
|
|
2624
2622
|
}
|
|
2625
|
-
|
|
2623
|
+
F(
|
|
2626
2624
|
e,
|
|
2627
2625
|
"Common space",
|
|
2628
2626
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2708,11 +2706,11 @@ export {
|
|
|
2708
2706
|
P as _3DSpace_file_update,
|
|
2709
2707
|
ee as _3DSpace_file_update_csr,
|
|
2710
2708
|
Le as _3DSpace_file_url_csr,
|
|
2711
|
-
|
|
2709
|
+
U as _3DSpace_get_csrf,
|
|
2712
2710
|
D as _3DSpace_get_docInfo,
|
|
2713
2711
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2714
2712
|
Pe as _3DSpace_get_multiDocInfo,
|
|
2715
|
-
|
|
2713
|
+
F as _3DSpace_get_securityContexts,
|
|
2716
2714
|
k as _3DSpace_get_ticket,
|
|
2717
2715
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2718
2716
|
Ke as _3DSpace_lifecycle_changeState,
|
|
@@ -2739,8 +2737,8 @@ export {
|
|
|
2739
2737
|
pt as _3DSwym_postIdea,
|
|
2740
2738
|
ut as _3DSwym_postIdeaTemplate,
|
|
2741
2739
|
A as _3DSwym_sendMessageData,
|
|
2742
|
-
|
|
2743
|
-
|
|
2740
|
+
Fe as _AppMngt_get_info_user,
|
|
2741
|
+
Ue as _AppMngt_get_users,
|
|
2744
2742
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2745
2743
|
Ct as _Iterop_Auth_CAS,
|
|
2746
2744
|
kt as _Iterop_GetOneDependencyTable,
|
|
@@ -2748,13 +2746,13 @@ export {
|
|
|
2748
2746
|
jt as _Iterop_PatchDependencyTable,
|
|
2749
2747
|
At as _Iterop_PutDependencyTable,
|
|
2750
2748
|
It as _Iterop_businessTableSearchInRows,
|
|
2751
|
-
|
|
2749
|
+
Ft as _Iterop_createBusinessTable,
|
|
2752
2750
|
bt as _Iterop_getAllBusinessTables,
|
|
2753
2751
|
Ot as _Iterop_getOneBusinessTable,
|
|
2754
2752
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2755
2753
|
Tt as _Iterop_jwtUser,
|
|
2756
|
-
|
|
2757
|
-
|
|
2754
|
+
Rt as _Iterop_runProcess,
|
|
2755
|
+
Ut as _Iterop_updateBusinessTable,
|
|
2758
2756
|
q as _getPlateformInfos,
|
|
2759
2757
|
$e as _getPlatformServices,
|
|
2760
2758
|
x as _getServiceUrl,
|
|
@@ -2768,7 +2766,7 @@ export {
|
|
|
2768
2766
|
X as chunkArray,
|
|
2769
2767
|
Ie as compass_getListAdditionalApps,
|
|
2770
2768
|
W as couleurs,
|
|
2771
|
-
|
|
2769
|
+
Re as createUserGroups,
|
|
2772
2770
|
oe as dataMixing,
|
|
2773
2771
|
Ae as deleteUserGroups,
|
|
2774
2772
|
Se as findAdresse,
|