@beam3_dev/api_module 0.0.271 → 0.0.273
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 +48 -45
- 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 Re(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 Ue(e, t = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Ue(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 Fe(e, t, s = void 0, n = void 0) {
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const F = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Fe(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 Re(e, t, s = void 0, n = void 0) {
|
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: F,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
s && s(JSON.parse(d));
|
|
@@ -317,7 +317,7 @@ function Re(e, t, s = void 0, n = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ke(e, t, s = void 0, n = 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 Y(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 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: F,
|
|
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: F,
|
|
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 R(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, {
|
|
@@ -582,9 +582,9 @@ function b(e, t = void 0, s = void 0) {
|
|
|
582
582
|
} else
|
|
583
583
|
s && s("ERROR : url du 3DSpace non défini.");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
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
|
+
R(
|
|
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() : R(
|
|
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 U(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",
|
|
@@ -944,7 +944,7 @@ async function L(e, t = void 0, s = void 0) {
|
|
|
944
944
|
console.log("☠️ error => ", n);
|
|
945
945
|
}
|
|
946
946
|
), new Promise((n, i) => {
|
|
947
|
-
|
|
947
|
+
k(
|
|
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, 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
|
+
U(
|
|
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
|
+
U(
|
|
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
|
+
U(
|
|
1206
1206
|
e.space,
|
|
1207
1207
|
"ESPACE COMMUN",
|
|
1208
1208
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1324,7 +1324,7 @@ function Ye(e, t = void 0, s = void 0) {
|
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
1326
|
function He(e, t, s, n) {
|
|
1327
|
-
|
|
1327
|
+
k(
|
|
1328
1328
|
e.space,
|
|
1329
1329
|
t,
|
|
1330
1330
|
(i) => {
|
|
@@ -1342,7 +1342,7 @@ function He(e, t, s, n) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
async function ze(e, t, s = void 0, n = void 0) {
|
|
1344
1344
|
return new Promise((i) => {
|
|
1345
|
-
|
|
1345
|
+
k(e, t, (r) => {
|
|
1346
1346
|
m(r, {
|
|
1347
1347
|
onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
|
|
1348
1348
|
onFailure: (o, a, c) => {
|
|
@@ -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
|
+
R(
|
|
1358
1358
|
e,
|
|
1359
1359
|
s,
|
|
1360
1360
|
(o) => {
|
|
@@ -1376,9 +1376,9 @@ 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
|
-
e.objID && e.objID !== "" ?
|
|
1381
|
+
e.objID && e.objID !== "" ? R(
|
|
1382
1382
|
e,
|
|
1383
1383
|
(n) => {
|
|
1384
1384
|
t && t(n);
|
|
@@ -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));
|
|
@@ -2320,8 +2320,11 @@ 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
|
-
|
|
2323
|
+
let u = {};
|
|
2324
|
+
const p = String(a);
|
|
2325
|
+
console.log("oResult", p), Object.keys(p).forEach((f) => {
|
|
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);
|
|
2325
2328
|
},
|
|
2326
2329
|
onFailure(a) {
|
|
2327
2330
|
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
|
|
@@ -2498,7 +2501,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2498
2501
|
});
|
|
2499
2502
|
}
|
|
2500
2503
|
}
|
|
2501
|
-
async function
|
|
2504
|
+
async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
2502
2505
|
if (e.tenant) {
|
|
2503
2506
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2504
2507
|
n
|
|
@@ -2515,7 +2518,7 @@ async function Ut(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2515
2518
|
});
|
|
2516
2519
|
}
|
|
2517
2520
|
}
|
|
2518
|
-
async function
|
|
2521
|
+
async function Ut(e, t, s, n = void 0, i = void 0) {
|
|
2519
2522
|
if (e.tenant) {
|
|
2520
2523
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2521
2524
|
s
|
|
@@ -2532,7 +2535,7 @@ async function Ft(e, t, s, n = void 0, i = void 0) {
|
|
|
2532
2535
|
});
|
|
2533
2536
|
}
|
|
2534
2537
|
}
|
|
2535
|
-
async function
|
|
2538
|
+
async function Ft(e, t, s, n, i = void 0, r = void 0) {
|
|
2536
2539
|
if (e.tenant) {
|
|
2537
2540
|
const o = e.tenant.toLowerCase();
|
|
2538
2541
|
fetch(
|
|
@@ -2547,7 +2550,7 @@ async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2547
2550
|
});
|
|
2548
2551
|
}
|
|
2549
2552
|
}
|
|
2550
|
-
async function
|
|
2553
|
+
async function kt(e, t, s, n = void 0, i = void 0) {
|
|
2551
2554
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2552
2555
|
const r = e.tenant.toLowerCase();
|
|
2553
2556
|
fetch(
|
|
@@ -2562,7 +2565,7 @@ async function jt(e, t, s, n = void 0, i = void 0) {
|
|
|
2562
2565
|
});
|
|
2563
2566
|
}
|
|
2564
2567
|
}
|
|
2565
|
-
async function
|
|
2568
|
+
async function jt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2566
2569
|
if (e.tenant) {
|
|
2567
2570
|
const a = e.tenant.toLowerCase();
|
|
2568
2571
|
fetch(
|
|
@@ -2619,7 +2622,7 @@ function Dt(e, t = void 0, s = void 0) {
|
|
|
2619
2622
|
const o = q();
|
|
2620
2623
|
console.log("platformeInfo", o);
|
|
2621
2624
|
}
|
|
2622
|
-
|
|
2625
|
+
U(
|
|
2623
2626
|
e,
|
|
2624
2627
|
"Common space",
|
|
2625
2628
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2705,12 +2708,12 @@ export {
|
|
|
2705
2708
|
P as _3DSpace_file_update,
|
|
2706
2709
|
ee as _3DSpace_file_update_csr,
|
|
2707
2710
|
Le as _3DSpace_file_url_csr,
|
|
2708
|
-
|
|
2711
|
+
R as _3DSpace_get_csrf,
|
|
2709
2712
|
D as _3DSpace_get_docInfo,
|
|
2710
2713
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2711
2714
|
Pe as _3DSpace_get_multiDocInfo,
|
|
2712
|
-
|
|
2713
|
-
|
|
2715
|
+
U as _3DSpace_get_securityContexts,
|
|
2716
|
+
k as _3DSpace_get_ticket,
|
|
2714
2717
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2715
2718
|
Ke as _3DSpace_lifecycle_changeState,
|
|
2716
2719
|
Be as _3DSpace_lifecycle_getGraph,
|
|
@@ -2736,22 +2739,22 @@ export {
|
|
|
2736
2739
|
pt as _3DSwym_postIdea,
|
|
2737
2740
|
ut as _3DSwym_postIdeaTemplate,
|
|
2738
2741
|
A as _3DSwym_sendMessageData,
|
|
2739
|
-
|
|
2740
|
-
|
|
2742
|
+
Ue as _AppMngt_get_info_user,
|
|
2743
|
+
Re as _AppMngt_get_users,
|
|
2741
2744
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2742
2745
|
Ct as _Iterop_Auth_CAS,
|
|
2743
|
-
|
|
2746
|
+
kt as _Iterop_GetOneDependencyTable,
|
|
2744
2747
|
vt as _Iterop_GetOneList,
|
|
2745
|
-
|
|
2748
|
+
jt as _Iterop_PatchDependencyTable,
|
|
2746
2749
|
At as _Iterop_PutDependencyTable,
|
|
2747
2750
|
It as _Iterop_businessTableSearchInRows,
|
|
2748
|
-
|
|
2751
|
+
Ut as _Iterop_createBusinessTable,
|
|
2749
2752
|
bt as _Iterop_getAllBusinessTables,
|
|
2750
2753
|
Ot as _Iterop_getOneBusinessTable,
|
|
2751
2754
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2752
2755
|
Tt as _Iterop_jwtUser,
|
|
2753
|
-
|
|
2754
|
-
|
|
2756
|
+
Ft as _Iterop_runProcess,
|
|
2757
|
+
Rt as _Iterop_updateBusinessTable,
|
|
2755
2758
|
q as _getPlateformInfos,
|
|
2756
2759
|
$e as _getPlatformServices,
|
|
2757
2760
|
x as _getServiceUrl,
|
|
@@ -2765,21 +2768,21 @@ export {
|
|
|
2765
2768
|
X as chunkArray,
|
|
2766
2769
|
Ie as compass_getListAdditionalApps,
|
|
2767
2770
|
W as couleurs,
|
|
2768
|
-
|
|
2771
|
+
Fe as createUserGroups,
|
|
2769
2772
|
oe as dataMixing,
|
|
2770
2773
|
Ae as deleteUserGroups,
|
|
2771
2774
|
Se as findAdresse,
|
|
2772
2775
|
Ye as getAllContextSecurity,
|
|
2773
2776
|
H as getCSRFToken,
|
|
2774
2777
|
_e as getCommunes,
|
|
2775
|
-
|
|
2778
|
+
ke as getComplementUG,
|
|
2776
2779
|
He as getDataFrom3DSpace,
|
|
2777
2780
|
we as getDataFromGouvFr,
|
|
2778
2781
|
et as getDatasByTenant,
|
|
2779
2782
|
tt as getDatasFrom3DSpace,
|
|
2780
2783
|
ze as getDownloadDocument,
|
|
2781
2784
|
it as getInfoDocTags,
|
|
2782
|
-
|
|
2785
|
+
je as getUserGroupsList,
|
|
2783
2786
|
Y as getUsersGroupRules,
|
|
2784
2787
|
Ze as get_3DSpace_csrf,
|
|
2785
2788
|
ve as patchUserGroups,
|