@beam3_dev/api_module 0.0.286 → 0.0.288
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 -45
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v4 as V } from "uuid";
|
|
2
2
|
import { DateTime as O } from "luxon";
|
|
3
|
-
import { requirejs as $, widget as
|
|
3
|
+
import { requirejs as $, widget as v } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function Y() {
|
|
5
5
|
return V();
|
|
6
6
|
}
|
|
@@ -143,7 +143,7 @@ function m(e, t) {
|
|
|
143
143
|
n.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Re(e, t, n) {
|
|
147
147
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
148
148
|
s.draggable(e, {
|
|
149
149
|
data: t,
|
|
@@ -151,11 +151,11 @@ function Ue(e, t, n) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ue(e, t = void 0) {
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
156
156
|
let s;
|
|
157
157
|
s === void 0 && (s = n.createProxy({
|
|
158
|
-
widgetId:
|
|
158
|
+
widgetId: v.id,
|
|
159
159
|
filteringMode: "WithFilteringServices"
|
|
160
160
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
161
161
|
});
|
|
@@ -171,7 +171,7 @@ async function ke(e, t = void 0, n = void 0) {
|
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(s) => {
|
|
174
|
-
(!e || e === "") && (e =
|
|
174
|
+
(!e || e === "") && (e = v.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
175
|
s.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
177
|
onComplete: t,
|
|
@@ -246,7 +246,7 @@ function De(e, t = void 0, n = void 0) {
|
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Ae(e, t, n) {
|
|
250
250
|
const s = {
|
|
251
251
|
base: `${e.space}`,
|
|
252
252
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
@@ -272,7 +272,7 @@ function ve(e, t, n) {
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function ve(e, t = void 0, n = void 0) {
|
|
276
276
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
277
277
|
m(s, {
|
|
278
278
|
onComplete(i, r, a) {
|
|
@@ -785,17 +785,17 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
|
|
|
785
785
|
n,
|
|
786
786
|
t,
|
|
787
787
|
(w) => {
|
|
788
|
-
const
|
|
788
|
+
const U = new DOMParser().parseFromString(
|
|
789
789
|
w,
|
|
790
790
|
"text/html"
|
|
791
791
|
).body.firstChild.querySelector("input").getAttributeNode("value").value, q = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${o}/contents?receipt=${encodeURIComponent(
|
|
792
|
-
|
|
792
|
+
U
|
|
793
793
|
)}`;
|
|
794
794
|
let X = /(?:\.([^.]+))?$/.exec(t)[1];
|
|
795
795
|
const W = JSON.stringify({
|
|
796
796
|
actions: [],
|
|
797
797
|
businessobj: {
|
|
798
|
-
description:
|
|
798
|
+
description: e?.description,
|
|
799
799
|
file: t,
|
|
800
800
|
fullnameowner: "",
|
|
801
801
|
icon: "",
|
|
@@ -940,19 +940,17 @@ function J(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
940
940
|
type: "text/plain"
|
|
941
941
|
})), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file_0", t, n);
|
|
942
942
|
let o = e.dataelements.ticketURL;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
r && r(
|
|
948
|
-
},
|
|
949
|
-
onComplete(c) {
|
|
950
|
-
s && s(c.replace(/[\n\r]/g, ""));
|
|
951
|
-
},
|
|
952
|
-
onFailure(c) {
|
|
953
|
-
i && i(c);
|
|
943
|
+
const c = new XMLHttpRequest();
|
|
944
|
+
c.open("POST", o, !0), c.upload.onprogress = function(d) {
|
|
945
|
+
if (d.lengthComputable) {
|
|
946
|
+
const u = d.loaded / d.total * 100;
|
|
947
|
+
r && r(u);
|
|
954
948
|
}
|
|
955
|
-
})
|
|
949
|
+
}, c.onload = function() {
|
|
950
|
+
c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
|
|
951
|
+
}, c.onerror = function() {
|
|
952
|
+
i && i(c.statusText);
|
|
953
|
+
}, c.send(a);
|
|
956
954
|
}
|
|
957
955
|
function re(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
958
956
|
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
|
|
@@ -1001,7 +999,7 @@ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
1001
999
|
}
|
|
1002
1000
|
});
|
|
1003
1001
|
}
|
|
1004
|
-
function
|
|
1002
|
+
function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1) {
|
|
1005
1003
|
const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
1006
1004
|
m(o, {
|
|
1007
1005
|
method: "GET",
|
|
@@ -1236,7 +1234,7 @@ function Ze(e, t, n = void 0, s = void 0) {
|
|
|
1236
1234
|
return new Promise((i) => {
|
|
1237
1235
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1238
1236
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1239
|
-
|
|
1237
|
+
R(
|
|
1240
1238
|
e.space,
|
|
1241
1239
|
"ESPACE COMMUN",
|
|
1242
1240
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1277,7 +1275,7 @@ function et(e, t, n = void 0, s = void 0) {
|
|
|
1277
1275
|
return new Promise((i) => {
|
|
1278
1276
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1279
1277
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1280
|
-
|
|
1278
|
+
R(
|
|
1281
1279
|
e.space,
|
|
1282
1280
|
"ESPACE COMMUN",
|
|
1283
1281
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1324,7 +1322,7 @@ function tt(e, t, n, s = void 0, i = void 0) {
|
|
|
1324
1322
|
return new Promise((r) => {
|
|
1325
1323
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1326
1324
|
const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1327
|
-
|
|
1325
|
+
R(
|
|
1328
1326
|
e.space,
|
|
1329
1327
|
"ESPACE COMMUN",
|
|
1330
1328
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1962,7 +1960,7 @@ function yt(e, t, n = void 0, s = void 0) {
|
|
|
1962
1960
|
ge(
|
|
1963
1961
|
c.users,
|
|
1964
1962
|
(p) => {
|
|
1965
|
-
p !== void 0 && (d.id_msg = p.id, u = !0,
|
|
1963
|
+
p !== void 0 && (d.id_msg = p.id, u = !0, A(e, d));
|
|
1966
1964
|
},
|
|
1967
1965
|
(p) => {
|
|
1968
1966
|
u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
|
|
@@ -1980,7 +1978,7 @@ function yt(e, t, n = void 0, s = void 0) {
|
|
|
1980
1978
|
type: "json",
|
|
1981
1979
|
onComplete(f, l, h) {
|
|
1982
1980
|
const g = f;
|
|
1983
|
-
g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id,
|
|
1981
|
+
g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, A(e, d);
|
|
1984
1982
|
},
|
|
1985
1983
|
onFailure(f, l, h) {
|
|
1986
1984
|
const g = f;
|
|
@@ -2019,7 +2017,7 @@ function ge(e, t, n, s) {
|
|
|
2019
2017
|
});
|
|
2020
2018
|
});
|
|
2021
2019
|
}
|
|
2022
|
-
function
|
|
2020
|
+
function A(e, t, n = void 0, s = void 0) {
|
|
2023
2021
|
const i = {
|
|
2024
2022
|
base: e._3DSwym,
|
|
2025
2023
|
uri: "/api/community",
|
|
@@ -2302,7 +2300,7 @@ function Ot(e, t, n = void 0, s = void 0) {
|
|
|
2302
2300
|
d.push(w.response.result);
|
|
2303
2301
|
else {
|
|
2304
2302
|
const T = w.response.result.find(
|
|
2305
|
-
(
|
|
2303
|
+
(U) => U.title.includes(c)
|
|
2306
2304
|
);
|
|
2307
2305
|
if (T) {
|
|
2308
2306
|
n(T);
|
|
@@ -2510,13 +2508,13 @@ function It(e, t = void 0, n = void 0) {
|
|
|
2510
2508
|
};
|
|
2511
2509
|
m(o, d);
|
|
2512
2510
|
}
|
|
2513
|
-
function
|
|
2511
|
+
function Rt(e, t = void 0, n = void 0) {
|
|
2514
2512
|
e.tenant && P(e, (s) => {
|
|
2515
2513
|
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2516
2514
|
return t && t(i), i;
|
|
2517
2515
|
});
|
|
2518
2516
|
}
|
|
2519
|
-
function
|
|
2517
|
+
function Ut(e, t = void 0, n = void 0) {
|
|
2520
2518
|
e.tenant && P(e, (s) => {
|
|
2521
2519
|
const i = s.services.find(
|
|
2522
2520
|
(o) => o.id === "3dpassport"
|
|
@@ -2593,7 +2591,7 @@ async function Dt(e, t, n, s = void 0, i = void 0) {
|
|
|
2593
2591
|
});
|
|
2594
2592
|
}
|
|
2595
2593
|
}
|
|
2596
|
-
async function
|
|
2594
|
+
async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
2597
2595
|
if (e.tenant) {
|
|
2598
2596
|
const a = e.tenant.toLowerCase();
|
|
2599
2597
|
fetch(
|
|
@@ -2608,7 +2606,7 @@ async function vt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2608
2606
|
});
|
|
2609
2607
|
}
|
|
2610
2608
|
}
|
|
2611
|
-
async function
|
|
2609
|
+
async function vt(e, t, n, s, i, r = void 0, a = void 0) {
|
|
2612
2610
|
if (e.tenant) {
|
|
2613
2611
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
|
|
2614
2612
|
s
|
|
@@ -2748,7 +2746,7 @@ function qt(e, t = void 0, n = void 0) {
|
|
|
2748
2746
|
const a = Z();
|
|
2749
2747
|
console.log("platformeInfo", a);
|
|
2750
2748
|
}
|
|
2751
|
-
|
|
2749
|
+
R(
|
|
2752
2750
|
e,
|
|
2753
2751
|
"Common space",
|
|
2754
2752
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2839,7 +2837,7 @@ export {
|
|
|
2839
2837
|
L as _3DSpace_get_docInfo,
|
|
2840
2838
|
de as _3DSpace_get_downloadTicket_multidoc,
|
|
2841
2839
|
qe as _3DSpace_get_multiDocInfo,
|
|
2842
|
-
|
|
2840
|
+
R as _3DSpace_get_securityContexts,
|
|
2843
2841
|
j as _3DSpace_get_ticket,
|
|
2844
2842
|
tt as _3DSpace_lifecycle_changeRevision,
|
|
2845
2843
|
Qe as _3DSpace_lifecycle_changeState,
|
|
@@ -2865,16 +2863,16 @@ export {
|
|
|
2865
2863
|
Ft as _3DSwym_get_findUser,
|
|
2866
2864
|
wt as _3DSwym_postIdea,
|
|
2867
2865
|
St as _3DSwym_postIdeaTemplate,
|
|
2868
|
-
|
|
2866
|
+
A as _3DSwym_sendMessageData,
|
|
2869
2867
|
Pe as _AppMngt_get_info_user,
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2868
|
+
ve as _AppMngt_get_users,
|
|
2869
|
+
At as _Iterop_AddOrRemoveRows,
|
|
2870
|
+
Ut as _Iterop_Auth_CAS,
|
|
2873
2871
|
Jt as _Iterop_GetOneDependencyTable,
|
|
2874
2872
|
Bt as _Iterop_GetOneList,
|
|
2875
2873
|
Gt as _Iterop_PatchDependencyTable,
|
|
2876
2874
|
Kt as _Iterop_PutDependencyTable,
|
|
2877
|
-
|
|
2875
|
+
vt as _Iterop_businessTableSearchInRows,
|
|
2878
2876
|
Lt as _Iterop_createBusinessTable,
|
|
2879
2877
|
kt as _Iterop_getAllBusinessTables,
|
|
2880
2878
|
jt as _Iterop_getOneBusinessTable,
|
|
@@ -2887,14 +2885,14 @@ export {
|
|
|
2887
2885
|
ke as _getPlatformServices,
|
|
2888
2886
|
P as _getServiceUrl,
|
|
2889
2887
|
De as _getServiceUrl_3DPassport,
|
|
2890
|
-
|
|
2888
|
+
Rt as _getServiceUrl_Iterop,
|
|
2891
2889
|
m as _httpCallAuthenticated,
|
|
2892
|
-
|
|
2890
|
+
Re as _setDraggable,
|
|
2893
2891
|
xe as _setDroppable,
|
|
2894
|
-
|
|
2892
|
+
Ue as _setupTagger,
|
|
2895
2893
|
pt as addTagToDoc,
|
|
2896
2894
|
z as chunkArray,
|
|
2897
|
-
|
|
2895
|
+
Ae as compass_getListAdditionalApps,
|
|
2898
2896
|
H as couleurs,
|
|
2899
2897
|
Le as createUserGroups,
|
|
2900
2898
|
ue as dataMixing,
|