@beam3_dev/api_module 0.0.167 → 0.0.168
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 +37 -37
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as G } 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 R } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function x() {
|
|
5
5
|
return G();
|
|
6
6
|
}
|
|
7
7
|
const E = {
|
|
@@ -121,7 +121,7 @@ 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: R.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
@@ -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 = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -618,32 +618,32 @@ function q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
618
618
|
m(r, {
|
|
619
619
|
method: "PUT",
|
|
620
620
|
headers: {
|
|
621
|
-
ENO_CSRF_TOKEN:
|
|
621
|
+
ENO_CSRF_TOKEN: e.token
|
|
622
622
|
},
|
|
623
623
|
onComplete(d, p, l) {
|
|
624
|
-
const f = JSON.parse(d).data[0].dataelements,
|
|
625
|
-
|
|
626
|
-
const
|
|
627
|
-
|
|
628
|
-
let
|
|
624
|
+
const f = JSON.parse(d).csrf, u = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
625
|
+
g.append("__fcs__jobTicket", u.ticket), g.append("file_0", s, i);
|
|
626
|
+
const h = {};
|
|
627
|
+
h.method = "POST", h.data = g, h.onComplete = function(S) {
|
|
628
|
+
let _ = {
|
|
629
629
|
method: "PUT",
|
|
630
630
|
headers: {
|
|
631
|
-
|
|
631
|
+
SecurityContext: e.ctx
|
|
632
632
|
},
|
|
633
633
|
data: JSON.stringify({
|
|
634
|
+
csrf: f,
|
|
634
635
|
data: [{
|
|
635
636
|
id: t,
|
|
637
|
+
updateAction: "NONE",
|
|
636
638
|
relateddata: {
|
|
637
639
|
files: [{
|
|
638
|
-
id: n,
|
|
639
640
|
dataelements: {
|
|
640
641
|
title: i,
|
|
641
|
-
receipt:
|
|
642
|
+
receipt: S
|
|
642
643
|
},
|
|
643
644
|
updateAction: "REVISE"
|
|
644
645
|
}]
|
|
645
|
-
}
|
|
646
|
-
tempId: S
|
|
646
|
+
}
|
|
647
647
|
}]
|
|
648
648
|
}),
|
|
649
649
|
type: "json",
|
|
@@ -658,13 +658,13 @@ function q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
658
658
|
e.space + `/resources/v1/modeler/documents/${t}`,
|
|
659
659
|
_
|
|
660
660
|
);
|
|
661
|
-
},
|
|
662
|
-
a && a(
|
|
663
|
-
},
|
|
661
|
+
}, h.onFailure = function(S) {
|
|
662
|
+
a && a(S);
|
|
663
|
+
}, h.timeout = 0, m(u.ticketURL, h);
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
async function
|
|
667
|
+
async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
668
668
|
const o = e.space, a = e.token, r = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
|
|
669
669
|
type: "text/plain"
|
|
670
670
|
}), l = {
|
|
@@ -711,7 +711,7 @@ async function Re(e, t, n, s, i = void 0, c = void 0) {
|
|
|
711
711
|
}
|
|
712
712
|
}]
|
|
713
713
|
},
|
|
714
|
-
tempId:
|
|
714
|
+
tempId: x()
|
|
715
715
|
}]
|
|
716
716
|
}),
|
|
717
717
|
type: "json",
|
|
@@ -785,7 +785,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
785
785
|
}
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
-
async function
|
|
788
|
+
async function D(e, t = void 0, n = void 0) {
|
|
789
789
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
790
790
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
791
791
|
), n && n("_3DSpace_download_doc() / Le paramètre objectId est obligatoire")), (e.space === "" || !e.space) && (console.warn(
|
|
@@ -915,7 +915,7 @@ function Z(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
915
915
|
}
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function Re(e, t, n = void 0, s = void 0) {
|
|
919
919
|
return new Promise((i) => {
|
|
920
920
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
921
921
|
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -954,7 +954,7 @@ function Pe(e, t, n = void 0, s = void 0) {
|
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function xe(e, t, n, s = void 0, i = void 0) {
|
|
958
958
|
return new Promise((c) => {
|
|
959
959
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
960
960
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -994,7 +994,7 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function De(e, t, n = void 0, s = void 0) {
|
|
998
998
|
return new Promise((i) => {
|
|
999
999
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1000
1000
|
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -1273,7 +1273,7 @@ async function We(e, t = void 0, n = void 0) {
|
|
|
1273
1273
|
);
|
|
1274
1274
|
}
|
|
1275
1275
|
async function Xe(e, t = void 0, n = void 0) {
|
|
1276
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1276
|
+
console.log("getDatasByTenant (getDocuments)", e), await D(
|
|
1277
1277
|
e,
|
|
1278
1278
|
(s) => {
|
|
1279
1279
|
const i = {};
|
|
@@ -1291,7 +1291,7 @@ function Ye(e, t = void 0, n = void 0) {
|
|
|
1291
1291
|
return;
|
|
1292
1292
|
}
|
|
1293
1293
|
e.objIds.forEach((i, c) => {
|
|
1294
|
-
|
|
1294
|
+
D(
|
|
1295
1295
|
e,
|
|
1296
1296
|
i.objID,
|
|
1297
1297
|
(o) => {
|
|
@@ -1401,7 +1401,7 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1401
1401
|
}, o = `${c.baseUrl}${c.uri}`, a = {
|
|
1402
1402
|
"Content-Type": "application/json",
|
|
1403
1403
|
Accept: "application/json,text/javascript,*/*"
|
|
1404
|
-
}, r =
|
|
1404
|
+
}, r = x(), d = {
|
|
1405
1405
|
with_indexing_date: !0,
|
|
1406
1406
|
with_synthesis: !0,
|
|
1407
1407
|
with_nls: !1,
|
|
@@ -1716,7 +1716,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1716
1716
|
oe(
|
|
1717
1717
|
a.users,
|
|
1718
1718
|
(p) => {
|
|
1719
|
-
p !== void 0 && (r.id_msg = p.id, d = !0,
|
|
1719
|
+
p !== void 0 && (r.id_msg = p.id, d = !0, P(e, r));
|
|
1720
1720
|
},
|
|
1721
1721
|
(p) => {
|
|
1722
1722
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), r.id_msg = "";
|
|
@@ -1734,7 +1734,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1734
1734
|
type: "json",
|
|
1735
1735
|
onComplete(l, f, u) {
|
|
1736
1736
|
const g = l;
|
|
1737
|
-
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), r.id_msg = g.result.id,
|
|
1737
|
+
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), r.id_msg = g.result.id, P(e, r);
|
|
1738
1738
|
},
|
|
1739
1739
|
onFailure(l, f, u) {
|
|
1740
1740
|
const g = l;
|
|
@@ -1773,7 +1773,7 @@ function oe(e, t, n, s) {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
});
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function P(e, t, n = void 0, s = void 0) {
|
|
1777
1777
|
const i = {
|
|
1778
1778
|
base: e.space,
|
|
1779
1779
|
uri: "/api/community",
|
|
@@ -2250,13 +2250,13 @@ function _t(e, t = void 0, n = void 0) {
|
|
|
2250
2250
|
});
|
|
2251
2251
|
}
|
|
2252
2252
|
export {
|
|
2253
|
-
|
|
2253
|
+
x as UUID,
|
|
2254
2254
|
_t as _3DSearch_usersGroup,
|
|
2255
|
-
|
|
2255
|
+
Pe as _3DSpace_Create_Doc,
|
|
2256
2256
|
Ge as _3DSpace_bookmark_addSubsciptions,
|
|
2257
2257
|
Je as _3DSpace_bookmark_newWorkspace,
|
|
2258
2258
|
T as _3DSpace_csrf,
|
|
2259
|
-
|
|
2259
|
+
D as _3DSpace_download_doc,
|
|
2260
2260
|
Q as _3DSpace_download_multidoc,
|
|
2261
2261
|
z as _3DSpace_file_update,
|
|
2262
2262
|
q as _3DSpace_file_update_csr,
|
|
@@ -2268,10 +2268,10 @@ export {
|
|
|
2268
2268
|
N as _3DSpace_get_securityContexts,
|
|
2269
2269
|
U as _3DSpace_get_ticket,
|
|
2270
2270
|
Me as _3DSpace_lifecycle_changeRevision,
|
|
2271
|
-
|
|
2272
|
-
|
|
2271
|
+
xe as _3DSpace_lifecycle_changeState,
|
|
2272
|
+
De as _3DSpace_lifecycle_getGraph,
|
|
2273
2273
|
Le as _3DSpace_lifecycle_getNextRevision,
|
|
2274
|
-
|
|
2274
|
+
Re as _3DSpace_lifecycle_getNextStates,
|
|
2275
2275
|
nt as _3DSwym_buildDirectMessage,
|
|
2276
2276
|
it as _3DSwym_deleteIdea,
|
|
2277
2277
|
oe as _3DSwym_findCommunityToInstantMSG,
|
|
@@ -2286,7 +2286,7 @@ export {
|
|
|
2286
2286
|
ct as _3DSwym_get_findUser,
|
|
2287
2287
|
w as _3DSwym_get_version,
|
|
2288
2288
|
st as _3DSwym_postIdea,
|
|
2289
|
-
|
|
2289
|
+
P as _3DSwym_sendMessageData,
|
|
2290
2290
|
be as _AppMngt_get_info_user,
|
|
2291
2291
|
Oe as _AppMngt_get_users,
|
|
2292
2292
|
ht as _Iterop_AddOrRemoveRows,
|