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