@beam3_dev/api_module 0.0.216 → 0.0.218
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 +56 -58
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -4
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -167,7 +167,7 @@ function Ce(e, t) {
|
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function be(e, t = void 0, s = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(n) => {
|
|
@@ -195,7 +195,7 @@ function Y() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function T(e, t = void 0, s = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(n, {
|
|
@@ -215,7 +215,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Te(e, t = void 0, s = void 0) {
|
|
219
219
|
if (e.tenant) {
|
|
220
220
|
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
221
221
|
m(n, {
|
|
@@ -352,7 +352,7 @@ function q(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,*/*"
|
|
@@ -383,7 +383,7 @@ function Ae(e, t = void 0, s = void 0) {
|
|
|
383
383
|
console.log(p);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ae(e, t) {
|
|
387
387
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
@@ -458,7 +458,7 @@ async function H(e, t, s) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var k = {};
|
|
462
462
|
function z(e, t) {
|
|
463
463
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
464
464
|
}
|
|
@@ -497,8 +497,8 @@ var Q = function(e, t, s, n) {
|
|
|
497
497
|
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
498
498
|
}).filter(Boolean).join(t) : n ? encodeURIComponent(N(n)) + s + encodeURIComponent(N(e)) : "";
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
k.decode = k.parse = Q;
|
|
501
|
+
k.encode = k.stringify = Z;
|
|
502
502
|
async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
504
|
if (t === void 0) {
|
|
@@ -522,7 +522,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
522
522
|
console.log("Le paramètre docids est obligatoire");
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o =
|
|
525
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = k.stringify({
|
|
526
526
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
527
527
|
});
|
|
528
528
|
m(r, {
|
|
@@ -540,7 +540,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function A(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 O(e, t = void 0, s = void 0) {
|
|
|
584
584
|
}
|
|
585
585
|
function U(e, t = void 0, s = void 0) {
|
|
586
586
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
-
|
|
587
|
+
A(
|
|
588
588
|
e,
|
|
589
589
|
(i) => {
|
|
590
590
|
m(n, {
|
|
@@ -639,7 +639,7 @@ function M(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() : A(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
@@ -688,11 +688,11 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
688
688
|
]
|
|
689
689
|
}),
|
|
690
690
|
type: "json",
|
|
691
|
-
onComplete(
|
|
692
|
-
o && o(
|
|
691
|
+
onComplete(b) {
|
|
692
|
+
o && o(b);
|
|
693
693
|
},
|
|
694
|
-
onFailure(
|
|
695
|
-
a && a(
|
|
694
|
+
onFailure(b) {
|
|
695
|
+
a && a(b);
|
|
696
696
|
}
|
|
697
697
|
}, w = e.tenant.toUpperCase();
|
|
698
698
|
m(
|
|
@@ -749,7 +749,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
749
749
|
method: "POST",
|
|
750
750
|
data: g,
|
|
751
751
|
onComplete(_) {
|
|
752
|
-
let w = D(),
|
|
752
|
+
let w = D(), b = {
|
|
753
753
|
method: "POST",
|
|
754
754
|
headers: {
|
|
755
755
|
ENO_CSRF_TOKEN: a,
|
|
@@ -789,7 +789,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
789
789
|
};
|
|
790
790
|
m(
|
|
791
791
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
792
|
-
|
|
792
|
+
b
|
|
793
793
|
);
|
|
794
794
|
},
|
|
795
795
|
onFailure(_) {
|
|
@@ -1277,7 +1277,7 @@ async function Xe(e, t, s = void 0, n = void 0) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
function Ye(e, t, s, n = void 0, i = void 0) {
|
|
1279
1279
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1280
|
-
|
|
1280
|
+
A(
|
|
1281
1281
|
e,
|
|
1282
1282
|
s,
|
|
1283
1283
|
(o) => {
|
|
@@ -1301,7 +1301,7 @@ function Ye(e, t, s, n = void 0, i = void 0) {
|
|
|
1301
1301
|
let G, E;
|
|
1302
1302
|
const x = [];
|
|
1303
1303
|
async function qe(e, t = void 0, s = void 0) {
|
|
1304
|
-
e.objID && e.objID !== "" ?
|
|
1304
|
+
e.objID && e.objID !== "" ? A(
|
|
1305
1305
|
e,
|
|
1306
1306
|
(n) => {
|
|
1307
1307
|
t && t(n);
|
|
@@ -2093,29 +2093,27 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2093
2093
|
onComplete(_) {
|
|
2094
2094
|
const w = { response: JSON.parse(_) };
|
|
2095
2095
|
if (f = Math.ceil(Number(w.response.nb_result) / 100), _ && f >= a) {
|
|
2096
|
-
if (a++,
|
|
2097
|
-
return;
|
|
2098
|
-
if (l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2096
|
+
if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2099
2097
|
d.push(w.response.result);
|
|
2100
2098
|
else {
|
|
2101
|
-
const
|
|
2099
|
+
const b = w.response.result.find(
|
|
2102
2100
|
(v) => v.title.includes(c)
|
|
2103
2101
|
);
|
|
2104
|
-
if (
|
|
2105
|
-
s(
|
|
2102
|
+
if (b) {
|
|
2103
|
+
s(b);
|
|
2106
2104
|
return;
|
|
2107
2105
|
}
|
|
2108
2106
|
}
|
|
2107
|
+
if (s && f < a && !c) {
|
|
2108
|
+
u = !0, s(d);
|
|
2109
|
+
return;
|
|
2110
|
+
}
|
|
2109
2111
|
y(S);
|
|
2110
2112
|
}
|
|
2111
|
-
if (s && f <= a) {
|
|
2112
|
-
u = !0, s(d);
|
|
2113
|
-
return;
|
|
2114
|
-
}
|
|
2115
2113
|
},
|
|
2116
2114
|
onFailure(_, w) {
|
|
2117
|
-
const
|
|
2118
|
-
|
|
2115
|
+
const b = _;
|
|
2116
|
+
b.status = w.status, b.response = w.errormsg, n && n(b);
|
|
2119
2117
|
}
|
|
2120
2118
|
});
|
|
2121
2119
|
};
|
|
@@ -2237,14 +2235,14 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
2237
2235
|
);
|
|
2238
2236
|
}
|
|
2239
2237
|
function mt(e, t = void 0, s = void 0) {
|
|
2240
|
-
e.tenant &&
|
|
2238
|
+
e.tenant && T(e, (n) => {
|
|
2241
2239
|
console.log("serviceUrls", n);
|
|
2242
2240
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2243
2241
|
return t && t(i), i;
|
|
2244
2242
|
});
|
|
2245
2243
|
}
|
|
2246
2244
|
function gt(e, t = void 0, s = void 0) {
|
|
2247
|
-
e.tenant &&
|
|
2245
|
+
e.tenant && T(e, (n) => {
|
|
2248
2246
|
console.log("serviceUrls", n);
|
|
2249
2247
|
const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2250
2248
|
m(o, {
|
|
@@ -2276,7 +2274,7 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2276
2274
|
}
|
|
2277
2275
|
}
|
|
2278
2276
|
async function yt(e, t, s = void 0, n = void 0) {
|
|
2279
|
-
e.tenant &&
|
|
2277
|
+
e.tenant && T(e, (i) => {
|
|
2280
2278
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2281
2279
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2282
2280
|
method: "POST"
|
|
@@ -2288,7 +2286,7 @@ async function yt(e, t, s = void 0, n = void 0) {
|
|
|
2288
2286
|
});
|
|
2289
2287
|
}
|
|
2290
2288
|
async function St(e, t, s = void 0, n = void 0) {
|
|
2291
|
-
e.tenant &&
|
|
2289
|
+
e.tenant && T(e, (i) => {
|
|
2292
2290
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2293
2291
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2294
2292
|
method: "GET"
|
|
@@ -2324,7 +2322,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
|
|
|
2324
2322
|
}
|
|
2325
2323
|
}
|
|
2326
2324
|
async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
2327
|
-
e.tenant &&
|
|
2325
|
+
e.tenant && T(e, (o) => {
|
|
2328
2326
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2329
2327
|
const a = e.tenant.toLowerCase();
|
|
2330
2328
|
fetch(
|
|
@@ -2339,24 +2337,24 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2339
2337
|
});
|
|
2340
2338
|
});
|
|
2341
2339
|
}
|
|
2342
|
-
async function
|
|
2343
|
-
e.tenant &&
|
|
2344
|
-
a.services.find((
|
|
2345
|
-
const c = e.tenant.toLowerCase();
|
|
2340
|
+
async function bt(e, t, s, n = [], i = [], r = void 0, o = void 0) {
|
|
2341
|
+
e.tenant && T(e, (a) => {
|
|
2342
|
+
a.services.find((p) => p.id === "businessprocess")?.url + "";
|
|
2343
|
+
const c = encodeURIComponent(JSON.stringify({ rowsToRemove: i, rowsToAdd: n })), d = e.tenant.toLowerCase();
|
|
2346
2344
|
fetch(
|
|
2347
|
-
`https://api.uixhome.fr/${
|
|
2345
|
+
`https://api.uixhome.fr/${d}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${c}`,
|
|
2348
2346
|
{
|
|
2349
2347
|
method: "POST"
|
|
2350
2348
|
}
|
|
2351
|
-
).then((
|
|
2352
|
-
r && r(
|
|
2353
|
-
}).catch((
|
|
2354
|
-
o && o(
|
|
2349
|
+
).then((p) => p.json()).then((p) => {
|
|
2350
|
+
r && r(p);
|
|
2351
|
+
}).catch((p) => {
|
|
2352
|
+
o && o(p);
|
|
2355
2353
|
});
|
|
2356
2354
|
});
|
|
2357
2355
|
}
|
|
2358
|
-
async function
|
|
2359
|
-
e.tenant &&
|
|
2356
|
+
async function Tt(e, t, s, n = void 0, i = void 0) {
|
|
2357
|
+
e.tenant && T(e, (r) => {
|
|
2360
2358
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2361
2359
|
const o = e.tenant.toLowerCase();
|
|
2362
2360
|
fetch(
|
|
@@ -2372,7 +2370,7 @@ async function bt(e, t, s, n = void 0, i = void 0) {
|
|
|
2372
2370
|
});
|
|
2373
2371
|
}
|
|
2374
2372
|
async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2375
|
-
e.tenant &&
|
|
2373
|
+
e.tenant && T(e, (a) => {
|
|
2376
2374
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2377
2375
|
const c = e.tenant.toLowerCase();
|
|
2378
2376
|
fetch(
|
|
@@ -2388,7 +2386,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2388
2386
|
});
|
|
2389
2387
|
}
|
|
2390
2388
|
async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
2391
|
-
e.tenant &&
|
|
2389
|
+
e.tenant && T(e, (o) => {
|
|
2392
2390
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2393
2391
|
const a = e.tenant.toLowerCase();
|
|
2394
2392
|
fetch(
|
|
@@ -2499,7 +2497,7 @@ export {
|
|
|
2499
2497
|
M as _3DSpace_file_update,
|
|
2500
2498
|
ee as _3DSpace_file_update_csr,
|
|
2501
2499
|
Pe as _3DSpace_file_url_csr,
|
|
2502
|
-
|
|
2500
|
+
A as _3DSpace_get_csrf,
|
|
2503
2501
|
L as _3DSpace_get_docInfo,
|
|
2504
2502
|
ne as _3DSpace_get_downloadTicket_multidoc,
|
|
2505
2503
|
xe as _3DSpace_get_multiDocInfo,
|
|
@@ -2529,9 +2527,9 @@ export {
|
|
|
2529
2527
|
P as _3DSwym_sendMessageData,
|
|
2530
2528
|
ve as _AppMngt_get_info_user,
|
|
2531
2529
|
$e as _AppMngt_get_users,
|
|
2532
|
-
|
|
2530
|
+
bt as _Iterop_AddOrRemoveRows,
|
|
2533
2531
|
gt as _Iterop_Auth_CAS,
|
|
2534
|
-
|
|
2532
|
+
Tt as _Iterop_GetOneDependencyTable,
|
|
2535
2533
|
yt as _Iterop_ListUsers,
|
|
2536
2534
|
Ot as _Iterop_PatchDependencyTable,
|
|
2537
2535
|
$t as _Iterop_PutDependencyTable,
|
|
@@ -2541,9 +2539,9 @@ export {
|
|
|
2541
2539
|
ht as _Iterop_jwtUser,
|
|
2542
2540
|
Ct as _Iterop_runProcess,
|
|
2543
2541
|
Y as _getPlateformInfos,
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2542
|
+
be as _getPlatformServices,
|
|
2543
|
+
T as _getServiceUrl,
|
|
2544
|
+
Te as _getServiceUrl_3DPassport,
|
|
2547
2545
|
mt as _getServiceUrl_Iterop,
|
|
2548
2546
|
m as _httpCallAuthenticated,
|
|
2549
2547
|
_e as _setDraggable,
|
|
@@ -2555,7 +2553,7 @@ export {
|
|
|
2555
2553
|
V as couleurs,
|
|
2556
2554
|
Ne as createUserGroups,
|
|
2557
2555
|
se as dataMixing,
|
|
2558
|
-
|
|
2556
|
+
Ae as deleteUserGroups,
|
|
2559
2557
|
he as findAdresse,
|
|
2560
2558
|
Ve as getAllContextSecurity,
|
|
2561
2559
|
H as getCSRFToken,
|
|
@@ -2567,7 +2565,7 @@ export {
|
|
|
2567
2565
|
ze as getDatasFrom3DSpace,
|
|
2568
2566
|
Xe as getDownloadDocument,
|
|
2569
2567
|
et as getInfoDocTags,
|
|
2570
|
-
|
|
2568
|
+
ke as getUserGroupsList,
|
|
2571
2569
|
q as getUsersGroupRules,
|
|
2572
2570
|
qe as get_3DSpace_csrf,
|
|
2573
2571
|
Fe as patchUserGroups,
|