@beam3_dev/api_module 0.0.340 → 0.0.342
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 +159 -134
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +7 -7
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -143,7 +143,7 @@ function m(e, n) {
|
|
|
143
143
|
t.authenticatedRequest(e, n);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Fe(e, n, t) {
|
|
147
147
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (i) => {
|
|
148
148
|
i.draggable(e, {
|
|
149
149
|
data: n,
|
|
@@ -151,7 +151,7 @@ function Re(e, n, t) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Re(e, n = void 0) {
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (t) => {
|
|
156
156
|
let i;
|
|
157
157
|
i === void 0 && (i = t.createProxy({
|
|
@@ -160,14 +160,14 @@ function Fe(e, n = void 0) {
|
|
|
160
160
|
}), n !== void 0 && i.addEvent("onFilterSubjectsChange", n)), i.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function ke(e, n) {
|
|
164
164
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
|
|
165
165
|
t.droppable(e, {
|
|
166
166
|
drop: n
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function je(e, n = void 0, t = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(i) => {
|
|
@@ -195,7 +195,7 @@ function Z() {
|
|
|
195
195
|
};
|
|
196
196
|
}), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function ve(e, n = void 0, t = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const i = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(i, {
|
|
@@ -227,7 +227,7 @@ function J(e, n = void 0, t = void 0) {
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function De(e, n = void 0, t = void 0) {
|
|
231
231
|
if (e.tenant) {
|
|
232
232
|
const i = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
233
233
|
m(i, {
|
|
@@ -244,7 +244,7 @@ function Ae(e, n = void 0, t = void 0) {
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ae(e, n = void 0, t = void 0) {
|
|
248
248
|
if (e.tenant) {
|
|
249
249
|
const i = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
|
|
250
250
|
m(i, {
|
|
@@ -675,7 +675,7 @@ async function Ye(e, n = void 0, t = void 0, i = void 0) {
|
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function F(e, n = void 0, t = void 0) {
|
|
679
679
|
if (e.objID && e.objID !== "") {
|
|
680
680
|
let i = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
681
681
|
m(i, {
|
|
@@ -688,7 +688,7 @@ function R(e, n = void 0, t = void 0) {
|
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
690
|
} else
|
|
691
|
-
|
|
691
|
+
b(
|
|
692
692
|
e,
|
|
693
693
|
(i) => {
|
|
694
694
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", i), e.token = i, n && n(e);
|
|
@@ -698,7 +698,7 @@ function R(e, n = void 0, t = void 0) {
|
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function b(e, n = void 0, t = void 0) {
|
|
702
702
|
if (e.space) {
|
|
703
703
|
const i = e.space + "/resources/v1/application/CSRF";
|
|
704
704
|
m(i, {
|
|
@@ -717,9 +717,9 @@ function O(e, n = void 0, t = void 0) {
|
|
|
717
717
|
} else
|
|
718
718
|
t && t("ERROR : url du 3DSpace non défini.");
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function j(e, n = void 0, t = void 0) {
|
|
721
721
|
let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
722
|
-
|
|
722
|
+
F(
|
|
723
723
|
e,
|
|
724
724
|
(s) => {
|
|
725
725
|
m(i, {
|
|
@@ -774,7 +774,7 @@ function G(e, n, t, i, s, r = void 0, o = void 0) {
|
|
|
774
774
|
r,
|
|
775
775
|
o
|
|
776
776
|
);
|
|
777
|
-
e.token ? a() :
|
|
777
|
+
e.token ? a() : F(
|
|
778
778
|
e,
|
|
779
779
|
n,
|
|
780
780
|
(c) => {
|
|
@@ -921,12 +921,14 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
921
921
|
t,
|
|
922
922
|
n,
|
|
923
923
|
(_) => {
|
|
924
|
-
const
|
|
924
|
+
const k = new DOMParser().parseFromString(
|
|
925
925
|
_,
|
|
926
926
|
"text/html"
|
|
927
|
-
).body.firstChild.querySelector("input").getAttributeNode("value").value,
|
|
927
|
+
).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
|
|
928
|
+
a
|
|
929
|
+
)}/contents?receipt=${encodeURIComponent(k)}`;
|
|
928
930
|
let W = /(?:\.([^.]+))?$/.exec(n)[1];
|
|
929
|
-
const
|
|
931
|
+
const D = JSON.stringify({
|
|
930
932
|
actions: [],
|
|
931
933
|
businessobj: {
|
|
932
934
|
description: e?.description ? e?.description : "",
|
|
@@ -942,22 +944,22 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
942
944
|
},
|
|
943
945
|
collabspace: a
|
|
944
946
|
});
|
|
945
|
-
m(
|
|
947
|
+
m(v, {
|
|
946
948
|
method: "POST",
|
|
947
949
|
headers: {
|
|
948
950
|
Accept: "application/json",
|
|
949
951
|
"Content-Type": "application/json;charset=UTF-8",
|
|
950
952
|
"X-DS-CSRFTOKEN": p
|
|
951
953
|
},
|
|
952
|
-
data:
|
|
954
|
+
data: D,
|
|
953
955
|
type: "json",
|
|
954
|
-
onComplete(I, Ce,
|
|
956
|
+
onComplete(I, Ce, be) {
|
|
955
957
|
i && i(I);
|
|
956
958
|
},
|
|
957
959
|
onFailure(I) {
|
|
958
960
|
console.warn(
|
|
959
961
|
"_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
|
|
960
|
-
{ url:
|
|
962
|
+
{ url: v, bodyRequest: D, err: I }
|
|
961
963
|
), s && s(I);
|
|
962
964
|
}
|
|
963
965
|
});
|
|
@@ -1135,7 +1137,7 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
|
1135
1137
|
}
|
|
1136
1138
|
});
|
|
1137
1139
|
}
|
|
1138
|
-
function
|
|
1140
|
+
function R(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
|
|
1139
1141
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
1140
1142
|
m(a, {
|
|
1141
1143
|
method: "GET",
|
|
@@ -1200,7 +1202,7 @@ async function E(e, n = void 0, t = void 0) {
|
|
|
1200
1202
|
console.log("☠️ error => ", i);
|
|
1201
1203
|
}
|
|
1202
1204
|
), new Promise((i, s) => {
|
|
1203
|
-
|
|
1205
|
+
j(
|
|
1204
1206
|
e,
|
|
1205
1207
|
(r) => {
|
|
1206
1208
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
@@ -1305,7 +1307,7 @@ function de(e, n, t = void 0, i = void 0, s = void 0) {
|
|
|
1305
1307
|
}
|
|
1306
1308
|
function tt(e, n, t = void 0, i = void 0) {
|
|
1307
1309
|
return new Promise((s) => {
|
|
1308
|
-
if (e.token === "" &&
|
|
1310
|
+
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1309
1311
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1310
1312
|
let o = {
|
|
1311
1313
|
method: "POST",
|
|
@@ -1336,7 +1338,7 @@ function tt(e, n, t = void 0, i = void 0) {
|
|
|
1336
1338
|
}
|
|
1337
1339
|
function nt(e, n, t, i = void 0, s = void 0) {
|
|
1338
1340
|
return new Promise((r) => {
|
|
1339
|
-
if (e.token === "" &&
|
|
1341
|
+
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1340
1342
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1341
1343
|
let a = {
|
|
1342
1344
|
method: "POST",
|
|
@@ -1368,9 +1370,9 @@ function nt(e, n, t, i = void 0, s = void 0) {
|
|
|
1368
1370
|
}
|
|
1369
1371
|
function st(e, n, t = void 0, i = void 0) {
|
|
1370
1372
|
return new Promise((s) => {
|
|
1371
|
-
if (e.token === "" &&
|
|
1373
|
+
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1372
1374
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1373
|
-
|
|
1375
|
+
R(
|
|
1374
1376
|
e.space,
|
|
1375
1377
|
"ESPACE COMMUN",
|
|
1376
1378
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1409,9 +1411,9 @@ function st(e, n, t = void 0, i = void 0) {
|
|
|
1409
1411
|
}
|
|
1410
1412
|
function it(e, n, t = void 0, i = void 0) {
|
|
1411
1413
|
return new Promise((s) => {
|
|
1412
|
-
if (e.token === "" &&
|
|
1414
|
+
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1413
1415
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1414
|
-
|
|
1416
|
+
R(
|
|
1415
1417
|
e.space,
|
|
1416
1418
|
"ESPACE COMMUN",
|
|
1417
1419
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1456,9 +1458,9 @@ function it(e, n, t = void 0, i = void 0) {
|
|
|
1456
1458
|
}
|
|
1457
1459
|
function ot(e, n, t, i = void 0, s = void 0) {
|
|
1458
1460
|
return new Promise((r) => {
|
|
1459
|
-
if (e.token === "" &&
|
|
1461
|
+
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1460
1462
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1461
|
-
|
|
1463
|
+
R(
|
|
1462
1464
|
e.space,
|
|
1463
1465
|
"ESPACE COMMUN",
|
|
1464
1466
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1550,7 +1552,29 @@ function at(e, n, t = void 0, i = void 0) {
|
|
|
1550
1552
|
m(d, p);
|
|
1551
1553
|
});
|
|
1552
1554
|
}
|
|
1553
|
-
function rt(e, n
|
|
1555
|
+
function rt(e, n) {
|
|
1556
|
+
return new Promise((t, i) => {
|
|
1557
|
+
const s = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
|
|
1558
|
+
m(s, {
|
|
1559
|
+
headers: {
|
|
1560
|
+
SecurityContext: `ctx::${e.ctx}`
|
|
1561
|
+
},
|
|
1562
|
+
onComplete: (r) => {
|
|
1563
|
+
let o;
|
|
1564
|
+
try {
|
|
1565
|
+
o = JSON.parse(r);
|
|
1566
|
+
} catch {
|
|
1567
|
+
o = r;
|
|
1568
|
+
}
|
|
1569
|
+
t(o);
|
|
1570
|
+
},
|
|
1571
|
+
onFailure(r) {
|
|
1572
|
+
i(r);
|
|
1573
|
+
}
|
|
1574
|
+
});
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
function ct(e, n, t, i, s = void 0, r = void 0) {
|
|
1554
1578
|
return new Promise((o) => {
|
|
1555
1579
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1556
1580
|
let c = {
|
|
@@ -1583,7 +1607,7 @@ function rt(e, n, t, i, s = void 0, r = void 0) {
|
|
|
1583
1607
|
m(a, u);
|
|
1584
1608
|
});
|
|
1585
1609
|
}
|
|
1586
|
-
function
|
|
1610
|
+
function dt(e, n, t, i, s = void 0, r = void 0) {
|
|
1587
1611
|
return console.log("credentials", e), new Promise((o) => {
|
|
1588
1612
|
`${e.space}`, JSON.stringify({
|
|
1589
1613
|
csrf: {
|
|
@@ -1607,7 +1631,7 @@ function ct(e, n, t, i, s = void 0, r = void 0) {
|
|
|
1607
1631
|
});
|
|
1608
1632
|
}
|
|
1609
1633
|
//!SECTION
|
|
1610
|
-
function
|
|
1634
|
+
function ut(e, n = void 0, t = void 0) {
|
|
1611
1635
|
const i = {
|
|
1612
1636
|
base: `${e.space}`,
|
|
1613
1637
|
uri: "/resources/bps/cspaces",
|
|
@@ -1628,8 +1652,8 @@ function dt(e, n = void 0, t = void 0) {
|
|
|
1628
1652
|
}
|
|
1629
1653
|
});
|
|
1630
1654
|
}
|
|
1631
|
-
function
|
|
1632
|
-
|
|
1655
|
+
function pt(e, n, t, i) {
|
|
1656
|
+
j(
|
|
1633
1657
|
e.space,
|
|
1634
1658
|
n,
|
|
1635
1659
|
(s) => {
|
|
@@ -1645,9 +1669,9 @@ function ut(e, n, t, i) {
|
|
|
1645
1669
|
}
|
|
1646
1670
|
);
|
|
1647
1671
|
}
|
|
1648
|
-
async function
|
|
1672
|
+
async function lt(e, n, t = void 0, i = void 0) {
|
|
1649
1673
|
return new Promise((s) => {
|
|
1650
|
-
|
|
1674
|
+
j(e, n, (r) => {
|
|
1651
1675
|
m(r, {
|
|
1652
1676
|
onComplete: (o, a, c) => (s(JSON.parse(o)), t && t(JSON.parse(o), a, c), s),
|
|
1653
1677
|
onFailure: (o, a, c) => {
|
|
@@ -1657,9 +1681,9 @@ async function pt(e, n, t = void 0, i = void 0) {
|
|
|
1657
1681
|
});
|
|
1658
1682
|
});
|
|
1659
1683
|
}
|
|
1660
|
-
function
|
|
1684
|
+
function ft(e, n, t, i = void 0, s = void 0) {
|
|
1661
1685
|
const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
|
|
1662
|
-
e = { ...e, objID: t },
|
|
1686
|
+
e = { ...e, objID: t }, F(
|
|
1663
1687
|
e,
|
|
1664
1688
|
(o) => {
|
|
1665
1689
|
console.log("_3DSpace_get_csrf | onDone | data", o);
|
|
@@ -1684,9 +1708,9 @@ function lt(e, n, t, i = void 0, s = void 0) {
|
|
|
1684
1708
|
);
|
|
1685
1709
|
}
|
|
1686
1710
|
let K, q;
|
|
1687
|
-
const
|
|
1688
|
-
async function
|
|
1689
|
-
e.objID && e.objID !== "" ?
|
|
1711
|
+
const A = [];
|
|
1712
|
+
async function mt(e, n = void 0, t = void 0) {
|
|
1713
|
+
e.objID && e.objID !== "" ? F(
|
|
1690
1714
|
e,
|
|
1691
1715
|
(i) => {
|
|
1692
1716
|
n && n(i);
|
|
@@ -1694,7 +1718,7 @@ async function ft(e, n = void 0, t = void 0) {
|
|
|
1694
1718
|
(i) => {
|
|
1695
1719
|
t && t(i);
|
|
1696
1720
|
}
|
|
1697
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1721
|
+
) : (e.objID === null || e.objID === "") && b(
|
|
1698
1722
|
e,
|
|
1699
1723
|
(i) => {
|
|
1700
1724
|
n && n({ rep: i, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1704,7 +1728,7 @@ async function ft(e, n = void 0, t = void 0) {
|
|
|
1704
1728
|
}
|
|
1705
1729
|
);
|
|
1706
1730
|
}
|
|
1707
|
-
async function
|
|
1731
|
+
async function gt(e, n = void 0, t = void 0) {
|
|
1708
1732
|
console.log("getDatasByTenant (getDocuments)", e), await E(
|
|
1709
1733
|
e,
|
|
1710
1734
|
(i) => {
|
|
@@ -1716,7 +1740,7 @@ async function mt(e, n = void 0, t = void 0) {
|
|
|
1716
1740
|
}
|
|
1717
1741
|
);
|
|
1718
1742
|
}
|
|
1719
|
-
function
|
|
1743
|
+
function ht(e, n = void 0, t = void 0) {
|
|
1720
1744
|
const i = [];
|
|
1721
1745
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1722
1746
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
@@ -1738,7 +1762,7 @@ function pe(e, n, t = void 0, i = void 0) {
|
|
|
1738
1762
|
K,
|
|
1739
1763
|
(s) => {
|
|
1740
1764
|
const r = [...n];
|
|
1741
|
-
r.find((o) => o.objectID === s.objectId).data = s.data, q = r,
|
|
1765
|
+
r.find((o) => o.objectID === s.objectId).data = s.data, q = r, A.push(s.data), t && t(A);
|
|
1742
1766
|
},
|
|
1743
1767
|
(s) => {
|
|
1744
1768
|
i && (i(s), console.log(s));
|
|
@@ -1765,7 +1789,7 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
|
|
|
1765
1789
|
order_by: "desc",
|
|
1766
1790
|
tag: "testTag"
|
|
1767
1791
|
};
|
|
1768
|
-
function
|
|
1792
|
+
function yt(e, n, t = void 0, i = void 0) {
|
|
1769
1793
|
const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
|
|
1770
1794
|
uri: "/resources/6w/tags",
|
|
1771
1795
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1908,7 +1932,7 @@ function ge(e, n, t = void 0, i = void 0) {
|
|
|
1908
1932
|
}
|
|
1909
1933
|
});
|
|
1910
1934
|
}
|
|
1911
|
-
function
|
|
1935
|
+
function _t(e, n, t = void 0, i = void 0) {
|
|
1912
1936
|
const { objId: s, pred: r, tag: o } = n, a = {
|
|
1913
1937
|
uri: "/resources/6w/tags",
|
|
1914
1938
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1944,7 +1968,7 @@ function yt(e, n, t = void 0, i = void 0) {
|
|
|
1944
1968
|
}
|
|
1945
1969
|
});
|
|
1946
1970
|
}
|
|
1947
|
-
function
|
|
1971
|
+
function St(e, n = "", t = void 0, i = void 0) {
|
|
1948
1972
|
const { space: s } = e;
|
|
1949
1973
|
if (n === "")
|
|
1950
1974
|
return;
|
|
@@ -1980,7 +2004,7 @@ async function C(e, n = void 0, t = void 0) {
|
|
|
1980
2004
|
}
|
|
1981
2005
|
});
|
|
1982
2006
|
}
|
|
1983
|
-
function
|
|
2007
|
+
function wt(e, n = void 0, t = void 0) {
|
|
1984
2008
|
const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
|
|
1985
2009
|
params: {
|
|
1986
2010
|
community_id: null,
|
|
@@ -2010,7 +2034,7 @@ function St(e, n = void 0, t = void 0) {
|
|
|
2010
2034
|
});
|
|
2011
2035
|
});
|
|
2012
2036
|
}
|
|
2013
|
-
function
|
|
2037
|
+
function Ct(e, n = void 0, t = void 0) {
|
|
2014
2038
|
const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
|
|
2015
2039
|
params: {
|
|
2016
2040
|
idsToFilterArr: [],
|
|
@@ -2040,7 +2064,7 @@ function wt(e, n = void 0, t = void 0) {
|
|
|
2040
2064
|
});
|
|
2041
2065
|
});
|
|
2042
2066
|
}
|
|
2043
|
-
function
|
|
2067
|
+
function bt(e, n = void 0, t = void 0) {
|
|
2044
2068
|
const i = {
|
|
2045
2069
|
base: e._3DSwym,
|
|
2046
2070
|
uri: "/api/community/listmycommunities",
|
|
@@ -2133,7 +2157,7 @@ function Ot(e, n = void 0, t = void 0) {
|
|
|
2133
2157
|
});
|
|
2134
2158
|
});
|
|
2135
2159
|
}
|
|
2136
|
-
function
|
|
2160
|
+
function Tt(e, n, t = void 0, i = void 0) {
|
|
2137
2161
|
const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
|
|
2138
2162
|
console.log("__listAllContacts", s.hits);
|
|
2139
2163
|
const a = `${o}/api/directmessages`, c = {
|
|
@@ -2249,7 +2273,7 @@ function _e(e) {
|
|
|
2249
2273
|
<hr/>
|
|
2250
2274
|
<p><u>envoyer :</u>Le <b>${n} à ${t}</b></p>`;
|
|
2251
2275
|
}
|
|
2252
|
-
function
|
|
2276
|
+
function $t(e, n, t = void 0, i = void 0) {
|
|
2253
2277
|
const s = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
2254
2278
|
(c) => c.id === n.community_id
|
|
2255
2279
|
), o = e.swymCommunities.find(
|
|
@@ -2288,7 +2312,7 @@ function Tt(e, n, t = void 0, i = void 0) {
|
|
|
2288
2312
|
});
|
|
2289
2313
|
});
|
|
2290
2314
|
}
|
|
2291
|
-
function
|
|
2315
|
+
function Ut(e, n = void 0, t = void 0) {
|
|
2292
2316
|
const i = { base: e.space, uri: "/api/idea/add" };
|
|
2293
2317
|
if (!Array.isArray(e.swymCommunities)) {
|
|
2294
2318
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -2361,7 +2385,7 @@ function $t(e, n = void 0, t = void 0) {
|
|
|
2361
2385
|
m(i.base + i.uri, a);
|
|
2362
2386
|
});
|
|
2363
2387
|
}
|
|
2364
|
-
function
|
|
2388
|
+
function xt(e, n, t = void 0, i = void 0) {
|
|
2365
2389
|
const s = `${e.space}/api/idea/delete`, r = {
|
|
2366
2390
|
params: {
|
|
2367
2391
|
community_id: n.community_id,
|
|
@@ -2388,7 +2412,7 @@ function Ut(e, n, t = void 0, i = void 0) {
|
|
|
2388
2412
|
});
|
|
2389
2413
|
});
|
|
2390
2414
|
}
|
|
2391
|
-
function
|
|
2415
|
+
function Nt(e, n = void 0, t = void 0) {
|
|
2392
2416
|
const { _3DSwym: i, _3DSwym_token: s } = e, r = `${i}/api/idea/get`;
|
|
2393
2417
|
if (e.idPost === "") {
|
|
2394
2418
|
const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
@@ -2416,7 +2440,7 @@ function xt(e, n = void 0, t = void 0) {
|
|
|
2416
2440
|
}
|
|
2417
2441
|
});
|
|
2418
2442
|
}
|
|
2419
|
-
function
|
|
2443
|
+
function It(e, n, t) {
|
|
2420
2444
|
const {
|
|
2421
2445
|
_3DSwym: i,
|
|
2422
2446
|
_3DSwym_token: s,
|
|
@@ -2461,7 +2485,7 @@ function Nt(e, n, t) {
|
|
|
2461
2485
|
};
|
|
2462
2486
|
m(p.base + p.uri, l);
|
|
2463
2487
|
}
|
|
2464
|
-
function
|
|
2488
|
+
function Ft(e, n, t = void 0, i = void 0) {
|
|
2465
2489
|
const { _3DSwym: s } = e;
|
|
2466
2490
|
let { community_id: r, limit: o, page: a, search: c } = n;
|
|
2467
2491
|
const d = [], u = 1;
|
|
@@ -2487,11 +2511,11 @@ function It(e, n, t = void 0, i = void 0) {
|
|
|
2487
2511
|
if (a++, l.page = `/page/${a}`, S = `${s}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2488
2512
|
d.push(_.response.result);
|
|
2489
2513
|
else {
|
|
2490
|
-
const
|
|
2491
|
-
(
|
|
2514
|
+
const O = _.response.result.find(
|
|
2515
|
+
(k) => k.title.includes(c)
|
|
2492
2516
|
);
|
|
2493
|
-
if (
|
|
2494
|
-
t(
|
|
2517
|
+
if (O) {
|
|
2518
|
+
t(O);
|
|
2495
2519
|
return;
|
|
2496
2520
|
}
|
|
2497
2521
|
}
|
|
@@ -2503,8 +2527,8 @@ function It(e, n, t = void 0, i = void 0) {
|
|
|
2503
2527
|
}
|
|
2504
2528
|
},
|
|
2505
2529
|
onFailure(w, _) {
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2530
|
+
const O = w;
|
|
2531
|
+
O.status = _.status, O.response = _.errormsg, i && i(O);
|
|
2508
2532
|
}
|
|
2509
2533
|
});
|
|
2510
2534
|
};
|
|
@@ -2619,7 +2643,7 @@ function Rt(e, n = void 0, t = void 0) {
|
|
|
2619
2643
|
credentials: e
|
|
2620
2644
|
});
|
|
2621
2645
|
}
|
|
2622
|
-
function
|
|
2646
|
+
function kt(e, n = void 0, t = void 0) {
|
|
2623
2647
|
return new Promise((i, s) => {
|
|
2624
2648
|
try {
|
|
2625
2649
|
let r;
|
|
@@ -2696,7 +2720,7 @@ function vt(e, n = void 0, t = void 0) {
|
|
|
2696
2720
|
};
|
|
2697
2721
|
m(a, d);
|
|
2698
2722
|
}
|
|
2699
|
-
function
|
|
2723
|
+
function Dt(e, n = void 0, t = void 0) {
|
|
2700
2724
|
e.tenant && J(e, (i) => {
|
|
2701
2725
|
const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2702
2726
|
return n && n(s), s;
|
|
@@ -2722,7 +2746,7 @@ function At(e, n = void 0, t = void 0) {
|
|
|
2722
2746
|
});
|
|
2723
2747
|
}) : t && t("No tenant");
|
|
2724
2748
|
}
|
|
2725
|
-
function
|
|
2749
|
+
function Pt(e, n = void 0, t = void 0) {
|
|
2726
2750
|
if (e.tenant) {
|
|
2727
2751
|
const i = e.tenant.toLowerCase();
|
|
2728
2752
|
fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
|
|
@@ -2734,7 +2758,7 @@ function Dt(e, n = void 0, t = void 0) {
|
|
|
2734
2758
|
});
|
|
2735
2759
|
}
|
|
2736
2760
|
}
|
|
2737
|
-
async function
|
|
2761
|
+
async function Lt(e, n, t = void 0, i = void 0) {
|
|
2738
2762
|
if (e.tenant) {
|
|
2739
2763
|
const s = e.tenant.toLowerCase();
|
|
2740
2764
|
fetch(
|
|
@@ -2749,7 +2773,7 @@ async function Pt(e, n, t = void 0, i = void 0) {
|
|
|
2749
2773
|
});
|
|
2750
2774
|
}
|
|
2751
2775
|
}
|
|
2752
|
-
function
|
|
2776
|
+
function Jt(e, n, t, i = void 0, s = void 0) {
|
|
2753
2777
|
if (e.tenant) {
|
|
2754
2778
|
const r = e.tenant.toLowerCase();
|
|
2755
2779
|
fetch(
|
|
@@ -2764,7 +2788,7 @@ function Lt(e, n, t, i = void 0, s = void 0) {
|
|
|
2764
2788
|
});
|
|
2765
2789
|
}
|
|
2766
2790
|
}
|
|
2767
|
-
async function
|
|
2791
|
+
async function Mt(e, n, t, i = void 0, s = void 0) {
|
|
2768
2792
|
if (e.tenant) {
|
|
2769
2793
|
const r = e.tenant.toLowerCase();
|
|
2770
2794
|
fetch(
|
|
@@ -2782,7 +2806,7 @@ async function Jt(e, n, t, i = void 0, s = void 0) {
|
|
|
2782
2806
|
});
|
|
2783
2807
|
}
|
|
2784
2808
|
}
|
|
2785
|
-
async function
|
|
2809
|
+
async function Gt(e, n, t, i, s = void 0, r = void 0) {
|
|
2786
2810
|
if (e.tenant) {
|
|
2787
2811
|
const o = e.tenant.toLowerCase();
|
|
2788
2812
|
fetch(
|
|
@@ -2797,7 +2821,7 @@ async function Mt(e, n, t, i, s = void 0, r = void 0) {
|
|
|
2797
2821
|
});
|
|
2798
2822
|
}
|
|
2799
2823
|
}
|
|
2800
|
-
async function
|
|
2824
|
+
async function Bt(e, n, t, i, s, r = void 0, o = void 0) {
|
|
2801
2825
|
if (e.tenant) {
|
|
2802
2826
|
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
|
|
2803
2827
|
i
|
|
@@ -2816,7 +2840,7 @@ async function Gt(e, n, t, i, s, r = void 0, o = void 0) {
|
|
|
2816
2840
|
});
|
|
2817
2841
|
}
|
|
2818
2842
|
}
|
|
2819
|
-
async function
|
|
2843
|
+
async function Et(e, n, t, i, s = void 0, r = void 0) {
|
|
2820
2844
|
if (e.tenant) {
|
|
2821
2845
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
|
|
2822
2846
|
i
|
|
@@ -2833,7 +2857,7 @@ async function Bt(e, n, t, i, s = void 0, r = void 0) {
|
|
|
2833
2857
|
});
|
|
2834
2858
|
}
|
|
2835
2859
|
}
|
|
2836
|
-
async function
|
|
2860
|
+
async function Kt(e, n, t, i = void 0, s = void 0) {
|
|
2837
2861
|
if (e.tenant) {
|
|
2838
2862
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
|
|
2839
2863
|
t
|
|
@@ -2850,7 +2874,7 @@ async function Et(e, n, t, i = void 0, s = void 0) {
|
|
|
2850
2874
|
});
|
|
2851
2875
|
}
|
|
2852
2876
|
}
|
|
2853
|
-
async function
|
|
2877
|
+
async function qt(e, n, t, i, s = void 0, r = void 0) {
|
|
2854
2878
|
if (e.tenant) {
|
|
2855
2879
|
const o = e.tenant.toLowerCase();
|
|
2856
2880
|
fetch(
|
|
@@ -2865,7 +2889,7 @@ async function Kt(e, n, t, i, s = void 0, r = void 0) {
|
|
|
2865
2889
|
});
|
|
2866
2890
|
}
|
|
2867
2891
|
}
|
|
2868
|
-
async function
|
|
2892
|
+
async function Xt(e, n, t, i = void 0, s = void 0) {
|
|
2869
2893
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2870
2894
|
const r = e.tenant.toLowerCase();
|
|
2871
2895
|
fetch(
|
|
@@ -2880,7 +2904,7 @@ async function qt(e, n, t, i = void 0, s = void 0) {
|
|
|
2880
2904
|
});
|
|
2881
2905
|
}
|
|
2882
2906
|
}
|
|
2883
|
-
async function
|
|
2907
|
+
async function Wt(e, n, t, i, s, r = void 0, o = void 0) {
|
|
2884
2908
|
if (e.tenant) {
|
|
2885
2909
|
const a = e.tenant.toLowerCase();
|
|
2886
2910
|
fetch(
|
|
@@ -2895,7 +2919,7 @@ async function Xt(e, n, t, i, s, r = void 0, o = void 0) {
|
|
|
2895
2919
|
});
|
|
2896
2920
|
}
|
|
2897
2921
|
}
|
|
2898
|
-
async function
|
|
2922
|
+
async function Vt(e, n, t, i, s = void 0, r = void 0) {
|
|
2899
2923
|
if (e.tenant) {
|
|
2900
2924
|
const o = e.tenant.toLowerCase();
|
|
2901
2925
|
fetch(
|
|
@@ -2911,7 +2935,7 @@ async function Wt(e, n, t, i, s = void 0, r = void 0) {
|
|
|
2911
2935
|
}
|
|
2912
2936
|
}
|
|
2913
2937
|
//!SECTION
|
|
2914
|
-
async function
|
|
2938
|
+
async function Yt(e, n, t, i = void 0, s = void 0) {
|
|
2915
2939
|
if (e.tenant) {
|
|
2916
2940
|
const r = e.tenant.toLowerCase();
|
|
2917
2941
|
fetch(
|
|
@@ -2927,17 +2951,17 @@ async function Vt(e, n, t, i = void 0, s = void 0) {
|
|
|
2927
2951
|
}
|
|
2928
2952
|
}
|
|
2929
2953
|
//!SECTION
|
|
2930
|
-
function
|
|
2954
|
+
function zt(e) {
|
|
2931
2955
|
const n = "Hello " + e;
|
|
2932
2956
|
return console.log(n), n;
|
|
2933
2957
|
}
|
|
2934
|
-
function
|
|
2958
|
+
function Ht(e, n = void 0, t = void 0) {
|
|
2935
2959
|
return console.log("credentials", e), new Promise((i) => {
|
|
2936
|
-
if (e.token === "" &&
|
|
2960
|
+
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2937
2961
|
const o = Z();
|
|
2938
2962
|
console.log("platformeInfo", o);
|
|
2939
2963
|
}
|
|
2940
|
-
|
|
2964
|
+
R(
|
|
2941
2965
|
e,
|
|
2942
2966
|
"Common space",
|
|
2943
2967
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -3012,24 +3036,25 @@ function zt(e, n = void 0, t = void 0) {
|
|
|
3012
3036
|
}
|
|
3013
3037
|
export {
|
|
3014
3038
|
Y as UUID,
|
|
3015
|
-
|
|
3039
|
+
Ht as _3DSearch_usersGroup,
|
|
3016
3040
|
et as _3DSpace_Create_Doc,
|
|
3017
3041
|
Ze as _3DSpace_Update_Doc,
|
|
3018
3042
|
Qe as _3DSpace_Upload_File,
|
|
3019
|
-
|
|
3020
|
-
rt as
|
|
3021
|
-
|
|
3043
|
+
dt as _3DSpace_bookmark_addSubsciptions,
|
|
3044
|
+
rt as _3DSpace_bookmark_getChildren,
|
|
3045
|
+
ct as _3DSpace_bookmark_newWorkspace,
|
|
3046
|
+
b as _3DSpace_csrf,
|
|
3022
3047
|
E as _3DSpace_download_doc,
|
|
3023
3048
|
ce as _3DSpace_download_multidoc,
|
|
3024
3049
|
G as _3DSpace_file_update,
|
|
3025
3050
|
oe as _3DSpace_file_update_csr,
|
|
3026
3051
|
ze as _3DSpace_file_url_csr,
|
|
3027
|
-
|
|
3052
|
+
F as _3DSpace_get_csrf,
|
|
3028
3053
|
M as _3DSpace_get_docInfo,
|
|
3029
3054
|
de as _3DSpace_get_downloadTicket_multidoc,
|
|
3030
3055
|
Ye as _3DSpace_get_multiDocInfo,
|
|
3031
|
-
|
|
3032
|
-
|
|
3056
|
+
R as _3DSpace_get_securityContexts,
|
|
3057
|
+
j as _3DSpace_get_ticket,
|
|
3033
3058
|
ot as _3DSpace_lifecycle_changeRevision,
|
|
3034
3059
|
nt as _3DSpace_lifecycle_changeState,
|
|
3035
3060
|
st as _3DSpace_lifecycle_getGraph,
|
|
@@ -3039,51 +3064,51 @@ export {
|
|
|
3039
3064
|
He as _3DSpace_put_docInfo,
|
|
3040
3065
|
Rt as _3DSwym_ForwardIdea,
|
|
3041
3066
|
vt as _3DSwym_addComment,
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3067
|
+
Tt as _3DSwym_buildDirectMessage,
|
|
3068
|
+
xt as _3DSwym_deleteIdea,
|
|
3069
|
+
It as _3DSwym_editIdea,
|
|
3045
3070
|
ye as _3DSwym_findCommunityToInstantMSG,
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3071
|
+
bt as _3DSwym_getAllCommunities,
|
|
3072
|
+
Ft as _3DSwym_getAllListIdeas,
|
|
3073
|
+
wt as _3DSwym_getAllNews,
|
|
3074
|
+
Ct as _3DSwym_getFamiliarPeople,
|
|
3050
3075
|
Ot as _3DSwym_getIdeaStatusMaturity,
|
|
3051
3076
|
he as _3DSwym_getMembersCommunity,
|
|
3052
|
-
|
|
3077
|
+
Nt as _3DSwym_getOneIdea,
|
|
3053
3078
|
C as _3DSwym_get_Token,
|
|
3054
|
-
|
|
3079
|
+
kt as _3DSwym_get_currentUser,
|
|
3055
3080
|
jt as _3DSwym_get_findUser,
|
|
3056
|
-
|
|
3057
|
-
|
|
3081
|
+
Ut as _3DSwym_postIdea,
|
|
3082
|
+
$t as _3DSwym_postIdeaTemplate,
|
|
3058
3083
|
P as _3DSwym_sendMessageData,
|
|
3059
3084
|
Je as _AppMngt_get_info_user,
|
|
3060
3085
|
Le as _AppMngt_get_users,
|
|
3061
|
-
|
|
3086
|
+
Gt as _Iterop_AddOrRemoveRows,
|
|
3062
3087
|
At as _Iterop_Auth_CAS,
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3088
|
+
Xt as _Iterop_GetOneDependencyTable,
|
|
3089
|
+
Yt as _Iterop_GetOneList,
|
|
3090
|
+
Wt as _Iterop_PatchDependencyTable,
|
|
3091
|
+
Vt as _Iterop_PutDependencyTable,
|
|
3092
|
+
Bt as _Iterop_businessTableSearchInRows,
|
|
3093
|
+
Kt as _Iterop_createBusinessTable,
|
|
3094
|
+
Lt as _Iterop_getAllBusinessTables,
|
|
3095
|
+
Jt as _Iterop_getOneBusinessTable,
|
|
3096
|
+
Mt as _Iterop_getOneBusinessTableRows,
|
|
3097
|
+
Pt as _Iterop_jwtUser,
|
|
3098
|
+
qt as _Iterop_runProcess,
|
|
3099
|
+
Et as _Iterop_updateBusinessTable,
|
|
3100
|
+
Ae as _Registry_getServicesUrl,
|
|
3101
|
+
ve as _getMe,
|
|
3077
3102
|
Z as _getPlateformInfos,
|
|
3078
|
-
|
|
3103
|
+
je as _getPlatformServices,
|
|
3079
3104
|
J as _getServiceUrl,
|
|
3080
|
-
|
|
3081
|
-
|
|
3105
|
+
De as _getServiceUrl_3DPassport,
|
|
3106
|
+
Dt as _getServiceUrl_Iterop,
|
|
3082
3107
|
m as _httpCallAuthenticated,
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3108
|
+
Fe as _setDraggable,
|
|
3109
|
+
ke as _setDroppable,
|
|
3110
|
+
Re as _setupTagger,
|
|
3111
|
+
yt as addTagToDoc,
|
|
3087
3112
|
H as chunkArray,
|
|
3088
3113
|
Pe as compass_getListAdditionalApps,
|
|
3089
3114
|
z as couleurs,
|
|
@@ -3091,27 +3116,27 @@ export {
|
|
|
3091
3116
|
pe as dataMixing,
|
|
3092
3117
|
qe as deleteUserGroups,
|
|
3093
3118
|
xe as findAdresse,
|
|
3094
|
-
|
|
3119
|
+
ut as getAllContextSecurity,
|
|
3095
3120
|
te as getCSRFToken,
|
|
3096
3121
|
Ue as getCommunes,
|
|
3097
3122
|
Ge as getComplementUG,
|
|
3098
|
-
|
|
3123
|
+
pt as getDataFrom3DSpace,
|
|
3099
3124
|
Ne as getDataFromGouvFr,
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3125
|
+
gt as getDatasByTenant,
|
|
3126
|
+
ht as getDatasFrom3DSpace,
|
|
3127
|
+
lt as getDownloadDocument,
|
|
3128
|
+
St as getInfoDocTags,
|
|
3104
3129
|
Ke as getUserGroupsByEmailList,
|
|
3105
3130
|
Ee as getUserGroupsByURIList,
|
|
3106
3131
|
Be as getUserGroupsList,
|
|
3107
3132
|
ee as getUsersGroupRules,
|
|
3108
|
-
|
|
3133
|
+
mt as get_3DSpace_csrf,
|
|
3109
3134
|
Xe as patchUserGroups,
|
|
3110
3135
|
We as patchUserGroupsControl,
|
|
3111
|
-
|
|
3136
|
+
ft as pushDataIn3DSpace,
|
|
3112
3137
|
Ve as readUserGroupControl,
|
|
3113
|
-
|
|
3114
|
-
|
|
3138
|
+
_t as removeTagToDoc,
|
|
3139
|
+
zt as sayHello,
|
|
3115
3140
|
Ie as updateEvent
|
|
3116
3141
|
};
|
|
3117
3142
|
//# sourceMappingURL=wb3Api.js.map
|