@beam3_dev/api_module 0.0.144 → 0.0.146
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 -28
- 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
|
@@ -250,7 +250,7 @@ function ye(e, t, n = void 0, s = void 0) {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const k = {
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
@@ -271,7 +271,7 @@ function we(e, t, n = void 0, s = void 0) {
|
|
|
271
271
|
};
|
|
272
272
|
f(i, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
274
|
+
headers: k,
|
|
275
275
|
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
@@ -366,7 +366,7 @@ function be(e, t, n, s = void 0, a = void 0) {
|
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
367
|
}, c = n, d = `${r}${i.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
368
368
|
f(d, {
|
|
369
|
-
headers:
|
|
369
|
+
headers: k,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: p,
|
|
372
372
|
type: "json",
|
|
@@ -382,7 +382,7 @@ function Ne(e, t, n, s = void 0, a = void 0) {
|
|
|
382
382
|
const { space: r } = e, i = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
f(i, {
|
|
384
384
|
method: "PATCH",
|
|
385
|
-
headers:
|
|
385
|
+
headers: k,
|
|
386
386
|
data: JSON.stringify(n),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -441,7 +441,7 @@ async function V(e, t = void 0, n = void 0, s = void 0) {
|
|
|
441
441
|
}
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function I(e, t = void 0, n = void 0) {
|
|
445
445
|
if (e.objID && e.objID !== "") {
|
|
446
446
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
447
447
|
f(s, {
|
|
@@ -483,9 +483,9 @@ function T(e, t = void 0, n = void 0) {
|
|
|
483
483
|
} else
|
|
484
484
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function A(e, t = void 0, n = void 0) {
|
|
487
487
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
488
|
-
|
|
488
|
+
I(
|
|
489
489
|
e,
|
|
490
490
|
(a) => {
|
|
491
491
|
f(s, {
|
|
@@ -507,7 +507,7 @@ function k(e, t = void 0, n = void 0) {
|
|
|
507
507
|
}
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ie(e, t, n, s = void 0, a = void 0) {
|
|
511
511
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
512
512
|
n || (n = e.token), f(r, {
|
|
513
513
|
method: "PUT",
|
|
@@ -530,7 +530,7 @@ function $e(e, t, n, s = void 0, a = void 0) {
|
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
532
|
function X(e, t, n, s, a, r = void 0, o = void 0) {
|
|
533
|
-
|
|
533
|
+
I(
|
|
534
534
|
e,
|
|
535
535
|
t,
|
|
536
536
|
(i) => {
|
|
@@ -598,7 +598,7 @@ function W(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
|
598
598
|
}
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
async function
|
|
601
|
+
async function $e(e, t, n, s, a = void 0, r = void 0) {
|
|
602
602
|
const o = e.space, i = e.token, c = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
|
|
603
603
|
type: "text/plain"
|
|
604
604
|
}), l = {
|
|
@@ -622,7 +622,7 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
|
|
|
622
622
|
data: d,
|
|
623
623
|
onComplete(C) {
|
|
624
624
|
if (c !== "" && i !== "") {
|
|
625
|
-
const
|
|
625
|
+
const $ = {
|
|
626
626
|
method: "POST",
|
|
627
627
|
headers: {
|
|
628
628
|
ENO_CSRF_TOKEN: i,
|
|
@@ -653,7 +653,7 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
|
|
|
653
653
|
onComplete: _,
|
|
654
654
|
onFailure: y
|
|
655
655
|
};
|
|
656
|
-
c !== "" && f(l.url_Post,
|
|
656
|
+
c !== "" && f(l.url_Post, $);
|
|
657
657
|
} else
|
|
658
658
|
console.warn("le store est vide");
|
|
659
659
|
},
|
|
@@ -662,9 +662,9 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
|
|
|
662
662
|
function _(C) {
|
|
663
663
|
console.log("Success -- response ", C.data[0]), a && a(C);
|
|
664
664
|
}
|
|
665
|
-
function y(C,
|
|
665
|
+
function y(C, $) {
|
|
666
666
|
console.log("Erreur -- response ", C, `
|
|
667
|
-
headers `,
|
|
667
|
+
headers `, $), r && r(C);
|
|
668
668
|
}
|
|
669
669
|
f(h.ticketURL, S);
|
|
670
670
|
}
|
|
@@ -735,7 +735,7 @@ async function P(e, t = void 0, n = void 0) {
|
|
|
735
735
|
), console.warn(
|
|
736
736
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
737
737
|
)), new Promise((s, a) => {
|
|
738
|
-
|
|
738
|
+
A(
|
|
739
739
|
e,
|
|
740
740
|
(r) => {
|
|
741
741
|
f(r, {
|
|
@@ -840,7 +840,7 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
|
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
844
844
|
return new Promise((a) => {
|
|
845
845
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
846
846
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -879,7 +879,7 @@ function Ae(e, t, n = void 0, s = void 0) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Ae(e, t, n, s = void 0, a = void 0) {
|
|
883
883
|
return new Promise((r) => {
|
|
884
884
|
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
885
885
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1092,7 +1092,7 @@ function Pe(e, t = void 0, n = void 0) {
|
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
1094
|
function Re(e, t, n, s) {
|
|
1095
|
-
|
|
1095
|
+
A(
|
|
1096
1096
|
e.space,
|
|
1097
1097
|
t,
|
|
1098
1098
|
(a) => {
|
|
@@ -1110,7 +1110,7 @@ function Re(e, t, n, s) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
async function xe(e, t, n = void 0, s = void 0) {
|
|
1112
1112
|
return new Promise((a) => {
|
|
1113
|
-
|
|
1113
|
+
A(e, t, (r) => {
|
|
1114
1114
|
f(r, {
|
|
1115
1115
|
onComplete: (o, i, c) => (a(JSON.parse(o)), n && n(JSON.parse(o), i, c), a),
|
|
1116
1116
|
onFailure: (o, i, c) => {
|
|
@@ -1122,7 +1122,7 @@ async function xe(e, t, n = void 0, s = void 0) {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
function Me(e, t, n, s = void 0, a = void 0) {
|
|
1124
1124
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1125
|
-
|
|
1125
|
+
I(
|
|
1126
1126
|
e,
|
|
1127
1127
|
n,
|
|
1128
1128
|
(o) => {
|
|
@@ -1146,7 +1146,7 @@ function Me(e, t, n, s = void 0, a = void 0) {
|
|
|
1146
1146
|
let R, x;
|
|
1147
1147
|
const F = [];
|
|
1148
1148
|
async function Le(e, t = void 0, n = void 0) {
|
|
1149
|
-
e.objID && e.objID !== "" ?
|
|
1149
|
+
e.objID && e.objID !== "" ? I(
|
|
1150
1150
|
e,
|
|
1151
1151
|
(s) => {
|
|
1152
1152
|
t && t(s);
|
|
@@ -2005,7 +2005,7 @@ async function at(e, t, n = void 0, s = void 0) {
|
|
|
2005
2005
|
async function ot(e, t, n, s, a = void 0, r = void 0) {
|
|
2006
2006
|
e.tenant && v(e, (o) => {
|
|
2007
2007
|
const c = `${o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
|
|
2008
|
-
fetch(`https://api.uixhome.fr/iterop/runtime/processes
|
|
2008
|
+
fetch(`https://api.uixhome.fr/iterop/runtime/processes?k=${n}&t=${t}&s=${c}&b=${encodeURIComponent(s)}`, {
|
|
2009
2009
|
method: "POST"
|
|
2010
2010
|
}).then((d) => d.json()).then((d) => {
|
|
2011
2011
|
a && a(d);
|
|
@@ -2100,24 +2100,24 @@ function ct(e, t = void 0, n = void 0) {
|
|
|
2100
2100
|
export {
|
|
2101
2101
|
D as UUID,
|
|
2102
2102
|
ct as _3DSearch_usersGroup,
|
|
2103
|
-
|
|
2103
|
+
$e as _3DSpace_Create_Doc,
|
|
2104
2104
|
De as _3DSpace_bookmark_addSubsciptions,
|
|
2105
2105
|
T as _3DSpace_csrf,
|
|
2106
2106
|
P as _3DSpace_download_doc,
|
|
2107
2107
|
B as _3DSpace_download_multidoc,
|
|
2108
2108
|
X as _3DSpace_file_update,
|
|
2109
2109
|
W as _3DSpace_file_update_csr,
|
|
2110
|
-
|
|
2111
|
-
|
|
2110
|
+
Ie as _3DSpace_file_url_csr,
|
|
2111
|
+
I as _3DSpace_get_csrf,
|
|
2112
2112
|
V as _3DSpace_get_docInfo,
|
|
2113
2113
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2114
2114
|
b as _3DSpace_get_securityContexts,
|
|
2115
|
-
|
|
2115
|
+
A as _3DSpace_get_ticket,
|
|
2116
2116
|
je as _3DSpace_lifecycle_changeRevision,
|
|
2117
|
-
|
|
2117
|
+
Ae as _3DSpace_lifecycle_changeState,
|
|
2118
2118
|
Fe as _3DSpace_lifecycle_getGraph,
|
|
2119
2119
|
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
2120
|
-
|
|
2120
|
+
ke as _3DSpace_lifecycle_getNextStates,
|
|
2121
2121
|
qe as _3DSwym_buildDirectMessage,
|
|
2122
2122
|
ze as _3DSwym_deleteIdea,
|
|
2123
2123
|
te as _3DSwym_findCommunityToInstantMSG,
|