@beam3_dev/api_module 0.0.299 → 0.0.300
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 +54 -47
- 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
|
@@ -4,7 +4,7 @@ import { requirejs as $, widget as L } from "@widget-lab/3ddashboard-utils";
|
|
|
4
4
|
function Y() {
|
|
5
5
|
return V();
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const z = {
|
|
8
8
|
b3M3Yellow: "#FFB300",
|
|
9
9
|
b3AboutageBlue: "#42A5F5",
|
|
10
10
|
b3UsinageGreen: "#689F38",
|
|
@@ -65,7 +65,7 @@ async function xe(e, t = void 0, s = void 0) {
|
|
|
65
65
|
s && s(n), console.error("Erreur : " + n);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function Fe(e, t =
|
|
68
|
+
async function Fe(e, t = z) {
|
|
69
69
|
let s = O.now().year;
|
|
70
70
|
const n = e, i = [], r = (o) => {
|
|
71
71
|
for (let c in o)
|
|
@@ -100,7 +100,7 @@ async function Fe(e, t = H) {
|
|
|
100
100
|
return o;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function H(e, t, s) {
|
|
104
104
|
const { credentials: n, myArray: i, chunk: r, fn_to_call: a } = e, o = [];
|
|
105
105
|
for (let c = 0; c < i.length; c += r) {
|
|
106
106
|
const d = i.slice(c, c + r);
|
|
@@ -134,7 +134,7 @@ function Q(e, t, s) {
|
|
|
134
134
|
};
|
|
135
135
|
o(r);
|
|
136
136
|
}
|
|
137
|
-
async function
|
|
137
|
+
async function Ie(e, t, s = !0) {
|
|
138
138
|
const n = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
139
139
|
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
140
140
|
}
|
|
@@ -143,7 +143,7 @@ function m(e, t) {
|
|
|
143
143
|
s.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ue(e, t, s) {
|
|
147
147
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
148
148
|
n.draggable(e, {
|
|
149
149
|
data: t,
|
|
@@ -401,7 +401,7 @@ function Ke(e, t) {
|
|
|
401
401
|
method: "DELETE"
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function qe(e, t, s, n = void 0, i = void 0) {
|
|
405
405
|
const { space: r, tenant: a } = e, o = {
|
|
406
406
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
407
407
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -424,7 +424,7 @@ function Be(e, t, s, n = void 0, i = void 0) {
|
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Be(e, t, s, n = void 0, i = void 0) {
|
|
428
428
|
const { space: r } = e, o = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
429
429
|
m(o, {
|
|
430
430
|
method: "PATCH",
|
|
@@ -552,7 +552,7 @@ async function Xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function I(e, t = void 0, s = void 0) {
|
|
556
556
|
if (e.objID && e.objID !== "") {
|
|
557
557
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
558
558
|
m(n, {
|
|
@@ -596,7 +596,7 @@ function T(e, t = void 0, s = void 0) {
|
|
|
596
596
|
}
|
|
597
597
|
function k(e, t = void 0, s = void 0) {
|
|
598
598
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
599
|
-
|
|
599
|
+
I(
|
|
600
600
|
e,
|
|
601
601
|
(i) => {
|
|
602
602
|
m(n, {
|
|
@@ -651,7 +651,7 @@ function G(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
651
651
|
r,
|
|
652
652
|
a
|
|
653
653
|
);
|
|
654
|
-
e.token ? o() :
|
|
654
|
+
e.token ? o() : I(
|
|
655
655
|
e,
|
|
656
656
|
t,
|
|
657
657
|
(c) => {
|
|
@@ -663,12 +663,19 @@ function G(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
663
663
|
);
|
|
664
664
|
}
|
|
665
665
|
function ae(e, t, s, n, i, r, a = void 0, o = void 0) {
|
|
666
|
-
const c = e.space + `/resources/v1/modeler/documents
|
|
666
|
+
const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
|
|
667
667
|
m(c, {
|
|
668
668
|
method: "PUT",
|
|
669
669
|
headers: {
|
|
670
670
|
ENO_CSRF_TOKEN: e.token
|
|
671
671
|
},
|
|
672
|
+
data: JSON.stringify({
|
|
673
|
+
csrf: {
|
|
674
|
+
name: "ENO_CSRF_TOKEN",
|
|
675
|
+
value: e.token
|
|
676
|
+
}
|
|
677
|
+
}),
|
|
678
|
+
type: "json",
|
|
672
679
|
onComplete(d, u, p) {
|
|
673
680
|
const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, h = new FormData();
|
|
674
681
|
let g;
|
|
@@ -711,7 +718,7 @@ function ae(e, t, s, n, i, r, a = void 0, o = void 0) {
|
|
|
711
718
|
}
|
|
712
719
|
};
|
|
713
720
|
e.tenant.toUpperCase(), m(
|
|
714
|
-
e.space + `/resources/v1/modeler/documents
|
|
721
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`,
|
|
715
722
|
w
|
|
716
723
|
);
|
|
717
724
|
}, _.onFailure = function(y) {
|
|
@@ -859,7 +866,7 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
859
866
|
}
|
|
860
867
|
);
|
|
861
868
|
}
|
|
862
|
-
async function
|
|
869
|
+
async function ze(e, t, s, n = void 0, i = void 0) {
|
|
863
870
|
e.space, e.token, e.ctx, J(
|
|
864
871
|
e,
|
|
865
872
|
t,
|
|
@@ -884,7 +891,7 @@ async function He(e, t, s, n = void 0, i = void 0) {
|
|
|
884
891
|
}
|
|
885
892
|
);
|
|
886
893
|
}
|
|
887
|
-
async function
|
|
894
|
+
async function He(e, t, s, n, i = void 0, r = void 0) {
|
|
888
895
|
oe(
|
|
889
896
|
e,
|
|
890
897
|
(a) => {
|
|
@@ -1005,7 +1012,7 @@ function re(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
1005
1012
|
}
|
|
1006
1013
|
});
|
|
1007
1014
|
}
|
|
1008
|
-
function
|
|
1015
|
+
function U(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, a = !1) {
|
|
1009
1016
|
const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
1010
1017
|
m(o, {
|
|
1011
1018
|
method: "GET",
|
|
@@ -1054,7 +1061,7 @@ function I(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, a = !1
|
|
|
1054
1061
|
}
|
|
1055
1062
|
});
|
|
1056
1063
|
}
|
|
1057
|
-
async function
|
|
1064
|
+
async function q(e, t = void 0, s = void 0) {
|
|
1058
1065
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
1059
1066
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
1060
1067
|
), s && s(
|
|
@@ -1107,7 +1114,7 @@ async function B(e, t = void 0, s = void 0) {
|
|
|
1107
1114
|
});
|
|
1108
1115
|
}
|
|
1109
1116
|
async function ce(e, t, s = void 0, n = void 0) {
|
|
1110
|
-
typeof t < "u" && Array.isArray(t) && t?.length > 0 ?
|
|
1117
|
+
typeof t < "u" && Array.isArray(t) && t?.length > 0 ? H({
|
|
1111
1118
|
credentials: e,
|
|
1112
1119
|
myArray: t,
|
|
1113
1120
|
chunk: 80,
|
|
@@ -1240,7 +1247,7 @@ function et(e, t, s = void 0, n = void 0) {
|
|
|
1240
1247
|
return new Promise((i) => {
|
|
1241
1248
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1242
1249
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1243
|
-
|
|
1250
|
+
U(
|
|
1244
1251
|
e.space,
|
|
1245
1252
|
"ESPACE COMMUN",
|
|
1246
1253
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1281,7 +1288,7 @@ function tt(e, t, s = void 0, n = void 0) {
|
|
|
1281
1288
|
return new Promise((i) => {
|
|
1282
1289
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1283
1290
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1284
|
-
|
|
1291
|
+
U(
|
|
1285
1292
|
e.space,
|
|
1286
1293
|
"ESPACE COMMUN",
|
|
1287
1294
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1328,7 +1335,7 @@ function nt(e, t, s, n = void 0, i = void 0) {
|
|
|
1328
1335
|
return new Promise((r) => {
|
|
1329
1336
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1330
1337
|
const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1331
|
-
|
|
1338
|
+
U(
|
|
1332
1339
|
e.space,
|
|
1333
1340
|
"ESPACE COMMUN",
|
|
1334
1341
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1529,7 +1536,7 @@ async function ct(e, t, s = void 0, n = void 0) {
|
|
|
1529
1536
|
}
|
|
1530
1537
|
function dt(e, t, s, n = void 0, i = void 0) {
|
|
1531
1538
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1532
|
-
e = { ...e, objID: s },
|
|
1539
|
+
e = { ...e, objID: s }, I(
|
|
1533
1540
|
e,
|
|
1534
1541
|
(a) => {
|
|
1535
1542
|
console.log("_3DSpace_get_csrf | onDone | data", a);
|
|
@@ -1553,10 +1560,10 @@ function dt(e, t, s, n = void 0, i = void 0) {
|
|
|
1553
1560
|
}
|
|
1554
1561
|
);
|
|
1555
1562
|
}
|
|
1556
|
-
let
|
|
1563
|
+
let B, E;
|
|
1557
1564
|
const A = [];
|
|
1558
1565
|
async function ut(e, t = void 0, s = void 0) {
|
|
1559
|
-
e.objID && e.objID !== "" ?
|
|
1566
|
+
e.objID && e.objID !== "" ? I(
|
|
1560
1567
|
e,
|
|
1561
1568
|
(n) => {
|
|
1562
1569
|
t && t(n);
|
|
@@ -1575,7 +1582,7 @@ async function ut(e, t = void 0, s = void 0) {
|
|
|
1575
1582
|
);
|
|
1576
1583
|
}
|
|
1577
1584
|
async function pt(e, t = void 0, s = void 0) {
|
|
1578
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1585
|
+
console.log("getDatasByTenant (getDocuments)", e), await q(
|
|
1579
1586
|
e,
|
|
1580
1587
|
(n) => {
|
|
1581
1588
|
const i = {};
|
|
@@ -1593,11 +1600,11 @@ function lt(e, t = void 0, s = void 0) {
|
|
|
1593
1600
|
return;
|
|
1594
1601
|
}
|
|
1595
1602
|
e.objIds.forEach((i, r) => {
|
|
1596
|
-
|
|
1603
|
+
q(
|
|
1597
1604
|
e,
|
|
1598
1605
|
i.objID,
|
|
1599
1606
|
(a) => {
|
|
1600
|
-
n.push({ [i.name]: a }), i.name === "dbProjets" && (
|
|
1607
|
+
n.push({ [i.name]: a }), i.name === "dbProjets" && (B = a.affaires.map((o) => o.objectID), pe(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1601
1608
|
}
|
|
1602
1609
|
);
|
|
1603
1610
|
});
|
|
@@ -1605,7 +1612,7 @@ function lt(e, t = void 0, s = void 0) {
|
|
|
1605
1612
|
function pe(e, t, s = void 0, n = void 0) {
|
|
1606
1613
|
ce(
|
|
1607
1614
|
e,
|
|
1608
|
-
|
|
1615
|
+
B,
|
|
1609
1616
|
(i) => {
|
|
1610
1617
|
const r = [...t];
|
|
1611
1618
|
r.find((a) => a.objectID === i.objectId).data = i.data, E = r, A.push(i.data), s && s(A);
|
|
@@ -2519,7 +2526,7 @@ function Ft(e, t = void 0, s = void 0) {
|
|
|
2519
2526
|
}
|
|
2520
2527
|
});
|
|
2521
2528
|
}
|
|
2522
|
-
function
|
|
2529
|
+
function It(e, t, s = void 0, n = void 0) {
|
|
2523
2530
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2524
2531
|
C(
|
|
2525
2532
|
e,
|
|
@@ -2539,7 +2546,7 @@ function Ut(e, t, s = void 0, n = void 0) {
|
|
|
2539
2546
|
n
|
|
2540
2547
|
);
|
|
2541
2548
|
}
|
|
2542
|
-
function
|
|
2549
|
+
function Ut(e, t = void 0, s = void 0) {
|
|
2543
2550
|
const {
|
|
2544
2551
|
_3DSwym: n,
|
|
2545
2552
|
_3DSwym_token: i,
|
|
@@ -2749,7 +2756,7 @@ async function Kt(e, t, s, n = void 0, i = void 0) {
|
|
|
2749
2756
|
});
|
|
2750
2757
|
}
|
|
2751
2758
|
}
|
|
2752
|
-
async function
|
|
2759
|
+
async function qt(e, t, s, n, i, r = void 0, a = void 0) {
|
|
2753
2760
|
if (e.tenant) {
|
|
2754
2761
|
const o = e.tenant.toLowerCase();
|
|
2755
2762
|
fetch(
|
|
@@ -2764,7 +2771,7 @@ async function Bt(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
2764
2771
|
});
|
|
2765
2772
|
}
|
|
2766
2773
|
}
|
|
2767
|
-
async function
|
|
2774
|
+
async function Bt(e, t, s, n, i = void 0, r = void 0) {
|
|
2768
2775
|
if (e.tenant) {
|
|
2769
2776
|
const a = e.tenant.toLowerCase();
|
|
2770
2777
|
fetch(
|
|
@@ -2806,7 +2813,7 @@ function Wt(e, t = void 0, s = void 0) {
|
|
|
2806
2813
|
const a = Z();
|
|
2807
2814
|
console.log("platformeInfo", a);
|
|
2808
2815
|
}
|
|
2809
|
-
|
|
2816
|
+
U(
|
|
2810
2817
|
e,
|
|
2811
2818
|
"Common space",
|
|
2812
2819
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2882,22 +2889,22 @@ function Wt(e, t = void 0, s = void 0) {
|
|
|
2882
2889
|
export {
|
|
2883
2890
|
Y as UUID,
|
|
2884
2891
|
Wt as _3DSearch_usersGroup,
|
|
2885
|
-
|
|
2886
|
-
|
|
2892
|
+
He as _3DSpace_Create_Doc,
|
|
2893
|
+
ze as _3DSpace_Update_Doc,
|
|
2887
2894
|
Ye as _3DSpace_Upload_File,
|
|
2888
2895
|
at as _3DSpace_bookmark_addSubsciptions,
|
|
2889
2896
|
it as _3DSpace_bookmark_newWorkspace,
|
|
2890
2897
|
T as _3DSpace_csrf,
|
|
2891
|
-
|
|
2898
|
+
q as _3DSpace_download_doc,
|
|
2892
2899
|
ce as _3DSpace_download_multidoc,
|
|
2893
2900
|
G as _3DSpace_file_update,
|
|
2894
2901
|
ae as _3DSpace_file_update_csr,
|
|
2895
2902
|
We as _3DSpace_file_url_csr,
|
|
2896
|
-
|
|
2903
|
+
I as _3DSpace_get_csrf,
|
|
2897
2904
|
J as _3DSpace_get_docInfo,
|
|
2898
2905
|
de as _3DSpace_get_downloadTicket_multidoc,
|
|
2899
2906
|
Xe as _3DSpace_get_multiDocInfo,
|
|
2900
|
-
|
|
2907
|
+
U as _3DSpace_get_securityContexts,
|
|
2901
2908
|
k as _3DSpace_get_ticket,
|
|
2902
2909
|
nt as _3DSpace_lifecycle_changeRevision,
|
|
2903
2910
|
Ze as _3DSpace_lifecycle_changeState,
|
|
@@ -2907,7 +2914,7 @@ export {
|
|
|
2907
2914
|
st as _3DSpace_lifecycle_getRevisions,
|
|
2908
2915
|
Ve as _3DSpace_put_docInfo,
|
|
2909
2916
|
xt as _3DSwym_ForwardIdea,
|
|
2910
|
-
|
|
2917
|
+
Ut as _3DSwym_addComment,
|
|
2911
2918
|
wt as _3DSwym_buildDirectMessage,
|
|
2912
2919
|
bt as _3DSwym_deleteIdea,
|
|
2913
2920
|
$t as _3DSwym_editIdea,
|
|
@@ -2921,7 +2928,7 @@ export {
|
|
|
2921
2928
|
Ot as _3DSwym_getOneIdea,
|
|
2922
2929
|
C as _3DSwym_get_Token,
|
|
2923
2930
|
Ft as _3DSwym_get_currentUser,
|
|
2924
|
-
|
|
2931
|
+
It as _3DSwym_get_findUser,
|
|
2925
2932
|
Tt as _3DSwym_postIdea,
|
|
2926
2933
|
Ct as _3DSwym_postIdeaTemplate,
|
|
2927
2934
|
P as _3DSwym_sendMessageData,
|
|
@@ -2931,8 +2938,8 @@ export {
|
|
|
2931
2938
|
jt as _Iterop_Auth_CAS,
|
|
2932
2939
|
Kt as _Iterop_GetOneDependencyTable,
|
|
2933
2940
|
Et as _Iterop_GetOneList,
|
|
2934
|
-
|
|
2935
|
-
|
|
2941
|
+
qt as _Iterop_PatchDependencyTable,
|
|
2942
|
+
Bt as _Iterop_PutDependencyTable,
|
|
2936
2943
|
Lt as _Iterop_businessTableSearchInRows,
|
|
2937
2944
|
Jt as _Iterop_createBusinessTable,
|
|
2938
2945
|
Dt as _Iterop_getAllBusinessTables,
|
|
@@ -2948,13 +2955,13 @@ export {
|
|
|
2948
2955
|
ve as _getServiceUrl_3DPassport,
|
|
2949
2956
|
Rt as _getServiceUrl_Iterop,
|
|
2950
2957
|
m as _httpCallAuthenticated,
|
|
2951
|
-
|
|
2958
|
+
Ue as _setDraggable,
|
|
2952
2959
|
je as _setDroppable,
|
|
2953
2960
|
Re as _setupTagger,
|
|
2954
2961
|
ft as addTagToDoc,
|
|
2955
|
-
|
|
2962
|
+
H as chunkArray,
|
|
2956
2963
|
Ae as compass_getListAdditionalApps,
|
|
2957
|
-
|
|
2964
|
+
z as couleurs,
|
|
2958
2965
|
Me as createUserGroups,
|
|
2959
2966
|
pe as dataMixing,
|
|
2960
2967
|
Ke as deleteUserGroups,
|
|
@@ -2972,12 +2979,12 @@ export {
|
|
|
2972
2979
|
Ge as getUserGroupsList,
|
|
2973
2980
|
ee as getUsersGroupRules,
|
|
2974
2981
|
ut as get_3DSpace_csrf,
|
|
2975
|
-
|
|
2976
|
-
|
|
2982
|
+
qe as patchUserGroups,
|
|
2983
|
+
Be as patchUserGroupsControl,
|
|
2977
2984
|
dt as pushDataIn3DSpace,
|
|
2978
2985
|
Ee as readUserGroupControl,
|
|
2979
2986
|
mt as removeTagToDoc,
|
|
2980
2987
|
Xt as sayHello,
|
|
2981
|
-
|
|
2988
|
+
Ie as updateEvent
|
|
2982
2989
|
};
|
|
2983
2990
|
//# sourceMappingURL=wb3Api.js.map
|