@beam3_dev/api_module 0.0.70 → 0.0.72
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 +6 -6
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +2 -2
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -132,13 +132,13 @@ async function fe(e, t = void 0, n = void 0) {
|
|
|
132
132
|
await O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(s) => {
|
|
135
|
-
(!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t &&
|
|
135
|
+
(!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
136
136
|
s.getPlatformServices({
|
|
137
137
|
platformId: e,
|
|
138
138
|
onComplete: t,
|
|
139
139
|
onFailure: n
|
|
140
140
|
})
|
|
141
|
-
)
|
|
141
|
+
);
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
144
|
}
|
|
@@ -402,7 +402,7 @@ async function G(e, t = void 0, n = void 0, s = void 0) {
|
|
|
402
402
|
function k(e, t = void 0, n = void 0) {
|
|
403
403
|
if (e.objID && e.objID !== "") {
|
|
404
404
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
405
|
-
|
|
405
|
+
f(s, {
|
|
406
406
|
onComplete(o, c, r) {
|
|
407
407
|
const a = JSON.parse(o);
|
|
408
408
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
@@ -1078,7 +1078,7 @@ function ve(e, t, n, s = void 0, o = void 0) {
|
|
|
1078
1078
|
let v, P;
|
|
1079
1079
|
const j = [];
|
|
1080
1080
|
async function Pe(e, t = void 0, n = void 0) {
|
|
1081
|
-
e.objID && e.objID !== "" ?
|
|
1081
|
+
e.objID && e.objID !== "" ? k(
|
|
1082
1082
|
e,
|
|
1083
1083
|
(s) => {
|
|
1084
1084
|
t && t(s);
|
|
@@ -1086,7 +1086,7 @@ async function Pe(e, t = void 0, n = void 0) {
|
|
|
1086
1086
|
(s) => {
|
|
1087
1087
|
n && n(s);
|
|
1088
1088
|
}
|
|
1089
|
-
)
|
|
1089
|
+
) : (e.objID === null || e.objID === "") && C(
|
|
1090
1090
|
e,
|
|
1091
1091
|
(s) => {
|
|
1092
1092
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1119,7 +1119,7 @@ function Me(e, t = void 0, n = void 0) {
|
|
|
1119
1119
|
e,
|
|
1120
1120
|
o.objID,
|
|
1121
1121
|
(r) => {
|
|
1122
|
-
s.push({ [o.name]: r }), o.name === "dbProjets" && (v = r.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && t && t(s);
|
|
1122
|
+
s.push({ [o.name]: r }), o.name === "dbProjets" && (v = r.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1123
1123
|
}
|
|
1124
1124
|
);
|
|
1125
1125
|
});
|