@beam3_dev/api_module 0.0.139 → 0.0.141
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 +50 -62
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as L } from "uuid";
|
|
2
2
|
import { DateTime as N } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
3
|
+
import { requirejs as O, widget as D } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function j() {
|
|
5
5
|
return L();
|
|
6
6
|
}
|
|
@@ -121,7 +121,7 @@ function fe(e, t = void 0) {
|
|
|
121
121
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
122
122
|
let s;
|
|
123
123
|
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: D.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
@@ -137,7 +137,7 @@ async function ge(e, t = void 0, n = void 0) {
|
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -250,7 +250,7 @@ function ye(e, t, n = void 0, s = void 0) {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const F = {
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
@@ -271,7 +271,7 @@ function we(e, t, n = void 0, s = void 0) {
|
|
|
271
271
|
};
|
|
272
272
|
f(a, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
274
|
+
headers: F,
|
|
275
275
|
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
@@ -366,7 +366,7 @@ function be(e, t, n, s = void 0, i = void 0) {
|
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, c = n, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(c);
|
|
368
368
|
f(d, {
|
|
369
|
-
headers:
|
|
369
|
+
headers: F,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: l,
|
|
372
372
|
type: "json",
|
|
@@ -382,7 +382,7 @@ function Ne(e, t, n, s = void 0, i = void 0) {
|
|
|
382
382
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
f(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
|
-
headers:
|
|
385
|
+
headers: F,
|
|
386
386
|
data: JSON.stringify(n),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -483,7 +483,7 @@ function T(e, t = void 0, n = void 0) {
|
|
|
483
483
|
} else
|
|
484
484
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function $(e, t = void 0, n = void 0) {
|
|
487
487
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
488
488
|
v(
|
|
489
489
|
e,
|
|
@@ -534,7 +534,7 @@ function X(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
534
534
|
e,
|
|
535
535
|
t,
|
|
536
536
|
(a) => {
|
|
537
|
-
|
|
537
|
+
W(
|
|
538
538
|
e,
|
|
539
539
|
t,
|
|
540
540
|
n,
|
|
@@ -547,7 +547,7 @@ function X(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function W(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
551
551
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
552
552
|
f(c, {
|
|
553
553
|
method: "PUT",
|
|
@@ -735,7 +735,7 @@ async function R(e, t = void 0, n = void 0) {
|
|
|
735
735
|
), console.warn(
|
|
736
736
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
737
737
|
)), new Promise((s, i) => {
|
|
738
|
-
|
|
738
|
+
$(
|
|
739
739
|
e,
|
|
740
740
|
(r) => {
|
|
741
741
|
f(r, {
|
|
@@ -771,7 +771,7 @@ async function R(e, t = void 0, n = void 0) {
|
|
|
771
771
|
);
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
|
-
async function
|
|
774
|
+
async function B(e, t, n = void 0, s = void 0) {
|
|
775
775
|
let i = [];
|
|
776
776
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
777
777
|
for (let a = 0; a < t.length; a += 80) {
|
|
@@ -840,7 +840,7 @@ function Y(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
844
844
|
return new Promise((i) => {
|
|
845
845
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
846
846
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -879,7 +879,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function $e(e, t, n, s = void 0, i = void 0) {
|
|
883
883
|
return new Promise((r) => {
|
|
884
884
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
885
885
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -958,7 +958,7 @@ function Ie(e, t, n = void 0, s = void 0) {
|
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Ue(e, t, n = void 0, s = void 0) {
|
|
962
962
|
return new Promise((i) => {
|
|
963
963
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
964
964
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1003,7 +1003,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function De(e, t, n, s = void 0, i = void 0) {
|
|
1007
1007
|
return new Promise((r) => {
|
|
1008
1008
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1009
1009
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1092,7 +1092,7 @@ function Re(e, t = void 0, n = void 0) {
|
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
1094
|
function Pe(e, t, n, s) {
|
|
1095
|
-
|
|
1095
|
+
$(
|
|
1096
1096
|
e.space,
|
|
1097
1097
|
t,
|
|
1098
1098
|
(i) => {
|
|
@@ -1110,7 +1110,7 @@ function Pe(e, t, n, s) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
async function xe(e, t, n = void 0, s = void 0) {
|
|
1112
1112
|
return new Promise((i) => {
|
|
1113
|
-
|
|
1113
|
+
$(e, t, (r) => {
|
|
1114
1114
|
f(r, {
|
|
1115
1115
|
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1116
1116
|
onFailure: (o, a, c) => {
|
|
@@ -1193,7 +1193,7 @@ function Ee(e, t = void 0, n = void 0) {
|
|
|
1193
1193
|
});
|
|
1194
1194
|
}
|
|
1195
1195
|
function q(e, t, n = void 0, s = void 0) {
|
|
1196
|
-
|
|
1196
|
+
B(
|
|
1197
1197
|
e,
|
|
1198
1198
|
P,
|
|
1199
1199
|
(i) => {
|
|
@@ -1205,7 +1205,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
);
|
|
1207
1207
|
}
|
|
1208
|
-
const
|
|
1208
|
+
const H = "FA35FB9B177A280065800EA0000F599C", z = [
|
|
1209
1209
|
"swym",
|
|
1210
1210
|
"3dspace",
|
|
1211
1211
|
"drive",
|
|
@@ -1220,7 +1220,7 @@ const z = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
|
1220
1220
|
who: "ds6w:who",
|
|
1221
1221
|
why: "ds6w:why"
|
|
1222
1222
|
}, Q = {
|
|
1223
|
-
objId:
|
|
1223
|
+
objId: H,
|
|
1224
1224
|
pred: "who",
|
|
1225
1225
|
order_by: "desc",
|
|
1226
1226
|
tag: "testTag"
|
|
@@ -1346,7 +1346,7 @@ function Z(e, t, n = void 0, s = void 0) {
|
|
|
1346
1346
|
],
|
|
1347
1347
|
nresults: 40,
|
|
1348
1348
|
start: "0",
|
|
1349
|
-
source:
|
|
1349
|
+
source: z,
|
|
1350
1350
|
tenant: e.tenant,
|
|
1351
1351
|
login: {
|
|
1352
1352
|
"3dspace": {
|
|
@@ -1470,7 +1470,7 @@ function Xe(e, t = void 0, n = void 0) {
|
|
|
1470
1470
|
});
|
|
1471
1471
|
});
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function We(e, t = void 0, n = void 0) {
|
|
1474
1474
|
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1475
1475
|
params: {
|
|
1476
1476
|
idsToFilterArr: [],
|
|
@@ -1500,7 +1500,7 @@ function Be(e, t = void 0, n = void 0) {
|
|
|
1500
1500
|
});
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function Be(e, t = void 0, n = void 0) {
|
|
1504
1504
|
const s = {
|
|
1505
1505
|
base: e.space,
|
|
1506
1506
|
uri: "/api/community/listmycommunities",
|
|
@@ -1608,7 +1608,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1608
1608
|
te(
|
|
1609
1609
|
a.users,
|
|
1610
1610
|
(l) => {
|
|
1611
|
-
l !== void 0 && (c.id_msg = l.id, d = !0,
|
|
1611
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, U(e, c));
|
|
1612
1612
|
},
|
|
1613
1613
|
(l) => {
|
|
1614
1614
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
@@ -1626,7 +1626,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1626
1626
|
type: "json",
|
|
1627
1627
|
onComplete(p, u, m) {
|
|
1628
1628
|
const g = p;
|
|
1629
|
-
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id,
|
|
1629
|
+
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, U(e, c);
|
|
1630
1630
|
},
|
|
1631
1631
|
onFailure(p, u, m) {
|
|
1632
1632
|
const g = p;
|
|
@@ -1665,7 +1665,7 @@ function te(e, t, n, s) {
|
|
|
1665
1665
|
});
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function U(e, t, n = void 0, s = void 0) {
|
|
1669
1669
|
const i = {
|
|
1670
1670
|
base: e.space,
|
|
1671
1671
|
uri: "/api/community",
|
|
@@ -1719,7 +1719,7 @@ const se = {
|
|
|
1719
1719
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1720
1720
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1721
1721
|
};
|
|
1722
|
-
function
|
|
1722
|
+
function He(e, t, n = void 0, s = void 0) {
|
|
1723
1723
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1724
1724
|
(c) => c.id === t.community_id
|
|
1725
1725
|
), o = e.swymCommunities.find(
|
|
@@ -1758,7 +1758,7 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1758
1758
|
});
|
|
1759
1759
|
});
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function ze(e, t, n = void 0, s = void 0) {
|
|
1762
1762
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1763
1763
|
params: {
|
|
1764
1764
|
community_id: t.community_id,
|
|
@@ -1969,13 +1969,7 @@ function st(e, t = void 0, n = void 0) {
|
|
|
1969
1969
|
await fetch(c, {
|
|
1970
1970
|
method: "POST"
|
|
1971
1971
|
}).then((d) => d.json()).then(async (d) => {
|
|
1972
|
-
|
|
1973
|
-
headers: {
|
|
1974
|
-
Authorization: `Bearer ${d?.token}`
|
|
1975
|
-
}
|
|
1976
|
-
}).then((l) => l.json()).then((l) => {
|
|
1977
|
-
console.log(l);
|
|
1978
|
-
}).catch((l) => console.log(l)), t && t(d?.token);
|
|
1972
|
+
t && t(d?.token);
|
|
1979
1973
|
});
|
|
1980
1974
|
},
|
|
1981
1975
|
onFailure(a) {
|
|
@@ -1986,26 +1980,20 @@ function st(e, t = void 0, n = void 0) {
|
|
|
1986
1980
|
}
|
|
1987
1981
|
async function at(e, t, n = void 0, s = void 0) {
|
|
1988
1982
|
e.tenant && A(e, (i) => {
|
|
1989
|
-
console.log("serviceUrls", i);
|
|
1990
|
-
const
|
|
1991
|
-
f(
|
|
1983
|
+
console.log("serviceUrls", i), i.services.find((a) => a.id === "3dpassport")?.url;
|
|
1984
|
+
const o = `${i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
|
|
1985
|
+
f(o, {
|
|
1992
1986
|
headers: {
|
|
1993
1987
|
Authorization: `Bearer ${t}`
|
|
1994
1988
|
},
|
|
1995
|
-
onComplete(
|
|
1996
|
-
console.log("response",
|
|
1989
|
+
onComplete(a) {
|
|
1990
|
+
console.log("response", a), n && n(a);
|
|
1997
1991
|
},
|
|
1998
|
-
onFailure(
|
|
1999
|
-
s && s(
|
|
1992
|
+
onFailure(a) {
|
|
1993
|
+
s && s(a);
|
|
2000
1994
|
}
|
|
2001
1995
|
});
|
|
2002
|
-
})
|
|
2003
|
-
headers: {
|
|
2004
|
-
Authorization: `Bearer ${t}`
|
|
2005
|
-
}
|
|
2006
|
-
}).then((i) => i.json()).then((i) => {
|
|
2007
|
-
console.log(i);
|
|
2008
|
-
}).catch((i) => console.log(i));
|
|
1996
|
+
});
|
|
2009
1997
|
}
|
|
2010
1998
|
function it(e) {
|
|
2011
1999
|
const t = "Hello " + e;
|
|
@@ -2097,26 +2085,26 @@ export {
|
|
|
2097
2085
|
je as _3DSpace_bookmark_addSubsciptions,
|
|
2098
2086
|
T as _3DSpace_csrf,
|
|
2099
2087
|
R as _3DSpace_download_doc,
|
|
2100
|
-
|
|
2088
|
+
B as _3DSpace_download_multidoc,
|
|
2101
2089
|
X as _3DSpace_file_update,
|
|
2102
|
-
|
|
2090
|
+
W as _3DSpace_file_update_csr,
|
|
2103
2091
|
ke as _3DSpace_file_url_csr,
|
|
2104
2092
|
v as _3DSpace_get_csrf,
|
|
2105
2093
|
V as _3DSpace_get_docInfo,
|
|
2106
2094
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2107
2095
|
b as _3DSpace_get_securityContexts,
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2096
|
+
$ as _3DSpace_get_ticket,
|
|
2097
|
+
De as _3DSpace_lifecycle_changeRevision,
|
|
2098
|
+
$e as _3DSpace_lifecycle_changeState,
|
|
2111
2099
|
Ie as _3DSpace_lifecycle_getGraph,
|
|
2112
|
-
|
|
2113
|
-
|
|
2100
|
+
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
2101
|
+
Fe as _3DSpace_lifecycle_getNextStates,
|
|
2114
2102
|
qe as _3DSwym_buildDirectMessage,
|
|
2115
|
-
|
|
2103
|
+
ze as _3DSwym_deleteIdea,
|
|
2116
2104
|
te as _3DSwym_findCommunityToInstantMSG,
|
|
2117
|
-
|
|
2105
|
+
Be as _3DSwym_getAllCommunities,
|
|
2118
2106
|
Xe as _3DSwym_getAllNews,
|
|
2119
|
-
|
|
2107
|
+
We as _3DSwym_getFamiliarPeople,
|
|
2120
2108
|
Ye as _3DSwym_getIdeaStatusMaturity,
|
|
2121
2109
|
ee as _3DSwym_getMembersCommunity,
|
|
2122
2110
|
Qe as _3DSwym_getSWYMIdea,
|
|
@@ -2124,8 +2112,8 @@ export {
|
|
|
2124
2112
|
et as _3DSwym_get_currentUser,
|
|
2125
2113
|
tt as _3DSwym_get_findUser,
|
|
2126
2114
|
w as _3DSwym_get_version,
|
|
2127
|
-
|
|
2128
|
-
|
|
2115
|
+
He as _3DSwym_postIdea,
|
|
2116
|
+
U as _3DSwym_sendMessageData,
|
|
2129
2117
|
ye as _AppMngt_get_info_user,
|
|
2130
2118
|
_e as _AppMngt_get_users,
|
|
2131
2119
|
st as _Iterop_Auth_CAS,
|