@beam3_dev/api_module 0.0.236 → 0.0.238
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 +98 -87
- 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
|
@@ -284,11 +284,11 @@ function Fe(e, t, n = void 0, s = void 0) {
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const k = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Ae(e, t, n = void 0, s = void 0) {
|
|
292
292
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
@@ -305,7 +305,7 @@ function ke(e, t, n = void 0, s = void 0) {
|
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: k,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
n && n(JSON.parse(d));
|
|
@@ -317,7 +317,7 @@ function ke(e, t, n = void 0, s = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
321
321
|
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
322
322
|
m(d, {
|
|
323
323
|
opts: {
|
|
@@ -352,7 +352,7 @@ function Y(e, t = void 0, n = void 0) {
|
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function je(e, t = void 0, n = void 0) {
|
|
356
356
|
const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
357
357
|
"Content-Type": "application/json",
|
|
358
358
|
Accept: "application/json,text/javascript,*/*"
|
|
@@ -383,7 +383,7 @@ function Ue(e, t = void 0, n = void 0) {
|
|
|
383
383
|
console.log(u);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ue(e, t) {
|
|
387
387
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
@@ -400,7 +400,7 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
400
400
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
401
|
}, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
|
-
headers:
|
|
403
|
+
headers: k,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: u,
|
|
406
406
|
type: "json",
|
|
@@ -416,7 +416,7 @@ function Pe(e, t, n, s = void 0, i = void 0) {
|
|
|
416
416
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
417
|
m(a, {
|
|
418
418
|
method: "PATCH",
|
|
419
|
-
headers:
|
|
419
|
+
headers: k,
|
|
420
420
|
data: JSON.stringify(n),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -582,7 +582,7 @@ function O(e, t = void 0, n = void 0) {
|
|
|
582
582
|
} else
|
|
583
583
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function j(e, t = void 0, n = void 0) {
|
|
586
586
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
587
|
F(
|
|
588
588
|
e,
|
|
@@ -847,7 +847,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function A(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
851
851
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
852
852
|
m(a, {
|
|
853
853
|
method: "GET",
|
|
@@ -912,7 +912,7 @@ async function L(e, t = void 0, n = void 0) {
|
|
|
912
912
|
console.log("☠️ error => ", s);
|
|
913
913
|
}
|
|
914
914
|
), new Promise((s, i) => {
|
|
915
|
-
|
|
915
|
+
j(
|
|
916
916
|
e,
|
|
917
917
|
(r) => {
|
|
918
918
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
@@ -1082,7 +1082,7 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1082
1082
|
return new Promise((i) => {
|
|
1083
1083
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1084
1084
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1085
|
-
|
|
1085
|
+
A(
|
|
1086
1086
|
e.space,
|
|
1087
1087
|
"ESPACE COMMUN",
|
|
1088
1088
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1123,7 +1123,7 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1123
1123
|
return new Promise((i) => {
|
|
1124
1124
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1125
1125
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1126
|
-
|
|
1126
|
+
A(
|
|
1127
1127
|
e.space,
|
|
1128
1128
|
"ESPACE COMMUN",
|
|
1129
1129
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1170,7 +1170,7 @@ function Ve(e, t, n, s = void 0, i = void 0) {
|
|
|
1170
1170
|
return new Promise((r) => {
|
|
1171
1171
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1172
1172
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1173
|
-
|
|
1173
|
+
A(
|
|
1174
1174
|
e.space,
|
|
1175
1175
|
"ESPACE COMMUN",
|
|
1176
1176
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1292,7 +1292,7 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
function Ye(e, t, n, s) {
|
|
1295
|
-
|
|
1295
|
+
j(
|
|
1296
1296
|
e.space,
|
|
1297
1297
|
t,
|
|
1298
1298
|
(i) => {
|
|
@@ -1310,7 +1310,7 @@ function Ye(e, t, n, s) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
async function He(e, t, n = void 0, s = void 0) {
|
|
1312
1312
|
return new Promise((i) => {
|
|
1313
|
-
|
|
1313
|
+
j(e, t, (r) => {
|
|
1314
1314
|
m(r, {
|
|
1315
1315
|
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1316
1316
|
onFailure: (o, a, c) => {
|
|
@@ -1344,7 +1344,7 @@ function ze(e, t, n, s = void 0, i = void 0) {
|
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
1346
|
let M, J;
|
|
1347
|
-
const
|
|
1347
|
+
const U = [];
|
|
1348
1348
|
async function Qe(e, t = void 0, n = void 0) {
|
|
1349
1349
|
e.objID && e.objID !== "" ? F(
|
|
1350
1350
|
e,
|
|
@@ -1398,7 +1398,7 @@ function oe(e, t, n = void 0, s = void 0) {
|
|
|
1398
1398
|
M,
|
|
1399
1399
|
(i) => {
|
|
1400
1400
|
const r = [...t];
|
|
1401
|
-
r.find((o) => o.objectID === i.objectId).data = i.data, J = r,
|
|
1401
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, J = r, U.push(i.data), n && n(U);
|
|
1402
1402
|
},
|
|
1403
1403
|
(i) => {
|
|
1404
1404
|
s && (s(i), console.log(i));
|
|
@@ -2049,71 +2049,77 @@ function pt(e, t, n = void 0, s = void 0) {
|
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
2051
|
function lt(e, t = void 0, n = void 0) {
|
|
2052
|
-
const s = `${
|
|
2052
|
+
const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
|
|
2053
2053
|
if (e.idPost === "") {
|
|
2054
|
-
const
|
|
2055
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2054
|
+
const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2055
|
+
throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
|
|
2056
2056
|
}
|
|
2057
|
-
const
|
|
2057
|
+
const o = {
|
|
2058
2058
|
params: {
|
|
2059
2059
|
id: e.idPost
|
|
2060
2060
|
}
|
|
2061
2061
|
};
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
}
|
|
2078
|
-
});
|
|
2062
|
+
m(r, {
|
|
2063
|
+
method: "POST",
|
|
2064
|
+
headers: {
|
|
2065
|
+
"Content-type": "application/json;charset=UTF-8",
|
|
2066
|
+
Accept: "application/json",
|
|
2067
|
+
"X-DS-SWYM-CSRFTOKEN": i
|
|
2068
|
+
},
|
|
2069
|
+
data: JSON.stringify(o),
|
|
2070
|
+
onComplete(a) {
|
|
2071
|
+
t && t({ response: a });
|
|
2072
|
+
},
|
|
2073
|
+
onFailure(a) {
|
|
2074
|
+
const c = a;
|
|
2075
|
+
c.status = headers.status, c.response = headers.errormsg, n && n(c);
|
|
2076
|
+
}
|
|
2079
2077
|
});
|
|
2080
2078
|
}
|
|
2081
2079
|
function ft(e, t, n) {
|
|
2082
|
-
const
|
|
2083
|
-
|
|
2080
|
+
const {
|
|
2081
|
+
_3DSwym: s,
|
|
2082
|
+
_3DSwym_token: i,
|
|
2083
|
+
idPost: r,
|
|
2084
|
+
title: o,
|
|
2085
|
+
community_id: a,
|
|
2086
|
+
status_comment: c,
|
|
2087
|
+
status_id: d,
|
|
2088
|
+
message: u
|
|
2089
|
+
} = e, p = {
|
|
2090
|
+
base: `${s}/api/idea/edit`,
|
|
2084
2091
|
uri: "/api/idea/edit"
|
|
2085
|
-
},
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2092
|
+
}, l = {
|
|
2093
|
+
method: "POST",
|
|
2094
|
+
headers: {
|
|
2095
|
+
"Content-type": "application/json;charset=UTF-8",
|
|
2096
|
+
Accept: "application/json",
|
|
2097
|
+
"X-DS-SWYM-CSRFTOKEN": i
|
|
2098
|
+
},
|
|
2099
|
+
data: JSON.stringify({
|
|
2100
|
+
params: {
|
|
2101
|
+
out: "false",
|
|
2102
|
+
id: r,
|
|
2103
|
+
title: o,
|
|
2104
|
+
community_id: a,
|
|
2105
|
+
status_comment: c,
|
|
2106
|
+
status_id: d,
|
|
2107
|
+
message: u,
|
|
2108
|
+
published: "1"
|
|
2109
|
+
}
|
|
2110
|
+
}),
|
|
2111
|
+
type: "json",
|
|
2112
|
+
onComplete(g, h, y) {
|
|
2113
|
+
const S = {
|
|
2114
|
+
response: typeof g == "string" ? JSON.parse(g) : g
|
|
2115
|
+
};
|
|
2116
|
+
S.status = y.status, t && t(S);
|
|
2117
|
+
},
|
|
2118
|
+
onFailure(g) {
|
|
2119
|
+
n && n(g);
|
|
2095
2120
|
}
|
|
2096
2121
|
};
|
|
2097
|
-
|
|
2098
|
-
const o = {
|
|
2099
|
-
method: "POST",
|
|
2100
|
-
headers: {
|
|
2101
|
-
"X-DS-SWYM-CSRFTOKEN": r?.result?.ServerToken,
|
|
2102
|
-
"Content-type": "application/json;charset=UTF-8"
|
|
2103
|
-
},
|
|
2104
|
-
data: JSON.stringify(i),
|
|
2105
|
-
onComplete(a, c, d) {
|
|
2106
|
-
const u = {
|
|
2107
|
-
response: typeof a == "string" ? JSON.parse(a) : a
|
|
2108
|
-
};
|
|
2109
|
-
u.status = d.status, t && t(u);
|
|
2110
|
-
},
|
|
2111
|
-
onFailure(a) {
|
|
2112
|
-
n && n(a);
|
|
2113
|
-
}
|
|
2114
|
-
};
|
|
2115
|
-
m(s.base + s.uri, o);
|
|
2116
|
-
});
|
|
2122
|
+
m(p.base + p.uri, l);
|
|
2117
2123
|
}
|
|
2118
2124
|
function mt(e, t, n = void 0, s = void 0) {
|
|
2119
2125
|
const { _3DSwym: i } = e;
|
|
@@ -2266,7 +2272,12 @@ function gt(e, t = void 0, n = void 0) {
|
|
|
2266
2272
|
}
|
|
2267
2273
|
});
|
|
2268
2274
|
} else
|
|
2269
|
-
n && n({
|
|
2275
|
+
n && n({
|
|
2276
|
+
status: "error",
|
|
2277
|
+
msg: "Credentials incomplet !",
|
|
2278
|
+
attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id",
|
|
2279
|
+
credentials: e
|
|
2280
|
+
});
|
|
2270
2281
|
}
|
|
2271
2282
|
function ht(e, t = void 0, n = void 0) {
|
|
2272
2283
|
const s = e._3DSwym + "/api/user/getcurrent/";
|
|
@@ -2472,7 +2483,7 @@ async function Ft(e, t, n, s = void 0, i = void 0) {
|
|
|
2472
2483
|
});
|
|
2473
2484
|
});
|
|
2474
2485
|
}
|
|
2475
|
-
async function
|
|
2486
|
+
async function At(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2476
2487
|
e.tenant && b(e, (a) => {
|
|
2477
2488
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2478
2489
|
const c = e.tenant.toLowerCase();
|
|
@@ -2488,7 +2499,7 @@ async function kt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
2488
2499
|
});
|
|
2489
2500
|
});
|
|
2490
2501
|
}
|
|
2491
|
-
async function
|
|
2502
|
+
async function kt(e, t, n, s, i = void 0, r = void 0) {
|
|
2492
2503
|
e.tenant && b(e, (o) => {
|
|
2493
2504
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2494
2505
|
const a = e.tenant.toLowerCase();
|
|
@@ -2505,7 +2516,7 @@ async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2505
2516
|
});
|
|
2506
2517
|
}
|
|
2507
2518
|
//!SECTION
|
|
2508
|
-
async function
|
|
2519
|
+
async function jt(e, t, n, s = void 0, i = void 0) {
|
|
2509
2520
|
if (e.tenant) {
|
|
2510
2521
|
const r = e.tenant.toLowerCase();
|
|
2511
2522
|
fetch(
|
|
@@ -2521,7 +2532,7 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
|
|
|
2521
2532
|
}
|
|
2522
2533
|
}
|
|
2523
2534
|
//!SECTION
|
|
2524
|
-
function
|
|
2535
|
+
function Ut(e) {
|
|
2525
2536
|
const t = "Hello " + e;
|
|
2526
2537
|
return console.log(t), t;
|
|
2527
2538
|
}
|
|
@@ -2531,7 +2542,7 @@ function xt(e, t = void 0, n = void 0) {
|
|
|
2531
2542
|
const o = q();
|
|
2532
2543
|
console.log("platformeInfo", o);
|
|
2533
2544
|
}
|
|
2534
|
-
|
|
2545
|
+
A(
|
|
2535
2546
|
e,
|
|
2536
2547
|
"Common space",
|
|
2537
2548
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2621,8 +2632,8 @@ export {
|
|
|
2621
2632
|
R as _3DSpace_get_docInfo,
|
|
2622
2633
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2623
2634
|
De as _3DSpace_get_multiDocInfo,
|
|
2624
|
-
|
|
2625
|
-
|
|
2635
|
+
A as _3DSpace_get_securityContexts,
|
|
2636
|
+
j as _3DSpace_get_ticket,
|
|
2626
2637
|
Ve as _3DSpace_lifecycle_changeRevision,
|
|
2627
2638
|
Ee as _3DSpace_lifecycle_changeState,
|
|
2628
2639
|
Ke as _3DSpace_lifecycle_getGraph,
|
|
@@ -2651,10 +2662,10 @@ export {
|
|
|
2651
2662
|
$t as _Iterop_AddOrRemoveRows,
|
|
2652
2663
|
_t as _Iterop_Auth_CAS,
|
|
2653
2664
|
Ft as _Iterop_GetOneDependencyTable,
|
|
2654
|
-
|
|
2665
|
+
jt as _Iterop_GetOneList,
|
|
2655
2666
|
Ct as _Iterop_ListUsers,
|
|
2656
|
-
|
|
2657
|
-
|
|
2667
|
+
At as _Iterop_PatchDependencyTable,
|
|
2668
|
+
kt as _Iterop_PutDependencyTable,
|
|
2658
2669
|
It as _Iterop_businessTableSearchInRows,
|
|
2659
2670
|
Tt as _Iterop_getAllBusinessTables,
|
|
2660
2671
|
bt as _Iterop_getOneBusinessTable,
|
|
@@ -2675,21 +2686,21 @@ export {
|
|
|
2675
2686
|
W as chunkArray,
|
|
2676
2687
|
Ne as compass_getListAdditionalApps,
|
|
2677
2688
|
V as couleurs,
|
|
2678
|
-
|
|
2689
|
+
Ae as createUserGroups,
|
|
2679
2690
|
oe as dataMixing,
|
|
2680
|
-
|
|
2691
|
+
Ue as deleteUserGroups,
|
|
2681
2692
|
_e as findAdresse,
|
|
2682
2693
|
qe as getAllContextSecurity,
|
|
2683
2694
|
H as getCSRFToken,
|
|
2684
2695
|
Se as getCommunes,
|
|
2685
|
-
|
|
2696
|
+
ke as getComplementUG,
|
|
2686
2697
|
Ye as getDataFrom3DSpace,
|
|
2687
2698
|
we as getDataFromGouvFr,
|
|
2688
2699
|
Ze as getDatasByTenant,
|
|
2689
2700
|
et as getDatasFrom3DSpace,
|
|
2690
2701
|
He as getDownloadDocument,
|
|
2691
2702
|
st as getInfoDocTags,
|
|
2692
|
-
|
|
2703
|
+
je as getUserGroupsList,
|
|
2693
2704
|
Y as getUsersGroupRules,
|
|
2694
2705
|
Qe as get_3DSpace_csrf,
|
|
2695
2706
|
xe as patchUserGroups,
|
|
@@ -2697,7 +2708,7 @@ export {
|
|
|
2697
2708
|
ze as pushDataIn3DSpace,
|
|
2698
2709
|
Re as readUserGroupControl,
|
|
2699
2710
|
nt as removeTagToDoc,
|
|
2700
|
-
|
|
2711
|
+
Ut as sayHello,
|
|
2701
2712
|
Ce as updateEvent
|
|
2702
2713
|
};
|
|
2703
2714
|
//# sourceMappingURL=wb3Api.js.map
|