@beam3_dev/api_module 0.0.223 → 0.0.225

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 CHANGED
@@ -167,7 +167,7 @@ function Ce(e, t) {
167
167
  });
168
168
  });
169
169
  }
170
- async function be(e, t = void 0, s = void 0) {
170
+ async function Te(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 T(e, t = void 0, s = void 0) {
198
+ function b(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 T(e, t = void 0, s = void 0) {
215
215
  });
216
216
  }
217
217
  }
218
- function Te(e, t = void 0, s = void 0) {
218
+ function be(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, {
@@ -284,7 +284,7 @@ function Ie(e, t, s = void 0, n = void 0) {
284
284
  }
285
285
  });
286
286
  }
287
- const j = {
287
+ const F = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
@@ -305,7 +305,7 @@ function ve(e, t, s = void 0, n = void 0) {
305
305
  };
306
306
  m(a, {
307
307
  method: "POST",
308
- headers: j,
308
+ headers: F,
309
309
  data: JSON.stringify(c),
310
310
  onComplete(d) {
311
311
  s && s(JSON.parse(d));
@@ -389,7 +389,7 @@ function Ae(e, t) {
389
389
  method: "DELETE"
390
390
  });
391
391
  }
392
- function Fe(e, t, s, n = void 0, i = void 0) {
392
+ function je(e, t, s, n = void 0, i = void 0) {
393
393
  const { space: r, tenant: o } = e, a = {
394
394
  URITI: "/3drdfpersist/resources/v1/template-instances",
395
395
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -400,7 +400,7 @@ function Fe(e, t, s, n = void 0, i = void 0) {
400
400
  OPTsTenant: `tenant=dstenant:${o}`
401
401
  }, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
402
402
  m(d, {
403
- headers: j,
403
+ headers: F,
404
404
  method: "PATCH",
405
405
  data: p,
406
406
  type: "json",
@@ -412,11 +412,11 @@ function Fe(e, t, s, n = void 0, i = void 0) {
412
412
  }
413
413
  });
414
414
  }
415
- function je(e, t, s, n = void 0, i = void 0) {
415
+ function Fe(e, t, s, n = void 0, i = void 0) {
416
416
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
417
417
  m(a, {
418
418
  method: "PATCH",
419
- headers: j,
419
+ headers: F,
420
420
  data: JSON.stringify(s),
421
421
  type: "json",
422
422
  onComplete(d) {
@@ -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(b) {
692
- o && o(b);
691
+ onComplete(T) {
692
+ o && o(T);
693
693
  },
694
- onFailure(b) {
695
- a && a(b);
694
+ onFailure(T) {
695
+ a && a(T);
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(), b = {
752
+ let w = D(), T = {
753
753
  method: "POST",
754
754
  headers: {
755
755
  ENO_CSRF_TOKEN: a,
@@ -789,7 +789,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
789
789
  };
790
790
  m(
791
791
  o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
792
- b
792
+ T
793
793
  );
794
794
  },
795
795
  onFailure(_) {
@@ -802,7 +802,7 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
802
802
  });
803
803
  }
804
804
  }
805
- function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
805
+ function j(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
806
806
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
807
807
  m(a, {
808
808
  method: "GET",
@@ -1037,7 +1037,7 @@ function Je(e, t, s = void 0, n = void 0) {
1037
1037
  return new Promise((i) => {
1038
1038
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1039
1039
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1040
- F(
1040
+ j(
1041
1041
  e.space,
1042
1042
  "ESPACE COMMUN",
1043
1043
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1078,7 +1078,7 @@ function Ge(e, t, s = void 0, n = void 0) {
1078
1078
  return new Promise((i) => {
1079
1079
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1080
1080
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1081
- F(
1081
+ j(
1082
1082
  e.space,
1083
1083
  "ESPACE COMMUN",
1084
1084
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1125,7 +1125,7 @@ function Ee(e, t, s, n = void 0, i = void 0) {
1125
1125
  return new Promise((r) => {
1126
1126
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1127
1127
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1128
- F(
1128
+ j(
1129
1129
  e.space,
1130
1130
  "ESPACE COMMUN",
1131
1131
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -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 b = w.response.result.find(
2099
+ const T = w.response.result.find(
2100
2100
  (I) => I.title.includes(c)
2101
2101
  );
2102
- if (b) {
2103
- s(b);
2102
+ if (T) {
2103
+ s(T);
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 b = _;
2116
- b.status = w.status, b.response = w.errormsg, n && n(b);
2115
+ const T = _;
2116
+ T.status = w.status, T.response = w.errormsg, n && n(T);
2117
2117
  }
2118
2118
  });
2119
2119
  };
@@ -2235,19 +2235,16 @@ 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 && T(e, (n) => {
2239
- console.log("serviceUrls", n);
2238
+ e.tenant && b(e, (n) => {
2240
2239
  const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2241
2240
  return t && t(i), i;
2242
2241
  });
2243
2242
  }
2244
2243
  function gt(e, t = void 0, s = void 0) {
2245
- e.tenant && T(e, (n) => {
2246
- console.log("serviceUrls", n);
2244
+ e.tenant && b(e, (n) => {
2247
2245
  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
2246
  m(o, {
2249
2247
  async onComplete(a) {
2250
- console.log("response", a);
2251
2248
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
2252
2249
  await fetch(c, {
2253
2250
  method: "POST"
@@ -2274,7 +2271,7 @@ function ht(e, t = void 0, s = void 0) {
2274
2271
  }
2275
2272
  }
2276
2273
  async function yt(e, t, s = void 0, n = void 0) {
2277
- e.tenant && T(e, (i) => {
2274
+ e.tenant && b(e, (i) => {
2278
2275
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2279
2276
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2280
2277
  method: "POST"
@@ -2286,7 +2283,7 @@ async function yt(e, t, s = void 0, n = void 0) {
2286
2283
  });
2287
2284
  }
2288
2285
  async function St(e, t, s = void 0, n = void 0) {
2289
- e.tenant && T(e, (i) => {
2286
+ e.tenant && b(e, (i) => {
2290
2287
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2291
2288
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2292
2289
  method: "GET"
@@ -2322,7 +2319,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
2322
2319
  }
2323
2320
  }
2324
2321
  async function Ct(e, t, s, n, i = void 0, r = void 0) {
2325
- e.tenant && T(e, (o) => {
2322
+ e.tenant && b(e, (o) => {
2326
2323
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2327
2324
  const a = e.tenant.toLowerCase();
2328
2325
  fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`, {
@@ -2334,7 +2331,7 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
2334
2331
  });
2335
2332
  });
2336
2333
  }
2337
- async function bt(e, t, s, n, i, r = void 0, o = void 0) {
2334
+ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
2338
2335
  if (e.tenant) {
2339
2336
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
2340
2337
  n
@@ -2353,7 +2350,7 @@ async function bt(e, t, s, n, i, r = void 0, o = void 0) {
2353
2350
  });
2354
2351
  }
2355
2352
  }
2356
- async function Tt(e, t, s, n, i = void 0, r = void 0) {
2353
+ async function bt(e, t, s, n, i = void 0, r = void 0) {
2357
2354
  if (e.tenant) {
2358
2355
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
2359
2356
  n
@@ -2361,7 +2358,7 @@ async function Tt(e, t, s, n, i = void 0, r = void 0) {
2361
2358
  fetch(o, {
2362
2359
  method: "POST"
2363
2360
  }).then((a) => a.json()).then((a) => {
2364
- console.log("_Iterop_updateBusinessTable | _Iterop_businessTableSearchInRows | fetch | onDone", n), i && i(a);
2361
+ i && i(a);
2365
2362
  }).catch((a) => {
2366
2363
  r && r({
2367
2364
  error: a,
@@ -2371,7 +2368,7 @@ async function Tt(e, t, s, n, i = void 0, r = void 0) {
2371
2368
  }
2372
2369
  }
2373
2370
  async function Ot(e, t, s, n, i = void 0, r = void 0) {
2374
- e.tenant && T(e, (o) => {
2371
+ e.tenant && b(e, (o) => {
2375
2372
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2376
2373
  const a = e.tenant.toLowerCase();
2377
2374
  fetch(
@@ -2387,7 +2384,7 @@ async function Ot(e, t, s, n, i = void 0, r = void 0) {
2387
2384
  });
2388
2385
  }
2389
2386
  async function $t(e, t, s, n = void 0, i = void 0) {
2390
- e.tenant && T(e, (r) => {
2387
+ e.tenant && b(e, (r) => {
2391
2388
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2392
2389
  const o = e.tenant.toLowerCase();
2393
2390
  fetch(
@@ -2403,7 +2400,7 @@ async function $t(e, t, s, n = void 0, i = void 0) {
2403
2400
  });
2404
2401
  }
2405
2402
  async function It(e, t, s, n, i, r = void 0, o = void 0) {
2406
- e.tenant && T(e, (a) => {
2403
+ e.tenant && b(e, (a) => {
2407
2404
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2408
2405
  const c = e.tenant.toLowerCase();
2409
2406
  fetch(
@@ -2419,7 +2416,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
2419
2416
  });
2420
2417
  }
2421
2418
  async function vt(e, t, s, n, i = void 0, r = void 0) {
2422
- e.tenant && T(e, (o) => {
2419
+ e.tenant && b(e, (o) => {
2423
2420
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2424
2421
  const a = e.tenant.toLowerCase();
2425
2422
  fetch(
@@ -2434,17 +2431,34 @@ async function vt(e, t, s, n, i = void 0, r = void 0) {
2434
2431
  });
2435
2432
  });
2436
2433
  }
2437
- function Nt(e) {
2434
+ //!SECTION
2435
+ async function Nt(e, t, s, n = void 0, i = void 0) {
2436
+ if (e.tenant) {
2437
+ const r = e.tenant.toLowerCase();
2438
+ fetch(
2439
+ `https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${t}`,
2440
+ {
2441
+ method: "POST"
2442
+ }
2443
+ ).then((o) => o.json()).then((o) => {
2444
+ n && n(o);
2445
+ }).catch((o) => {
2446
+ i && i(o);
2447
+ });
2448
+ }
2449
+ }
2450
+ //!SECTION
2451
+ function kt(e) {
2438
2452
  const t = "Hello " + e;
2439
2453
  return console.log(t), t;
2440
2454
  }
2441
- function kt(e, t = void 0, s = void 0) {
2455
+ function At(e, t = void 0, s = void 0) {
2442
2456
  return console.log("credentials", e), new Promise((n) => {
2443
2457
  if (e.token === "" && O(e), !e.space || e.space === "") {
2444
2458
  const o = Y();
2445
2459
  console.log("platformeInfo", o);
2446
2460
  }
2447
- F(
2461
+ j(
2448
2462
  e,
2449
2463
  "Common space",
2450
2464
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2519,7 +2533,7 @@ function kt(e, t = void 0, s = void 0) {
2519
2533
  }
2520
2534
  export {
2521
2535
  D as UUID,
2522
- kt as _3DSearch_usersGroup,
2536
+ At as _3DSearch_usersGroup,
2523
2537
  De as _3DSpace_Create_Doc,
2524
2538
  Re as _3DSpace_Update_Doc,
2525
2539
  Be as _3DSpace_bookmark_addSubsciptions,
@@ -2534,7 +2548,7 @@ export {
2534
2548
  L as _3DSpace_get_docInfo,
2535
2549
  ne as _3DSpace_get_downloadTicket_multidoc,
2536
2550
  xe as _3DSpace_get_multiDocInfo,
2537
- F as _3DSpace_get_securityContexts,
2551
+ j as _3DSpace_get_securityContexts,
2538
2552
  U as _3DSpace_get_ticket,
2539
2553
  Ee as _3DSpace_lifecycle_changeRevision,
2540
2554
  Me as _3DSpace_lifecycle_changeState,
@@ -2563,20 +2577,21 @@ export {
2563
2577
  Ct as _Iterop_AddOrRemoveRows,
2564
2578
  gt as _Iterop_Auth_CAS,
2565
2579
  $t as _Iterop_GetOneDependencyTable,
2580
+ Nt as _Iterop_GetOneList,
2566
2581
  yt as _Iterop_ListUsers,
2567
2582
  It as _Iterop_PatchDependencyTable,
2568
2583
  vt as _Iterop_PutDependencyTable,
2569
- bt as _Iterop_businessTableSearchInRows,
2584
+ Tt as _Iterop_businessTableSearchInRows,
2570
2585
  St as _Iterop_getAllBusinessTables,
2571
2586
  _t as _Iterop_getOneBusinessTable,
2572
2587
  wt as _Iterop_getOneBusinessTableRows,
2573
2588
  ht as _Iterop_jwtUser,
2574
2589
  Ot as _Iterop_runProcess,
2575
- Tt as _Iterop_updateBusinessTable,
2590
+ bt as _Iterop_updateBusinessTable,
2576
2591
  Y as _getPlateformInfos,
2577
- be as _getPlatformServices,
2578
- T as _getServiceUrl,
2579
- Te as _getServiceUrl_3DPassport,
2592
+ Te as _getPlatformServices,
2593
+ b as _getServiceUrl,
2594
+ be as _getServiceUrl_3DPassport,
2580
2595
  mt as _getServiceUrl_Iterop,
2581
2596
  m as _httpCallAuthenticated,
2582
2597
  _e as _setDraggable,
@@ -2603,12 +2618,12 @@ export {
2603
2618
  ke as getUserGroupsList,
2604
2619
  q as getUsersGroupRules,
2605
2620
  qe as get_3DSpace_csrf,
2606
- Fe as patchUserGroups,
2607
- je as patchUserGroupsControl,
2621
+ je as patchUserGroups,
2622
+ Fe as patchUserGroupsControl,
2608
2623
  Ye as pushDataIn3DSpace,
2609
2624
  Ue as readUserGroupControl,
2610
2625
  Ze as removeTagToDoc,
2611
- Nt as sayHello,
2626
+ kt as sayHello,
2612
2627
  Se as updateEvent
2613
2628
  };
2614
2629
  //# sourceMappingURL=wb3Api.js.map