@beam3_dev/api_module 0.0.176 → 0.0.177

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
@@ -250,7 +250,7 @@ function Ne(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const U = {
253
+ const k = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
@@ -271,7 +271,7 @@ function $e(e, t, n = void 0, s = void 0) {
271
271
  };
272
272
  m(a, {
273
273
  method: "POST",
274
- headers: U,
274
+ headers: k,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
@@ -355,7 +355,7 @@ function Ae(e, t) {
355
355
  method: "DELETE"
356
356
  });
357
357
  }
358
- function ke(e, t, n, s = void 0, i = void 0) {
358
+ function Ue(e, t, n, s = void 0, i = void 0) {
359
359
  const { space: r, tenant: o } = e, a = {
360
360
  URITI: "/3drdfpersist/resources/v1/template-instances",
361
361
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -366,7 +366,7 @@ function ke(e, t, n, s = void 0, i = void 0) {
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = n, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
368
368
  m(d, {
369
- headers: U,
369
+ headers: k,
370
370
  method: "PATCH",
371
371
  data: p,
372
372
  type: "json",
@@ -378,11 +378,11 @@ function ke(e, t, n, s = void 0, i = void 0) {
378
378
  }
379
379
  });
380
380
  }
381
- function Ue(e, t, n, s = void 0, i = void 0) {
381
+ function ke(e, t, n, s = void 0, i = void 0) {
382
382
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
383
  m(a, {
384
384
  method: "PATCH",
385
- headers: U,
385
+ headers: k,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -718,11 +718,11 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
718
718
  ]
719
719
  }),
720
720
  type: "json",
721
- onComplete(k) {
722
- i && i(k);
721
+ onComplete(U) {
722
+ i && i(U);
723
723
  },
724
- onFailure(k) {
725
- r && r(k);
724
+ onFailure(U) {
725
+ r && r(U);
726
726
  }
727
727
  };
728
728
  m(
@@ -2104,7 +2104,19 @@ function lt(e, t = void 0, n = void 0) {
2104
2104
  });
2105
2105
  });
2106
2106
  }
2107
- async function ut(e, t, n = void 0, s = void 0) {
2107
+ function ut(e, t = void 0, n = void 0) {
2108
+ if (e.tenant) {
2109
+ const s = e.tenant.toLowerCase();
2110
+ fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
2111
+ method: "POST"
2112
+ }).then((i) => i.json()).then((i) => {
2113
+ t && t(i);
2114
+ }).catch((i) => {
2115
+ n && n(i);
2116
+ });
2117
+ }
2118
+ }
2119
+ async function ft(e, t, n = void 0, s = void 0) {
2108
2120
  e.tenant && b(e, (i) => {
2109
2121
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2110
2122
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
@@ -2116,7 +2128,7 @@ async function ut(e, t, n = void 0, s = void 0) {
2116
2128
  });
2117
2129
  });
2118
2130
  }
2119
- async function ft(e, t, n = void 0, s = void 0) {
2131
+ async function mt(e, t, n = void 0, s = void 0) {
2120
2132
  e.tenant && b(e, (i) => {
2121
2133
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2122
2134
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
@@ -2128,7 +2140,7 @@ async function ft(e, t, n = void 0, s = void 0) {
2128
2140
  });
2129
2141
  });
2130
2142
  }
2131
- async function mt(e, t, n, s = void 0, i = void 0) {
2143
+ async function gt(e, t, n, s = void 0, i = void 0) {
2132
2144
  if (e.tenant) {
2133
2145
  const r = e.tenant.toLowerCase();
2134
2146
  fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}?t=${t}`, {
@@ -2140,7 +2152,7 @@ async function mt(e, t, n, s = void 0, i = void 0) {
2140
2152
  });
2141
2153
  }
2142
2154
  }
2143
- async function gt(e, t, n, s = void 0, i = void 0) {
2155
+ async function ht(e, t, n, s = void 0, i = void 0) {
2144
2156
  if (e.tenant) {
2145
2157
  const r = e.tenant.toLowerCase();
2146
2158
  fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}/rows/?t=${t}`, {
@@ -2152,7 +2164,7 @@ async function gt(e, t, n, s = void 0, i = void 0) {
2152
2164
  });
2153
2165
  }
2154
2166
  }
2155
- async function ht(e, t, n, s, i = void 0, r = void 0) {
2167
+ async function St(e, t, n, s, i = void 0, r = void 0) {
2156
2168
  e.tenant && b(e, (o) => {
2157
2169
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2158
2170
  const a = e.tenant.toLowerCase();
@@ -2168,7 +2180,7 @@ async function ht(e, t, n, s, i = void 0, r = void 0) {
2168
2180
  });
2169
2181
  });
2170
2182
  }
2171
- async function St(e, t, n, s, i, r = void 0, o = void 0) {
2183
+ async function yt(e, t, n, s, i, r = void 0, o = void 0) {
2172
2184
  e.tenant && b(e, (a) => {
2173
2185
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2174
2186
  const c = e.tenant.toLowerCase();
@@ -2184,11 +2196,11 @@ async function St(e, t, n, s, i, r = void 0, o = void 0) {
2184
2196
  });
2185
2197
  });
2186
2198
  }
2187
- function yt(e) {
2199
+ function _t(e) {
2188
2200
  const t = "Hello " + e;
2189
2201
  return console.log(t), t;
2190
2202
  }
2191
- function _t(e, t = void 0, n = void 0) {
2203
+ function wt(e, t = void 0, n = void 0) {
2192
2204
  return console.log("credentials", e), new Promise((s) => {
2193
2205
  if (e.token === "" && T(e), !e.space || e.space === "") {
2194
2206
  const o = V();
@@ -2269,7 +2281,7 @@ function _t(e, t = void 0, n = void 0) {
2269
2281
  }
2270
2282
  export {
2271
2283
  P as UUID,
2272
- _t as _3DSearch_usersGroup,
2284
+ wt as _3DSearch_usersGroup,
2273
2285
  Re as _3DSpace_Create_Doc,
2274
2286
  Ee as _3DSpace_bookmark_addSubsciptions,
2275
2287
  Ge as _3DSpace_bookmark_newWorkspace,
@@ -2307,13 +2319,14 @@ export {
2307
2319
  x as _3DSwym_sendMessageData,
2308
2320
  Ne as _AppMngt_get_info_user,
2309
2321
  be as _AppMngt_get_users,
2310
- St as _Iterop_AddOrRemoveRows,
2322
+ yt as _Iterop_AddOrRemoveRows,
2311
2323
  lt as _Iterop_Auth_CAS,
2312
- ut as _Iterop_ListUsers,
2313
- ft as _Iterop_getAllBusinessTables,
2314
- mt as _Iterop_getOneBusinessTable,
2315
- gt as _Iterop_getOneBusinessTableRows,
2316
- ht as _Iterop_runProcess,
2324
+ ft as _Iterop_ListUsers,
2325
+ mt as _Iterop_getAllBusinessTables,
2326
+ gt as _Iterop_getOneBusinessTable,
2327
+ ht as _Iterop_getOneBusinessTableRows,
2328
+ ut as _Iterop_jwtUser,
2329
+ St as _Iterop_runProcess,
2317
2330
  V as _getPlateformInfos,
2318
2331
  Ce as _getPlatformServices,
2319
2332
  b as _getServiceUrl,
@@ -2343,12 +2356,12 @@ export {
2343
2356
  Ie as getUserGroupsList,
2344
2357
  B as getUsersGroupRules,
2345
2358
  Xe as get_3DSpace_csrf,
2346
- ke as patchUserGroups,
2347
- Ue as patchUserGroupsControl,
2359
+ Ue as patchUserGroups,
2360
+ ke as patchUserGroupsControl,
2348
2361
  We as pushDataIn3DSpace,
2349
2362
  Fe as readUserGroupControl,
2350
2363
  qe as removeTagToDoc,
2351
- yt as sayHello,
2364
+ _t as sayHello,
2352
2365
  Se as updateEvent
2353
2366
  };
2354
2367
  //# sourceMappingURL=wb3Api.js.map