@beam3_dev/api_module 0.0.155 → 0.0.156
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 +117 -121
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +2 -2
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -89,7 +89,7 @@ async function ge(e, t = G) {
|
|
|
89
89
|
} : s;
|
|
90
90
|
for (let c of a)
|
|
91
91
|
i.events.findIndex(
|
|
92
|
-
(
|
|
92
|
+
(l) => l.start === v.fromISO(c.date).toISODate() && l.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && i.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
95
|
start: v.fromISO(c.date).toISODate(),
|
|
@@ -212,9 +212,9 @@ function Te(e, t, n) {
|
|
|
212
212
|
Accept: "application/json"
|
|
213
213
|
},
|
|
214
214
|
onComplete(r, o, i) {
|
|
215
|
-
const c = JSON.parse(r), d = c.data.map((
|
|
216
|
-
const
|
|
217
|
-
return { name:
|
|
215
|
+
const c = JSON.parse(r), d = c.data.map((l) => {
|
|
216
|
+
const p = l.attributes.name, f = l.id;
|
|
217
|
+
return { name: p, id: f };
|
|
218
218
|
});
|
|
219
219
|
t && t(d, c);
|
|
220
220
|
},
|
|
@@ -276,10 +276,10 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
278
278
|
},
|
|
279
|
-
onFailure(d,
|
|
279
|
+
onFailure(d, l) {
|
|
280
280
|
console.log(d);
|
|
281
|
-
const
|
|
282
|
-
|
|
281
|
+
const p = d;
|
|
282
|
+
p.msg = l.errormsg, p.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
@@ -309,12 +309,12 @@ function V(e, t = void 0, n = void 0) {
|
|
|
309
309
|
}, d = `${r}${o}${i}`;
|
|
310
310
|
m(d, {
|
|
311
311
|
OPTsH: c,
|
|
312
|
-
onComplete(
|
|
313
|
-
t && t(JSON.parse(
|
|
312
|
+
onComplete(l) {
|
|
313
|
+
t && t(JSON.parse(l));
|
|
314
314
|
},
|
|
315
|
-
onFailure(
|
|
316
|
-
const f =
|
|
317
|
-
f.msg =
|
|
315
|
+
onFailure(l, p) {
|
|
316
|
+
const f = l;
|
|
317
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -326,8 +326,8 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
326
326
|
try {
|
|
327
327
|
m(i, {
|
|
328
328
|
opts: d,
|
|
329
|
-
onComplete(
|
|
330
|
-
const
|
|
329
|
+
onComplete(l) {
|
|
330
|
+
const p = JSON.parse(l), f = {}, u = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (a && Object.keys(a).length > 0) {
|
|
332
332
|
const g = u.filter((y) => y.owner === a.email), h = u.filter((y) => y.members.includes(a.email)), S = g.concat(h);
|
|
333
333
|
f.iam = S, f.UG = u, f.iamMember = h, V(
|
|
@@ -341,12 +341,12 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
|
-
onFailure(
|
|
345
|
-
n && n(
|
|
344
|
+
onFailure(l) {
|
|
345
|
+
n && n(l);
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
} catch (
|
|
349
|
-
console.log(
|
|
348
|
+
} catch (l) {
|
|
349
|
+
console.log(l);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
function $e(e, t) {
|
|
@@ -364,17 +364,17 @@ function Ae(e, t, n, s = void 0, a = void 0) {
|
|
|
364
364
|
nexURImem: "/members",
|
|
365
365
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
|
-
}, c = n, d = `${r}${i.URIUGr}/${t}`,
|
|
367
|
+
}, c = n, d = `${r}${i.URIUGr}/${t}`, l = JSON.stringify(c);
|
|
368
368
|
m(d, {
|
|
369
369
|
headers: U,
|
|
370
370
|
method: "PATCH",
|
|
371
|
-
data:
|
|
371
|
+
data: l,
|
|
372
372
|
type: "json",
|
|
373
|
-
onComplete(
|
|
374
|
-
s && s(
|
|
373
|
+
onComplete(p) {
|
|
374
|
+
s && s(p);
|
|
375
375
|
},
|
|
376
|
-
onFailure(
|
|
377
|
-
a && a(
|
|
376
|
+
onFailure(p) {
|
|
377
|
+
a && a(p);
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
@@ -440,8 +440,8 @@ var X = function(e, t, n, s) {
|
|
|
440
440
|
var i = e.length;
|
|
441
441
|
o > 0 && i > o && (i = o);
|
|
442
442
|
for (var c = 0; c < i; ++c) {
|
|
443
|
-
var d = e[c].replace(r, "%20"),
|
|
444
|
-
|
|
443
|
+
var d = e[c].replace(r, "%20"), l = d.indexOf(n), p, f, u, g;
|
|
444
|
+
l >= 0 ? (p = d.substr(0, l), f = d.substr(l + 1)) : (p = d, f = ""), u = decodeURIComponent(p), g = decodeURIComponent(f), B(a, u) ? Array.isArray(a[u]) ? a[u].push(g) : a[u] = [a[u], g] : a[u] = g;
|
|
445
445
|
}
|
|
446
446
|
return a;
|
|
447
447
|
}, N = function(e) {
|
|
@@ -498,8 +498,8 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
498
498
|
},
|
|
499
499
|
data: o,
|
|
500
500
|
onComplete(i, c, d) {
|
|
501
|
-
const
|
|
502
|
-
n && n(
|
|
501
|
+
const l = JSON.parse(i);
|
|
502
|
+
n && n(l);
|
|
503
503
|
},
|
|
504
504
|
onFailure(i) {
|
|
505
505
|
s && s(i);
|
|
@@ -558,9 +558,9 @@ function F(e, t = void 0, n = void 0) {
|
|
|
558
558
|
headers: {
|
|
559
559
|
ENO_CSRF_TOKEN: e.token
|
|
560
560
|
},
|
|
561
|
-
onComplete(r) {
|
|
562
|
-
const
|
|
563
|
-
t && t(
|
|
561
|
+
onComplete(r, o) {
|
|
562
|
+
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
563
|
+
t && t(c, o);
|
|
564
564
|
},
|
|
565
565
|
onFailure(r, o) {
|
|
566
566
|
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
@@ -620,7 +620,7 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
|
620
620
|
headers: {
|
|
621
621
|
ENO_CSRF_TOKEN: r
|
|
622
622
|
},
|
|
623
|
-
onComplete(d,
|
|
623
|
+
onComplete(d, l, p) {
|
|
624
624
|
const f = JSON.parse(d).data[0].dataelements, u = new FormData();
|
|
625
625
|
u.append("__fcs__jobTicket", f.ticket), u.append("file_0", s, a);
|
|
626
626
|
const g = {};
|
|
@@ -665,9 +665,9 @@ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
667
|
async function Re(e, t, n, s, a = void 0, r = void 0) {
|
|
668
|
-
const o = e.space, i = e.token, c = e.ctx, d = new FormData(),
|
|
668
|
+
const o = e.space, i = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
669
669
|
type: "text/plain"
|
|
670
|
-
}),
|
|
670
|
+
}), p = {
|
|
671
671
|
url_Ticket: `${o}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
672
672
|
url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${c}`
|
|
673
673
|
};
|
|
@@ -675,14 +675,14 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
|
|
|
675
675
|
console.log("le store._3DSpace est vide");
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
m(
|
|
678
|
+
m(p.url_Ticket, {
|
|
679
679
|
method: "PUT",
|
|
680
680
|
headers: {
|
|
681
681
|
ENO_CSRF_TOKEN: i.value
|
|
682
682
|
},
|
|
683
683
|
onComplete(f, u, g) {
|
|
684
684
|
const h = JSON.parse(f).data[0].dataelements;
|
|
685
|
-
d.append("__fcs__jobTicket", h.ticket), d.append("filename",
|
|
685
|
+
d.append("__fcs__jobTicket", h.ticket), d.append("filename", l, n);
|
|
686
686
|
const S = {
|
|
687
687
|
method: "POST",
|
|
688
688
|
data: d,
|
|
@@ -719,7 +719,7 @@ async function Re(e, t, n, s, a = void 0, r = void 0) {
|
|
|
719
719
|
onComplete: y,
|
|
720
720
|
onFailure: _
|
|
721
721
|
};
|
|
722
|
-
c !== "" && m(
|
|
722
|
+
c !== "" && m(p.url_Post, k);
|
|
723
723
|
} else
|
|
724
724
|
console.warn("le store est vide");
|
|
725
725
|
},
|
|
@@ -742,11 +742,11 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
|
|
|
742
742
|
method: "GET",
|
|
743
743
|
onComplete(c) {
|
|
744
744
|
const d = JSON.parse(c);
|
|
745
|
-
let
|
|
745
|
+
let l = "", p, f, u;
|
|
746
746
|
if (t) {
|
|
747
747
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
748
748
|
if (g) {
|
|
749
|
-
|
|
749
|
+
p = t;
|
|
750
750
|
let h = g.couples;
|
|
751
751
|
h = h.filter(
|
|
752
752
|
(S, y, _) => y === _.findIndex(
|
|
@@ -775,7 +775,7 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
|
|
|
775
775
|
}));
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
p && f && u ? (l = u + "." + f + "." + p, a(l)) : d.preferredcredentials && o ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(l)) : r && (l = u + "." + f + "." + p, r(l));
|
|
779
779
|
},
|
|
780
780
|
onFailure(c, d) {
|
|
781
781
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -803,28 +803,24 @@ async function x(e, t = void 0, n = void 0) {
|
|
|
803
803
|
e,
|
|
804
804
|
(r) => {
|
|
805
805
|
m(r, {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
Accept: "application/json"
|
|
809
|
-
},
|
|
810
|
-
onComplete(i) {
|
|
811
|
-
let c;
|
|
806
|
+
onComplete(o) {
|
|
807
|
+
let i;
|
|
812
808
|
try {
|
|
813
|
-
|
|
809
|
+
i = JSON.parse(o);
|
|
814
810
|
} catch {
|
|
815
|
-
|
|
811
|
+
i = o;
|
|
816
812
|
}
|
|
817
|
-
t && typeof t == "function" && t(
|
|
813
|
+
t && typeof t == "function" && t(i), s(i);
|
|
818
814
|
},
|
|
819
|
-
onFailure(i, c
|
|
820
|
-
n && (console.log("error http",
|
|
821
|
-
msg: JSON.parse(
|
|
822
|
-
headers:
|
|
823
|
-
xhr:
|
|
815
|
+
onFailure(o, i, c) {
|
|
816
|
+
n && (console.log("error http", o), n({
|
|
817
|
+
msg: JSON.parse(o),
|
|
818
|
+
headers: i,
|
|
819
|
+
xhr: c
|
|
824
820
|
}), a({
|
|
825
|
-
msg: JSON.parse(
|
|
826
|
-
headers:
|
|
827
|
-
xhr:
|
|
821
|
+
msg: JSON.parse(o),
|
|
822
|
+
headers: i,
|
|
823
|
+
xhr: c
|
|
828
824
|
}));
|
|
829
825
|
}
|
|
830
826
|
});
|
|
@@ -883,21 +879,21 @@ function Z(e, t, n = void 0, s = void 0, a = void 0) {
|
|
|
883
879
|
type: "json",
|
|
884
880
|
onComplete(c) {
|
|
885
881
|
const d = c.data;
|
|
886
|
-
c.success === !0 && (n && n(), d.forEach((
|
|
882
|
+
c.success === !0 && (n && n(), d.forEach((l) => {
|
|
887
883
|
try {
|
|
888
|
-
const
|
|
884
|
+
const p = l.dataelements.fileName, f = l.dataelements.ticketURL;
|
|
889
885
|
m(f, {
|
|
890
886
|
onComplete: (u, g) => {
|
|
891
887
|
let h;
|
|
892
888
|
try {
|
|
893
889
|
h = JSON.parse(u);
|
|
894
890
|
} catch {
|
|
895
|
-
h = u;
|
|
891
|
+
h = u.blob();
|
|
896
892
|
}
|
|
897
893
|
s && s({
|
|
898
|
-
objectId:
|
|
894
|
+
objectId: l.id,
|
|
899
895
|
headers: g,
|
|
900
|
-
fileName:
|
|
896
|
+
fileName: p,
|
|
901
897
|
data: h
|
|
902
898
|
});
|
|
903
899
|
},
|
|
@@ -905,8 +901,8 @@ function Z(e, t, n = void 0, s = void 0, a = void 0) {
|
|
|
905
901
|
console.log("error http", u);
|
|
906
902
|
}
|
|
907
903
|
});
|
|
908
|
-
} catch (
|
|
909
|
-
console.log(
|
|
904
|
+
} catch (p) {
|
|
905
|
+
console.log(p), a && a(p);
|
|
910
906
|
}
|
|
911
907
|
}));
|
|
912
908
|
},
|
|
@@ -1136,7 +1132,7 @@ function Je(e, t, n, s, a = void 0, r = void 0) {
|
|
|
1136
1132
|
items: []
|
|
1137
1133
|
};
|
|
1138
1134
|
t && (d.parentId = t), d.items.push(c);
|
|
1139
|
-
let
|
|
1135
|
+
let l = {
|
|
1140
1136
|
method: "POST",
|
|
1141
1137
|
headers: {
|
|
1142
1138
|
Accept: "application/json",
|
|
@@ -1146,14 +1142,14 @@ function Je(e, t, n, s, a = void 0, r = void 0) {
|
|
|
1146
1142
|
},
|
|
1147
1143
|
data: JSON.stringify(d),
|
|
1148
1144
|
type: "json",
|
|
1149
|
-
onComplete(
|
|
1150
|
-
a && a(
|
|
1145
|
+
onComplete(p) {
|
|
1146
|
+
a && a(p);
|
|
1151
1147
|
},
|
|
1152
|
-
onFailure(
|
|
1153
|
-
r && r(
|
|
1148
|
+
onFailure(p) {
|
|
1149
|
+
r && r(p);
|
|
1154
1150
|
}
|
|
1155
1151
|
};
|
|
1156
|
-
m(i,
|
|
1152
|
+
m(i, l);
|
|
1157
1153
|
});
|
|
1158
1154
|
}
|
|
1159
1155
|
function Ee(e, t, n, s, a = void 0, r = void 0) {
|
|
@@ -1338,7 +1334,7 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1338
1334
|
uri: "/resources/6w/tags",
|
|
1339
1335
|
otpCTX: "SecurityContext=preferred",
|
|
1340
1336
|
optTenant: `tenant=${r}`
|
|
1341
|
-
},
|
|
1337
|
+
}, l = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1342
1338
|
tag: [
|
|
1343
1339
|
{
|
|
1344
1340
|
subject: [
|
|
@@ -1353,13 +1349,13 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1353
1349
|
}
|
|
1354
1350
|
]
|
|
1355
1351
|
};
|
|
1356
|
-
m(
|
|
1352
|
+
m(l, {
|
|
1357
1353
|
method: "PUT",
|
|
1358
1354
|
headers: {
|
|
1359
1355
|
"Content-Type": "application/json",
|
|
1360
1356
|
Accept: "application/json"
|
|
1361
1357
|
},
|
|
1362
|
-
data: JSON.stringify(
|
|
1358
|
+
data: JSON.stringify(p),
|
|
1363
1359
|
onComplete(f) {
|
|
1364
1360
|
JSON.parse(f);
|
|
1365
1361
|
const u = {};
|
|
@@ -1466,13 +1462,13 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1466
1462
|
method: "POST",
|
|
1467
1463
|
headers: i,
|
|
1468
1464
|
data: JSON.stringify(d),
|
|
1469
|
-
onComplete(
|
|
1470
|
-
const
|
|
1471
|
-
n(
|
|
1465
|
+
onComplete(l) {
|
|
1466
|
+
const p = JSON.parse(l);
|
|
1467
|
+
n(p);
|
|
1472
1468
|
},
|
|
1473
|
-
onFailure(
|
|
1474
|
-
const f =
|
|
1475
|
-
f.msg =
|
|
1469
|
+
onFailure(l, p) {
|
|
1470
|
+
const f = l;
|
|
1471
|
+
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);
|
|
1476
1472
|
}
|
|
1477
1473
|
});
|
|
1478
1474
|
}
|
|
@@ -1503,12 +1499,12 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1503
1499
|
"Content-Type": "application/json",
|
|
1504
1500
|
Accept: "application/json,text/javascript,*/*"
|
|
1505
1501
|
},
|
|
1506
|
-
onComplete(
|
|
1507
|
-
n && n(
|
|
1502
|
+
onComplete(l) {
|
|
1503
|
+
n && n(l);
|
|
1508
1504
|
},
|
|
1509
|
-
onFailure(
|
|
1510
|
-
const f =
|
|
1511
|
-
f.msg =
|
|
1505
|
+
onFailure(l, p) {
|
|
1506
|
+
const f = l;
|
|
1507
|
+
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
|
|
1512
1508
|
}
|
|
1513
1509
|
});
|
|
1514
1510
|
}
|
|
@@ -1529,9 +1525,9 @@ function qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1529
1525
|
onComplete(d) {
|
|
1530
1526
|
n && n(JSON.parse(d));
|
|
1531
1527
|
},
|
|
1532
|
-
onFailure(d,
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1528
|
+
onFailure(d, l) {
|
|
1529
|
+
const p = d;
|
|
1530
|
+
p.msg = l.error, s && s(p);
|
|
1535
1531
|
}
|
|
1536
1532
|
});
|
|
1537
1533
|
}
|
|
@@ -1622,9 +1618,9 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1622
1618
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1623
1619
|
},
|
|
1624
1620
|
onComplete(i, c, d) {
|
|
1625
|
-
const
|
|
1621
|
+
const p = JSON.parse(i).result;
|
|
1626
1622
|
let f = 0;
|
|
1627
|
-
|
|
1623
|
+
p.forEach((u) => {
|
|
1628
1624
|
const g = {
|
|
1629
1625
|
description: u.description,
|
|
1630
1626
|
id: u.id,
|
|
@@ -1637,7 +1633,7 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1637
1633
|
e,
|
|
1638
1634
|
u.id,
|
|
1639
1635
|
(h) => {
|
|
1640
|
-
f++, g.members = h, r.push(g), f ===
|
|
1636
|
+
f++, g.members = h, r.push(g), f === p.length && t && t(r);
|
|
1641
1637
|
},
|
|
1642
1638
|
(h) => n(h)
|
|
1643
1639
|
);
|
|
@@ -1715,29 +1711,29 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1715
1711
|
let d = !1;
|
|
1716
1712
|
oe(
|
|
1717
1713
|
i.users,
|
|
1718
|
-
(
|
|
1719
|
-
|
|
1714
|
+
(l) => {
|
|
1715
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, R(e, c));
|
|
1720
1716
|
},
|
|
1721
|
-
(
|
|
1722
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback",
|
|
1717
|
+
(l) => {
|
|
1718
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
1723
1719
|
}
|
|
1724
1720
|
), d === !1 && setTimeout(() => {
|
|
1725
|
-
d === !1 && w(e, (
|
|
1721
|
+
d === !1 && w(e, (l) => {
|
|
1726
1722
|
m(o, {
|
|
1727
1723
|
method: "POST",
|
|
1728
1724
|
headers: {
|
|
1729
1725
|
"Content-Type": "application/json",
|
|
1730
1726
|
Accept: "application/json",
|
|
1731
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1727
|
+
"X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
|
|
1732
1728
|
},
|
|
1733
1729
|
data: JSON.stringify(i),
|
|
1734
1730
|
type: "json",
|
|
1735
|
-
onComplete(
|
|
1736
|
-
const g =
|
|
1731
|
+
onComplete(p, f, u) {
|
|
1732
|
+
const g = p;
|
|
1737
1733
|
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, R(e, c);
|
|
1738
1734
|
},
|
|
1739
|
-
onFailure(
|
|
1740
|
-
const g =
|
|
1735
|
+
onFailure(p, f, u) {
|
|
1736
|
+
const g = p;
|
|
1741
1737
|
g.msg = f.errormsg, g.status = f.status, s && s(g);
|
|
1742
1738
|
}
|
|
1743
1739
|
});
|
|
@@ -1755,16 +1751,16 @@ function oe(e, t, n, s) {
|
|
|
1755
1751
|
},
|
|
1756
1752
|
onComplete(o) {
|
|
1757
1753
|
const i = JSON.parse(o), c = [];
|
|
1758
|
-
i.result.forEach((
|
|
1759
|
-
|
|
1754
|
+
i.result.forEach((p) => {
|
|
1755
|
+
p.users = p.users.sort((f, u) => f.login.localeCompare(u.login)), p.users.length === t.length && c.push(p);
|
|
1760
1756
|
});
|
|
1761
|
-
const d = t.sort(),
|
|
1757
|
+
const d = t.sort(), l = c.find((p) => {
|
|
1762
1758
|
const f = [];
|
|
1763
|
-
return
|
|
1759
|
+
return p.users.forEach((u) => {
|
|
1764
1760
|
f.push(u.login);
|
|
1765
1761
|
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1766
1762
|
});
|
|
1767
|
-
n &&
|
|
1763
|
+
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1768
1764
|
},
|
|
1769
1765
|
onFailure(o) {
|
|
1770
1766
|
const i = o;
|
|
@@ -1799,13 +1795,13 @@ function R(e, t, n = void 0, s = void 0) {
|
|
|
1799
1795
|
},
|
|
1800
1796
|
data: JSON.stringify(o),
|
|
1801
1797
|
type: "json",
|
|
1802
|
-
onComplete(c, d,
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1798
|
+
onComplete(c, d, l) {
|
|
1799
|
+
const p = c;
|
|
1800
|
+
p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
|
|
1805
1801
|
},
|
|
1806
1802
|
onFailure(c, d) {
|
|
1807
|
-
const
|
|
1808
|
-
|
|
1803
|
+
const l = c;
|
|
1804
|
+
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
|
|
1809
1805
|
}
|
|
1810
1806
|
});
|
|
1811
1807
|
});
|
|
@@ -1855,13 +1851,13 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1855
1851
|
headers: d,
|
|
1856
1852
|
data: JSON.stringify(i),
|
|
1857
1853
|
type: "json",
|
|
1858
|
-
onComplete(
|
|
1859
|
-
const u = JSON.parse(
|
|
1854
|
+
onComplete(l, p, f) {
|
|
1855
|
+
const u = JSON.parse(l);
|
|
1860
1856
|
u.status = f.status, u.response = f.response, n && n(u);
|
|
1861
1857
|
},
|
|
1862
|
-
onFailure(
|
|
1863
|
-
const u =
|
|
1864
|
-
u.status =
|
|
1858
|
+
onFailure(l, p, f) {
|
|
1859
|
+
const u = l;
|
|
1860
|
+
u.status = p.status, u.response = p.errormsg, s && s(u);
|
|
1865
1861
|
}
|
|
1866
1862
|
});
|
|
1867
1863
|
});
|
|
@@ -1887,8 +1883,8 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1887
1883
|
n && n(i);
|
|
1888
1884
|
},
|
|
1889
1885
|
onFailure(i, c, d) {
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1886
|
+
const l = i;
|
|
1887
|
+
l.status = c.status, l.response = c.errormsg, s && s(l);
|
|
1892
1888
|
}
|
|
1893
1889
|
});
|
|
1894
1890
|
});
|
|
@@ -2066,7 +2062,7 @@ function dt(e, t = void 0, n = void 0) {
|
|
|
2066
2062
|
t && t(a);
|
|
2067
2063
|
});
|
|
2068
2064
|
}
|
|
2069
|
-
function
|
|
2065
|
+
function lt(e, t = void 0, n = void 0) {
|
|
2070
2066
|
e.tenant && $(e, (s) => {
|
|
2071
2067
|
console.log("serviceUrls", s);
|
|
2072
2068
|
const a = s.services.find((i) => i.id === "3dpassport")?.url, r = s.services.find((i) => i.id === "businessprocess")?.url + "/api/v2", o = `${a}/login/?service=${r}/auth/cas`;
|
|
@@ -2086,7 +2082,7 @@ function pt(e, t = void 0, n = void 0) {
|
|
|
2086
2082
|
});
|
|
2087
2083
|
});
|
|
2088
2084
|
}
|
|
2089
|
-
async function
|
|
2085
|
+
async function pt(e, t, n = void 0, s = void 0) {
|
|
2090
2086
|
e.tenant && $(e, (a) => {
|
|
2091
2087
|
const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
|
|
2092
2088
|
fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
|
|
@@ -2248,8 +2244,8 @@ export {
|
|
|
2248
2244
|
R as _3DSwym_sendMessageData,
|
|
2249
2245
|
be as _AppMngt_get_info_user,
|
|
2250
2246
|
Oe as _AppMngt_get_users,
|
|
2251
|
-
|
|
2252
|
-
|
|
2247
|
+
lt as _Iterop_Auth_CAS,
|
|
2248
|
+
pt as _Iterop_ListUsers,
|
|
2253
2249
|
ut as _Iterop_getAllBusinessTables,
|
|
2254
2250
|
ft as _Iterop_runProcess,
|
|
2255
2251
|
K as _getPlateformInfos,
|