@beam3_dev/api_module 0.0.57 → 0.0.59
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 +32 -37
- 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 M } from "uuid";
|
|
2
2
|
import { DateTime as N } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
3
|
+
import { requirejs as O, widget as A } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function R() {
|
|
5
5
|
return M();
|
|
6
6
|
}
|
|
7
7
|
const L = {
|
|
@@ -118,7 +118,7 @@ function le(e, t = void 0) {
|
|
|
118
118
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
119
119
|
let s;
|
|
120
120
|
s === void 0 && (s = n.createProxy({
|
|
121
|
-
widgetId:
|
|
121
|
+
widgetId: A.id,
|
|
122
122
|
filteringMode: "WithFilteringServices"
|
|
123
123
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
124
124
|
});
|
|
@@ -132,7 +132,7 @@ async function ue(e, t = void 0, n = void 0) {
|
|
|
132
132
|
await O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(s) => {
|
|
135
|
-
(!e || e === "") && (e =
|
|
135
|
+
(!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && (console.log("i3DXCompassServices", s), t(
|
|
136
136
|
s.getPlatformServices({
|
|
137
137
|
platformId: e,
|
|
138
138
|
onComplete: t,
|
|
@@ -389,7 +389,7 @@ async function J(e, t = void 0, n = void 0, s = void 0) {
|
|
|
389
389
|
function k(e, t = void 0, n = void 0) {
|
|
390
390
|
if (e.objID && e.objID !== "") {
|
|
391
391
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
392
|
-
f(s, {
|
|
392
|
+
console.log("_3DSpace_get_csrf / url", s), f(s, {
|
|
393
393
|
onComplete(o, c, i) {
|
|
394
394
|
const a = JSON.parse(o);
|
|
395
395
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
@@ -599,7 +599,7 @@ async function Ne(e, t, n, s, o = void 0, c = void 0) {
|
|
|
599
599
|
}
|
|
600
600
|
]
|
|
601
601
|
},
|
|
602
|
-
tempId:
|
|
602
|
+
tempId: R()
|
|
603
603
|
}
|
|
604
604
|
]
|
|
605
605
|
}),
|
|
@@ -679,31 +679,26 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
679
679
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
680
680
|
), (e.token === "" || !e.token) && console.warn(
|
|
681
681
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
682
|
+
), console.log("_3DSpace_download_doc / credentials", e), U(
|
|
683
|
+
e,
|
|
684
|
+
(c) => {
|
|
685
|
+
console.log("_3DSpace_download_doc / ticketURL ", c), console.log(e.token), f(c, {
|
|
686
|
+
headers: {
|
|
687
|
+
ENO_CSRF_TOKEN: e.token
|
|
688
|
+
},
|
|
689
|
+
onComplete(i) {
|
|
690
|
+
const a = JSON.parse(i);
|
|
691
|
+
console.log("_3DSpace_download_doc / reponse ", a), t && t(a);
|
|
692
|
+
},
|
|
693
|
+
onFailure(i, a, r) {
|
|
694
|
+
n && (console.log("error http", i), n({ error: i, headers: a, xhr: r }));
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
},
|
|
698
|
+
(c) => {
|
|
699
|
+
n && n(c), console.log("*_3dspace_download_doc / error file URL *", c);
|
|
700
|
+
}
|
|
682
701
|
);
|
|
683
|
-
try {
|
|
684
|
-
console.log("_3DSpace_download_doc / credentials", e), U(
|
|
685
|
-
e,
|
|
686
|
-
(c) => {
|
|
687
|
-
f(c, {
|
|
688
|
-
headers: {
|
|
689
|
-
ENO_CSRF_TOKEN: e.token
|
|
690
|
-
},
|
|
691
|
-
onComplete(i) {
|
|
692
|
-
const a = JSON.parse(i);
|
|
693
|
-
console.log("_3DSpace_download_doc / reponse ", a), t && t(a);
|
|
694
|
-
},
|
|
695
|
-
onFailure(i, a, r) {
|
|
696
|
-
n && (console.log("error http", i), n({ error: i, headers: a, xhr: r }));
|
|
697
|
-
}
|
|
698
|
-
});
|
|
699
|
-
},
|
|
700
|
-
(c) => {
|
|
701
|
-
n && n(c), console.log("*_3dspace_download_doc / error file URL *", c);
|
|
702
|
-
}
|
|
703
|
-
);
|
|
704
|
-
} catch (c) {
|
|
705
|
-
console.log("*_3dspace_download_doc / error file URL *", c);
|
|
706
|
-
}
|
|
707
702
|
}
|
|
708
703
|
async function W(e, t, n = void 0, s = void 0) {
|
|
709
704
|
let o = [];
|
|
@@ -1003,7 +998,7 @@ async function je(e, t, n) {
|
|
|
1003
998
|
});
|
|
1004
999
|
}
|
|
1005
1000
|
}
|
|
1006
|
-
function
|
|
1001
|
+
function Ae(e, t = void 0, n = void 0) {
|
|
1007
1002
|
const s = {
|
|
1008
1003
|
base: `${e.space}`,
|
|
1009
1004
|
uri: "/resources/bps/cspaces",
|
|
@@ -1024,7 +1019,7 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1024
1019
|
}
|
|
1025
1020
|
});
|
|
1026
1021
|
}
|
|
1027
|
-
function
|
|
1022
|
+
function Re(e, t, n, s) {
|
|
1028
1023
|
U(
|
|
1029
1024
|
e.space,
|
|
1030
1025
|
t,
|
|
@@ -1225,7 +1220,7 @@ function z(e, t, n = void 0, s = void 0) {
|
|
|
1225
1220
|
}, i = `${c.baseUrl}${c.uri}`, a = {
|
|
1226
1221
|
"Content-Type": "application/json",
|
|
1227
1222
|
Accept: "application/json,text/javascript,*/*"
|
|
1228
|
-
}, r =
|
|
1223
|
+
}, r = R(), d = {
|
|
1229
1224
|
with_indexing_date: !0,
|
|
1230
1225
|
with_synthesis: !0,
|
|
1231
1226
|
with_nls: !1,
|
|
@@ -1341,7 +1336,7 @@ function Je(e, t = "", n = void 0, s = void 0) {
|
|
|
1341
1336
|
if (t === "")
|
|
1342
1337
|
return;
|
|
1343
1338
|
const c = {
|
|
1344
|
-
uri: "/
|
|
1339
|
+
uri: "/resources/v1/modeler/documents"
|
|
1345
1340
|
}, i = {
|
|
1346
1341
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1347
1342
|
Accept: "application/json,text/javascript,*/*"
|
|
@@ -1888,7 +1883,7 @@ function Ze(e) {
|
|
|
1888
1883
|
return console.log(t), t;
|
|
1889
1884
|
}
|
|
1890
1885
|
export {
|
|
1891
|
-
|
|
1886
|
+
R as UUID,
|
|
1892
1887
|
Ne as _3DSpace_Create_Doc,
|
|
1893
1888
|
C as _3DSpace_csrf,
|
|
1894
1889
|
I as _3DSpace_download_doc,
|
|
@@ -1936,11 +1931,11 @@ export {
|
|
|
1936
1931
|
V as dataMixing,
|
|
1937
1932
|
we as deleteUserGroups,
|
|
1938
1933
|
ie as findAdresse,
|
|
1939
|
-
|
|
1934
|
+
Ae as getAllContextSecurity,
|
|
1940
1935
|
je as getCSRFToken,
|
|
1941
1936
|
oe as getCommunes,
|
|
1942
1937
|
_e as getComplementUG,
|
|
1943
|
-
|
|
1938
|
+
Re as getDataFrom3DSpace,
|
|
1944
1939
|
re as getDataFromGouvFr,
|
|
1945
1940
|
Pe as getDatasByTenant,
|
|
1946
1941
|
Me as getDatasFrom3DSpace,
|