@beam3_dev/api_module 0.0.157 → 0.0.158
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 +59 -57
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as E } from "uuid";
|
|
2
2
|
import { DateTime as v } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
3
|
+
import { requirejs as O, widget as P } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function R() {
|
|
5
5
|
return E();
|
|
6
6
|
}
|
|
7
7
|
const G = {
|
|
@@ -117,16 +117,16 @@ function Se(e, t, n) {
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function _e(e, t = void 0) {
|
|
121
121
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
122
122
|
let s;
|
|
123
123
|
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: P.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function ye(e, t) {
|
|
130
130
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
131
131
|
n.droppable(e, {
|
|
132
132
|
drop: t
|
|
@@ -137,7 +137,7 @@ async function we(e, t = void 0, n = void 0) {
|
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = P.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -329,14 +329,14 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
329
329
|
onComplete(l) {
|
|
330
330
|
const p = JSON.parse(l), f = {}, u = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (a && Object.keys(a).length > 0) {
|
|
332
|
-
const g = u.filter((
|
|
332
|
+
const g = u.filter((_) => _.owner === a.email), h = u.filter((_) => _.members.includes(a.email)), S = g.concat(h);
|
|
333
333
|
f.iam = S, f.UG = u, f.iamMember = h, V(
|
|
334
334
|
e,
|
|
335
|
-
(
|
|
336
|
-
f.rules =
|
|
335
|
+
(_) => {
|
|
336
|
+
f.rules = _, t && t(f);
|
|
337
337
|
},
|
|
338
|
-
(
|
|
339
|
-
n && n(
|
|
338
|
+
(_) => {
|
|
339
|
+
n && n(_);
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
@@ -625,7 +625,7 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
|
625
625
|
u.append("__fcs__jobTicket", f.ticket), u.append("file_0", s, a);
|
|
626
626
|
const g = {};
|
|
627
627
|
g.method = "POST", g.data = u, g.onComplete = function(h) {
|
|
628
|
-
let S = "temp_" + Date.now(),
|
|
628
|
+
let S = "temp_" + Date.now(), _ = {
|
|
629
629
|
method: "PUT",
|
|
630
630
|
headers: {
|
|
631
631
|
ENO_CSRF_TOKEN: r
|
|
@@ -647,16 +647,16 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
|
647
647
|
}]
|
|
648
648
|
}),
|
|
649
649
|
type: "json",
|
|
650
|
-
onComplete(
|
|
651
|
-
o && o(
|
|
650
|
+
onComplete(y) {
|
|
651
|
+
o && o(y);
|
|
652
652
|
},
|
|
653
|
-
onFailure(
|
|
654
|
-
i && i(
|
|
653
|
+
onFailure(y) {
|
|
654
|
+
i && i(y);
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
m(
|
|
658
658
|
e.space + "/resources/v1/modeler/documents",
|
|
659
|
-
|
|
659
|
+
_
|
|
660
660
|
);
|
|
661
661
|
}, g.onFailure = function(h) {
|
|
662
662
|
i && i(h);
|
|
@@ -664,7 +664,7 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
async function
|
|
667
|
+
async function De(e, t, n, s, a = void 0, r = void 0) {
|
|
668
668
|
const o = e.space, i = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
669
669
|
type: "text/plain"
|
|
670
670
|
}), p = {
|
|
@@ -711,24 +711,24 @@ async function Pe(e, t, n, s, a = void 0, r = void 0) {
|
|
|
711
711
|
}
|
|
712
712
|
}]
|
|
713
713
|
},
|
|
714
|
-
tempId:
|
|
714
|
+
tempId: R()
|
|
715
715
|
}]
|
|
716
716
|
}),
|
|
717
717
|
type: "json",
|
|
718
718
|
timeout: 0,
|
|
719
|
-
onComplete:
|
|
720
|
-
onFailure:
|
|
719
|
+
onComplete: _,
|
|
720
|
+
onFailure: y
|
|
721
721
|
};
|
|
722
722
|
c !== "" && m(p.url_Post, k);
|
|
723
723
|
} else
|
|
724
724
|
console.warn("le store est vide");
|
|
725
725
|
},
|
|
726
|
-
onFailure:
|
|
726
|
+
onFailure: y
|
|
727
727
|
};
|
|
728
|
-
function
|
|
728
|
+
function _(C) {
|
|
729
729
|
console.log("Success -- response ", C.data[0]), a && a(C);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function y(C, k) {
|
|
732
732
|
console.log("Erreur -- response ", C, `
|
|
733
733
|
headers `, k), r && r(C);
|
|
734
734
|
}
|
|
@@ -749,28 +749,28 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
|
|
|
749
749
|
p = t;
|
|
750
750
|
let h = g.couples;
|
|
751
751
|
h = h.filter(
|
|
752
|
-
(S,
|
|
752
|
+
(S, _, y) => _ === y.findIndex(
|
|
753
753
|
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
754
754
|
)
|
|
755
755
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
756
|
-
u || h.forEach((
|
|
757
|
-
if (S ===
|
|
756
|
+
u || h.forEach((_) => {
|
|
757
|
+
if (S === _.role.name && s === _.organization.title)
|
|
758
758
|
u = S, f = s;
|
|
759
|
-
else if (S ===
|
|
760
|
-
let
|
|
759
|
+
else if (S === _.role.name) {
|
|
760
|
+
let y = h.filter(
|
|
761
761
|
(C) => C.role.name === S
|
|
762
762
|
);
|
|
763
|
-
|
|
763
|
+
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
764
764
|
}
|
|
765
765
|
});
|
|
766
766
|
}) : h.forEach((S) => {
|
|
767
767
|
if (n === S.role.name && s === S.organization.title)
|
|
768
768
|
u = n, f = s;
|
|
769
769
|
else if (n === S.role.name) {
|
|
770
|
-
let
|
|
771
|
-
(
|
|
770
|
+
let _ = h.filter(
|
|
771
|
+
(y) => y.role.name === n
|
|
772
772
|
);
|
|
773
|
-
|
|
773
|
+
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
774
774
|
}
|
|
775
775
|
}));
|
|
776
776
|
}
|
|
@@ -786,11 +786,11 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
|
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
async function x(e, t = void 0, n = void 0) {
|
|
789
|
-
return (!e.objID || e.objID === "") && console.warn(
|
|
789
|
+
return (!e.objID || e.objID === "") && (console.warn(
|
|
790
790
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
791
|
-
), (e.space === "" || !e.space) && console.warn(
|
|
791
|
+
), n && n("_3DSpace_download_doc() / Le paramètre objectId est obligatoire")), (e.space === "" || !e.space) && (console.warn(
|
|
792
792
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
793
|
-
), (e.token === "" || !e.token) && W(
|
|
793
|
+
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && W(
|
|
794
794
|
e,
|
|
795
795
|
(s) => {
|
|
796
796
|
e.token = s;
|
|
@@ -802,9 +802,11 @@ async function x(e, t = void 0, n = void 0) {
|
|
|
802
802
|
U(
|
|
803
803
|
e,
|
|
804
804
|
(r) => {
|
|
805
|
-
e?.returnType === "blob" ? fetch(r).then((o) => o.blob()).then((o) => {
|
|
805
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
806
806
|
t && t(o);
|
|
807
|
-
})
|
|
807
|
+
}).catch((o) => {
|
|
808
|
+
n && n(o);
|
|
809
|
+
})) : m(r, {
|
|
808
810
|
onComplete(o) {
|
|
809
811
|
let i;
|
|
810
812
|
try {
|
|
@@ -913,7 +915,7 @@ function Z(e, t, n = void 0, s = void 0, a = void 0) {
|
|
|
913
915
|
}
|
|
914
916
|
});
|
|
915
917
|
}
|
|
916
|
-
function
|
|
918
|
+
function Pe(e, t, n = void 0, s = void 0) {
|
|
917
919
|
return new Promise((a) => {
|
|
918
920
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
919
921
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -952,7 +954,7 @@ function Re(e, t, n = void 0, s = void 0) {
|
|
|
952
954
|
}
|
|
953
955
|
});
|
|
954
956
|
}
|
|
955
|
-
function
|
|
957
|
+
function Re(e, t, n, s = void 0, a = void 0) {
|
|
956
958
|
return new Promise((r) => {
|
|
957
959
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
958
960
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1366,15 +1368,15 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1366
1368
|
e,
|
|
1367
1369
|
o,
|
|
1368
1370
|
(g) => {
|
|
1369
|
-
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "",
|
|
1370
|
-
u.name = h, u.ext = S, u.createBy =
|
|
1371
|
+
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1372
|
+
u.name = h, u.ext = S, u.createBy = _, t.info = { ...u }, ie(
|
|
1371
1373
|
e,
|
|
1372
1374
|
t,
|
|
1373
|
-
(
|
|
1374
|
-
n && n(
|
|
1375
|
+
(y) => {
|
|
1376
|
+
n && n(y);
|
|
1375
1377
|
},
|
|
1376
|
-
(
|
|
1377
|
-
s && s(
|
|
1378
|
+
(y) => {
|
|
1379
|
+
s && s(y);
|
|
1378
1380
|
}
|
|
1379
1381
|
);
|
|
1380
1382
|
},
|
|
@@ -1399,7 +1401,7 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1399
1401
|
}, o = `${r.baseUrl}${r.uri}`, i = {
|
|
1400
1402
|
"Content-Type": "application/json",
|
|
1401
1403
|
Accept: "application/json,text/javascript,*/*"
|
|
1402
|
-
}, c =
|
|
1404
|
+
}, c = R(), d = {
|
|
1403
1405
|
with_indexing_date: !0,
|
|
1404
1406
|
with_synthesis: !0,
|
|
1405
1407
|
with_nls: !1,
|
|
@@ -1714,7 +1716,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1714
1716
|
oe(
|
|
1715
1717
|
i.users,
|
|
1716
1718
|
(l) => {
|
|
1717
|
-
l !== void 0 && (c.id_msg = l.id, d = !0,
|
|
1719
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, D(e, c));
|
|
1718
1720
|
},
|
|
1719
1721
|
(l) => {
|
|
1720
1722
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
@@ -1732,7 +1734,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1732
1734
|
type: "json",
|
|
1733
1735
|
onComplete(p, f, u) {
|
|
1734
1736
|
const g = p;
|
|
1735
|
-
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id,
|
|
1737
|
+
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, D(e, c);
|
|
1736
1738
|
},
|
|
1737
1739
|
onFailure(p, f, u) {
|
|
1738
1740
|
const g = p;
|
|
@@ -1771,7 +1773,7 @@ function oe(e, t, n, s) {
|
|
|
1771
1773
|
});
|
|
1772
1774
|
});
|
|
1773
1775
|
}
|
|
1774
|
-
function
|
|
1776
|
+
function D(e, t, n = void 0, s = void 0) {
|
|
1775
1777
|
const a = {
|
|
1776
1778
|
base: e.space,
|
|
1777
1779
|
uri: "/api/community",
|
|
@@ -2207,9 +2209,9 @@ function gt(e, t = void 0, n = void 0) {
|
|
|
2207
2209
|
});
|
|
2208
2210
|
}
|
|
2209
2211
|
export {
|
|
2210
|
-
|
|
2212
|
+
R as UUID,
|
|
2211
2213
|
gt as _3DSearch_usersGroup,
|
|
2212
|
-
|
|
2214
|
+
De as _3DSpace_Create_Doc,
|
|
2213
2215
|
Ee as _3DSpace_bookmark_addSubsciptions,
|
|
2214
2216
|
Je as _3DSpace_bookmark_newWorkspace,
|
|
2215
2217
|
T as _3DSpace_csrf,
|
|
@@ -2225,10 +2227,10 @@ export {
|
|
|
2225
2227
|
b as _3DSpace_get_securityContexts,
|
|
2226
2228
|
U as _3DSpace_get_ticket,
|
|
2227
2229
|
Le as _3DSpace_lifecycle_changeRevision,
|
|
2228
|
-
|
|
2230
|
+
Re as _3DSpace_lifecycle_changeState,
|
|
2229
2231
|
xe as _3DSpace_lifecycle_getGraph,
|
|
2230
2232
|
Me as _3DSpace_lifecycle_getNextRevision,
|
|
2231
|
-
|
|
2233
|
+
Pe as _3DSpace_lifecycle_getNextStates,
|
|
2232
2234
|
nt as _3DSwym_buildDirectMessage,
|
|
2233
2235
|
it as _3DSwym_deleteIdea,
|
|
2234
2236
|
oe as _3DSwym_findCommunityToInstantMSG,
|
|
@@ -2243,7 +2245,7 @@ export {
|
|
|
2243
2245
|
ct as _3DSwym_get_findUser,
|
|
2244
2246
|
w as _3DSwym_get_version,
|
|
2245
2247
|
st as _3DSwym_postIdea,
|
|
2246
|
-
|
|
2248
|
+
D as _3DSwym_sendMessageData,
|
|
2247
2249
|
be as _AppMngt_get_info_user,
|
|
2248
2250
|
Oe as _AppMngt_get_users,
|
|
2249
2251
|
lt as _Iterop_Auth_CAS,
|
|
@@ -2257,8 +2259,8 @@ export {
|
|
|
2257
2259
|
dt as _getServiceUrl_Iterop,
|
|
2258
2260
|
m as _httpCallAuthenticated,
|
|
2259
2261
|
Se as _setDraggable,
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
+
ye as _setDroppable,
|
|
2263
|
+
_e as _setupTagger,
|
|
2262
2264
|
He as addTagToDoc,
|
|
2263
2265
|
Te as compass_getListAdditionalApps,
|
|
2264
2266
|
G as couleurs,
|