@beam3_dev/api_module 0.0.145 → 0.0.146

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.
@@ -75,5 +75,5 @@ function be(e,t=void 0,n=void 0){const s={base:`${e.space}`,uri:"/resources/bps/
75
75
  <tr><td><strong>Service études de prix</strong></td><td><br /></td></tr>
76
76
  </tbody></table>
77
77
  <p>
78
- </p>`:e}function ze(e,t=void 0,n=void 0){const s=e.space+"/api/user/getcurrent/";T(e,i=>{f(s,{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};n&&n(c)}})})}function Qe(e,t,n=void 0,s=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,r=>{f(i,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":r.result.ServerToken},onComplete(o,a,c){const d=JSON.parse(o);n&&n(d)},onFailure(o){s&&s(o)}})},s)}function Ze(e,t=void 0,n=void 0){e.tenant&&v(e,s=>{console.log("serviceUrls",s);const i=s.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";t&&t(i)})}function et(e,t=void 0,n=void 0){e.tenant&&v(e,s=>{console.log("serviceUrls",s);const i=s.services.find(a=>a.id==="3dpassport")?.url,r=s.services.find(a=>a.id==="businessprocess")?.url+"/api/v2",o=`${i}/login/?service=${r}/auth/cas`;f(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){n&&n(a)}})})}async function tt(e,t,n=void 0,s=void 0){e.tenant&&v(e,i=>{const o=`${i.services.find(a=>a.id==="businessprocess")?.url+"/api/v2"}/identity/users`;fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`,{method:"POST"}).then(a=>a.json()).then(a=>{n&&n(a)}).catch(a=>{s&&s(a)})})}async function nt(e,t,n=void 0,s=void 0){e.tenant&&v(e,i=>{const o=`${i.services.find(a=>a.id==="businessprocess")?.url+"/api/v2"}/repository/data/tables`;fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`,{method:"GET"}).then(a=>a.json()).then(a=>{n&&n(a)}).catch(a=>{s&&s(a)})})}async function st(e,t,n,s,i=void 0,r=void 0){e.tenant&&v(e,o=>{const c=`${o.services.find(d=>d.id==="businessprocess")?.url+"/api/v2"}/repository/data/tables`;fetch(`https://api.uixhome.fr/iterop/runtime/processes?k=${n}&t=${t}&s=${c}&b=${s}`,{method:"POST"}).then(d=>d.json()).then(d=>{i&&i(d)}).catch(d=>{r&&r(d)})})}function at(e){const t="Hello "+e;return console.log(t),t}function it(e,t=void 0,n=void 0){return console.log("credentials",e),new Promise(s=>{if(e.token===""&&D(e),!e.space||e.space===""){const o=M();console.log("platformeInfo",o)}b(e,"Common space",["VPLMProjectLeader","VPLMCreator"],void 0,o=>e.ctx=o,o=>{console.log("onError =>",o)},!0);const i=I.DateTime.now().ts,r=`https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;f(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`;f(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){n&&n(d)}})}},onFailure(o){n&&n(o)}})})}l.UUID=$,l._3DSearch_usersGroup=it,l._3DSpace_Create_Doc=he,l._3DSpace_bookmark_addSubsciptions=Oe,l._3DSpace_csrf=D,l._3DSpace_download_doc=U,l._3DSpace_download_multidoc=K,l._3DSpace_file_update=E,l._3DSpace_file_update_csr=x,l._3DSpace_file_url_csr=Se,l._3DSpace_get_csrf=A,l._3DSpace_get_docInfo=G,l._3DSpace_get_downloadTicket_multidoc=V,l._3DSpace_get_securityContexts=b,l._3DSpace_get_ticket=k,l._3DSpace_lifecycle_changeRevision=De,l._3DSpace_lifecycle_changeState=we,l._3DSpace_lifecycle_getGraph=Te,l._3DSpace_lifecycle_getNextRevision=Ce,l._3DSpace_lifecycle_getNextStates=ye,l._3DSwym_buildDirectMessage=Ke,l._3DSwym_deleteIdea=qe,l._3DSwym_findCommunityToInstantMSG=z,l._3DSwym_getAllCommunities=Ee,l._3DSwym_getAllNews=Je,l._3DSwym_getFamiliarPeople=Ge,l._3DSwym_getIdeaStatusMaturity=xe,l._3DSwym_getMembersCommunity=H,l._3DSwym_getSWYMIdea=Be,l._3DSwym_get_AllSWYMIdeas=Ye,l._3DSwym_get_currentUser=ze,l._3DSwym_get_findUser=Qe,l._3DSwym_get_version=T,l._3DSwym_postIdea=We,l._3DSwym_sendMessageData=j,l._AppMngt_get_info_user=de,l._AppMngt_get_users=ce,l._Iterop_Auth_CAS=et,l._Iterop_ListUsers=tt,l._Iterop_getAllBusinessTables=nt,l._Iterop_processStart=st,l._getPlateformInfos=M,l._getPlatformServices=ie,l._getServiceUrl=v,l._getServiceUrl_3DPassport=oe,l._getServiceUrl_Iterop=Ze,l._httpCallAuthenticated=f,l._setDraggable=ne,l._setDroppable=ae,l._setupTagger=se,l.addTagToDoc=Pe,l.compass_getListAdditionalApps=re,l.couleurs=R,l.createUserGroups=le,l.dataMixing=B,l.deleteUserGroups=fe,l.findAdresse=Z,l.getAllContextSecurity=be,l.getCSRFToken=J,l.getCommunes=Q,l.getComplementUG=ue,l.getDataFrom3DSpace=ve,l.getDataFromGouvFr=ee,l.getDatasByTenant=ke,l.getDatasFrom3DSpace=$e,l.getDownloadDocument=Ne,l.getInfoDocTags=Le,l.getUserGroupsList=pe,l.getUsersGroupRules=L,l.get_3DSpace_csrf=Ae,l.patchUserGroups=me,l.patchUserGroupsControl=ge,l.pushDataIn3DSpace=Ie,l.readUserGroupControl=_e,l.removeTagToDoc=Me,l.sayHello=at,l.updateEvent=te,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
78
+ </p>`:e}function ze(e,t=void 0,n=void 0){const s=e.space+"/api/user/getcurrent/";T(e,i=>{f(s,{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};n&&n(c)}})})}function Qe(e,t,n=void 0,s=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,r=>{f(i,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":r.result.ServerToken},onComplete(o,a,c){const d=JSON.parse(o);n&&n(d)},onFailure(o){s&&s(o)}})},s)}function Ze(e,t=void 0,n=void 0){e.tenant&&v(e,s=>{console.log("serviceUrls",s);const i=s.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";t&&t(i)})}function et(e,t=void 0,n=void 0){e.tenant&&v(e,s=>{console.log("serviceUrls",s);const i=s.services.find(a=>a.id==="3dpassport")?.url,r=s.services.find(a=>a.id==="businessprocess")?.url+"/api/v2",o=`${i}/login/?service=${r}/auth/cas`;f(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){n&&n(a)}})})}async function tt(e,t,n=void 0,s=void 0){e.tenant&&v(e,i=>{const o=`${i.services.find(a=>a.id==="businessprocess")?.url+"/api/v2"}/identity/users`;fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`,{method:"POST"}).then(a=>a.json()).then(a=>{n&&n(a)}).catch(a=>{s&&s(a)})})}async function nt(e,t,n=void 0,s=void 0){e.tenant&&v(e,i=>{const o=`${i.services.find(a=>a.id==="businessprocess")?.url+"/api/v2"}/repository/data/tables`;fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`,{method:"GET"}).then(a=>a.json()).then(a=>{n&&n(a)}).catch(a=>{s&&s(a)})})}async function st(e,t,n,s,i=void 0,r=void 0){e.tenant&&v(e,o=>{const c=`${o.services.find(d=>d.id==="businessprocess")?.url+"/api/v2"}/repository/data/tables`;fetch(`https://api.uixhome.fr/iterop/runtime/processes?k=${n}&t=${t}&s=${c}&b=${encodeURIComponent(s)}`,{method:"POST"}).then(d=>d.json()).then(d=>{i&&i(d)}).catch(d=>{r&&r(d)})})}function at(e){const t="Hello "+e;return console.log(t),t}function it(e,t=void 0,n=void 0){return console.log("credentials",e),new Promise(s=>{if(e.token===""&&D(e),!e.space||e.space===""){const o=M();console.log("platformeInfo",o)}b(e,"Common space",["VPLMProjectLeader","VPLMCreator"],void 0,o=>e.ctx=o,o=>{console.log("onError =>",o)},!0);const i=I.DateTime.now().ts,r=`https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;f(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`;f(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){n&&n(d)}})}},onFailure(o){n&&n(o)}})})}l.UUID=$,l._3DSearch_usersGroup=it,l._3DSpace_Create_Doc=he,l._3DSpace_bookmark_addSubsciptions=Oe,l._3DSpace_csrf=D,l._3DSpace_download_doc=U,l._3DSpace_download_multidoc=K,l._3DSpace_file_update=E,l._3DSpace_file_update_csr=x,l._3DSpace_file_url_csr=Se,l._3DSpace_get_csrf=A,l._3DSpace_get_docInfo=G,l._3DSpace_get_downloadTicket_multidoc=V,l._3DSpace_get_securityContexts=b,l._3DSpace_get_ticket=k,l._3DSpace_lifecycle_changeRevision=De,l._3DSpace_lifecycle_changeState=we,l._3DSpace_lifecycle_getGraph=Te,l._3DSpace_lifecycle_getNextRevision=Ce,l._3DSpace_lifecycle_getNextStates=ye,l._3DSwym_buildDirectMessage=Ke,l._3DSwym_deleteIdea=qe,l._3DSwym_findCommunityToInstantMSG=z,l._3DSwym_getAllCommunities=Ee,l._3DSwym_getAllNews=Je,l._3DSwym_getFamiliarPeople=Ge,l._3DSwym_getIdeaStatusMaturity=xe,l._3DSwym_getMembersCommunity=H,l._3DSwym_getSWYMIdea=Be,l._3DSwym_get_AllSWYMIdeas=Ye,l._3DSwym_get_currentUser=ze,l._3DSwym_get_findUser=Qe,l._3DSwym_get_version=T,l._3DSwym_postIdea=We,l._3DSwym_sendMessageData=j,l._AppMngt_get_info_user=de,l._AppMngt_get_users=ce,l._Iterop_Auth_CAS=et,l._Iterop_ListUsers=tt,l._Iterop_getAllBusinessTables=nt,l._Iterop_processStart=st,l._getPlateformInfos=M,l._getPlatformServices=ie,l._getServiceUrl=v,l._getServiceUrl_3DPassport=oe,l._getServiceUrl_Iterop=Ze,l._httpCallAuthenticated=f,l._setDraggable=ne,l._setDroppable=ae,l._setupTagger=se,l.addTagToDoc=Pe,l.compass_getListAdditionalApps=re,l.couleurs=R,l.createUserGroups=le,l.dataMixing=B,l.deleteUserGroups=fe,l.findAdresse=Z,l.getAllContextSecurity=be,l.getCSRFToken=J,l.getCommunes=Q,l.getComplementUG=ue,l.getDataFrom3DSpace=ve,l.getDataFromGouvFr=ee,l.getDatasByTenant=ke,l.getDatasFrom3DSpace=$e,l.getDownloadDocument=Ne,l.getInfoDocTags=Le,l.getUserGroupsList=pe,l.getUsersGroupRules=L,l.get_3DSpace_csrf=Ae,l.patchUserGroups=me,l.patchUserGroupsControl=ge,l.pushDataIn3DSpace=Ie,l.readUserGroupControl=_e,l.removeTagToDoc=Me,l.sayHello=at,l.updateEvent=te,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
79
79
  //# sourceMappingURL=wb3Api.umd.cjs.map