@beam3_dev/api_module 0.0.214 → 0.0.216
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 +118 -107
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -4
- 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 B } from "uuid";
|
|
2
2
|
import { DateTime as I } from "luxon";
|
|
3
|
-
import { requirejs as
|
|
3
|
+
import { requirejs as $, widget as R } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function D() {
|
|
5
5
|
return B();
|
|
6
6
|
}
|
|
@@ -139,12 +139,12 @@ async function Se(e, t, s = !0) {
|
|
|
139
139
|
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
140
140
|
}
|
|
141
141
|
function m(e, t) {
|
|
142
|
-
|
|
142
|
+
$(["DS/WAFData/WAFData"], (s) => {
|
|
143
143
|
s.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
function _e(e, t, s) {
|
|
147
|
-
|
|
147
|
+
$(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
148
148
|
n.draggable(e, {
|
|
149
149
|
data: t,
|
|
150
150
|
start: s
|
|
@@ -152,7 +152,7 @@ function _e(e, t, s) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
function we(e, t = void 0) {
|
|
155
|
-
|
|
155
|
+
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
156
156
|
let n;
|
|
157
157
|
n === void 0 && (n = s.createProxy({
|
|
158
158
|
widgetId: R.id,
|
|
@@ -161,14 +161,14 @@ function we(e, t = void 0) {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
function Ce(e, t) {
|
|
164
|
-
|
|
164
|
+
$(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
165
165
|
s.droppable(e, {
|
|
166
166
|
drop: t
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
async function Te(e, t = void 0, s = void 0) {
|
|
171
|
-
await
|
|
171
|
+
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(n) => {
|
|
174
174
|
(!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
@@ -183,7 +183,7 @@ async function Te(e, t = void 0, s = void 0) {
|
|
|
183
183
|
}
|
|
184
184
|
function Y() {
|
|
185
185
|
let e = {};
|
|
186
|
-
return
|
|
186
|
+
return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
187
187
|
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
188
188
|
"com.3ds.wp.passport.cors"
|
|
189
189
|
);
|
|
@@ -195,7 +195,7 @@ function Y() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function b(e, t = void 0, s = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(n, {
|
|
@@ -288,7 +288,7 @@ const j = {
|
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Ne(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 = {
|
|
@@ -317,7 +317,7 @@ function Ie(e, t, s = void 0, n = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Ie(e, t, s = void 0, n = void 0) {
|
|
321
321
|
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
322
322
|
m(d, {
|
|
323
323
|
opts: {
|
|
@@ -458,7 +458,7 @@ async function H(e, t, s) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var A = {};
|
|
462
462
|
function z(e, t) {
|
|
463
463
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
464
464
|
}
|
|
@@ -478,7 +478,7 @@ var Q = function(e, t, s, n) {
|
|
|
478
478
|
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
479
479
|
}
|
|
480
480
|
return i;
|
|
481
|
-
},
|
|
481
|
+
}, N = function(e) {
|
|
482
482
|
switch (typeof e) {
|
|
483
483
|
case "string":
|
|
484
484
|
return e;
|
|
@@ -491,14 +491,14 @@ var Q = function(e, t, s, n) {
|
|
|
491
491
|
}
|
|
492
492
|
}, Z = function(e, t, s, n) {
|
|
493
493
|
return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
494
|
-
var r = encodeURIComponent(
|
|
494
|
+
var r = encodeURIComponent(N(i)) + s;
|
|
495
495
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
|
-
return r + encodeURIComponent(
|
|
497
|
-
}).join(t) : r + encodeURIComponent(
|
|
498
|
-
}).filter(Boolean).join(t) : n ? encodeURIComponent(
|
|
496
|
+
return r + encodeURIComponent(N(o));
|
|
497
|
+
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
498
|
+
}).filter(Boolean).join(t) : n ? encodeURIComponent(N(n)) + s + encodeURIComponent(N(e)) : "";
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
A.decode = A.parse = Q;
|
|
501
|
+
A.encode = A.stringify = Z;
|
|
502
502
|
async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
504
|
if (t === void 0) {
|
|
@@ -522,7 +522,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
522
522
|
console.log("Le paramètre docids est obligatoire");
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o =
|
|
525
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = A.stringify({
|
|
526
526
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
527
527
|
});
|
|
528
528
|
m(r, {
|
|
@@ -540,7 +540,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function k(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, {
|
|
@@ -553,7 +553,7 @@ function A(e, t = void 0, s = void 0) {
|
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
} else
|
|
556
|
-
|
|
556
|
+
O(
|
|
557
557
|
e,
|
|
558
558
|
(n) => {
|
|
559
559
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
|
|
@@ -563,7 +563,7 @@ function A(e, t = void 0, s = void 0) {
|
|
|
563
563
|
}
|
|
564
564
|
);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function O(e, t = void 0, s = void 0) {
|
|
567
567
|
if (e.space) {
|
|
568
568
|
const n = e.space + "/resources/v1/application/CSRF";
|
|
569
569
|
m(n, {
|
|
@@ -584,7 +584,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
584
584
|
}
|
|
585
585
|
function U(e, t = void 0, s = void 0) {
|
|
586
586
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
-
|
|
587
|
+
k(
|
|
588
588
|
e,
|
|
589
589
|
(i) => {
|
|
590
590
|
m(n, {
|
|
@@ -639,7 +639,7 @@ function M(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() : k(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
@@ -688,15 +688,15 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
688
688
|
]
|
|
689
689
|
}),
|
|
690
690
|
type: "json",
|
|
691
|
-
onComplete(
|
|
692
|
-
o && o(
|
|
691
|
+
onComplete(T) {
|
|
692
|
+
o && o(T);
|
|
693
693
|
},
|
|
694
|
-
onFailure(
|
|
695
|
-
a && a(
|
|
694
|
+
onFailure(T) {
|
|
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
|
_
|
|
701
701
|
);
|
|
702
702
|
}, y.onFailure = function(S) {
|
|
@@ -749,7 +749,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
749
749
|
method: "POST",
|
|
750
750
|
data: g,
|
|
751
751
|
onComplete(_) {
|
|
752
|
-
let
|
|
752
|
+
let w = D(), T = {
|
|
753
753
|
method: "POST",
|
|
754
754
|
headers: {
|
|
755
755
|
ENO_CSRF_TOKEN: a,
|
|
@@ -775,21 +775,21 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
775
775
|
}
|
|
776
776
|
]
|
|
777
777
|
},
|
|
778
|
-
tempId:
|
|
778
|
+
tempId: w
|
|
779
779
|
}
|
|
780
780
|
]
|
|
781
781
|
}),
|
|
782
782
|
type: "json",
|
|
783
|
-
onComplete(
|
|
784
|
-
i && i(
|
|
783
|
+
onComplete(v) {
|
|
784
|
+
i && i(v);
|
|
785
785
|
},
|
|
786
|
-
onFailure(
|
|
787
|
-
r && r(
|
|
786
|
+
onFailure(v) {
|
|
787
|
+
r && r(v);
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
m(
|
|
791
791
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
792
|
-
|
|
792
|
+
T
|
|
793
793
|
);
|
|
794
794
|
},
|
|
795
795
|
onFailure(_) {
|
|
@@ -802,7 +802,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
806
806
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
807
807
|
m(a, {
|
|
808
808
|
method: "GET",
|
|
@@ -816,7 +816,7 @@ function k(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
816
816
|
let h = g.couples;
|
|
817
817
|
h = h.filter(
|
|
818
818
|
(y, S, _) => S === _.findIndex(
|
|
819
|
-
(
|
|
819
|
+
(w) => w.organization.pid === y.organization.pid && w.role.pid === y.role.pid
|
|
820
820
|
)
|
|
821
821
|
), s && (Array.isArray(s) ? s.forEach((y) => {
|
|
822
822
|
l || h.forEach((S) => {
|
|
@@ -824,7 +824,7 @@ function k(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
824
824
|
l = y, f = n;
|
|
825
825
|
else if (y === S.role.name) {
|
|
826
826
|
let _ = h.filter(
|
|
827
|
-
(
|
|
827
|
+
(w) => w.role.name === y
|
|
828
828
|
);
|
|
829
829
|
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
830
830
|
}
|
|
@@ -972,7 +972,7 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
972
972
|
}
|
|
973
973
|
function Le(e, t, s = void 0, n = void 0) {
|
|
974
974
|
return new Promise((i) => {
|
|
975
|
-
if (e.token === "" &&
|
|
975
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
976
976
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
977
977
|
let o = {
|
|
978
978
|
method: "POST",
|
|
@@ -1003,7 +1003,7 @@ function Le(e, t, s = void 0, n = void 0) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
function Me(e, t, s, n = void 0, i = void 0) {
|
|
1005
1005
|
return new Promise((r) => {
|
|
1006
|
-
if (e.token === "" &&
|
|
1006
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1007
1007
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1008
1008
|
let a = {
|
|
1009
1009
|
method: "POST",
|
|
@@ -1035,9 +1035,9 @@ function Me(e, t, s, n = void 0, i = void 0) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
function Je(e, t, s = void 0, n = void 0) {
|
|
1037
1037
|
return new Promise((i) => {
|
|
1038
|
-
if (e.token === "" &&
|
|
1038
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1039
1039
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1040
|
-
|
|
1040
|
+
F(
|
|
1041
1041
|
e.space,
|
|
1042
1042
|
"ESPACE COMMUN",
|
|
1043
1043
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1076,9 +1076,9 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
function Ge(e, t, s = void 0, n = void 0) {
|
|
1078
1078
|
return new Promise((i) => {
|
|
1079
|
-
if (e.token === "" &&
|
|
1079
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1080
1080
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1081
|
-
|
|
1081
|
+
F(
|
|
1082
1082
|
e.space,
|
|
1083
1083
|
"ESPACE COMMUN",
|
|
1084
1084
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1123,9 +1123,9 @@ function Ge(e, t, s = void 0, n = void 0) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
function Ee(e, t, s, n = void 0, i = void 0) {
|
|
1125
1125
|
return new Promise((r) => {
|
|
1126
|
-
if (e.token === "" &&
|
|
1126
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1127
1127
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1128
|
-
|
|
1128
|
+
F(
|
|
1129
1129
|
e.space,
|
|
1130
1130
|
"ESPACE COMMUN",
|
|
1131
1131
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1277,7 +1277,7 @@ async function Xe(e, t, s = void 0, n = void 0) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
function Ye(e, t, s, n = void 0, i = void 0) {
|
|
1279
1279
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1280
|
-
|
|
1280
|
+
k(
|
|
1281
1281
|
e,
|
|
1282
1282
|
s,
|
|
1283
1283
|
(o) => {
|
|
@@ -1301,7 +1301,7 @@ function Ye(e, t, s, n = void 0, i = void 0) {
|
|
|
1301
1301
|
let G, E;
|
|
1302
1302
|
const x = [];
|
|
1303
1303
|
async function qe(e, t = void 0, s = void 0) {
|
|
1304
|
-
e.objID && e.objID !== "" ?
|
|
1304
|
+
e.objID && e.objID !== "" ? k(
|
|
1305
1305
|
e,
|
|
1306
1306
|
(n) => {
|
|
1307
1307
|
t && t(n);
|
|
@@ -1309,7 +1309,7 @@ async function qe(e, t = void 0, s = void 0) {
|
|
|
1309
1309
|
(n) => {
|
|
1310
1310
|
s && s(n);
|
|
1311
1311
|
}
|
|
1312
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1312
|
+
) : (e.objID === null || e.objID === "") && O(
|
|
1313
1313
|
e,
|
|
1314
1314
|
(n) => {
|
|
1315
1315
|
t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1582,7 +1582,7 @@ function et(e, t = "", s = void 0, n = void 0) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
});
|
|
1584
1584
|
}
|
|
1585
|
-
async function
|
|
1585
|
+
async function C(e, t = void 0, s = void 0) {
|
|
1586
1586
|
const n = e.space + "/api/index/tk";
|
|
1587
1587
|
return m(n, {
|
|
1588
1588
|
onComplete(i, r, o) {
|
|
@@ -1606,7 +1606,7 @@ function tt(e, t = void 0, s = void 0) {
|
|
|
1606
1606
|
start: 0
|
|
1607
1607
|
}
|
|
1608
1608
|
};
|
|
1609
|
-
|
|
1609
|
+
C(e, (r) => {
|
|
1610
1610
|
m(n, {
|
|
1611
1611
|
method: "POST",
|
|
1612
1612
|
headers: {
|
|
@@ -1635,7 +1635,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1635
1635
|
maxNbOfCommonElements: "5"
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
|
-
|
|
1638
|
+
C(e, (r) => {
|
|
1639
1639
|
m(n, {
|
|
1640
1640
|
method: "POST",
|
|
1641
1641
|
headers: {
|
|
@@ -1662,7 +1662,7 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1662
1662
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1663
1663
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1664
1664
|
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1665
|
-
|
|
1665
|
+
C(e, (o) => {
|
|
1666
1666
|
m(i, {
|
|
1667
1667
|
method: "GET",
|
|
1668
1668
|
headers: {
|
|
@@ -1705,7 +1705,7 @@ function ce(e, t, s, n) {
|
|
|
1705
1705
|
community_id: t
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
|
-
|
|
1708
|
+
C(e, (o) => {
|
|
1709
1709
|
m(i, {
|
|
1710
1710
|
method: "POST",
|
|
1711
1711
|
headers: {
|
|
@@ -1729,7 +1729,7 @@ function it(e, t = void 0, s = void 0) {
|
|
|
1729
1729
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1730
1730
|
e.commu_id || (e.commu_id = n);
|
|
1731
1731
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1732
|
-
|
|
1732
|
+
C(e, (r) => {
|
|
1733
1733
|
m(i, {
|
|
1734
1734
|
method: "GET",
|
|
1735
1735
|
headers: {
|
|
@@ -1769,7 +1769,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1769
1769
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
|
|
1770
1770
|
}
|
|
1771
1771
|
), d === !1 && setTimeout(() => {
|
|
1772
|
-
d === !1 &&
|
|
1772
|
+
d === !1 && C(e, (p) => {
|
|
1773
1773
|
m(o, {
|
|
1774
1774
|
method: "POST",
|
|
1775
1775
|
headers: {
|
|
@@ -1793,7 +1793,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
function de(e, t, s, n) {
|
|
1795
1795
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1796
|
-
|
|
1796
|
+
C(e, (r) => {
|
|
1797
1797
|
m(i, {
|
|
1798
1798
|
method: "GET",
|
|
1799
1799
|
headers: {
|
|
@@ -1836,7 +1836,7 @@ function P(e, t, s = void 0, n = void 0) {
|
|
|
1836
1836
|
parentCommentUri: null,
|
|
1837
1837
|
richMessage: t.msg
|
|
1838
1838
|
};
|
|
1839
|
-
console.log("_3dSwym_sendDirectMessageData url ", r),
|
|
1839
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
|
|
1840
1840
|
m(r, {
|
|
1841
1841
|
method: "POST",
|
|
1842
1842
|
headers: {
|
|
@@ -1881,7 +1881,7 @@ function ot(e, t, s = void 0, n = void 0) {
|
|
|
1881
1881
|
// 1 publier, 0 non publier
|
|
1882
1882
|
}
|
|
1883
1883
|
};
|
|
1884
|
-
|
|
1884
|
+
C(e, (c) => {
|
|
1885
1885
|
const d = {
|
|
1886
1886
|
"Content-type": "application/json;charset=UTF-8",
|
|
1887
1887
|
Accept: "application/json",
|
|
@@ -1943,7 +1943,7 @@ function rt(e, t = void 0, s = void 0) {
|
|
|
1943
1943
|
// 1 publier, 0 brouillon
|
|
1944
1944
|
}
|
|
1945
1945
|
};
|
|
1946
|
-
|
|
1946
|
+
C(e, (o) => {
|
|
1947
1947
|
if (!o)
|
|
1948
1948
|
throw new Error(
|
|
1949
1949
|
`☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
|
|
@@ -1983,7 +1983,7 @@ function ct(e, t, s = void 0, n = void 0) {
|
|
|
1983
1983
|
ideationIds: [t.idee_id]
|
|
1984
1984
|
}
|
|
1985
1985
|
};
|
|
1986
|
-
|
|
1986
|
+
C(e, (o) => {
|
|
1987
1987
|
m(i, {
|
|
1988
1988
|
method: "POST",
|
|
1989
1989
|
headers: {
|
|
@@ -2014,7 +2014,7 @@ function dt(e, t = void 0, s = void 0) {
|
|
|
2014
2014
|
id: e.idPost
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
2017
|
-
|
|
2017
|
+
C(e, (r) => {
|
|
2018
2018
|
m(n, {
|
|
2019
2019
|
method: "POST",
|
|
2020
2020
|
headers: {
|
|
@@ -2072,43 +2072,54 @@ function pt(e, t, s) {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
function ut(e, t, s = void 0, n = void 0) {
|
|
2074
2074
|
const { space: i } = e;
|
|
2075
|
-
let { community_id: r, limit: o, page: a } = t;
|
|
2076
|
-
const
|
|
2077
|
-
let
|
|
2078
|
-
a || (a =
|
|
2079
|
-
const
|
|
2075
|
+
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2076
|
+
const d = [], p = 1;
|
|
2077
|
+
let u = !1, f = 2;
|
|
2078
|
+
a || (a = p), o || (o = 100);
|
|
2079
|
+
const l = {
|
|
2080
2080
|
uri: "/api/idea/list",
|
|
2081
2081
|
comId: `/community_id/${r}`,
|
|
2082
2082
|
limit: `/limit/${o}`,
|
|
2083
2083
|
page: `/page/${a}`
|
|
2084
2084
|
};
|
|
2085
|
-
let
|
|
2086
|
-
|
|
2087
|
-
const
|
|
2088
|
-
m(
|
|
2085
|
+
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2086
|
+
C(e, (h) => {
|
|
2087
|
+
const y = (S) => {
|
|
2088
|
+
m(S, {
|
|
2089
2089
|
method: "GET",
|
|
2090
2090
|
headers: {
|
|
2091
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2091
|
+
"X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
|
|
2092
2092
|
},
|
|
2093
|
-
onComplete(
|
|
2094
|
-
const
|
|
2095
|
-
if (
|
|
2096
|
-
if (a++,
|
|
2093
|
+
onComplete(_) {
|
|
2094
|
+
const w = { response: JSON.parse(_) };
|
|
2095
|
+
if (f = Math.ceil(Number(w.response.nb_result) / 100), _ && f >= a) {
|
|
2096
|
+
if (a++, f < a)
|
|
2097
2097
|
return;
|
|
2098
|
-
|
|
2098
|
+
if (l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2099
|
+
d.push(w.response.result);
|
|
2100
|
+
else {
|
|
2101
|
+
const T = w.response.result.find(
|
|
2102
|
+
(v) => v.title.includes(c)
|
|
2103
|
+
);
|
|
2104
|
+
if (T) {
|
|
2105
|
+
s(T);
|
|
2106
|
+
return;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
y(S);
|
|
2099
2110
|
}
|
|
2100
|
-
if (s &&
|
|
2101
|
-
|
|
2111
|
+
if (s && f <= a) {
|
|
2112
|
+
u = !0, s(d);
|
|
2102
2113
|
return;
|
|
2103
2114
|
}
|
|
2104
2115
|
},
|
|
2105
|
-
onFailure(
|
|
2106
|
-
const
|
|
2107
|
-
|
|
2116
|
+
onFailure(_, w) {
|
|
2117
|
+
const T = _;
|
|
2118
|
+
T.status = w.status, T.response = w.errormsg, n && n(T);
|
|
2108
2119
|
}
|
|
2109
2120
|
});
|
|
2110
2121
|
};
|
|
2111
|
-
g
|
|
2122
|
+
u || y(g);
|
|
2112
2123
|
});
|
|
2113
2124
|
}
|
|
2114
2125
|
function ue(e) {
|
|
@@ -2188,7 +2199,7 @@ function ue(e) {
|
|
|
2188
2199
|
}
|
|
2189
2200
|
function lt(e, t = void 0, s = void 0) {
|
|
2190
2201
|
const n = e.space + "/api/user/getcurrent/";
|
|
2191
|
-
|
|
2202
|
+
C(e, (i) => {
|
|
2192
2203
|
m(n, {
|
|
2193
2204
|
method: "GET",
|
|
2194
2205
|
headers: {
|
|
@@ -2207,7 +2218,7 @@ function lt(e, t = void 0, s = void 0) {
|
|
|
2207
2218
|
}
|
|
2208
2219
|
function ft(e, t, s = void 0, n = void 0) {
|
|
2209
2220
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2210
|
-
|
|
2221
|
+
C(
|
|
2211
2222
|
e,
|
|
2212
2223
|
(r) => {
|
|
2213
2224
|
m(i, {
|
|
@@ -2226,14 +2237,14 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
2226
2237
|
);
|
|
2227
2238
|
}
|
|
2228
2239
|
function mt(e, t = void 0, s = void 0) {
|
|
2229
|
-
e.tenant &&
|
|
2240
|
+
e.tenant && b(e, (n) => {
|
|
2230
2241
|
console.log("serviceUrls", n);
|
|
2231
2242
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2232
2243
|
return t && t(i), i;
|
|
2233
2244
|
});
|
|
2234
2245
|
}
|
|
2235
2246
|
function gt(e, t = void 0, s = void 0) {
|
|
2236
|
-
e.tenant &&
|
|
2247
|
+
e.tenant && b(e, (n) => {
|
|
2237
2248
|
console.log("serviceUrls", n);
|
|
2238
2249
|
const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2239
2250
|
m(o, {
|
|
@@ -2265,7 +2276,7 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2265
2276
|
}
|
|
2266
2277
|
}
|
|
2267
2278
|
async function yt(e, t, s = void 0, n = void 0) {
|
|
2268
|
-
e.tenant &&
|
|
2279
|
+
e.tenant && b(e, (i) => {
|
|
2269
2280
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2270
2281
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2271
2282
|
method: "POST"
|
|
@@ -2277,7 +2288,7 @@ async function yt(e, t, s = void 0, n = void 0) {
|
|
|
2277
2288
|
});
|
|
2278
2289
|
}
|
|
2279
2290
|
async function St(e, t, s = void 0, n = void 0) {
|
|
2280
|
-
e.tenant &&
|
|
2291
|
+
e.tenant && b(e, (i) => {
|
|
2281
2292
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2282
2293
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2283
2294
|
method: "GET"
|
|
@@ -2313,7 +2324,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
|
|
|
2313
2324
|
}
|
|
2314
2325
|
}
|
|
2315
2326
|
async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
2316
|
-
e.tenant &&
|
|
2327
|
+
e.tenant && b(e, (o) => {
|
|
2317
2328
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2318
2329
|
const a = e.tenant.toLowerCase();
|
|
2319
2330
|
fetch(
|
|
@@ -2329,7 +2340,7 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2329
2340
|
});
|
|
2330
2341
|
}
|
|
2331
2342
|
async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2332
|
-
e.tenant &&
|
|
2343
|
+
e.tenant && b(e, (a) => {
|
|
2333
2344
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2334
2345
|
const c = e.tenant.toLowerCase();
|
|
2335
2346
|
fetch(
|
|
@@ -2345,7 +2356,7 @@ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2345
2356
|
});
|
|
2346
2357
|
}
|
|
2347
2358
|
async function bt(e, t, s, n = void 0, i = void 0) {
|
|
2348
|
-
e.tenant &&
|
|
2359
|
+
e.tenant && b(e, (r) => {
|
|
2349
2360
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2350
2361
|
const o = e.tenant.toLowerCase();
|
|
2351
2362
|
fetch(
|
|
@@ -2361,7 +2372,7 @@ async function bt(e, t, s, n = void 0, i = void 0) {
|
|
|
2361
2372
|
});
|
|
2362
2373
|
}
|
|
2363
2374
|
async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2364
|
-
e.tenant &&
|
|
2375
|
+
e.tenant && b(e, (a) => {
|
|
2365
2376
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2366
2377
|
const c = e.tenant.toLowerCase();
|
|
2367
2378
|
fetch(
|
|
@@ -2377,7 +2388,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2377
2388
|
});
|
|
2378
2389
|
}
|
|
2379
2390
|
async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
2380
|
-
e.tenant &&
|
|
2391
|
+
e.tenant && b(e, (o) => {
|
|
2381
2392
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2382
2393
|
const a = e.tenant.toLowerCase();
|
|
2383
2394
|
fetch(
|
|
@@ -2396,13 +2407,13 @@ function vt(e) {
|
|
|
2396
2407
|
const t = "Hello " + e;
|
|
2397
2408
|
return console.log(t), t;
|
|
2398
2409
|
}
|
|
2399
|
-
function
|
|
2410
|
+
function Nt(e, t = void 0, s = void 0) {
|
|
2400
2411
|
return console.log("credentials", e), new Promise((n) => {
|
|
2401
|
-
if (e.token === "" &&
|
|
2412
|
+
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2402
2413
|
const o = Y();
|
|
2403
2414
|
console.log("platformeInfo", o);
|
|
2404
2415
|
}
|
|
2405
|
-
|
|
2416
|
+
F(
|
|
2406
2417
|
e,
|
|
2407
2418
|
"Common space",
|
|
2408
2419
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2477,22 +2488,22 @@ function It(e, t = void 0, s = void 0) {
|
|
|
2477
2488
|
}
|
|
2478
2489
|
export {
|
|
2479
2490
|
D as UUID,
|
|
2480
|
-
|
|
2491
|
+
Nt as _3DSearch_usersGroup,
|
|
2481
2492
|
De as _3DSpace_Create_Doc,
|
|
2482
2493
|
Re as _3DSpace_Update_Doc,
|
|
2483
2494
|
Be as _3DSpace_bookmark_addSubsciptions,
|
|
2484
2495
|
Ke as _3DSpace_bookmark_newWorkspace,
|
|
2485
|
-
|
|
2496
|
+
O as _3DSpace_csrf,
|
|
2486
2497
|
J as _3DSpace_download_doc,
|
|
2487
2498
|
te as _3DSpace_download_multidoc,
|
|
2488
2499
|
M as _3DSpace_file_update,
|
|
2489
2500
|
ee as _3DSpace_file_update_csr,
|
|
2490
2501
|
Pe as _3DSpace_file_url_csr,
|
|
2491
|
-
|
|
2502
|
+
k as _3DSpace_get_csrf,
|
|
2492
2503
|
L as _3DSpace_get_docInfo,
|
|
2493
2504
|
ne as _3DSpace_get_downloadTicket_multidoc,
|
|
2494
2505
|
xe as _3DSpace_get_multiDocInfo,
|
|
2495
|
-
|
|
2506
|
+
F as _3DSpace_get_securityContexts,
|
|
2496
2507
|
U as _3DSpace_get_ticket,
|
|
2497
2508
|
Ee as _3DSpace_lifecycle_changeRevision,
|
|
2498
2509
|
Me as _3DSpace_lifecycle_changeState,
|
|
@@ -2510,7 +2521,7 @@ export {
|
|
|
2510
2521
|
it as _3DSwym_getIdeaStatusMaturity,
|
|
2511
2522
|
ce as _3DSwym_getMembersCommunity,
|
|
2512
2523
|
dt as _3DSwym_getOneIdea,
|
|
2513
|
-
|
|
2524
|
+
C as _3DSwym_get_Token,
|
|
2514
2525
|
lt as _3DSwym_get_currentUser,
|
|
2515
2526
|
ft as _3DSwym_get_findUser,
|
|
2516
2527
|
rt as _3DSwym_postIdea,
|
|
@@ -2531,7 +2542,7 @@ export {
|
|
|
2531
2542
|
Ct as _Iterop_runProcess,
|
|
2532
2543
|
Y as _getPlateformInfos,
|
|
2533
2544
|
Te as _getPlatformServices,
|
|
2534
|
-
|
|
2545
|
+
b as _getServiceUrl,
|
|
2535
2546
|
be as _getServiceUrl_3DPassport,
|
|
2536
2547
|
mt as _getServiceUrl_Iterop,
|
|
2537
2548
|
m as _httpCallAuthenticated,
|
|
@@ -2542,14 +2553,14 @@ export {
|
|
|
2542
2553
|
W as chunkArray,
|
|
2543
2554
|
Oe as compass_getListAdditionalApps,
|
|
2544
2555
|
V as couleurs,
|
|
2545
|
-
|
|
2556
|
+
Ne as createUserGroups,
|
|
2546
2557
|
se as dataMixing,
|
|
2547
2558
|
ke as deleteUserGroups,
|
|
2548
2559
|
he as findAdresse,
|
|
2549
2560
|
Ve as getAllContextSecurity,
|
|
2550
2561
|
H as getCSRFToken,
|
|
2551
2562
|
ge as getCommunes,
|
|
2552
|
-
|
|
2563
|
+
Ie as getComplementUG,
|
|
2553
2564
|
We as getDataFrom3DSpace,
|
|
2554
2565
|
ye as getDataFromGouvFr,
|
|
2555
2566
|
He as getDatasByTenant,
|