@beam3_dev/api_module 0.0.170 → 0.0.172
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 +31 -31
- 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
|
@@ -647,15 +647,15 @@ function q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
647
647
|
}]
|
|
648
648
|
}),
|
|
649
649
|
type: "json",
|
|
650
|
-
onComplete(
|
|
651
|
-
o && o(
|
|
650
|
+
onComplete(w) {
|
|
651
|
+
o && o(w);
|
|
652
652
|
},
|
|
653
|
-
onFailure(
|
|
654
|
-
a && a(
|
|
653
|
+
onFailure(w) {
|
|
654
|
+
a && a(w);
|
|
655
655
|
}
|
|
656
|
-
};
|
|
656
|
+
}, y = e.tenant.toUpperCase();
|
|
657
657
|
m(
|
|
658
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
658
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${y}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
659
659
|
_
|
|
660
660
|
);
|
|
661
661
|
}, h.onFailure = function(S) {
|
|
@@ -686,7 +686,7 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
686
686
|
const S = {
|
|
687
687
|
method: "POST",
|
|
688
688
|
data: d,
|
|
689
|
-
onComplete(
|
|
689
|
+
onComplete(w) {
|
|
690
690
|
if (r !== "" && a !== "") {
|
|
691
691
|
const k = {
|
|
692
692
|
method: "POST",
|
|
@@ -707,7 +707,7 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
707
707
|
files: [{
|
|
708
708
|
dataelements: {
|
|
709
709
|
title: `${n}.json`,
|
|
710
|
-
receipt:
|
|
710
|
+
receipt: w
|
|
711
711
|
}
|
|
712
712
|
}]
|
|
713
713
|
},
|
|
@@ -725,12 +725,12 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
725
725
|
},
|
|
726
726
|
onFailure: y
|
|
727
727
|
};
|
|
728
|
-
function _(
|
|
729
|
-
console.log("Success -- response ",
|
|
728
|
+
function _(w) {
|
|
729
|
+
console.log("Success -- response ", w.data[0]), i && i(w);
|
|
730
730
|
}
|
|
731
|
-
function y(
|
|
732
|
-
console.log("Erreur -- response ",
|
|
733
|
-
headers `, k), c && c(
|
|
731
|
+
function y(w, k) {
|
|
732
|
+
console.log("Erreur -- response ", w, `
|
|
733
|
+
headers `, k), c && c(w);
|
|
734
734
|
}
|
|
735
735
|
m(h.ticketURL, S);
|
|
736
736
|
}
|
|
@@ -750,7 +750,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
750
750
|
let h = g.couples;
|
|
751
751
|
h = h.filter(
|
|
752
752
|
(S, _, y) => _ === y.findIndex(
|
|
753
|
-
(
|
|
753
|
+
(w) => w.organization.pid === S.organization.pid && w.role.pid === S.role.pid
|
|
754
754
|
)
|
|
755
755
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
756
756
|
u || h.forEach((_) => {
|
|
@@ -758,7 +758,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
758
758
|
u = S, f = s;
|
|
759
759
|
else if (S === _.role.name) {
|
|
760
760
|
let y = h.filter(
|
|
761
|
-
(
|
|
761
|
+
(w) => w.role.name === S
|
|
762
762
|
);
|
|
763
763
|
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) : c(y);
|
|
764
764
|
}
|
|
@@ -1535,7 +1535,7 @@ function qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
|
-
async function
|
|
1538
|
+
async function C(e, t = void 0, n = void 0) {
|
|
1539
1539
|
const s = e.space + "/api/index/tk";
|
|
1540
1540
|
return m(s, {
|
|
1541
1541
|
onComplete(i, c, o) {
|
|
@@ -1559,7 +1559,7 @@ function Qe(e, t = void 0, n = void 0) {
|
|
|
1559
1559
|
start: 0
|
|
1560
1560
|
}
|
|
1561
1561
|
};
|
|
1562
|
-
|
|
1562
|
+
C(e, (c) => {
|
|
1563
1563
|
m(s, {
|
|
1564
1564
|
method: "POST",
|
|
1565
1565
|
headers: {
|
|
@@ -1588,7 +1588,7 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1588
1588
|
maxNbOfCommonElements: "5"
|
|
1589
1589
|
}
|
|
1590
1590
|
};
|
|
1591
|
-
|
|
1591
|
+
C(e, (c) => {
|
|
1592
1592
|
m(s, {
|
|
1593
1593
|
method: "POST",
|
|
1594
1594
|
headers: {
|
|
@@ -1615,7 +1615,7 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1615
1615
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1616
1616
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1617
1617
|
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, c = [];
|
|
1618
|
-
|
|
1618
|
+
C(e, (o) => {
|
|
1619
1619
|
m(i, {
|
|
1620
1620
|
method: "GET",
|
|
1621
1621
|
headers: {
|
|
@@ -1658,7 +1658,7 @@ function ae(e, t, n, s) {
|
|
|
1658
1658
|
community_id: t
|
|
1659
1659
|
}
|
|
1660
1660
|
};
|
|
1661
|
-
|
|
1661
|
+
C(e, (o) => {
|
|
1662
1662
|
m(i, {
|
|
1663
1663
|
method: "POST",
|
|
1664
1664
|
headers: {
|
|
@@ -1682,7 +1682,7 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1682
1682
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1683
1683
|
e.commu_id || (e.commu_id = s);
|
|
1684
1684
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1685
|
-
|
|
1685
|
+
C(e, (c) => {
|
|
1686
1686
|
m(i, {
|
|
1687
1687
|
method: "GET",
|
|
1688
1688
|
headers: {
|
|
@@ -1722,7 +1722,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1722
1722
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), r.id_msg = "";
|
|
1723
1723
|
}
|
|
1724
1724
|
), d === !1 && setTimeout(() => {
|
|
1725
|
-
d === !1 &&
|
|
1725
|
+
d === !1 && C(e, (p) => {
|
|
1726
1726
|
m(o, {
|
|
1727
1727
|
method: "POST",
|
|
1728
1728
|
headers: {
|
|
@@ -1746,7 +1746,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
function oe(e, t, n, s) {
|
|
1748
1748
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1749
|
-
|
|
1749
|
+
C(e, (c) => {
|
|
1750
1750
|
m(i, {
|
|
1751
1751
|
method: "GET",
|
|
1752
1752
|
headers: {
|
|
@@ -1789,7 +1789,7 @@ function P(e, t, n = void 0, s = void 0) {
|
|
|
1789
1789
|
parentCommentUri: null,
|
|
1790
1790
|
richMessage: t.msg
|
|
1791
1791
|
};
|
|
1792
|
-
console.log("_3dSwym_sendDirectMessageData url ", c),
|
|
1792
|
+
console.log("_3dSwym_sendDirectMessageData url ", c), C(e, (a) => {
|
|
1793
1793
|
m(c, {
|
|
1794
1794
|
method: "POST",
|
|
1795
1795
|
headers: {
|
|
@@ -1844,7 +1844,7 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1844
1844
|
// 1 publier, 0 non publier
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
|
-
|
|
1847
|
+
C(e, (r) => {
|
|
1848
1848
|
const d = {
|
|
1849
1849
|
"Content-type": "application/json;charset=UTF-8",
|
|
1850
1850
|
Accept: "application/json",
|
|
@@ -1873,7 +1873,7 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1873
1873
|
ideationIds: [t.idee_id]
|
|
1874
1874
|
}
|
|
1875
1875
|
};
|
|
1876
|
-
|
|
1876
|
+
C(e, (o) => {
|
|
1877
1877
|
m(i, {
|
|
1878
1878
|
method: "POST",
|
|
1879
1879
|
headers: {
|
|
@@ -1901,7 +1901,7 @@ function at(e, t = "", n = void 0, s = void 0) {
|
|
|
1901
1901
|
id: t
|
|
1902
1902
|
}
|
|
1903
1903
|
};
|
|
1904
|
-
|
|
1904
|
+
C(e, (a) => {
|
|
1905
1905
|
m(c, {
|
|
1906
1906
|
method: "POST",
|
|
1907
1907
|
headers: {
|
|
@@ -1928,7 +1928,7 @@ function ot(e, t = ce, n = void 0, s = void 0) {
|
|
|
1928
1928
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1929
1929
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1930
1930
|
}, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1931
|
-
|
|
1931
|
+
C(e, (o) => {
|
|
1932
1932
|
m(c, {
|
|
1933
1933
|
method: "GET",
|
|
1934
1934
|
headers: {
|
|
@@ -2022,7 +2022,7 @@ function de(e) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
function rt(e, t = void 0, n = void 0) {
|
|
2024
2024
|
const s = e.space + "/api/user/getcurrent/";
|
|
2025
|
-
|
|
2025
|
+
C(e, (i) => {
|
|
2026
2026
|
m(s, {
|
|
2027
2027
|
method: "GET",
|
|
2028
2028
|
headers: {
|
|
@@ -2041,7 +2041,7 @@ function rt(e, t = void 0, n = void 0) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
function ct(e, t, n = void 0, s = void 0) {
|
|
2043
2043
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2044
|
-
|
|
2044
|
+
C(
|
|
2045
2045
|
e,
|
|
2046
2046
|
(c) => {
|
|
2047
2047
|
m(i, {
|
|
@@ -2284,7 +2284,7 @@ export {
|
|
|
2284
2284
|
ot as _3DSwym_get_AllSWYMIdeas,
|
|
2285
2285
|
rt as _3DSwym_get_currentUser,
|
|
2286
2286
|
ct as _3DSwym_get_findUser,
|
|
2287
|
-
|
|
2287
|
+
C as _3DSwym_get_version,
|
|
2288
2288
|
st as _3DSwym_postIdea,
|
|
2289
2289
|
P as _3DSwym_sendMessageData,
|
|
2290
2290
|
be as _AppMngt_get_info_user,
|