@beam3_dev/api_module 0.0.196 → 0.0.198
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/README.md +4 -5
- package/dist/wb3Api.js +23 -22
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -4
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +58 -58
package/README.md
CHANGED
|
@@ -10,17 +10,16 @@ disponible [sur le marcketplace](https://marketplace.visualstudio.com/items?item
|
|
|
10
10
|
## installation
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
npm i -D
|
|
13
|
+
npm i -D @beam3_dev/api_module
|
|
14
14
|
# ou
|
|
15
|
-
yarn add -D
|
|
15
|
+
yarn add -D @beam3_dev/api_module
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Mise a jour
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
npm run
|
|
22
|
-
|
|
23
|
-
npm run b3:publish
|
|
21
|
+
npm run module
|
|
22
|
+
|
|
24
23
|
```
|
|
25
24
|
|
|
26
25
|
## Attention
|
package/dist/wb3Api.js
CHANGED
|
@@ -147,7 +147,7 @@ async function Te(e, t = void 0, s = void 0) {
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function X() {
|
|
151
151
|
let e = {};
|
|
152
152
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
153
153
|
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
@@ -302,7 +302,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function W(e, t = void 0, s = void 0) {
|
|
306
306
|
const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
@@ -330,7 +330,7 @@ function Ie(e, t = void 0, s = void 0) {
|
|
|
330
330
|
const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (i && Object.keys(i).length > 0) {
|
|
332
332
|
const g = l.filter((y) => y.owner === i.email), h = l.filter((y) => y.members.includes(i.email)), S = g.concat(h);
|
|
333
|
-
f.iam = S, f.UG = l, f.iamMember = h,
|
|
333
|
+
f.iam = S, f.UG = l, f.iamMember = h, W(
|
|
334
334
|
e,
|
|
335
335
|
(y) => {
|
|
336
336
|
f.rules = y, t && t(f);
|
|
@@ -428,7 +428,7 @@ var I = {};
|
|
|
428
428
|
function q(e, t) {
|
|
429
429
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var H = function(e, t, s, n) {
|
|
432
432
|
t = t || "&", s = s || "=";
|
|
433
433
|
var i = {};
|
|
434
434
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -455,7 +455,7 @@ var z = function(e, t, s, n) {
|
|
|
455
455
|
default:
|
|
456
456
|
return "";
|
|
457
457
|
}
|
|
458
|
-
},
|
|
458
|
+
}, z = function(e, t, s, n) {
|
|
459
459
|
return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
460
460
|
var r = encodeURIComponent(v(i)) + s;
|
|
461
461
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
@@ -463,8 +463,8 @@ var z = function(e, t, s, n) {
|
|
|
463
463
|
}).join(t) : r + encodeURIComponent(v(e[i]));
|
|
464
464
|
}).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
|
|
465
465
|
};
|
|
466
|
-
I.decode = I.parse =
|
|
467
|
-
I.encode = I.stringify =
|
|
466
|
+
I.decode = I.parse = H;
|
|
467
|
+
I.encode = I.stringify = z;
|
|
468
468
|
async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
469
469
|
const i = e.space;
|
|
470
470
|
if (t === void 0) {
|
|
@@ -1242,7 +1242,7 @@ function Ve(e, t, s, n) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
);
|
|
1244
1244
|
}
|
|
1245
|
-
async function
|
|
1245
|
+
async function Xe(e, t, s = void 0, n = void 0) {
|
|
1246
1246
|
return new Promise((i) => {
|
|
1247
1247
|
j(e, t, (r) => {
|
|
1248
1248
|
m(r, {
|
|
@@ -1254,7 +1254,7 @@ async function We(e, t, s = void 0, n = void 0) {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
});
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function We(e, t, s, n = void 0, i = void 0) {
|
|
1258
1258
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1259
1259
|
A(
|
|
1260
1260
|
e,
|
|
@@ -1310,7 +1310,7 @@ async function qe(e, t = void 0, s = void 0) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
);
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function He(e, t = void 0, s = void 0) {
|
|
1314
1314
|
const n = [];
|
|
1315
1315
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1316
1316
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
@@ -1359,7 +1359,7 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1359
1359
|
order_by: "desc",
|
|
1360
1360
|
tag: "testTag"
|
|
1361
1361
|
};
|
|
1362
|
-
function
|
|
1362
|
+
function ze(e, t, s = void 0, n = void 0) {
|
|
1363
1363
|
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1364
1364
|
uri: "/resources/6w/tags",
|
|
1365
1365
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1638,7 +1638,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1638
1638
|
const n = {
|
|
1639
1639
|
base: e.space,
|
|
1640
1640
|
uri: "/api/community/listmycommunities",
|
|
1641
|
-
limit: `/limit/${e.limit ? e.limit :
|
|
1641
|
+
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1642
1642
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1643
1643
|
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1644
1644
|
w(e, (o) => {
|
|
@@ -2062,8 +2062,9 @@ function dt(e, t, s) {
|
|
|
2062
2062
|
function pt(e, t = de, s = void 0, n = void 0) {
|
|
2063
2063
|
const i = {
|
|
2064
2064
|
uri: "/api/idea/list",
|
|
2065
|
-
comId: `/community_id/${
|
|
2066
|
-
limit: `/limit/${t.limit ? t.limit :
|
|
2065
|
+
comId: `/community_id/${t.community_id}`,
|
|
2066
|
+
limit: `/limit/${t.limit ? t.limit : 1e3}`,
|
|
2067
|
+
page: `/page/${t.page ? t.page : 1}`
|
|
2067
2068
|
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
2068
2069
|
w(e, (o) => {
|
|
2069
2070
|
m(r, {
|
|
@@ -2370,7 +2371,7 @@ function $t(e) {
|
|
|
2370
2371
|
function vt(e, t = void 0, s = void 0) {
|
|
2371
2372
|
return console.log("credentials", e), new Promise((n) => {
|
|
2372
2373
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2373
|
-
const o =
|
|
2374
|
+
const o = X();
|
|
2374
2375
|
console.log("platformeInfo", o);
|
|
2375
2376
|
}
|
|
2376
2377
|
k(
|
|
@@ -2475,12 +2476,12 @@ export {
|
|
|
2475
2476
|
dt as _3DSwym_editIdea,
|
|
2476
2477
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
2477
2478
|
nt as _3DSwym_getAllCommunities,
|
|
2479
|
+
pt as _3DSwym_getAllListIdeas,
|
|
2478
2480
|
et as _3DSwym_getAllNews,
|
|
2479
2481
|
tt as _3DSwym_getFamiliarPeople,
|
|
2480
2482
|
st as _3DSwym_getIdeaStatusMaturity,
|
|
2481
2483
|
oe as _3DSwym_getMembersCommunity,
|
|
2482
2484
|
ct as _3DSwym_getOneIdea,
|
|
2483
|
-
pt as _3DSwym_get_AllSWYMIdeas,
|
|
2484
2485
|
w as _3DSwym_get_Token,
|
|
2485
2486
|
ut as _3DSwym_get_currentUser,
|
|
2486
2487
|
lt as _3DSwym_get_findUser,
|
|
@@ -2500,7 +2501,7 @@ export {
|
|
|
2500
2501
|
_t as _Iterop_getOneBusinessTableRows,
|
|
2501
2502
|
gt as _Iterop_jwtUser,
|
|
2502
2503
|
wt as _Iterop_runProcess,
|
|
2503
|
-
|
|
2504
|
+
X as _getPlateformInfos,
|
|
2504
2505
|
Te as _getPlatformServices,
|
|
2505
2506
|
T as _getServiceUrl,
|
|
2506
2507
|
Ce as _getServiceUrl_3DPassport,
|
|
@@ -2509,7 +2510,7 @@ export {
|
|
|
2509
2510
|
ye as _setDraggable,
|
|
2510
2511
|
we as _setDroppable,
|
|
2511
2512
|
_e as _setupTagger,
|
|
2512
|
-
|
|
2513
|
+
ze as addTagToDoc,
|
|
2513
2514
|
be as compass_getListAdditionalApps,
|
|
2514
2515
|
V as couleurs,
|
|
2515
2516
|
ve as createUserGroups,
|
|
@@ -2523,15 +2524,15 @@ export {
|
|
|
2523
2524
|
Ve as getDataFrom3DSpace,
|
|
2524
2525
|
he as getDataFromGouvFr,
|
|
2525
2526
|
qe as getDatasByTenant,
|
|
2526
|
-
|
|
2527
|
-
|
|
2527
|
+
He as getDatasFrom3DSpace,
|
|
2528
|
+
Xe as getDownloadDocument,
|
|
2528
2529
|
Ze as getInfoDocTags,
|
|
2529
2530
|
Ie as getUserGroupsList,
|
|
2530
|
-
|
|
2531
|
+
W as getUsersGroupRules,
|
|
2531
2532
|
Ye as get_3DSpace_csrf,
|
|
2532
2533
|
ke as patchUserGroups,
|
|
2533
2534
|
Fe as patchUserGroupsControl,
|
|
2534
|
-
|
|
2535
|
+
We as pushDataIn3DSpace,
|
|
2535
2536
|
Ue as readUserGroupControl,
|
|
2536
2537
|
Qe as removeTagToDoc,
|
|
2537
2538
|
$t as sayHello,
|