@beam3_dev/api_module 0.0.194 → 0.0.196
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 +94 -116
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +3 -3
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +58 -57
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));
|
|
@@ -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",
|
|
@@ -2219,14 +2197,14 @@ function lt(e, t, s = void 0, n = void 0) {
|
|
|
2219
2197
|
);
|
|
2220
2198
|
}
|
|
2221
2199
|
function ft(e, t = void 0, s = void 0) {
|
|
2222
|
-
e.tenant &&
|
|
2200
|
+
e.tenant && T(e, (n) => {
|
|
2223
2201
|
console.log("serviceUrls", n);
|
|
2224
2202
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2225
2203
|
return t && t(i), i;
|
|
2226
2204
|
});
|
|
2227
2205
|
}
|
|
2228
2206
|
function mt(e, t = void 0, s = void 0) {
|
|
2229
|
-
e.tenant &&
|
|
2207
|
+
e.tenant && T(e, (n) => {
|
|
2230
2208
|
console.log("serviceUrls", n);
|
|
2231
2209
|
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
2210
|
m(o, {
|
|
@@ -2258,7 +2236,7 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
2258
2236
|
}
|
|
2259
2237
|
}
|
|
2260
2238
|
async function ht(e, t, s = void 0, n = void 0) {
|
|
2261
|
-
e.tenant &&
|
|
2239
|
+
e.tenant && T(e, (i) => {
|
|
2262
2240
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2263
2241
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2264
2242
|
method: "POST"
|
|
@@ -2270,7 +2248,7 @@ async function ht(e, t, s = void 0, n = void 0) {
|
|
|
2270
2248
|
});
|
|
2271
2249
|
}
|
|
2272
2250
|
async function St(e, t, s = void 0, n = void 0) {
|
|
2273
|
-
e.tenant &&
|
|
2251
|
+
e.tenant && T(e, (i) => {
|
|
2274
2252
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2275
2253
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2276
2254
|
method: "GET"
|
|
@@ -2306,7 +2284,7 @@ async function _t(e, t, s, n = void 0, i = void 0) {
|
|
|
2306
2284
|
}
|
|
2307
2285
|
}
|
|
2308
2286
|
async function wt(e, t, s, n, i = void 0, r = void 0) {
|
|
2309
|
-
e.tenant &&
|
|
2287
|
+
e.tenant && T(e, (o) => {
|
|
2310
2288
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2311
2289
|
const a = e.tenant.toLowerCase();
|
|
2312
2290
|
fetch(
|
|
@@ -2321,8 +2299,8 @@ async function wt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2321
2299
|
});
|
|
2322
2300
|
});
|
|
2323
2301
|
}
|
|
2324
|
-
async function
|
|
2325
|
-
e.tenant &&
|
|
2302
|
+
async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2303
|
+
e.tenant && T(e, (a) => {
|
|
2326
2304
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2327
2305
|
const c = e.tenant.toLowerCase();
|
|
2328
2306
|
fetch(
|
|
@@ -2337,8 +2315,8 @@ async function Ct(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2337
2315
|
});
|
|
2338
2316
|
});
|
|
2339
2317
|
}
|
|
2340
|
-
async function
|
|
2341
|
-
e.tenant &&
|
|
2318
|
+
async function Ct(e, t, s, n = void 0, i = void 0) {
|
|
2319
|
+
e.tenant && T(e, (r) => {
|
|
2342
2320
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2343
2321
|
const o = e.tenant.toLowerCase();
|
|
2344
2322
|
fetch(
|
|
@@ -2354,7 +2332,7 @@ async function Tt(e, t, s, n = void 0, i = void 0) {
|
|
|
2354
2332
|
});
|
|
2355
2333
|
}
|
|
2356
2334
|
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2357
|
-
e.tenant &&
|
|
2335
|
+
e.tenant && T(e, (a) => {
|
|
2358
2336
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2359
2337
|
const c = e.tenant.toLowerCase();
|
|
2360
2338
|
fetch(
|
|
@@ -2370,7 +2348,7 @@ async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2370
2348
|
});
|
|
2371
2349
|
}
|
|
2372
2350
|
async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
2373
|
-
e.tenant &&
|
|
2351
|
+
e.tenant && T(e, (o) => {
|
|
2374
2352
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2375
2353
|
const a = e.tenant.toLowerCase();
|
|
2376
2354
|
fetch(
|
|
@@ -2389,13 +2367,13 @@ function $t(e) {
|
|
|
2389
2367
|
const t = "Hello " + e;
|
|
2390
2368
|
return console.log(t), t;
|
|
2391
2369
|
}
|
|
2392
|
-
function
|
|
2370
|
+
function vt(e, t = void 0, s = void 0) {
|
|
2393
2371
|
return console.log("credentials", e), new Promise((n) => {
|
|
2394
2372
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2395
2373
|
const o = W();
|
|
2396
2374
|
console.log("platformeInfo", o);
|
|
2397
2375
|
}
|
|
2398
|
-
|
|
2376
|
+
k(
|
|
2399
2377
|
e,
|
|
2400
2378
|
"Common space",
|
|
2401
2379
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2406,7 +2384,7 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2406
2384
|
},
|
|
2407
2385
|
!0
|
|
2408
2386
|
);
|
|
2409
|
-
const i =
|
|
2387
|
+
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
2388
|
m(r, {
|
|
2411
2389
|
onComplete(o) {
|
|
2412
2390
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2470,24 +2448,24 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2470
2448
|
}
|
|
2471
2449
|
export {
|
|
2472
2450
|
D as UUID,
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2451
|
+
vt as _3DSearch_usersGroup,
|
|
2452
|
+
Pe as _3DSpace_Create_Doc,
|
|
2453
|
+
Re as _3DSpace_Update_Doc,
|
|
2476
2454
|
Ke as _3DSpace_bookmark_addSubsciptions,
|
|
2477
|
-
|
|
2455
|
+
Ee as _3DSpace_bookmark_newWorkspace,
|
|
2478
2456
|
b as _3DSpace_csrf,
|
|
2479
2457
|
J as _3DSpace_download_doc,
|
|
2480
2458
|
Z as _3DSpace_download_multidoc,
|
|
2481
2459
|
M as _3DSpace_file_update,
|
|
2482
2460
|
Q as _3DSpace_file_update_csr,
|
|
2483
|
-
|
|
2484
|
-
|
|
2461
|
+
xe as _3DSpace_file_url_csr,
|
|
2462
|
+
A as _3DSpace_get_csrf,
|
|
2485
2463
|
L as _3DSpace_get_docInfo,
|
|
2486
2464
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2487
2465
|
je as _3DSpace_get_multiDocInfo,
|
|
2488
|
-
|
|
2466
|
+
k as _3DSpace_get_securityContexts,
|
|
2489
2467
|
j as _3DSpace_get_ticket,
|
|
2490
|
-
|
|
2468
|
+
Ge as _3DSpace_lifecycle_changeRevision,
|
|
2491
2469
|
Le as _3DSpace_lifecycle_changeState,
|
|
2492
2470
|
Me as _3DSpace_lifecycle_getGraph,
|
|
2493
2471
|
Je as _3DSpace_lifecycle_getNextRevision,
|
|
@@ -2508,12 +2486,12 @@ export {
|
|
|
2508
2486
|
lt as _3DSwym_get_findUser,
|
|
2509
2487
|
ot as _3DSwym_postIdea,
|
|
2510
2488
|
at as _3DSwym_postIdeaTemplate,
|
|
2511
|
-
|
|
2489
|
+
R as _3DSwym_sendMessageData,
|
|
2512
2490
|
$e as _AppMngt_get_info_user,
|
|
2513
2491
|
Oe as _AppMngt_get_users,
|
|
2514
|
-
|
|
2492
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2515
2493
|
mt as _Iterop_Auth_CAS,
|
|
2516
|
-
|
|
2494
|
+
Ct as _Iterop_GetOneDependencyTable,
|
|
2517
2495
|
ht as _Iterop_ListUsers,
|
|
2518
2496
|
bt as _Iterop_PatchDependencyTable,
|
|
2519
2497
|
Ot as _Iterop_PutDependencyTable,
|
|
@@ -2523,9 +2501,9 @@ export {
|
|
|
2523
2501
|
gt as _Iterop_jwtUser,
|
|
2524
2502
|
wt as _Iterop_runProcess,
|
|
2525
2503
|
W as _getPlateformInfos,
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2504
|
+
Te as _getPlatformServices,
|
|
2505
|
+
T as _getServiceUrl,
|
|
2506
|
+
Ce as _getServiceUrl_3DPassport,
|
|
2529
2507
|
ft as _getServiceUrl_Iterop,
|
|
2530
2508
|
m as _httpCallAuthenticated,
|
|
2531
2509
|
ye as _setDraggable,
|
|
@@ -2534,14 +2512,14 @@ export {
|
|
|
2534
2512
|
He as addTagToDoc,
|
|
2535
2513
|
be as compass_getListAdditionalApps,
|
|
2536
2514
|
V as couleurs,
|
|
2537
|
-
|
|
2515
|
+
ve as createUserGroups,
|
|
2538
2516
|
te as dataMixing,
|
|
2539
2517
|
Ae as deleteUserGroups,
|
|
2540
2518
|
ge as findAdresse,
|
|
2541
2519
|
Be as getAllContextSecurity,
|
|
2542
2520
|
Y as getCSRFToken,
|
|
2543
2521
|
me as getCommunes,
|
|
2544
|
-
|
|
2522
|
+
Ne as getComplementUG,
|
|
2545
2523
|
Ve as getDataFrom3DSpace,
|
|
2546
2524
|
he as getDataFromGouvFr,
|
|
2547
2525
|
qe as getDatasByTenant,
|
|
@@ -2551,10 +2529,10 @@ export {
|
|
|
2551
2529
|
Ie as getUserGroupsList,
|
|
2552
2530
|
X as getUsersGroupRules,
|
|
2553
2531
|
Ye as get_3DSpace_csrf,
|
|
2554
|
-
|
|
2555
|
-
|
|
2532
|
+
ke as patchUserGroups,
|
|
2533
|
+
Fe as patchUserGroupsControl,
|
|
2556
2534
|
Xe as pushDataIn3DSpace,
|
|
2557
|
-
|
|
2535
|
+
Ue as readUserGroupControl,
|
|
2558
2536
|
Qe as removeTagToDoc,
|
|
2559
2537
|
$t as sayHello,
|
|
2560
2538
|
Se as updateEvent
|