@beam3_dev/api_module 0.0.187 → 0.0.189
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 +143 -130
- 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
|
@@ -104,7 +104,7 @@ async function Se(e, t, s = !0) {
|
|
|
104
104
|
const n = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
105
|
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function m(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (s) => {
|
|
109
109
|
s.authenticatedRequest(e, t);
|
|
110
110
|
});
|
|
@@ -164,7 +164,7 @@ function W() {
|
|
|
164
164
|
function C(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, {
|
|
168
168
|
onComplete(i) {
|
|
169
169
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
170
|
if (r && "platforms" in r) {
|
|
@@ -184,7 +184,7 @@ function C(e, t = void 0, s = void 0) {
|
|
|
184
184
|
function Te(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, {
|
|
188
188
|
onComplete(i) {
|
|
189
189
|
const r = JSON.parse(i);
|
|
190
190
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
@@ -205,7 +205,7 @@ function be(e, t, s) {
|
|
|
205
205
|
option: `?filter=${e.tenant}`
|
|
206
206
|
// facultatif
|
|
207
207
|
}, i = `${n.base}${n.uri}${n.option}`;
|
|
208
|
-
|
|
208
|
+
m(i, {
|
|
209
209
|
method: "GET",
|
|
210
210
|
headers: {
|
|
211
211
|
"Content-Type": "application/json",
|
|
@@ -213,8 +213,8 @@ function be(e, t, s) {
|
|
|
213
213
|
},
|
|
214
214
|
onComplete(r, o, a) {
|
|
215
215
|
const c = JSON.parse(r), d = c.data.map((p) => {
|
|
216
|
-
const u = p.attributes.name,
|
|
217
|
-
return { name: u, id:
|
|
216
|
+
const u = p.attributes.name, f = p.id;
|
|
217
|
+
return { name: u, id: f };
|
|
218
218
|
});
|
|
219
219
|
t && t(d, c);
|
|
220
220
|
},
|
|
@@ -226,7 +226,7 @@ function be(e, t, s) {
|
|
|
226
226
|
}
|
|
227
227
|
function Oe(e, t = void 0, s = void 0) {
|
|
228
228
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
|
-
|
|
229
|
+
m(n, {
|
|
230
230
|
onComplete(i, r, o) {
|
|
231
231
|
const a = JSON.parse(i);
|
|
232
232
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
@@ -239,7 +239,7 @@ function Oe(e, t = void 0, s = void 0) {
|
|
|
239
239
|
}
|
|
240
240
|
function $e(e, t, s = void 0, n = void 0) {
|
|
241
241
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
|
-
|
|
242
|
+
m(i, {
|
|
243
243
|
onComplete(r, o, a) {
|
|
244
244
|
const c = JSON.parse(r);
|
|
245
245
|
s && s(c);
|
|
@@ -250,7 +250,7 @@ function $e(e, t, s = void 0, n = 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
|
};
|
|
@@ -269,9 +269,9 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
269
269
|
}
|
|
270
270
|
]
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
m(a, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
274
|
+
headers: k,
|
|
275
275
|
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
s && s(JSON.parse(d));
|
|
@@ -285,7 +285,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
285
285
|
}
|
|
286
286
|
function ve(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: {
|
|
290
290
|
method: "GET",
|
|
291
291
|
headers: {
|
|
@@ -293,11 +293,11 @@ function ve(e, t, s = void 0, n = void 0) {
|
|
|
293
293
|
Accept: "application/json,text/javascript,*/*"
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
|
-
onComplete(
|
|
297
|
-
s && s(JSON.parse(
|
|
296
|
+
onComplete(f) {
|
|
297
|
+
s && s(JSON.parse(f));
|
|
298
298
|
},
|
|
299
|
-
onFailure(
|
|
300
|
-
const g =
|
|
299
|
+
onFailure(f, l) {
|
|
300
|
+
const g = f;
|
|
301
301
|
g.msg = l.errormsg, g.errCode = l.errorcode, n && n(g);
|
|
302
302
|
}
|
|
303
303
|
});
|
|
@@ -307,14 +307,14 @@ function X(e, t = void 0, s = void 0) {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
309
309
|
}, d = `${r}${o}${a}`;
|
|
310
|
-
|
|
310
|
+
m(d, {
|
|
311
311
|
OPTsH: c,
|
|
312
312
|
onComplete(p) {
|
|
313
313
|
t && t(JSON.parse(p));
|
|
314
314
|
},
|
|
315
315
|
onFailure(p, u) {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const f = p;
|
|
317
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, s && s(f);
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -324,16 +324,16 @@ function Ie(e, t = void 0, s = void 0) {
|
|
|
324
324
|
Accept: "application/json,text/javascript,*/*"
|
|
325
325
|
} };
|
|
326
326
|
try {
|
|
327
|
-
|
|
327
|
+
m(a, {
|
|
328
328
|
opts: d,
|
|
329
329
|
onComplete(p) {
|
|
330
|
-
const u = JSON.parse(p),
|
|
330
|
+
const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (i && Object.keys(i).length > 0) {
|
|
332
332
|
const g = l.filter((y) => y.owner === i.email), h = l.filter((y) => y.members.includes(i.email)), S = g.concat(h);
|
|
333
|
-
|
|
333
|
+
f.iam = S, f.UG = l, f.iamMember = h, X(
|
|
334
334
|
e,
|
|
335
335
|
(y) => {
|
|
336
|
-
|
|
336
|
+
f.rules = y, t && t(f);
|
|
337
337
|
},
|
|
338
338
|
(y) => {
|
|
339
339
|
s && s(y);
|
|
@@ -351,7 +351,7 @@ function Ie(e, t = void 0, s = void 0) {
|
|
|
351
351
|
}
|
|
352
352
|
function Ae(e, t) {
|
|
353
353
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
|
-
|
|
354
|
+
m(i, {
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
@@ -365,8 +365,8 @@ function Ue(e, t, s, n = void 0, i = void 0) {
|
|
|
365
365
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
368
|
-
|
|
369
|
-
headers:
|
|
368
|
+
m(d, {
|
|
369
|
+
headers: k,
|
|
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: k,
|
|
386
386
|
data: JSON.stringify(s),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -393,9 +393,9 @@ function ke(e, t, s, n = void 0, i = void 0) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function ke(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: {
|
|
400
400
|
method: "GET",
|
|
401
401
|
headers: {
|
|
@@ -414,7 +414,7 @@ function Fe(e, t, s = void 0, n = void 0) {
|
|
|
414
414
|
async function Y(e, t, s) {
|
|
415
415
|
if (e.space) {
|
|
416
416
|
const n = `${e.space}/resources/v1/application/CSRF`;
|
|
417
|
-
|
|
417
|
+
m(n, {
|
|
418
418
|
onComplete(i) {
|
|
419
419
|
i = JSON.parse(i), t && t(i.csrf);
|
|
420
420
|
},
|
|
@@ -440,8 +440,8 @@ var z = function(e, t, s, n) {
|
|
|
440
440
|
var a = e.length;
|
|
441
441
|
o > 0 && a > o && (a = o);
|
|
442
442
|
for (var c = 0; c < a; ++c) {
|
|
443
|
-
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u,
|
|
444
|
-
p >= 0 ? (u = d.substr(0, p),
|
|
443
|
+
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
|
|
444
|
+
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), q(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
445
445
|
}
|
|
446
446
|
return i;
|
|
447
447
|
}, v = function(e) {
|
|
@@ -472,7 +472,7 @@ async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
474
|
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
475
|
-
|
|
475
|
+
m(r, {
|
|
476
476
|
onComplete(o, a, c) {
|
|
477
477
|
const d = JSON.parse(o);
|
|
478
478
|
s && s(d);
|
|
@@ -491,7 +491,7 @@ async function je(e, t = void 0, s = void 0, n = void 0) {
|
|
|
491
491
|
let r = `${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(r, {
|
|
495
495
|
method: "POST",
|
|
496
496
|
headers: {
|
|
497
497
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -509,7 +509,7 @@ async function je(e, t = void 0, s = void 0, n = void 0) {
|
|
|
509
509
|
function U(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, {
|
|
513
513
|
onComplete(i, r, o) {
|
|
514
514
|
const a = JSON.parse(i);
|
|
515
515
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
@@ -532,7 +532,7 @@ function U(e, t = void 0, s = void 0) {
|
|
|
532
532
|
function b(e, t = void 0, s = void 0) {
|
|
533
533
|
if (e.space) {
|
|
534
534
|
const n = e.space + "/resources/v1/application/CSRF";
|
|
535
|
-
|
|
535
|
+
m(n, {
|
|
536
536
|
onComplete(i, r, o) {
|
|
537
537
|
const a = JSON.parse(i);
|
|
538
538
|
t && t(a.csrf.value);
|
|
@@ -553,7 +553,7 @@ function j(e, t = void 0, s = void 0) {
|
|
|
553
553
|
U(
|
|
554
554
|
e,
|
|
555
555
|
(i) => {
|
|
556
|
-
|
|
556
|
+
m(n, {
|
|
557
557
|
method: "PUT",
|
|
558
558
|
headers: {
|
|
559
559
|
ENO_CSRF_TOKEN: e.token
|
|
@@ -574,7 +574,7 @@ function j(e, t = void 0, s = void 0) {
|
|
|
574
574
|
}
|
|
575
575
|
function Pe(e, t, s, n = void 0, i = void 0) {
|
|
576
576
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
|
-
s || (s = e.token),
|
|
577
|
+
s || (s = e.token), m(r, {
|
|
578
578
|
method: "PUT",
|
|
579
579
|
headers: {
|
|
580
580
|
ENO_CSRF_TOKEN: s
|
|
@@ -615,13 +615,13 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
615
615
|
}
|
|
616
616
|
function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
617
617
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
|
-
|
|
618
|
+
m(c, {
|
|
619
619
|
method: "PUT",
|
|
620
620
|
headers: {
|
|
621
621
|
ENO_CSRF_TOKEN: e.token
|
|
622
622
|
},
|
|
623
623
|
onComplete(d, p, u) {
|
|
624
|
-
const
|
|
624
|
+
const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
625
625
|
let h;
|
|
626
626
|
n instanceof Blob ? h = n : h = new Blob([n], {
|
|
627
627
|
type: "text/plain"
|
|
@@ -634,7 +634,7 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
634
634
|
SecurityContext: "ctx::" + e.ctx
|
|
635
635
|
},
|
|
636
636
|
data: JSON.stringify({
|
|
637
|
-
csrf:
|
|
637
|
+
csrf: f,
|
|
638
638
|
data: [
|
|
639
639
|
{
|
|
640
640
|
relateddata: {
|
|
@@ -663,13 +663,13 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
663
663
|
a && a(N);
|
|
664
664
|
}
|
|
665
665
|
}, T = e.tenant.toUpperCase();
|
|
666
|
-
|
|
666
|
+
m(
|
|
667
667
|
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${T}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
668
668
|
_
|
|
669
669
|
);
|
|
670
670
|
}, S.onFailure = function(y) {
|
|
671
671
|
a && a(y);
|
|
672
|
-
}, S.timeout = 0,
|
|
672
|
+
}, S.timeout = 0, m(l.ticketURL, S);
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
675
|
}
|
|
@@ -702,12 +702,12 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
|
|
|
702
702
|
const o = e.space, a = e.token, c = e.ctx;
|
|
703
703
|
if (o !== "") {
|
|
704
704
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
705
|
-
|
|
705
|
+
m(d, {
|
|
706
706
|
method: "PUT",
|
|
707
707
|
headers: {
|
|
708
708
|
ENO_CSRF_TOKEN: a
|
|
709
709
|
},
|
|
710
|
-
onComplete(p, u,
|
|
710
|
+
onComplete(p, u, f) {
|
|
711
711
|
let l = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
|
|
712
712
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
713
713
|
type: "text/plain"
|
|
@@ -748,14 +748,14 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
|
|
|
748
748
|
]
|
|
749
749
|
}),
|
|
750
750
|
type: "json",
|
|
751
|
-
onComplete(
|
|
752
|
-
i && i(
|
|
751
|
+
onComplete(F) {
|
|
752
|
+
i && i(F);
|
|
753
753
|
},
|
|
754
|
-
onFailure(
|
|
755
|
-
r && r(
|
|
754
|
+
onFailure(F) {
|
|
755
|
+
r && r(F);
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
m(
|
|
759
759
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
760
760
|
N
|
|
761
761
|
);
|
|
@@ -765,18 +765,18 @@ async function Re(e, t, s, n, i = void 0, r = void 0) {
|
|
|
765
765
|
},
|
|
766
766
|
timeout: 0
|
|
767
767
|
};
|
|
768
|
-
|
|
768
|
+
m(l.ticketURL, y);
|
|
769
769
|
}
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
function $(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
774
774
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
775
|
-
|
|
775
|
+
m(a, {
|
|
776
776
|
method: "GET",
|
|
777
777
|
onComplete(c) {
|
|
778
778
|
const d = JSON.parse(c);
|
|
779
|
-
let p = "", u,
|
|
779
|
+
let p = "", u, f, l;
|
|
780
780
|
if (t) {
|
|
781
781
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
782
782
|
if (g) {
|
|
@@ -789,27 +789,27 @@ function $(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
789
789
|
), s && (Array.isArray(s) ? s.forEach((S) => {
|
|
790
790
|
l || h.forEach((y) => {
|
|
791
791
|
if (S === y.role.name && n === y.organization.title)
|
|
792
|
-
l = S,
|
|
792
|
+
l = S, f = n;
|
|
793
793
|
else if (S === y.role.name) {
|
|
794
794
|
let _ = h.filter(
|
|
795
795
|
(T) => T.role.name === S
|
|
796
796
|
);
|
|
797
|
-
_.length === 1 ? (l = _[0].role.name,
|
|
797
|
+
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}) : h.forEach((S) => {
|
|
801
801
|
if (s === S.role.name && n === S.organization.title)
|
|
802
|
-
l = s,
|
|
802
|
+
l = s, f = n;
|
|
803
803
|
else if (s === S.role.name) {
|
|
804
804
|
let y = h.filter(
|
|
805
805
|
(_) => _.role.name === s
|
|
806
806
|
);
|
|
807
|
-
y.length === 1 ? (l = y[0].role.name,
|
|
807
|
+
y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
808
808
|
}
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
u &&
|
|
812
|
+
u && f && l ? (p = l + "." + f + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = l + "." + f + "." + u, r(p));
|
|
813
813
|
},
|
|
814
814
|
onFailure(c, d) {
|
|
815
815
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -842,7 +842,7 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
842
842
|
t && t(o);
|
|
843
843
|
}).catch((o) => {
|
|
844
844
|
s && s(o);
|
|
845
|
-
})) :
|
|
845
|
+
})) : m(r, {
|
|
846
846
|
onComplete(o) {
|
|
847
847
|
let a;
|
|
848
848
|
try {
|
|
@@ -913,7 +913,7 @@ function ee(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
913
913
|
data: r
|
|
914
914
|
});
|
|
915
915
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
916
|
-
|
|
916
|
+
m(a, {
|
|
917
917
|
method: "PUT",
|
|
918
918
|
data: o,
|
|
919
919
|
type: "json",
|
|
@@ -921,8 +921,8 @@ function ee(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
921
921
|
const d = c.data;
|
|
922
922
|
c.success === !0 && (s && s(), d.forEach((p) => {
|
|
923
923
|
try {
|
|
924
|
-
const u = p.dataelements.fileName,
|
|
925
|
-
f
|
|
924
|
+
const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
925
|
+
m(f, {
|
|
926
926
|
onComplete: (l, g) => {
|
|
927
927
|
let h;
|
|
928
928
|
try {
|
|
@@ -988,7 +988,7 @@ function De(e, t, s = void 0, n = void 0) {
|
|
|
988
988
|
n && n(a);
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
|
-
|
|
991
|
+
m(r, o);
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
994
|
}
|
|
@@ -1030,7 +1030,7 @@ function Le(e, t, s, n = void 0, i = void 0) {
|
|
|
1030
1030
|
i && i(c);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
|
-
|
|
1033
|
+
m(o, a);
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
@@ -1071,7 +1071,7 @@ function Me(e, t, s = void 0, n = void 0) {
|
|
|
1071
1071
|
n && n(a);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
|
|
1074
|
+
m(r, o);
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
@@ -1118,11 +1118,11 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1118
1118
|
n && n(a);
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
|
|
1121
|
+
m(r, o);
|
|
1122
1122
|
}
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Ee(e, t, s, n = void 0, i = void 0) {
|
|
1126
1126
|
return new Promise((r) => {
|
|
1127
1127
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1128
1128
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1165,11 +1165,11 @@ function Ge(e, t, s, n = void 0, i = void 0) {
|
|
|
1165
1165
|
i && i(c);
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
|
|
1168
|
+
m(o, a);
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Ge(e, t, s, n, i = void 0, r = void 0) {
|
|
1173
1173
|
return new Promise((o) => {
|
|
1174
1174
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1175
1175
|
let c = {
|
|
@@ -1199,7 +1199,7 @@ function Ee(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1199
1199
|
r && r(u);
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
|
-
|
|
1202
|
+
m(a, p);
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
function Ke(e, t, s, n, i = void 0, r = void 0) {
|
|
@@ -1232,7 +1232,7 @@ function Be(e, t = void 0, s = void 0) {
|
|
|
1232
1232
|
uri: "/resources/bps/cspaces",
|
|
1233
1233
|
optTenant: `tenant=${e.tenant}`
|
|
1234
1234
|
}, i = `${n.base}${n.uri}?${n.optTenant}`;
|
|
1235
|
-
|
|
1235
|
+
m(i, {
|
|
1236
1236
|
method: "GET",
|
|
1237
1237
|
headers: {
|
|
1238
1238
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1252,7 +1252,7 @@ function Ve(e, t, s, n) {
|
|
|
1252
1252
|
e.space,
|
|
1253
1253
|
t,
|
|
1254
1254
|
(i) => {
|
|
1255
|
-
|
|
1255
|
+
m(i, {
|
|
1256
1256
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1257
1257
|
onComplete: (r) => {
|
|
1258
1258
|
s && s(r);
|
|
@@ -1267,7 +1267,7 @@ function Ve(e, t, s, n) {
|
|
|
1267
1267
|
async function We(e, t, s = void 0, n = void 0) {
|
|
1268
1268
|
return new Promise((i) => {
|
|
1269
1269
|
j(e, t, (r) => {
|
|
1270
|
-
|
|
1270
|
+
m(r, {
|
|
1271
1271
|
onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
|
|
1272
1272
|
onFailure: (o, a, c) => {
|
|
1273
1273
|
n && n(o, a, c), console.log(o, a?.errormsg);
|
|
@@ -1299,7 +1299,7 @@ function Xe(e, t, s, n = void 0, i = void 0) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
);
|
|
1301
1301
|
}
|
|
1302
|
-
let
|
|
1302
|
+
let E, G;
|
|
1303
1303
|
const P = [];
|
|
1304
1304
|
async function Ye(e, t = void 0, s = void 0) {
|
|
1305
1305
|
e.objID && e.objID !== "" ? U(
|
|
@@ -1343,7 +1343,7 @@ function ze(e, t = void 0, s = void 0) {
|
|
|
1343
1343
|
e,
|
|
1344
1344
|
i.objID,
|
|
1345
1345
|
(o) => {
|
|
1346
|
-
n.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1346
|
+
n.push({ [i.name]: o }), i.name === "dbProjets" && (E = o.affaires.map((a) => a.objectID), te(e, G)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1347
1347
|
}
|
|
1348
1348
|
);
|
|
1349
1349
|
});
|
|
@@ -1351,10 +1351,10 @@ function ze(e, t = void 0, s = void 0) {
|
|
|
1351
1351
|
function te(e, t, s = void 0, n = void 0) {
|
|
1352
1352
|
Z(
|
|
1353
1353
|
e,
|
|
1354
|
-
|
|
1354
|
+
E,
|
|
1355
1355
|
(i) => {
|
|
1356
1356
|
const r = [...t];
|
|
1357
|
-
r.find((o) => o.objectID === i.objectId).data = i.data,
|
|
1357
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, G = r, P.push(i.data), s && s(P);
|
|
1358
1358
|
},
|
|
1359
1359
|
(i) => {
|
|
1360
1360
|
n && (n(i), console.log(i));
|
|
@@ -1401,15 +1401,15 @@ function He(e, t, s = void 0, n = void 0) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
]
|
|
1403
1403
|
};
|
|
1404
|
-
|
|
1404
|
+
m(p, {
|
|
1405
1405
|
method: "PUT",
|
|
1406
1406
|
headers: {
|
|
1407
1407
|
"Content-Type": "application/json",
|
|
1408
1408
|
Accept: "application/json"
|
|
1409
1409
|
},
|
|
1410
1410
|
data: JSON.stringify(u),
|
|
1411
|
-
onComplete(
|
|
1412
|
-
JSON.parse(
|
|
1411
|
+
onComplete(f) {
|
|
1412
|
+
JSON.parse(f);
|
|
1413
1413
|
const l = {};
|
|
1414
1414
|
setTimeout(() => {
|
|
1415
1415
|
L(
|
|
@@ -1435,8 +1435,8 @@ function He(e, t, s = void 0, n = void 0) {
|
|
|
1435
1435
|
);
|
|
1436
1436
|
}, 2e3);
|
|
1437
1437
|
},
|
|
1438
|
-
onFailure(
|
|
1439
|
-
const g =
|
|
1438
|
+
onFailure(f, l) {
|
|
1439
|
+
const g = f;
|
|
1440
1440
|
g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
|
|
1441
1441
|
}
|
|
1442
1442
|
});
|
|
@@ -1510,7 +1510,7 @@ function ae(e, t, s = void 0, n = void 0) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
};
|
|
1513
|
-
console.log("dataPattern => ", d),
|
|
1513
|
+
console.log("dataPattern => ", d), m(o, {
|
|
1514
1514
|
method: "POST",
|
|
1515
1515
|
headers: a,
|
|
1516
1516
|
data: JSON.stringify(d),
|
|
@@ -1519,8 +1519,8 @@ function ae(e, t, s = void 0, n = void 0) {
|
|
|
1519
1519
|
s(u);
|
|
1520
1520
|
},
|
|
1521
1521
|
onFailure(p, u) {
|
|
1522
|
-
const
|
|
1523
|
-
|
|
1522
|
+
const f = p;
|
|
1523
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
@@ -1544,7 +1544,7 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
]
|
|
1546
1546
|
};
|
|
1547
|
-
|
|
1547
|
+
m(c, {
|
|
1548
1548
|
method: "DELETE",
|
|
1549
1549
|
data: JSON.stringify(d),
|
|
1550
1550
|
headers: {
|
|
@@ -1555,8 +1555,8 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1555
1555
|
s && s(p);
|
|
1556
1556
|
},
|
|
1557
1557
|
onFailure(p, u) {
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1558
|
+
const f = p;
|
|
1559
|
+
f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f);
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
@@ -1570,7 +1570,7 @@ function Ze(e, t = "", s = void 0, n = void 0) {
|
|
|
1570
1570
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1571
1571
|
Accept: "application/json,text/javascript,*/*"
|
|
1572
1572
|
}, a = `${i}${r.uri}`, c = `$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}`;
|
|
1573
|
-
|
|
1573
|
+
m(a, {
|
|
1574
1574
|
method: "POST",
|
|
1575
1575
|
headers: o,
|
|
1576
1576
|
data: c,
|
|
@@ -1585,7 +1585,7 @@ function Ze(e, t = "", s = void 0, n = void 0) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
async function w(e, t = void 0, s = void 0) {
|
|
1587
1587
|
const n = e.space + "/api/index/tk";
|
|
1588
|
-
return
|
|
1588
|
+
return m(n, {
|
|
1589
1589
|
onComplete(i, r, o) {
|
|
1590
1590
|
const a = JSON.parse(i);
|
|
1591
1591
|
if (t)
|
|
@@ -1608,7 +1608,7 @@ function et(e, t = void 0, s = void 0) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
1610
|
w(e, (r) => {
|
|
1611
|
-
|
|
1611
|
+
m(n, {
|
|
1612
1612
|
method: "POST",
|
|
1613
1613
|
headers: {
|
|
1614
1614
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1637,7 +1637,7 @@ function tt(e, t = void 0, s = void 0) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
};
|
|
1639
1639
|
w(e, (r) => {
|
|
1640
|
-
|
|
1640
|
+
m(n, {
|
|
1641
1641
|
method: "POST",
|
|
1642
1642
|
headers: {
|
|
1643
1643
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1664,14 +1664,14 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1664
1664
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1665
1665
|
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1666
1666
|
w(e, (o) => {
|
|
1667
|
-
|
|
1667
|
+
m(i, {
|
|
1668
1668
|
method: "GET",
|
|
1669
1669
|
headers: {
|
|
1670
1670
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1671
1671
|
},
|
|
1672
1672
|
onComplete(a, c, d) {
|
|
1673
1673
|
const u = JSON.parse(a).result;
|
|
1674
|
-
let
|
|
1674
|
+
let f = 0;
|
|
1675
1675
|
u.forEach((l) => {
|
|
1676
1676
|
const g = {
|
|
1677
1677
|
description: l.description,
|
|
@@ -1685,7 +1685,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1685
1685
|
e,
|
|
1686
1686
|
l.id,
|
|
1687
1687
|
(h) => {
|
|
1688
|
-
|
|
1688
|
+
f++, g.members = h, r.push(g), f === u.length && t && t(r);
|
|
1689
1689
|
},
|
|
1690
1690
|
(h) => s(h)
|
|
1691
1691
|
);
|
|
@@ -1707,7 +1707,7 @@ function oe(e, t, s, n) {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
};
|
|
1709
1709
|
w(e, (o) => {
|
|
1710
|
-
|
|
1710
|
+
m(i, {
|
|
1711
1711
|
method: "POST",
|
|
1712
1712
|
headers: {
|
|
1713
1713
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1731,7 +1731,7 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1731
1731
|
e.commu_id || (e.commu_id = n);
|
|
1732
1732
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1733
1733
|
w(e, (r) => {
|
|
1734
|
-
|
|
1734
|
+
m(i, {
|
|
1735
1735
|
method: "GET",
|
|
1736
1736
|
headers: {
|
|
1737
1737
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1771,7 +1771,7 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
), d === !1 && setTimeout(() => {
|
|
1773
1773
|
d === !1 && w(e, (p) => {
|
|
1774
|
-
|
|
1774
|
+
m(o, {
|
|
1775
1775
|
method: "POST",
|
|
1776
1776
|
headers: {
|
|
1777
1777
|
"Content-Type": "application/json",
|
|
@@ -1780,13 +1780,13 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1780
1780
|
},
|
|
1781
1781
|
data: JSON.stringify(a),
|
|
1782
1782
|
type: "json",
|
|
1783
|
-
onComplete(u,
|
|
1783
|
+
onComplete(u, f, l) {
|
|
1784
1784
|
const g = u;
|
|
1785
1785
|
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, x(e, c);
|
|
1786
1786
|
},
|
|
1787
|
-
onFailure(u,
|
|
1787
|
+
onFailure(u, f, l) {
|
|
1788
1788
|
const g = u;
|
|
1789
|
-
g.msg =
|
|
1789
|
+
g.msg = f.errormsg, g.status = f.status, n && n(g);
|
|
1790
1790
|
}
|
|
1791
1791
|
});
|
|
1792
1792
|
});
|
|
@@ -1795,7 +1795,7 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1795
1795
|
function re(e, t, s, n) {
|
|
1796
1796
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1797
1797
|
w(e, (r) => {
|
|
1798
|
-
|
|
1798
|
+
m(i, {
|
|
1799
1799
|
method: "GET",
|
|
1800
1800
|
headers: {
|
|
1801
1801
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1804,13 +1804,13 @@ function re(e, t, s, n) {
|
|
|
1804
1804
|
onComplete(o) {
|
|
1805
1805
|
const a = JSON.parse(o), c = [];
|
|
1806
1806
|
a.result.forEach((u) => {
|
|
1807
|
-
u.users = u.users.sort((
|
|
1807
|
+
u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
|
|
1808
1808
|
});
|
|
1809
1809
|
const d = t.sort(), p = c.find((u) => {
|
|
1810
|
-
const
|
|
1810
|
+
const f = [];
|
|
1811
1811
|
return u.users.forEach((l) => {
|
|
1812
|
-
|
|
1813
|
-
}), JSON.stringify(
|
|
1812
|
+
f.push(l.login);
|
|
1813
|
+
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1814
1814
|
});
|
|
1815
1815
|
s && p !== void 0 ? s(p) : (n || p === void 0) && n(p);
|
|
1816
1816
|
},
|
|
@@ -1838,7 +1838,7 @@ function x(e, t, s = void 0, n = void 0) {
|
|
|
1838
1838
|
richMessage: t.msg
|
|
1839
1839
|
};
|
|
1840
1840
|
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1841
|
-
|
|
1841
|
+
m(r, {
|
|
1842
1842
|
method: "POST",
|
|
1843
1843
|
headers: {
|
|
1844
1844
|
"Content-Type": "application/json",
|
|
@@ -1898,16 +1898,16 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1898
1898
|
Accept: "application/json",
|
|
1899
1899
|
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1900
1900
|
};
|
|
1901
|
-
|
|
1901
|
+
m(i, {
|
|
1902
1902
|
method: "POST",
|
|
1903
1903
|
headers: d,
|
|
1904
1904
|
data: JSON.stringify(a),
|
|
1905
1905
|
type: "json",
|
|
1906
|
-
onComplete(p, u,
|
|
1906
|
+
onComplete(p, u, f) {
|
|
1907
1907
|
const l = JSON.parse(p);
|
|
1908
|
-
l.status =
|
|
1908
|
+
l.status = f.status, l.response = f.response, s && s(l);
|
|
1909
1909
|
},
|
|
1910
|
-
onFailure(p, u,
|
|
1910
|
+
onFailure(p, u, f) {
|
|
1911
1911
|
const l = p;
|
|
1912
1912
|
l.status = u.status, l.response = u.errormsg, n && n(l);
|
|
1913
1913
|
}
|
|
@@ -1955,11 +1955,18 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
1957
1957
|
w(e, (o) => {
|
|
1958
|
+
if (o)
|
|
1959
|
+
throw new Error(
|
|
1960
|
+
`☠️ token n'est pas renseigner dans le paramètre credentials ${o}`,
|
|
1961
|
+
{
|
|
1962
|
+
cause: o
|
|
1963
|
+
}
|
|
1964
|
+
);
|
|
1958
1965
|
const a = {
|
|
1959
1966
|
headers: {
|
|
1960
1967
|
"Content-type": "application/json;charset=UTF-8",
|
|
1961
1968
|
Accept: "application/json",
|
|
1962
|
-
"X-DS-SWYM-CSRFTOKEN": o
|
|
1969
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1963
1970
|
},
|
|
1964
1971
|
method: "POST",
|
|
1965
1972
|
data: JSON.stringify(r),
|
|
@@ -1968,10 +1975,16 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1968
1975
|
typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
|
|
1969
1976
|
},
|
|
1970
1977
|
onFailure(c, d, p) {
|
|
1971
|
-
|
|
1978
|
+
const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
|
|
1979
|
+
`Erreur sur cette requête : ${n.base + n.uri}`,
|
|
1980
|
+
{
|
|
1981
|
+
cause: { head: u, rep: f }
|
|
1982
|
+
}
|
|
1983
|
+
);
|
|
1984
|
+
s && s(l);
|
|
1972
1985
|
}
|
|
1973
1986
|
};
|
|
1974
|
-
|
|
1987
|
+
m(n.base + n.uri, a);
|
|
1975
1988
|
});
|
|
1976
1989
|
}
|
|
1977
1990
|
function rt(e, t, s = void 0, n = void 0) {
|
|
@@ -1982,7 +1995,7 @@ function rt(e, t, s = void 0, n = void 0) {
|
|
|
1982
1995
|
}
|
|
1983
1996
|
};
|
|
1984
1997
|
w(e, (o) => {
|
|
1985
|
-
|
|
1998
|
+
m(i, {
|
|
1986
1999
|
method: "POST",
|
|
1987
2000
|
headers: {
|
|
1988
2001
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -2013,7 +2026,7 @@ function ct(e, t = void 0, s = void 0) {
|
|
|
2013
2026
|
}
|
|
2014
2027
|
};
|
|
2015
2028
|
w(e, (r) => {
|
|
2016
|
-
|
|
2029
|
+
m(n, {
|
|
2017
2030
|
method: "POST",
|
|
2018
2031
|
headers: {
|
|
2019
2032
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -2063,7 +2076,7 @@ function dt(e, t, s) {
|
|
|
2063
2076
|
s && s(a);
|
|
2064
2077
|
}
|
|
2065
2078
|
};
|
|
2066
|
-
|
|
2079
|
+
m(n.base + n.uri, o);
|
|
2067
2080
|
});
|
|
2068
2081
|
}
|
|
2069
2082
|
function pt(e, t = de, s = void 0, n = void 0) {
|
|
@@ -2073,7 +2086,7 @@ function pt(e, t = de, s = void 0, n = void 0) {
|
|
|
2073
2086
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
2074
2087
|
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
2075
2088
|
w(e, (o) => {
|
|
2076
|
-
|
|
2089
|
+
m(r, {
|
|
2077
2090
|
method: "GET",
|
|
2078
2091
|
headers: {
|
|
2079
2092
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
@@ -2167,7 +2180,7 @@ function pe(e) {
|
|
|
2167
2180
|
function ut(e, t = void 0, s = void 0) {
|
|
2168
2181
|
const n = e.space + "/api/user/getcurrent/";
|
|
2169
2182
|
w(e, (i) => {
|
|
2170
|
-
|
|
2183
|
+
m(n, {
|
|
2171
2184
|
method: "GET",
|
|
2172
2185
|
headers: {
|
|
2173
2186
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
@@ -2188,7 +2201,7 @@ function lt(e, t, s = void 0, n = void 0) {
|
|
|
2188
2201
|
w(
|
|
2189
2202
|
e,
|
|
2190
2203
|
(r) => {
|
|
2191
|
-
|
|
2204
|
+
m(i, {
|
|
2192
2205
|
method: "GET",
|
|
2193
2206
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2194
2207
|
onComplete(o, a, c) {
|
|
@@ -2214,7 +2227,7 @@ function mt(e, t = void 0, s = void 0) {
|
|
|
2214
2227
|
e.tenant && C(e, (n) => {
|
|
2215
2228
|
console.log("serviceUrls", n);
|
|
2216
2229
|
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`;
|
|
2217
|
-
|
|
2230
|
+
m(o, {
|
|
2218
2231
|
async onComplete(a) {
|
|
2219
2232
|
console.log("response", a);
|
|
2220
2233
|
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
@@ -2392,13 +2405,13 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2392
2405
|
!0
|
|
2393
2406
|
);
|
|
2394
2407
|
const i = I.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2395
|
-
|
|
2408
|
+
m(r, {
|
|
2396
2409
|
onComplete(o) {
|
|
2397
2410
|
if (Array.isArray(JSON.parse(o))) {
|
|
2398
2411
|
const a = JSON.parse(o);
|
|
2399
2412
|
console.log("serviceId=3dsearch", a);
|
|
2400
2413
|
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2401
|
-
|
|
2414
|
+
m(c, {
|
|
2402
2415
|
method: "POST",
|
|
2403
2416
|
headers: {
|
|
2404
2417
|
Accept: "application/json",
|
|
@@ -2459,7 +2472,7 @@ export {
|
|
|
2459
2472
|
Re as _3DSpace_Create_Doc,
|
|
2460
2473
|
xe as _3DSpace_Update_Doc,
|
|
2461
2474
|
Ke as _3DSpace_bookmark_addSubsciptions,
|
|
2462
|
-
|
|
2475
|
+
Ge as _3DSpace_bookmark_newWorkspace,
|
|
2463
2476
|
b as _3DSpace_csrf,
|
|
2464
2477
|
J as _3DSpace_download_doc,
|
|
2465
2478
|
Z as _3DSpace_download_multidoc,
|
|
@@ -2472,7 +2485,7 @@ export {
|
|
|
2472
2485
|
je as _3DSpace_get_multiDocInfo,
|
|
2473
2486
|
$ as _3DSpace_get_securityContexts,
|
|
2474
2487
|
j as _3DSpace_get_ticket,
|
|
2475
|
-
|
|
2488
|
+
Ee as _3DSpace_lifecycle_changeRevision,
|
|
2476
2489
|
Le as _3DSpace_lifecycle_changeState,
|
|
2477
2490
|
Me as _3DSpace_lifecycle_getGraph,
|
|
2478
2491
|
Je as _3DSpace_lifecycle_getNextRevision,
|
|
@@ -2512,7 +2525,7 @@ export {
|
|
|
2512
2525
|
C as _getServiceUrl,
|
|
2513
2526
|
Te as _getServiceUrl_3DPassport,
|
|
2514
2527
|
ft as _getServiceUrl_Iterop,
|
|
2515
|
-
|
|
2528
|
+
m as _httpCallAuthenticated,
|
|
2516
2529
|
ye as _setDraggable,
|
|
2517
2530
|
we as _setDroppable,
|
|
2518
2531
|
_e as _setupTagger,
|
|
@@ -2537,9 +2550,9 @@ export {
|
|
|
2537
2550
|
X as getUsersGroupRules,
|
|
2538
2551
|
Ye as get_3DSpace_csrf,
|
|
2539
2552
|
Ue as patchUserGroups,
|
|
2540
|
-
|
|
2553
|
+
Fe as patchUserGroupsControl,
|
|
2541
2554
|
Xe as pushDataIn3DSpace,
|
|
2542
|
-
|
|
2555
|
+
ke as readUserGroupControl,
|
|
2543
2556
|
Qe as removeTagToDoc,
|
|
2544
2557
|
$t as sayHello,
|
|
2545
2558
|
Se as updateEvent
|