@beam3_dev/api_module 0.0.264 → 0.0.265
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 +28 -27
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v4 as K } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
2
|
+
import { DateTime as b } from "luxon";
|
|
3
3
|
import { requirejs as $, widget as A } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function B() {
|
|
5
5
|
return K();
|
|
@@ -66,7 +66,7 @@ async function Se(e, t = void 0, n = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function we(e, t = W) {
|
|
69
|
-
let n =
|
|
69
|
+
let n = b.now().year;
|
|
70
70
|
const s = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
72
|
i.push({ date: c, comment: a[c] });
|
|
@@ -89,11 +89,11 @@ async function we(e, t = W) {
|
|
|
89
89
|
} : s;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(u) => u.start ===
|
|
92
|
+
(u) => u.start === b.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: b.fromISO(c.date).toISODate(),
|
|
96
|
+
end: b.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -151,7 +151,7 @@ function Te(e, t, n) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Oe(e, t = void 0) {
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
156
156
|
let s;
|
|
157
157
|
s === void 0 && (s = n.createProxy({
|
|
@@ -160,7 +160,7 @@ function be(e, t = void 0) {
|
|
|
160
160
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function be(e, t) {
|
|
164
164
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
165
165
|
n.droppable(e, {
|
|
166
166
|
drop: t
|
|
@@ -553,7 +553,7 @@ function F(e, t = void 0, n = void 0) {
|
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
} else
|
|
556
|
-
|
|
556
|
+
O(
|
|
557
557
|
e,
|
|
558
558
|
(s) => {
|
|
559
559
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
|
|
@@ -563,7 +563,7 @@ function F(e, t = void 0, n = void 0) {
|
|
|
563
563
|
}
|
|
564
564
|
);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function O(e, t = void 0, n = void 0) {
|
|
567
567
|
if (e.space) {
|
|
568
568
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
569
569
|
m(s, {
|
|
@@ -835,7 +835,7 @@ function ne(e, t, n, s = void 0, i = void 0) {
|
|
|
835
835
|
function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
836
836
|
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
|
|
837
837
|
const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
|
|
838
|
-
let a = "temp_" +
|
|
838
|
+
let a = "temp_" + b.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
|
|
839
839
|
m(c, {
|
|
840
840
|
method: "POST",
|
|
841
841
|
headers: {
|
|
@@ -1049,7 +1049,7 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
function Ee(e, t, n = void 0, s = void 0) {
|
|
1051
1051
|
return new Promise((i) => {
|
|
1052
|
-
if (e.token === "" &&
|
|
1052
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1053
1053
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1054
1054
|
let o = {
|
|
1055
1055
|
method: "POST",
|
|
@@ -1080,7 +1080,7 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
function Ke(e, t, n, s = void 0, i = void 0) {
|
|
1082
1082
|
return new Promise((r) => {
|
|
1083
|
-
if (e.token === "" &&
|
|
1083
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1084
1084
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1085
1085
|
let a = {
|
|
1086
1086
|
method: "POST",
|
|
@@ -1112,7 +1112,7 @@ function Ke(e, t, n, s = void 0, i = void 0) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
function Be(e, t, n = void 0, s = void 0) {
|
|
1114
1114
|
return new Promise((i) => {
|
|
1115
|
-
if (e.token === "" &&
|
|
1115
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1116
1116
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1117
1117
|
R(
|
|
1118
1118
|
e.space,
|
|
@@ -1153,7 +1153,7 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
function We(e, t, n = void 0, s = void 0) {
|
|
1155
1155
|
return new Promise((i) => {
|
|
1156
|
-
if (e.token === "" &&
|
|
1156
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1157
1157
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1158
1158
|
R(
|
|
1159
1159
|
e.space,
|
|
@@ -1200,7 +1200,7 @@ function We(e, t, n = void 0, s = void 0) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
function Xe(e, t, n, s = void 0, i = void 0) {
|
|
1202
1202
|
return new Promise((r) => {
|
|
1203
|
-
if (e.token === "" &&
|
|
1203
|
+
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1204
1204
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1205
1205
|
R(
|
|
1206
1206
|
e.space,
|
|
@@ -1386,7 +1386,7 @@ async function Ze(e, t = void 0, n = void 0) {
|
|
|
1386
1386
|
(s) => {
|
|
1387
1387
|
n && n(s);
|
|
1388
1388
|
}
|
|
1389
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1389
|
+
) : (e.objID === null || e.objID === "") && O(
|
|
1390
1390
|
e,
|
|
1391
1391
|
(s) => {
|
|
1392
1392
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -2337,8 +2337,9 @@ function yt(e, t = void 0, n = void 0) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
});
|
|
2339
2339
|
});
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2340
|
+
}
|
|
2341
|
+
if (!a) {
|
|
2342
|
+
const c = r + "/api/users/current";
|
|
2342
2343
|
m(c, {
|
|
2343
2344
|
method: "GET",
|
|
2344
2345
|
onComplete(d, u, p) {
|
|
@@ -2444,7 +2445,7 @@ function Tt(e, t = void 0, n = void 0) {
|
|
|
2444
2445
|
});
|
|
2445
2446
|
}
|
|
2446
2447
|
}
|
|
2447
|
-
async function
|
|
2448
|
+
async function Ot(e, t, n = void 0, s = void 0) {
|
|
2448
2449
|
if (e.tenant) {
|
|
2449
2450
|
const i = e.tenant.toLowerCase();
|
|
2450
2451
|
fetch(
|
|
@@ -2459,7 +2460,7 @@ async function bt(e, t, n = void 0, s = void 0) {
|
|
|
2459
2460
|
});
|
|
2460
2461
|
}
|
|
2461
2462
|
}
|
|
2462
|
-
async function
|
|
2463
|
+
async function bt(e, t, n, s = void 0, i = void 0) {
|
|
2463
2464
|
if (e.tenant) {
|
|
2464
2465
|
const r = e.tenant.toLowerCase();
|
|
2465
2466
|
fetch(
|
|
@@ -2640,7 +2641,7 @@ function xt(e) {
|
|
|
2640
2641
|
}
|
|
2641
2642
|
function Pt(e, t = void 0, n = void 0) {
|
|
2642
2643
|
return console.log("credentials", e), new Promise((s) => {
|
|
2643
|
-
if (e.token === "" &&
|
|
2644
|
+
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2644
2645
|
const o = Y();
|
|
2645
2646
|
console.log("platformeInfo", o);
|
|
2646
2647
|
}
|
|
@@ -2655,7 +2656,7 @@ function Pt(e, t = void 0, n = void 0) {
|
|
|
2655
2656
|
},
|
|
2656
2657
|
!0
|
|
2657
2658
|
);
|
|
2658
|
-
const i =
|
|
2659
|
+
const i = b.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2659
2660
|
m(r, {
|
|
2660
2661
|
onComplete(o) {
|
|
2661
2662
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2724,7 +2725,7 @@ export {
|
|
|
2724
2725
|
Je as _3DSpace_Update_Doc,
|
|
2725
2726
|
Ye as _3DSpace_bookmark_addSubsciptions,
|
|
2726
2727
|
Ve as _3DSpace_bookmark_newWorkspace,
|
|
2727
|
-
|
|
2728
|
+
O as _3DSpace_csrf,
|
|
2728
2729
|
L as _3DSpace_download_doc,
|
|
2729
2730
|
ie as _3DSpace_download_multidoc,
|
|
2730
2731
|
D as _3DSpace_file_update,
|
|
@@ -2771,8 +2772,8 @@ export {
|
|
|
2771
2772
|
vt as _Iterop_PutDependencyTable,
|
|
2772
2773
|
It as _Iterop_businessTableSearchInRows,
|
|
2773
2774
|
Rt as _Iterop_createBusinessTable,
|
|
2774
|
-
|
|
2775
|
-
|
|
2775
|
+
Ot as _Iterop_getAllBusinessTables,
|
|
2776
|
+
bt as _Iterop_getOneBusinessTable,
|
|
2776
2777
|
$t as _Iterop_getOneBusinessTableRows,
|
|
2777
2778
|
Tt as _Iterop_jwtUser,
|
|
2778
2779
|
Ut as _Iterop_runProcess,
|
|
@@ -2784,8 +2785,8 @@ export {
|
|
|
2784
2785
|
wt as _getServiceUrl_Iterop,
|
|
2785
2786
|
m as _httpCallAuthenticated,
|
|
2786
2787
|
Te as _setDraggable,
|
|
2787
|
-
|
|
2788
|
-
|
|
2788
|
+
be as _setDroppable,
|
|
2789
|
+
Oe as _setupTagger,
|
|
2789
2790
|
nt as addTagToDoc,
|
|
2790
2791
|
X as chunkArray,
|
|
2791
2792
|
Ie as compass_getListAdditionalApps,
|