@beam3_dev/api_module 0.0.263 → 0.0.264
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 +53 -33
- 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
|
@@ -271,7 +271,7 @@ function Fe(e, t = void 0, n = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Re(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 Ue(e, t, n = void 0, s = 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, 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 Re(e, t, n = void 0, s = 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
|
n && n(JSON.parse(d));
|
|
@@ -400,7 +400,7 @@ function Ae(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: U,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: u,
|
|
406
406
|
type: "json",
|
|
@@ -416,7 +416,7 @@ function xe(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: U,
|
|
420
420
|
data: JSON.stringify(n),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -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 R(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",
|
|
@@ -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
|
+
R(
|
|
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
|
+
R(
|
|
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
|
+
R(
|
|
1206
1206
|
e.space,
|
|
1207
1207
|
"ESPACE COMMUN",
|
|
1208
1208
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2314,27 +2314,47 @@ function ht(e, t = void 0, n = void 0) {
|
|
|
2314
2314
|
function yt(e, t = void 0, n = void 0) {
|
|
2315
2315
|
return new Promise((s, i) => {
|
|
2316
2316
|
try {
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2317
|
+
const { _3DDashboard: r, _3DSwym: o } = e;
|
|
2318
|
+
let a = null;
|
|
2319
|
+
if (o) {
|
|
2320
|
+
const c = e._3DSwym + "/api/user/getcurrent/";
|
|
2321
|
+
w(e, (d) => {
|
|
2322
|
+
m(c, {
|
|
2323
|
+
method: "GET",
|
|
2324
|
+
headers: {
|
|
2325
|
+
"X-DS-SWYM-CSRFTOKEN": d.result.ServerToken
|
|
2326
|
+
},
|
|
2327
|
+
onComplete(u, p, f) {
|
|
2328
|
+
const l = JSON.parse(u);
|
|
2329
|
+
t && t(l.result), a = l.result;
|
|
2330
|
+
},
|
|
2331
|
+
onFailure(u, p, f) {
|
|
2332
|
+
const l = { erreur: JSON.parse(u), headers: p, xhr: f };
|
|
2333
|
+
n && n(l), n && console.error(
|
|
2334
|
+
"ERROR | _3DSwym_get_currentUser => _3dswym_get_version | onFailure",
|
|
2335
|
+
u
|
|
2336
|
+
);
|
|
2337
|
+
}
|
|
2338
|
+
});
|
|
2339
|
+
});
|
|
2340
|
+
} else {
|
|
2341
|
+
const c = e._3DDashboard + "/api/users/current";
|
|
2342
|
+
m(c, {
|
|
2321
2343
|
method: "GET",
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
onComplete(c, d, u) {
|
|
2326
|
-
const p = JSON.parse(c);
|
|
2327
|
-
t && t(p.result), r = p.result;
|
|
2344
|
+
onComplete(d, u, p) {
|
|
2345
|
+
const f = JSON.parse(d);
|
|
2346
|
+
t && t(f), f.first_name = f.firstName, f.last_name = f.lastName, a = f;
|
|
2328
2347
|
},
|
|
2329
|
-
onFailure(
|
|
2330
|
-
const
|
|
2331
|
-
n && n(
|
|
2348
|
+
onFailure(d, u, p) {
|
|
2349
|
+
const f = { erreur: JSON.parse(d), headers: u, xhr: p };
|
|
2350
|
+
n && n(f), n && console.error(
|
|
2332
2351
|
"ERROR | _3DSwym_get_currentUser => _3dswym_get_version | onFailure",
|
|
2333
|
-
|
|
2352
|
+
d
|
|
2334
2353
|
);
|
|
2335
2354
|
}
|
|
2336
2355
|
});
|
|
2337
|
-
}
|
|
2356
|
+
}
|
|
2357
|
+
a ? s(a) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
|
|
2338
2358
|
} catch {
|
|
2339
2359
|
}
|
|
2340
2360
|
});
|
|
@@ -2520,7 +2540,7 @@ async function Ft(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2520
2540
|
});
|
|
2521
2541
|
}
|
|
2522
2542
|
}
|
|
2523
|
-
async function
|
|
2543
|
+
async function Rt(e, t, n, s = void 0, i = void 0) {
|
|
2524
2544
|
if (e.tenant) {
|
|
2525
2545
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2526
2546
|
n
|
|
@@ -2537,7 +2557,7 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
|
|
|
2537
2557
|
});
|
|
2538
2558
|
}
|
|
2539
2559
|
}
|
|
2540
|
-
async function
|
|
2560
|
+
async function Ut(e, t, n, s, i = void 0, r = void 0) {
|
|
2541
2561
|
if (e.tenant) {
|
|
2542
2562
|
const o = e.tenant.toLowerCase();
|
|
2543
2563
|
fetch(
|
|
@@ -2624,7 +2644,7 @@ function Pt(e, t = void 0, n = void 0) {
|
|
|
2624
2644
|
const o = Y();
|
|
2625
2645
|
console.log("platformeInfo", o);
|
|
2626
2646
|
}
|
|
2627
|
-
|
|
2647
|
+
R(
|
|
2628
2648
|
e,
|
|
2629
2649
|
"Common space",
|
|
2630
2650
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2714,7 +2734,7 @@ export {
|
|
|
2714
2734
|
P as _3DSpace_get_docInfo,
|
|
2715
2735
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2716
2736
|
De as _3DSpace_get_multiDocInfo,
|
|
2717
|
-
|
|
2737
|
+
R as _3DSpace_get_securityContexts,
|
|
2718
2738
|
j as _3DSpace_get_ticket,
|
|
2719
2739
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2720
2740
|
Ke as _3DSpace_lifecycle_changeState,
|
|
@@ -2741,7 +2761,7 @@ export {
|
|
|
2741
2761
|
pt as _3DSwym_postIdea,
|
|
2742
2762
|
ut as _3DSwym_postIdeaTemplate,
|
|
2743
2763
|
v as _3DSwym_sendMessageData,
|
|
2744
|
-
|
|
2764
|
+
Re as _AppMngt_get_info_user,
|
|
2745
2765
|
Fe as _AppMngt_get_users,
|
|
2746
2766
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2747
2767
|
Ct as _Iterop_Auth_CAS,
|
|
@@ -2750,12 +2770,12 @@ export {
|
|
|
2750
2770
|
kt as _Iterop_PatchDependencyTable,
|
|
2751
2771
|
vt as _Iterop_PutDependencyTable,
|
|
2752
2772
|
It as _Iterop_businessTableSearchInRows,
|
|
2753
|
-
|
|
2773
|
+
Rt as _Iterop_createBusinessTable,
|
|
2754
2774
|
bt as _Iterop_getAllBusinessTables,
|
|
2755
2775
|
Ot as _Iterop_getOneBusinessTable,
|
|
2756
2776
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2757
2777
|
Tt as _Iterop_jwtUser,
|
|
2758
|
-
|
|
2778
|
+
Ut as _Iterop_runProcess,
|
|
2759
2779
|
Ft as _Iterop_updateBusinessTable,
|
|
2760
2780
|
Y as _getPlateformInfos,
|
|
2761
2781
|
$e as _getPlatformServices,
|
|
@@ -2770,7 +2790,7 @@ export {
|
|
|
2770
2790
|
X as chunkArray,
|
|
2771
2791
|
Ie as compass_getListAdditionalApps,
|
|
2772
2792
|
W as couleurs,
|
|
2773
|
-
|
|
2793
|
+
Ue as createUserGroups,
|
|
2774
2794
|
oe as dataMixing,
|
|
2775
2795
|
ve as deleteUserGroups,
|
|
2776
2796
|
Se as findAdresse,
|