@beam3_dev/api_module 0.0.268 → 0.0.270
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 +81 -94
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +6 -6
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as K } from "uuid";
|
|
2
2
|
import { DateTime as O } from "luxon";
|
|
3
|
-
import { requirejs as $, widget as
|
|
3
|
+
import { requirejs as $, widget as v } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function B() {
|
|
5
5
|
return K();
|
|
6
6
|
}
|
|
@@ -155,7 +155,7 @@ function be(e, t = void 0) {
|
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
156
156
|
let n;
|
|
157
157
|
n === void 0 && (n = s.createProxy({
|
|
158
|
-
widgetId:
|
|
158
|
+
widgetId: v.id,
|
|
159
159
|
filteringMode: "WithFilteringServices"
|
|
160
160
|
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
161
161
|
});
|
|
@@ -171,7 +171,7 @@ async function $e(e, t = void 0, s = void 0) {
|
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(n) => {
|
|
174
|
-
(!e || e === "") && (e =
|
|
174
|
+
(!e || e === "") && (e = v.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
175
|
n.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
177
|
onComplete: t,
|
|
@@ -181,7 +181,7 @@ async function $e(e, t = void 0, s = void 0) {
|
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function q() {
|
|
185
185
|
let e = {};
|
|
186
186
|
return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
187
187
|
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
@@ -258,7 +258,7 @@ function Ie(e, t, s) {
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Ue(e, t = void 0, s = void 0) {
|
|
262
262
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
263
263
|
m(n, {
|
|
264
264
|
onComplete(i, r, o) {
|
|
@@ -271,7 +271,7 @@ function Fe(e, t = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Fe(e, t, s = void 0, n = void 0) {
|
|
275
275
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
277
|
onComplete(r, o, a) {
|
|
@@ -284,11 +284,11 @@ function Re(e, t, s = void 0, n = void 0) {
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const R = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Re(e, t, s = void 0, n = void 0) {
|
|
292
292
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
@@ -305,7 +305,7 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: R,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
s && s(JSON.parse(d));
|
|
@@ -336,7 +336,7 @@ function ke(e, t, s = void 0, n = void 0) {
|
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Y(e, t = void 0, s = void 0) {
|
|
340
340
|
const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
341
341
|
method: "GET",
|
|
342
342
|
Accept: "application/json,*/*,test/javascript"
|
|
@@ -364,7 +364,7 @@ function je(e, t = void 0, s = void 0) {
|
|
|
364
364
|
const p = JSON.parse(u), f = {}, l = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
365
365
|
if (i && Object.keys(i).length > 0) {
|
|
366
366
|
const g = l.filter((_) => _.owner === i.email), h = l.filter((_) => _.members.includes(i.email)), y = g.concat(h);
|
|
367
|
-
f.iam = y, f.UG = l, f.iamMember = h,
|
|
367
|
+
f.iam = y, f.UG = l, f.iamMember = h, Y(
|
|
368
368
|
e,
|
|
369
369
|
(_) => {
|
|
370
370
|
f.rules = _, t && t(f);
|
|
@@ -383,13 +383,13 @@ function je(e, t = void 0, s = void 0) {
|
|
|
383
383
|
console.log(u);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ae(e, t) {
|
|
387
387
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function ve(e, t, s, n = void 0, i = void 0) {
|
|
393
393
|
const { space: r, tenant: o } = e, a = {
|
|
394
394
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
395
395
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -400,7 +400,7 @@ function Ae(e, t, s, n = void 0, i = void 0) {
|
|
|
400
400
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
401
|
}, c = s, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
|
-
headers:
|
|
403
|
+
headers: R,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: u,
|
|
406
406
|
type: "json",
|
|
@@ -416,7 +416,7 @@ function xe(e, t, s, n = void 0, i = void 0) {
|
|
|
416
416
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
417
|
m(a, {
|
|
418
418
|
method: "PATCH",
|
|
419
|
-
headers:
|
|
419
|
+
headers: R,
|
|
420
420
|
data: JSON.stringify(s),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -540,7 +540,7 @@ async function Pe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function U(e, t = void 0, s = void 0) {
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
545
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
546
|
m(n, {
|
|
@@ -584,7 +584,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
584
584
|
}
|
|
585
585
|
function k(e, t = void 0, s = void 0) {
|
|
586
586
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
-
|
|
587
|
+
U(
|
|
588
588
|
e,
|
|
589
589
|
(i) => {
|
|
590
590
|
m(n, {
|
|
@@ -639,7 +639,7 @@ function P(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
639
639
|
r,
|
|
640
640
|
o
|
|
641
641
|
);
|
|
642
|
-
e.token ? a() :
|
|
642
|
+
e.token ? a() : U(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
@@ -694,9 +694,9 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
694
694
|
onFailure(T) {
|
|
695
695
|
a && a(T);
|
|
696
696
|
}
|
|
697
|
-
},
|
|
697
|
+
}, w = e.tenant.toUpperCase();
|
|
698
698
|
m(
|
|
699
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
699
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
700
700
|
S
|
|
701
701
|
);
|
|
702
702
|
}, y.onFailure = function(_) {
|
|
@@ -879,7 +879,7 @@ function se(e, t, s, n = void 0, i = void 0, r = void 0) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
883
883
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
884
884
|
m(a, {
|
|
885
885
|
method: "GET",
|
|
@@ -893,7 +893,7 @@ function R(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
893
893
|
let h = g.couples;
|
|
894
894
|
h = h.filter(
|
|
895
895
|
(y, _, S) => _ === S.findIndex(
|
|
896
|
-
(
|
|
896
|
+
(w) => w.organization.pid === y.organization.pid && w.role.pid === y.role.pid
|
|
897
897
|
)
|
|
898
898
|
), s && (Array.isArray(s) ? s.forEach((y) => {
|
|
899
899
|
l || h.forEach((_) => {
|
|
@@ -901,7 +901,7 @@ function R(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
901
901
|
l = y, f = n;
|
|
902
902
|
else if (y === _.role.name) {
|
|
903
903
|
let S = h.filter(
|
|
904
|
-
(
|
|
904
|
+
(w) => w.role.name === y
|
|
905
905
|
);
|
|
906
906
|
S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
|
|
907
907
|
}
|
|
@@ -1114,7 +1114,7 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1114
1114
|
return new Promise((i) => {
|
|
1115
1115
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1116
1116
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1117
|
-
|
|
1117
|
+
F(
|
|
1118
1118
|
e.space,
|
|
1119
1119
|
"ESPACE COMMUN",
|
|
1120
1120
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1155,7 +1155,7 @@ function We(e, t, s = void 0, n = void 0) {
|
|
|
1155
1155
|
return new Promise((i) => {
|
|
1156
1156
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1157
1157
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1158
|
-
|
|
1158
|
+
F(
|
|
1159
1159
|
e.space,
|
|
1160
1160
|
"ESPACE COMMUN",
|
|
1161
1161
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1202,7 +1202,7 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1202
1202
|
return new Promise((r) => {
|
|
1203
1203
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1204
1204
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1205
|
-
|
|
1205
|
+
F(
|
|
1206
1206
|
e.space,
|
|
1207
1207
|
"ESPACE COMMUN",
|
|
1208
1208
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1278,7 +1278,7 @@ function Ve(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1278
1278
|
m(a, u);
|
|
1279
1279
|
});
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function qe(e, t, s, n, i = void 0, r = void 0) {
|
|
1282
1282
|
return console.log("credentials", e), new Promise((o) => {
|
|
1283
1283
|
`${e.space}`, JSON.stringify({
|
|
1284
1284
|
csrf: {
|
|
@@ -1302,7 +1302,7 @@ function Ye(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
1304
|
//!SECTION
|
|
1305
|
-
function
|
|
1305
|
+
function Ye(e, t = void 0, s = void 0) {
|
|
1306
1306
|
const n = {
|
|
1307
1307
|
base: `${e.space}`,
|
|
1308
1308
|
uri: "/resources/bps/cspaces",
|
|
@@ -1354,7 +1354,7 @@ async function ze(e, t, s = void 0, n = void 0) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
function Qe(e, t, s, n = void 0, i = void 0) {
|
|
1356
1356
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1357
|
-
|
|
1357
|
+
U(
|
|
1358
1358
|
e,
|
|
1359
1359
|
s,
|
|
1360
1360
|
(o) => {
|
|
@@ -1378,7 +1378,7 @@ function Qe(e, t, s, n = void 0, i = void 0) {
|
|
|
1378
1378
|
let M, J;
|
|
1379
1379
|
const j = [];
|
|
1380
1380
|
async function Ze(e, t = void 0, s = void 0) {
|
|
1381
|
-
e.objID && e.objID !== "" ?
|
|
1381
|
+
e.objID && e.objID !== "" ? U(
|
|
1382
1382
|
e,
|
|
1383
1383
|
(n) => {
|
|
1384
1384
|
t && t(n);
|
|
@@ -1659,7 +1659,7 @@ function it(e, t = "", s = void 0, n = void 0) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
});
|
|
1661
1661
|
}
|
|
1662
|
-
async function
|
|
1662
|
+
async function C(e, t = void 0, s = void 0) {
|
|
1663
1663
|
const n = e._3DSwym + "/api/index/tk";
|
|
1664
1664
|
return m(n, {
|
|
1665
1665
|
onComplete(i, r, o) {
|
|
@@ -1683,7 +1683,7 @@ function at(e, t = void 0, s = void 0) {
|
|
|
1683
1683
|
start: 0
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
|
-
|
|
1686
|
+
C(e, (r) => {
|
|
1687
1687
|
m(n, {
|
|
1688
1688
|
method: "POST",
|
|
1689
1689
|
headers: {
|
|
@@ -1712,7 +1712,7 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1712
1712
|
maxNbOfCommonElements: "5"
|
|
1713
1713
|
}
|
|
1714
1714
|
};
|
|
1715
|
-
|
|
1715
|
+
C(e, (r) => {
|
|
1716
1716
|
m(n, {
|
|
1717
1717
|
method: "POST",
|
|
1718
1718
|
headers: {
|
|
@@ -1739,7 +1739,7 @@ function rt(e, t = void 0, s = void 0) {
|
|
|
1739
1739
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1740
1740
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1741
1741
|
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1742
|
-
|
|
1742
|
+
C(e, (o) => {
|
|
1743
1743
|
m(i, {
|
|
1744
1744
|
method: "GET",
|
|
1745
1745
|
headers: {
|
|
@@ -1782,7 +1782,7 @@ function pe(e, t, s, n) {
|
|
|
1782
1782
|
community_id: t
|
|
1783
1783
|
}
|
|
1784
1784
|
};
|
|
1785
|
-
|
|
1785
|
+
C(e, (o) => {
|
|
1786
1786
|
m(i, {
|
|
1787
1787
|
method: "POST",
|
|
1788
1788
|
headers: {
|
|
@@ -1806,7 +1806,7 @@ function ct(e, t = void 0, s = void 0) {
|
|
|
1806
1806
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1807
1807
|
e.commu_id || (e.commu_id = n);
|
|
1808
1808
|
const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1809
|
-
|
|
1809
|
+
C(e, (r) => {
|
|
1810
1810
|
m(i, {
|
|
1811
1811
|
method: "GET",
|
|
1812
1812
|
headers: {
|
|
@@ -1840,13 +1840,13 @@ function dt(e, t, s = void 0, n = void 0) {
|
|
|
1840
1840
|
le(
|
|
1841
1841
|
c.users,
|
|
1842
1842
|
(p) => {
|
|
1843
|
-
p !== void 0 && (d.id_msg = p.id, u = !0,
|
|
1843
|
+
p !== void 0 && (d.id_msg = p.id, u = !0, A(e, d));
|
|
1844
1844
|
},
|
|
1845
1845
|
(p) => {
|
|
1846
1846
|
u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), d.id_msg = "";
|
|
1847
1847
|
}
|
|
1848
1848
|
), u === !1 && setTimeout(() => {
|
|
1849
|
-
u === !1 &&
|
|
1849
|
+
u === !1 && C(e, (p) => {
|
|
1850
1850
|
m(a, {
|
|
1851
1851
|
method: "POST",
|
|
1852
1852
|
headers: {
|
|
@@ -1858,7 +1858,7 @@ function dt(e, t, s = void 0, n = void 0) {
|
|
|
1858
1858
|
type: "json",
|
|
1859
1859
|
onComplete(f, l, g) {
|
|
1860
1860
|
const h = f;
|
|
1861
|
-
h.reponse = JSON.parse(g.response), h.status = g.status, s && s(h), d.id_msg = h.result.id,
|
|
1861
|
+
h.reponse = JSON.parse(g.response), h.status = g.status, s && s(h), d.id_msg = h.result.id, A(e, d);
|
|
1862
1862
|
},
|
|
1863
1863
|
onFailure(f, l, g) {
|
|
1864
1864
|
const h = f;
|
|
@@ -1870,7 +1870,7 @@ function dt(e, t, s = void 0, n = void 0) {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
function le(e, t, s, n) {
|
|
1872
1872
|
const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
|
|
1873
|
-
|
|
1873
|
+
C(e, (r) => {
|
|
1874
1874
|
m(i, {
|
|
1875
1875
|
method: "GET",
|
|
1876
1876
|
headers: {
|
|
@@ -1897,7 +1897,7 @@ function le(e, t, s, n) {
|
|
|
1897
1897
|
});
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function A(e, t, s = void 0, n = void 0) {
|
|
1901
1901
|
const i = {
|
|
1902
1902
|
base: e._3DSwym,
|
|
1903
1903
|
uri: "/api/community",
|
|
@@ -1913,7 +1913,7 @@ function v(e, t, s = void 0, n = void 0) {
|
|
|
1913
1913
|
parentCommentUri: null,
|
|
1914
1914
|
richMessage: t.msg
|
|
1915
1915
|
};
|
|
1916
|
-
console.log("_3dSwym_sendDirectMessageData url ", r),
|
|
1916
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
|
|
1917
1917
|
m(r, {
|
|
1918
1918
|
method: "POST",
|
|
1919
1919
|
headers: {
|
|
@@ -1958,7 +1958,7 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
1958
1958
|
// 1 publier, 0 non publier
|
|
1959
1959
|
}
|
|
1960
1960
|
};
|
|
1961
|
-
|
|
1961
|
+
C(e, (c) => {
|
|
1962
1962
|
const d = {
|
|
1963
1963
|
"Content-type": "application/json;charset=UTF-8",
|
|
1964
1964
|
Accept: "application/json",
|
|
@@ -2020,7 +2020,7 @@ function pt(e, t = void 0, s = void 0) {
|
|
|
2020
2020
|
// 1 publier, 0 brouillon
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
|
-
|
|
2023
|
+
C(e, (o) => {
|
|
2024
2024
|
if (!o)
|
|
2025
2025
|
throw new Error(
|
|
2026
2026
|
`☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
|
|
@@ -2060,7 +2060,7 @@ function lt(e, t, s = void 0, n = void 0) {
|
|
|
2060
2060
|
ideationIds: [t.idee_id]
|
|
2061
2061
|
}
|
|
2062
2062
|
};
|
|
2063
|
-
|
|
2063
|
+
C(e, (o) => {
|
|
2064
2064
|
m(i, {
|
|
2065
2065
|
method: "POST",
|
|
2066
2066
|
headers: {
|
|
@@ -2166,7 +2166,7 @@ function gt(e, t, s = void 0, n = void 0) {
|
|
|
2166
2166
|
page: `/page/${a}`
|
|
2167
2167
|
};
|
|
2168
2168
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2169
|
-
|
|
2169
|
+
C(e, (h) => {
|
|
2170
2170
|
const y = (_) => {
|
|
2171
2171
|
m(_, {
|
|
2172
2172
|
method: "GET",
|
|
@@ -2174,12 +2174,12 @@ function gt(e, t, s = void 0, n = void 0) {
|
|
|
2174
2174
|
"X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
|
|
2175
2175
|
},
|
|
2176
2176
|
onComplete(S) {
|
|
2177
|
-
const
|
|
2178
|
-
if (f = Math.ceil(Number(
|
|
2177
|
+
const w = { response: JSON.parse(S) };
|
|
2178
|
+
if (f = Math.ceil(Number(w.response.nb_result) / 100), S && f >= a) {
|
|
2179
2179
|
if (a++, l.page = `/page/${a}`, _ = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2180
|
-
d.push(
|
|
2180
|
+
d.push(w.response.result);
|
|
2181
2181
|
else {
|
|
2182
|
-
const T =
|
|
2182
|
+
const T = w.response.result.find(
|
|
2183
2183
|
(E) => E.title.includes(c)
|
|
2184
2184
|
);
|
|
2185
2185
|
if (T) {
|
|
@@ -2194,9 +2194,9 @@ function gt(e, t, s = void 0, n = void 0) {
|
|
|
2194
2194
|
y(_);
|
|
2195
2195
|
}
|
|
2196
2196
|
},
|
|
2197
|
-
onFailure(S,
|
|
2197
|
+
onFailure(S, w) {
|
|
2198
2198
|
const T = S;
|
|
2199
|
-
T.status =
|
|
2199
|
+
T.status = w.status, T.response = w.errormsg, n && n(T);
|
|
2200
2200
|
}
|
|
2201
2201
|
});
|
|
2202
2202
|
};
|
|
@@ -2316,27 +2316,14 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
2316
2316
|
try {
|
|
2317
2317
|
const { _3DDashboard: r, _3DSwym: o } = e;
|
|
2318
2318
|
let a;
|
|
2319
|
-
if (
|
|
2320
|
-
const c = e._3DSwym + "/api/user/getcurrent/";
|
|
2321
|
-
w(e, (d) => {
|
|
2322
|
-
m(c, {
|
|
2323
|
-
method: "GET",
|
|
2324
|
-
headers: {
|
|
2325
|
-
"X-DS-SWYM-CSRFTOKEN": d.result.ServerToken
|
|
2326
|
-
},
|
|
2327
|
-
onComplete(u, p, f) {
|
|
2328
|
-
a = JSON.parse(u).result;
|
|
2329
|
-
}
|
|
2330
|
-
});
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
if (!a) {
|
|
2319
|
+
if (console.log("_3DSwym_get_currentUser", e), r) {
|
|
2334
2320
|
const c = r + "/api/users/current";
|
|
2335
2321
|
m(c, {
|
|
2336
2322
|
method: "GET",
|
|
2337
2323
|
onComplete(d, u, p) {
|
|
2324
|
+
console.log("_3DSwym_get_currentUser | response", d);
|
|
2338
2325
|
const f = JSON.parse(d);
|
|
2339
|
-
f.first_name = f.firstName, f.last_name = f.lastName, a = f;
|
|
2326
|
+
f.first_name = f.firstName, f.last_name = f.lastName, a = f, n(f);
|
|
2340
2327
|
},
|
|
2341
2328
|
onFailure(d) {
|
|
2342
2329
|
i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", d);
|
|
@@ -2351,7 +2338,7 @@ function yt(e, t = void 0, s = void 0) {
|
|
|
2351
2338
|
}
|
|
2352
2339
|
function _t(e, t, s = void 0, n = void 0) {
|
|
2353
2340
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2354
|
-
|
|
2341
|
+
C(
|
|
2355
2342
|
e,
|
|
2356
2343
|
(r) => {
|
|
2357
2344
|
m(i, {
|
|
@@ -2513,7 +2500,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2513
2500
|
});
|
|
2514
2501
|
}
|
|
2515
2502
|
}
|
|
2516
|
-
async function
|
|
2503
|
+
async function Ut(e, t, s, n, i = void 0, r = void 0) {
|
|
2517
2504
|
if (e.tenant) {
|
|
2518
2505
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2519
2506
|
n
|
|
@@ -2530,7 +2517,7 @@ async function Ft(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2530
2517
|
});
|
|
2531
2518
|
}
|
|
2532
2519
|
}
|
|
2533
|
-
async function
|
|
2520
|
+
async function Ft(e, t, s, n = void 0, i = void 0) {
|
|
2534
2521
|
if (e.tenant) {
|
|
2535
2522
|
const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
|
|
2536
2523
|
s
|
|
@@ -2547,7 +2534,7 @@ async function Rt(e, t, s, n = void 0, i = void 0) {
|
|
|
2547
2534
|
});
|
|
2548
2535
|
}
|
|
2549
2536
|
}
|
|
2550
|
-
async function
|
|
2537
|
+
async function Rt(e, t, s, n, i = void 0, r = void 0) {
|
|
2551
2538
|
if (e.tenant) {
|
|
2552
2539
|
const o = e.tenant.toLowerCase();
|
|
2553
2540
|
fetch(
|
|
@@ -2592,7 +2579,7 @@ async function jt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2592
2579
|
});
|
|
2593
2580
|
}
|
|
2594
2581
|
}
|
|
2595
|
-
async function
|
|
2582
|
+
async function At(e, t, s, n, i = void 0, r = void 0) {
|
|
2596
2583
|
if (e.tenant) {
|
|
2597
2584
|
const o = e.tenant.toLowerCase();
|
|
2598
2585
|
fetch(
|
|
@@ -2608,7 +2595,7 @@ async function vt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2608
2595
|
}
|
|
2609
2596
|
}
|
|
2610
2597
|
//!SECTION
|
|
2611
|
-
async function
|
|
2598
|
+
async function vt(e, t, s, n = void 0, i = void 0) {
|
|
2612
2599
|
if (e.tenant) {
|
|
2613
2600
|
const r = e.tenant.toLowerCase();
|
|
2614
2601
|
fetch(
|
|
@@ -2631,10 +2618,10 @@ function xt(e) {
|
|
|
2631
2618
|
function Dt(e, t = void 0, s = void 0) {
|
|
2632
2619
|
return console.log("credentials", e), new Promise((n) => {
|
|
2633
2620
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2634
|
-
const o =
|
|
2621
|
+
const o = q();
|
|
2635
2622
|
console.log("platformeInfo", o);
|
|
2636
2623
|
}
|
|
2637
|
-
|
|
2624
|
+
F(
|
|
2638
2625
|
e,
|
|
2639
2626
|
"Common space",
|
|
2640
2627
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2712,7 +2699,7 @@ export {
|
|
|
2712
2699
|
Dt as _3DSearch_usersGroup,
|
|
2713
2700
|
Ge as _3DSpace_Create_Doc,
|
|
2714
2701
|
Je as _3DSpace_Update_Doc,
|
|
2715
|
-
|
|
2702
|
+
qe as _3DSpace_bookmark_addSubsciptions,
|
|
2716
2703
|
Ve as _3DSpace_bookmark_newWorkspace,
|
|
2717
2704
|
b as _3DSpace_csrf,
|
|
2718
2705
|
L as _3DSpace_download_doc,
|
|
@@ -2720,11 +2707,11 @@ export {
|
|
|
2720
2707
|
P as _3DSpace_file_update,
|
|
2721
2708
|
ee as _3DSpace_file_update_csr,
|
|
2722
2709
|
Le as _3DSpace_file_url_csr,
|
|
2723
|
-
|
|
2710
|
+
U as _3DSpace_get_csrf,
|
|
2724
2711
|
D as _3DSpace_get_docInfo,
|
|
2725
2712
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2726
2713
|
Pe as _3DSpace_get_multiDocInfo,
|
|
2727
|
-
|
|
2714
|
+
F as _3DSpace_get_securityContexts,
|
|
2728
2715
|
k as _3DSpace_get_ticket,
|
|
2729
2716
|
Xe as _3DSpace_lifecycle_changeRevision,
|
|
2730
2717
|
Ke as _3DSpace_lifecycle_changeState,
|
|
@@ -2745,29 +2732,29 @@ export {
|
|
|
2745
2732
|
ct as _3DSwym_getIdeaStatusMaturity,
|
|
2746
2733
|
pe as _3DSwym_getMembersCommunity,
|
|
2747
2734
|
ft as _3DSwym_getOneIdea,
|
|
2748
|
-
|
|
2735
|
+
C as _3DSwym_get_Token,
|
|
2749
2736
|
yt as _3DSwym_get_currentUser,
|
|
2750
2737
|
_t as _3DSwym_get_findUser,
|
|
2751
2738
|
pt as _3DSwym_postIdea,
|
|
2752
2739
|
ut as _3DSwym_postIdeaTemplate,
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2740
|
+
A as _3DSwym_sendMessageData,
|
|
2741
|
+
Fe as _AppMngt_get_info_user,
|
|
2742
|
+
Ue as _AppMngt_get_users,
|
|
2756
2743
|
Nt as _Iterop_AddOrRemoveRows,
|
|
2757
2744
|
Ct as _Iterop_Auth_CAS,
|
|
2758
2745
|
kt as _Iterop_GetOneDependencyTable,
|
|
2759
|
-
|
|
2746
|
+
vt as _Iterop_GetOneList,
|
|
2760
2747
|
jt as _Iterop_PatchDependencyTable,
|
|
2761
|
-
|
|
2748
|
+
At as _Iterop_PutDependencyTable,
|
|
2762
2749
|
It as _Iterop_businessTableSearchInRows,
|
|
2763
|
-
|
|
2750
|
+
Ft as _Iterop_createBusinessTable,
|
|
2764
2751
|
bt as _Iterop_getAllBusinessTables,
|
|
2765
2752
|
Ot as _Iterop_getOneBusinessTable,
|
|
2766
2753
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2767
2754
|
Tt as _Iterop_jwtUser,
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2755
|
+
Rt as _Iterop_runProcess,
|
|
2756
|
+
Ut as _Iterop_updateBusinessTable,
|
|
2757
|
+
q as _getPlateformInfos,
|
|
2771
2758
|
$e as _getPlatformServices,
|
|
2772
2759
|
x as _getServiceUrl,
|
|
2773
2760
|
Ne as _getServiceUrl_3DPassport,
|
|
@@ -2780,11 +2767,11 @@ export {
|
|
|
2780
2767
|
X as chunkArray,
|
|
2781
2768
|
Ie as compass_getListAdditionalApps,
|
|
2782
2769
|
W as couleurs,
|
|
2783
|
-
|
|
2770
|
+
Re as createUserGroups,
|
|
2784
2771
|
oe as dataMixing,
|
|
2785
|
-
|
|
2772
|
+
Ae as deleteUserGroups,
|
|
2786
2773
|
Se as findAdresse,
|
|
2787
|
-
|
|
2774
|
+
Ye as getAllContextSecurity,
|
|
2788
2775
|
H as getCSRFToken,
|
|
2789
2776
|
_e as getCommunes,
|
|
2790
2777
|
ke as getComplementUG,
|
|
@@ -2795,9 +2782,9 @@ export {
|
|
|
2795
2782
|
ze as getDownloadDocument,
|
|
2796
2783
|
it as getInfoDocTags,
|
|
2797
2784
|
je as getUserGroupsList,
|
|
2798
|
-
|
|
2785
|
+
Y as getUsersGroupRules,
|
|
2799
2786
|
Ze as get_3DSpace_csrf,
|
|
2800
|
-
|
|
2787
|
+
ve as patchUserGroups,
|
|
2801
2788
|
xe as patchUserGroupsControl,
|
|
2802
2789
|
Qe as pushDataIn3DSpace,
|
|
2803
2790
|
De as readUserGroupControl,
|