@beam3_dev/api_module 0.0.43 → 0.0.45
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 +43 -40
- 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
|
@@ -386,13 +386,13 @@ async function E(e, t = void 0, n = void 0, s = void 0) {
|
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function k(e, t = void 0, n = void 0) {
|
|
390
390
|
if (e.objID && e.objID !== "") {
|
|
391
391
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
392
392
|
f(s, {
|
|
393
393
|
onComplete(i, c, o) {
|
|
394
394
|
const a = JSON.parse(i);
|
|
395
|
-
e.token = a?.csrf?.value, e.datas = a?.data[0], t &&
|
|
395
|
+
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
396
396
|
},
|
|
397
397
|
onFailure(i) {
|
|
398
398
|
n && n(i);
|
|
@@ -416,16 +416,15 @@ function C(e, t = void 0, n = void 0) {
|
|
|
416
416
|
} else
|
|
417
417
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function D(e, t, n = void 0, s = void 0) {
|
|
420
420
|
let i = e.space + `/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
421
|
-
|
|
421
|
+
k(
|
|
422
422
|
e,
|
|
423
|
-
t,
|
|
424
423
|
(c) => {
|
|
425
424
|
f(i, {
|
|
426
425
|
method: "PUT",
|
|
427
426
|
headers: {
|
|
428
|
-
ENO_CSRF_TOKEN:
|
|
427
|
+
ENO_CSRF_TOKEN: e.token
|
|
429
428
|
},
|
|
430
429
|
onComplete(o) {
|
|
431
430
|
let a = JSON.parse(o);
|
|
@@ -441,7 +440,8 @@ function $(e, t, n = void 0, s = void 0) {
|
|
|
441
440
|
console.log("☠️ error => ", o, a), s && s(o, a);
|
|
442
441
|
}
|
|
443
442
|
});
|
|
444
|
-
}
|
|
443
|
+
},
|
|
444
|
+
s
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
447
|
function be(e, t, n, s = void 0, i = void 0) {
|
|
@@ -467,7 +467,7 @@ function be(e, t, n, s = void 0, i = void 0) {
|
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
function G(e, t, n, s, i, c = void 0, o = void 0) {
|
|
470
|
-
|
|
470
|
+
k(
|
|
471
471
|
e,
|
|
472
472
|
t,
|
|
473
473
|
(a) => {
|
|
@@ -539,7 +539,7 @@ function K(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
539
539
|
}
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
async function
|
|
542
|
+
async function ke(e, t, n, s, i = void 0, c = void 0) {
|
|
543
543
|
const o = e.space, a = e.token, r = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
544
544
|
type: "text/plain"
|
|
545
545
|
}), p = {
|
|
@@ -563,7 +563,7 @@ async function Fe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
563
563
|
data: d,
|
|
564
564
|
onComplete(T) {
|
|
565
565
|
if (r !== "" && a !== "") {
|
|
566
|
-
const
|
|
566
|
+
const F = {
|
|
567
567
|
method: "POST",
|
|
568
568
|
headers: {
|
|
569
569
|
ENO_CSRF_TOKEN: a,
|
|
@@ -598,7 +598,7 @@ async function Fe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
598
598
|
onComplete: _,
|
|
599
599
|
onFailure: y
|
|
600
600
|
};
|
|
601
|
-
r !== "" && f(p.url_Post,
|
|
601
|
+
r !== "" && f(p.url_Post, F);
|
|
602
602
|
} else
|
|
603
603
|
console.warn("le store est vide");
|
|
604
604
|
},
|
|
@@ -607,9 +607,9 @@ async function Fe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
607
607
|
function _(T) {
|
|
608
608
|
console.log("Success -- response ", T.data[0]), i && i(T);
|
|
609
609
|
}
|
|
610
|
-
function y(T,
|
|
610
|
+
function y(T, F) {
|
|
611
611
|
console.log("Erreur -- response ", T, `
|
|
612
|
-
headers `,
|
|
612
|
+
headers `, F), c && c(T);
|
|
613
613
|
}
|
|
614
614
|
f(h.ticketURL, S);
|
|
615
615
|
}
|
|
@@ -669,11 +669,14 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
669
669
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
670
670
|
);
|
|
671
671
|
try {
|
|
672
|
-
|
|
672
|
+
console.log("credentials", e), D(
|
|
673
673
|
e,
|
|
674
674
|
i,
|
|
675
675
|
(c) => {
|
|
676
|
-
|
|
676
|
+
console.log(
|
|
677
|
+
"_3dspace_download_doc / _3DSpace_file_url / response ",
|
|
678
|
+
c
|
|
679
|
+
), f(c, {
|
|
677
680
|
headers: {
|
|
678
681
|
ENO_CSRF_TOKEN: e.token
|
|
679
682
|
},
|
|
@@ -760,7 +763,7 @@ function X(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
760
763
|
}
|
|
761
764
|
});
|
|
762
765
|
}
|
|
763
|
-
function
|
|
766
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
764
767
|
return new Promise((i) => {
|
|
765
768
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
766
769
|
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -843,7 +846,7 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
843
846
|
}
|
|
844
847
|
});
|
|
845
848
|
}
|
|
846
|
-
function
|
|
849
|
+
function De(e, t, n = void 0, s = void 0) {
|
|
847
850
|
return new Promise((i) => {
|
|
848
851
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
849
852
|
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -884,7 +887,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
884
887
|
}
|
|
885
888
|
});
|
|
886
889
|
}
|
|
887
|
-
function
|
|
890
|
+
function $e(e, t, n = void 0, s = void 0) {
|
|
888
891
|
return new Promise((i) => {
|
|
889
892
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
890
893
|
const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1012,7 +1015,7 @@ function je(e, t = void 0, n = void 0) {
|
|
|
1012
1015
|
});
|
|
1013
1016
|
}
|
|
1014
1017
|
function Ie(e, t, n, s) {
|
|
1015
|
-
|
|
1018
|
+
D(
|
|
1016
1019
|
e.space,
|
|
1017
1020
|
t,
|
|
1018
1021
|
(i) => {
|
|
@@ -1033,7 +1036,7 @@ function Ie(e, t, n, s) {
|
|
|
1033
1036
|
}
|
|
1034
1037
|
async function ve(e, t, n = void 0, s = void 0) {
|
|
1035
1038
|
return new Promise((i) => {
|
|
1036
|
-
|
|
1039
|
+
D(e.space, t, (c) => {
|
|
1037
1040
|
f(c, {
|
|
1038
1041
|
onComplete: (o, a, r) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, r), i),
|
|
1039
1042
|
onFailure: (o, a, r) => {
|
|
@@ -1045,7 +1048,7 @@ async function ve(e, t, n = void 0, s = void 0) {
|
|
|
1045
1048
|
}
|
|
1046
1049
|
function xe(e, t, n, s = void 0, i = void 0) {
|
|
1047
1050
|
const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1048
|
-
|
|
1051
|
+
k(
|
|
1049
1052
|
e,
|
|
1050
1053
|
n,
|
|
1051
1054
|
(o) => {
|
|
@@ -1067,9 +1070,9 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
1067
1070
|
);
|
|
1068
1071
|
}
|
|
1069
1072
|
let v, x;
|
|
1070
|
-
const
|
|
1073
|
+
const $ = [];
|
|
1071
1074
|
async function Pe(e, t = void 0, n = void 0) {
|
|
1072
|
-
e.objID && e.objID !== "" ?
|
|
1075
|
+
e.objID && e.objID !== "" ? k(
|
|
1073
1076
|
e,
|
|
1074
1077
|
(s) => {
|
|
1075
1078
|
t && t(s);
|
|
@@ -1088,7 +1091,7 @@ async function Pe(e, t = void 0, n = void 0) {
|
|
|
1088
1091
|
);
|
|
1089
1092
|
}
|
|
1090
1093
|
async function Me(e, t = void 0, n = void 0) {
|
|
1091
|
-
await I(
|
|
1094
|
+
console.log("getDatasByTenant", e), await I(
|
|
1092
1095
|
e,
|
|
1093
1096
|
(s) => {
|
|
1094
1097
|
const i = {};
|
|
@@ -1114,7 +1117,7 @@ function V(e, t = void 0, n = void 0) {
|
|
|
1114
1117
|
e,
|
|
1115
1118
|
i.objId,
|
|
1116
1119
|
(o) => {
|
|
1117
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (v = o.affaires.map((a) => a.objectID),
|
|
1120
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (v = o.affaires.map((a) => a.objectID), B(e, x)), c === e.objIds.length - 1 && t && t(s);
|
|
1118
1121
|
},
|
|
1119
1122
|
(o) => {
|
|
1120
1123
|
n && n(o);
|
|
@@ -1122,20 +1125,20 @@ function V(e, t = void 0, n = void 0) {
|
|
|
1122
1125
|
);
|
|
1123
1126
|
});
|
|
1124
1127
|
}
|
|
1125
|
-
function
|
|
1128
|
+
function B(e, t, n = void 0, s = void 0) {
|
|
1126
1129
|
W(
|
|
1127
1130
|
e,
|
|
1128
1131
|
v,
|
|
1129
1132
|
(i) => {
|
|
1130
1133
|
const c = [...t];
|
|
1131
|
-
c.find((o) => o.objectID === i.objectId).data = i.data, x = c,
|
|
1134
|
+
c.find((o) => o.objectID === i.objectId).data = i.data, x = c, $.push(i.data), n && n($);
|
|
1132
1135
|
},
|
|
1133
1136
|
(i) => {
|
|
1134
1137
|
s && (s(i), console.log(i));
|
|
1135
1138
|
}
|
|
1136
1139
|
);
|
|
1137
1140
|
}
|
|
1138
|
-
const
|
|
1141
|
+
const Y = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
1139
1142
|
"swym",
|
|
1140
1143
|
"3dspace",
|
|
1141
1144
|
"drive",
|
|
@@ -1150,7 +1153,7 @@ const B = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
|
1150
1153
|
who: "ds6w:who",
|
|
1151
1154
|
why: "ds6w:why"
|
|
1152
1155
|
}, z = {
|
|
1153
|
-
objId:
|
|
1156
|
+
objId: Y,
|
|
1154
1157
|
pred: "who",
|
|
1155
1158
|
order_by: "desc",
|
|
1156
1159
|
tag: "testTag"
|
|
@@ -1649,7 +1652,7 @@ const te = {
|
|
|
1649
1652
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1650
1653
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1651
1654
|
};
|
|
1652
|
-
function
|
|
1655
|
+
function Be(e, t, n = void 0, s = void 0) {
|
|
1653
1656
|
const i = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
|
|
1654
1657
|
(r) => r.id === t.community_id
|
|
1655
1658
|
), o = e.swymCommunities.find(
|
|
@@ -1688,7 +1691,7 @@ function Ye(e, t, n = void 0, s = void 0) {
|
|
|
1688
1691
|
});
|
|
1689
1692
|
});
|
|
1690
1693
|
}
|
|
1691
|
-
function
|
|
1694
|
+
function Ye(e, t, n = void 0, s = void 0) {
|
|
1692
1695
|
const i = `${e.space}/api/idea/delete`, c = {
|
|
1693
1696
|
params: {
|
|
1694
1697
|
community_id: t.community_id,
|
|
@@ -1888,27 +1891,27 @@ function Ze(e) {
|
|
|
1888
1891
|
}
|
|
1889
1892
|
export {
|
|
1890
1893
|
j as UUID,
|
|
1891
|
-
|
|
1894
|
+
ke as _3DSpace_Create_Doc,
|
|
1892
1895
|
C as _3DSpace_csrf,
|
|
1893
1896
|
I as _3DSpace_download_doc,
|
|
1894
1897
|
W as _3DSpace_download_multidoc,
|
|
1895
1898
|
G as _3DSpace_file_update,
|
|
1896
1899
|
K as _3DSpace_file_update_csr,
|
|
1897
|
-
|
|
1900
|
+
D as _3DSpace_file_url,
|
|
1898
1901
|
be as _3DSpace_file_url_csr,
|
|
1899
|
-
|
|
1902
|
+
k as _3DSpace_get_csrf,
|
|
1900
1903
|
E as _3DSpace_get_docInfo,
|
|
1901
1904
|
X as _3DSpace_get_downloadTicket_multidoc,
|
|
1902
1905
|
N as _3DSpace_get_securityContexts,
|
|
1903
1906
|
Re as _3DSpace_lifecycle_changeRevision,
|
|
1904
1907
|
Ue as _3DSpace_lifecycle_changeState,
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
+
De as _3DSpace_lifecycle_getGraph,
|
|
1909
|
+
$e as _3DSpace_lifecycle_getNextRevision,
|
|
1910
|
+
Fe as _3DSpace_lifecycle_getNextStates,
|
|
1908
1911
|
We as _3DSwim_getAllCommunities,
|
|
1909
1912
|
Q as _3DSwim_getMembersCommunity,
|
|
1910
1913
|
Ve as _3DSwym_buildDirectMessage,
|
|
1911
|
-
|
|
1914
|
+
Ye as _3DSwym_deleteIdea,
|
|
1912
1915
|
Z as _3DSwym_findCommunityToInstantMSG,
|
|
1913
1916
|
Ge as _3DSwym_getAllNews,
|
|
1914
1917
|
Ke as _3DSwym_getFamiliarPeople,
|
|
@@ -1918,7 +1921,7 @@ export {
|
|
|
1918
1921
|
qe as _3DSwym_get_currentUser,
|
|
1919
1922
|
Qe as _3DSwym_get_findUser,
|
|
1920
1923
|
w as _3DSwym_get_version,
|
|
1921
|
-
|
|
1924
|
+
Be as _3DSwym_postIdea,
|
|
1922
1925
|
R as _3DSwym_sendMessageData,
|
|
1923
1926
|
Se as _AppMngt_get_info_user,
|
|
1924
1927
|
he as _AppMngt_get_users,
|
|
@@ -1932,7 +1935,7 @@ export {
|
|
|
1932
1935
|
ge as compass_getListAdditionalApps,
|
|
1933
1936
|
L as couleurs,
|
|
1934
1937
|
_e as createUserGroups,
|
|
1935
|
-
|
|
1938
|
+
B as dataMixing,
|
|
1936
1939
|
Te as deleteUserGroups,
|
|
1937
1940
|
re as findAdresse,
|
|
1938
1941
|
je as getAllContextSecurity,
|