@beam3_dev/api_module 0.0.219 → 0.0.220
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 +97 -59
- 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 +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v4 as B } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
2
|
+
import { DateTime as N } from "luxon";
|
|
3
3
|
import { requirejs as $, widget as R } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function D() {
|
|
5
5
|
return B();
|
|
@@ -66,7 +66,7 @@ async function he(e, t = void 0, s = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function ye(e, t = V) {
|
|
69
|
-
let s =
|
|
69
|
+
let s = N.now().year;
|
|
70
70
|
const n = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
72
|
i.push({ date: c, comment: a[c] });
|
|
@@ -89,11 +89,11 @@ async function ye(e, t = V) {
|
|
|
89
89
|
} : n;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === N.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: N.fromISO(c.date).toISODate(),
|
|
96
|
+
end: N.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -167,7 +167,7 @@ function Ce(e, t) {
|
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function be(e, t = void 0, s = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(n) => {
|
|
@@ -195,7 +195,7 @@ function Y() {
|
|
|
195
195
|
};
|
|
196
196
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function T(e, t = void 0, s = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(n, {
|
|
@@ -215,7 +215,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Te(e, t = void 0, s = void 0) {
|
|
219
219
|
if (e.tenant) {
|
|
220
220
|
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
221
221
|
m(n, {
|
|
@@ -271,7 +271,7 @@ function $e(e, t = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Ie(e, t, s = void 0, n = void 0) {
|
|
275
275
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
277
|
onComplete(r, o, a) {
|
|
@@ -288,7 +288,7 @@ const j = {
|
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function ve(e, t, s = void 0, n = void 0) {
|
|
292
292
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
@@ -317,7 +317,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Ne(e, t, s = void 0, n = 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: {
|
|
@@ -478,7 +478,7 @@ var Q = function(e, t, s, n) {
|
|
|
478
478
|
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
479
479
|
}
|
|
480
480
|
return i;
|
|
481
|
-
},
|
|
481
|
+
}, v = function(e) {
|
|
482
482
|
switch (typeof e) {
|
|
483
483
|
case "string":
|
|
484
484
|
return e;
|
|
@@ -491,11 +491,11 @@ var Q = function(e, t, s, n) {
|
|
|
491
491
|
}
|
|
492
492
|
}, Z = function(e, t, s, n) {
|
|
493
493
|
return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
494
|
-
var r = encodeURIComponent(
|
|
494
|
+
var r = encodeURIComponent(v(i)) + s;
|
|
495
495
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
|
-
return r + encodeURIComponent(
|
|
497
|
-
}).join(t) : r + encodeURIComponent(
|
|
498
|
-
}).filter(Boolean).join(t) : n ? encodeURIComponent(
|
|
496
|
+
return r + encodeURIComponent(v(o));
|
|
497
|
+
}).join(t) : r + encodeURIComponent(v(e[i]));
|
|
498
|
+
}).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
|
|
499
499
|
};
|
|
500
500
|
k.decode = k.parse = Q;
|
|
501
501
|
k.encode = k.stringify = Z;
|
|
@@ -688,11 +688,11 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
688
688
|
]
|
|
689
689
|
}),
|
|
690
690
|
type: "json",
|
|
691
|
-
onComplete(
|
|
692
|
-
o && o(
|
|
691
|
+
onComplete(b) {
|
|
692
|
+
o && o(b);
|
|
693
693
|
},
|
|
694
|
-
onFailure(
|
|
695
|
-
a && a(
|
|
694
|
+
onFailure(b) {
|
|
695
|
+
a && a(b);
|
|
696
696
|
}
|
|
697
697
|
}, w = e.tenant.toUpperCase();
|
|
698
698
|
m(
|
|
@@ -749,7 +749,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
749
749
|
method: "POST",
|
|
750
750
|
data: g,
|
|
751
751
|
onComplete(_) {
|
|
752
|
-
let w = D(),
|
|
752
|
+
let w = D(), b = {
|
|
753
753
|
method: "POST",
|
|
754
754
|
headers: {
|
|
755
755
|
ENO_CSRF_TOKEN: a,
|
|
@@ -780,16 +780,16 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
780
780
|
]
|
|
781
781
|
}),
|
|
782
782
|
type: "json",
|
|
783
|
-
onComplete(
|
|
784
|
-
i && i(
|
|
783
|
+
onComplete(I) {
|
|
784
|
+
i && i(I);
|
|
785
785
|
},
|
|
786
|
-
onFailure(
|
|
787
|
-
r && r(
|
|
786
|
+
onFailure(I) {
|
|
787
|
+
r && r(I);
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
m(
|
|
791
791
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
792
|
-
|
|
792
|
+
b
|
|
793
793
|
);
|
|
794
794
|
},
|
|
795
795
|
onFailure(_) {
|
|
@@ -2096,11 +2096,11 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2096
2096
|
if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2097
2097
|
d.push(w.response.result);
|
|
2098
2098
|
else {
|
|
2099
|
-
const
|
|
2100
|
-
(
|
|
2099
|
+
const b = w.response.result.find(
|
|
2100
|
+
(I) => I.title.includes(c)
|
|
2101
2101
|
);
|
|
2102
|
-
if (
|
|
2103
|
-
s(
|
|
2102
|
+
if (b) {
|
|
2103
|
+
s(b);
|
|
2104
2104
|
return;
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
@@ -2112,8 +2112,8 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
},
|
|
2114
2114
|
onFailure(_, w) {
|
|
2115
|
-
const
|
|
2116
|
-
|
|
2115
|
+
const b = _;
|
|
2116
|
+
b.status = w.status, b.response = w.errormsg, n && n(b);
|
|
2117
2117
|
}
|
|
2118
2118
|
});
|
|
2119
2119
|
};
|
|
@@ -2235,14 +2235,14 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
2235
2235
|
);
|
|
2236
2236
|
}
|
|
2237
2237
|
function mt(e, t = void 0, s = void 0) {
|
|
2238
|
-
e.tenant &&
|
|
2238
|
+
e.tenant && T(e, (n) => {
|
|
2239
2239
|
console.log("serviceUrls", n);
|
|
2240
2240
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2241
2241
|
return t && t(i), i;
|
|
2242
2242
|
});
|
|
2243
2243
|
}
|
|
2244
2244
|
function gt(e, t = void 0, s = void 0) {
|
|
2245
|
-
e.tenant &&
|
|
2245
|
+
e.tenant && T(e, (n) => {
|
|
2246
2246
|
console.log("serviceUrls", n);
|
|
2247
2247
|
const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2248
2248
|
m(o, {
|
|
@@ -2274,7 +2274,7 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
2276
|
async function yt(e, t, s = void 0, n = void 0) {
|
|
2277
|
-
e.tenant &&
|
|
2277
|
+
e.tenant && T(e, (i) => {
|
|
2278
2278
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2279
2279
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2280
2280
|
method: "POST"
|
|
@@ -2286,7 +2286,7 @@ async function yt(e, t, s = void 0, n = void 0) {
|
|
|
2286
2286
|
});
|
|
2287
2287
|
}
|
|
2288
2288
|
async function St(e, t, s = void 0, n = void 0) {
|
|
2289
|
-
e.tenant &&
|
|
2289
|
+
e.tenant && T(e, (i) => {
|
|
2290
2290
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2291
2291
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2292
2292
|
method: "GET"
|
|
@@ -2322,7 +2322,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
2324
|
async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
2325
|
-
e.tenant &&
|
|
2325
|
+
e.tenant && T(e, (o) => {
|
|
2326
2326
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2327
2327
|
const a = e.tenant.toLowerCase();
|
|
2328
2328
|
fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`, {
|
|
@@ -2334,8 +2334,44 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2334
2334
|
});
|
|
2335
2335
|
});
|
|
2336
2336
|
}
|
|
2337
|
+
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2338
|
+
if (e.tenant) {
|
|
2339
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
|
|
2340
|
+
n
|
|
2341
|
+
)}&b=${encodeURIComponent(i)}`;
|
|
2342
|
+
fetch(a, {
|
|
2343
|
+
method: "POST"
|
|
2344
|
+
}).then((c) => c.json()).then((c) => {
|
|
2345
|
+
c.url = a, r && r(c);
|
|
2346
|
+
}).catch((c) => {
|
|
2347
|
+
o && o({
|
|
2348
|
+
error: c,
|
|
2349
|
+
tableId: s,
|
|
2350
|
+
columns: n,
|
|
2351
|
+
body: i
|
|
2352
|
+
});
|
|
2353
|
+
});
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2337
2356
|
async function Tt(e, t, s, n, i = void 0, r = void 0) {
|
|
2338
|
-
e.tenant
|
|
2357
|
+
if (e.tenant) {
|
|
2358
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2359
|
+
n
|
|
2360
|
+
)}`;
|
|
2361
|
+
fetch(o, {
|
|
2362
|
+
method: "POST"
|
|
2363
|
+
}).then((a) => a.json()).then((a) => {
|
|
2364
|
+
console.log("_Iterop_updateBusinessTable | _Iterop_businessTableSearchInRows | fetch | onDone", n), i && i(a);
|
|
2365
|
+
}).catch((a) => {
|
|
2366
|
+
r && r({
|
|
2367
|
+
error: a,
|
|
2368
|
+
url: o
|
|
2369
|
+
});
|
|
2370
|
+
});
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
2374
|
+
e.tenant && T(e, (o) => {
|
|
2339
2375
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2340
2376
|
const a = e.tenant.toLowerCase();
|
|
2341
2377
|
fetch(
|
|
@@ -2350,8 +2386,8 @@ async function Tt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2350
2386
|
});
|
|
2351
2387
|
});
|
|
2352
2388
|
}
|
|
2353
|
-
async function
|
|
2354
|
-
e.tenant &&
|
|
2389
|
+
async function $t(e, t, s, n = void 0, i = void 0) {
|
|
2390
|
+
e.tenant && T(e, (r) => {
|
|
2355
2391
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2356
2392
|
const o = e.tenant.toLowerCase();
|
|
2357
2393
|
fetch(
|
|
@@ -2366,8 +2402,8 @@ async function bt(e, t, s, n = void 0, i = void 0) {
|
|
|
2366
2402
|
});
|
|
2367
2403
|
});
|
|
2368
2404
|
}
|
|
2369
|
-
async function
|
|
2370
|
-
e.tenant &&
|
|
2405
|
+
async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2406
|
+
e.tenant && T(e, (a) => {
|
|
2371
2407
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2372
2408
|
const c = e.tenant.toLowerCase();
|
|
2373
2409
|
fetch(
|
|
@@ -2382,8 +2418,8 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2382
2418
|
});
|
|
2383
2419
|
});
|
|
2384
2420
|
}
|
|
2385
|
-
async function
|
|
2386
|
-
e.tenant &&
|
|
2421
|
+
async function vt(e, t, s, n, i = void 0, r = void 0) {
|
|
2422
|
+
e.tenant && T(e, (o) => {
|
|
2387
2423
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2388
2424
|
const a = e.tenant.toLowerCase();
|
|
2389
2425
|
fetch(
|
|
@@ -2398,11 +2434,11 @@ async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2398
2434
|
});
|
|
2399
2435
|
});
|
|
2400
2436
|
}
|
|
2401
|
-
function
|
|
2437
|
+
function Nt(e) {
|
|
2402
2438
|
const t = "Hello " + e;
|
|
2403
2439
|
return console.log(t), t;
|
|
2404
2440
|
}
|
|
2405
|
-
function
|
|
2441
|
+
function kt(e, t = void 0, s = void 0) {
|
|
2406
2442
|
return console.log("credentials", e), new Promise((n) => {
|
|
2407
2443
|
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2408
2444
|
const o = Y();
|
|
@@ -2419,7 +2455,7 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2419
2455
|
},
|
|
2420
2456
|
!0
|
|
2421
2457
|
);
|
|
2422
|
-
const i =
|
|
2458
|
+
const i = N.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2423
2459
|
m(r, {
|
|
2424
2460
|
onComplete(o) {
|
|
2425
2461
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2483,7 +2519,7 @@ function Nt(e, t = void 0, s = void 0) {
|
|
|
2483
2519
|
}
|
|
2484
2520
|
export {
|
|
2485
2521
|
D as UUID,
|
|
2486
|
-
|
|
2522
|
+
kt as _3DSearch_usersGroup,
|
|
2487
2523
|
De as _3DSpace_Create_Doc,
|
|
2488
2524
|
Re as _3DSpace_Update_Doc,
|
|
2489
2525
|
Be as _3DSpace_bookmark_addSubsciptions,
|
|
@@ -2522,23 +2558,25 @@ export {
|
|
|
2522
2558
|
rt as _3DSwym_postIdea,
|
|
2523
2559
|
ot as _3DSwym_postIdeaTemplate,
|
|
2524
2560
|
P as _3DSwym_sendMessageData,
|
|
2525
|
-
|
|
2561
|
+
Ie as _AppMngt_get_info_user,
|
|
2526
2562
|
$e as _AppMngt_get_users,
|
|
2527
2563
|
Ct as _Iterop_AddOrRemoveRows,
|
|
2528
2564
|
gt as _Iterop_Auth_CAS,
|
|
2529
|
-
|
|
2565
|
+
$t as _Iterop_GetOneDependencyTable,
|
|
2530
2566
|
yt as _Iterop_ListUsers,
|
|
2531
|
-
|
|
2532
|
-
|
|
2567
|
+
It as _Iterop_PatchDependencyTable,
|
|
2568
|
+
vt as _Iterop_PutDependencyTable,
|
|
2569
|
+
bt as _Iterop_businessTableSearchInRows,
|
|
2533
2570
|
St as _Iterop_getAllBusinessTables,
|
|
2534
2571
|
_t as _Iterop_getOneBusinessTable,
|
|
2535
2572
|
wt as _Iterop_getOneBusinessTableRows,
|
|
2536
2573
|
ht as _Iterop_jwtUser,
|
|
2537
|
-
|
|
2574
|
+
Ot as _Iterop_runProcess,
|
|
2575
|
+
Tt as _Iterop_updateBusinessTable,
|
|
2538
2576
|
Y as _getPlateformInfos,
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2577
|
+
be as _getPlatformServices,
|
|
2578
|
+
T as _getServiceUrl,
|
|
2579
|
+
Te as _getServiceUrl_3DPassport,
|
|
2542
2580
|
mt as _getServiceUrl_Iterop,
|
|
2543
2581
|
m as _httpCallAuthenticated,
|
|
2544
2582
|
_e as _setDraggable,
|
|
@@ -2548,14 +2586,14 @@ export {
|
|
|
2548
2586
|
W as chunkArray,
|
|
2549
2587
|
Oe as compass_getListAdditionalApps,
|
|
2550
2588
|
V as couleurs,
|
|
2551
|
-
|
|
2589
|
+
ve as createUserGroups,
|
|
2552
2590
|
se as dataMixing,
|
|
2553
2591
|
Ae as deleteUserGroups,
|
|
2554
2592
|
he as findAdresse,
|
|
2555
2593
|
Ve as getAllContextSecurity,
|
|
2556
2594
|
H as getCSRFToken,
|
|
2557
2595
|
ge as getCommunes,
|
|
2558
|
-
|
|
2596
|
+
Ne as getComplementUG,
|
|
2559
2597
|
We as getDataFrom3DSpace,
|
|
2560
2598
|
ye as getDataFromGouvFr,
|
|
2561
2599
|
He as getDatasByTenant,
|
|
@@ -2570,7 +2608,7 @@ export {
|
|
|
2570
2608
|
Ye as pushDataIn3DSpace,
|
|
2571
2609
|
Ue as readUserGroupControl,
|
|
2572
2610
|
Ze as removeTagToDoc,
|
|
2573
|
-
|
|
2611
|
+
Nt as sayHello,
|
|
2574
2612
|
Se as updateEvent
|
|
2575
2613
|
};
|
|
2576
2614
|
//# sourceMappingURL=wb3Api.js.map
|