@beam3_dev/api_module 0.0.319 → 0.0.320
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 +21 -21
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +1 -1
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -416,7 +416,7 @@ function Ke(e, t, n) {
|
|
|
416
416
|
}, c = a.baseUrl + a.uri, d = {
|
|
417
417
|
method: "POST",
|
|
418
418
|
headers: o,
|
|
419
|
-
|
|
419
|
+
data: JSON.stringify({ groups: i })
|
|
420
420
|
};
|
|
421
421
|
try {
|
|
422
422
|
m(c, {
|
|
@@ -619,7 +619,7 @@ function N(e, t = void 0, n = void 0) {
|
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
621
|
} else
|
|
622
|
-
|
|
622
|
+
T(
|
|
623
623
|
e,
|
|
624
624
|
(s) => {
|
|
625
625
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, t && t(e);
|
|
@@ -629,7 +629,7 @@ function N(e, t = void 0, n = void 0) {
|
|
|
629
629
|
}
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function T(e, t = void 0, n = void 0) {
|
|
633
633
|
if (e.space) {
|
|
634
634
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
635
635
|
m(s, {
|
|
@@ -882,7 +882,7 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
882
882
|
},
|
|
883
883
|
data: v,
|
|
884
884
|
type: "json",
|
|
885
|
-
onComplete(I, Ce,
|
|
885
|
+
onComplete(I, Ce, Te) {
|
|
886
886
|
s && s(I);
|
|
887
887
|
},
|
|
888
888
|
onFailure(I) {
|
|
@@ -1236,7 +1236,7 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
function Ze(e, t, n = void 0, s = void 0) {
|
|
1238
1238
|
return new Promise((i) => {
|
|
1239
|
-
if (e.token === "" &&
|
|
1239
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1240
1240
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1241
1241
|
let o = {
|
|
1242
1242
|
method: "POST",
|
|
@@ -1267,7 +1267,7 @@ function Ze(e, t, n = void 0, s = void 0) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
function et(e, t, n, s = void 0, i = void 0) {
|
|
1269
1269
|
return new Promise((r) => {
|
|
1270
|
-
if (e.token === "" &&
|
|
1270
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1271
1271
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1272
1272
|
let a = {
|
|
1273
1273
|
method: "POST",
|
|
@@ -1299,7 +1299,7 @@ function et(e, t, n, s = void 0, i = void 0) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
function tt(e, t, n = void 0, s = void 0) {
|
|
1301
1301
|
return new Promise((i) => {
|
|
1302
|
-
if (e.token === "" &&
|
|
1302
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1303
1303
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1304
1304
|
R(
|
|
1305
1305
|
e.space,
|
|
@@ -1340,7 +1340,7 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
function nt(e, t, n = void 0, s = void 0) {
|
|
1342
1342
|
return new Promise((i) => {
|
|
1343
|
-
if (e.token === "" &&
|
|
1343
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1344
1344
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1345
1345
|
R(
|
|
1346
1346
|
e.space,
|
|
@@ -1387,7 +1387,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
function st(e, t, n, s = void 0, i = void 0) {
|
|
1389
1389
|
return new Promise((r) => {
|
|
1390
|
-
if (e.token === "" &&
|
|
1390
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1391
1391
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1392
1392
|
R(
|
|
1393
1393
|
e.space,
|
|
@@ -1625,7 +1625,7 @@ async function pt(e, t = void 0, n = void 0) {
|
|
|
1625
1625
|
(s) => {
|
|
1626
1626
|
n && n(s);
|
|
1627
1627
|
}
|
|
1628
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1628
|
+
) : (e.objID === null || e.objID === "") && T(
|
|
1629
1629
|
e,
|
|
1630
1630
|
(s) => {
|
|
1631
1631
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -2180,7 +2180,7 @@ function _e(e) {
|
|
|
2180
2180
|
<hr/>
|
|
2181
2181
|
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function Tt(e, t, n = void 0, s = void 0) {
|
|
2184
2184
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
2185
2185
|
(c) => c.id === t.community_id
|
|
2186
2186
|
), o = e.swymCommunities.find(
|
|
@@ -2219,7 +2219,7 @@ function bt(e, t, n = void 0, s = void 0) {
|
|
|
2219
2219
|
});
|
|
2220
2220
|
});
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function bt(e, t = void 0, n = void 0) {
|
|
2223
2223
|
const s = { base: e.space, uri: "/api/idea/add" };
|
|
2224
2224
|
if (!Array.isArray(e.swymCommunities)) {
|
|
2225
2225
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -2418,11 +2418,11 @@ function xt(e, t, n = void 0, s = void 0) {
|
|
|
2418
2418
|
if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2419
2419
|
d.push(_.response.result);
|
|
2420
2420
|
else {
|
|
2421
|
-
const
|
|
2421
|
+
const b = _.response.result.find(
|
|
2422
2422
|
(F) => F.title.includes(c)
|
|
2423
2423
|
);
|
|
2424
|
-
if (
|
|
2425
|
-
n(
|
|
2424
|
+
if (b) {
|
|
2425
|
+
n(b);
|
|
2426
2426
|
return;
|
|
2427
2427
|
}
|
|
2428
2428
|
}
|
|
@@ -2434,8 +2434,8 @@ function xt(e, t, n = void 0, s = void 0) {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
},
|
|
2436
2436
|
onFailure(w, _) {
|
|
2437
|
-
const
|
|
2438
|
-
|
|
2437
|
+
const b = w;
|
|
2438
|
+
b.status = _.status, b.response = _.errormsg, s && s(b);
|
|
2439
2439
|
}
|
|
2440
2440
|
});
|
|
2441
2441
|
};
|
|
@@ -2863,7 +2863,7 @@ function Wt(e) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
function Vt(e, t = void 0, n = void 0) {
|
|
2865
2865
|
return console.log("credentials", e), new Promise((s) => {
|
|
2866
|
-
if (e.token === "" &&
|
|
2866
|
+
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
2867
2867
|
const o = Z();
|
|
2868
2868
|
console.log("platformeInfo", o);
|
|
2869
2869
|
}
|
|
@@ -2948,7 +2948,7 @@ export {
|
|
|
2948
2948
|
ze as _3DSpace_Upload_File,
|
|
2949
2949
|
at as _3DSpace_bookmark_addSubsciptions,
|
|
2950
2950
|
ot as _3DSpace_bookmark_newWorkspace,
|
|
2951
|
-
|
|
2951
|
+
T as _3DSpace_csrf,
|
|
2952
2952
|
B as _3DSpace_download_doc,
|
|
2953
2953
|
ce as _3DSpace_download_multidoc,
|
|
2954
2954
|
G as _3DSpace_file_update,
|
|
@@ -2983,8 +2983,8 @@ export {
|
|
|
2983
2983
|
C as _3DSwym_get_Token,
|
|
2984
2984
|
Nt as _3DSwym_get_currentUser,
|
|
2985
2985
|
Rt as _3DSwym_get_findUser,
|
|
2986
|
-
|
|
2987
|
-
|
|
2986
|
+
bt as _3DSwym_postIdea,
|
|
2987
|
+
Tt as _3DSwym_postIdeaTemplate,
|
|
2988
2988
|
P as _3DSwym_sendMessageData,
|
|
2989
2989
|
Le as _AppMngt_get_info_user,
|
|
2990
2990
|
Pe as _AppMngt_get_users,
|