@beam3_dev/api_module 0.0.154 → 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 +122 -125
- 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,29 +879,30 @@ 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
|
-
onComplete: (u) => {
|
|
891
|
-
let
|
|
886
|
+
onComplete: (u, g) => {
|
|
887
|
+
let h;
|
|
892
888
|
try {
|
|
893
|
-
|
|
889
|
+
h = JSON.parse(u);
|
|
894
890
|
} catch {
|
|
895
|
-
|
|
891
|
+
h = u.blob();
|
|
896
892
|
}
|
|
897
893
|
s && s({
|
|
898
|
-
objectId:
|
|
899
|
-
|
|
900
|
-
|
|
894
|
+
objectId: l.id,
|
|
895
|
+
headers: g,
|
|
896
|
+
fileName: p,
|
|
897
|
+
data: h
|
|
901
898
|
});
|
|
902
899
|
},
|
|
903
900
|
onFailure: (u) => {
|
|
904
901
|
console.log("error http", u);
|
|
905
902
|
}
|
|
906
903
|
});
|
|
907
|
-
} catch (
|
|
908
|
-
console.log(
|
|
904
|
+
} catch (p) {
|
|
905
|
+
console.log(p), a && a(p);
|
|
909
906
|
}
|
|
910
907
|
}));
|
|
911
908
|
},
|
|
@@ -1135,7 +1132,7 @@ function Je(e, t, n, s, a = void 0, r = void 0) {
|
|
|
1135
1132
|
items: []
|
|
1136
1133
|
};
|
|
1137
1134
|
t && (d.parentId = t), d.items.push(c);
|
|
1138
|
-
let
|
|
1135
|
+
let l = {
|
|
1139
1136
|
method: "POST",
|
|
1140
1137
|
headers: {
|
|
1141
1138
|
Accept: "application/json",
|
|
@@ -1145,14 +1142,14 @@ function Je(e, t, n, s, a = void 0, r = void 0) {
|
|
|
1145
1142
|
},
|
|
1146
1143
|
data: JSON.stringify(d),
|
|
1147
1144
|
type: "json",
|
|
1148
|
-
onComplete(
|
|
1149
|
-
a && a(
|
|
1145
|
+
onComplete(p) {
|
|
1146
|
+
a && a(p);
|
|
1150
1147
|
},
|
|
1151
|
-
onFailure(
|
|
1152
|
-
r && r(
|
|
1148
|
+
onFailure(p) {
|
|
1149
|
+
r && r(p);
|
|
1153
1150
|
}
|
|
1154
1151
|
};
|
|
1155
|
-
m(i,
|
|
1152
|
+
m(i, l);
|
|
1156
1153
|
});
|
|
1157
1154
|
}
|
|
1158
1155
|
function Ee(e, t, n, s, a = void 0, r = void 0) {
|
|
@@ -1337,7 +1334,7 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1337
1334
|
uri: "/resources/6w/tags",
|
|
1338
1335
|
otpCTX: "SecurityContext=preferred",
|
|
1339
1336
|
optTenant: `tenant=${r}`
|
|
1340
|
-
},
|
|
1337
|
+
}, l = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1341
1338
|
tag: [
|
|
1342
1339
|
{
|
|
1343
1340
|
subject: [
|
|
@@ -1352,13 +1349,13 @@ function He(e, t, n = void 0, s = void 0) {
|
|
|
1352
1349
|
}
|
|
1353
1350
|
]
|
|
1354
1351
|
};
|
|
1355
|
-
m(
|
|
1352
|
+
m(l, {
|
|
1356
1353
|
method: "PUT",
|
|
1357
1354
|
headers: {
|
|
1358
1355
|
"Content-Type": "application/json",
|
|
1359
1356
|
Accept: "application/json"
|
|
1360
1357
|
},
|
|
1361
|
-
data: JSON.stringify(
|
|
1358
|
+
data: JSON.stringify(p),
|
|
1362
1359
|
onComplete(f) {
|
|
1363
1360
|
JSON.parse(f);
|
|
1364
1361
|
const u = {};
|
|
@@ -1465,13 +1462,13 @@ function ie(e, t, n = void 0, s = void 0) {
|
|
|
1465
1462
|
method: "POST",
|
|
1466
1463
|
headers: i,
|
|
1467
1464
|
data: JSON.stringify(d),
|
|
1468
|
-
onComplete(
|
|
1469
|
-
const
|
|
1470
|
-
n(
|
|
1465
|
+
onComplete(l) {
|
|
1466
|
+
const p = JSON.parse(l);
|
|
1467
|
+
n(p);
|
|
1471
1468
|
},
|
|
1472
|
-
onFailure(
|
|
1473
|
-
const f =
|
|
1474
|
-
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);
|
|
1475
1472
|
}
|
|
1476
1473
|
});
|
|
1477
1474
|
}
|
|
@@ -1502,12 +1499,12 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1502
1499
|
"Content-Type": "application/json",
|
|
1503
1500
|
Accept: "application/json,text/javascript,*/*"
|
|
1504
1501
|
},
|
|
1505
|
-
onComplete(
|
|
1506
|
-
n && n(
|
|
1502
|
+
onComplete(l) {
|
|
1503
|
+
n && n(l);
|
|
1507
1504
|
},
|
|
1508
|
-
onFailure(
|
|
1509
|
-
const f =
|
|
1510
|
-
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);
|
|
1511
1508
|
}
|
|
1512
1509
|
});
|
|
1513
1510
|
}
|
|
@@ -1528,9 +1525,9 @@ function qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1528
1525
|
onComplete(d) {
|
|
1529
1526
|
n && n(JSON.parse(d));
|
|
1530
1527
|
},
|
|
1531
|
-
onFailure(d,
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1528
|
+
onFailure(d, l) {
|
|
1529
|
+
const p = d;
|
|
1530
|
+
p.msg = l.error, s && s(p);
|
|
1534
1531
|
}
|
|
1535
1532
|
});
|
|
1536
1533
|
}
|
|
@@ -1621,9 +1618,9 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1621
1618
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1622
1619
|
},
|
|
1623
1620
|
onComplete(i, c, d) {
|
|
1624
|
-
const
|
|
1621
|
+
const p = JSON.parse(i).result;
|
|
1625
1622
|
let f = 0;
|
|
1626
|
-
|
|
1623
|
+
p.forEach((u) => {
|
|
1627
1624
|
const g = {
|
|
1628
1625
|
description: u.description,
|
|
1629
1626
|
id: u.id,
|
|
@@ -1636,7 +1633,7 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1636
1633
|
e,
|
|
1637
1634
|
u.id,
|
|
1638
1635
|
(h) => {
|
|
1639
|
-
f++, g.members = h, r.push(g), f ===
|
|
1636
|
+
f++, g.members = h, r.push(g), f === p.length && t && t(r);
|
|
1640
1637
|
},
|
|
1641
1638
|
(h) => n(h)
|
|
1642
1639
|
);
|
|
@@ -1714,29 +1711,29 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1714
1711
|
let d = !1;
|
|
1715
1712
|
oe(
|
|
1716
1713
|
i.users,
|
|
1717
|
-
(
|
|
1718
|
-
|
|
1714
|
+
(l) => {
|
|
1715
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, R(e, c));
|
|
1719
1716
|
},
|
|
1720
|
-
(
|
|
1721
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback",
|
|
1717
|
+
(l) => {
|
|
1718
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
1722
1719
|
}
|
|
1723
1720
|
), d === !1 && setTimeout(() => {
|
|
1724
|
-
d === !1 && w(e, (
|
|
1721
|
+
d === !1 && w(e, (l) => {
|
|
1725
1722
|
m(o, {
|
|
1726
1723
|
method: "POST",
|
|
1727
1724
|
headers: {
|
|
1728
1725
|
"Content-Type": "application/json",
|
|
1729
1726
|
Accept: "application/json",
|
|
1730
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1727
|
+
"X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
|
|
1731
1728
|
},
|
|
1732
1729
|
data: JSON.stringify(i),
|
|
1733
1730
|
type: "json",
|
|
1734
|
-
onComplete(
|
|
1735
|
-
const g =
|
|
1731
|
+
onComplete(p, f, u) {
|
|
1732
|
+
const g = p;
|
|
1736
1733
|
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, R(e, c);
|
|
1737
1734
|
},
|
|
1738
|
-
onFailure(
|
|
1739
|
-
const g =
|
|
1735
|
+
onFailure(p, f, u) {
|
|
1736
|
+
const g = p;
|
|
1740
1737
|
g.msg = f.errormsg, g.status = f.status, s && s(g);
|
|
1741
1738
|
}
|
|
1742
1739
|
});
|
|
@@ -1754,16 +1751,16 @@ function oe(e, t, n, s) {
|
|
|
1754
1751
|
},
|
|
1755
1752
|
onComplete(o) {
|
|
1756
1753
|
const i = JSON.parse(o), c = [];
|
|
1757
|
-
i.result.forEach((
|
|
1758
|
-
|
|
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);
|
|
1759
1756
|
});
|
|
1760
|
-
const d = t.sort(),
|
|
1757
|
+
const d = t.sort(), l = c.find((p) => {
|
|
1761
1758
|
const f = [];
|
|
1762
|
-
return
|
|
1759
|
+
return p.users.forEach((u) => {
|
|
1763
1760
|
f.push(u.login);
|
|
1764
1761
|
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1765
1762
|
});
|
|
1766
|
-
n &&
|
|
1763
|
+
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1767
1764
|
},
|
|
1768
1765
|
onFailure(o) {
|
|
1769
1766
|
const i = o;
|
|
@@ -1798,13 +1795,13 @@ function R(e, t, n = void 0, s = void 0) {
|
|
|
1798
1795
|
},
|
|
1799
1796
|
data: JSON.stringify(o),
|
|
1800
1797
|
type: "json",
|
|
1801
|
-
onComplete(c, d,
|
|
1802
|
-
const
|
|
1803
|
-
|
|
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);
|
|
1804
1801
|
},
|
|
1805
1802
|
onFailure(c, d) {
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1803
|
+
const l = c;
|
|
1804
|
+
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
|
|
1808
1805
|
}
|
|
1809
1806
|
});
|
|
1810
1807
|
});
|
|
@@ -1854,13 +1851,13 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1854
1851
|
headers: d,
|
|
1855
1852
|
data: JSON.stringify(i),
|
|
1856
1853
|
type: "json",
|
|
1857
|
-
onComplete(
|
|
1858
|
-
const u = JSON.parse(
|
|
1854
|
+
onComplete(l, p, f) {
|
|
1855
|
+
const u = JSON.parse(l);
|
|
1859
1856
|
u.status = f.status, u.response = f.response, n && n(u);
|
|
1860
1857
|
},
|
|
1861
|
-
onFailure(
|
|
1862
|
-
const u =
|
|
1863
|
-
u.status =
|
|
1858
|
+
onFailure(l, p, f) {
|
|
1859
|
+
const u = l;
|
|
1860
|
+
u.status = p.status, u.response = p.errormsg, s && s(u);
|
|
1864
1861
|
}
|
|
1865
1862
|
});
|
|
1866
1863
|
});
|
|
@@ -1886,8 +1883,8 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1886
1883
|
n && n(i);
|
|
1887
1884
|
},
|
|
1888
1885
|
onFailure(i, c, d) {
|
|
1889
|
-
const
|
|
1890
|
-
|
|
1886
|
+
const l = i;
|
|
1887
|
+
l.status = c.status, l.response = c.errormsg, s && s(l);
|
|
1891
1888
|
}
|
|
1892
1889
|
});
|
|
1893
1890
|
});
|
|
@@ -2065,7 +2062,7 @@ function dt(e, t = void 0, n = void 0) {
|
|
|
2065
2062
|
t && t(a);
|
|
2066
2063
|
});
|
|
2067
2064
|
}
|
|
2068
|
-
function
|
|
2065
|
+
function lt(e, t = void 0, n = void 0) {
|
|
2069
2066
|
e.tenant && $(e, (s) => {
|
|
2070
2067
|
console.log("serviceUrls", s);
|
|
2071
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`;
|
|
@@ -2085,7 +2082,7 @@ function pt(e, t = void 0, n = void 0) {
|
|
|
2085
2082
|
});
|
|
2086
2083
|
});
|
|
2087
2084
|
}
|
|
2088
|
-
async function
|
|
2085
|
+
async function pt(e, t, n = void 0, s = void 0) {
|
|
2089
2086
|
e.tenant && $(e, (a) => {
|
|
2090
2087
|
const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
|
|
2091
2088
|
fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
|
|
@@ -2247,8 +2244,8 @@ export {
|
|
|
2247
2244
|
R as _3DSwym_sendMessageData,
|
|
2248
2245
|
be as _AppMngt_get_info_user,
|
|
2249
2246
|
Oe as _AppMngt_get_users,
|
|
2250
|
-
|
|
2251
|
-
|
|
2247
|
+
lt as _Iterop_Auth_CAS,
|
|
2248
|
+
pt as _Iterop_ListUsers,
|
|
2252
2249
|
ut as _Iterop_getAllBusinessTables,
|
|
2253
2250
|
ft as _Iterop_runProcess,
|
|
2254
2251
|
K as _getPlateformInfos,
|