@beam3_dev/api_module 0.0.220 → 0.0.222
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 +2 -2
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +1 -1
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.umd.cjs
CHANGED
|
@@ -74,5 +74,5 @@ function Re(e,t=void 0,s=void 0){const n={base:`${e.space}`,uri:"/resources/bps/
|
|
|
74
74
|
<tr><td><strong>Service études de prix</strong></td><td><br /></td></tr>
|
|
75
75
|
</tbody></table>
|
|
76
76
|
<p>
|
|
77
|
-
</p>`:e}function dt(e,t=void 0,s=void 0){const n=e.space+"/api/user/getcurrent/";T(e,i=>{g(n,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":i.result.ServerToken},onComplete(r,o,a){const c=JSON.parse(r);t&&t(c.result)},onFailure(r,o,a){const c={erreur:JSON.parse(r),headers:o,xhr:a};s&&s(c)}})})}function ut(e,t,s=void 0,n=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,r=>{g(i,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":r.result.ServerToken},onComplete(o,a,c){const d=JSON.parse(o);s&&s(d)},onFailure(o){n&&n(o)}})},n)}function lt(e,t=void 0,s=void 0){e.tenant&&O(e,n=>{console.log("serviceUrls",n);const i=n.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function pt(e,t=void 0,s=void 0){e.tenant&&O(e,n=>{console.log("serviceUrls",n);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`;g(o,{async onComplete(a){console.log("response",a);const c=typeof a=="string"?JSON.parse(a)?.x3ds_service_redirect_url:a?.x3ds_service_redirect_url;await fetch(c,{method:"POST"}).then(d=>d.json()).then(async d=>{t&&t(d?.token)})},onFailure(a){s&&s(a)}})})}function ft(e,t=void 0,s=void 0){if(e.tenant){const n=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`,{method:"POST"}).then(i=>i.json()).then(i=>{t&&t(i)}).catch(i=>{s&&s(i)})}}async function mt(e,t,s=void 0,n=void 0){e.tenant&&O(e,i=>{const o=`${i.services.find(c=>c.id==="businessprocess")?.url+"/api/v2"}/identity/users`,a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`,{method:"POST"}).then(c=>c.json()).then(c=>{s&&s(c)}).catch(c=>{n&&n(c)})})}async function gt(e,t,s=void 0,n=void 0){e.tenant&&O(e,i=>{const o=`${i.services.find(c=>c.id==="businessprocess")?.url+"/api/v2"}/repository/data/tables`,a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`,{method:"GET"}).then(c=>c.json()).then(c=>{s&&s(c)}).catch(c=>{n&&n(c)})})}async function _t(e,t,s,n=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop
|
|
77
|
+
</p>`:e}function dt(e,t=void 0,s=void 0){const n=e.space+"/api/user/getcurrent/";T(e,i=>{g(n,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":i.result.ServerToken},onComplete(r,o,a){const c=JSON.parse(r);t&&t(c.result)},onFailure(r,o,a){const c={erreur:JSON.parse(r),headers:o,xhr:a};s&&s(c)}})})}function ut(e,t,s=void 0,n=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,r=>{g(i,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":r.result.ServerToken},onComplete(o,a,c){const d=JSON.parse(o);s&&s(d)},onFailure(o){n&&n(o)}})},n)}function lt(e,t=void 0,s=void 0){e.tenant&&O(e,n=>{console.log("serviceUrls",n);const i=n.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function pt(e,t=void 0,s=void 0){e.tenant&&O(e,n=>{console.log("serviceUrls",n);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`;g(o,{async onComplete(a){console.log("response",a);const c=typeof a=="string"?JSON.parse(a)?.x3ds_service_redirect_url:a?.x3ds_service_redirect_url;await fetch(c,{method:"POST"}).then(d=>d.json()).then(async d=>{t&&t(d?.token)})},onFailure(a){s&&s(a)}})})}function ft(e,t=void 0,s=void 0){if(e.tenant){const n=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`,{method:"POST"}).then(i=>i.json()).then(i=>{t&&t(i)}).catch(i=>{s&&s(i)})}}async function mt(e,t,s=void 0,n=void 0){e.tenant&&O(e,i=>{const o=`${i.services.find(c=>c.id==="businessprocess")?.url+"/api/v2"}/identity/users`,a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`,{method:"POST"}).then(c=>c.json()).then(c=>{s&&s(c)}).catch(c=>{n&&n(c)})})}async function gt(e,t,s=void 0,n=void 0){e.tenant&&O(e,i=>{const o=`${i.services.find(c=>c.id==="businessprocess")?.url+"/api/v2"}/repository/data/tables`,a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`,{method:"GET"}).then(c=>c.json()).then(c=>{s&&s(c)}).catch(c=>{n&&n(c)})})}async function _t(e,t,s,n=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function ht(e,t,s,n=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}/rows/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function St(e,t,s,n,i=void 0,r=void 0){e.tenant&&O(e,o=>{o.services.find(c=>c.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`,{method:"POST"}).then(c=>c.json()).then(c=>{i&&i(c)}).catch(c=>{r&&r(c,s,n)})})}async function yt(e,t,s,n,i,r=void 0,o=void 0){if(e.tenant){const a=`https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(n)}&b=${encodeURIComponent(i)}`;fetch(a,{method:"POST"}).then(c=>c.json()).then(c=>{c.url=a,r&&r(c)}).catch(c=>{o&&o({error:c,tableId:s,columns:n,body:i})})}}async function wt(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=`https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(n)}`;fetch(o,{method:"POST"}).then(a=>a.json()).then(a=>{console.log("_Iterop_updateBusinessTable | _Iterop_businessTableSearchInRows | fetch | onDone",n),i&&i(a)}).catch(a=>{r&&r({error:a,url:o})})}}async function Tt(e,t,s,n,i=void 0,r=void 0){e.tenant&&O(e,o=>{o.services.find(c=>c.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,{method:"POST"}).then(c=>c.json()).then(c=>{i&&i(c)}).catch(c=>{r&&r(c)})})}async function bt(e,t,s,n=void 0,i=void 0){e.tenant&&O(e,r=>{r.services.find(a=>a.id==="businessprocess")?.url+"";const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${s}/?t=${t}`,{method:"POST"}).then(a=>a.json()).then(a=>{n&&n(a)}).catch(a=>{i&&i(a)})})}async function Ct(e,t,s,n,i,r=void 0,o=void 0){e.tenant&&O(e,a=>{a.services.find(d=>d.id==="businessprocess")?.url+"";const c=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,{method:"POST"}).then(d=>d.json()).then(d=>{r&&r(d)}).catch(d=>{o&&o(d)})})}async function Ot(e,t,s,n,i=void 0,r=void 0){e.tenant&&O(e,o=>{o.services.find(c=>c.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,{method:"POST"}).then(c=>c.json()).then(c=>{i&&i(c)}).catch(c=>{r&&r(c)})})}function It(e){const t="Hello "+e;return console.log(t),t}function $t(e,t=void 0,s=void 0){return console.log("credentials",e),new Promise(n=>{if(e.token===""&&I(e),!e.space||e.space===""){const o=E();console.log("platformeInfo",o)}U(e,"Common space",["VPLMProjectLeader","VPLMCreator"],void 0,o=>e.ctx=o,o=>{console.log("onError =>",o)},!0);const i=v.DateTime.now().ts,r=`https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;g(r,{onComplete(o){if(Array.isArray(JSON.parse(o))){const a=JSON.parse(o);console.log("serviceId=3dsearch",a);const c=`${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;g(c,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},data:JSON.stringify({with_indexing_date:!0,with_nls:!1,label:`3DSearch-${i}`,locale:"en",select_predicate:["ds6w:label","ds6w:type","ds6w:description","ds6w:identifier","ds6w:responsible","ds6wg:fullname"],select_file:["icon","thumbnail_2d"],query:'([ds6w:type]:(Group) AND [ds6w:status]:(Public)) OR (flattenedtaxonomies:"types/Person" AND current:"active")',order_by:"desc",order_field:"relevance",nresults:1e3,start:"0",source:["3dspace","usersgroup"],tenant:e.tenant,login:{"3dspace":{SecurityContext:`ctx::${e.ctx}`}}}),type:"json",onComplete(d){t&&t(d)},onFailure(d){s&&s(d)}})}},onFailure(o){s&&s(o)}})})}u.UUID=P,u._3DSearch_usersGroup=$t,u._3DSpace_Create_Doc=ve,u._3DSpace_Update_Doc=De,u._3DSpace_bookmark_addSubsciptions=Pe,u._3DSpace_bookmark_newWorkspace=Fe,u._3DSpace_csrf=I,u._3DSpace_download_doc=J,u._3DSpace_download_multidoc=W,u._3DSpace_file_update=M,u._3DSpace_file_update_csr=V,u._3DSpace_file_url_csr=$e,u._3DSpace_get_csrf=k,u._3DSpace_get_docInfo=L,u._3DSpace_get_downloadTicket_multidoc=X,u._3DSpace_get_multiDocInfo=Ie,u._3DSpace_get_securityContexts=U,u._3DSpace_get_ticket=F,u._3DSpace_lifecycle_changeRevision=je,u._3DSpace_lifecycle_changeState=Ae,u._3DSpace_lifecycle_getGraph=ke,u._3DSpace_lifecycle_getNextRevision=Ue,u._3DSpace_lifecycle_getNextStates=Ne,u._3DSwym_buildDirectMessage=et,u._3DSwym_deleteIdea=it,u._3DSwym_editIdea=ot,u._3DSwym_findCommunityToInstantMSG=te,u._3DSwym_getAllCommunities=Qe,u._3DSwym_getAllListIdeas=rt,u._3DSwym_getAllNews=He,u._3DSwym_getFamiliarPeople=ze,u._3DSwym_getIdeaStatusMaturity=Ze,u._3DSwym_getMembersCommunity=ee,u._3DSwym_getOneIdea=at,u._3DSwym_get_Token=T,u._3DSwym_get_currentUser=dt,u._3DSwym_get_findUser=ut,u._3DSwym_postIdea=st,u._3DSwym_postIdeaTemplate=nt,u._3DSwym_sendMessageData=G,u._AppMngt_get_info_user=me,u._AppMngt_get_users=fe,u._Iterop_AddOrRemoveRows=St,u._Iterop_Auth_CAS=pt,u._Iterop_GetOneDependencyTable=bt,u._Iterop_ListUsers=mt,u._Iterop_PatchDependencyTable=Ct,u._Iterop_PutDependencyTable=Ot,u._Iterop_businessTableSearchInRows=yt,u._Iterop_getAllBusinessTables=gt,u._Iterop_getOneBusinessTable=_t,u._Iterop_getOneBusinessTableRows=ht,u._Iterop_jwtUser=ft,u._Iterop_runProcess=Tt,u._Iterop_updateBusinessTable=wt,u._getPlateformInfos=E,u._getPlatformServices=ue,u._getServiceUrl=O,u._getServiceUrl_3DPassport=le,u._getServiceUrl_Iterop=lt,u._httpCallAuthenticated=g,u._setDraggable=re,u._setDroppable=de,u._setupTagger=ce,u.addTagToDoc=Ve,u.chunkArray=B,u.compass_getListAdditionalApps=pe,u.couleurs=x,u.createUserGroups=ge,u.dataMixing=Q,u.deleteUserGroups=Se,u.findAdresse=se,u.getAllContextSecurity=Re,u.getCSRFToken=q,u.getCommunes=ne,u.getComplementUG=_e,u.getDataFrom3DSpace=Le,u.getDataFromGouvFr=ie,u.getDatasByTenant=xe,u.getDatasFrom3DSpace=Be,u.getDownloadDocument=Me,u.getInfoDocTags=Ye,u.getUserGroupsList=he,u.getUsersGroupRules=K,u.get_3DSpace_csrf=Ge,u.patchUserGroups=ye,u.patchUserGroupsControl=we,u.pushDataIn3DSpace=Je,u.readUserGroupControl=Te,u.removeTagToDoc=Xe,u.sayHello=It,u.updateEvent=oe,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
78
78
|
//# sourceMappingURL=wb3Api.umd.cjs.map
|