@beam3_dev/api_module 0.0.317 → 0.0.318
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 +35 -35
- 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 Z() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function De(e, t = void 0, n = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(s, {
|
|
@@ -227,7 +227,7 @@ function M(e, t = void 0, n = void 0) {
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function ve(e, t = void 0, n = void 0) {
|
|
231
231
|
if (e.tenant) {
|
|
232
232
|
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
233
233
|
m(s, {
|
|
@@ -407,46 +407,46 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
function Ee(e, t, n) {
|
|
410
|
-
const { base_url: s, lists_uri: i } = e,
|
|
410
|
+
const { base_url: s, lists_uri: i, currentUser: r } = e, o = {
|
|
411
411
|
"Content-Type": "application/json",
|
|
412
|
-
Accept: "
|
|
413
|
-
},
|
|
412
|
+
"Accept-Language": "fr"
|
|
413
|
+
}, a = {
|
|
414
414
|
baseUrl: s,
|
|
415
415
|
uri: "/3drdfpersist/resources/v1/usersgroup/groups"
|
|
416
|
-
},
|
|
416
|
+
}, c = a.baseUrl + a.uri, d = {
|
|
417
417
|
method: "POST",
|
|
418
|
-
headers:
|
|
418
|
+
headers: o,
|
|
419
419
|
body: JSON.stringify({ groups: i })
|
|
420
420
|
};
|
|
421
|
-
JSON.stringify({ groups: i });
|
|
422
421
|
try {
|
|
423
|
-
m(
|
|
424
|
-
options:
|
|
425
|
-
onComplete(
|
|
426
|
-
t && t(
|
|
422
|
+
m(c, {
|
|
423
|
+
options: d,
|
|
424
|
+
onComplete(u) {
|
|
425
|
+
t && t(u);
|
|
427
426
|
},
|
|
428
|
-
onFailure(
|
|
429
|
-
const
|
|
430
|
-
infoError:
|
|
431
|
-
msg:
|
|
427
|
+
onFailure(u, p) {
|
|
428
|
+
const f = {
|
|
429
|
+
infoError: u,
|
|
430
|
+
msg: p,
|
|
432
431
|
fonction: "getUserGroupsByURIList()",
|
|
433
432
|
catch: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
|
|
434
|
-
cause:
|
|
433
|
+
cause: u
|
|
435
434
|
})
|
|
436
435
|
};
|
|
437
|
-
n(
|
|
436
|
+
n(f);
|
|
438
437
|
}
|
|
439
438
|
});
|
|
440
|
-
} catch (
|
|
441
|
-
console.log(
|
|
442
|
-
const
|
|
443
|
-
|
|
439
|
+
} catch (u) {
|
|
440
|
+
console.log(u);
|
|
441
|
+
const p = {
|
|
442
|
+
sendOptions: d,
|
|
443
|
+
infoError: u,
|
|
444
444
|
fonction: "getUserGroupsByURIList()",
|
|
445
445
|
catch: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
|
|
446
|
-
cause:
|
|
446
|
+
cause: u
|
|
447
447
|
})
|
|
448
448
|
};
|
|
449
|
-
n(
|
|
449
|
+
n(p);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
function Ke(e, t) {
|
|
@@ -855,9 +855,9 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
855
855
|
const F = new DOMParser().parseFromString(
|
|
856
856
|
_,
|
|
857
857
|
"text/html"
|
|
858
|
-
).body.firstChild.querySelector("input").getAttributeNode("value").value,
|
|
858
|
+
).body.firstChild.querySelector("input").getAttributeNode("value").value, D = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(F)}`;
|
|
859
859
|
let W = /(?:\.([^.]+))?$/.exec(t)[1];
|
|
860
|
-
const
|
|
860
|
+
const v = JSON.stringify({
|
|
861
861
|
actions: [],
|
|
862
862
|
businessobj: {
|
|
863
863
|
description: e?.description ? e?.description : "",
|
|
@@ -873,14 +873,14 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
873
873
|
},
|
|
874
874
|
collabspace: a
|
|
875
875
|
});
|
|
876
|
-
m(
|
|
876
|
+
m(D, {
|
|
877
877
|
method: "POST",
|
|
878
878
|
headers: {
|
|
879
879
|
Accept: "application/json",
|
|
880
880
|
"Content-Type": "application/json;charset=UTF-8",
|
|
881
881
|
"X-DS-CSRFTOKEN": p
|
|
882
882
|
},
|
|
883
|
-
data:
|
|
883
|
+
data: v,
|
|
884
884
|
type: "json",
|
|
885
885
|
onComplete(I, Ce, be) {
|
|
886
886
|
s && s(I);
|
|
@@ -888,7 +888,7 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
888
888
|
onFailure(I) {
|
|
889
889
|
console.warn(
|
|
890
890
|
"_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
|
|
891
|
-
{ url:
|
|
891
|
+
{ url: D, bodyRequest: v, err: I }
|
|
892
892
|
), i && i(I);
|
|
893
893
|
}
|
|
894
894
|
});
|
|
@@ -2655,7 +2655,7 @@ function kt(e, t = void 0, n = void 0) {
|
|
|
2655
2655
|
});
|
|
2656
2656
|
});
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function Dt(e, t = void 0, n = void 0) {
|
|
2659
2659
|
if (e.tenant) {
|
|
2660
2660
|
const s = e.tenant.toLowerCase();
|
|
2661
2661
|
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
@@ -2667,7 +2667,7 @@ function vt(e, t = void 0, n = void 0) {
|
|
|
2667
2667
|
});
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
async function
|
|
2670
|
+
async function vt(e, t, n = void 0, s = void 0) {
|
|
2671
2671
|
if (e.tenant) {
|
|
2672
2672
|
const i = e.tenant.toLowerCase();
|
|
2673
2673
|
fetch(
|
|
@@ -2996,17 +2996,17 @@ export {
|
|
|
2996
2996
|
qt as _Iterop_PutDependencyTable,
|
|
2997
2997
|
Mt as _Iterop_businessTableSearchInRows,
|
|
2998
2998
|
Gt as _Iterop_createBusinessTable,
|
|
2999
|
-
|
|
2999
|
+
vt as _Iterop_getAllBusinessTables,
|
|
3000
3000
|
At as _Iterop_getOneBusinessTable,
|
|
3001
3001
|
Pt as _Iterop_getOneBusinessTableRows,
|
|
3002
|
-
|
|
3002
|
+
Dt as _Iterop_jwtUser,
|
|
3003
3003
|
Et as _Iterop_runProcess,
|
|
3004
3004
|
Jt as _Iterop_updateBusinessTable,
|
|
3005
|
-
|
|
3005
|
+
De as _getMe,
|
|
3006
3006
|
Z as _getPlateformInfos,
|
|
3007
3007
|
ke as _getPlatformServices,
|
|
3008
3008
|
M as _getServiceUrl,
|
|
3009
|
-
|
|
3009
|
+
ve as _getServiceUrl_3DPassport,
|
|
3010
3010
|
jt as _getServiceUrl_Iterop,
|
|
3011
3011
|
m as _httpCallAuthenticated,
|
|
3012
3012
|
Re as _setDraggable,
|