@beam3_dev/api_module 0.0.116 → 0.0.118
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 +132 -137
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
2
|
+
import { DateTime as N } from "luxon";
|
|
3
3
|
import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function j() {
|
|
5
5
|
return M();
|
|
@@ -66,7 +66,7 @@ async function de(e, t = void 0, n = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function le(e, t = L) {
|
|
69
|
-
let n =
|
|
69
|
+
let n = N.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 le(e, t = L) {
|
|
|
89
89
|
} : s;
|
|
90
90
|
for (let r of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start ===
|
|
92
|
+
(l) => l.start === N.fromISO(r.date).toISODate() && l.name === "Férié : " + r.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + r.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: N.fromISO(r.date).toISODate(),
|
|
96
|
+
end: N.fromISO(r.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -104,7 +104,7 @@ async function pe(e, t, n = !0) {
|
|
|
104
104
|
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
105
|
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, c) => i.start - c.start), e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function u(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
109
109
|
n.authenticatedRequest(e, t);
|
|
110
110
|
});
|
|
@@ -164,7 +164,7 @@ function J() {
|
|
|
164
164
|
function E(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
|
+
u(s, {
|
|
168
168
|
onComplete(i) {
|
|
169
169
|
const c = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
170
|
if (c && "platforms" in c) {
|
|
@@ -184,7 +184,7 @@ function E(e, t = void 0, n = void 0) {
|
|
|
184
184
|
function he(e, t = void 0, n = void 0) {
|
|
185
185
|
if (e.tenant) {
|
|
186
186
|
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
|
-
|
|
187
|
+
u(s, {
|
|
188
188
|
onComplete(i) {
|
|
189
189
|
const c = JSON.parse(i);
|
|
190
190
|
if (console.log("serviceId=3dpassport", c), Array.isArray(c) && c.length > 0) {
|
|
@@ -205,7 +205,7 @@ function Se(e, t, n) {
|
|
|
205
205
|
option: `?filter=${e.tenant}`
|
|
206
206
|
// facultatif
|
|
207
207
|
}, i = `${s.base}${s.uri}${s.option}`;
|
|
208
|
-
|
|
208
|
+
u(i, {
|
|
209
209
|
method: "GET",
|
|
210
210
|
headers: {
|
|
211
211
|
"Content-Type": "application/json",
|
|
@@ -213,8 +213,8 @@ function Se(e, t, n) {
|
|
|
213
213
|
},
|
|
214
214
|
onComplete(c, o, a) {
|
|
215
215
|
const r = JSON.parse(c), d = r.data.map((l) => {
|
|
216
|
-
const p = l.attributes.name,
|
|
217
|
-
return { name: p, id:
|
|
216
|
+
const p = l.attributes.name, f = l.id;
|
|
217
|
+
return { name: p, id: f };
|
|
218
218
|
});
|
|
219
219
|
t && t(d, r);
|
|
220
220
|
},
|
|
@@ -226,7 +226,7 @@ function Se(e, t, n) {
|
|
|
226
226
|
}
|
|
227
227
|
function _e(e, t = void 0, n = void 0) {
|
|
228
228
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
|
-
|
|
229
|
+
u(s, {
|
|
230
230
|
onComplete(i, c, o) {
|
|
231
231
|
const a = JSON.parse(i);
|
|
232
232
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
@@ -239,7 +239,7 @@ function _e(e, t = void 0, n = void 0) {
|
|
|
239
239
|
}
|
|
240
240
|
function ye(e, t, n = void 0, s = void 0) {
|
|
241
241
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
|
-
|
|
242
|
+
u(i, {
|
|
243
243
|
onComplete(c, o, a) {
|
|
244
244
|
const r = JSON.parse(c);
|
|
245
245
|
n && n(r);
|
|
@@ -269,7 +269,7 @@ function we(e, t, n = void 0, s = void 0) {
|
|
|
269
269
|
}
|
|
270
270
|
]
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
u(a, {
|
|
273
273
|
method: "POST",
|
|
274
274
|
headers: F,
|
|
275
275
|
data: JSON.stringify(r),
|
|
@@ -285,7 +285,7 @@ function we(e, t, n = void 0, s = void 0) {
|
|
|
285
285
|
}
|
|
286
286
|
function Ce(e, t, n = void 0, s = void 0) {
|
|
287
287
|
const { space: i, tenant: c } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${o}${a}${r}`;
|
|
288
|
-
|
|
288
|
+
u(d, {
|
|
289
289
|
opts: {
|
|
290
290
|
method: "GET",
|
|
291
291
|
headers: {
|
|
@@ -293,11 +293,11 @@ function Ce(e, t, n = void 0, s = void 0) {
|
|
|
293
293
|
Accept: "application/json,text/javascript,*/*"
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
|
-
onComplete(
|
|
297
|
-
n && n(JSON.parse(
|
|
296
|
+
onComplete(f) {
|
|
297
|
+
n && n(JSON.parse(f));
|
|
298
298
|
},
|
|
299
|
-
onFailure(
|
|
300
|
-
const g =
|
|
299
|
+
onFailure(f, m) {
|
|
300
|
+
const g = f;
|
|
301
301
|
g.msg = m.errormsg, g.errCode = m.errorcode, s && s(g);
|
|
302
302
|
}
|
|
303
303
|
});
|
|
@@ -307,14 +307,14 @@ function G(e, t = void 0, n = void 0) {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
309
309
|
}, d = `${c}${o}${a}`;
|
|
310
|
-
|
|
310
|
+
u(d, {
|
|
311
311
|
OPTsH: r,
|
|
312
312
|
onComplete(l) {
|
|
313
313
|
t && t(JSON.parse(l));
|
|
314
314
|
},
|
|
315
315
|
onFailure(l, p) {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const f = l;
|
|
317
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -324,16 +324,16 @@ function Te(e, t = void 0, n = void 0) {
|
|
|
324
324
|
Accept: "application/json,text/javascript,*/*"
|
|
325
325
|
} };
|
|
326
326
|
try {
|
|
327
|
-
|
|
327
|
+
u(a, {
|
|
328
328
|
opts: d,
|
|
329
329
|
onComplete(l) {
|
|
330
|
-
const p = JSON.parse(l),
|
|
330
|
+
const p = JSON.parse(l), f = {}, m = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (i && Object.keys(i).length > 0) {
|
|
332
332
|
const g = m.filter((_) => _.owner === i.email), h = m.filter((_) => _.members.includes(i.email)), S = g.concat(h);
|
|
333
|
-
|
|
333
|
+
f.iam = S, f.UG = m, f.iamMember = h, G(
|
|
334
334
|
e,
|
|
335
335
|
(_) => {
|
|
336
|
-
|
|
336
|
+
f.rules = _, t && t(f);
|
|
337
337
|
},
|
|
338
338
|
(_) => {
|
|
339
339
|
n && n(_);
|
|
@@ -351,11 +351,11 @@ function Te(e, t = void 0, n = void 0) {
|
|
|
351
351
|
}
|
|
352
352
|
function Oe(e, t) {
|
|
353
353
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
|
-
|
|
354
|
+
u(i, {
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function be(e, t, n, s = void 0, i = void 0) {
|
|
359
359
|
const { space: c, tenant: o } = e, a = {
|
|
360
360
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
361
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -365,7 +365,7 @@ function Ne(e, t, n, s = void 0, i = void 0) {
|
|
|
365
365
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, r = n, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(r);
|
|
368
|
-
|
|
368
|
+
u(d, {
|
|
369
369
|
headers: F,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: l,
|
|
@@ -378,9 +378,9 @@ function Ne(e, t, n, s = void 0, i = void 0) {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Ne(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
|
+
u(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
385
|
headers: F,
|
|
386
386
|
data: JSON.stringify(n),
|
|
@@ -395,7 +395,7 @@ function be(e, t, n, s = void 0, i = void 0) {
|
|
|
395
395
|
}
|
|
396
396
|
function ve(e, t, n = void 0, s = void 0) {
|
|
397
397
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
|
-
|
|
398
|
+
u(o, {
|
|
399
399
|
opts: {
|
|
400
400
|
method: "GET",
|
|
401
401
|
headers: {
|
|
@@ -414,7 +414,7 @@ function ve(e, t, n = void 0, s = void 0) {
|
|
|
414
414
|
async function K(e, t, n) {
|
|
415
415
|
if (e.space) {
|
|
416
416
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
417
|
-
|
|
417
|
+
u(s, {
|
|
418
418
|
onComplete(i) {
|
|
419
419
|
i = JSON.parse(i), t && t(i.csrf);
|
|
420
420
|
},
|
|
@@ -431,7 +431,7 @@ async function X(e, t = void 0, n = void 0, s = void 0) {
|
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
433
|
const c = i + `/resources/v1/modeler/documents/${t}`;
|
|
434
|
-
|
|
434
|
+
u(c, {
|
|
435
435
|
onComplete(o, a, r) {
|
|
436
436
|
const d = JSON.parse(o);
|
|
437
437
|
n && n(d);
|
|
@@ -444,7 +444,7 @@ async function X(e, t = void 0, n = void 0, s = void 0) {
|
|
|
444
444
|
function v(e, t = void 0, n = void 0) {
|
|
445
445
|
if (e.objID && e.objID !== "") {
|
|
446
446
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
447
|
-
|
|
447
|
+
u(s, {
|
|
448
448
|
onComplete(i, c, o) {
|
|
449
449
|
const a = JSON.parse(i);
|
|
450
450
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
@@ -467,7 +467,7 @@ function v(e, t = void 0, n = void 0) {
|
|
|
467
467
|
function T(e, t = void 0, n = void 0) {
|
|
468
468
|
if (e.space) {
|
|
469
469
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
470
|
-
|
|
470
|
+
u(s, {
|
|
471
471
|
onComplete(i, c, o) {
|
|
472
472
|
const a = JSON.parse(i);
|
|
473
473
|
t && t(a.csrf.value);
|
|
@@ -488,7 +488,7 @@ function $(e, t = void 0, n = void 0) {
|
|
|
488
488
|
v(
|
|
489
489
|
e,
|
|
490
490
|
(i) => {
|
|
491
|
-
|
|
491
|
+
u(s, {
|
|
492
492
|
method: "PUT",
|
|
493
493
|
headers: {
|
|
494
494
|
ENO_CSRF_TOKEN: e.token
|
|
@@ -509,7 +509,7 @@ function $(e, t = void 0, n = void 0) {
|
|
|
509
509
|
}
|
|
510
510
|
function ke(e, t, n, s = void 0, i = void 0) {
|
|
511
511
|
const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
512
|
-
n || (n = e.token),
|
|
512
|
+
n || (n = e.token), u(c, {
|
|
513
513
|
method: "PUT",
|
|
514
514
|
headers: {
|
|
515
515
|
ENO_CSRF_TOKEN: n
|
|
@@ -549,14 +549,14 @@ function V(e, t, n, s, i, c = void 0, o = void 0) {
|
|
|
549
549
|
}
|
|
550
550
|
function W(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
551
551
|
const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
552
|
-
|
|
552
|
+
u(r, {
|
|
553
553
|
method: "PUT",
|
|
554
554
|
headers: {
|
|
555
555
|
ENO_CSRF_TOKEN: c
|
|
556
556
|
},
|
|
557
557
|
onComplete(d, l, p) {
|
|
558
|
-
const
|
|
559
|
-
m.append("__fcs__jobTicket",
|
|
558
|
+
const f = JSON.parse(d).data[0].dataelements, m = new FormData();
|
|
559
|
+
m.append("__fcs__jobTicket", f.ticket), m.append("file_0", s, i);
|
|
560
560
|
const g = {};
|
|
561
561
|
g.method = "POST", g.data = m, g.onComplete = function(h) {
|
|
562
562
|
let S = "temp_" + Date.now(), _ = {
|
|
@@ -588,13 +588,13 @@ function W(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
588
588
|
a && a(y);
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
|
-
|
|
591
|
+
u(
|
|
592
592
|
e.space + "/resources/v1/modeler/documents",
|
|
593
593
|
_
|
|
594
594
|
);
|
|
595
595
|
}, g.onFailure = function(h) {
|
|
596
596
|
a && a(h);
|
|
597
|
-
}, g.timeout = 0, f
|
|
597
|
+
}, g.timeout = 0, u(f.ticketURL, g);
|
|
598
598
|
}
|
|
599
599
|
});
|
|
600
600
|
}
|
|
@@ -609,13 +609,13 @@ async function Fe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
609
609
|
console.log("le store._3DSpace est vide");
|
|
610
610
|
return;
|
|
611
611
|
}
|
|
612
|
-
|
|
612
|
+
u(p.url_Ticket, {
|
|
613
613
|
method: "PUT",
|
|
614
614
|
headers: {
|
|
615
615
|
ENO_CSRF_TOKEN: a.value
|
|
616
616
|
},
|
|
617
|
-
onComplete(
|
|
618
|
-
const h = JSON.parse(
|
|
617
|
+
onComplete(f, m, g) {
|
|
618
|
+
const h = JSON.parse(f).data[0].dataelements;
|
|
619
619
|
d.append("__fcs__jobTicket", h.ticket), d.append("filename", l, n);
|
|
620
620
|
const S = {
|
|
621
621
|
method: "POST",
|
|
@@ -653,7 +653,7 @@ async function Fe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
653
653
|
onComplete: _,
|
|
654
654
|
onFailure: y
|
|
655
655
|
};
|
|
656
|
-
r !== "" &&
|
|
656
|
+
r !== "" && u(p.url_Post, k);
|
|
657
657
|
} else
|
|
658
658
|
console.warn("le store est vide");
|
|
659
659
|
},
|
|
@@ -666,17 +666,17 @@ async function Fe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
666
666
|
console.log("Erreur -- response ", C, `
|
|
667
667
|
headers `, k), c && c(C);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
u(h.ticketURL, S);
|
|
670
670
|
}
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function b(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1) {
|
|
674
674
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
675
|
-
|
|
675
|
+
u(a, {
|
|
676
676
|
method: "GET",
|
|
677
677
|
onComplete(r) {
|
|
678
678
|
const d = JSON.parse(r);
|
|
679
|
-
let l = "", p,
|
|
679
|
+
let l = "", p, f, m;
|
|
680
680
|
if (t) {
|
|
681
681
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
682
682
|
if (g) {
|
|
@@ -689,27 +689,27 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
689
689
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
690
690
|
m || h.forEach((_) => {
|
|
691
691
|
if (S === _.role.name && s === _.organization.title)
|
|
692
|
-
m = S,
|
|
692
|
+
m = S, f = s;
|
|
693
693
|
else if (S === _.role.name) {
|
|
694
694
|
let y = h.filter(
|
|
695
695
|
(C) => C.role.name === S
|
|
696
696
|
);
|
|
697
|
-
y.length === 1 ? (m = y[0].role.name,
|
|
697
|
+
y.length === 1 ? (m = y[0].role.name, f = y[0].organization.title) : c(y);
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
700
|
}) : h.forEach((S) => {
|
|
701
701
|
if (n === S.role.name && s === S.organization.title)
|
|
702
|
-
m = n,
|
|
702
|
+
m = n, f = s;
|
|
703
703
|
else if (n === S.role.name) {
|
|
704
704
|
let _ = h.filter(
|
|
705
705
|
(y) => y.role.name === n
|
|
706
706
|
);
|
|
707
|
-
_.length === 1 ? (m = _[0].role.name,
|
|
707
|
+
_.length === 1 ? (m = _[0].role.name, f = _[0].organization.title) : c(_);
|
|
708
708
|
}
|
|
709
709
|
}));
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
p &&
|
|
712
|
+
p && f && m ? (l = m + "." + f + "." + p, i(l)) : d.preferredcredentials && o ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : c && (l = m + "." + f + "." + p, c(l));
|
|
713
713
|
},
|
|
714
714
|
onFailure(r, d) {
|
|
715
715
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -738,7 +738,7 @@ async function I(e, t = void 0, n = void 0) {
|
|
|
738
738
|
$(
|
|
739
739
|
e,
|
|
740
740
|
(c) => {
|
|
741
|
-
|
|
741
|
+
u(c, {
|
|
742
742
|
headers: {
|
|
743
743
|
"Content-Type": "application/json",
|
|
744
744
|
Accept: "application/json"
|
|
@@ -809,7 +809,7 @@ function Y(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
809
809
|
data: c
|
|
810
810
|
});
|
|
811
811
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
812
|
-
|
|
812
|
+
u(a, {
|
|
813
813
|
method: "PUT",
|
|
814
814
|
data: o,
|
|
815
815
|
type: "json",
|
|
@@ -817,8 +817,8 @@ function Y(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
817
817
|
const d = r.data;
|
|
818
818
|
r.success === !0 && (n && n(), d.forEach((l) => {
|
|
819
819
|
try {
|
|
820
|
-
const p = l.dataelements.fileName,
|
|
821
|
-
f
|
|
820
|
+
const p = l.dataelements.fileName, f = l.dataelements.ticketURL;
|
|
821
|
+
u(f, {
|
|
822
822
|
onComplete: (m) => {
|
|
823
823
|
s && s({
|
|
824
824
|
objectId: l.id,
|
|
@@ -844,7 +844,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
844
844
|
return new Promise((i) => {
|
|
845
845
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
846
846
|
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
847
|
-
|
|
847
|
+
b(
|
|
848
848
|
e.space,
|
|
849
849
|
"ESPACE COMMUN",
|
|
850
850
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -875,7 +875,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
875
875
|
s && s(a);
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
|
-
|
|
878
|
+
u(c, o);
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
@@ -883,7 +883,7 @@ function Ae(e, t, n, s = void 0, i = void 0) {
|
|
|
883
883
|
return new Promise((c) => {
|
|
884
884
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
885
885
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
886
|
-
|
|
886
|
+
b(
|
|
887
887
|
e.space,
|
|
888
888
|
"ESPACE COMMUN",
|
|
889
889
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -915,7 +915,7 @@ function Ae(e, t, n, s = void 0, i = void 0) {
|
|
|
915
915
|
i && i(r);
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
|
-
|
|
918
|
+
u(o, a);
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
}
|
|
@@ -923,7 +923,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
923
923
|
return new Promise((i) => {
|
|
924
924
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
925
925
|
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
926
|
-
|
|
926
|
+
b(
|
|
927
927
|
e.space,
|
|
928
928
|
"ESPACE COMMUN",
|
|
929
929
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -954,7 +954,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
954
954
|
s && s(a);
|
|
955
955
|
}
|
|
956
956
|
};
|
|
957
|
-
|
|
957
|
+
u(c, o);
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
}
|
|
@@ -962,7 +962,7 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
962
962
|
return new Promise((i) => {
|
|
963
963
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
964
964
|
const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
965
|
-
|
|
965
|
+
b(
|
|
966
966
|
e.space,
|
|
967
967
|
"ESPACE COMMUN",
|
|
968
968
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -999,7 +999,7 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
999
999
|
s && s(a);
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
|
|
1002
|
+
u(c, o);
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
@@ -1007,7 +1007,7 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
1007
1007
|
return new Promise((c) => {
|
|
1008
1008
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1009
1009
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1010
|
-
|
|
1010
|
+
b(
|
|
1011
1011
|
e.space,
|
|
1012
1012
|
"ESPACE COMMUN",
|
|
1013
1013
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1044,7 +1044,7 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
1044
1044
|
i && i(r);
|
|
1045
1045
|
}
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1047
|
+
u(o, a);
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
1050
|
}
|
|
@@ -1076,7 +1076,7 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1076
1076
|
uri: "/resources/bps/cspaces",
|
|
1077
1077
|
optTenant: `tenant=${e.tenant}`
|
|
1078
1078
|
}, i = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1079
|
-
|
|
1079
|
+
u(i, {
|
|
1080
1080
|
method: "GET",
|
|
1081
1081
|
headers: {
|
|
1082
1082
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1096,7 +1096,7 @@ function xe(e, t, n, s) {
|
|
|
1096
1096
|
e.space,
|
|
1097
1097
|
t,
|
|
1098
1098
|
(i) => {
|
|
1099
|
-
|
|
1099
|
+
u(i, {
|
|
1100
1100
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1101
1101
|
onComplete: (c) => {
|
|
1102
1102
|
n && n(c);
|
|
@@ -1111,7 +1111,7 @@ function xe(e, t, n, s) {
|
|
|
1111
1111
|
async function Pe(e, t, n = void 0, s = void 0) {
|
|
1112
1112
|
return new Promise((i) => {
|
|
1113
1113
|
$(e, t, (c) => {
|
|
1114
|
-
|
|
1114
|
+
u(c, {
|
|
1115
1115
|
onComplete: (o, a, r) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, r), i),
|
|
1116
1116
|
onFailure: (o, a, r) => {
|
|
1117
1117
|
s && s(o, a, r), console.log(o, a?.errormsg);
|
|
@@ -1245,15 +1245,15 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
]
|
|
1247
1247
|
};
|
|
1248
|
-
|
|
1248
|
+
u(l, {
|
|
1249
1249
|
method: "PUT",
|
|
1250
1250
|
headers: {
|
|
1251
1251
|
"Content-Type": "application/json",
|
|
1252
1252
|
Accept: "application/json"
|
|
1253
1253
|
},
|
|
1254
1254
|
data: JSON.stringify(p),
|
|
1255
|
-
onComplete(
|
|
1256
|
-
JSON.parse(
|
|
1255
|
+
onComplete(f) {
|
|
1256
|
+
JSON.parse(f);
|
|
1257
1257
|
const m = {};
|
|
1258
1258
|
setTimeout(() => {
|
|
1259
1259
|
X(
|
|
@@ -1279,8 +1279,8 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1279
1279
|
);
|
|
1280
1280
|
}, 2e3);
|
|
1281
1281
|
},
|
|
1282
|
-
onFailure(
|
|
1283
|
-
const g =
|
|
1282
|
+
onFailure(f, m) {
|
|
1283
|
+
const g = f;
|
|
1284
1284
|
g.msg = m.errormsg, g.errCode = m.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
|
|
1285
1285
|
}
|
|
1286
1286
|
});
|
|
@@ -1354,7 +1354,7 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
1357
|
-
console.log("dataPattern => ", d),
|
|
1357
|
+
console.log("dataPattern => ", d), u(o, {
|
|
1358
1358
|
method: "POST",
|
|
1359
1359
|
headers: a,
|
|
1360
1360
|
data: JSON.stringify(d),
|
|
@@ -1363,8 +1363,8 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1363
1363
|
n(p);
|
|
1364
1364
|
},
|
|
1365
1365
|
onFailure(l, p) {
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1366
|
+
const f = l;
|
|
1367
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", l);
|
|
1368
1368
|
}
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
@@ -1388,7 +1388,7 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
]
|
|
1390
1390
|
};
|
|
1391
|
-
|
|
1391
|
+
u(r, {
|
|
1392
1392
|
method: "DELETE",
|
|
1393
1393
|
data: JSON.stringify(d),
|
|
1394
1394
|
headers: {
|
|
@@ -1399,8 +1399,8 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1399
1399
|
n && n(l);
|
|
1400
1400
|
},
|
|
1401
1401
|
onFailure(l, p) {
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1402
|
+
const f = l;
|
|
1403
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
|
|
1404
1404
|
}
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
@@ -1414,7 +1414,7 @@ function Xe(e, t = "", n = void 0, s = void 0) {
|
|
|
1414
1414
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1415
1415
|
Accept: "application/json,text/javascript,*/*"
|
|
1416
1416
|
}, a = `${i}${c.uri}`, r = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
|
|
1417
|
-
|
|
1417
|
+
u(a, {
|
|
1418
1418
|
method: "POST",
|
|
1419
1419
|
headers: o,
|
|
1420
1420
|
data: r,
|
|
@@ -1429,7 +1429,7 @@ function Xe(e, t = "", n = void 0, s = void 0) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
async function w(e, t = void 0, n = void 0) {
|
|
1431
1431
|
const s = e.space + "/api/index/tk";
|
|
1432
|
-
return
|
|
1432
|
+
return u(s, {
|
|
1433
1433
|
onComplete(i, c, o) {
|
|
1434
1434
|
const a = JSON.parse(i);
|
|
1435
1435
|
if (t)
|
|
@@ -1452,7 +1452,7 @@ function Ve(e, t = void 0, n = void 0) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
};
|
|
1454
1454
|
w(e, (c) => {
|
|
1455
|
-
|
|
1455
|
+
u(s, {
|
|
1456
1456
|
method: "POST",
|
|
1457
1457
|
headers: {
|
|
1458
1458
|
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
@@ -1481,7 +1481,7 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
};
|
|
1483
1483
|
w(e, (c) => {
|
|
1484
|
-
|
|
1484
|
+
u(s, {
|
|
1485
1485
|
method: "POST",
|
|
1486
1486
|
headers: {
|
|
1487
1487
|
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
@@ -1508,14 +1508,14 @@ function Be(e, t = void 0, n = void 0) {
|
|
|
1508
1508
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1509
1509
|
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, c = [];
|
|
1510
1510
|
w(e, (o) => {
|
|
1511
|
-
|
|
1511
|
+
u(i, {
|
|
1512
1512
|
method: "GET",
|
|
1513
1513
|
headers: {
|
|
1514
1514
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1515
1515
|
},
|
|
1516
1516
|
onComplete(a, r, d) {
|
|
1517
1517
|
const p = JSON.parse(a).result;
|
|
1518
|
-
let
|
|
1518
|
+
let f = 0;
|
|
1519
1519
|
p.forEach((m) => {
|
|
1520
1520
|
const g = {
|
|
1521
1521
|
description: m.description,
|
|
@@ -1529,7 +1529,7 @@ function Be(e, t = void 0, n = void 0) {
|
|
|
1529
1529
|
e,
|
|
1530
1530
|
m.id,
|
|
1531
1531
|
(h) => {
|
|
1532
|
-
|
|
1532
|
+
f++, g.members = h, c.push(g), f === p.length && t && t(c);
|
|
1533
1533
|
},
|
|
1534
1534
|
(h) => n(h)
|
|
1535
1535
|
);
|
|
@@ -1551,7 +1551,7 @@ function ee(e, t, n, s) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
1553
|
w(e, (o) => {
|
|
1554
|
-
|
|
1554
|
+
u(i, {
|
|
1555
1555
|
method: "POST",
|
|
1556
1556
|
headers: {
|
|
1557
1557
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1575,7 +1575,7 @@ function Ye(e, t = void 0, n = void 0) {
|
|
|
1575
1575
|
e.commu_id || (e.commu_id = s);
|
|
1576
1576
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1577
1577
|
w(e, (c) => {
|
|
1578
|
-
|
|
1578
|
+
u(i, {
|
|
1579
1579
|
method: "GET",
|
|
1580
1580
|
headers: {
|
|
1581
1581
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1615,7 +1615,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
), d === !1 && setTimeout(() => {
|
|
1617
1617
|
d === !1 && w(e, (l) => {
|
|
1618
|
-
|
|
1618
|
+
u(o, {
|
|
1619
1619
|
method: "POST",
|
|
1620
1620
|
headers: {
|
|
1621
1621
|
"Content-Type": "application/json",
|
|
@@ -1624,13 +1624,13 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1624
1624
|
},
|
|
1625
1625
|
data: JSON.stringify(a),
|
|
1626
1626
|
type: "json",
|
|
1627
|
-
onComplete(p,
|
|
1627
|
+
onComplete(p, f, m) {
|
|
1628
1628
|
const g = p;
|
|
1629
1629
|
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), r.id_msg = g.result.id, D(e, r);
|
|
1630
1630
|
},
|
|
1631
|
-
onFailure(p,
|
|
1631
|
+
onFailure(p, f, m) {
|
|
1632
1632
|
const g = p;
|
|
1633
|
-
g.msg =
|
|
1633
|
+
g.msg = f.errormsg, g.status = f.status, s && s(g);
|
|
1634
1634
|
}
|
|
1635
1635
|
});
|
|
1636
1636
|
});
|
|
@@ -1639,7 +1639,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1639
1639
|
function te(e, t, n, s) {
|
|
1640
1640
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1641
1641
|
w(e, (c) => {
|
|
1642
|
-
|
|
1642
|
+
u(i, {
|
|
1643
1643
|
method: "GET",
|
|
1644
1644
|
headers: {
|
|
1645
1645
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1648,13 +1648,13 @@ function te(e, t, n, s) {
|
|
|
1648
1648
|
onComplete(o) {
|
|
1649
1649
|
const a = JSON.parse(o), r = [];
|
|
1650
1650
|
a.result.forEach((p) => {
|
|
1651
|
-
p.users = p.users.sort((
|
|
1651
|
+
p.users = p.users.sort((f, m) => f.login.localeCompare(m.login)), p.users.length === t.length && r.push(p);
|
|
1652
1652
|
});
|
|
1653
1653
|
const d = t.sort(), l = r.find((p) => {
|
|
1654
|
-
const
|
|
1654
|
+
const f = [];
|
|
1655
1655
|
return p.users.forEach((m) => {
|
|
1656
|
-
|
|
1657
|
-
}), JSON.stringify(
|
|
1656
|
+
f.push(m.login);
|
|
1657
|
+
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1658
1658
|
});
|
|
1659
1659
|
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1660
1660
|
},
|
|
@@ -1682,7 +1682,7 @@ function D(e, t, n = void 0, s = void 0) {
|
|
|
1682
1682
|
richMessage: t.msg
|
|
1683
1683
|
};
|
|
1684
1684
|
console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
|
|
1685
|
-
|
|
1685
|
+
u(c, {
|
|
1686
1686
|
method: "POST",
|
|
1687
1687
|
headers: {
|
|
1688
1688
|
"Content-Type": "application/json",
|
|
@@ -1742,16 +1742,16 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1742
1742
|
Accept: "application/json",
|
|
1743
1743
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1744
1744
|
};
|
|
1745
|
-
|
|
1745
|
+
u(i, {
|
|
1746
1746
|
method: "POST",
|
|
1747
1747
|
headers: d,
|
|
1748
1748
|
data: JSON.stringify(a),
|
|
1749
1749
|
type: "json",
|
|
1750
|
-
onComplete(l, p,
|
|
1750
|
+
onComplete(l, p, f) {
|
|
1751
1751
|
const m = JSON.parse(l);
|
|
1752
|
-
m.status =
|
|
1752
|
+
m.status = f.status, m.response = f.response, n && n(m);
|
|
1753
1753
|
},
|
|
1754
|
-
onFailure(l, p,
|
|
1754
|
+
onFailure(l, p, f) {
|
|
1755
1755
|
const m = l;
|
|
1756
1756
|
m.status = p.status, m.response = p.errormsg, s && s(m);
|
|
1757
1757
|
}
|
|
@@ -1766,7 +1766,7 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
1768
|
w(e, (o) => {
|
|
1769
|
-
|
|
1769
|
+
u(i, {
|
|
1770
1770
|
method: "POST",
|
|
1771
1771
|
headers: {
|
|
1772
1772
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1794,7 +1794,7 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
1796
|
w(e, (a) => {
|
|
1797
|
-
|
|
1797
|
+
u(c, {
|
|
1798
1798
|
method: "POST",
|
|
1799
1799
|
headers: {
|
|
1800
1800
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1821,7 +1821,7 @@ function Ze(e, t = se, n = void 0, s = void 0) {
|
|
|
1821
1821
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1822
1822
|
}, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1823
1823
|
w(e, (o) => {
|
|
1824
|
-
|
|
1824
|
+
u(c, {
|
|
1825
1825
|
method: "GET",
|
|
1826
1826
|
headers: {
|
|
1827
1827
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
@@ -1915,7 +1915,7 @@ function ae(e) {
|
|
|
1915
1915
|
function et(e, t = void 0, n = void 0) {
|
|
1916
1916
|
const s = e.space + "/api/user/getcurrent/";
|
|
1917
1917
|
w(e, (i) => {
|
|
1918
|
-
|
|
1918
|
+
u(s, {
|
|
1919
1919
|
method: "GET",
|
|
1920
1920
|
headers: {
|
|
1921
1921
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
@@ -1936,7 +1936,7 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1936
1936
|
w(
|
|
1937
1937
|
e,
|
|
1938
1938
|
(c) => {
|
|
1939
|
-
|
|
1939
|
+
u(i, {
|
|
1940
1940
|
method: "GET",
|
|
1941
1941
|
headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
|
|
1942
1942
|
onComplete(o, a, r) {
|
|
@@ -1957,32 +1957,27 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1957
1957
|
const i = s.services.find((r) => r.id === "3dpassport")?.url;
|
|
1958
1958
|
s.services.find((r) => r.id === "3dcompass")?.url;
|
|
1959
1959
|
const c = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2", o = `${i}/login?action=get_auth_params`, a = `${i}/login/?service=${c}/auth/cas`;
|
|
1960
|
-
|
|
1960
|
+
u(o, {
|
|
1961
1961
|
onComplete(r) {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
p ? f(p, {
|
|
1962
|
+
r.lt, u(a, {
|
|
1963
|
+
onComplete(d) {
|
|
1964
|
+
console.log("response", d);
|
|
1965
|
+
const l = typeof d == "string" ? JSON.parse(d)?.x3ds_service_redirect_url : d?.x3ds_service_redirect_url;
|
|
1966
|
+
`${i}/login/?service=${l}` ? u(l, {
|
|
1968
1967
|
method: "POST",
|
|
1969
1968
|
headers: {
|
|
1970
|
-
ENO_CSRF_TOKEN: e.token,
|
|
1971
1969
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
1972
1970
|
},
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
}),
|
|
1976
|
-
onComplete(u) {
|
|
1977
|
-
t && t(u);
|
|
1971
|
+
onComplete(p) {
|
|
1972
|
+
t && t(p);
|
|
1978
1973
|
},
|
|
1979
|
-
onFailure(
|
|
1980
|
-
n && n(
|
|
1974
|
+
onFailure(p) {
|
|
1975
|
+
n && n(p);
|
|
1981
1976
|
}
|
|
1982
1977
|
}) : n && n("x3ds_service_redirect_url is undefined");
|
|
1983
1978
|
},
|
|
1984
|
-
onFailure(
|
|
1985
|
-
n && n(
|
|
1979
|
+
onFailure(d) {
|
|
1980
|
+
n && n(d);
|
|
1986
1981
|
}
|
|
1987
1982
|
});
|
|
1988
1983
|
}
|
|
@@ -1999,7 +1994,7 @@ function at(e, t = void 0, n = void 0) {
|
|
|
1999
1994
|
const o = J();
|
|
2000
1995
|
console.log("platformeInfo", o);
|
|
2001
1996
|
}
|
|
2002
|
-
|
|
1997
|
+
b(
|
|
2003
1998
|
e,
|
|
2004
1999
|
"Common space",
|
|
2005
2000
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2010,14 +2005,14 @@ function at(e, t = void 0, n = void 0) {
|
|
|
2010
2005
|
},
|
|
2011
2006
|
!0
|
|
2012
2007
|
);
|
|
2013
|
-
const i =
|
|
2014
|
-
|
|
2008
|
+
const i = N.now().ts, c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2009
|
+
u(c, {
|
|
2015
2010
|
onComplete(o) {
|
|
2016
2011
|
if (Array.isArray(JSON.parse(o))) {
|
|
2017
2012
|
const a = JSON.parse(o);
|
|
2018
2013
|
console.log("serviceId=3dsearch", a);
|
|
2019
2014
|
const r = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2020
|
-
|
|
2015
|
+
u(r, {
|
|
2021
2016
|
method: "POST",
|
|
2022
2017
|
headers: {
|
|
2023
2018
|
Accept: "application/json",
|
|
@@ -2086,7 +2081,7 @@ export {
|
|
|
2086
2081
|
v as _3DSpace_get_csrf,
|
|
2087
2082
|
X as _3DSpace_get_docInfo,
|
|
2088
2083
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2089
|
-
|
|
2084
|
+
b as _3DSpace_get_securityContexts,
|
|
2090
2085
|
$ as _3DSpace_get_ticket,
|
|
2091
2086
|
je as _3DSpace_lifecycle_changeRevision,
|
|
2092
2087
|
Ae as _3DSpace_lifecycle_changeState,
|
|
@@ -2115,7 +2110,7 @@ export {
|
|
|
2115
2110
|
ge as _getPlatformServices,
|
|
2116
2111
|
E as _getServiceUrl,
|
|
2117
2112
|
he as _getServiceUrl_3DPassport,
|
|
2118
|
-
|
|
2113
|
+
u as _httpCallAuthenticated,
|
|
2119
2114
|
ue as _setDraggable,
|
|
2120
2115
|
me as _setDroppable,
|
|
2121
2116
|
fe as _setupTagger,
|
|
@@ -2139,8 +2134,8 @@ export {
|
|
|
2139
2134
|
Te as getUserGroupsList,
|
|
2140
2135
|
G as getUsersGroupRules,
|
|
2141
2136
|
Le as get_3DSpace_csrf,
|
|
2142
|
-
|
|
2143
|
-
|
|
2137
|
+
be as patchUserGroups,
|
|
2138
|
+
Ne as patchUserGroupsControl,
|
|
2144
2139
|
Me as pushDataIn3DSpace,
|
|
2145
2140
|
ve as readUserGroupControl,
|
|
2146
2141
|
Ke as removeTagToDoc,
|