@beam3_dev/api_module 0.0.244 → 0.0.246
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 +27 -28
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -195,7 +195,7 @@ function Y() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function O(e, t = void 0, n = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(s, {
|
|
@@ -553,7 +553,7 @@ function F(e, t = void 0, n = void 0) {
|
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
} else
|
|
556
|
-
|
|
556
|
+
b(
|
|
557
557
|
e,
|
|
558
558
|
(s) => {
|
|
559
559
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
|
|
@@ -563,7 +563,7 @@ function F(e, t = void 0, n = void 0) {
|
|
|
563
563
|
}
|
|
564
564
|
);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function b(e, t = void 0, n = void 0) {
|
|
567
567
|
if (e.space) {
|
|
568
568
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
569
569
|
m(s, {
|
|
@@ -1017,7 +1017,7 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
function Ge(e, t, n = void 0, s = void 0) {
|
|
1019
1019
|
return new Promise((i) => {
|
|
1020
|
-
if (e.token === "" &&
|
|
1020
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1021
1021
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1022
1022
|
let o = {
|
|
1023
1023
|
method: "POST",
|
|
@@ -1048,7 +1048,7 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
function Ke(e, t, n, s = void 0, i = void 0) {
|
|
1050
1050
|
return new Promise((r) => {
|
|
1051
|
-
if (e.token === "" &&
|
|
1051
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1052
1052
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1053
1053
|
let a = {
|
|
1054
1054
|
method: "POST",
|
|
@@ -1080,7 +1080,7 @@ function Ke(e, t, n, s = void 0, i = void 0) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
function Ee(e, t, n = void 0, s = void 0) {
|
|
1082
1082
|
return new Promise((i) => {
|
|
1083
|
-
if (e.token === "" &&
|
|
1083
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1084
1084
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1085
1085
|
j(
|
|
1086
1086
|
e.space,
|
|
@@ -1121,7 +1121,7 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
function Be(e, t, n = void 0, s = void 0) {
|
|
1123
1123
|
return new Promise((i) => {
|
|
1124
|
-
if (e.token === "" &&
|
|
1124
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1125
1125
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1126
1126
|
j(
|
|
1127
1127
|
e.space,
|
|
@@ -1168,7 +1168,7 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
function We(e, t, n, s = void 0, i = void 0) {
|
|
1170
1170
|
return new Promise((r) => {
|
|
1171
|
-
if (e.token === "" &&
|
|
1171
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1172
1172
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1173
1173
|
j(
|
|
1174
1174
|
e.space,
|
|
@@ -1354,7 +1354,7 @@ async function Qe(e, t = void 0, n = void 0) {
|
|
|
1354
1354
|
(s) => {
|
|
1355
1355
|
n && n(s);
|
|
1356
1356
|
}
|
|
1357
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1357
|
+
) : (e.objID === null || e.objID === "") && b(
|
|
1358
1358
|
e,
|
|
1359
1359
|
(s) => {
|
|
1360
1360
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -2346,13 +2346,13 @@ function St(e, t = void 0, n = void 0) {
|
|
|
2346
2346
|
m(a, d);
|
|
2347
2347
|
}
|
|
2348
2348
|
function _t(e, t = void 0, n = void 0) {
|
|
2349
|
-
e.tenant &&
|
|
2349
|
+
e.tenant && O(e, (s) => {
|
|
2350
2350
|
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2351
2351
|
return t && t(i), i;
|
|
2352
2352
|
});
|
|
2353
2353
|
}
|
|
2354
2354
|
function wt(e, t = void 0, n = void 0) {
|
|
2355
|
-
e.tenant &&
|
|
2355
|
+
e.tenant && O(e, (s) => {
|
|
2356
2356
|
const i = s.services.find(
|
|
2357
2357
|
(a) => a.id === "3dpassport"
|
|
2358
2358
|
)?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
@@ -2384,7 +2384,7 @@ function Ct(e, t = void 0, n = void 0) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
2386
|
async function Tt(e, t, n = void 0, s = void 0) {
|
|
2387
|
-
e.tenant &&
|
|
2387
|
+
e.tenant && O(e, (i) => {
|
|
2388
2388
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2389
2389
|
fetch(
|
|
2390
2390
|
`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`,
|
|
@@ -2444,20 +2444,19 @@ async function $t(e, t, n, s = void 0, i = void 0) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
}
|
|
2446
2446
|
async function Nt(e, t, n, s, i = void 0, r = void 0) {
|
|
2447
|
-
e.tenant
|
|
2448
|
-
o.
|
|
2449
|
-
const a = e.tenant.toLowerCase();
|
|
2447
|
+
if (e.tenant) {
|
|
2448
|
+
const o = e.tenant.toLowerCase();
|
|
2450
2449
|
fetch(
|
|
2451
|
-
`https://api.uixhome.fr/${
|
|
2450
|
+
`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
|
|
2452
2451
|
{
|
|
2453
2452
|
method: "POST"
|
|
2454
2453
|
}
|
|
2455
|
-
).then((
|
|
2456
|
-
i && i(
|
|
2457
|
-
}).catch((
|
|
2458
|
-
r && r(
|
|
2454
|
+
).then((a) => a.json()).then((a) => {
|
|
2455
|
+
i && i(a);
|
|
2456
|
+
}).catch((a) => {
|
|
2457
|
+
r && r(a, n, s);
|
|
2459
2458
|
});
|
|
2460
|
-
}
|
|
2459
|
+
}
|
|
2461
2460
|
}
|
|
2462
2461
|
async function It(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2463
2462
|
if (e.tenant) {
|
|
@@ -2496,7 +2495,7 @@ async function vt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2496
2495
|
}
|
|
2497
2496
|
}
|
|
2498
2497
|
async function Ft(e, t, n, s, i = void 0, r = void 0) {
|
|
2499
|
-
e.tenant &&
|
|
2498
|
+
e.tenant && O(e, (o) => {
|
|
2500
2499
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2501
2500
|
const a = e.tenant.toLowerCase();
|
|
2502
2501
|
fetch(
|
|
@@ -2512,7 +2511,7 @@ async function Ft(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2512
2511
|
});
|
|
2513
2512
|
}
|
|
2514
2513
|
async function jt(e, t, n, s = void 0, i = void 0) {
|
|
2515
|
-
e.tenant &&
|
|
2514
|
+
e.tenant && O(e, (r) => {
|
|
2516
2515
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2517
2516
|
const o = e.tenant.toLowerCase();
|
|
2518
2517
|
fetch(
|
|
@@ -2528,7 +2527,7 @@ async function jt(e, t, n, s = void 0, i = void 0) {
|
|
|
2528
2527
|
});
|
|
2529
2528
|
}
|
|
2530
2529
|
async function kt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2531
|
-
e.tenant &&
|
|
2530
|
+
e.tenant && O(e, (a) => {
|
|
2532
2531
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2533
2532
|
const c = e.tenant.toLowerCase();
|
|
2534
2533
|
fetch(
|
|
@@ -2544,7 +2543,7 @@ async function kt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
2544
2543
|
});
|
|
2545
2544
|
}
|
|
2546
2545
|
async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
2547
|
-
e.tenant &&
|
|
2546
|
+
e.tenant && O(e, (o) => {
|
|
2548
2547
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2549
2548
|
const a = e.tenant.toLowerCase();
|
|
2550
2549
|
fetch(
|
|
@@ -2582,7 +2581,7 @@ function xt(e) {
|
|
|
2582
2581
|
}
|
|
2583
2582
|
function Pt(e, t = void 0, n = void 0) {
|
|
2584
2583
|
return console.log("credentials", e), new Promise((s) => {
|
|
2585
|
-
if (e.token === "" &&
|
|
2584
|
+
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2586
2585
|
const o = Y();
|
|
2587
2586
|
console.log("platformeInfo", o);
|
|
2588
2587
|
}
|
|
@@ -2666,7 +2665,7 @@ export {
|
|
|
2666
2665
|
Me as _3DSpace_Update_Doc,
|
|
2667
2666
|
Ve as _3DSpace_bookmark_addSubsciptions,
|
|
2668
2667
|
Xe as _3DSpace_bookmark_newWorkspace,
|
|
2669
|
-
|
|
2668
|
+
b as _3DSpace_csrf,
|
|
2670
2669
|
L as _3DSpace_download_doc,
|
|
2671
2670
|
ie as _3DSpace_download_multidoc,
|
|
2672
2671
|
D as _3DSpace_file_update,
|
|
@@ -2720,7 +2719,7 @@ export {
|
|
|
2720
2719
|
vt as _Iterop_updateBusinessTable,
|
|
2721
2720
|
Y as _getPlateformInfos,
|
|
2722
2721
|
$e as _getPlatformServices,
|
|
2723
|
-
|
|
2722
|
+
O as _getServiceUrl,
|
|
2724
2723
|
Ne as _getServiceUrl_3DPassport,
|
|
2725
2724
|
_t as _getServiceUrl_Iterop,
|
|
2726
2725
|
m as _httpCallAuthenticated,
|