@beam3_dev/api_module 0.0.269 → 0.0.271
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 +45 -46
- 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
|
@@ -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 Fe(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) {
|
|
@@ -317,7 +317,7 @@ function Re(e, t, s = void 0, n = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function je(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 ke(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,*/*"
|
|
@@ -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, {
|
|
@@ -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 j(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",
|
|
@@ -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
|
+
j(
|
|
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
|
+
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"],
|
|
@@ -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
|
+
j(
|
|
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
|
+
j(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
|
+
U(
|
|
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 k = [];
|
|
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);
|
|
@@ -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, k.push(i.data), s && s(k);
|
|
1434
1434
|
},
|
|
1435
1435
|
(i) => {
|
|
1436
1436
|
n && (n(i), console.log(i));
|
|
@@ -2314,22 +2314,21 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2314
2314
|
function yt(e, t = void 0, s = void 0) {
|
|
2315
2315
|
return new Promise((n, i) => {
|
|
2316
2316
|
try {
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
m(c, {
|
|
2317
|
+
let r;
|
|
2318
|
+
if (e._3DDashboard) {
|
|
2319
|
+
const o = e._3DDashboard + "/api/users/current";
|
|
2320
|
+
console.log("_3DSwym_get_currentUser | url", o), m(o, {
|
|
2322
2321
|
method: "GET",
|
|
2323
|
-
onComplete(
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2322
|
+
onComplete(a, c, d) {
|
|
2323
|
+
const u = a.json();
|
|
2324
|
+
u.first_name = u.firstName, u.last_name = u.lastName, console.log("_3DSwym_get_currentUser | info", u), r = u, n(u);
|
|
2326
2325
|
},
|
|
2327
|
-
onFailure(
|
|
2328
|
-
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current",
|
|
2326
|
+
onFailure(a) {
|
|
2327
|
+
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
|
|
2329
2328
|
}
|
|
2330
2329
|
});
|
|
2331
2330
|
}
|
|
2332
|
-
|
|
2331
|
+
r ? n(r) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
|
|
2333
2332
|
} catch (r) {
|
|
2334
2333
|
i("ERROR | _3DSwym_get_currentUser => ", r);
|
|
2335
2334
|
}
|
|
@@ -2499,7 +2498,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2499
2498
|
});
|
|
2500
2499
|
}
|
|
2501
2500
|
}
|
|
2502
|
-
async function
|
|
2501
|
+
async function Ut(e, t, s, n, i = void 0, r = void 0) {
|
|
2503
2502
|
if (e.tenant) {
|
|
2504
2503
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2505
2504
|
n
|
|
@@ -2516,7 +2515,7 @@ async function Ft(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2516
2515
|
});
|
|
2517
2516
|
}
|
|
2518
2517
|
}
|
|
2519
|
-
async function
|
|
2518
|
+
async function Ft(e, t, s, n = void 0, i = void 0) {
|
|
2520
2519
|
if (e.tenant) {
|
|
2521
2520
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2522
2521
|
s
|
|
@@ -2548,7 +2547,7 @@ async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2548
2547
|
});
|
|
2549
2548
|
}
|
|
2550
2549
|
}
|
|
2551
|
-
async function
|
|
2550
|
+
async function jt(e, t, s, n = void 0, i = void 0) {
|
|
2552
2551
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2553
2552
|
const r = e.tenant.toLowerCase();
|
|
2554
2553
|
fetch(
|
|
@@ -2563,7 +2562,7 @@ async function kt(e, t, s, n = void 0, i = void 0) {
|
|
|
2563
2562
|
});
|
|
2564
2563
|
}
|
|
2565
2564
|
}
|
|
2566
|
-
async function
|
|
2565
|
+
async function kt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2567
2566
|
if (e.tenant) {
|
|
2568
2567
|
const a = e.tenant.toLowerCase();
|
|
2569
2568
|
fetch(
|
|
@@ -2620,7 +2619,7 @@ function Dt(e, t = void 0, s = void 0) {
|
|
|
2620
2619
|
const o = q();
|
|
2621
2620
|
console.log("platformeInfo", o);
|
|
2622
2621
|
}
|
|
2623
|
-
|
|
2622
|
+
F(
|
|
2624
2623
|
e,
|
|
2625
2624
|
"Common space",
|
|
2626
2625
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2706,12 +2705,12 @@ export {
|
|
|
2706
2705
|
P as _3DSpace_file_update,
|
|
2707
2706
|
ee as _3DSpace_file_update_csr,
|
|
2708
2707
|
Le as _3DSpace_file_url_csr,
|
|
2709
|
-
|
|
2708
|
+
U as _3DSpace_get_csrf,
|
|
2710
2709
|
D as _3DSpace_get_docInfo,
|
|
2711
2710
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2712
2711
|
Pe as _3DSpace_get_multiDocInfo,
|
|
2713
|
-
|
|
2714
|
-
|
|
2712
|
+
F as _3DSpace_get_securityContexts,
|
|
2713
|
+
j as _3DSpace_get_ticket,
|
|
2715
2714
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2716
2715
|
Ke as _3DSpace_lifecycle_changeState,
|
|
2717
2716
|
Be as _3DSpace_lifecycle_getGraph,
|
|
@@ -2737,22 +2736,22 @@ export {
|
|
|
2737
2736
|
pt as _3DSwym_postIdea,
|
|
2738
2737
|
ut as _3DSwym_postIdeaTemplate,
|
|
2739
2738
|
A as _3DSwym_sendMessageData,
|
|
2740
|
-
|
|
2741
|
-
|
|
2739
|
+
Fe as _AppMngt_get_info_user,
|
|
2740
|
+
Ue as _AppMngt_get_users,
|
|
2742
2741
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2743
2742
|
Ct as _Iterop_Auth_CAS,
|
|
2744
|
-
|
|
2743
|
+
jt as _Iterop_GetOneDependencyTable,
|
|
2745
2744
|
vt as _Iterop_GetOneList,
|
|
2746
|
-
|
|
2745
|
+
kt as _Iterop_PatchDependencyTable,
|
|
2747
2746
|
At as _Iterop_PutDependencyTable,
|
|
2748
2747
|
It as _Iterop_businessTableSearchInRows,
|
|
2749
|
-
|
|
2748
|
+
Ft as _Iterop_createBusinessTable,
|
|
2750
2749
|
bt as _Iterop_getAllBusinessTables,
|
|
2751
2750
|
Ot as _Iterop_getOneBusinessTable,
|
|
2752
2751
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2753
2752
|
Tt as _Iterop_jwtUser,
|
|
2754
2753
|
Rt as _Iterop_runProcess,
|
|
2755
|
-
|
|
2754
|
+
Ut as _Iterop_updateBusinessTable,
|
|
2756
2755
|
q as _getPlateformInfos,
|
|
2757
2756
|
$e as _getPlatformServices,
|
|
2758
2757
|
x as _getServiceUrl,
|
|
@@ -2773,14 +2772,14 @@ export {
|
|
|
2773
2772
|
Ye as getAllContextSecurity,
|
|
2774
2773
|
H as getCSRFToken,
|
|
2775
2774
|
_e as getCommunes,
|
|
2776
|
-
|
|
2775
|
+
je as getComplementUG,
|
|
2777
2776
|
He as getDataFrom3DSpace,
|
|
2778
2777
|
we as getDataFromGouvFr,
|
|
2779
2778
|
et as getDatasByTenant,
|
|
2780
2779
|
tt as getDatasFrom3DSpace,
|
|
2781
2780
|
ze as getDownloadDocument,
|
|
2782
2781
|
it as getInfoDocTags,
|
|
2783
|
-
|
|
2782
|
+
ke as getUserGroupsList,
|
|
2784
2783
|
Y as getUsersGroupRules,
|
|
2785
2784
|
Ze as get_3DSpace_csrf,
|
|
2786
2785
|
ve as patchUserGroups,
|