@beam3_dev/api_module 0.0.111 → 0.0.113
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 +24 -14
- 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
|
@@ -167,11 +167,11 @@ function E(e, t = void 0, n = void 0) {
|
|
|
167
167
|
f(s, {
|
|
168
168
|
onComplete(i) {
|
|
169
169
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
|
-
if (
|
|
170
|
+
if (r && "platforms" in r) {
|
|
171
171
|
const o = r.platforms.find(
|
|
172
172
|
(a) => a.id === e.tenant.toUpperCase()
|
|
173
173
|
);
|
|
174
|
-
|
|
174
|
+
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
175
175
|
} else
|
|
176
176
|
n && n("_getServiceUrl return oResponse = undefined");
|
|
177
177
|
},
|
|
@@ -1091,7 +1091,7 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function xe(e, t, n, s) {
|
|
1095
1095
|
A(
|
|
1096
1096
|
e.space,
|
|
1097
1097
|
t,
|
|
@@ -1108,7 +1108,7 @@ function Pe(e, t, n, s) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
);
|
|
1110
1110
|
}
|
|
1111
|
-
async function
|
|
1111
|
+
async function Pe(e, t, n = void 0, s = void 0) {
|
|
1112
1112
|
return new Promise((i) => {
|
|
1113
1113
|
A(e, t, (r) => {
|
|
1114
1114
|
f(r, {
|
|
@@ -1143,7 +1143,7 @@ function Me(e, t, n, s = void 0, i = void 0) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
);
|
|
1145
1145
|
}
|
|
1146
|
-
let R,
|
|
1146
|
+
let R, x;
|
|
1147
1147
|
const $ = [];
|
|
1148
1148
|
async function Le(e, t = void 0, n = void 0) {
|
|
1149
1149
|
e.objID && e.objID !== "" ? v(
|
|
@@ -1187,7 +1187,7 @@ function Ee(e, t = void 0, n = void 0) {
|
|
|
1187
1187
|
e,
|
|
1188
1188
|
i.objID,
|
|
1189
1189
|
(o) => {
|
|
1190
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (R = o.affaires.map((a) => a.objectID), q(e,
|
|
1190
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (R = o.affaires.map((a) => a.objectID), q(e, x)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1191
1191
|
}
|
|
1192
1192
|
);
|
|
1193
1193
|
});
|
|
@@ -1198,7 +1198,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1198
1198
|
R,
|
|
1199
1199
|
(i) => {
|
|
1200
1200
|
const r = [...t];
|
|
1201
|
-
r.find((o) => o.objectID === i.objectId).data = i.data,
|
|
1201
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, x = r, $.push(i.data), n && n($);
|
|
1202
1202
|
},
|
|
1203
1203
|
(i) => {
|
|
1204
1204
|
s && (s(i), console.log(i));
|
|
@@ -1212,7 +1212,7 @@ const H = "FA35FB9B177A280065800EA0000F599C", z = [
|
|
|
1212
1212
|
"usersgroup",
|
|
1213
1213
|
"3dplan",
|
|
1214
1214
|
"dashboard"
|
|
1215
|
-
],
|
|
1215
|
+
], P = {
|
|
1216
1216
|
how: "ds6w:how",
|
|
1217
1217
|
what: "ds6w:what",
|
|
1218
1218
|
when: "ds6w:when",
|
|
@@ -1238,7 +1238,7 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1238
1238
|
uri: `pid://${o}`
|
|
1239
1239
|
}
|
|
1240
1240
|
],
|
|
1241
|
-
predicate:
|
|
1241
|
+
predicate: P[a],
|
|
1242
1242
|
object: {
|
|
1243
1243
|
literal: c
|
|
1244
1244
|
}
|
|
@@ -1381,7 +1381,7 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1381
1381
|
uri: `pid://${i}`
|
|
1382
1382
|
}
|
|
1383
1383
|
],
|
|
1384
|
-
predicate:
|
|
1384
|
+
predicate: P[r],
|
|
1385
1385
|
object: {
|
|
1386
1386
|
literal: o
|
|
1387
1387
|
}
|
|
@@ -1956,8 +1956,18 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1956
1956
|
console.log("serviceUrls", s);
|
|
1957
1957
|
const i = s.services.find((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
1958
1958
|
f(o, {
|
|
1959
|
-
onComplete(a
|
|
1960
|
-
console.log("response", a)
|
|
1959
|
+
onComplete(a) {
|
|
1960
|
+
console.log("response", a);
|
|
1961
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
1962
|
+
c ? f(c, {
|
|
1963
|
+
method: "POST",
|
|
1964
|
+
onComplete(d) {
|
|
1965
|
+
t && t(d);
|
|
1966
|
+
},
|
|
1967
|
+
onFailure(d) {
|
|
1968
|
+
n && n(d);
|
|
1969
|
+
}
|
|
1970
|
+
}) : n && n("x3ds_service_redirect_url is undefined");
|
|
1961
1971
|
},
|
|
1962
1972
|
onFailure(a) {
|
|
1963
1973
|
n && n(a);
|
|
@@ -2106,11 +2116,11 @@ export {
|
|
|
2106
2116
|
K as getCSRFToken,
|
|
2107
2117
|
ce as getCommunes,
|
|
2108
2118
|
Ce as getComplementUG,
|
|
2109
|
-
|
|
2119
|
+
xe as getDataFrom3DSpace,
|
|
2110
2120
|
le as getDataFromGouvFr,
|
|
2111
2121
|
Je as getDatasByTenant,
|
|
2112
2122
|
Ee as getDatasFrom3DSpace,
|
|
2113
|
-
|
|
2123
|
+
Pe as getDownloadDocument,
|
|
2114
2124
|
Xe as getInfoDocTags,
|
|
2115
2125
|
Te as getUserGroupsList,
|
|
2116
2126
|
G as getUsersGroupRules,
|