@beam3_dev/api_module 0.0.195 → 0.0.197
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/README.md +4 -5
- package/dist/wb3Api.js +98 -119
- 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 +3 -2
package/dist/wb3Api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as B } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as O, widget as
|
|
2
|
+
import { DateTime as N } from "luxon";
|
|
3
|
+
import { requirejs as O, widget as P } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function D() {
|
|
5
5
|
return B();
|
|
6
6
|
}
|
|
@@ -66,7 +66,7 @@ async function ge(e, t = void 0, s = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function he(e, t = V) {
|
|
69
|
-
let s =
|
|
69
|
+
let s = N.now().year;
|
|
70
70
|
const n = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
72
|
i.push({ date: c, comment: a[c] });
|
|
@@ -89,11 +89,11 @@ async function he(e, t = V) {
|
|
|
89
89
|
} : n;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === N.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: N.fromISO(c.date).toISODate(),
|
|
96
|
+
end: N.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -121,7 +121,7 @@ function _e(e, t = void 0) {
|
|
|
121
121
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
122
122
|
let n;
|
|
123
123
|
n === void 0 && (n = s.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: P.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
127
127
|
});
|
|
@@ -133,11 +133,11 @@ function we(e, t) {
|
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
async function
|
|
136
|
+
async function Te(e, t = void 0, s = void 0) {
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(n) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = P.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
n.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -161,7 +161,7 @@ function W() {
|
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function T(e, t = void 0, s = void 0) {
|
|
165
165
|
if (e.tenant) {
|
|
166
166
|
const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
167
167
|
m(n, {
|
|
@@ -181,7 +181,7 @@ function C(e, t = void 0, s = void 0) {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ce(e, t = void 0, s = void 0) {
|
|
185
185
|
if (e.tenant) {
|
|
186
186
|
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
187
|
m(n, {
|
|
@@ -250,11 +250,11 @@ function $e(e, t, s = void 0, n = void 0) {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const U = {
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
257
|
-
function
|
|
257
|
+
function ve(e, t, s = void 0, n = void 0) {
|
|
258
258
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
259
259
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
260
|
}.URIUGr}`, c = {
|
|
@@ -271,7 +271,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
271
271
|
};
|
|
272
272
|
m(a, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
274
|
+
headers: U,
|
|
275
275
|
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
s && s(JSON.parse(d));
|
|
@@ -283,7 +283,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Ne(e, t, s = void 0, n = void 0) {
|
|
287
287
|
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}`;
|
|
288
288
|
m(d, {
|
|
289
289
|
opts: {
|
|
@@ -355,7 +355,7 @@ function Ae(e, t) {
|
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ke(e, t, s, n = void 0, i = void 0) {
|
|
359
359
|
const { space: r, tenant: o } = e, a = {
|
|
360
360
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
361
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -366,7 +366,7 @@ function Ue(e, t, s, n = void 0, i = void 0) {
|
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
368
368
|
m(d, {
|
|
369
|
-
headers:
|
|
369
|
+
headers: U,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: p,
|
|
372
372
|
type: "json",
|
|
@@ -378,11 +378,11 @@ function Ue(e, t, s, n = void 0, i = void 0) {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Fe(e, t, s, n = void 0, i = void 0) {
|
|
382
382
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
m(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
|
-
headers:
|
|
385
|
+
headers: U,
|
|
386
386
|
data: JSON.stringify(s),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -393,7 +393,7 @@ function ke(e, t, s, n = void 0, i = void 0) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Ue(e, t, s = void 0, n = void 0) {
|
|
397
397
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
398
|
m(o, {
|
|
399
399
|
opts: {
|
|
@@ -424,7 +424,7 @@ async function Y(e, t, s) {
|
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var
|
|
427
|
+
var I = {};
|
|
428
428
|
function q(e, t) {
|
|
429
429
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
430
|
}
|
|
@@ -463,8 +463,8 @@ var z = function(e, t, s, n) {
|
|
|
463
463
|
}).join(t) : r + encodeURIComponent(v(e[i]));
|
|
464
464
|
}).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
|
|
465
465
|
};
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
I.decode = I.parse = z;
|
|
467
|
+
I.encode = I.stringify = H;
|
|
468
468
|
async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
469
469
|
const i = e.space;
|
|
470
470
|
if (t === void 0) {
|
|
@@ -488,7 +488,7 @@ async function je(e, t = void 0, s = void 0, n = void 0) {
|
|
|
488
488
|
console.log("Le paramètre docids est obligatoire");
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o =
|
|
491
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
|
|
492
492
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
493
493
|
});
|
|
494
494
|
m(r, {
|
|
@@ -506,7 +506,7 @@ async function je(e, t = void 0, s = void 0, n = void 0) {
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function A(e, t = void 0, s = void 0) {
|
|
510
510
|
if (e.objID && e.objID !== "") {
|
|
511
511
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
512
512
|
m(n, {
|
|
@@ -550,7 +550,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
550
550
|
}
|
|
551
551
|
function j(e, t = void 0, s = void 0) {
|
|
552
552
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
553
|
-
|
|
553
|
+
A(
|
|
554
554
|
e,
|
|
555
555
|
(i) => {
|
|
556
556
|
m(n, {
|
|
@@ -572,7 +572,7 @@ function j(e, t = void 0, s = void 0) {
|
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function xe(e, t, s, n = void 0, i = void 0) {
|
|
576
576
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
577
|
s || (s = e.token), m(r, {
|
|
578
578
|
method: "PUT",
|
|
@@ -605,7 +605,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
605
605
|
r,
|
|
606
606
|
o
|
|
607
607
|
);
|
|
608
|
-
e.token ? a() :
|
|
608
|
+
e.token ? a() : A(
|
|
609
609
|
e,
|
|
610
610
|
t,
|
|
611
611
|
(c) => {
|
|
@@ -649,22 +649,20 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
649
649
|
]
|
|
650
650
|
},
|
|
651
651
|
id: t,
|
|
652
|
-
updateAction: "NONE",
|
|
653
|
-
id: t,
|
|
654
652
|
updateAction: "NONE"
|
|
655
653
|
}
|
|
656
654
|
]
|
|
657
655
|
}),
|
|
658
656
|
type: "json",
|
|
659
|
-
onComplete(
|
|
660
|
-
o && o(
|
|
657
|
+
onComplete($) {
|
|
658
|
+
o && o($);
|
|
661
659
|
},
|
|
662
|
-
onFailure(
|
|
663
|
-
a && a(
|
|
660
|
+
onFailure($) {
|
|
661
|
+
a && a($);
|
|
664
662
|
}
|
|
665
|
-
},
|
|
663
|
+
}, C = e.tenant.toUpperCase();
|
|
666
664
|
m(
|
|
667
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
665
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${C}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
668
666
|
_
|
|
669
667
|
);
|
|
670
668
|
}, S.onFailure = function(y) {
|
|
@@ -673,7 +671,7 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
673
671
|
}
|
|
674
672
|
});
|
|
675
673
|
}
|
|
676
|
-
async function
|
|
674
|
+
async function Re(e, t, s, n = void 0, i = void 0) {
|
|
677
675
|
e.space, e.token, e.ctx, L(
|
|
678
676
|
e,
|
|
679
677
|
t,
|
|
@@ -698,7 +696,7 @@ async function xe(e, t, s, n = void 0, i = void 0) {
|
|
|
698
696
|
}
|
|
699
697
|
);
|
|
700
698
|
}
|
|
701
|
-
async function
|
|
699
|
+
async function Pe(e, t, s, n, i = void 0, r = void 0) {
|
|
702
700
|
const o = e.space, a = e.token, c = e.ctx;
|
|
703
701
|
if (o !== "") {
|
|
704
702
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
@@ -717,7 +715,7 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
|
|
|
717
715
|
method: "POST",
|
|
718
716
|
data: g,
|
|
719
717
|
onComplete(_) {
|
|
720
|
-
let
|
|
718
|
+
let C = D(), $ = {
|
|
721
719
|
method: "POST",
|
|
722
720
|
headers: {
|
|
723
721
|
ENO_CSRF_TOKEN: a,
|
|
@@ -743,21 +741,21 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
|
|
|
743
741
|
}
|
|
744
742
|
]
|
|
745
743
|
},
|
|
746
|
-
tempId:
|
|
744
|
+
tempId: C
|
|
747
745
|
}
|
|
748
746
|
]
|
|
749
747
|
}),
|
|
750
748
|
type: "json",
|
|
751
|
-
onComplete(
|
|
752
|
-
i && i(
|
|
749
|
+
onComplete(F) {
|
|
750
|
+
i && i(F);
|
|
753
751
|
},
|
|
754
|
-
onFailure(
|
|
755
|
-
r && r(
|
|
752
|
+
onFailure(F) {
|
|
753
|
+
r && r(F);
|
|
756
754
|
}
|
|
757
755
|
};
|
|
758
756
|
m(
|
|
759
757
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
760
|
-
|
|
758
|
+
$
|
|
761
759
|
);
|
|
762
760
|
},
|
|
763
761
|
onFailure(_) {
|
|
@@ -770,7 +768,7 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
|
|
|
770
768
|
});
|
|
771
769
|
}
|
|
772
770
|
}
|
|
773
|
-
function
|
|
771
|
+
function k(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
774
772
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
775
773
|
m(a, {
|
|
776
774
|
method: "GET",
|
|
@@ -784,7 +782,7 @@ function $(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
784
782
|
let h = g.couples;
|
|
785
783
|
h = h.filter(
|
|
786
784
|
(S, y, _) => y === _.findIndex(
|
|
787
|
-
(
|
|
785
|
+
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
788
786
|
)
|
|
789
787
|
), s && (Array.isArray(s) ? s.forEach((S) => {
|
|
790
788
|
l || h.forEach((y) => {
|
|
@@ -792,7 +790,7 @@ function $(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
792
790
|
l = S, f = n;
|
|
793
791
|
else if (S === y.role.name) {
|
|
794
792
|
let _ = h.filter(
|
|
795
|
-
(
|
|
793
|
+
(C) => C.role.name === S
|
|
796
794
|
);
|
|
797
795
|
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
798
796
|
}
|
|
@@ -955,16 +953,6 @@ function De(e, t, s = void 0, n = void 0) {
|
|
|
955
953
|
return new Promise((i) => {
|
|
956
954
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
957
955
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
958
|
-
$(
|
|
959
|
-
e.space,
|
|
960
|
-
"ESPACE COMMUN",
|
|
961
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
962
|
-
void 0,
|
|
963
|
-
(a) => e.ctx = a,
|
|
964
|
-
(a) => {
|
|
965
|
-
console.log("onError =>", a);
|
|
966
|
-
}
|
|
967
|
-
);
|
|
968
956
|
let o = {
|
|
969
957
|
method: "POST",
|
|
970
958
|
headers: {
|
|
@@ -996,16 +984,6 @@ function Le(e, t, s, n = void 0, i = void 0) {
|
|
|
996
984
|
return new Promise((r) => {
|
|
997
985
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
998
986
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
999
|
-
$(
|
|
1000
|
-
e.space,
|
|
1001
|
-
"ESPACE COMMUN",
|
|
1002
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
1003
|
-
void 0,
|
|
1004
|
-
(c) => e.ctx = c,
|
|
1005
|
-
(c) => {
|
|
1006
|
-
console.log("onError =>", c);
|
|
1007
|
-
}
|
|
1008
|
-
);
|
|
1009
987
|
let a = {
|
|
1010
988
|
method: "POST",
|
|
1011
989
|
headers: {
|
|
@@ -1038,7 +1016,7 @@ function Me(e, t, s = void 0, n = void 0) {
|
|
|
1038
1016
|
return new Promise((i) => {
|
|
1039
1017
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1040
1018
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1041
|
-
|
|
1019
|
+
k(
|
|
1042
1020
|
e.space,
|
|
1043
1021
|
"ESPACE COMMUN",
|
|
1044
1022
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1079,7 +1057,7 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1079
1057
|
return new Promise((i) => {
|
|
1080
1058
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1081
1059
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1082
|
-
|
|
1060
|
+
k(
|
|
1083
1061
|
e.space,
|
|
1084
1062
|
"ESPACE COMMUN",
|
|
1085
1063
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1122,11 +1100,11 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1122
1100
|
}
|
|
1123
1101
|
});
|
|
1124
1102
|
}
|
|
1125
|
-
function
|
|
1103
|
+
function Ge(e, t, s, n = void 0, i = void 0) {
|
|
1126
1104
|
return new Promise((r) => {
|
|
1127
1105
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1128
1106
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1129
|
-
|
|
1107
|
+
k(
|
|
1130
1108
|
e.space,
|
|
1131
1109
|
"ESPACE COMMUN",
|
|
1132
1110
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1169,7 +1147,7 @@ function Ee(e, t, s, n = void 0, i = void 0) {
|
|
|
1169
1147
|
}
|
|
1170
1148
|
});
|
|
1171
1149
|
}
|
|
1172
|
-
function
|
|
1150
|
+
function Ee(e, t, s, n, i = void 0, r = void 0) {
|
|
1173
1151
|
return new Promise((o) => {
|
|
1174
1152
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1175
1153
|
let c = {
|
|
@@ -1278,7 +1256,7 @@ async function We(e, t, s = void 0, n = void 0) {
|
|
|
1278
1256
|
}
|
|
1279
1257
|
function Xe(e, t, s, n = void 0, i = void 0) {
|
|
1280
1258
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1281
|
-
|
|
1259
|
+
A(
|
|
1282
1260
|
e,
|
|
1283
1261
|
s,
|
|
1284
1262
|
(o) => {
|
|
@@ -1299,10 +1277,10 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1299
1277
|
}
|
|
1300
1278
|
);
|
|
1301
1279
|
}
|
|
1302
|
-
let
|
|
1303
|
-
const
|
|
1280
|
+
let G, E;
|
|
1281
|
+
const x = [];
|
|
1304
1282
|
async function Ye(e, t = void 0, s = void 0) {
|
|
1305
|
-
e.objID && e.objID !== "" ?
|
|
1283
|
+
e.objID && e.objID !== "" ? A(
|
|
1306
1284
|
e,
|
|
1307
1285
|
(n) => {
|
|
1308
1286
|
t && t(n);
|
|
@@ -1343,7 +1321,7 @@ function ze(e, t = void 0, s = void 0) {
|
|
|
1343
1321
|
e,
|
|
1344
1322
|
i.objID,
|
|
1345
1323
|
(o) => {
|
|
1346
|
-
n.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1324
|
+
n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), te(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1347
1325
|
}
|
|
1348
1326
|
);
|
|
1349
1327
|
});
|
|
@@ -1351,10 +1329,10 @@ function ze(e, t = void 0, s = void 0) {
|
|
|
1351
1329
|
function te(e, t, s = void 0, n = void 0) {
|
|
1352
1330
|
Z(
|
|
1353
1331
|
e,
|
|
1354
|
-
|
|
1332
|
+
G,
|
|
1355
1333
|
(i) => {
|
|
1356
1334
|
const r = [...t];
|
|
1357
|
-
r.find((o) => o.objectID === i.objectId).data = i.data,
|
|
1335
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, E = r, x.push(i.data), s && s(x);
|
|
1358
1336
|
},
|
|
1359
1337
|
(i) => {
|
|
1360
1338
|
n && (n(i), console.log(i));
|
|
@@ -1660,7 +1638,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1660
1638
|
const n = {
|
|
1661
1639
|
base: e.space,
|
|
1662
1640
|
uri: "/api/community/listmycommunities",
|
|
1663
|
-
limit: `/limit/${e.limit ? e.limit :
|
|
1641
|
+
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1664
1642
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1665
1643
|
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1666
1644
|
w(e, (o) => {
|
|
@@ -1764,7 +1742,7 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1764
1742
|
re(
|
|
1765
1743
|
a.users,
|
|
1766
1744
|
(p) => {
|
|
1767
|
-
p !== void 0 && (c.id_msg = p.id, d = !0,
|
|
1745
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
|
|
1768
1746
|
},
|
|
1769
1747
|
(p) => {
|
|
1770
1748
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
|
|
@@ -1782,7 +1760,7 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1782
1760
|
type: "json",
|
|
1783
1761
|
onComplete(u, f, l) {
|
|
1784
1762
|
const g = u;
|
|
1785
|
-
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id,
|
|
1763
|
+
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, R(e, c);
|
|
1786
1764
|
},
|
|
1787
1765
|
onFailure(u, f, l) {
|
|
1788
1766
|
const g = u;
|
|
@@ -1821,7 +1799,7 @@ function re(e, t, s, n) {
|
|
|
1821
1799
|
});
|
|
1822
1800
|
});
|
|
1823
1801
|
}
|
|
1824
|
-
function
|
|
1802
|
+
function R(e, t, s = void 0, n = void 0) {
|
|
1825
1803
|
const i = {
|
|
1826
1804
|
base: e.space,
|
|
1827
1805
|
uri: "/api/community",
|
|
@@ -2085,7 +2063,8 @@ function pt(e, t = de, s = void 0, n = void 0) {
|
|
|
2085
2063
|
const i = {
|
|
2086
2064
|
uri: "/api/idea/list",
|
|
2087
2065
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
2088
|
-
limit: `/limit/${t.limit ? t.limit :
|
|
2066
|
+
limit: `/limit/${t.limit ? t.limit : 1e3}`,
|
|
2067
|
+
page: `/page/${t.page ? t.page : 1}`
|
|
2089
2068
|
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
2090
2069
|
w(e, (o) => {
|
|
2091
2070
|
m(r, {
|
|
@@ -2219,14 +2198,14 @@ function lt(e, t, s = void 0, n = void 0) {
|
|
|
2219
2198
|
);
|
|
2220
2199
|
}
|
|
2221
2200
|
function ft(e, t = void 0, s = void 0) {
|
|
2222
|
-
e.tenant &&
|
|
2201
|
+
e.tenant && T(e, (n) => {
|
|
2223
2202
|
console.log("serviceUrls", n);
|
|
2224
2203
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2225
2204
|
return t && t(i), i;
|
|
2226
2205
|
});
|
|
2227
2206
|
}
|
|
2228
2207
|
function mt(e, t = void 0, s = void 0) {
|
|
2229
|
-
e.tenant &&
|
|
2208
|
+
e.tenant && T(e, (n) => {
|
|
2230
2209
|
console.log("serviceUrls", n);
|
|
2231
2210
|
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`;
|
|
2232
2211
|
m(o, {
|
|
@@ -2258,7 +2237,7 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
2258
2237
|
}
|
|
2259
2238
|
}
|
|
2260
2239
|
async function ht(e, t, s = void 0, n = void 0) {
|
|
2261
|
-
e.tenant &&
|
|
2240
|
+
e.tenant && T(e, (i) => {
|
|
2262
2241
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2263
2242
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2264
2243
|
method: "POST"
|
|
@@ -2270,7 +2249,7 @@ async function ht(e, t, s = void 0, n = void 0) {
|
|
|
2270
2249
|
});
|
|
2271
2250
|
}
|
|
2272
2251
|
async function St(e, t, s = void 0, n = void 0) {
|
|
2273
|
-
e.tenant &&
|
|
2252
|
+
e.tenant && T(e, (i) => {
|
|
2274
2253
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2275
2254
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2276
2255
|
method: "GET"
|
|
@@ -2306,7 +2285,7 @@ async function _t(e, t, s, n = void 0, i = void 0) {
|
|
|
2306
2285
|
}
|
|
2307
2286
|
}
|
|
2308
2287
|
async function wt(e, t, s, n, i = void 0, r = void 0) {
|
|
2309
|
-
e.tenant &&
|
|
2288
|
+
e.tenant && T(e, (o) => {
|
|
2310
2289
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2311
2290
|
const a = e.tenant.toLowerCase();
|
|
2312
2291
|
fetch(
|
|
@@ -2321,8 +2300,8 @@ async function wt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2321
2300
|
});
|
|
2322
2301
|
});
|
|
2323
2302
|
}
|
|
2324
|
-
async function
|
|
2325
|
-
e.tenant &&
|
|
2303
|
+
async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2304
|
+
e.tenant && T(e, (a) => {
|
|
2326
2305
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2327
2306
|
const c = e.tenant.toLowerCase();
|
|
2328
2307
|
fetch(
|
|
@@ -2337,8 +2316,8 @@ async function Ct(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2337
2316
|
});
|
|
2338
2317
|
});
|
|
2339
2318
|
}
|
|
2340
|
-
async function
|
|
2341
|
-
e.tenant &&
|
|
2319
|
+
async function Ct(e, t, s, n = void 0, i = void 0) {
|
|
2320
|
+
e.tenant && T(e, (r) => {
|
|
2342
2321
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2343
2322
|
const o = e.tenant.toLowerCase();
|
|
2344
2323
|
fetch(
|
|
@@ -2354,7 +2333,7 @@ async function Tt(e, t, s, n = void 0, i = void 0) {
|
|
|
2354
2333
|
});
|
|
2355
2334
|
}
|
|
2356
2335
|
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2357
|
-
e.tenant &&
|
|
2336
|
+
e.tenant && T(e, (a) => {
|
|
2358
2337
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2359
2338
|
const c = e.tenant.toLowerCase();
|
|
2360
2339
|
fetch(
|
|
@@ -2370,7 +2349,7 @@ async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2370
2349
|
});
|
|
2371
2350
|
}
|
|
2372
2351
|
async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
2373
|
-
e.tenant &&
|
|
2352
|
+
e.tenant && T(e, (o) => {
|
|
2374
2353
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2375
2354
|
const a = e.tenant.toLowerCase();
|
|
2376
2355
|
fetch(
|
|
@@ -2389,13 +2368,13 @@ function $t(e) {
|
|
|
2389
2368
|
const t = "Hello " + e;
|
|
2390
2369
|
return console.log(t), t;
|
|
2391
2370
|
}
|
|
2392
|
-
function
|
|
2371
|
+
function vt(e, t = void 0, s = void 0) {
|
|
2393
2372
|
return console.log("credentials", e), new Promise((n) => {
|
|
2394
2373
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2395
2374
|
const o = W();
|
|
2396
2375
|
console.log("platformeInfo", o);
|
|
2397
2376
|
}
|
|
2398
|
-
|
|
2377
|
+
k(
|
|
2399
2378
|
e,
|
|
2400
2379
|
"Common space",
|
|
2401
2380
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2406,7 +2385,7 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2406
2385
|
},
|
|
2407
2386
|
!0
|
|
2408
2387
|
);
|
|
2409
|
-
const i =
|
|
2388
|
+
const i = N.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2410
2389
|
m(r, {
|
|
2411
2390
|
onComplete(o) {
|
|
2412
2391
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2470,24 +2449,24 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2470
2449
|
}
|
|
2471
2450
|
export {
|
|
2472
2451
|
D as UUID,
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2452
|
+
vt as _3DSearch_usersGroup,
|
|
2453
|
+
Pe as _3DSpace_Create_Doc,
|
|
2454
|
+
Re as _3DSpace_Update_Doc,
|
|
2476
2455
|
Ke as _3DSpace_bookmark_addSubsciptions,
|
|
2477
|
-
|
|
2456
|
+
Ee as _3DSpace_bookmark_newWorkspace,
|
|
2478
2457
|
b as _3DSpace_csrf,
|
|
2479
2458
|
J as _3DSpace_download_doc,
|
|
2480
2459
|
Z as _3DSpace_download_multidoc,
|
|
2481
2460
|
M as _3DSpace_file_update,
|
|
2482
2461
|
Q as _3DSpace_file_update_csr,
|
|
2483
|
-
|
|
2484
|
-
|
|
2462
|
+
xe as _3DSpace_file_url_csr,
|
|
2463
|
+
A as _3DSpace_get_csrf,
|
|
2485
2464
|
L as _3DSpace_get_docInfo,
|
|
2486
2465
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2487
2466
|
je as _3DSpace_get_multiDocInfo,
|
|
2488
|
-
|
|
2467
|
+
k as _3DSpace_get_securityContexts,
|
|
2489
2468
|
j as _3DSpace_get_ticket,
|
|
2490
|
-
|
|
2469
|
+
Ge as _3DSpace_lifecycle_changeRevision,
|
|
2491
2470
|
Le as _3DSpace_lifecycle_changeState,
|
|
2492
2471
|
Me as _3DSpace_lifecycle_getGraph,
|
|
2493
2472
|
Je as _3DSpace_lifecycle_getNextRevision,
|
|
@@ -2497,23 +2476,23 @@ export {
|
|
|
2497
2476
|
dt as _3DSwym_editIdea,
|
|
2498
2477
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
2499
2478
|
nt as _3DSwym_getAllCommunities,
|
|
2479
|
+
pt as _3DSwym_getAllListIdeas,
|
|
2500
2480
|
et as _3DSwym_getAllNews,
|
|
2501
2481
|
tt as _3DSwym_getFamiliarPeople,
|
|
2502
2482
|
st as _3DSwym_getIdeaStatusMaturity,
|
|
2503
2483
|
oe as _3DSwym_getMembersCommunity,
|
|
2504
2484
|
ct as _3DSwym_getOneIdea,
|
|
2505
|
-
pt as _3DSwym_get_AllSWYMIdeas,
|
|
2506
2485
|
w as _3DSwym_get_Token,
|
|
2507
2486
|
ut as _3DSwym_get_currentUser,
|
|
2508
2487
|
lt as _3DSwym_get_findUser,
|
|
2509
2488
|
ot as _3DSwym_postIdea,
|
|
2510
2489
|
at as _3DSwym_postIdeaTemplate,
|
|
2511
|
-
|
|
2490
|
+
R as _3DSwym_sendMessageData,
|
|
2512
2491
|
$e as _AppMngt_get_info_user,
|
|
2513
2492
|
Oe as _AppMngt_get_users,
|
|
2514
|
-
|
|
2493
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2515
2494
|
mt as _Iterop_Auth_CAS,
|
|
2516
|
-
|
|
2495
|
+
Ct as _Iterop_GetOneDependencyTable,
|
|
2517
2496
|
ht as _Iterop_ListUsers,
|
|
2518
2497
|
bt as _Iterop_PatchDependencyTable,
|
|
2519
2498
|
Ot as _Iterop_PutDependencyTable,
|
|
@@ -2523,9 +2502,9 @@ export {
|
|
|
2523
2502
|
gt as _Iterop_jwtUser,
|
|
2524
2503
|
wt as _Iterop_runProcess,
|
|
2525
2504
|
W as _getPlateformInfos,
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2505
|
+
Te as _getPlatformServices,
|
|
2506
|
+
T as _getServiceUrl,
|
|
2507
|
+
Ce as _getServiceUrl_3DPassport,
|
|
2529
2508
|
ft as _getServiceUrl_Iterop,
|
|
2530
2509
|
m as _httpCallAuthenticated,
|
|
2531
2510
|
ye as _setDraggable,
|
|
@@ -2534,14 +2513,14 @@ export {
|
|
|
2534
2513
|
He as addTagToDoc,
|
|
2535
2514
|
be as compass_getListAdditionalApps,
|
|
2536
2515
|
V as couleurs,
|
|
2537
|
-
|
|
2516
|
+
ve as createUserGroups,
|
|
2538
2517
|
te as dataMixing,
|
|
2539
2518
|
Ae as deleteUserGroups,
|
|
2540
2519
|
ge as findAdresse,
|
|
2541
2520
|
Be as getAllContextSecurity,
|
|
2542
2521
|
Y as getCSRFToken,
|
|
2543
2522
|
me as getCommunes,
|
|
2544
|
-
|
|
2523
|
+
Ne as getComplementUG,
|
|
2545
2524
|
Ve as getDataFrom3DSpace,
|
|
2546
2525
|
he as getDataFromGouvFr,
|
|
2547
2526
|
qe as getDatasByTenant,
|
|
@@ -2551,10 +2530,10 @@ export {
|
|
|
2551
2530
|
Ie as getUserGroupsList,
|
|
2552
2531
|
X as getUsersGroupRules,
|
|
2553
2532
|
Ye as get_3DSpace_csrf,
|
|
2554
|
-
|
|
2555
|
-
|
|
2533
|
+
ke as patchUserGroups,
|
|
2534
|
+
Fe as patchUserGroupsControl,
|
|
2556
2535
|
Xe as pushDataIn3DSpace,
|
|
2557
|
-
|
|
2536
|
+
Ue as readUserGroupControl,
|
|
2558
2537
|
Qe as removeTagToDoc,
|
|
2559
2538
|
$t as sayHello,
|
|
2560
2539
|
Se as updateEvent
|