@beam3_dev/api_module 0.0.57 → 0.0.58
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 +31 -35
- 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,9 +132,10 @@ 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
|
+
public: !0,
|
|
138
139
|
onComplete: t,
|
|
139
140
|
onFailure: n
|
|
140
141
|
})
|
|
@@ -599,7 +600,7 @@ async function Ne(e, t, n, s, o = void 0, c = void 0) {
|
|
|
599
600
|
}
|
|
600
601
|
]
|
|
601
602
|
},
|
|
602
|
-
tempId:
|
|
603
|
+
tempId: R()
|
|
603
604
|
}
|
|
604
605
|
]
|
|
605
606
|
}),
|
|
@@ -679,31 +680,26 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
679
680
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
680
681
|
), (e.token === "" || !e.token) && console.warn(
|
|
681
682
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
683
|
+
), console.log("_3DSpace_download_doc / credentials", e), U(
|
|
684
|
+
e,
|
|
685
|
+
(c) => {
|
|
686
|
+
console.log("_3DSpace_download_doc / ticketURL ", c), console.log(e.token), f(c, {
|
|
687
|
+
headers: {
|
|
688
|
+
ENO_CSRF_TOKEN: e.token
|
|
689
|
+
},
|
|
690
|
+
onComplete(i) {
|
|
691
|
+
const a = JSON.parse(i);
|
|
692
|
+
console.log("_3DSpace_download_doc / reponse ", a), t && t(a);
|
|
693
|
+
},
|
|
694
|
+
onFailure(i, a, r) {
|
|
695
|
+
n && (console.log("error http", i), n({ error: i, headers: a, xhr: r }));
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
},
|
|
699
|
+
(c) => {
|
|
700
|
+
n && n(c), console.log("*_3dspace_download_doc / error file URL *", c);
|
|
701
|
+
}
|
|
682
702
|
);
|
|
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
703
|
}
|
|
708
704
|
async function W(e, t, n = void 0, s = void 0) {
|
|
709
705
|
let o = [];
|
|
@@ -1003,7 +999,7 @@ async function je(e, t, n) {
|
|
|
1003
999
|
});
|
|
1004
1000
|
}
|
|
1005
1001
|
}
|
|
1006
|
-
function
|
|
1002
|
+
function Ae(e, t = void 0, n = void 0) {
|
|
1007
1003
|
const s = {
|
|
1008
1004
|
base: `${e.space}`,
|
|
1009
1005
|
uri: "/resources/bps/cspaces",
|
|
@@ -1024,7 +1020,7 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1024
1020
|
}
|
|
1025
1021
|
});
|
|
1026
1022
|
}
|
|
1027
|
-
function
|
|
1023
|
+
function Re(e, t, n, s) {
|
|
1028
1024
|
U(
|
|
1029
1025
|
e.space,
|
|
1030
1026
|
t,
|
|
@@ -1225,7 +1221,7 @@ function z(e, t, n = void 0, s = void 0) {
|
|
|
1225
1221
|
}, i = `${c.baseUrl}${c.uri}`, a = {
|
|
1226
1222
|
"Content-Type": "application/json",
|
|
1227
1223
|
Accept: "application/json,text/javascript,*/*"
|
|
1228
|
-
}, r =
|
|
1224
|
+
}, r = R(), d = {
|
|
1229
1225
|
with_indexing_date: !0,
|
|
1230
1226
|
with_synthesis: !0,
|
|
1231
1227
|
with_nls: !1,
|
|
@@ -1888,7 +1884,7 @@ function Ze(e) {
|
|
|
1888
1884
|
return console.log(t), t;
|
|
1889
1885
|
}
|
|
1890
1886
|
export {
|
|
1891
|
-
|
|
1887
|
+
R as UUID,
|
|
1892
1888
|
Ne as _3DSpace_Create_Doc,
|
|
1893
1889
|
C as _3DSpace_csrf,
|
|
1894
1890
|
I as _3DSpace_download_doc,
|
|
@@ -1936,11 +1932,11 @@ export {
|
|
|
1936
1932
|
V as dataMixing,
|
|
1937
1933
|
we as deleteUserGroups,
|
|
1938
1934
|
ie as findAdresse,
|
|
1939
|
-
|
|
1935
|
+
Ae as getAllContextSecurity,
|
|
1940
1936
|
je as getCSRFToken,
|
|
1941
1937
|
oe as getCommunes,
|
|
1942
1938
|
_e as getComplementUG,
|
|
1943
|
-
|
|
1939
|
+
Re as getDataFrom3DSpace,
|
|
1944
1940
|
re as getDataFromGouvFr,
|
|
1945
1941
|
Pe as getDatasByTenant,
|
|
1946
1942
|
Me as getDatasFrom3DSpace,
|