@beam3_dev/api_module 0.0.212 → 0.0.213
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 +148 -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 +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -181,7 +181,7 @@ async function Te(e, t = void 0, s = void 0) {
|
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Y() {
|
|
185
185
|
let e = {};
|
|
186
186
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
187
187
|
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
@@ -195,7 +195,7 @@ function q() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function T(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, {
|
|
@@ -247,8 +247,8 @@ function Oe(e, t, s) {
|
|
|
247
247
|
},
|
|
248
248
|
onComplete(r, o, a) {
|
|
249
249
|
const c = JSON.parse(r), d = c.data.map((p) => {
|
|
250
|
-
const u = p.attributes.name,
|
|
251
|
-
return { name: u, id:
|
|
250
|
+
const u = p.attributes.name, l = p.id;
|
|
251
|
+
return { name: u, id: l };
|
|
252
252
|
});
|
|
253
253
|
t && t(d, c);
|
|
254
254
|
},
|
|
@@ -327,16 +327,16 @@ function Ie(e, t, s = void 0, n = void 0) {
|
|
|
327
327
|
Accept: "application/json,text/javascript,*/*"
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
|
-
onComplete(
|
|
331
|
-
s && s(JSON.parse(
|
|
330
|
+
onComplete(l) {
|
|
331
|
+
s && s(JSON.parse(l));
|
|
332
332
|
},
|
|
333
|
-
onFailure(
|
|
334
|
-
const g =
|
|
335
|
-
g.msg =
|
|
333
|
+
onFailure(l, f) {
|
|
334
|
+
const g = l;
|
|
335
|
+
g.msg = f.errormsg, g.errCode = f.errorcode, n && n(g);
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function q(e, t = void 0, s = void 0) {
|
|
340
340
|
const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
341
341
|
method: "GET",
|
|
342
342
|
Accept: "application/json,*/*,test/javascript"
|
|
@@ -347,12 +347,12 @@ function Y(e, t = void 0, s = void 0) {
|
|
|
347
347
|
t && t(JSON.parse(p));
|
|
348
348
|
},
|
|
349
349
|
onFailure(p, u) {
|
|
350
|
-
const
|
|
351
|
-
|
|
350
|
+
const l = p;
|
|
351
|
+
l.msg = u.errormsg, l.errCode = u.errorcode, s && s(l);
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ae(e, t = void 0, s = void 0) {
|
|
356
356
|
const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
357
357
|
"Content-Type": "application/json",
|
|
358
358
|
Accept: "application/json,text/javascript,*/*"
|
|
@@ -361,13 +361,13 @@ function ke(e, t = void 0, s = void 0) {
|
|
|
361
361
|
m(a, {
|
|
362
362
|
opts: d,
|
|
363
363
|
onComplete(p) {
|
|
364
|
-
const u = JSON.parse(p),
|
|
364
|
+
const u = JSON.parse(p), l = {}, f = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
365
365
|
if (i && Object.keys(i).length > 0) {
|
|
366
|
-
const g =
|
|
367
|
-
|
|
366
|
+
const g = f.filter((S) => S.owner === i.email), h = f.filter((S) => S.members.includes(i.email)), y = g.concat(h);
|
|
367
|
+
l.iam = y, l.UG = f, l.iamMember = h, q(
|
|
368
368
|
e,
|
|
369
369
|
(S) => {
|
|
370
|
-
|
|
370
|
+
l.rules = S, t && t(l);
|
|
371
371
|
},
|
|
372
372
|
(S) => {
|
|
373
373
|
s && s(S);
|
|
@@ -383,7 +383,7 @@ function ke(e, t = void 0, s = void 0) {
|
|
|
383
383
|
console.log(p);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function ke(e, t) {
|
|
387
387
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
@@ -474,8 +474,8 @@ var Q = function(e, t, s, n) {
|
|
|
474
474
|
var a = e.length;
|
|
475
475
|
o > 0 && a > o && (a = o);
|
|
476
476
|
for (var c = 0; c < a; ++c) {
|
|
477
|
-
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u,
|
|
478
|
-
p >= 0 ? (u = d.substr(0, p),
|
|
477
|
+
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, l, f, g;
|
|
478
|
+
p >= 0 ? (u = d.substr(0, p), l = d.substr(p + 1)) : (u = d, l = ""), f = decodeURIComponent(u), g = decodeURIComponent(l), z(i, f) ? Array.isArray(i[f]) ? i[f].push(g) : i[f] = [i[f], g] : i[f] = g;
|
|
479
479
|
}
|
|
480
480
|
return i;
|
|
481
481
|
}, v = function(e) {
|
|
@@ -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 A(e, t = void 0, s = void 0) {
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
545
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
546
|
m(n, {
|
|
@@ -584,7 +584,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
584
584
|
}
|
|
585
585
|
function U(e, t = void 0, s = void 0) {
|
|
586
586
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
-
|
|
587
|
+
A(
|
|
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() : A(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
@@ -655,11 +655,11 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
655
655
|
ENO_CSRF_TOKEN: e.token
|
|
656
656
|
},
|
|
657
657
|
onComplete(d, p, u) {
|
|
658
|
-
const
|
|
658
|
+
const l = JSON.parse(d).csrf, f = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
659
659
|
let h;
|
|
660
660
|
n instanceof Blob ? h = n : h = new Blob([n], {
|
|
661
661
|
type: "text/plain"
|
|
662
|
-
}), g.append("__fcs__jobTicket",
|
|
662
|
+
}), g.append("__fcs__jobTicket", f.ticket), g.append("file_0", h, i);
|
|
663
663
|
const y = {};
|
|
664
664
|
y.method = "POST", y.data = g, y.onComplete = function(S) {
|
|
665
665
|
let _ = {
|
|
@@ -668,7 +668,7 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
668
668
|
SecurityContext: "ctx::" + e.ctx
|
|
669
669
|
},
|
|
670
670
|
data: JSON.stringify({
|
|
671
|
-
csrf:
|
|
671
|
+
csrf: l,
|
|
672
672
|
data: [
|
|
673
673
|
{
|
|
674
674
|
relateddata: {
|
|
@@ -694,14 +694,14 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
694
694
|
onFailure($) {
|
|
695
695
|
a && a($);
|
|
696
696
|
}
|
|
697
|
-
},
|
|
697
|
+
}, C = 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=${C}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
700
700
|
_
|
|
701
701
|
);
|
|
702
702
|
}, y.onFailure = function(S) {
|
|
703
703
|
a && a(S);
|
|
704
|
-
}, y.timeout = 0, m(
|
|
704
|
+
}, y.timeout = 0, m(f.ticketURL, y);
|
|
705
705
|
}
|
|
706
706
|
});
|
|
707
707
|
}
|
|
@@ -739,17 +739,17 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
739
739
|
headers: {
|
|
740
740
|
ENO_CSRF_TOKEN: a
|
|
741
741
|
},
|
|
742
|
-
onComplete(p, u,
|
|
743
|
-
let
|
|
742
|
+
onComplete(p, u, l) {
|
|
743
|
+
let f = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
|
|
744
744
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
745
745
|
type: "text/plain"
|
|
746
|
-
}), g.append("__fcs__jobTicket",
|
|
746
|
+
}), g.append("__fcs__jobTicket", f.ticket), g.append("filename", h, s);
|
|
747
747
|
const y = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
|
|
748
748
|
let S = {
|
|
749
749
|
method: "POST",
|
|
750
750
|
data: g,
|
|
751
751
|
onComplete(_) {
|
|
752
|
-
let
|
|
752
|
+
let C = D(), $ = {
|
|
753
753
|
method: "POST",
|
|
754
754
|
headers: {
|
|
755
755
|
ENO_CSRF_TOKEN: a,
|
|
@@ -775,7 +775,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
775
775
|
}
|
|
776
776
|
]
|
|
777
777
|
},
|
|
778
|
-
tempId:
|
|
778
|
+
tempId: C
|
|
779
779
|
}
|
|
780
780
|
]
|
|
781
781
|
}),
|
|
@@ -797,18 +797,18 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
797
797
|
},
|
|
798
798
|
timeout: 0
|
|
799
799
|
};
|
|
800
|
-
m(
|
|
800
|
+
m(f.ticketURL, S);
|
|
801
801
|
}
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function k(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",
|
|
809
809
|
onComplete(c) {
|
|
810
810
|
const d = JSON.parse(c);
|
|
811
|
-
let p = "", u,
|
|
811
|
+
let p = "", u, l, f;
|
|
812
812
|
if (t) {
|
|
813
813
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
814
814
|
if (g) {
|
|
@@ -816,32 +816,32 @@ function A(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
|
+
(C) => C.organization.pid === y.organization.pid && C.role.pid === y.role.pid
|
|
820
820
|
)
|
|
821
821
|
), s && (Array.isArray(s) ? s.forEach((y) => {
|
|
822
|
-
|
|
822
|
+
f || h.forEach((S) => {
|
|
823
823
|
if (y === S.role.name && n === S.organization.title)
|
|
824
|
-
|
|
824
|
+
f = y, l = n;
|
|
825
825
|
else if (y === S.role.name) {
|
|
826
826
|
let _ = h.filter(
|
|
827
|
-
(
|
|
827
|
+
(C) => C.role.name === y
|
|
828
828
|
);
|
|
829
|
-
_.length === 1 ? (
|
|
829
|
+
_.length === 1 ? (f = _[0].role.name, l = _[0].organization.title) : r(_);
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
}) : h.forEach((y) => {
|
|
833
833
|
if (s === y.role.name && n === y.organization.title)
|
|
834
|
-
|
|
834
|
+
f = s, l = n;
|
|
835
835
|
else if (s === y.role.name) {
|
|
836
836
|
let S = h.filter(
|
|
837
837
|
(_) => _.role.name === s
|
|
838
838
|
);
|
|
839
|
-
S.length === 1 ? (
|
|
839
|
+
S.length === 1 ? (f = S[0].role.name, l = S[0].organization.title) : r(S);
|
|
840
840
|
}
|
|
841
841
|
}));
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
u &&
|
|
844
|
+
u && l && f ? (p = f + "." + l + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = f + "." + l + "." + u, r(p));
|
|
845
845
|
},
|
|
846
846
|
onFailure(c, d) {
|
|
847
847
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -940,14 +940,14 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
940
940
|
const d = c.data;
|
|
941
941
|
c.success === !0 && (s && s(), d.forEach((p) => {
|
|
942
942
|
try {
|
|
943
|
-
const u = p.dataelements.fileName,
|
|
944
|
-
m(
|
|
945
|
-
onComplete: (
|
|
943
|
+
const u = p.dataelements.fileName, l = p.dataelements.ticketURL;
|
|
944
|
+
m(l, {
|
|
945
|
+
onComplete: (f, g) => {
|
|
946
946
|
let h;
|
|
947
947
|
try {
|
|
948
|
-
h = JSON.parse(
|
|
948
|
+
h = JSON.parse(f);
|
|
949
949
|
} catch {
|
|
950
|
-
h =
|
|
950
|
+
h = f.blob();
|
|
951
951
|
}
|
|
952
952
|
n && n({
|
|
953
953
|
objectId: p.id,
|
|
@@ -956,8 +956,8 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
956
956
|
data: h
|
|
957
957
|
});
|
|
958
958
|
},
|
|
959
|
-
onFailure: (
|
|
960
|
-
console.log("error http",
|
|
959
|
+
onFailure: (f) => {
|
|
960
|
+
console.log("error http", f);
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
} catch (u) {
|
|
@@ -1037,7 +1037,7 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1037
1037
|
return new Promise((i) => {
|
|
1038
1038
|
if (e.token === "" && b(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
|
+
k(
|
|
1041
1041
|
e.space,
|
|
1042
1042
|
"ESPACE COMMUN",
|
|
1043
1043
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1078,7 +1078,7 @@ function Ge(e, t, s = void 0, n = void 0) {
|
|
|
1078
1078
|
return new Promise((i) => {
|
|
1079
1079
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1080
1080
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1081
|
-
|
|
1081
|
+
k(
|
|
1082
1082
|
e.space,
|
|
1083
1083
|
"ESPACE COMMUN",
|
|
1084
1084
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1125,7 +1125,7 @@ function Ee(e, t, s, n = void 0, i = void 0) {
|
|
|
1125
1125
|
return new Promise((r) => {
|
|
1126
1126
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1127
1127
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1128
|
-
|
|
1128
|
+
k(
|
|
1129
1129
|
e.space,
|
|
1130
1130
|
"ESPACE COMMUN",
|
|
1131
1131
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1275,9 +1275,9 @@ async function Xe(e, t, s = void 0, n = void 0) {
|
|
|
1275
1275
|
});
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
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
|
+
A(
|
|
1281
1281
|
e,
|
|
1282
1282
|
s,
|
|
1283
1283
|
(o) => {
|
|
@@ -1300,8 +1300,8 @@ function qe(e, t, s, n = void 0, i = void 0) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
let G, E;
|
|
1302
1302
|
const x = [];
|
|
1303
|
-
async function
|
|
1304
|
-
e.objID && e.objID !== "" ?
|
|
1303
|
+
async function qe(e, t = void 0, s = void 0) {
|
|
1304
|
+
e.objID && e.objID !== "" ? A(
|
|
1305
1305
|
e,
|
|
1306
1306
|
(n) => {
|
|
1307
1307
|
t && t(n);
|
|
@@ -1407,16 +1407,16 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1407
1407
|
Accept: "application/json"
|
|
1408
1408
|
},
|
|
1409
1409
|
data: JSON.stringify(u),
|
|
1410
|
-
onComplete(
|
|
1411
|
-
JSON.parse(
|
|
1412
|
-
const
|
|
1410
|
+
onComplete(l) {
|
|
1411
|
+
JSON.parse(l);
|
|
1412
|
+
const f = {};
|
|
1413
1413
|
setTimeout(() => {
|
|
1414
1414
|
L(
|
|
1415
1415
|
e,
|
|
1416
1416
|
o,
|
|
1417
1417
|
(g) => {
|
|
1418
1418
|
const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1419
|
-
|
|
1419
|
+
f.name = h, f.ext = y, f.createBy = S, t.info = { ...f }, re(
|
|
1420
1420
|
e,
|
|
1421
1421
|
t,
|
|
1422
1422
|
(_) => {
|
|
@@ -1434,9 +1434,9 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1434
1434
|
);
|
|
1435
1435
|
}, 2e3);
|
|
1436
1436
|
},
|
|
1437
|
-
onFailure(
|
|
1438
|
-
const g =
|
|
1439
|
-
g.msg =
|
|
1437
|
+
onFailure(l, f) {
|
|
1438
|
+
const g = l;
|
|
1439
|
+
g.msg = f.errormsg, g.errCode = f.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
|
|
1440
1440
|
}
|
|
1441
1441
|
});
|
|
1442
1442
|
}
|
|
@@ -1518,8 +1518,8 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1518
1518
|
s(u);
|
|
1519
1519
|
},
|
|
1520
1520
|
onFailure(p, u) {
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1521
|
+
const l = p;
|
|
1522
|
+
l.msg = u.errormsg, l.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l), console.log("Erreur de recuperation d'id du doc et des tags", p);
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
@@ -1554,8 +1554,8 @@ function Ze(e, t, s = void 0, n = void 0) {
|
|
|
1554
1554
|
s && s(p);
|
|
1555
1555
|
},
|
|
1556
1556
|
onFailure(p, u) {
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1557
|
+
const l = p;
|
|
1558
|
+
l.msg = u.errormsg, l.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
1561
|
}
|
|
@@ -1670,21 +1670,21 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1670
1670
|
},
|
|
1671
1671
|
onComplete(a, c, d) {
|
|
1672
1672
|
const u = JSON.parse(a).result;
|
|
1673
|
-
let
|
|
1674
|
-
u.forEach((
|
|
1673
|
+
let l = 0;
|
|
1674
|
+
u.forEach((f) => {
|
|
1675
1675
|
const g = {
|
|
1676
|
-
description:
|
|
1677
|
-
id:
|
|
1678
|
-
title:
|
|
1679
|
-
owner:
|
|
1680
|
-
role:
|
|
1681
|
-
access:
|
|
1676
|
+
description: f.description,
|
|
1677
|
+
id: f.id,
|
|
1678
|
+
title: f.title,
|
|
1679
|
+
owner: f.owner,
|
|
1680
|
+
role: f.role,
|
|
1681
|
+
access: f.access
|
|
1682
1682
|
};
|
|
1683
1683
|
ce(
|
|
1684
1684
|
e,
|
|
1685
|
-
|
|
1685
|
+
f.id,
|
|
1686
1686
|
(h) => {
|
|
1687
|
-
|
|
1687
|
+
l++, g.members = h, r.push(g), l === u.length && t && t(r);
|
|
1688
1688
|
},
|
|
1689
1689
|
(h) => s(h)
|
|
1690
1690
|
);
|
|
@@ -1779,13 +1779,13 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1779
1779
|
},
|
|
1780
1780
|
data: JSON.stringify(a),
|
|
1781
1781
|
type: "json",
|
|
1782
|
-
onComplete(u,
|
|
1782
|
+
onComplete(u, l, f) {
|
|
1783
1783
|
const g = u;
|
|
1784
|
-
g.reponse = JSON.parse(
|
|
1784
|
+
g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), c.id_msg = g.result.id, P(e, c);
|
|
1785
1785
|
},
|
|
1786
|
-
onFailure(u,
|
|
1786
|
+
onFailure(u, l, f) {
|
|
1787
1787
|
const g = u;
|
|
1788
|
-
g.msg =
|
|
1788
|
+
g.msg = l.errormsg, g.status = l.status, n && n(g);
|
|
1789
1789
|
}
|
|
1790
1790
|
});
|
|
1791
1791
|
});
|
|
@@ -1803,13 +1803,13 @@ function de(e, t, s, n) {
|
|
|
1803
1803
|
onComplete(o) {
|
|
1804
1804
|
const a = JSON.parse(o), c = [];
|
|
1805
1805
|
a.result.forEach((u) => {
|
|
1806
|
-
u.users = u.users.sort((
|
|
1806
|
+
u.users = u.users.sort((l, f) => l.login.localeCompare(f.login)), u.users.length === t.length && c.push(u);
|
|
1807
1807
|
});
|
|
1808
1808
|
const d = t.sort(), p = c.find((u) => {
|
|
1809
|
-
const
|
|
1810
|
-
return u.users.forEach((
|
|
1811
|
-
|
|
1812
|
-
}), JSON.stringify(
|
|
1809
|
+
const l = [];
|
|
1810
|
+
return u.users.forEach((f) => {
|
|
1811
|
+
l.push(f.login);
|
|
1812
|
+
}), JSON.stringify(l) === JSON.stringify(d);
|
|
1813
1813
|
});
|
|
1814
1814
|
s && p !== void 0 ? s(p) : (n || p === void 0) && n(p);
|
|
1815
1815
|
},
|
|
@@ -1892,13 +1892,13 @@ function ot(e, t, s = void 0, n = void 0) {
|
|
|
1892
1892
|
headers: d,
|
|
1893
1893
|
data: JSON.stringify(a),
|
|
1894
1894
|
type: "json",
|
|
1895
|
-
onComplete(p, u,
|
|
1896
|
-
const
|
|
1897
|
-
|
|
1895
|
+
onComplete(p, u, l) {
|
|
1896
|
+
const f = JSON.parse(p);
|
|
1897
|
+
f.status = l.status, f.response = l.response, s && s(f);
|
|
1898
1898
|
},
|
|
1899
|
-
onFailure(p, u,
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1899
|
+
onFailure(p, u, l) {
|
|
1900
|
+
const f = p;
|
|
1901
|
+
f.status = u.status, f.response = u.errormsg, n && n(f);
|
|
1902
1902
|
}
|
|
1903
1903
|
});
|
|
1904
1904
|
});
|
|
@@ -1964,13 +1964,13 @@ function rt(e, t = void 0, s = void 0) {
|
|
|
1964
1964
|
typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
|
|
1965
1965
|
},
|
|
1966
1966
|
onFailure(c, d, p) {
|
|
1967
|
-
const u = JSON.parse(d),
|
|
1967
|
+
const u = JSON.parse(d), l = JSON.parse(c), f = new Error(
|
|
1968
1968
|
`Erreur sur cette requête : ${n.base + n.uri}`,
|
|
1969
1969
|
{
|
|
1970
|
-
cause: { head: u, rep:
|
|
1970
|
+
cause: { head: u, rep: l }
|
|
1971
1971
|
}
|
|
1972
1972
|
);
|
|
1973
|
-
s && s(
|
|
1973
|
+
s && s(f);
|
|
1974
1974
|
}
|
|
1975
1975
|
};
|
|
1976
1976
|
m(n.base + n.uri, a);
|
|
@@ -2071,7 +2071,36 @@ function pt(e, t, s) {
|
|
|
2071
2071
|
});
|
|
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 c = [], d = 1;
|
|
2077
|
+
let p = !1, u = 2;
|
|
2078
|
+
a || (a = d), o || (o = 100);
|
|
2079
|
+
const l = {
|
|
2080
|
+
uri: "/api/idea/list",
|
|
2081
|
+
comId: `/community_id/${r}`,
|
|
2082
|
+
limit: `/limit/${o}`,
|
|
2083
|
+
page: `/page/${a}`
|
|
2084
|
+
};
|
|
2085
|
+
let f = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2086
|
+
w(e, (g) => {
|
|
2087
|
+
const h = (y) => {
|
|
2088
|
+
m(y, {
|
|
2089
|
+
method: "GET",
|
|
2090
|
+
headers: {
|
|
2091
|
+
"X-DS-SWYM-CSRFTOKEN": g.result.ServerToken
|
|
2092
|
+
},
|
|
2093
|
+
onComplete(S) {
|
|
2094
|
+
const _ = { response: JSON.parse(S) };
|
|
2095
|
+
u = Math.ceil(Number(_.response.nb_result) / 100), S && u >= a && (a++, c.push(_.response.result), u === a && (p = !0), p || (l.page = `/page/${a}`, y = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, h(y))), s && p && s(c);
|
|
2096
|
+
},
|
|
2097
|
+
onFailure(S, _) {
|
|
2098
|
+
const C = S;
|
|
2099
|
+
C.status = _.status, C.response = _.errormsg, n && n(C);
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
};
|
|
2103
|
+
p || h(f);
|
|
2075
2104
|
});
|
|
2076
2105
|
}
|
|
2077
2106
|
function ue(e) {
|
|
@@ -2189,14 +2218,14 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
2189
2218
|
);
|
|
2190
2219
|
}
|
|
2191
2220
|
function mt(e, t = void 0, s = void 0) {
|
|
2192
|
-
e.tenant &&
|
|
2221
|
+
e.tenant && T(e, (n) => {
|
|
2193
2222
|
console.log("serviceUrls", n);
|
|
2194
2223
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2195
2224
|
return t && t(i), i;
|
|
2196
2225
|
});
|
|
2197
2226
|
}
|
|
2198
2227
|
function gt(e, t = void 0, s = void 0) {
|
|
2199
|
-
e.tenant &&
|
|
2228
|
+
e.tenant && T(e, (n) => {
|
|
2200
2229
|
console.log("serviceUrls", n);
|
|
2201
2230
|
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`;
|
|
2202
2231
|
m(o, {
|
|
@@ -2228,7 +2257,7 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2228
2257
|
}
|
|
2229
2258
|
}
|
|
2230
2259
|
async function yt(e, t, s = void 0, n = void 0) {
|
|
2231
|
-
e.tenant &&
|
|
2260
|
+
e.tenant && T(e, (i) => {
|
|
2232
2261
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2233
2262
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2234
2263
|
method: "POST"
|
|
@@ -2240,7 +2269,7 @@ async function yt(e, t, s = void 0, n = void 0) {
|
|
|
2240
2269
|
});
|
|
2241
2270
|
}
|
|
2242
2271
|
async function St(e, t, s = void 0, n = void 0) {
|
|
2243
|
-
e.tenant &&
|
|
2272
|
+
e.tenant && T(e, (i) => {
|
|
2244
2273
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2245
2274
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2246
2275
|
method: "GET"
|
|
@@ -2276,7 +2305,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
|
|
|
2276
2305
|
}
|
|
2277
2306
|
}
|
|
2278
2307
|
async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
2279
|
-
e.tenant &&
|
|
2308
|
+
e.tenant && T(e, (o) => {
|
|
2280
2309
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2281
2310
|
const a = e.tenant.toLowerCase();
|
|
2282
2311
|
fetch(
|
|
@@ -2292,7 +2321,7 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2292
2321
|
});
|
|
2293
2322
|
}
|
|
2294
2323
|
async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2295
|
-
e.tenant &&
|
|
2324
|
+
e.tenant && T(e, (a) => {
|
|
2296
2325
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2297
2326
|
const c = e.tenant.toLowerCase();
|
|
2298
2327
|
fetch(
|
|
@@ -2308,7 +2337,7 @@ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2308
2337
|
});
|
|
2309
2338
|
}
|
|
2310
2339
|
async function bt(e, t, s, n = void 0, i = void 0) {
|
|
2311
|
-
e.tenant &&
|
|
2340
|
+
e.tenant && T(e, (r) => {
|
|
2312
2341
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2313
2342
|
const o = e.tenant.toLowerCase();
|
|
2314
2343
|
fetch(
|
|
@@ -2324,7 +2353,7 @@ async function bt(e, t, s, n = void 0, i = void 0) {
|
|
|
2324
2353
|
});
|
|
2325
2354
|
}
|
|
2326
2355
|
async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2327
|
-
e.tenant &&
|
|
2356
|
+
e.tenant && T(e, (a) => {
|
|
2328
2357
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2329
2358
|
const c = e.tenant.toLowerCase();
|
|
2330
2359
|
fetch(
|
|
@@ -2340,7 +2369,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2340
2369
|
});
|
|
2341
2370
|
}
|
|
2342
2371
|
async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
2343
|
-
e.tenant &&
|
|
2372
|
+
e.tenant && T(e, (o) => {
|
|
2344
2373
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2345
2374
|
const a = e.tenant.toLowerCase();
|
|
2346
2375
|
fetch(
|
|
@@ -2362,10 +2391,10 @@ function vt(e) {
|
|
|
2362
2391
|
function Nt(e, t = void 0, s = void 0) {
|
|
2363
2392
|
return console.log("credentials", e), new Promise((n) => {
|
|
2364
2393
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2365
|
-
const o =
|
|
2394
|
+
const o = Y();
|
|
2366
2395
|
console.log("platformeInfo", o);
|
|
2367
2396
|
}
|
|
2368
|
-
|
|
2397
|
+
k(
|
|
2369
2398
|
e,
|
|
2370
2399
|
"Common space",
|
|
2371
2400
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2451,11 +2480,11 @@ export {
|
|
|
2451
2480
|
M as _3DSpace_file_update,
|
|
2452
2481
|
ee as _3DSpace_file_update_csr,
|
|
2453
2482
|
Pe as _3DSpace_file_url_csr,
|
|
2454
|
-
|
|
2483
|
+
A as _3DSpace_get_csrf,
|
|
2455
2484
|
L as _3DSpace_get_docInfo,
|
|
2456
2485
|
ne as _3DSpace_get_downloadTicket_multidoc,
|
|
2457
2486
|
xe as _3DSpace_get_multiDocInfo,
|
|
2458
|
-
|
|
2487
|
+
k as _3DSpace_get_securityContexts,
|
|
2459
2488
|
U as _3DSpace_get_ticket,
|
|
2460
2489
|
Ee as _3DSpace_lifecycle_changeRevision,
|
|
2461
2490
|
Me as _3DSpace_lifecycle_changeState,
|
|
@@ -2492,9 +2521,9 @@ export {
|
|
|
2492
2521
|
wt as _Iterop_getOneBusinessTableRows,
|
|
2493
2522
|
ht as _Iterop_jwtUser,
|
|
2494
2523
|
Ct as _Iterop_runProcess,
|
|
2495
|
-
|
|
2524
|
+
Y as _getPlateformInfos,
|
|
2496
2525
|
Te as _getPlatformServices,
|
|
2497
|
-
|
|
2526
|
+
T as _getServiceUrl,
|
|
2498
2527
|
be as _getServiceUrl_3DPassport,
|
|
2499
2528
|
mt as _getServiceUrl_Iterop,
|
|
2500
2529
|
m as _httpCallAuthenticated,
|
|
@@ -2507,7 +2536,7 @@ export {
|
|
|
2507
2536
|
V as couleurs,
|
|
2508
2537
|
Ne as createUserGroups,
|
|
2509
2538
|
se as dataMixing,
|
|
2510
|
-
|
|
2539
|
+
ke as deleteUserGroups,
|
|
2511
2540
|
he as findAdresse,
|
|
2512
2541
|
Ve as getAllContextSecurity,
|
|
2513
2542
|
H as getCSRFToken,
|
|
@@ -2519,12 +2548,12 @@ export {
|
|
|
2519
2548
|
ze as getDatasFrom3DSpace,
|
|
2520
2549
|
Xe as getDownloadDocument,
|
|
2521
2550
|
et as getInfoDocTags,
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2551
|
+
Ae as getUserGroupsList,
|
|
2552
|
+
q as getUsersGroupRules,
|
|
2553
|
+
qe as get_3DSpace_csrf,
|
|
2525
2554
|
Fe as patchUserGroups,
|
|
2526
2555
|
je as patchUserGroupsControl,
|
|
2527
|
-
|
|
2556
|
+
Ye as pushDataIn3DSpace,
|
|
2528
2557
|
Ue as readUserGroupControl,
|
|
2529
2558
|
Ze as removeTagToDoc,
|
|
2530
2559
|
vt as sayHello,
|