@beam3_dev/api_module 0.0.334 → 0.0.335
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 +38 -38
- 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
|
@@ -65,7 +65,7 @@ async function xe(e, n = void 0, t = void 0) {
|
|
|
65
65
|
t && t(i), console.error("Erreur : " + i);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
68
|
+
async function Ne(e, n = z) {
|
|
69
69
|
let t = T.now().year;
|
|
70
70
|
const i = e, s = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
@@ -134,7 +134,7 @@ function Q(e, n, t) {
|
|
|
134
134
|
};
|
|
135
135
|
a(r);
|
|
136
136
|
}
|
|
137
|
-
async function
|
|
137
|
+
async function Ie(e, n, t = !0) {
|
|
138
138
|
const i = e.events.findIndex((s) => s.uuid === n.uuid);
|
|
139
139
|
return i === -1 ? e.events.push(n) : t ? e.events[i] = n : e.events.splice(i, 1), e.length > 0 && e.sort((s, r) => s.start - r.start), e;
|
|
140
140
|
}
|
|
@@ -160,14 +160,14 @@ function Fe(e, n = void 0) {
|
|
|
160
160
|
}), n !== void 0 && i.addEvent("onFilterSubjectsChange", n)), i.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function je(e, n) {
|
|
164
164
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
|
|
165
165
|
t.droppable(e, {
|
|
166
166
|
drop: n
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function ve(e, n = void 0, t = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(i) => {
|
|
@@ -193,7 +193,7 @@ function Z() {
|
|
|
193
193
|
appsConfiguration: s,
|
|
194
194
|
appConf: r
|
|
195
195
|
};
|
|
196
|
-
}),
|
|
196
|
+
}), e;
|
|
197
197
|
}
|
|
198
198
|
function ke(e, n = void 0, t = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
@@ -210,7 +210,7 @@ function ke(e, n = void 0, t = void 0) {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
function J(e, n = void 0, t = void 0) {
|
|
213
|
-
if (
|
|
213
|
+
if (e.tenant) {
|
|
214
214
|
const i = `https://${e.tenant.toLowerCase()}-eu1-compass.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?platform=${e.tenant.toUpperCase()}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
215
215
|
m(i, {
|
|
216
216
|
onComplete(s) {
|
|
@@ -233,7 +233,7 @@ function De(e, n = void 0, t = void 0) {
|
|
|
233
233
|
m(i, {
|
|
234
234
|
onComplete(s) {
|
|
235
235
|
const r = JSON.parse(s);
|
|
236
|
-
if (
|
|
236
|
+
if (Array.isArray(r) && r.length > 0) {
|
|
237
237
|
const o = `${r[0].services[0].url}`;
|
|
238
238
|
n && n(o);
|
|
239
239
|
}
|
|
@@ -310,7 +310,7 @@ function Je(e, n, t = void 0, i = void 0) {
|
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const N = {
|
|
314
314
|
"Content-Type": "application/json",
|
|
315
315
|
Accept: "application/json,text/javascript,*/*"
|
|
316
316
|
};
|
|
@@ -331,7 +331,7 @@ function Me(e, n, t = void 0, i = void 0) {
|
|
|
331
331
|
};
|
|
332
332
|
m(a, {
|
|
333
333
|
method: "POST",
|
|
334
|
-
headers:
|
|
334
|
+
headers: N,
|
|
335
335
|
data: JSON.stringify(c),
|
|
336
336
|
onComplete(d) {
|
|
337
337
|
t && t(JSON.parse(d));
|
|
@@ -432,7 +432,7 @@ function Ee(e, n, t) {
|
|
|
432
432
|
opt: "?select=uri,title,owner,members"
|
|
433
433
|
}, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
|
|
434
434
|
method: "POST",
|
|
435
|
-
headers:
|
|
435
|
+
headers: N,
|
|
436
436
|
data: JSON.stringify({ groups: s })
|
|
437
437
|
};
|
|
438
438
|
try {
|
|
@@ -479,7 +479,7 @@ function Ke(e, n, t) {
|
|
|
479
479
|
opt: "?person_ident=email"
|
|
480
480
|
}, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers:
|
|
482
|
+
headers: N,
|
|
483
483
|
data: JSON.stringify({ users: s })
|
|
484
484
|
};
|
|
485
485
|
try {
|
|
@@ -535,7 +535,7 @@ function Xe(e, n, t, i = void 0, s = void 0) {
|
|
|
535
535
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
536
536
|
}, c = t, d = `${r}${a.URIUGr}/${n}`, u = JSON.stringify(c);
|
|
537
537
|
m(d, {
|
|
538
|
-
headers:
|
|
538
|
+
headers: N,
|
|
539
539
|
method: "PATCH",
|
|
540
540
|
data: u,
|
|
541
541
|
type: "json",
|
|
@@ -551,7 +551,7 @@ function We(e, n, t, i = void 0, s = void 0) {
|
|
|
551
551
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
|
|
552
552
|
m(a, {
|
|
553
553
|
method: "PATCH",
|
|
554
|
-
headers:
|
|
554
|
+
headers: N,
|
|
555
555
|
data: JSON.stringify(t),
|
|
556
556
|
type: "json",
|
|
557
557
|
onComplete(d) {
|
|
@@ -717,7 +717,7 @@ function O(e, n = void 0, t = void 0) {
|
|
|
717
717
|
} else
|
|
718
718
|
t && t("ERROR : url du 3DSpace non défini.");
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function v(e, n = void 0, t = void 0) {
|
|
721
721
|
let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
722
722
|
R(
|
|
723
723
|
e,
|
|
@@ -921,10 +921,10 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
921
921
|
t,
|
|
922
922
|
n,
|
|
923
923
|
(_) => {
|
|
924
|
-
const
|
|
924
|
+
const j = new DOMParser().parseFromString(
|
|
925
925
|
_,
|
|
926
926
|
"text/html"
|
|
927
|
-
).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(
|
|
927
|
+
).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
|
|
928
928
|
let W = /(?:\.([^.]+))?$/.exec(n)[1];
|
|
929
929
|
const D = JSON.stringify({
|
|
930
930
|
actions: [],
|
|
@@ -951,14 +951,14 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
951
951
|
},
|
|
952
952
|
data: D,
|
|
953
953
|
type: "json",
|
|
954
|
-
onComplete(
|
|
955
|
-
i && i(
|
|
954
|
+
onComplete(I, Ce, Oe) {
|
|
955
|
+
i && i(I);
|
|
956
956
|
},
|
|
957
|
-
onFailure(
|
|
957
|
+
onFailure(I) {
|
|
958
958
|
console.warn(
|
|
959
959
|
"_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
|
|
960
|
-
{ url: k, bodyRequest: D, err:
|
|
961
|
-
), s && s(
|
|
960
|
+
{ url: k, bodyRequest: D, err: I }
|
|
961
|
+
), s && s(I);
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
},
|
|
@@ -1200,7 +1200,7 @@ async function E(e, n = void 0, t = void 0) {
|
|
|
1200
1200
|
console.log("☠️ error => ", i);
|
|
1201
1201
|
}
|
|
1202
1202
|
), new Promise((i, s) => {
|
|
1203
|
-
|
|
1203
|
+
v(
|
|
1204
1204
|
e,
|
|
1205
1205
|
(r) => {
|
|
1206
1206
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
@@ -1629,7 +1629,7 @@ function dt(e, n = void 0, t = void 0) {
|
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
1631
1631
|
function ut(e, n, t, i) {
|
|
1632
|
-
|
|
1632
|
+
v(
|
|
1633
1633
|
e.space,
|
|
1634
1634
|
n,
|
|
1635
1635
|
(s) => {
|
|
@@ -1647,7 +1647,7 @@ function ut(e, n, t, i) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
async function pt(e, n, t = void 0, i = void 0) {
|
|
1649
1649
|
return new Promise((s) => {
|
|
1650
|
-
|
|
1650
|
+
v(e, n, (r) => {
|
|
1651
1651
|
m(r, {
|
|
1652
1652
|
onComplete: (o, a, c) => (s(JSON.parse(o)), t && t(JSON.parse(o), a, c), s),
|
|
1653
1653
|
onFailure: (o, a, c) => {
|
|
@@ -2416,7 +2416,7 @@ function xt(e, n = void 0, t = void 0) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
-
function
|
|
2419
|
+
function Nt(e, n, t) {
|
|
2420
2420
|
const {
|
|
2421
2421
|
_3DSwym: i,
|
|
2422
2422
|
_3DSwym_token: s,
|
|
@@ -2461,7 +2461,7 @@ function It(e, n, t) {
|
|
|
2461
2461
|
};
|
|
2462
2462
|
m(p.base + p.uri, l);
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function It(e, n, t = void 0, i = void 0) {
|
|
2465
2465
|
const { _3DSwym: s } = e;
|
|
2466
2466
|
let { community_id: r, limit: o, page: a, search: c } = n;
|
|
2467
2467
|
const d = [], u = 1;
|
|
@@ -2488,7 +2488,7 @@ function Nt(e, n, t = void 0, i = void 0) {
|
|
|
2488
2488
|
d.push(_.response.result);
|
|
2489
2489
|
else {
|
|
2490
2490
|
const b = _.response.result.find(
|
|
2491
|
-
(
|
|
2491
|
+
(j) => j.title.includes(c)
|
|
2492
2492
|
);
|
|
2493
2493
|
if (b) {
|
|
2494
2494
|
t(b);
|
|
@@ -2649,7 +2649,7 @@ function Ft(e, n = void 0, t = void 0) {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|
|
2652
|
-
function
|
|
2652
|
+
function jt(e, n, t = void 0, i = void 0) {
|
|
2653
2653
|
const s = e.space + "/api/user/find/login/" + n;
|
|
2654
2654
|
C(
|
|
2655
2655
|
e,
|
|
@@ -2669,7 +2669,7 @@ function vt(e, n, t = void 0, i = void 0) {
|
|
|
2669
2669
|
i
|
|
2670
2670
|
);
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function vt(e, n = void 0, t = void 0) {
|
|
2673
2673
|
const {
|
|
2674
2674
|
_3DSwym: i,
|
|
2675
2675
|
_3DSwym_token: s,
|
|
@@ -3026,7 +3026,7 @@ export {
|
|
|
3026
3026
|
de as _3DSpace_get_downloadTicket_multidoc,
|
|
3027
3027
|
Ye as _3DSpace_get_multiDocInfo,
|
|
3028
3028
|
F as _3DSpace_get_securityContexts,
|
|
3029
|
-
|
|
3029
|
+
v as _3DSpace_get_ticket,
|
|
3030
3030
|
ot as _3DSpace_lifecycle_changeRevision,
|
|
3031
3031
|
nt as _3DSpace_lifecycle_changeState,
|
|
3032
3032
|
st as _3DSpace_lifecycle_getGraph,
|
|
@@ -3035,13 +3035,13 @@ export {
|
|
|
3035
3035
|
at as _3DSpace_lifecycle_getRevisions,
|
|
3036
3036
|
He as _3DSpace_put_docInfo,
|
|
3037
3037
|
Rt as _3DSwym_ForwardIdea,
|
|
3038
|
-
|
|
3038
|
+
vt as _3DSwym_addComment,
|
|
3039
3039
|
bt as _3DSwym_buildDirectMessage,
|
|
3040
3040
|
Ut as _3DSwym_deleteIdea,
|
|
3041
|
-
|
|
3041
|
+
Nt as _3DSwym_editIdea,
|
|
3042
3042
|
ye as _3DSwym_findCommunityToInstantMSG,
|
|
3043
3043
|
Ct as _3DSwym_getAllCommunities,
|
|
3044
|
-
|
|
3044
|
+
It as _3DSwym_getAllListIdeas,
|
|
3045
3045
|
St as _3DSwym_getAllNews,
|
|
3046
3046
|
wt as _3DSwym_getFamiliarPeople,
|
|
3047
3047
|
Ot as _3DSwym_getIdeaStatusMaturity,
|
|
@@ -3049,7 +3049,7 @@ export {
|
|
|
3049
3049
|
xt as _3DSwym_getOneIdea,
|
|
3050
3050
|
C as _3DSwym_get_Token,
|
|
3051
3051
|
Ft as _3DSwym_get_currentUser,
|
|
3052
|
-
|
|
3052
|
+
jt as _3DSwym_get_findUser,
|
|
3053
3053
|
$t as _3DSwym_postIdea,
|
|
3054
3054
|
Tt as _3DSwym_postIdeaTemplate,
|
|
3055
3055
|
P as _3DSwym_sendMessageData,
|
|
@@ -3072,13 +3072,13 @@ export {
|
|
|
3072
3072
|
Ae as _Registry_getServicesUrl,
|
|
3073
3073
|
ke as _getMe,
|
|
3074
3074
|
Z as _getPlateformInfos,
|
|
3075
|
-
|
|
3075
|
+
ve as _getPlatformServices,
|
|
3076
3076
|
J as _getServiceUrl,
|
|
3077
3077
|
De as _getServiceUrl_3DPassport,
|
|
3078
3078
|
kt as _getServiceUrl_Iterop,
|
|
3079
3079
|
m as _httpCallAuthenticated,
|
|
3080
3080
|
Re as _setDraggable,
|
|
3081
|
-
|
|
3081
|
+
je as _setDroppable,
|
|
3082
3082
|
Fe as _setupTagger,
|
|
3083
3083
|
ht as addTagToDoc,
|
|
3084
3084
|
H as chunkArray,
|
|
@@ -3093,7 +3093,7 @@ export {
|
|
|
3093
3093
|
Ue as getCommunes,
|
|
3094
3094
|
Ge as getComplementUG,
|
|
3095
3095
|
ut as getDataFrom3DSpace,
|
|
3096
|
-
|
|
3096
|
+
Ne as getDataFromGouvFr,
|
|
3097
3097
|
mt as getDatasByTenant,
|
|
3098
3098
|
gt as getDatasFrom3DSpace,
|
|
3099
3099
|
pt as getDownloadDocument,
|
|
@@ -3109,6 +3109,6 @@ export {
|
|
|
3109
3109
|
Ve as readUserGroupControl,
|
|
3110
3110
|
yt as removeTagToDoc,
|
|
3111
3111
|
Yt as sayHello,
|
|
3112
|
-
|
|
3112
|
+
Ie as updateEvent
|
|
3113
3113
|
};
|
|
3114
3114
|
//# sourceMappingURL=wb3Api.js.map
|