@beam3_dev/api_module 0.0.312 → 0.0.313
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 +22 -22
- 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
|
@@ -367,7 +367,7 @@ function ee(e, t = void 0, n = void 0) {
|
|
|
367
367
|
function Ge(e, t = void 0, n = void 0) {
|
|
368
368
|
const { _usersgroup: s, currentUser: i, numMax: r } = e;
|
|
369
369
|
r || (r = 50);
|
|
370
|
-
const a = "/3drdfpersist/resources/v1/usersgroup", o = "?select=uri,title,description,owner,members,pending_members,creation_date,modification_date
|
|
370
|
+
const a = "/3drdfpersist/resources/v1/usersgroup", o = "?select=uri,title,description,owner,members,pending_members,creation_date,modification_date", c = `&top=${r}`, d = `${s}${a}${o}${c}`, p = { method: "GET", headers: {
|
|
371
371
|
"Content-Type": "application/json",
|
|
372
372
|
Accept: "application/json,text/javascript,*/*"
|
|
373
373
|
} };
|
|
@@ -378,7 +378,7 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
378
378
|
const l = JSON.parse(f), g = {}, h = l.groups.filter((_) => _.uri.startsWith("uuid:"));
|
|
379
379
|
if (i && Object.keys(i).length > 0) {
|
|
380
380
|
const _ = h.filter((y) => y.owner === i.email), S = h.filter((y) => y.members.includes(i.email)), w = _.concat(S);
|
|
381
|
-
g.iam = w, g.UG = h, g.iamMember = S,
|
|
381
|
+
g.iam = w, g.UG = h, g.iamMember = S, ee(
|
|
382
382
|
e,
|
|
383
383
|
(y) => {
|
|
384
384
|
g.rules = y, t && t(g);
|
|
@@ -576,7 +576,7 @@ function N(e, t = void 0, n = void 0) {
|
|
|
576
576
|
}
|
|
577
577
|
});
|
|
578
578
|
} else
|
|
579
|
-
|
|
579
|
+
T(
|
|
580
580
|
e,
|
|
581
581
|
(s) => {
|
|
582
582
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, t && t(e);
|
|
@@ -586,7 +586,7 @@ function N(e, t = void 0, n = void 0) {
|
|
|
586
586
|
}
|
|
587
587
|
);
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function T(e, t = void 0, n = void 0) {
|
|
590
590
|
if (e.space) {
|
|
591
591
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
592
592
|
m(s, {
|
|
@@ -839,7 +839,7 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
839
839
|
},
|
|
840
840
|
data: v,
|
|
841
841
|
type: "json",
|
|
842
|
-
onComplete(I, Ce,
|
|
842
|
+
onComplete(I, Ce, Te) {
|
|
843
843
|
s && s(I);
|
|
844
844
|
},
|
|
845
845
|
onFailure(I) {
|
|
@@ -1193,7 +1193,7 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
function Qe(e, t, n = void 0, s = void 0) {
|
|
1195
1195
|
return new Promise((i) => {
|
|
1196
|
-
if (e.token === "" &&
|
|
1196
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1197
1197
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1198
1198
|
let a = {
|
|
1199
1199
|
method: "POST",
|
|
@@ -1224,7 +1224,7 @@ function Qe(e, t, n = void 0, s = void 0) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
function Ze(e, t, n, s = void 0, i = void 0) {
|
|
1226
1226
|
return new Promise((r) => {
|
|
1227
|
-
if (e.token === "" &&
|
|
1227
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1228
1228
|
const a = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1229
1229
|
let o = {
|
|
1230
1230
|
method: "POST",
|
|
@@ -1256,7 +1256,7 @@ function Ze(e, t, n, s = void 0, i = void 0) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
function et(e, t, n = void 0, s = void 0) {
|
|
1258
1258
|
return new Promise((i) => {
|
|
1259
|
-
if (e.token === "" &&
|
|
1259
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1260
1260
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1261
1261
|
F(
|
|
1262
1262
|
e.space,
|
|
@@ -1297,7 +1297,7 @@ function et(e, t, n = void 0, s = void 0) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
function tt(e, t, n = void 0, s = void 0) {
|
|
1299
1299
|
return new Promise((i) => {
|
|
1300
|
-
if (e.token === "" &&
|
|
1300
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1301
1301
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1302
1302
|
F(
|
|
1303
1303
|
e.space,
|
|
@@ -1344,7 +1344,7 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function nt(e, t, n, s = void 0, i = void 0) {
|
|
1346
1346
|
return new Promise((r) => {
|
|
1347
|
-
if (e.token === "" &&
|
|
1347
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1348
1348
|
const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1349
1349
|
F(
|
|
1350
1350
|
e.space,
|
|
@@ -1582,7 +1582,7 @@ async function ut(e, t = void 0, n = void 0) {
|
|
|
1582
1582
|
(s) => {
|
|
1583
1583
|
n && n(s);
|
|
1584
1584
|
}
|
|
1585
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1585
|
+
) : (e.objID === null || e.objID === "") && T(
|
|
1586
1586
|
e,
|
|
1587
1587
|
(s) => {
|
|
1588
1588
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -2176,7 +2176,7 @@ function Ct(e, t, n = void 0, s = void 0) {
|
|
|
2176
2176
|
});
|
|
2177
2177
|
});
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Tt(e, t = void 0, n = void 0) {
|
|
2180
2180
|
const s = { base: e.space, uri: "/api/idea/add" };
|
|
2181
2181
|
if (!Array.isArray(e.swymCommunities)) {
|
|
2182
2182
|
const a = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -2249,7 +2249,7 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2249
2249
|
m(s.base + s.uri, o);
|
|
2250
2250
|
});
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function bt(e, t, n = void 0, s = void 0) {
|
|
2253
2253
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
2254
2254
|
params: {
|
|
2255
2255
|
community_id: t.community_id,
|
|
@@ -2375,11 +2375,11 @@ function xt(e, t, n = void 0, s = void 0) {
|
|
|
2375
2375
|
if (o++, l.page = `/page/${o}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2376
2376
|
d.push(y.response.result);
|
|
2377
2377
|
else {
|
|
2378
|
-
const
|
|
2378
|
+
const b = y.response.result.find(
|
|
2379
2379
|
(R) => R.title.includes(c)
|
|
2380
2380
|
);
|
|
2381
|
-
if (
|
|
2382
|
-
n(
|
|
2381
|
+
if (b) {
|
|
2382
|
+
n(b);
|
|
2383
2383
|
return;
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
@@ -2391,8 +2391,8 @@ function xt(e, t, n = void 0, s = void 0) {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
},
|
|
2393
2393
|
onFailure(w, y) {
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2394
|
+
const b = w;
|
|
2395
|
+
b.status = y.status, b.response = y.errormsg, s && s(b);
|
|
2396
2396
|
}
|
|
2397
2397
|
});
|
|
2398
2398
|
};
|
|
@@ -2820,7 +2820,7 @@ function Xt(e) {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
function Wt(e, t = void 0, n = void 0) {
|
|
2822
2822
|
return console.log("credentials", e), new Promise((s) => {
|
|
2823
|
-
if (e.token === "" &&
|
|
2823
|
+
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
2824
2824
|
const a = Z();
|
|
2825
2825
|
console.log("platformeInfo", a);
|
|
2826
2826
|
}
|
|
@@ -2905,7 +2905,7 @@ export {
|
|
|
2905
2905
|
Ye as _3DSpace_Upload_File,
|
|
2906
2906
|
at as _3DSpace_bookmark_addSubsciptions,
|
|
2907
2907
|
it as _3DSpace_bookmark_newWorkspace,
|
|
2908
|
-
|
|
2908
|
+
T as _3DSpace_csrf,
|
|
2909
2909
|
q as _3DSpace_download_doc,
|
|
2910
2910
|
ce as _3DSpace_download_multidoc,
|
|
2911
2911
|
G as _3DSpace_file_update,
|
|
@@ -2927,7 +2927,7 @@ export {
|
|
|
2927
2927
|
Ut as _3DSwym_ForwardIdea,
|
|
2928
2928
|
Ft as _3DSwym_addComment,
|
|
2929
2929
|
wt as _3DSwym_buildDirectMessage,
|
|
2930
|
-
|
|
2930
|
+
bt as _3DSwym_deleteIdea,
|
|
2931
2931
|
$t as _3DSwym_editIdea,
|
|
2932
2932
|
_e as _3DSwym_findCommunityToInstantMSG,
|
|
2933
2933
|
yt as _3DSwym_getAllCommunities,
|
|
@@ -2940,7 +2940,7 @@ export {
|
|
|
2940
2940
|
C as _3DSwym_get_Token,
|
|
2941
2941
|
It as _3DSwym_get_currentUser,
|
|
2942
2942
|
Nt as _3DSwym_get_findUser,
|
|
2943
|
-
|
|
2943
|
+
Tt as _3DSwym_postIdea,
|
|
2944
2944
|
Ct as _3DSwym_postIdeaTemplate,
|
|
2945
2945
|
P as _3DSwym_sendMessageData,
|
|
2946
2946
|
Le as _AppMngt_get_info_user,
|