@beam3_dev/api_module 0.0.93 → 0.0.94
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 +41 -27
- 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,5 +1,5 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
2
|
+
import { DateTime as b } from "luxon";
|
|
3
3
|
import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function R() {
|
|
5
5
|
return M();
|
|
@@ -66,7 +66,7 @@ async function re(e, t = void 0, s = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function ce(e, t = L) {
|
|
69
|
-
let s =
|
|
69
|
+
let s = b.now().year;
|
|
70
70
|
const n = e, i = [], r = (a) => {
|
|
71
71
|
for (let o in a)
|
|
72
72
|
i.push({ date: o, comment: a[o] });
|
|
@@ -89,11 +89,11 @@ async function ce(e, t = L) {
|
|
|
89
89
|
} : n;
|
|
90
90
|
for (let o of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start ===
|
|
92
|
+
(l) => l.start === b.fromISO(o.date).toISODate() && l.name === "Férié : " + o.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + o.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: b.fromISO(o.date).toISODate(),
|
|
96
|
+
end: b.fromISO(o.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -628,7 +628,7 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function N(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, c = !1) {
|
|
632
632
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
633
633
|
m(a, {
|
|
634
634
|
method: "GET",
|
|
@@ -729,7 +729,7 @@ async function v(e, t = void 0, s = void 0) {
|
|
|
729
729
|
);
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
async function
|
|
732
|
+
async function V(e, t, s = void 0, n = void 0) {
|
|
733
733
|
let i = [];
|
|
734
734
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
735
735
|
for (let a = 0; a < t.length; a += 80) {
|
|
@@ -737,7 +737,7 @@ async function W(e, t, s = void 0, n = void 0) {
|
|
|
737
737
|
i.push(o);
|
|
738
738
|
}
|
|
739
739
|
const c = (a) => {
|
|
740
|
-
|
|
740
|
+
W(
|
|
741
741
|
e,
|
|
742
742
|
i[a],
|
|
743
743
|
() => {
|
|
@@ -752,7 +752,7 @@ async function W(e, t, s = void 0, n = void 0) {
|
|
|
752
752
|
} else
|
|
753
753
|
console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), n && n("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function W(e, t, s = void 0, n = void 0, i = void 0) {
|
|
756
756
|
const r = [];
|
|
757
757
|
t.forEach((o) => {
|
|
758
758
|
r.push({
|
|
@@ -802,7 +802,7 @@ function Fe(e, t, s = void 0, n = void 0) {
|
|
|
802
802
|
return new Promise((i) => {
|
|
803
803
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
804
804
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
805
|
-
|
|
805
|
+
N(
|
|
806
806
|
e.space,
|
|
807
807
|
"ESPACE COMMUN",
|
|
808
808
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -841,7 +841,7 @@ function De(e, t, s, n = void 0, i = void 0) {
|
|
|
841
841
|
return new Promise((r) => {
|
|
842
842
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
843
843
|
const c = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
844
|
-
|
|
844
|
+
N(
|
|
845
845
|
e.space,
|
|
846
846
|
"ESPACE COMMUN",
|
|
847
847
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -881,7 +881,7 @@ function Ae(e, t, s = void 0, n = void 0) {
|
|
|
881
881
|
return new Promise((i) => {
|
|
882
882
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
883
883
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
884
|
-
|
|
884
|
+
N(
|
|
885
885
|
e.space,
|
|
886
886
|
"ESPACE COMMUN",
|
|
887
887
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -920,7 +920,7 @@ function $e(e, t, s = void 0, n = void 0) {
|
|
|
920
920
|
return new Promise((i) => {
|
|
921
921
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
922
922
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
923
|
-
|
|
923
|
+
N(
|
|
924
924
|
e.space,
|
|
925
925
|
"ESPACE COMMUN",
|
|
926
926
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -965,7 +965,7 @@ function Ue(e, t, s, n = void 0, i = void 0) {
|
|
|
965
965
|
return new Promise((r) => {
|
|
966
966
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
967
967
|
const c = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
968
|
-
|
|
968
|
+
N(
|
|
969
969
|
e.space,
|
|
970
970
|
"ESPACE COMMUN",
|
|
971
971
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1008,10 +1008,19 @@ function Ue(e, t, s, n = void 0, i = void 0) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
function je(e, t, s = void 0, n = void 0) {
|
|
1010
1010
|
return new Promise((i) => {
|
|
1011
|
-
if (e.token === "" && T(e),
|
|
1012
|
-
|
|
1011
|
+
if (e.token === "" && T(e), N(
|
|
1012
|
+
e.space,
|
|
1013
|
+
"ESPACE COMMUN",
|
|
1014
|
+
["VPLMProjectLeader", "VPLMCreator"],
|
|
1015
|
+
void 0,
|
|
1016
|
+
(r) => e.ctx = r,
|
|
1017
|
+
(r) => {
|
|
1018
|
+
console.log("onError =>", r);
|
|
1019
|
+
}
|
|
1020
|
+
), t !== void 0 && t !== "" && t !== null) {
|
|
1021
|
+
const r = b.now().ts;
|
|
1013
1022
|
`${e.space}`;
|
|
1014
|
-
const c = `https
|
|
1023
|
+
const c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
1015
1024
|
m(c, {
|
|
1016
1025
|
onComplete(a) {
|
|
1017
1026
|
if (Array.isArray(JSON.parse(a))) {
|
|
@@ -1029,7 +1038,7 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
1029
1038
|
data: JSON.stringify({
|
|
1030
1039
|
with_indexing_date: !0,
|
|
1031
1040
|
with_nls: !1,
|
|
1032
|
-
label: `
|
|
1041
|
+
label: `3DSearch-${r}`,
|
|
1033
1042
|
locale: "en",
|
|
1034
1043
|
select_predicate: [
|
|
1035
1044
|
"ds6w:label",
|
|
@@ -1052,7 +1061,12 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
1052
1061
|
"3dspace",
|
|
1053
1062
|
"usersgroup"
|
|
1054
1063
|
],
|
|
1055
|
-
tenant: e.
|
|
1064
|
+
tenant: e.tenant,
|
|
1065
|
+
login: {
|
|
1066
|
+
"3dspace": {
|
|
1067
|
+
SecurityContext: `ctx::${e.ctx}`
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1056
1070
|
}),
|
|
1057
1071
|
type: "json",
|
|
1058
1072
|
onComplete(l) {
|
|
@@ -1211,7 +1225,7 @@ function Le(e, t = void 0, s = void 0) {
|
|
|
1211
1225
|
});
|
|
1212
1226
|
}
|
|
1213
1227
|
function B(e, t, s = void 0, n = void 0) {
|
|
1214
|
-
|
|
1228
|
+
V(
|
|
1215
1229
|
e,
|
|
1216
1230
|
I,
|
|
1217
1231
|
(i) => {
|
|
@@ -1518,7 +1532,7 @@ function Xe(e, t = void 0, s = void 0) {
|
|
|
1518
1532
|
});
|
|
1519
1533
|
});
|
|
1520
1534
|
}
|
|
1521
|
-
function
|
|
1535
|
+
function Ve(e, t = void 0, s = void 0) {
|
|
1522
1536
|
const n = {
|
|
1523
1537
|
base: e.space,
|
|
1524
1538
|
uri: "/api/community/listmycommunities",
|
|
@@ -1588,7 +1602,7 @@ function Q(e, t, s, n) {
|
|
|
1588
1602
|
});
|
|
1589
1603
|
});
|
|
1590
1604
|
}
|
|
1591
|
-
function
|
|
1605
|
+
function We(e, t = void 0, s = void 0) {
|
|
1592
1606
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1593
1607
|
e.commu_id || (e.commu_id = n);
|
|
1594
1608
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
@@ -1979,14 +1993,14 @@ export {
|
|
|
1979
1993
|
je as _3DSpace_bookmark_addSubsciptions,
|
|
1980
1994
|
T as _3DSpace_csrf,
|
|
1981
1995
|
v as _3DSpace_download_doc,
|
|
1982
|
-
|
|
1996
|
+
V as _3DSpace_download_multidoc,
|
|
1983
1997
|
K as _3DSpace_file_update,
|
|
1984
1998
|
X as _3DSpace_file_update_csr,
|
|
1985
1999
|
be as _3DSpace_file_url_csr,
|
|
1986
2000
|
k as _3DSpace_get_csrf,
|
|
1987
2001
|
G as _3DSpace_get_docInfo,
|
|
1988
|
-
|
|
1989
|
-
|
|
2002
|
+
W as _3DSpace_get_downloadTicket_multidoc,
|
|
2003
|
+
N as _3DSpace_get_securityContexts,
|
|
1990
2004
|
A as _3DSpace_get_ticket,
|
|
1991
2005
|
Ue as _3DSpace_lifecycle_changeRevision,
|
|
1992
2006
|
De as _3DSpace_lifecycle_changeState,
|
|
@@ -1996,10 +2010,10 @@ export {
|
|
|
1996
2010
|
Be as _3DSwym_buildDirectMessage,
|
|
1997
2011
|
qe as _3DSwym_deleteIdea,
|
|
1998
2012
|
Z as _3DSwym_findCommunityToInstantMSG,
|
|
1999
|
-
|
|
2013
|
+
Ve as _3DSwym_getAllCommunities,
|
|
2000
2014
|
Ke as _3DSwym_getAllNews,
|
|
2001
2015
|
Xe as _3DSwym_getFamiliarPeople,
|
|
2002
|
-
|
|
2016
|
+
We as _3DSwym_getIdeaStatusMaturity,
|
|
2003
2017
|
Q as _3DSwym_getMembersCommunity,
|
|
2004
2018
|
He as _3DSwym_getSWYMIdea,
|
|
2005
2019
|
ze as _3DSwym_get_AllSWYMIdeas,
|