@beam3_dev/api_module 0.0.293 → 0.0.294
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 +15 -15
- 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
|
@@ -195,7 +195,7 @@ function Z() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function De(e, t = void 0, s = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const n = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(n, {
|
|
@@ -227,7 +227,7 @@ function M(e, t = void 0, s = void 0) {
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function ve(e, t = void 0, s = void 0) {
|
|
231
231
|
if (e.tenant) {
|
|
232
232
|
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
233
233
|
m(n, {
|
|
@@ -568,7 +568,7 @@ function I(e, t = void 0, s = void 0) {
|
|
|
568
568
|
b(
|
|
569
569
|
e,
|
|
570
570
|
(n) => {
|
|
571
|
-
console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(
|
|
571
|
+
console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), e.token = n, t && t(e);
|
|
572
572
|
},
|
|
573
573
|
(n) => {
|
|
574
574
|
s && s(n);
|
|
@@ -655,7 +655,7 @@ function G(e, t, s, n, i, r = void 0, a = void 0) {
|
|
|
655
655
|
e,
|
|
656
656
|
t,
|
|
657
657
|
(c) => {
|
|
658
|
-
e.token = c
|
|
658
|
+
console.log("_3DSpace_file_update | _3DSpace_get_csrf| onDone | result", c), e.token = c, o();
|
|
659
659
|
}
|
|
660
660
|
);
|
|
661
661
|
}
|
|
@@ -790,11 +790,11 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
790
790
|
const R = new DOMParser().parseFromString(
|
|
791
791
|
w,
|
|
792
792
|
"text/html"
|
|
793
|
-
).body.firstChild.querySelector("input").getAttributeNode("value").value,
|
|
793
|
+
).body.firstChild.querySelector("input").getAttributeNode("value").value, D = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${o}/contents?receipt=${encodeURIComponent(
|
|
794
794
|
R
|
|
795
795
|
)}`;
|
|
796
796
|
let W = /(?:\.([^.]+))?$/.exec(t)[1];
|
|
797
|
-
const
|
|
797
|
+
const v = JSON.stringify({
|
|
798
798
|
actions: [],
|
|
799
799
|
businessobj: {
|
|
800
800
|
description: e?.description,
|
|
@@ -810,14 +810,14 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
810
810
|
},
|
|
811
811
|
collabspace: o
|
|
812
812
|
});
|
|
813
|
-
m(
|
|
813
|
+
m(D, {
|
|
814
814
|
method: "POST",
|
|
815
815
|
headers: {
|
|
816
816
|
Accept: "application/json",
|
|
817
817
|
"Content-Type": "application/json;charset=UTF-8",
|
|
818
818
|
"X-DS-CSRFTOKEN": p
|
|
819
819
|
},
|
|
820
|
-
data:
|
|
820
|
+
data: v,
|
|
821
821
|
type: "json",
|
|
822
822
|
onComplete(F, Ce, Te) {
|
|
823
823
|
n && n(F);
|
|
@@ -825,7 +825,7 @@ async function Ye(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0)
|
|
|
825
825
|
onFailure(F) {
|
|
826
826
|
console.warn(
|
|
827
827
|
"_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
|
|
828
|
-
{ url:
|
|
828
|
+
{ url: D, bodyRequest: v, err: F }
|
|
829
829
|
), i && i(F);
|
|
830
830
|
}
|
|
831
831
|
});
|
|
@@ -2603,7 +2603,7 @@ function kt(e, t = void 0, s = void 0) {
|
|
|
2603
2603
|
});
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
|
-
async function
|
|
2606
|
+
async function Dt(e, t, s = void 0, n = void 0) {
|
|
2607
2607
|
if (e.tenant) {
|
|
2608
2608
|
const i = e.tenant.toLowerCase();
|
|
2609
2609
|
fetch(
|
|
@@ -2618,7 +2618,7 @@ async function vt(e, t, s = void 0, n = void 0) {
|
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
|
-
async function
|
|
2621
|
+
async function vt(e, t, s, n = void 0, i = void 0) {
|
|
2622
2622
|
if (e.tenant) {
|
|
2623
2623
|
const r = e.tenant.toLowerCase();
|
|
2624
2624
|
fetch(
|
|
@@ -2932,17 +2932,17 @@ export {
|
|
|
2932
2932
|
qt as _Iterop_PutDependencyTable,
|
|
2933
2933
|
Lt as _Iterop_businessTableSearchInRows,
|
|
2934
2934
|
Jt as _Iterop_createBusinessTable,
|
|
2935
|
-
|
|
2936
|
-
|
|
2935
|
+
Dt as _Iterop_getAllBusinessTables,
|
|
2936
|
+
vt as _Iterop_getOneBusinessTable,
|
|
2937
2937
|
At as _Iterop_getOneBusinessTableRows,
|
|
2938
2938
|
kt as _Iterop_jwtUser,
|
|
2939
2939
|
Gt as _Iterop_runProcess,
|
|
2940
2940
|
Mt as _Iterop_updateBusinessTable,
|
|
2941
|
-
|
|
2941
|
+
De as _getMe,
|
|
2942
2942
|
Z as _getPlateformInfos,
|
|
2943
2943
|
ke as _getPlatformServices,
|
|
2944
2944
|
M as _getServiceUrl,
|
|
2945
|
-
|
|
2945
|
+
ve as _getServiceUrl_3DPassport,
|
|
2946
2946
|
Rt as _getServiceUrl_Iterop,
|
|
2947
2947
|
m as _httpCallAuthenticated,
|
|
2948
2948
|
Ue as _setDraggable,
|