@beam3_dev/api_module 0.0.143 → 0.0.145
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 +19 -20
- 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
|
@@ -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) {
|
|
@@ -483,7 +483,7 @@ 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
|
$(
|
|
489
489
|
e,
|
|
@@ -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) => {
|
|
@@ -2004,14 +2004,13 @@ async function at(e, t, n = void 0, s = void 0) {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
async function ot(e, t, n, s, a = void 0, r = void 0) {
|
|
2006
2006
|
e.tenant && v(e, (o) => {
|
|
2007
|
-
const c = `${o.services.find((
|
|
2008
|
-
|
|
2009
|
-
d.fetch(`https://api.uixhome.fr/iterop/runtime/processes/${n}?t=${t}&s=${c}&b=${s}`, {
|
|
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?k=${n}&t=${t}&s=${c}&b=${s}`, {
|
|
2010
2009
|
method: "POST"
|
|
2011
|
-
}).then((
|
|
2012
|
-
a && a(
|
|
2013
|
-
}).catch((
|
|
2014
|
-
r && r(
|
|
2010
|
+
}).then((d) => d.json()).then((d) => {
|
|
2011
|
+
a && a(d);
|
|
2012
|
+
}).catch((d) => {
|
|
2013
|
+
r && r(d);
|
|
2015
2014
|
});
|
|
2016
2015
|
});
|
|
2017
2016
|
}
|
|
@@ -2113,12 +2112,12 @@ export {
|
|
|
2113
2112
|
V as _3DSpace_get_docInfo,
|
|
2114
2113
|
Y as _3DSpace_get_downloadTicket_multidoc,
|
|
2115
2114
|
b as _3DSpace_get_securityContexts,
|
|
2116
|
-
|
|
2115
|
+
A as _3DSpace_get_ticket,
|
|
2117
2116
|
je as _3DSpace_lifecycle_changeRevision,
|
|
2118
|
-
|
|
2117
|
+
Ae as _3DSpace_lifecycle_changeState,
|
|
2119
2118
|
Fe as _3DSpace_lifecycle_getGraph,
|
|
2120
2119
|
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
2121
|
-
|
|
2120
|
+
ke as _3DSpace_lifecycle_getNextStates,
|
|
2122
2121
|
qe as _3DSwym_buildDirectMessage,
|
|
2123
2122
|
ze as _3DSwym_deleteIdea,
|
|
2124
2123
|
te as _3DSwym_findCommunityToInstantMSG,
|