@beam3_dev/api_module 0.0.179 → 0.0.180
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 +1 -2
- package/dist/wb3Api.js +91 -88
- 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/README.md
CHANGED
|
@@ -18,7 +18,7 @@ yarn add -D wb3_module_api
|
|
|
18
18
|
## Mise a jour
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
npm run build
|
|
21
|
+
npm run build && npm run b3:publish
|
|
22
22
|
# faire les commits (add, commit, push)
|
|
23
23
|
npm run b3:publish
|
|
24
24
|
```
|
|
@@ -29,4 +29,3 @@ npm run b3:publish
|
|
|
29
29
|
- Ne pas oublier de mettre à jour le fichier README.md en cas de modification de la librairie.
|
|
30
30
|
- Mettre à jour le widget dans lequel on utilise déjà la librairie.
|
|
31
31
|
- En cas de de problèmes de publication, verifier le versioning du `package.json` et du module sur le site NPM, la version du package.json doit être mise à jour et égale à la version du module (NPM).
|
|
32
|
-
|
package/dist/wb3Api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as E } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
2
|
+
import { DateTime as I } from "luxon";
|
|
3
|
+
import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function D() {
|
|
5
5
|
return E();
|
|
6
6
|
}
|
|
7
7
|
const K = {
|
|
@@ -66,7 +66,7 @@ async function ge(e, t = void 0, n = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function he(e, t = K) {
|
|
69
|
-
let n =
|
|
69
|
+
let n = I.now().year;
|
|
70
70
|
const s = e, i = [], c = (a) => {
|
|
71
71
|
for (let r in a)
|
|
72
72
|
i.push({ date: r, comment: a[r] });
|
|
@@ -89,11 +89,11 @@ async function he(e, t = K) {
|
|
|
89
89
|
} : s;
|
|
90
90
|
for (let r of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === I.fromISO(r.date).toISODate() && p.name === "Férié : " + r.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + r.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: I.fromISO(r.date).toISODate(),
|
|
96
|
+
end: I.fromISO(r.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"], (n) => {
|
|
122
122
|
let s;
|
|
123
123
|
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: R.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
@@ -137,7 +137,7 @@ async function Ce(e, t = void 0, n = void 0) {
|
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -161,7 +161,7 @@ function V() {
|
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function C(e, t = void 0, n = void 0) {
|
|
165
165
|
if (e.tenant) {
|
|
166
166
|
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
167
167
|
m(s, {
|
|
@@ -250,7 +250,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const k = {
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
@@ -271,7 +271,7 @@ function ve(e, t, n = void 0, s = void 0) {
|
|
|
271
271
|
};
|
|
272
272
|
m(a, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
274
|
+
headers: k,
|
|
275
275
|
data: JSON.stringify(r),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
@@ -366,7 +366,7 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, r = n, d = `${c}${a.URIUGr}/${t}`, p = JSON.stringify(r);
|
|
368
368
|
m(d, {
|
|
369
|
-
headers:
|
|
369
|
+
headers: k,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: p,
|
|
372
372
|
type: "json",
|
|
@@ -382,7 +382,7 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
382
382
|
const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
m(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
|
-
headers:
|
|
385
|
+
headers: k,
|
|
386
386
|
data: JSON.stringify(n),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -424,7 +424,7 @@ async function W(e, t, n) {
|
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var
|
|
427
|
+
var A = {};
|
|
428
428
|
function X(e, t) {
|
|
429
429
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
430
|
}
|
|
@@ -444,7 +444,7 @@ var Y = function(e, t, n, s) {
|
|
|
444
444
|
p >= 0 ? (l = d.substr(0, p), f = d.substr(p + 1)) : (l = d, f = ""), u = decodeURIComponent(l), g = decodeURIComponent(f), X(i, u) ? Array.isArray(i[u]) ? i[u].push(g) : i[u] = [i[u], g] : i[u] = g;
|
|
445
445
|
}
|
|
446
446
|
return i;
|
|
447
|
-
},
|
|
447
|
+
}, N = function(e) {
|
|
448
448
|
switch (typeof e) {
|
|
449
449
|
case "string":
|
|
450
450
|
return e;
|
|
@@ -457,14 +457,14 @@ var Y = function(e, t, n, s) {
|
|
|
457
457
|
}
|
|
458
458
|
}, H = function(e, t, n, s) {
|
|
459
459
|
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
460
|
-
var c = encodeURIComponent(
|
|
460
|
+
var c = encodeURIComponent(N(i)) + n;
|
|
461
461
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
462
|
-
return c + encodeURIComponent(
|
|
463
|
-
}).join(t) : c + encodeURIComponent(
|
|
464
|
-
}).filter(Boolean).join(t) : s ? encodeURIComponent(
|
|
462
|
+
return c + encodeURIComponent(N(o));
|
|
463
|
+
}).join(t) : c + encodeURIComponent(N(e[i]));
|
|
464
|
+
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
465
465
|
};
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
A.decode = A.parse = Y;
|
|
467
|
+
A.encode = A.stringify = H;
|
|
468
468
|
async function z(e, t = void 0, n = void 0, s = void 0) {
|
|
469
469
|
const i = e.space;
|
|
470
470
|
if (t === void 0) {
|
|
@@ -488,7 +488,7 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
488
488
|
console.log("Le paramètre docids est obligatoire");
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
let c = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o =
|
|
491
|
+
let c = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = A.stringify({
|
|
492
492
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
493
493
|
});
|
|
494
494
|
m(c, {
|
|
@@ -506,7 +506,7 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function j(e, t = void 0, n = void 0) {
|
|
510
510
|
if (e.objID && e.objID !== "") {
|
|
511
511
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
512
512
|
m(s, {
|
|
@@ -548,9 +548,9 @@ function b(e, t = void 0, n = void 0) {
|
|
|
548
548
|
} else
|
|
549
549
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function F(e, t = void 0, n = void 0) {
|
|
552
552
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
553
|
-
|
|
553
|
+
j(
|
|
554
554
|
e,
|
|
555
555
|
(i) => {
|
|
556
556
|
m(s, {
|
|
@@ -605,7 +605,7 @@ function q(e, t, n, s, i, c = void 0, o = void 0) {
|
|
|
605
605
|
c,
|
|
606
606
|
o
|
|
607
607
|
);
|
|
608
|
-
e.token ? a() :
|
|
608
|
+
e.token ? a() : j(
|
|
609
609
|
e,
|
|
610
610
|
t,
|
|
611
611
|
(r) => {
|
|
@@ -622,10 +622,13 @@ function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
622
622
|
},
|
|
623
623
|
onComplete(d, p, l) {
|
|
624
624
|
const f = JSON.parse(d).csrf, u = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
625
|
+
let h;
|
|
626
|
+
s instanceof Blob ? h = s : h = new Blob([s], {
|
|
627
|
+
type: "text/plain"
|
|
628
|
+
}), g.append("__fcs__jobTicket", u.ticket), g.append("file_0", h, i);
|
|
629
|
+
const S = {};
|
|
630
|
+
S.method = "POST", S.data = g, S.onComplete = function(y) {
|
|
631
|
+
let _ = {
|
|
629
632
|
method: "PUT",
|
|
630
633
|
headers: {
|
|
631
634
|
SecurityContext: "ctx::" + e.ctx
|
|
@@ -639,7 +642,7 @@ function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
639
642
|
{
|
|
640
643
|
dataelements: {
|
|
641
644
|
title: i,
|
|
642
|
-
receipt:
|
|
645
|
+
receipt: y
|
|
643
646
|
},
|
|
644
647
|
updateAction: "REVISE"
|
|
645
648
|
}
|
|
@@ -651,20 +654,20 @@ function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
651
654
|
]
|
|
652
655
|
}),
|
|
653
656
|
type: "json",
|
|
654
|
-
onComplete(
|
|
655
|
-
o && o(
|
|
657
|
+
onComplete(v) {
|
|
658
|
+
o && o(v);
|
|
656
659
|
},
|
|
657
|
-
onFailure(
|
|
658
|
-
a && a(
|
|
660
|
+
onFailure(v) {
|
|
661
|
+
a && a(v);
|
|
659
662
|
}
|
|
660
|
-
},
|
|
663
|
+
}, T = e.tenant.toUpperCase();
|
|
661
664
|
m(
|
|
662
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
663
|
-
|
|
665
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${T}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
666
|
+
_
|
|
664
667
|
);
|
|
665
|
-
},
|
|
666
|
-
a && a(
|
|
667
|
-
},
|
|
668
|
+
}, S.onFailure = function(y) {
|
|
669
|
+
a && a(y);
|
|
670
|
+
}, S.timeout = 0, m(u.ticketURL, S);
|
|
668
671
|
}
|
|
669
672
|
});
|
|
670
673
|
}
|
|
@@ -687,7 +690,7 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
687
690
|
method: "POST",
|
|
688
691
|
data: g,
|
|
689
692
|
onComplete(_) {
|
|
690
|
-
let
|
|
693
|
+
let T = D(), v = {
|
|
691
694
|
method: "POST",
|
|
692
695
|
headers: {
|
|
693
696
|
ENO_CSRF_TOKEN: a,
|
|
@@ -713,21 +716,21 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
713
716
|
}
|
|
714
717
|
]
|
|
715
718
|
},
|
|
716
|
-
tempId:
|
|
719
|
+
tempId: T
|
|
717
720
|
}
|
|
718
721
|
]
|
|
719
722
|
}),
|
|
720
723
|
type: "json",
|
|
721
|
-
onComplete(
|
|
722
|
-
i && i(
|
|
724
|
+
onComplete(U) {
|
|
725
|
+
i && i(U);
|
|
723
726
|
},
|
|
724
|
-
onFailure(
|
|
725
|
-
c && c(
|
|
727
|
+
onFailure(U) {
|
|
728
|
+
c && c(U);
|
|
726
729
|
}
|
|
727
730
|
};
|
|
728
731
|
m(
|
|
729
732
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + r,
|
|
730
|
-
|
|
733
|
+
v
|
|
731
734
|
);
|
|
732
735
|
},
|
|
733
736
|
onFailure(_) {
|
|
@@ -754,7 +757,7 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
754
757
|
let h = g.couples;
|
|
755
758
|
h = h.filter(
|
|
756
759
|
(S, y, _) => y === _.findIndex(
|
|
757
|
-
(
|
|
760
|
+
(T) => T.organization.pid === S.organization.pid && T.role.pid === S.role.pid
|
|
758
761
|
)
|
|
759
762
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
760
763
|
u || h.forEach((y) => {
|
|
@@ -762,7 +765,7 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
762
765
|
u = S, f = s;
|
|
763
766
|
else if (S === y.role.name) {
|
|
764
767
|
let _ = h.filter(
|
|
765
|
-
(
|
|
768
|
+
(T) => T.role.name === S
|
|
766
769
|
);
|
|
767
770
|
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : c(_);
|
|
768
771
|
}
|
|
@@ -782,14 +785,14 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
782
785
|
l && f && u ? (p = u + "." + f + "." + l, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : c && (p = u + "." + f + "." + l, c(p));
|
|
783
786
|
},
|
|
784
787
|
onFailure(r, d) {
|
|
785
|
-
console.
|
|
788
|
+
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
786
789
|
err: r,
|
|
787
790
|
headers: d
|
|
788
791
|
});
|
|
789
792
|
}
|
|
790
793
|
});
|
|
791
794
|
}
|
|
792
|
-
async function
|
|
795
|
+
async function L(e, t = void 0, n = void 0) {
|
|
793
796
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
794
797
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
795
798
|
), n && n(
|
|
@@ -805,7 +808,7 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
805
808
|
console.log("☠️ error => ", s);
|
|
806
809
|
}
|
|
807
810
|
), new Promise((s, i) => {
|
|
808
|
-
|
|
811
|
+
F(
|
|
809
812
|
e,
|
|
810
813
|
(c) => {
|
|
811
814
|
e?.returnType === "blob" ? (console.log("ticketURL blob", c), fetch(c).then((o) => o.blob()).then((o) => {
|
|
@@ -1218,7 +1221,7 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1218
1221
|
});
|
|
1219
1222
|
}
|
|
1220
1223
|
function Ve(e, t, n, s) {
|
|
1221
|
-
|
|
1224
|
+
F(
|
|
1222
1225
|
e.space,
|
|
1223
1226
|
t,
|
|
1224
1227
|
(i) => {
|
|
@@ -1236,7 +1239,7 @@ function Ve(e, t, n, s) {
|
|
|
1236
1239
|
}
|
|
1237
1240
|
async function Be(e, t, n = void 0, s = void 0) {
|
|
1238
1241
|
return new Promise((i) => {
|
|
1239
|
-
|
|
1242
|
+
F(e, t, (c) => {
|
|
1240
1243
|
m(c, {
|
|
1241
1244
|
onComplete: (o, a, r) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, r), i),
|
|
1242
1245
|
onFailure: (o, a, r) => {
|
|
@@ -1248,7 +1251,7 @@ async function Be(e, t, n = void 0, s = void 0) {
|
|
|
1248
1251
|
}
|
|
1249
1252
|
function We(e, t, n, s = void 0, i = void 0) {
|
|
1250
1253
|
const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1251
|
-
|
|
1254
|
+
j(
|
|
1252
1255
|
e,
|
|
1253
1256
|
n,
|
|
1254
1257
|
(o) => {
|
|
@@ -1269,10 +1272,10 @@ function We(e, t, n, s = void 0, i = void 0) {
|
|
|
1269
1272
|
}
|
|
1270
1273
|
);
|
|
1271
1274
|
}
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1275
|
+
let M, J;
|
|
1276
|
+
const x = [];
|
|
1274
1277
|
async function Xe(e, t = void 0, n = void 0) {
|
|
1275
|
-
e.objID && e.objID !== "" ?
|
|
1278
|
+
e.objID && e.objID !== "" ? j(
|
|
1276
1279
|
e,
|
|
1277
1280
|
(s) => {
|
|
1278
1281
|
t && t(s);
|
|
@@ -1291,7 +1294,7 @@ async function Xe(e, t = void 0, n = void 0) {
|
|
|
1291
1294
|
);
|
|
1292
1295
|
}
|
|
1293
1296
|
async function Ye(e, t = void 0, n = void 0) {
|
|
1294
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1297
|
+
console.log("getDatasByTenant (getDocuments)", e), await L(
|
|
1295
1298
|
e,
|
|
1296
1299
|
(s) => {
|
|
1297
1300
|
const i = {};
|
|
@@ -1309,11 +1312,11 @@ function He(e, t = void 0, n = void 0) {
|
|
|
1309
1312
|
return;
|
|
1310
1313
|
}
|
|
1311
1314
|
e.objIds.forEach((i, c) => {
|
|
1312
|
-
|
|
1315
|
+
L(
|
|
1313
1316
|
e,
|
|
1314
1317
|
i.objID,
|
|
1315
1318
|
(o) => {
|
|
1316
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1319
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), te(e, J)), c === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1317
1320
|
}
|
|
1318
1321
|
);
|
|
1319
1322
|
});
|
|
@@ -1321,10 +1324,10 @@ function He(e, t = void 0, n = void 0) {
|
|
|
1321
1324
|
function te(e, t, n = void 0, s = void 0) {
|
|
1322
1325
|
Z(
|
|
1323
1326
|
e,
|
|
1324
|
-
|
|
1327
|
+
M,
|
|
1325
1328
|
(i) => {
|
|
1326
1329
|
const c = [...t];
|
|
1327
|
-
c.find((o) => o.objectID === i.objectId).data = i.data,
|
|
1330
|
+
c.find((o) => o.objectID === i.objectId).data = i.data, J = c, x.push(i.data), n && n(x);
|
|
1328
1331
|
},
|
|
1329
1332
|
(i) => {
|
|
1330
1333
|
s && (s(i), console.log(i));
|
|
@@ -1338,7 +1341,7 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1338
1341
|
"usersgroup",
|
|
1339
1342
|
"3dplan",
|
|
1340
1343
|
"dashboard"
|
|
1341
|
-
],
|
|
1344
|
+
], G = {
|
|
1342
1345
|
how: "ds6w:how",
|
|
1343
1346
|
what: "ds6w:what",
|
|
1344
1347
|
when: "ds6w:when",
|
|
@@ -1364,7 +1367,7 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1364
1367
|
uri: `pid://${o}`
|
|
1365
1368
|
}
|
|
1366
1369
|
],
|
|
1367
|
-
predicate:
|
|
1370
|
+
predicate: G[a],
|
|
1368
1371
|
object: {
|
|
1369
1372
|
literal: r
|
|
1370
1373
|
}
|
|
@@ -1419,7 +1422,7 @@ function ae(e, t, n = void 0, s = void 0) {
|
|
|
1419
1422
|
}, o = `${c.baseUrl}${c.uri}`, a = {
|
|
1420
1423
|
"Content-Type": "application/json",
|
|
1421
1424
|
Accept: "application/json,text/javascript,*/*"
|
|
1422
|
-
}, r =
|
|
1425
|
+
}, r = D(), d = {
|
|
1423
1426
|
with_indexing_date: !0,
|
|
1424
1427
|
with_synthesis: !0,
|
|
1425
1428
|
with_nls: !1,
|
|
@@ -1507,7 +1510,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1507
1510
|
uri: `pid://${i}`
|
|
1508
1511
|
}
|
|
1509
1512
|
],
|
|
1510
|
-
predicate:
|
|
1513
|
+
predicate: G[c],
|
|
1511
1514
|
object: {
|
|
1512
1515
|
literal: o
|
|
1513
1516
|
}
|
|
@@ -1734,7 +1737,7 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1734
1737
|
re(
|
|
1735
1738
|
a.users,
|
|
1736
1739
|
(p) => {
|
|
1737
|
-
p !== void 0 && (r.id_msg = p.id, d = !0,
|
|
1740
|
+
p !== void 0 && (r.id_msg = p.id, d = !0, P(e, r));
|
|
1738
1741
|
},
|
|
1739
1742
|
(p) => {
|
|
1740
1743
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), r.id_msg = "";
|
|
@@ -1752,7 +1755,7 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1752
1755
|
type: "json",
|
|
1753
1756
|
onComplete(l, f, u) {
|
|
1754
1757
|
const g = l;
|
|
1755
|
-
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), r.id_msg = g.result.id,
|
|
1758
|
+
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), r.id_msg = g.result.id, P(e, r);
|
|
1756
1759
|
},
|
|
1757
1760
|
onFailure(l, f, u) {
|
|
1758
1761
|
const g = l;
|
|
@@ -1791,7 +1794,7 @@ function re(e, t, n, s) {
|
|
|
1791
1794
|
});
|
|
1792
1795
|
});
|
|
1793
1796
|
}
|
|
1794
|
-
function
|
|
1797
|
+
function P(e, t, n = void 0, s = void 0) {
|
|
1795
1798
|
const i = {
|
|
1796
1799
|
base: e.space,
|
|
1797
1800
|
uri: "/api/community",
|
|
@@ -2078,14 +2081,14 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
2078
2081
|
);
|
|
2079
2082
|
}
|
|
2080
2083
|
function pt(e, t = void 0, n = void 0) {
|
|
2081
|
-
e.tenant &&
|
|
2084
|
+
e.tenant && C(e, (s) => {
|
|
2082
2085
|
console.log("serviceUrls", s);
|
|
2083
2086
|
const i = s.services.find((c) => c.id === "businessprocess")?.url + "/api/v2";
|
|
2084
2087
|
return t && t(i), i;
|
|
2085
2088
|
});
|
|
2086
2089
|
}
|
|
2087
2090
|
function lt(e, t = void 0, n = void 0) {
|
|
2088
|
-
e.tenant &&
|
|
2091
|
+
e.tenant && C(e, (s) => {
|
|
2089
2092
|
console.log("serviceUrls", s);
|
|
2090
2093
|
const i = s.services.find((a) => a.id === "3dpassport")?.url, c = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${c}/auth/cas`;
|
|
2091
2094
|
m(o, {
|
|
@@ -2117,7 +2120,7 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2117
2120
|
}
|
|
2118
2121
|
}
|
|
2119
2122
|
async function ft(e, t, n = void 0, s = void 0) {
|
|
2120
|
-
e.tenant &&
|
|
2123
|
+
e.tenant && C(e, (i) => {
|
|
2121
2124
|
const o = `${i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2122
2125
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2123
2126
|
method: "POST"
|
|
@@ -2129,7 +2132,7 @@ async function ft(e, t, n = void 0, s = void 0) {
|
|
|
2129
2132
|
});
|
|
2130
2133
|
}
|
|
2131
2134
|
async function mt(e, t, n = void 0, s = void 0) {
|
|
2132
|
-
e.tenant &&
|
|
2135
|
+
e.tenant && C(e, (i) => {
|
|
2133
2136
|
const o = `${i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2134
2137
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2135
2138
|
method: "GET"
|
|
@@ -2165,7 +2168,7 @@ async function ht(e, t, n, s = void 0, i = void 0) {
|
|
|
2165
2168
|
}
|
|
2166
2169
|
}
|
|
2167
2170
|
async function St(e, t, n, s, i = void 0, c = void 0) {
|
|
2168
|
-
e.tenant &&
|
|
2171
|
+
e.tenant && C(e, (o) => {
|
|
2169
2172
|
o.services.find((r) => r.id === "businessprocess")?.url + "";
|
|
2170
2173
|
const a = e.tenant.toLowerCase();
|
|
2171
2174
|
fetch(
|
|
@@ -2181,7 +2184,7 @@ async function St(e, t, n, s, i = void 0, c = void 0) {
|
|
|
2181
2184
|
});
|
|
2182
2185
|
}
|
|
2183
2186
|
async function yt(e, t, n, s, i, c = void 0, o = void 0) {
|
|
2184
|
-
e.tenant &&
|
|
2187
|
+
e.tenant && C(e, (a) => {
|
|
2185
2188
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2186
2189
|
const r = e.tenant.toLowerCase();
|
|
2187
2190
|
fetch(
|
|
@@ -2197,7 +2200,7 @@ async function yt(e, t, n, s, i, c = void 0, o = void 0) {
|
|
|
2197
2200
|
});
|
|
2198
2201
|
}
|
|
2199
2202
|
async function _t(e, t, n, s = void 0, i = void 0) {
|
|
2200
|
-
e.tenant &&
|
|
2203
|
+
e.tenant && C(e, (c) => {
|
|
2201
2204
|
c.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2202
2205
|
const o = e.tenant.toLowerCase();
|
|
2203
2206
|
fetch(
|
|
@@ -2213,7 +2216,7 @@ async function _t(e, t, n, s = void 0, i = void 0) {
|
|
|
2213
2216
|
});
|
|
2214
2217
|
}
|
|
2215
2218
|
async function wt(e, t, n, s, i, c = void 0, o = void 0) {
|
|
2216
|
-
e.tenant &&
|
|
2219
|
+
e.tenant && C(e, (a) => {
|
|
2217
2220
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2218
2221
|
const r = e.tenant.toLowerCase();
|
|
2219
2222
|
fetch(
|
|
@@ -2229,7 +2232,7 @@ async function wt(e, t, n, s, i, c = void 0, o = void 0) {
|
|
|
2229
2232
|
});
|
|
2230
2233
|
}
|
|
2231
2234
|
async function Ct(e, t, n, s, i = void 0, c = void 0) {
|
|
2232
|
-
e.tenant &&
|
|
2235
|
+
e.tenant && C(e, (o) => {
|
|
2233
2236
|
o.services.find((r) => r.id === "businessprocess")?.url + "";
|
|
2234
2237
|
const a = e.tenant.toLowerCase();
|
|
2235
2238
|
fetch(
|
|
@@ -2265,7 +2268,7 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2265
2268
|
},
|
|
2266
2269
|
!0
|
|
2267
2270
|
);
|
|
2268
|
-
const i =
|
|
2271
|
+
const i = I.now().ts, c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2269
2272
|
m(c, {
|
|
2270
2273
|
onComplete(o) {
|
|
2271
2274
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2328,23 +2331,23 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2328
2331
|
});
|
|
2329
2332
|
}
|
|
2330
2333
|
export {
|
|
2331
|
-
|
|
2334
|
+
D as UUID,
|
|
2332
2335
|
bt as _3DSearch_usersGroup,
|
|
2333
2336
|
Pe as _3DSpace_Create_Doc,
|
|
2334
2337
|
Ee as _3DSpace_bookmark_addSubsciptions,
|
|
2335
2338
|
Ge as _3DSpace_bookmark_newWorkspace,
|
|
2336
2339
|
b as _3DSpace_csrf,
|
|
2337
|
-
|
|
2340
|
+
L as _3DSpace_download_doc,
|
|
2338
2341
|
Z as _3DSpace_download_multidoc,
|
|
2339
2342
|
q as _3DSpace_file_update,
|
|
2340
2343
|
Q as _3DSpace_file_update_csr,
|
|
2341
2344
|
xe as _3DSpace_file_url_csr,
|
|
2342
|
-
|
|
2345
|
+
j as _3DSpace_get_csrf,
|
|
2343
2346
|
z as _3DSpace_get_docInfo,
|
|
2344
2347
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2345
2348
|
Fe as _3DSpace_get_multiDocInfo,
|
|
2346
2349
|
$ as _3DSpace_get_securityContexts,
|
|
2347
|
-
|
|
2350
|
+
F as _3DSpace_get_ticket,
|
|
2348
2351
|
Je as _3DSpace_lifecycle_changeRevision,
|
|
2349
2352
|
De as _3DSpace_lifecycle_changeState,
|
|
2350
2353
|
Le as _3DSpace_lifecycle_getGraph,
|
|
@@ -2364,7 +2367,7 @@ export {
|
|
|
2364
2367
|
dt as _3DSwym_get_findUser,
|
|
2365
2368
|
w as _3DSwym_get_version,
|
|
2366
2369
|
it as _3DSwym_postIdea,
|
|
2367
|
-
|
|
2370
|
+
P as _3DSwym_sendMessageData,
|
|
2368
2371
|
$e as _AppMngt_get_info_user,
|
|
2369
2372
|
Oe as _AppMngt_get_users,
|
|
2370
2373
|
yt as _Iterop_AddOrRemoveRows,
|
|
@@ -2380,7 +2383,7 @@ export {
|
|
|
2380
2383
|
St as _Iterop_runProcess,
|
|
2381
2384
|
V as _getPlateformInfos,
|
|
2382
2385
|
Ce as _getPlatformServices,
|
|
2383
|
-
|
|
2386
|
+
C as _getServiceUrl,
|
|
2384
2387
|
Te as _getServiceUrl_3DPassport,
|
|
2385
2388
|
pt as _getServiceUrl_Iterop,
|
|
2386
2389
|
m as _httpCallAuthenticated,
|