@beam3_dev/api_module 0.0.318 → 0.0.320
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 +46 -46
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +1 -1
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -406,7 +406,7 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
406
406
|
n(l);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Ke(e, t, n) {
|
|
410
410
|
const { base_url: s, lists_uri: i, currentUser: r } = e, o = {
|
|
411
411
|
"Content-Type": "application/json",
|
|
412
412
|
"Accept-Language": "fr"
|
|
@@ -416,7 +416,7 @@ function Ee(e, t, n) {
|
|
|
416
416
|
}, c = a.baseUrl + a.uri, d = {
|
|
417
417
|
method: "POST",
|
|
418
418
|
headers: o,
|
|
419
|
-
|
|
419
|
+
data: JSON.stringify({ groups: i })
|
|
420
420
|
};
|
|
421
421
|
try {
|
|
422
422
|
m(c, {
|
|
@@ -426,14 +426,14 @@ function Ee(e, t, n) {
|
|
|
426
426
|
},
|
|
427
427
|
onFailure(u, p) {
|
|
428
428
|
const f = {
|
|
429
|
-
|
|
429
|
+
error: u,
|
|
430
430
|
msg: p,
|
|
431
431
|
fonction: "getUserGroupsByURIList()",
|
|
432
432
|
catch: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
|
|
433
433
|
cause: u
|
|
434
434
|
})
|
|
435
435
|
};
|
|
436
|
-
n(f);
|
|
436
|
+
n && n(f);
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
} catch (u) {
|
|
@@ -446,16 +446,16 @@ function Ee(e, t, n) {
|
|
|
446
446
|
cause: u
|
|
447
447
|
})
|
|
448
448
|
};
|
|
449
|
-
n(p);
|
|
449
|
+
n && n(p);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Be(e, t) {
|
|
453
453
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
454
454
|
m(i, {
|
|
455
455
|
method: "DELETE"
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ee(e, t, n, s = void 0, i = void 0) {
|
|
459
459
|
const { space: r, tenant: o } = e, a = {
|
|
460
460
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
461
461
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -619,7 +619,7 @@ function N(e, t = void 0, n = void 0) {
|
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
621
|
} else
|
|
622
|
-
|
|
622
|
+
T(
|
|
623
623
|
e,
|
|
624
624
|
(s) => {
|
|
625
625
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, t && t(e);
|
|
@@ -629,7 +629,7 @@ function N(e, t = void 0, n = void 0) {
|
|
|
629
629
|
}
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function T(e, t = void 0, n = void 0) {
|
|
633
633
|
if (e.space) {
|
|
634
634
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
635
635
|
m(s, {
|
|
@@ -847,7 +847,7 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
847
847
|
try {
|
|
848
848
|
if (l = JSON.parse(l), l?.ticket) {
|
|
849
849
|
const { ticket: y, actionurl: S, jobticket: w } = l;
|
|
850
|
-
|
|
850
|
+
K(
|
|
851
851
|
{ dataelements: { ticket: y, ticketURL: S } },
|
|
852
852
|
n,
|
|
853
853
|
t,
|
|
@@ -882,7 +882,7 @@ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
882
882
|
},
|
|
883
883
|
data: v,
|
|
884
884
|
type: "json",
|
|
885
|
-
onComplete(I, Ce,
|
|
885
|
+
onComplete(I, Ce, Te) {
|
|
886
886
|
s && s(I);
|
|
887
887
|
},
|
|
888
888
|
onFailure(I) {
|
|
@@ -949,7 +949,7 @@ async function Qe(e, t, n, s, i = void 0, r = void 0) {
|
|
|
949
949
|
e,
|
|
950
950
|
(o) => {
|
|
951
951
|
o?.items >= 1 && o.data.forEach((a) => {
|
|
952
|
-
|
|
952
|
+
K(
|
|
953
953
|
a,
|
|
954
954
|
t,
|
|
955
955
|
n,
|
|
@@ -1000,7 +1000,7 @@ function ae(e, t = void 0, n = void 0) {
|
|
|
1000
1000
|
} else
|
|
1001
1001
|
console.log("Error de credentials", e);
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function K(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
1004
1004
|
console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: t, fileName: n });
|
|
1005
1005
|
let o = new FormData();
|
|
1006
1006
|
t instanceof Blob || (t = new Blob([t], {
|
|
@@ -1115,7 +1115,7 @@ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
|
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
async function
|
|
1118
|
+
async function B(e, t = void 0, n = void 0) {
|
|
1119
1119
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
1120
1120
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
1121
1121
|
), n && n(
|
|
@@ -1236,7 +1236,7 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
function Ze(e, t, n = void 0, s = void 0) {
|
|
1238
1238
|
return new Promise((i) => {
|
|
1239
|
-
if (e.token === "" &&
|
|
1239
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1240
1240
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1241
1241
|
let o = {
|
|
1242
1242
|
method: "POST",
|
|
@@ -1267,7 +1267,7 @@ function Ze(e, t, n = void 0, s = void 0) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
function et(e, t, n, s = void 0, i = void 0) {
|
|
1269
1269
|
return new Promise((r) => {
|
|
1270
|
-
if (e.token === "" &&
|
|
1270
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1271
1271
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1272
1272
|
let a = {
|
|
1273
1273
|
method: "POST",
|
|
@@ -1299,7 +1299,7 @@ function et(e, t, n, s = void 0, i = void 0) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
function tt(e, t, n = void 0, s = void 0) {
|
|
1301
1301
|
return new Promise((i) => {
|
|
1302
|
-
if (e.token === "" &&
|
|
1302
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1303
1303
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1304
1304
|
R(
|
|
1305
1305
|
e.space,
|
|
@@ -1340,7 +1340,7 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
function nt(e, t, n = void 0, s = void 0) {
|
|
1342
1342
|
return new Promise((i) => {
|
|
1343
|
-
if (e.token === "" &&
|
|
1343
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1344
1344
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1345
1345
|
R(
|
|
1346
1346
|
e.space,
|
|
@@ -1387,7 +1387,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
function st(e, t, n, s = void 0, i = void 0) {
|
|
1389
1389
|
return new Promise((r) => {
|
|
1390
|
-
if (e.token === "" &&
|
|
1390
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1391
1391
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1392
1392
|
R(
|
|
1393
1393
|
e.space,
|
|
@@ -1614,7 +1614,7 @@ function ut(e, t, n, s = void 0, i = void 0) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
);
|
|
1616
1616
|
}
|
|
1617
|
-
let
|
|
1617
|
+
let E, q;
|
|
1618
1618
|
const A = [];
|
|
1619
1619
|
async function pt(e, t = void 0, n = void 0) {
|
|
1620
1620
|
e.objID && e.objID !== "" ? N(
|
|
@@ -1625,7 +1625,7 @@ async function pt(e, t = void 0, n = void 0) {
|
|
|
1625
1625
|
(s) => {
|
|
1626
1626
|
n && n(s);
|
|
1627
1627
|
}
|
|
1628
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1628
|
+
) : (e.objID === null || e.objID === "") && T(
|
|
1629
1629
|
e,
|
|
1630
1630
|
(s) => {
|
|
1631
1631
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1636,7 +1636,7 @@ async function pt(e, t = void 0, n = void 0) {
|
|
|
1636
1636
|
);
|
|
1637
1637
|
}
|
|
1638
1638
|
async function lt(e, t = void 0, n = void 0) {
|
|
1639
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1639
|
+
console.log("getDatasByTenant (getDocuments)", e), await B(
|
|
1640
1640
|
e,
|
|
1641
1641
|
(s) => {
|
|
1642
1642
|
const i = {};
|
|
@@ -1654,11 +1654,11 @@ function ft(e, t = void 0, n = void 0) {
|
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
1656
|
e.objIds.forEach((i, r) => {
|
|
1657
|
-
|
|
1657
|
+
B(
|
|
1658
1658
|
e,
|
|
1659
1659
|
i.objID,
|
|
1660
1660
|
(o) => {
|
|
1661
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1661
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (E = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1662
1662
|
}
|
|
1663
1663
|
);
|
|
1664
1664
|
});
|
|
@@ -1666,7 +1666,7 @@ function ft(e, t = void 0, n = void 0) {
|
|
|
1666
1666
|
function pe(e, t, n = void 0, s = void 0) {
|
|
1667
1667
|
ce(
|
|
1668
1668
|
e,
|
|
1669
|
-
|
|
1669
|
+
E,
|
|
1670
1670
|
(i) => {
|
|
1671
1671
|
const r = [...t];
|
|
1672
1672
|
r.find((o) => o.objectID === i.objectId).data = i.data, q = r, A.push(i.data), n && n(A);
|
|
@@ -2180,7 +2180,7 @@ function _e(e) {
|
|
|
2180
2180
|
<hr/>
|
|
2181
2181
|
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function Tt(e, t, n = void 0, s = void 0) {
|
|
2184
2184
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
2185
2185
|
(c) => c.id === t.community_id
|
|
2186
2186
|
), o = e.swymCommunities.find(
|
|
@@ -2219,7 +2219,7 @@ function bt(e, t, n = void 0, s = void 0) {
|
|
|
2219
2219
|
});
|
|
2220
2220
|
});
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function bt(e, t = void 0, n = void 0) {
|
|
2223
2223
|
const s = { base: e.space, uri: "/api/idea/add" };
|
|
2224
2224
|
if (!Array.isArray(e.swymCommunities)) {
|
|
2225
2225
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -2418,11 +2418,11 @@ function xt(e, t, n = void 0, s = void 0) {
|
|
|
2418
2418
|
if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2419
2419
|
d.push(_.response.result);
|
|
2420
2420
|
else {
|
|
2421
|
-
const
|
|
2421
|
+
const b = _.response.result.find(
|
|
2422
2422
|
(F) => F.title.includes(c)
|
|
2423
2423
|
);
|
|
2424
|
-
if (
|
|
2425
|
-
n(
|
|
2424
|
+
if (b) {
|
|
2425
|
+
n(b);
|
|
2426
2426
|
return;
|
|
2427
2427
|
}
|
|
2428
2428
|
}
|
|
@@ -2434,8 +2434,8 @@ function xt(e, t, n = void 0, s = void 0) {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
},
|
|
2436
2436
|
onFailure(w, _) {
|
|
2437
|
-
const
|
|
2438
|
-
|
|
2437
|
+
const b = w;
|
|
2438
|
+
b.status = _.status, b.response = _.errormsg, s && s(b);
|
|
2439
2439
|
}
|
|
2440
2440
|
});
|
|
2441
2441
|
};
|
|
@@ -2780,7 +2780,7 @@ async function Gt(e, t, n, s = void 0, i = void 0) {
|
|
|
2780
2780
|
});
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
|
-
async function
|
|
2783
|
+
async function Kt(e, t, n, s, i = void 0, r = void 0) {
|
|
2784
2784
|
if (e.tenant) {
|
|
2785
2785
|
const o = e.tenant.toLowerCase();
|
|
2786
2786
|
fetch(
|
|
@@ -2795,7 +2795,7 @@ async function Et(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
|
-
async function
|
|
2798
|
+
async function Bt(e, t, n, s = void 0, i = void 0) {
|
|
2799
2799
|
if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
|
|
2800
2800
|
const r = e.tenant.toLowerCase();
|
|
2801
2801
|
fetch(
|
|
@@ -2810,7 +2810,7 @@ async function Kt(e, t, n, s = void 0, i = void 0) {
|
|
|
2810
2810
|
});
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
async function
|
|
2813
|
+
async function Et(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2814
2814
|
if (e.tenant) {
|
|
2815
2815
|
const a = e.tenant.toLowerCase();
|
|
2816
2816
|
fetch(
|
|
@@ -2863,7 +2863,7 @@ function Wt(e) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
function Vt(e, t = void 0, n = void 0) {
|
|
2865
2865
|
return console.log("credentials", e), new Promise((s) => {
|
|
2866
|
-
if (e.token === "" &&
|
|
2866
|
+
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
2867
2867
|
const o = Z();
|
|
2868
2868
|
console.log("platformeInfo", o);
|
|
2869
2869
|
}
|
|
@@ -2948,8 +2948,8 @@ export {
|
|
|
2948
2948
|
ze as _3DSpace_Upload_File,
|
|
2949
2949
|
at as _3DSpace_bookmark_addSubsciptions,
|
|
2950
2950
|
ot as _3DSpace_bookmark_newWorkspace,
|
|
2951
|
-
|
|
2952
|
-
|
|
2951
|
+
T as _3DSpace_csrf,
|
|
2952
|
+
B as _3DSpace_download_doc,
|
|
2953
2953
|
ce as _3DSpace_download_multidoc,
|
|
2954
2954
|
G as _3DSpace_file_update,
|
|
2955
2955
|
oe as _3DSpace_file_update_csr,
|
|
@@ -2983,16 +2983,16 @@ export {
|
|
|
2983
2983
|
C as _3DSwym_get_Token,
|
|
2984
2984
|
Nt as _3DSwym_get_currentUser,
|
|
2985
2985
|
Rt as _3DSwym_get_findUser,
|
|
2986
|
-
|
|
2987
|
-
|
|
2986
|
+
bt as _3DSwym_postIdea,
|
|
2987
|
+
Tt as _3DSwym_postIdeaTemplate,
|
|
2988
2988
|
P as _3DSwym_sendMessageData,
|
|
2989
2989
|
Le as _AppMngt_get_info_user,
|
|
2990
2990
|
Pe as _AppMngt_get_users,
|
|
2991
2991
|
Lt as _Iterop_AddOrRemoveRows,
|
|
2992
2992
|
kt as _Iterop_Auth_CAS,
|
|
2993
|
-
|
|
2993
|
+
Bt as _Iterop_GetOneDependencyTable,
|
|
2994
2994
|
Xt as _Iterop_GetOneList,
|
|
2995
|
-
|
|
2995
|
+
Et as _Iterop_PatchDependencyTable,
|
|
2996
2996
|
qt as _Iterop_PutDependencyTable,
|
|
2997
2997
|
Mt as _Iterop_businessTableSearchInRows,
|
|
2998
2998
|
Gt as _Iterop_createBusinessTable,
|
|
@@ -3000,7 +3000,7 @@ export {
|
|
|
3000
3000
|
At as _Iterop_getOneBusinessTable,
|
|
3001
3001
|
Pt as _Iterop_getOneBusinessTableRows,
|
|
3002
3002
|
Dt as _Iterop_jwtUser,
|
|
3003
|
-
|
|
3003
|
+
Kt as _Iterop_runProcess,
|
|
3004
3004
|
Jt as _Iterop_updateBusinessTable,
|
|
3005
3005
|
De as _getMe,
|
|
3006
3006
|
Z as _getPlateformInfos,
|
|
@@ -3018,7 +3018,7 @@ export {
|
|
|
3018
3018
|
z as couleurs,
|
|
3019
3019
|
Me as createUserGroups,
|
|
3020
3020
|
pe as dataMixing,
|
|
3021
|
-
|
|
3021
|
+
Be as deleteUserGroups,
|
|
3022
3022
|
xe as findAdresse,
|
|
3023
3023
|
rt as getAllContextSecurity,
|
|
3024
3024
|
te as getCSRFToken,
|
|
@@ -3030,11 +3030,11 @@ export {
|
|
|
3030
3030
|
ft as getDatasFrom3DSpace,
|
|
3031
3031
|
dt as getDownloadDocument,
|
|
3032
3032
|
ht as getInfoDocTags,
|
|
3033
|
-
|
|
3033
|
+
Ke as getUserGroupsByURIList,
|
|
3034
3034
|
Ge as getUserGroupsList,
|
|
3035
3035
|
ee as getUsersGroupRules,
|
|
3036
3036
|
pt as get_3DSpace_csrf,
|
|
3037
|
-
|
|
3037
|
+
Ee as patchUserGroups,
|
|
3038
3038
|
qe as patchUserGroupsControl,
|
|
3039
3039
|
ut as pushDataIn3DSpace,
|
|
3040
3040
|
Xe as readUserGroupControl,
|