@beam3_dev/api_module 0.0.200 → 0.0.202
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 +250 -226
- 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
|
@@ -34,7 +34,7 @@ const V = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
37
|
+
async function ge(e, t = void 0, s = void 0) {
|
|
38
38
|
const n = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
40
|
"https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
|
|
@@ -50,7 +50,7 @@ async function me(e, t = void 0, s = void 0) {
|
|
|
50
50
|
s && s(i), console.error("Erreur : " + i);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function he(e, t = void 0, s = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -65,7 +65,7 @@ async function ge(e, t = void 0, s = void 0) {
|
|
|
65
65
|
s && s(n), console.error("Erreur : " + n);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
68
|
+
async function ye(e, t = V) {
|
|
69
69
|
let s = N.now().year;
|
|
70
70
|
const n = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
@@ -100,7 +100,40 @@ async function he(e, t = V) {
|
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
function Se(e, t, s) {
|
|
104
|
+
const { myArray: n, chunk: i, fn_to_call: r } = e, o = [];
|
|
105
|
+
for (let a = 0; a < n.length; a += i) {
|
|
106
|
+
const c = n.slice(a, a + i);
|
|
107
|
+
o.push(c);
|
|
108
|
+
}
|
|
109
|
+
X(
|
|
110
|
+
{ chunks: o, initLoop: 0, fn: r },
|
|
111
|
+
(a) => {
|
|
112
|
+
t && t(a);
|
|
113
|
+
},
|
|
114
|
+
(a) => {
|
|
115
|
+
s && s(a);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function X(e, t, s) {
|
|
120
|
+
const { chunks: n, initLoop: i, fn: r } = e, o = (a) => {
|
|
121
|
+
r(
|
|
122
|
+
n[a],
|
|
123
|
+
() => {
|
|
124
|
+
a++, a < n.length && o(a);
|
|
125
|
+
},
|
|
126
|
+
(c) => {
|
|
127
|
+
t && t(c);
|
|
128
|
+
},
|
|
129
|
+
(c) => {
|
|
130
|
+
s && s(c);
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
o(i);
|
|
135
|
+
}
|
|
136
|
+
async function _e(e, t, s = !0) {
|
|
104
137
|
const n = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
138
|
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
106
139
|
}
|
|
@@ -109,7 +142,7 @@ function m(e, t) {
|
|
|
109
142
|
s.authenticatedRequest(e, t);
|
|
110
143
|
});
|
|
111
144
|
}
|
|
112
|
-
function
|
|
145
|
+
function we(e, t, s) {
|
|
113
146
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
114
147
|
n.draggable(e, {
|
|
115
148
|
data: t,
|
|
@@ -117,7 +150,7 @@ function ye(e, t, s) {
|
|
|
117
150
|
});
|
|
118
151
|
});
|
|
119
152
|
}
|
|
120
|
-
function
|
|
153
|
+
function Te(e, t = void 0) {
|
|
121
154
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
122
155
|
let n;
|
|
123
156
|
n === void 0 && (n = s.createProxy({
|
|
@@ -126,14 +159,14 @@ function _e(e, t = void 0) {
|
|
|
126
159
|
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
127
160
|
});
|
|
128
161
|
}
|
|
129
|
-
function
|
|
162
|
+
function Ce(e, t) {
|
|
130
163
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
131
164
|
s.droppable(e, {
|
|
132
165
|
drop: t
|
|
133
166
|
});
|
|
134
167
|
});
|
|
135
168
|
}
|
|
136
|
-
async function
|
|
169
|
+
async function be(e, t = void 0, s = void 0) {
|
|
137
170
|
await O(
|
|
138
171
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
172
|
(n) => {
|
|
@@ -147,7 +180,7 @@ async function Te(e, t = void 0, s = void 0) {
|
|
|
147
180
|
}
|
|
148
181
|
);
|
|
149
182
|
}
|
|
150
|
-
function
|
|
183
|
+
function W() {
|
|
151
184
|
let e = {};
|
|
152
185
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
153
186
|
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
@@ -181,7 +214,7 @@ function T(e, t = void 0, s = void 0) {
|
|
|
181
214
|
});
|
|
182
215
|
}
|
|
183
216
|
}
|
|
184
|
-
function
|
|
217
|
+
function Oe(e, t = void 0, s = void 0) {
|
|
185
218
|
if (e.tenant) {
|
|
186
219
|
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
220
|
m(n, {
|
|
@@ -198,7 +231,7 @@ function Ce(e, t = void 0, s = void 0) {
|
|
|
198
231
|
});
|
|
199
232
|
}
|
|
200
233
|
}
|
|
201
|
-
function
|
|
234
|
+
function $e(e, t, s) {
|
|
202
235
|
const n = {
|
|
203
236
|
base: `${e.space}`,
|
|
204
237
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
@@ -224,7 +257,7 @@ function be(e, t, s) {
|
|
|
224
257
|
}
|
|
225
258
|
});
|
|
226
259
|
}
|
|
227
|
-
function
|
|
260
|
+
function ve(e, t = void 0, s = void 0) {
|
|
228
261
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
262
|
m(n, {
|
|
230
263
|
onComplete(i, r, o) {
|
|
@@ -237,7 +270,7 @@ function Oe(e, t = void 0, s = void 0) {
|
|
|
237
270
|
}
|
|
238
271
|
});
|
|
239
272
|
}
|
|
240
|
-
function
|
|
273
|
+
function Ne(e, t, s = void 0, n = void 0) {
|
|
241
274
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
275
|
m(i, {
|
|
243
276
|
onComplete(r, o, a) {
|
|
@@ -254,7 +287,7 @@ const U = {
|
|
|
254
287
|
"Content-Type": "application/json",
|
|
255
288
|
Accept: "application/json,text/javascript,*/*"
|
|
256
289
|
};
|
|
257
|
-
function
|
|
290
|
+
function Ie(e, t, s = void 0, n = void 0) {
|
|
258
291
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
259
292
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
293
|
}.URIUGr}`, c = {
|
|
@@ -283,7 +316,7 @@ function ve(e, t, s = void 0, n = void 0) {
|
|
|
283
316
|
}
|
|
284
317
|
});
|
|
285
318
|
}
|
|
286
|
-
function
|
|
319
|
+
function Ae(e, t, s = void 0, n = void 0) {
|
|
287
320
|
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}`;
|
|
288
321
|
m(d, {
|
|
289
322
|
opts: {
|
|
@@ -302,7 +335,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
302
335
|
}
|
|
303
336
|
});
|
|
304
337
|
}
|
|
305
|
-
function
|
|
338
|
+
function Y(e, t = void 0, s = void 0) {
|
|
306
339
|
const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
307
340
|
method: "GET",
|
|
308
341
|
Accept: "application/json,*/*,test/javascript"
|
|
@@ -318,7 +351,7 @@ function W(e, t = void 0, s = void 0) {
|
|
|
318
351
|
}
|
|
319
352
|
});
|
|
320
353
|
}
|
|
321
|
-
function
|
|
354
|
+
function ke(e, t = void 0, s = void 0) {
|
|
322
355
|
const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
323
356
|
"Content-Type": "application/json",
|
|
324
357
|
Accept: "application/json,text/javascript,*/*"
|
|
@@ -329,14 +362,14 @@ function Ie(e, t = void 0, s = void 0) {
|
|
|
329
362
|
onComplete(p) {
|
|
330
363
|
const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
364
|
if (i && Object.keys(i).length > 0) {
|
|
332
|
-
const g = l.filter((
|
|
333
|
-
f.iam =
|
|
365
|
+
const g = l.filter((S) => S.owner === i.email), h = l.filter((S) => S.members.includes(i.email)), y = g.concat(h);
|
|
366
|
+
f.iam = y, f.UG = l, f.iamMember = h, Y(
|
|
334
367
|
e,
|
|
335
|
-
(
|
|
336
|
-
f.rules =
|
|
368
|
+
(S) => {
|
|
369
|
+
f.rules = S, t && t(f);
|
|
337
370
|
},
|
|
338
|
-
(
|
|
339
|
-
s && s(
|
|
371
|
+
(S) => {
|
|
372
|
+
s && s(S);
|
|
340
373
|
}
|
|
341
374
|
);
|
|
342
375
|
}
|
|
@@ -349,13 +382,13 @@ function Ie(e, t = void 0, s = void 0) {
|
|
|
349
382
|
console.log(p);
|
|
350
383
|
}
|
|
351
384
|
}
|
|
352
|
-
function
|
|
385
|
+
function Fe(e, t) {
|
|
353
386
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
387
|
m(i, {
|
|
355
388
|
method: "DELETE"
|
|
356
389
|
});
|
|
357
390
|
}
|
|
358
|
-
function
|
|
391
|
+
function Ue(e, t, s, n = void 0, i = void 0) {
|
|
359
392
|
const { space: r, tenant: o } = e, a = {
|
|
360
393
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
394
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -378,7 +411,7 @@ function ke(e, t, s, n = void 0, i = void 0) {
|
|
|
378
411
|
}
|
|
379
412
|
});
|
|
380
413
|
}
|
|
381
|
-
function
|
|
414
|
+
function je(e, t, s, n = void 0, i = void 0) {
|
|
382
415
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
416
|
m(a, {
|
|
384
417
|
method: "PATCH",
|
|
@@ -393,7 +426,7 @@ function Fe(e, t, s, n = void 0, i = void 0) {
|
|
|
393
426
|
}
|
|
394
427
|
});
|
|
395
428
|
}
|
|
396
|
-
function
|
|
429
|
+
function xe(e, t, s = void 0, n = void 0) {
|
|
397
430
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
431
|
m(o, {
|
|
399
432
|
opts: {
|
|
@@ -411,7 +444,7 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
411
444
|
}
|
|
412
445
|
});
|
|
413
446
|
}
|
|
414
|
-
async function
|
|
447
|
+
async function q(e, t, s) {
|
|
415
448
|
if (e.space) {
|
|
416
449
|
const n = `${e.space}/resources/v1/application/CSRF`;
|
|
417
450
|
m(n, {
|
|
@@ -425,10 +458,10 @@ async function Y(e, t, s) {
|
|
|
425
458
|
}
|
|
426
459
|
}
|
|
427
460
|
var I = {};
|
|
428
|
-
function
|
|
461
|
+
function H(e, t) {
|
|
429
462
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
463
|
}
|
|
431
|
-
var
|
|
464
|
+
var z = function(e, t, s, n) {
|
|
432
465
|
t = t || "&", s = s || "=";
|
|
433
466
|
var i = {};
|
|
434
467
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -441,7 +474,7 @@ var H = function(e, t, s, n) {
|
|
|
441
474
|
o > 0 && a > o && (a = o);
|
|
442
475
|
for (var c = 0; c < a; ++c) {
|
|
443
476
|
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
|
|
444
|
-
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f),
|
|
477
|
+
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), H(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
445
478
|
}
|
|
446
479
|
return i;
|
|
447
480
|
}, v = function(e) {
|
|
@@ -455,7 +488,7 @@ var H = function(e, t, s, n) {
|
|
|
455
488
|
default:
|
|
456
489
|
return "";
|
|
457
490
|
}
|
|
458
|
-
},
|
|
491
|
+
}, Q = function(e, t, s, n) {
|
|
459
492
|
return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
460
493
|
var r = encodeURIComponent(v(i)) + s;
|
|
461
494
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
@@ -463,8 +496,8 @@ var H = function(e, t, s, n) {
|
|
|
463
496
|
}).join(t) : r + encodeURIComponent(v(e[i]));
|
|
464
497
|
}).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
|
|
465
498
|
};
|
|
466
|
-
I.decode = I.parse =
|
|
467
|
-
I.encode = I.stringify =
|
|
499
|
+
I.decode = I.parse = z;
|
|
500
|
+
I.encode = I.stringify = Q;
|
|
468
501
|
async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
469
502
|
const i = e.space;
|
|
470
503
|
if (t === void 0) {
|
|
@@ -482,7 +515,7 @@ async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
|
482
515
|
}
|
|
483
516
|
});
|
|
484
517
|
}
|
|
485
|
-
async function
|
|
518
|
+
async function Re(e, t = void 0, s = void 0, n = void 0) {
|
|
486
519
|
const i = e.space;
|
|
487
520
|
if (t === void 0) {
|
|
488
521
|
console.log("Le paramètre docids est obligatoire");
|
|
@@ -572,7 +605,7 @@ function j(e, t = void 0, s = void 0) {
|
|
|
572
605
|
}
|
|
573
606
|
);
|
|
574
607
|
}
|
|
575
|
-
function
|
|
608
|
+
function Pe(e, t, s, n = void 0, i = void 0) {
|
|
576
609
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
610
|
s || (s = e.token), m(r, {
|
|
578
611
|
method: "PUT",
|
|
@@ -595,7 +628,7 @@ function xe(e, t, s, n = void 0, i = void 0) {
|
|
|
595
628
|
});
|
|
596
629
|
}
|
|
597
630
|
function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
598
|
-
const a = () =>
|
|
631
|
+
const a = () => Z(
|
|
599
632
|
e,
|
|
600
633
|
t,
|
|
601
634
|
s,
|
|
@@ -613,7 +646,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
613
646
|
}
|
|
614
647
|
);
|
|
615
648
|
}
|
|
616
|
-
function
|
|
649
|
+
function Z(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
617
650
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
651
|
m(c, {
|
|
619
652
|
method: "PUT",
|
|
@@ -626,8 +659,8 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
626
659
|
n instanceof Blob ? h = n : h = new Blob([n], {
|
|
627
660
|
type: "text/plain"
|
|
628
661
|
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", h, i);
|
|
629
|
-
const
|
|
630
|
-
|
|
662
|
+
const y = {};
|
|
663
|
+
y.method = "POST", y.data = g, y.onComplete = function(S) {
|
|
631
664
|
let _ = {
|
|
632
665
|
method: "PUT",
|
|
633
666
|
headers: {
|
|
@@ -642,7 +675,7 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
642
675
|
{
|
|
643
676
|
dataelements: {
|
|
644
677
|
title: i,
|
|
645
|
-
receipt:
|
|
678
|
+
receipt: S
|
|
646
679
|
},
|
|
647
680
|
updateAction: "REVISE"
|
|
648
681
|
}
|
|
@@ -665,13 +698,13 @@ function Q(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
665
698
|
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${C}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
666
699
|
_
|
|
667
700
|
);
|
|
668
|
-
},
|
|
669
|
-
a && a(
|
|
670
|
-
},
|
|
701
|
+
}, y.onFailure = function(S) {
|
|
702
|
+
a && a(S);
|
|
703
|
+
}, y.timeout = 0, m(l.ticketURL, y);
|
|
671
704
|
}
|
|
672
705
|
});
|
|
673
706
|
}
|
|
674
|
-
async function
|
|
707
|
+
async function De(e, t, s, n = void 0, i = void 0) {
|
|
675
708
|
e.space, e.token, e.ctx, L(
|
|
676
709
|
e,
|
|
677
710
|
t,
|
|
@@ -696,7 +729,7 @@ async function Re(e, t, s, n = void 0, i = void 0) {
|
|
|
696
729
|
}
|
|
697
730
|
);
|
|
698
731
|
}
|
|
699
|
-
async function
|
|
732
|
+
async function Le(e, t, s, n, i = void 0, r = void 0) {
|
|
700
733
|
const o = e.space, a = e.token, c = e.ctx;
|
|
701
734
|
if (o !== "") {
|
|
702
735
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
@@ -710,8 +743,8 @@ async function Pe(e, t, s, n, i = void 0, r = void 0) {
|
|
|
710
743
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
711
744
|
type: "text/plain"
|
|
712
745
|
}), g.append("__fcs__jobTicket", l.ticket), g.append("filename", h, s);
|
|
713
|
-
const
|
|
714
|
-
let
|
|
746
|
+
const y = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
|
|
747
|
+
let S = {
|
|
715
748
|
method: "POST",
|
|
716
749
|
data: g,
|
|
717
750
|
onComplete(_) {
|
|
@@ -727,7 +760,7 @@ async function Pe(e, t, s, n, i = void 0, r = void 0) {
|
|
|
727
760
|
{
|
|
728
761
|
type: "Document",
|
|
729
762
|
dataelements: {
|
|
730
|
-
title:
|
|
763
|
+
title: y(s),
|
|
731
764
|
description: n,
|
|
732
765
|
policy: "Document Release"
|
|
733
766
|
},
|
|
@@ -763,7 +796,7 @@ async function Pe(e, t, s, n, i = void 0, r = void 0) {
|
|
|
763
796
|
},
|
|
764
797
|
timeout: 0
|
|
765
798
|
};
|
|
766
|
-
m(l.ticketURL,
|
|
799
|
+
m(l.ticketURL, S);
|
|
767
800
|
}
|
|
768
801
|
});
|
|
769
802
|
}
|
|
@@ -781,28 +814,28 @@ function k(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
781
814
|
u = t;
|
|
782
815
|
let h = g.couples;
|
|
783
816
|
h = h.filter(
|
|
784
|
-
(
|
|
785
|
-
(C) => C.organization.pid ===
|
|
817
|
+
(y, S, _) => S === _.findIndex(
|
|
818
|
+
(C) => C.organization.pid === y.organization.pid && C.role.pid === y.role.pid
|
|
786
819
|
)
|
|
787
|
-
), s && (Array.isArray(s) ? s.forEach((
|
|
788
|
-
l || h.forEach((
|
|
789
|
-
if (
|
|
790
|
-
l =
|
|
791
|
-
else if (
|
|
820
|
+
), s && (Array.isArray(s) ? s.forEach((y) => {
|
|
821
|
+
l || h.forEach((S) => {
|
|
822
|
+
if (y === S.role.name && n === S.organization.title)
|
|
823
|
+
l = y, f = n;
|
|
824
|
+
else if (y === S.role.name) {
|
|
792
825
|
let _ = h.filter(
|
|
793
|
-
(C) => C.role.name ===
|
|
826
|
+
(C) => C.role.name === y
|
|
794
827
|
);
|
|
795
828
|
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
796
829
|
}
|
|
797
830
|
});
|
|
798
|
-
}) : h.forEach((
|
|
799
|
-
if (s ===
|
|
831
|
+
}) : h.forEach((y) => {
|
|
832
|
+
if (s === y.role.name && n === y.organization.title)
|
|
800
833
|
l = s, f = n;
|
|
801
|
-
else if (s ===
|
|
802
|
-
let
|
|
834
|
+
else if (s === y.role.name) {
|
|
835
|
+
let S = h.filter(
|
|
803
836
|
(_) => _.role.name === s
|
|
804
837
|
);
|
|
805
|
-
|
|
838
|
+
S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
|
|
806
839
|
}
|
|
807
840
|
}));
|
|
808
841
|
}
|
|
@@ -824,7 +857,7 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
824
857
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
825
858
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
826
859
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
827
|
-
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) &&
|
|
860
|
+
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && q(
|
|
828
861
|
e,
|
|
829
862
|
(n) => {
|
|
830
863
|
e.token = n;
|
|
@@ -869,26 +902,16 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
869
902
|
);
|
|
870
903
|
});
|
|
871
904
|
}
|
|
872
|
-
async function
|
|
873
|
-
let i = [];
|
|
905
|
+
async function ee(e, t, s = void 0, n = void 0) {
|
|
874
906
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
const o = (a) => {
|
|
880
|
-
ee(
|
|
881
|
-
e,
|
|
882
|
-
i[a],
|
|
883
|
-
() => {
|
|
884
|
-
a++, a < i.length && o(a);
|
|
885
|
-
},
|
|
886
|
-
(c) => {
|
|
887
|
-
s && s(c);
|
|
888
|
-
}
|
|
889
|
-
);
|
|
907
|
+
const i = {
|
|
908
|
+
myArray: t,
|
|
909
|
+
chunk: 80,
|
|
910
|
+
fn_to_call: te
|
|
890
911
|
};
|
|
891
|
-
|
|
912
|
+
chunkArray(i, (r) => {
|
|
913
|
+
s && s(r);
|
|
914
|
+
});
|
|
892
915
|
} else
|
|
893
916
|
console.warn(
|
|
894
917
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
@@ -896,7 +919,7 @@ async function Z(e, t, s = void 0, n = void 0) {
|
|
|
896
919
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
897
920
|
);
|
|
898
921
|
}
|
|
899
|
-
function
|
|
922
|
+
function te(e, t, s = void 0, n = void 0, i = void 0) {
|
|
900
923
|
const r = [];
|
|
901
924
|
t.forEach((c) => {
|
|
902
925
|
r.push({
|
|
@@ -949,7 +972,7 @@ function ee(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
949
972
|
}
|
|
950
973
|
});
|
|
951
974
|
}
|
|
952
|
-
function
|
|
975
|
+
function Me(e, t, s = void 0, n = void 0) {
|
|
953
976
|
return new Promise((i) => {
|
|
954
977
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
955
978
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -980,7 +1003,7 @@ function De(e, t, s = void 0, n = void 0) {
|
|
|
980
1003
|
}
|
|
981
1004
|
});
|
|
982
1005
|
}
|
|
983
|
-
function
|
|
1006
|
+
function Je(e, t, s, n = void 0, i = void 0) {
|
|
984
1007
|
return new Promise((r) => {
|
|
985
1008
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
986
1009
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1012,7 +1035,7 @@ function Le(e, t, s, n = void 0, i = void 0) {
|
|
|
1012
1035
|
}
|
|
1013
1036
|
});
|
|
1014
1037
|
}
|
|
1015
|
-
function
|
|
1038
|
+
function Ge(e, t, s = void 0, n = void 0) {
|
|
1016
1039
|
return new Promise((i) => {
|
|
1017
1040
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1018
1041
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
@@ -1053,7 +1076,7 @@ function Me(e, t, s = void 0, n = void 0) {
|
|
|
1053
1076
|
}
|
|
1054
1077
|
});
|
|
1055
1078
|
}
|
|
1056
|
-
function
|
|
1079
|
+
function Ee(e, t, s = void 0, n = void 0) {
|
|
1057
1080
|
return new Promise((i) => {
|
|
1058
1081
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1059
1082
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
@@ -1100,7 +1123,7 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1100
1123
|
}
|
|
1101
1124
|
});
|
|
1102
1125
|
}
|
|
1103
|
-
function
|
|
1126
|
+
function Ke(e, t, s, n = void 0, i = void 0) {
|
|
1104
1127
|
return new Promise((r) => {
|
|
1105
1128
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1106
1129
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
@@ -1147,7 +1170,7 @@ function Ge(e, t, s, n = void 0, i = void 0) {
|
|
|
1147
1170
|
}
|
|
1148
1171
|
});
|
|
1149
1172
|
}
|
|
1150
|
-
function
|
|
1173
|
+
function Be(e, t, s, n, i = void 0, r = void 0) {
|
|
1151
1174
|
return new Promise((o) => {
|
|
1152
1175
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1153
1176
|
let c = {
|
|
@@ -1180,7 +1203,7 @@ function Ee(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1180
1203
|
m(a, p);
|
|
1181
1204
|
});
|
|
1182
1205
|
}
|
|
1183
|
-
function
|
|
1206
|
+
function Ve(e, t, s, n, i = void 0, r = void 0) {
|
|
1184
1207
|
return console.log("credentials", e), new Promise((o) => {
|
|
1185
1208
|
`${e.space}`, JSON.stringify({
|
|
1186
1209
|
csrf: {
|
|
@@ -1204,7 +1227,7 @@ function Ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1204
1227
|
});
|
|
1205
1228
|
}
|
|
1206
1229
|
//!SECTION
|
|
1207
|
-
function
|
|
1230
|
+
function Xe(e, t = void 0, s = void 0) {
|
|
1208
1231
|
const n = {
|
|
1209
1232
|
base: `${e.space}`,
|
|
1210
1233
|
uri: "/resources/bps/cspaces",
|
|
@@ -1225,7 +1248,7 @@ function Be(e, t = void 0, s = void 0) {
|
|
|
1225
1248
|
}
|
|
1226
1249
|
});
|
|
1227
1250
|
}
|
|
1228
|
-
function
|
|
1251
|
+
function We(e, t, s, n) {
|
|
1229
1252
|
j(
|
|
1230
1253
|
e.space,
|
|
1231
1254
|
t,
|
|
@@ -1242,7 +1265,7 @@ function Ve(e, t, s, n) {
|
|
|
1242
1265
|
}
|
|
1243
1266
|
);
|
|
1244
1267
|
}
|
|
1245
|
-
async function
|
|
1268
|
+
async function Ye(e, t, s = void 0, n = void 0) {
|
|
1246
1269
|
return new Promise((i) => {
|
|
1247
1270
|
j(e, t, (r) => {
|
|
1248
1271
|
m(r, {
|
|
@@ -1254,7 +1277,7 @@ async function Xe(e, t, s = void 0, n = void 0) {
|
|
|
1254
1277
|
});
|
|
1255
1278
|
});
|
|
1256
1279
|
}
|
|
1257
|
-
function
|
|
1280
|
+
function qe(e, t, s, n = void 0, i = void 0) {
|
|
1258
1281
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1259
1282
|
A(
|
|
1260
1283
|
e,
|
|
@@ -1279,7 +1302,7 @@ function We(e, t, s, n = void 0, i = void 0) {
|
|
|
1279
1302
|
}
|
|
1280
1303
|
let G, E;
|
|
1281
1304
|
const x = [];
|
|
1282
|
-
async function
|
|
1305
|
+
async function He(e, t = void 0, s = void 0) {
|
|
1283
1306
|
e.objID && e.objID !== "" ? A(
|
|
1284
1307
|
e,
|
|
1285
1308
|
(n) => {
|
|
@@ -1298,7 +1321,7 @@ async function Ye(e, t = void 0, s = void 0) {
|
|
|
1298
1321
|
}
|
|
1299
1322
|
);
|
|
1300
1323
|
}
|
|
1301
|
-
async function
|
|
1324
|
+
async function ze(e, t = void 0, s = void 0) {
|
|
1302
1325
|
console.log("getDatasByTenant (getDocuments)", e), await J(
|
|
1303
1326
|
e,
|
|
1304
1327
|
(n) => {
|
|
@@ -1310,7 +1333,7 @@ async function qe(e, t = void 0, s = void 0) {
|
|
|
1310
1333
|
}
|
|
1311
1334
|
);
|
|
1312
1335
|
}
|
|
1313
|
-
function
|
|
1336
|
+
function Qe(e, t = void 0, s = void 0) {
|
|
1314
1337
|
const n = [];
|
|
1315
1338
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1316
1339
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
@@ -1321,13 +1344,13 @@ function He(e, t = void 0, s = void 0) {
|
|
|
1321
1344
|
e,
|
|
1322
1345
|
i.objID,
|
|
1323
1346
|
(o) => {
|
|
1324
|
-
n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID),
|
|
1347
|
+
n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), ne(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1325
1348
|
}
|
|
1326
1349
|
);
|
|
1327
1350
|
});
|
|
1328
1351
|
}
|
|
1329
|
-
function
|
|
1330
|
-
|
|
1352
|
+
function ne(e, t, s = void 0, n = void 0) {
|
|
1353
|
+
ee(
|
|
1331
1354
|
e,
|
|
1332
1355
|
G,
|
|
1333
1356
|
(i) => {
|
|
@@ -1339,7 +1362,7 @@ function te(e, t, s = void 0, n = void 0) {
|
|
|
1339
1362
|
}
|
|
1340
1363
|
);
|
|
1341
1364
|
}
|
|
1342
|
-
const
|
|
1365
|
+
const se = "FA35FB9B177A280065800EA0000F599C", ie = [
|
|
1343
1366
|
"swym",
|
|
1344
1367
|
"3dspace",
|
|
1345
1368
|
"drive",
|
|
@@ -1353,13 +1376,13 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1353
1376
|
where: "ds6w:where",
|
|
1354
1377
|
who: "ds6w:who",
|
|
1355
1378
|
why: "ds6w:why"
|
|
1356
|
-
},
|
|
1357
|
-
objId:
|
|
1379
|
+
}, ae = {
|
|
1380
|
+
objId: se,
|
|
1358
1381
|
pred: "who",
|
|
1359
1382
|
order_by: "desc",
|
|
1360
1383
|
tag: "testTag"
|
|
1361
1384
|
};
|
|
1362
|
-
function
|
|
1385
|
+
function Ze(e, t, s = void 0, n = void 0) {
|
|
1363
1386
|
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1364
1387
|
uri: "/resources/6w/tags",
|
|
1365
1388
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1394,8 +1417,8 @@ function ze(e, t, s = void 0, n = void 0) {
|
|
|
1394
1417
|
e,
|
|
1395
1418
|
o,
|
|
1396
1419
|
(g) => {
|
|
1397
|
-
const h = g.data[0].dataelements.title,
|
|
1398
|
-
l.name = h, l.ext =
|
|
1420
|
+
const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1421
|
+
l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, oe(
|
|
1399
1422
|
e,
|
|
1400
1423
|
t,
|
|
1401
1424
|
(_) => {
|
|
@@ -1407,8 +1430,8 @@ function ze(e, t, s = void 0, n = void 0) {
|
|
|
1407
1430
|
);
|
|
1408
1431
|
},
|
|
1409
1432
|
(g, h) => {
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1433
|
+
const y = g;
|
|
1434
|
+
y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), n && n(y);
|
|
1412
1435
|
}
|
|
1413
1436
|
);
|
|
1414
1437
|
}, 2e3);
|
|
@@ -1419,7 +1442,7 @@ function ze(e, t, s = void 0, n = void 0) {
|
|
|
1419
1442
|
}
|
|
1420
1443
|
});
|
|
1421
1444
|
}
|
|
1422
|
-
function
|
|
1445
|
+
function oe(e, t, s = void 0, n = void 0) {
|
|
1423
1446
|
console.log("obj ", t);
|
|
1424
1447
|
const i = t.info.name, r = {
|
|
1425
1448
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
@@ -1469,7 +1492,7 @@ function ae(e, t, s = void 0, n = void 0) {
|
|
|
1469
1492
|
}
|
|
1470
1493
|
},
|
|
1471
1494
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1472
|
-
order_by:
|
|
1495
|
+
order_by: ae.order_by,
|
|
1473
1496
|
order_field: "relevance",
|
|
1474
1497
|
select_snippets: [
|
|
1475
1498
|
"ds6w:snippet",
|
|
@@ -1480,7 +1503,7 @@ function ae(e, t, s = void 0, n = void 0) {
|
|
|
1480
1503
|
],
|
|
1481
1504
|
nresults: 40,
|
|
1482
1505
|
start: "0",
|
|
1483
|
-
source:
|
|
1506
|
+
source: ie,
|
|
1484
1507
|
tenant: e.tenant,
|
|
1485
1508
|
login: {
|
|
1486
1509
|
"3dspace": {
|
|
@@ -1502,7 +1525,7 @@ function ae(e, t, s = void 0, n = void 0) {
|
|
|
1502
1525
|
}
|
|
1503
1526
|
});
|
|
1504
1527
|
}
|
|
1505
|
-
function
|
|
1528
|
+
function et(e, t, s = void 0, n = void 0) {
|
|
1506
1529
|
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1507
1530
|
uri: "/resources/6w/tags",
|
|
1508
1531
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1538,7 +1561,7 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1538
1561
|
}
|
|
1539
1562
|
});
|
|
1540
1563
|
}
|
|
1541
|
-
function
|
|
1564
|
+
function tt(e, t = "", s = void 0, n = void 0) {
|
|
1542
1565
|
const { space: i } = e;
|
|
1543
1566
|
if (t === "")
|
|
1544
1567
|
return;
|
|
@@ -1574,7 +1597,7 @@ async function w(e, t = void 0, s = void 0) {
|
|
|
1574
1597
|
}
|
|
1575
1598
|
});
|
|
1576
1599
|
}
|
|
1577
|
-
function
|
|
1600
|
+
function nt(e, t = void 0, s = void 0) {
|
|
1578
1601
|
const n = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1579
1602
|
params: {
|
|
1580
1603
|
community_id: null,
|
|
@@ -1604,7 +1627,7 @@ function et(e, t = void 0, s = void 0) {
|
|
|
1604
1627
|
});
|
|
1605
1628
|
});
|
|
1606
1629
|
}
|
|
1607
|
-
function
|
|
1630
|
+
function st(e, t = void 0, s = void 0) {
|
|
1608
1631
|
const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1609
1632
|
params: {
|
|
1610
1633
|
idsToFilterArr: [],
|
|
@@ -1634,7 +1657,7 @@ function tt(e, t = void 0, s = void 0) {
|
|
|
1634
1657
|
});
|
|
1635
1658
|
});
|
|
1636
1659
|
}
|
|
1637
|
-
function
|
|
1660
|
+
function it(e, t = void 0, s = void 0) {
|
|
1638
1661
|
const n = {
|
|
1639
1662
|
base: e.space,
|
|
1640
1663
|
uri: "/api/community/listmycommunities",
|
|
@@ -1659,7 +1682,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1659
1682
|
role: l.role,
|
|
1660
1683
|
access: l.access
|
|
1661
1684
|
};
|
|
1662
|
-
|
|
1685
|
+
re(
|
|
1663
1686
|
e,
|
|
1664
1687
|
l.id,
|
|
1665
1688
|
(h) => {
|
|
@@ -1676,7 +1699,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1676
1699
|
});
|
|
1677
1700
|
});
|
|
1678
1701
|
}
|
|
1679
|
-
function
|
|
1702
|
+
function re(e, t, s, n) {
|
|
1680
1703
|
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1681
1704
|
params: {
|
|
1682
1705
|
page: e.page ? e.page : 1,
|
|
@@ -1704,7 +1727,7 @@ function oe(e, t, s, n) {
|
|
|
1704
1727
|
});
|
|
1705
1728
|
});
|
|
1706
1729
|
}
|
|
1707
|
-
function
|
|
1730
|
+
function at(e, t = void 0, s = void 0) {
|
|
1708
1731
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1709
1732
|
e.commu_id || (e.commu_id = n);
|
|
1710
1733
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
@@ -1727,7 +1750,7 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1727
1750
|
});
|
|
1728
1751
|
});
|
|
1729
1752
|
}
|
|
1730
|
-
function
|
|
1753
|
+
function ot(e, t, s = void 0, n = void 0) {
|
|
1731
1754
|
const { listAllContacts: i, currentUser: r } = e;
|
|
1732
1755
|
console.log("__listAllContacts", i.hits);
|
|
1733
1756
|
const o = `${e.space}/api/directmessages`, a = {
|
|
@@ -1736,10 +1759,10 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1736
1759
|
id_msg: "",
|
|
1737
1760
|
senderId: e.currentUser.login,
|
|
1738
1761
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1739
|
-
msg:
|
|
1762
|
+
msg: de(t.msg)
|
|
1740
1763
|
};
|
|
1741
1764
|
let d = !1;
|
|
1742
|
-
|
|
1765
|
+
ce(
|
|
1743
1766
|
a.users,
|
|
1744
1767
|
(p) => {
|
|
1745
1768
|
p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
|
|
@@ -1770,7 +1793,7 @@ function it(e, t, s = void 0, n = void 0) {
|
|
|
1770
1793
|
});
|
|
1771
1794
|
}, 500);
|
|
1772
1795
|
}
|
|
1773
|
-
function
|
|
1796
|
+
function ce(e, t, s, n) {
|
|
1774
1797
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1775
1798
|
w(e, (r) => {
|
|
1776
1799
|
m(i, {
|
|
@@ -1836,14 +1859,14 @@ function R(e, t, s = void 0, n = void 0) {
|
|
|
1836
1859
|
});
|
|
1837
1860
|
});
|
|
1838
1861
|
}
|
|
1839
|
-
function
|
|
1862
|
+
function de(e) {
|
|
1840
1863
|
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1841
1864
|
return `<p>${e} </p>
|
|
1842
1865
|
<br/>
|
|
1843
1866
|
<hr/>
|
|
1844
1867
|
<p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
|
|
1845
1868
|
}
|
|
1846
|
-
const
|
|
1869
|
+
const pe = {
|
|
1847
1870
|
title: "TEST DEV COMMUNITY IDEA",
|
|
1848
1871
|
// titre du post
|
|
1849
1872
|
community_id: "YXdA5x4DSUKtlAi2wmnyTA",
|
|
@@ -1853,7 +1876,7 @@ const de = {
|
|
|
1853
1876
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1854
1877
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1855
1878
|
};
|
|
1856
|
-
function
|
|
1879
|
+
function rt(e, t, s = void 0, n = void 0) {
|
|
1857
1880
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1858
1881
|
(c) => c.id === t.community_id
|
|
1859
1882
|
), o = e.swymCommunities.find(
|
|
@@ -1864,7 +1887,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1864
1887
|
// String, le nom de l'affaire
|
|
1865
1888
|
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1866
1889
|
// String, l'id de la communauté
|
|
1867
|
-
message:
|
|
1890
|
+
message: ue(t.text_html),
|
|
1868
1891
|
// STRING => le contenue du message doit être au format HTML
|
|
1869
1892
|
published: 1
|
|
1870
1893
|
// 1 publier, 0 non publier
|
|
@@ -1892,7 +1915,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1892
1915
|
});
|
|
1893
1916
|
});
|
|
1894
1917
|
}
|
|
1895
|
-
function
|
|
1918
|
+
function ct(e, t = void 0, s = void 0) {
|
|
1896
1919
|
const n = { base: e.space, uri: "/api/idea/add" };
|
|
1897
1920
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1898
1921
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -1965,7 +1988,7 @@ function ot(e, t = void 0, s = void 0) {
|
|
|
1965
1988
|
m(n.base + n.uri, a);
|
|
1966
1989
|
});
|
|
1967
1990
|
}
|
|
1968
|
-
function
|
|
1991
|
+
function dt(e, t, s = void 0, n = void 0) {
|
|
1969
1992
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1970
1993
|
params: {
|
|
1971
1994
|
community_id: t.community_id,
|
|
@@ -1992,7 +2015,7 @@ function rt(e, t, s = void 0, n = void 0) {
|
|
|
1992
2015
|
});
|
|
1993
2016
|
});
|
|
1994
2017
|
}
|
|
1995
|
-
function
|
|
2018
|
+
function pt(e, t = void 0, s = void 0) {
|
|
1996
2019
|
const n = `${e.space}/api/idea/get`;
|
|
1997
2020
|
if (e.idPost === "") {
|
|
1998
2021
|
const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
@@ -2022,7 +2045,7 @@ function ct(e, t = void 0, s = void 0) {
|
|
|
2022
2045
|
});
|
|
2023
2046
|
});
|
|
2024
2047
|
}
|
|
2025
|
-
function
|
|
2048
|
+
function ut(e, t, s) {
|
|
2026
2049
|
const n = {
|
|
2027
2050
|
base: `${e.space}/api/idea/edit`,
|
|
2028
2051
|
uri: "/api/idea/edit"
|
|
@@ -2059,7 +2082,7 @@ function dt(e, t, s) {
|
|
|
2059
2082
|
m(n.base + n.uri, o);
|
|
2060
2083
|
});
|
|
2061
2084
|
}
|
|
2062
|
-
function
|
|
2085
|
+
function lt(e, t = pe, s = void 0, n = void 0) {
|
|
2063
2086
|
const i = {
|
|
2064
2087
|
uri: "/api/idea/list",
|
|
2065
2088
|
comId: `/community_id/${t.community_id}`,
|
|
@@ -2083,7 +2106,7 @@ function pt(e, t = de, s = void 0, n = void 0) {
|
|
|
2083
2106
|
});
|
|
2084
2107
|
});
|
|
2085
2108
|
}
|
|
2086
|
-
function
|
|
2109
|
+
function ue(e) {
|
|
2087
2110
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
2088
2111
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
2089
2112
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -2158,7 +2181,7 @@ function pe(e) {
|
|
|
2158
2181
|
<p>
|
|
2159
2182
|
</p>` : e;
|
|
2160
2183
|
}
|
|
2161
|
-
function
|
|
2184
|
+
function ft(e, t = void 0, s = void 0) {
|
|
2162
2185
|
const n = e.space + "/api/user/getcurrent/";
|
|
2163
2186
|
w(e, (i) => {
|
|
2164
2187
|
m(n, {
|
|
@@ -2177,7 +2200,7 @@ function ut(e, t = void 0, s = void 0) {
|
|
|
2177
2200
|
});
|
|
2178
2201
|
});
|
|
2179
2202
|
}
|
|
2180
|
-
function
|
|
2203
|
+
function mt(e, t, s = void 0, n = void 0) {
|
|
2181
2204
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2182
2205
|
w(
|
|
2183
2206
|
e,
|
|
@@ -2197,14 +2220,14 @@ function lt(e, t, s = void 0, n = void 0) {
|
|
|
2197
2220
|
n
|
|
2198
2221
|
);
|
|
2199
2222
|
}
|
|
2200
|
-
function
|
|
2223
|
+
function gt(e, t = void 0, s = void 0) {
|
|
2201
2224
|
e.tenant && T(e, (n) => {
|
|
2202
2225
|
console.log("serviceUrls", n);
|
|
2203
2226
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2204
2227
|
return t && t(i), i;
|
|
2205
2228
|
});
|
|
2206
2229
|
}
|
|
2207
|
-
function
|
|
2230
|
+
function ht(e, t = void 0, s = void 0) {
|
|
2208
2231
|
e.tenant && T(e, (n) => {
|
|
2209
2232
|
console.log("serviceUrls", n);
|
|
2210
2233
|
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`;
|
|
@@ -2224,7 +2247,7 @@ function mt(e, t = void 0, s = void 0) {
|
|
|
2224
2247
|
});
|
|
2225
2248
|
});
|
|
2226
2249
|
}
|
|
2227
|
-
function
|
|
2250
|
+
function yt(e, t = void 0, s = void 0) {
|
|
2228
2251
|
if (e.tenant) {
|
|
2229
2252
|
const n = e.tenant.toLowerCase();
|
|
2230
2253
|
fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
|
|
@@ -2236,7 +2259,7 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
2236
2259
|
});
|
|
2237
2260
|
}
|
|
2238
2261
|
}
|
|
2239
|
-
async function
|
|
2262
|
+
async function St(e, t, s = void 0, n = void 0) {
|
|
2240
2263
|
e.tenant && T(e, (i) => {
|
|
2241
2264
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2242
2265
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
@@ -2248,7 +2271,7 @@ async function ht(e, t, s = void 0, n = void 0) {
|
|
|
2248
2271
|
});
|
|
2249
2272
|
});
|
|
2250
2273
|
}
|
|
2251
|
-
async function
|
|
2274
|
+
async function _t(e, t, s = void 0, n = void 0) {
|
|
2252
2275
|
e.tenant && T(e, (i) => {
|
|
2253
2276
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2254
2277
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
@@ -2260,7 +2283,7 @@ async function St(e, t, s = void 0, n = void 0) {
|
|
|
2260
2283
|
});
|
|
2261
2284
|
});
|
|
2262
2285
|
}
|
|
2263
|
-
async function
|
|
2286
|
+
async function wt(e, t, s, n = void 0, i = void 0) {
|
|
2264
2287
|
if (e.tenant) {
|
|
2265
2288
|
const r = e.tenant.toLowerCase();
|
|
2266
2289
|
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${s}?t=${t}`, {
|
|
@@ -2272,7 +2295,7 @@ async function yt(e, t, s, n = void 0, i = void 0) {
|
|
|
2272
2295
|
});
|
|
2273
2296
|
}
|
|
2274
2297
|
}
|
|
2275
|
-
async function
|
|
2298
|
+
async function Tt(e, t, s, n = void 0, i = void 0) {
|
|
2276
2299
|
if (e.tenant) {
|
|
2277
2300
|
const r = e.tenant.toLowerCase();
|
|
2278
2301
|
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${s}/rows/?t=${t}`, {
|
|
@@ -2284,7 +2307,7 @@ async function _t(e, t, s, n = void 0, i = void 0) {
|
|
|
2284
2307
|
});
|
|
2285
2308
|
}
|
|
2286
2309
|
}
|
|
2287
|
-
async function
|
|
2310
|
+
async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
2288
2311
|
e.tenant && T(e, (o) => {
|
|
2289
2312
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2290
2313
|
const a = e.tenant.toLowerCase();
|
|
@@ -2300,7 +2323,7 @@ async function wt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2300
2323
|
});
|
|
2301
2324
|
});
|
|
2302
2325
|
}
|
|
2303
|
-
async function
|
|
2326
|
+
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2304
2327
|
e.tenant && T(e, (a) => {
|
|
2305
2328
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2306
2329
|
const c = e.tenant.toLowerCase();
|
|
@@ -2316,7 +2339,7 @@ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2316
2339
|
});
|
|
2317
2340
|
});
|
|
2318
2341
|
}
|
|
2319
|
-
async function
|
|
2342
|
+
async function Ot(e, t, s, n = void 0, i = void 0) {
|
|
2320
2343
|
e.tenant && T(e, (r) => {
|
|
2321
2344
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2322
2345
|
const o = e.tenant.toLowerCase();
|
|
@@ -2332,7 +2355,7 @@ async function Ct(e, t, s, n = void 0, i = void 0) {
|
|
|
2332
2355
|
});
|
|
2333
2356
|
});
|
|
2334
2357
|
}
|
|
2335
|
-
async function
|
|
2358
|
+
async function $t(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2336
2359
|
e.tenant && T(e, (a) => {
|
|
2337
2360
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2338
2361
|
const c = e.tenant.toLowerCase();
|
|
@@ -2348,7 +2371,7 @@ async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2348
2371
|
});
|
|
2349
2372
|
});
|
|
2350
2373
|
}
|
|
2351
|
-
async function
|
|
2374
|
+
async function vt(e, t, s, n, i = void 0, r = void 0) {
|
|
2352
2375
|
e.tenant && T(e, (o) => {
|
|
2353
2376
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2354
2377
|
const a = e.tenant.toLowerCase();
|
|
@@ -2364,14 +2387,14 @@ async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2364
2387
|
});
|
|
2365
2388
|
});
|
|
2366
2389
|
}
|
|
2367
|
-
function
|
|
2390
|
+
function Nt(e) {
|
|
2368
2391
|
const t = "Hello " + e;
|
|
2369
2392
|
return console.log(t), t;
|
|
2370
2393
|
}
|
|
2371
|
-
function
|
|
2394
|
+
function It(e, t = void 0, s = void 0) {
|
|
2372
2395
|
return console.log("credentials", e), new Promise((n) => {
|
|
2373
2396
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2374
|
-
const o =
|
|
2397
|
+
const o = W();
|
|
2375
2398
|
console.log("platformeInfo", o);
|
|
2376
2399
|
}
|
|
2377
2400
|
k(
|
|
@@ -2449,93 +2472,94 @@ function vt(e, t = void 0, s = void 0) {
|
|
|
2449
2472
|
}
|
|
2450
2473
|
export {
|
|
2451
2474
|
D as UUID,
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2475
|
+
It as _3DSearch_usersGroup,
|
|
2476
|
+
Le as _3DSpace_Create_Doc,
|
|
2477
|
+
De as _3DSpace_Update_Doc,
|
|
2478
|
+
Ve as _3DSpace_bookmark_addSubsciptions,
|
|
2479
|
+
Be as _3DSpace_bookmark_newWorkspace,
|
|
2457
2480
|
b as _3DSpace_csrf,
|
|
2458
2481
|
J as _3DSpace_download_doc,
|
|
2459
|
-
|
|
2482
|
+
ee as _3DSpace_download_multidoc,
|
|
2460
2483
|
M as _3DSpace_file_update,
|
|
2461
|
-
|
|
2462
|
-
|
|
2484
|
+
Z as _3DSpace_file_update_csr,
|
|
2485
|
+
Pe as _3DSpace_file_url_csr,
|
|
2463
2486
|
A as _3DSpace_get_csrf,
|
|
2464
2487
|
L as _3DSpace_get_docInfo,
|
|
2465
|
-
|
|
2466
|
-
|
|
2488
|
+
te as _3DSpace_get_downloadTicket_multidoc,
|
|
2489
|
+
Re as _3DSpace_get_multiDocInfo,
|
|
2467
2490
|
k as _3DSpace_get_securityContexts,
|
|
2468
2491
|
j as _3DSpace_get_ticket,
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2492
|
+
Ke as _3DSpace_lifecycle_changeRevision,
|
|
2493
|
+
Je as _3DSpace_lifecycle_changeState,
|
|
2494
|
+
Ge as _3DSpace_lifecycle_getGraph,
|
|
2495
|
+
Ee as _3DSpace_lifecycle_getNextRevision,
|
|
2496
|
+
Me as _3DSpace_lifecycle_getNextStates,
|
|
2497
|
+
ot as _3DSwym_buildDirectMessage,
|
|
2498
|
+
dt as _3DSwym_deleteIdea,
|
|
2499
|
+
ut as _3DSwym_editIdea,
|
|
2500
|
+
ce as _3DSwym_findCommunityToInstantMSG,
|
|
2501
|
+
it as _3DSwym_getAllCommunities,
|
|
2502
|
+
lt as _3DSwym_getAllListIdeas,
|
|
2503
|
+
nt as _3DSwym_getAllNews,
|
|
2504
|
+
st as _3DSwym_getFamiliarPeople,
|
|
2505
|
+
at as _3DSwym_getIdeaStatusMaturity,
|
|
2506
|
+
re as _3DSwym_getMembersCommunity,
|
|
2507
|
+
pt as _3DSwym_getOneIdea,
|
|
2485
2508
|
w as _3DSwym_get_Token,
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2509
|
+
ft as _3DSwym_get_currentUser,
|
|
2510
|
+
mt as _3DSwym_get_findUser,
|
|
2511
|
+
ct as _3DSwym_postIdea,
|
|
2512
|
+
rt as _3DSwym_postIdeaTemplate,
|
|
2490
2513
|
R as _3DSwym_sendMessageData,
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2514
|
+
Ne as _AppMngt_get_info_user,
|
|
2515
|
+
ve as _AppMngt_get_users,
|
|
2516
|
+
bt as _Iterop_AddOrRemoveRows,
|
|
2517
|
+
ht as _Iterop_Auth_CAS,
|
|
2518
|
+
Ot as _Iterop_GetOneDependencyTable,
|
|
2519
|
+
St as _Iterop_ListUsers,
|
|
2520
|
+
$t as _Iterop_PatchDependencyTable,
|
|
2521
|
+
vt as _Iterop_PutDependencyTable,
|
|
2522
|
+
_t as _Iterop_getAllBusinessTables,
|
|
2523
|
+
wt as _Iterop_getOneBusinessTable,
|
|
2524
|
+
Tt as _Iterop_getOneBusinessTableRows,
|
|
2525
|
+
yt as _Iterop_jwtUser,
|
|
2526
|
+
Ct as _Iterop_runProcess,
|
|
2527
|
+
W as _getPlateformInfos,
|
|
2528
|
+
be as _getPlatformServices,
|
|
2506
2529
|
T as _getServiceUrl,
|
|
2507
|
-
|
|
2508
|
-
|
|
2530
|
+
Oe as _getServiceUrl_3DPassport,
|
|
2531
|
+
gt as _getServiceUrl_Iterop,
|
|
2509
2532
|
m as _httpCallAuthenticated,
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2533
|
+
we as _setDraggable,
|
|
2534
|
+
Ce as _setDroppable,
|
|
2535
|
+
Te as _setupTagger,
|
|
2536
|
+
Ze as addTagToDoc,
|
|
2537
|
+
Se as chunkArray,
|
|
2538
|
+
$e as compass_getListAdditionalApps,
|
|
2515
2539
|
V as couleurs,
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
+
Ie as createUserGroups,
|
|
2541
|
+
ne as dataMixing,
|
|
2542
|
+
Fe as deleteUserGroups,
|
|
2543
|
+
he as findAdresse,
|
|
2544
|
+
Xe as getAllContextSecurity,
|
|
2545
|
+
q as getCSRFToken,
|
|
2546
|
+
ge as getCommunes,
|
|
2547
|
+
Ae as getComplementUG,
|
|
2548
|
+
We as getDataFrom3DSpace,
|
|
2549
|
+
ye as getDataFromGouvFr,
|
|
2550
|
+
ze as getDatasByTenant,
|
|
2551
|
+
Qe as getDatasFrom3DSpace,
|
|
2552
|
+
Ye as getDownloadDocument,
|
|
2553
|
+
tt as getInfoDocTags,
|
|
2554
|
+
ke as getUserGroupsList,
|
|
2555
|
+
Y as getUsersGroupRules,
|
|
2556
|
+
He as get_3DSpace_csrf,
|
|
2557
|
+
Ue as patchUserGroups,
|
|
2558
|
+
je as patchUserGroupsControl,
|
|
2559
|
+
qe as pushDataIn3DSpace,
|
|
2560
|
+
xe as readUserGroupControl,
|
|
2561
|
+
et as removeTagToDoc,
|
|
2562
|
+
Nt as sayHello,
|
|
2563
|
+
_e as updateEvent
|
|
2540
2564
|
};
|
|
2541
2565
|
//# sourceMappingURL=wb3Api.js.map
|