@beam3_dev/api_module 0.0.317 → 0.0.319
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 +57 -57
- 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, {
|
|
@@ -406,56 +406,56 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
406
406
|
n(l);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
const { base_url: s, lists_uri: i } = e,
|
|
409
|
+
function Ke(e, t, n) {
|
|
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
|
-
|
|
431
|
-
msg:
|
|
427
|
+
onFailure(u, p) {
|
|
428
|
+
const f = {
|
|
429
|
+
error: 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 && 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 && n(p);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Be(e, t) {
|
|
453
453
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
454
454
|
m(i, {
|
|
455
455
|
method: "DELETE"
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ee(e, t, n, s = void 0, i = void 0) {
|
|
459
459
|
const { space: r, tenant: o } = e, a = {
|
|
460
460
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
461
461
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -847,7 +847,7 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
847
847
|
try {
|
|
848
848
|
if (l = JSON.parse(l), l?.ticket) {
|
|
849
849
|
const { ticket: y, actionurl: S, jobticket: w } = l;
|
|
850
|
-
|
|
850
|
+
K(
|
|
851
851
|
{ dataelements: { ticket: y, ticketURL: S } },
|
|
852
852
|
n,
|
|
853
853
|
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
|
});
|
|
@@ -949,7 +949,7 @@ async function Qe(e, t, n, s, i = void 0, r = void 0) {
|
|
|
949
949
|
e,
|
|
950
950
|
(o) => {
|
|
951
951
|
o?.items >= 1 && o.data.forEach((a) => {
|
|
952
|
-
|
|
952
|
+
K(
|
|
953
953
|
a,
|
|
954
954
|
t,
|
|
955
955
|
n,
|
|
@@ -1000,7 +1000,7 @@ function ae(e, t = void 0, n = void 0) {
|
|
|
1000
1000
|
} else
|
|
1001
1001
|
console.log("Error de credentials", e);
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function K(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
1004
1004
|
console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: t, fileName: n });
|
|
1005
1005
|
let o = new FormData();
|
|
1006
1006
|
t instanceof Blob || (t = new Blob([t], {
|
|
@@ -1115,7 +1115,7 @@ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
|
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
async function
|
|
1118
|
+
async function B(e, t = void 0, n = void 0) {
|
|
1119
1119
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
1120
1120
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
1121
1121
|
), n && n(
|
|
@@ -1614,7 +1614,7 @@ function ut(e, t, n, s = void 0, i = void 0) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
);
|
|
1616
1616
|
}
|
|
1617
|
-
let
|
|
1617
|
+
let E, q;
|
|
1618
1618
|
const A = [];
|
|
1619
1619
|
async function pt(e, t = void 0, n = void 0) {
|
|
1620
1620
|
e.objID && e.objID !== "" ? N(
|
|
@@ -1636,7 +1636,7 @@ async function pt(e, t = void 0, n = void 0) {
|
|
|
1636
1636
|
);
|
|
1637
1637
|
}
|
|
1638
1638
|
async function lt(e, t = void 0, n = void 0) {
|
|
1639
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1639
|
+
console.log("getDatasByTenant (getDocuments)", e), await B(
|
|
1640
1640
|
e,
|
|
1641
1641
|
(s) => {
|
|
1642
1642
|
const i = {};
|
|
@@ -1654,11 +1654,11 @@ function ft(e, t = void 0, n = void 0) {
|
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
1656
|
e.objIds.forEach((i, r) => {
|
|
1657
|
-
|
|
1657
|
+
B(
|
|
1658
1658
|
e,
|
|
1659
1659
|
i.objID,
|
|
1660
1660
|
(o) => {
|
|
1661
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1661
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (E = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
1664
|
});
|
|
@@ -1666,7 +1666,7 @@ function ft(e, t = void 0, n = void 0) {
|
|
|
1666
1666
|
function pe(e, t, n = void 0, s = void 0) {
|
|
1667
1667
|
ce(
|
|
1668
1668
|
e,
|
|
1669
|
-
|
|
1669
|
+
E,
|
|
1670
1670
|
(i) => {
|
|
1671
1671
|
const r = [...t];
|
|
1672
1672
|
r.find((o) => o.objectID === i.objectId).data = i.data, q = r, A.push(i.data), n && n(A);
|
|
@@ -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(
|
|
@@ -2780,7 +2780,7 @@ async function Gt(e, t, n, s = void 0, i = void 0) {
|
|
|
2780
2780
|
});
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
|
-
async function
|
|
2783
|
+
async function Kt(e, t, n, s, i = void 0, r = void 0) {
|
|
2784
2784
|
if (e.tenant) {
|
|
2785
2785
|
const o = e.tenant.toLowerCase();
|
|
2786
2786
|
fetch(
|
|
@@ -2795,7 +2795,7 @@ async function Et(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
|
-
async function
|
|
2798
|
+
async function Bt(e, t, n, s = void 0, i = void 0) {
|
|
2799
2799
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2800
2800
|
const r = e.tenant.toLowerCase();
|
|
2801
2801
|
fetch(
|
|
@@ -2810,7 +2810,7 @@ async function Kt(e, t, n, s = void 0, i = void 0) {
|
|
|
2810
2810
|
});
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
async function
|
|
2813
|
+
async function Et(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2814
2814
|
if (e.tenant) {
|
|
2815
2815
|
const a = e.tenant.toLowerCase();
|
|
2816
2816
|
fetch(
|
|
@@ -2949,7 +2949,7 @@ export {
|
|
|
2949
2949
|
at as _3DSpace_bookmark_addSubsciptions,
|
|
2950
2950
|
ot as _3DSpace_bookmark_newWorkspace,
|
|
2951
2951
|
b as _3DSpace_csrf,
|
|
2952
|
-
|
|
2952
|
+
B as _3DSpace_download_doc,
|
|
2953
2953
|
ce as _3DSpace_download_multidoc,
|
|
2954
2954
|
G as _3DSpace_file_update,
|
|
2955
2955
|
oe as _3DSpace_file_update_csr,
|
|
@@ -2990,23 +2990,23 @@ export {
|
|
|
2990
2990
|
Pe as _AppMngt_get_users,
|
|
2991
2991
|
Lt as _Iterop_AddOrRemoveRows,
|
|
2992
2992
|
kt as _Iterop_Auth_CAS,
|
|
2993
|
-
|
|
2993
|
+
Bt as _Iterop_GetOneDependencyTable,
|
|
2994
2994
|
Xt as _Iterop_GetOneList,
|
|
2995
|
-
|
|
2995
|
+
Et as _Iterop_PatchDependencyTable,
|
|
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
|
-
|
|
3003
|
-
|
|
3002
|
+
Dt as _Iterop_jwtUser,
|
|
3003
|
+
Kt 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,
|
|
@@ -3018,7 +3018,7 @@ export {
|
|
|
3018
3018
|
z as couleurs,
|
|
3019
3019
|
Me as createUserGroups,
|
|
3020
3020
|
pe as dataMixing,
|
|
3021
|
-
|
|
3021
|
+
Be as deleteUserGroups,
|
|
3022
3022
|
xe as findAdresse,
|
|
3023
3023
|
rt as getAllContextSecurity,
|
|
3024
3024
|
te as getCSRFToken,
|
|
@@ -3030,11 +3030,11 @@ export {
|
|
|
3030
3030
|
ft as getDatasFrom3DSpace,
|
|
3031
3031
|
dt as getDownloadDocument,
|
|
3032
3032
|
ht as getInfoDocTags,
|
|
3033
|
-
|
|
3033
|
+
Ke as getUserGroupsByURIList,
|
|
3034
3034
|
Ge as getUserGroupsList,
|
|
3035
3035
|
ee as getUsersGroupRules,
|
|
3036
3036
|
pt as get_3DSpace_csrf,
|
|
3037
|
-
|
|
3037
|
+
Ee as patchUserGroups,
|
|
3038
3038
|
qe as patchUserGroupsControl,
|
|
3039
3039
|
ut as pushDataIn3DSpace,
|
|
3040
3040
|
Xe as readUserGroupControl,
|