@beam3_dev/api_module 0.0.178 → 0.0.179

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.
@@ -74,5 +74,5 @@ function je(e,t=void 0,n=void 0){const s={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 it(e,t=void 0,n=void 0){const s=e.space+"/api/user/getcurrent/";T(e,i=>{m(s,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":i.result.ServerToken},onComplete(c,o,a){const r=JSON.parse(c);t&&t(r.result)},onFailure(c,o,a){const r={erreur:JSON.parse(c),headers:o,xhr:a};n&&n(r)}})})}function at(e,t,n=void 0,s=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,c=>{m(i,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":c.result.ServerToken},onComplete(o,a,r){const d=JSON.parse(o);n&&n(d)},onFailure(o){s&&s(o)}})},s)}function ot(e,t=void 0,n=void 0){e.tenant&&C(e,s=>{console.log("serviceUrls",s);const i=s.services.find(c=>c.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function rt(e,t=void 0,n=void 0){e.tenant&&C(e,s=>{console.log("serviceUrls",s);const i=s.services.find(a=>a.id==="3dpassport")?.url,c=s.services.find(a=>a.id==="businessprocess")?.url+"/api/v2",o=`${i}/login/?service=${c}/auth/cas`;m(o,{async onComplete(a){console.log("response",a);const r=typeof a=="string"?JSON.parse(a)?.x3ds_service_redirect_url:a?.x3ds_service_redirect_url;await fetch(r,{method:"POST"}).then(d=>d.json()).then(async d=>{t&&t(d?.token)})},onFailure(a){n&&n(a)}})})}function ct(e,t=void 0,n=void 0){if(e.tenant){const s=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`,{method:"POST"}).then(i=>i.json()).then(i=>{t&&t(i)}).catch(i=>{n&&n(i)})}}async function dt(e,t,n=void 0,s=void 0){e.tenant&&C(e,i=>{const o=`${i.services.find(r=>r.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(r=>r.json()).then(r=>{n&&n(r)}).catch(r=>{s&&s(r)})})}async function ut(e,t,n=void 0,s=void 0){e.tenant&&C(e,i=>{const o=`${i.services.find(r=>r.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(r=>r.json()).then(r=>{n&&n(r)}).catch(r=>{s&&s(r)})})}async function lt(e,t,n,s=void 0,i=void 0){if(e.tenant){const c=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${c}/iterop//businesstable/${n}?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}async function pt(e,t,n,s=void 0,i=void 0){if(e.tenant){const c=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${c}/iterop//businesstable/${n}/rows/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}async function ft(e,t,n,s,i=void 0,c=void 0){e.tenant&&C(e,o=>{o.services.find(r=>r.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,{method:"POST"}).then(r=>r.json()).then(r=>{i&&i(r)}).catch(r=>{c&&c(r)})})}async function mt(e,t,n,s,i,c=void 0,o=void 0){e.tenant&&C(e,a=>{a.services.find(d=>d.id==="businessprocess")?.url+"";const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/patch/${n}/rows?t=${t}&rowsToAdd=${s}&rowsToRemove=${i}`,{method:"POST"}).then(d=>d.json()).then(d=>{c&&c(d)}).catch(d=>{o&&o(d)})})}async function gt(e,t,n,s=void 0,i=void 0){e.tenant&&C(e,c=>{c.services.find(a=>a.id==="businessprocess")?.url+"";const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,{method:"POST"}).then(a=>a.json()).then(a=>{s&&s(a)}).catch(a=>{i&&i(a)})})}async function _t(e,t,n,s,i=void 0,c=void 0){e.tenant&&C(e,o=>{o.services.find(r=>r.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}`,{method:"POST"}).then(r=>r.json()).then(r=>{i&&i(r)}).catch(r=>{c&&c(r)})})}async function ht(e,t,n,s,i=void 0,c=void 0){e.tenant&&C(e,o=>{o.services.find(r=>r.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,{method:"POST"}).then(r=>r.json()).then(r=>{i&&i(r)}).catch(r=>{c&&c(r)})})}function St(e){const t="Hello "+e;return console.log(t),t}function yt(e,t=void 0,n=void 0){return console.log("credentials",e),new Promise(s=>{if(e.token===""&&O(e),!e.space||e.space===""){const o=J();console.log("platformeInfo",o)}I(e,"Common space",["VPLMProjectLeader","VPLMCreator"],void 0,o=>e.ctx=o,o=>{console.log("onError =>",o)},!0);const i=$.DateTime.now().ts,c=`https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;m(c,{onComplete(o){if(Array.isArray(JSON.parse(o))){const a=JSON.parse(o);console.log("serviceId=3dsearch",a);const r=`${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;m(r,{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)}})})}u.UUID=k,u._3DSearch_usersGroup=yt,u._3DSpace_Create_Doc=Oe,u._3DSpace_bookmark_addSubsciptions=Ue,u._3DSpace_bookmark_newWorkspace=Ae,u._3DSpace_csrf=O,u._3DSpace_download_doc=P,u._3DSpace_download_multidoc=V,u._3DSpace_file_update=K,u._3DSpace_file_update_csr=B,u._3DSpace_file_url_csr=be,u._3DSpace_get_csrf=U,u._3DSpace_get_docInfo=E,u._3DSpace_get_downloadTicket_multidoc=W,u._3DSpace_get_multiDocInfo=Ce,u._3DSpace_get_securityContexts=I,u._3DSpace_get_ticket=j,u._3DSpace_lifecycle_changeRevision=Ne,u._3DSpace_lifecycle_changeState=Ie,u._3DSpace_lifecycle_getGraph=ve,u._3DSpace_lifecycle_getNextRevision=$e,u._3DSpace_lifecycle_getNextStates=De,u._3DSwym_buildDirectMessage=He,u._3DSwym_deleteIdea=et,u._3DSwym_findCommunityToInstantMSG=Z,u._3DSwym_getAllCommunities=Ye,u._3DSwym_getAllNews=We,u._3DSwym_getFamiliarPeople=Xe,u._3DSwym_getIdeaStatusMaturity=qe,u._3DSwym_getMembersCommunity=Q,u._3DSwym_getSWYMIdea=tt,u._3DSwym_get_AllSWYMIdeas=nt,u._3DSwym_get_currentUser=it,u._3DSwym_get_findUser=at,u._3DSwym_get_version=T,u._3DSwym_postIdea=Ze,u._3DSwym_sendMessageData=R,u._AppMngt_get_info_user=le,u._AppMngt_get_users=ue,u._Iterop_AddOrRemoveRows=mt,u._Iterop_Auth_CAS=rt,u._Iterop_GetOneDependencyTable=gt,u._Iterop_ListUsers=dt,u._Iterop_PatchDependencyTable=_t,u._Iterop_PutDependencyTable=ht,u._Iterop_getAllBusinessTables=ut,u._Iterop_getOneBusinessTable=lt,u._Iterop_getOneBusinessTableRows=pt,u._Iterop_jwtUser=ct,u._Iterop_runProcess=ft,u._getPlateformInfos=J,u._getPlatformServices=re,u._getServiceUrl=C,u._getServiceUrl_3DPassport=ce,u._getServiceUrl_Iterop=ot,u._httpCallAuthenticated=m,u._setDraggable=ie,u._setDroppable=oe,u._setupTagger=ae,u.addTagToDoc=Ee,u.compass_getListAdditionalApps=de,u.couleurs=L,u.createUserGroups=pe,u.dataMixing=H,u.deleteUserGroups=ge,u.findAdresse=te,u.getAllContextSecurity=je,u.getCSRFToken=x,u.getCommunes=ee,u.getComplementUG=fe,u.getDataFrom3DSpace=ke,u.getDataFromGouvFr=ne,u.getDatasByTenant=Me,u.getDatasFrom3DSpace=Le,u.getDownloadDocument=Fe,u.getInfoDocTags=Ve,u.getUserGroupsList=me,u.getUsersGroupRules=G,u.get_3DSpace_csrf=Re,u.patchUserGroups=_e,u.patchUserGroupsControl=he,u.pushDataIn3DSpace=Pe,u.readUserGroupControl=Se,u.removeTagToDoc=Be,u.sayHello=St,u.updateEvent=se,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
77
+ </p>`:e}function it(e,t=void 0,n=void 0){const s=e.space+"/api/user/getcurrent/";T(e,i=>{m(s,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":i.result.ServerToken},onComplete(c,o,a){const r=JSON.parse(c);t&&t(r.result)},onFailure(c,o,a){const r={erreur:JSON.parse(c),headers:o,xhr:a};n&&n(r)}})})}function at(e,t,n=void 0,s=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,c=>{m(i,{method:"GET",headers:{"X-DS-SWYM-CSRFTOKEN":c.result.ServerToken},onComplete(o,a,r){const d=JSON.parse(o);n&&n(d)},onFailure(o){s&&s(o)}})},s)}function ot(e,t=void 0,n=void 0){e.tenant&&C(e,s=>{console.log("serviceUrls",s);const i=s.services.find(c=>c.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function rt(e,t=void 0,n=void 0){e.tenant&&C(e,s=>{console.log("serviceUrls",s);const i=s.services.find(a=>a.id==="3dpassport")?.url,c=s.services.find(a=>a.id==="businessprocess")?.url+"/api/v2",o=`${i}/login/?service=${c}/auth/cas`;m(o,{async onComplete(a){console.log("response",a);const r=typeof a=="string"?JSON.parse(a)?.x3ds_service_redirect_url:a?.x3ds_service_redirect_url;await fetch(r,{method:"POST"}).then(d=>d.json()).then(async d=>{t&&t(d?.token)})},onFailure(a){n&&n(a)}})})}function ct(e,t=void 0,n=void 0){if(e.tenant){const s=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`,{method:"POST"}).then(i=>i.json()).then(i=>{t&&t(i)}).catch(i=>{n&&n(i)})}}async function dt(e,t,n=void 0,s=void 0){e.tenant&&C(e,i=>{const o=`${i.services.find(r=>r.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(r=>r.json()).then(r=>{n&&n(r)}).catch(r=>{s&&s(r)})})}async function ut(e,t,n=void 0,s=void 0){e.tenant&&C(e,i=>{const o=`${i.services.find(r=>r.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(r=>r.json()).then(r=>{n&&n(r)}).catch(r=>{s&&s(r)})})}async function lt(e,t,n,s=void 0,i=void 0){if(e.tenant){const c=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${c}/iterop//businesstable/${n}?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}async function pt(e,t,n,s=void 0,i=void 0){if(e.tenant){const c=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${c}/iterop//businesstable/${n}/rows/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}async function ft(e,t,n,s,i=void 0,c=void 0){e.tenant&&C(e,o=>{o.services.find(r=>r.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,{method:"POST"}).then(r=>r.json()).then(r=>{i&&i(r)}).catch(r=>{c&&c(r)})})}async function mt(e,t,n,s,i,c=void 0,o=void 0){e.tenant&&C(e,a=>{a.services.find(d=>d.id==="businessprocess")?.url+"";const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/patch/${n}/rows?t=${t}&rowsToAdd=${s}&rowsToRemove=${i}`,{method:"POST"}).then(d=>d.json()).then(d=>{c&&c(d)}).catch(d=>{o&&o(d)})})}async function gt(e,t,n,s=void 0,i=void 0){e.tenant&&C(e,c=>{c.services.find(a=>a.id==="businessprocess")?.url+"";const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,{method:"POST"}).then(a=>a.json()).then(a=>{s&&s(a)}).catch(a=>{i&&i(a)})})}async function _t(e,t,n,s,i,c=void 0,o=void 0){e.tenant&&C(e,a=>{a.services.find(d=>d.id==="businessprocess")?.url+"";const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,{method:"POST"}).then(d=>d.json()).then(d=>{c&&c(d)}).catch(d=>{o&&o(d)})})}async function ht(e,t,n,s,i=void 0,c=void 0){e.tenant&&C(e,o=>{o.services.find(r=>r.id==="businessprocess")?.url+"";const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,{method:"POST"}).then(r=>r.json()).then(r=>{i&&i(r)}).catch(r=>{c&&c(r)})})}function St(e){const t="Hello "+e;return console.log(t),t}function yt(e,t=void 0,n=void 0){return console.log("credentials",e),new Promise(s=>{if(e.token===""&&O(e),!e.space||e.space===""){const o=J();console.log("platformeInfo",o)}I(e,"Common space",["VPLMProjectLeader","VPLMCreator"],void 0,o=>e.ctx=o,o=>{console.log("onError =>",o)},!0);const i=$.DateTime.now().ts,c=`https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;m(c,{onComplete(o){if(Array.isArray(JSON.parse(o))){const a=JSON.parse(o);console.log("serviceId=3dsearch",a);const r=`${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;m(r,{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)}})})}u.UUID=k,u._3DSearch_usersGroup=yt,u._3DSpace_Create_Doc=Oe,u._3DSpace_bookmark_addSubsciptions=Ue,u._3DSpace_bookmark_newWorkspace=Ae,u._3DSpace_csrf=O,u._3DSpace_download_doc=P,u._3DSpace_download_multidoc=V,u._3DSpace_file_update=K,u._3DSpace_file_update_csr=B,u._3DSpace_file_url_csr=be,u._3DSpace_get_csrf=U,u._3DSpace_get_docInfo=E,u._3DSpace_get_downloadTicket_multidoc=W,u._3DSpace_get_multiDocInfo=Ce,u._3DSpace_get_securityContexts=I,u._3DSpace_get_ticket=j,u._3DSpace_lifecycle_changeRevision=Ne,u._3DSpace_lifecycle_changeState=Ie,u._3DSpace_lifecycle_getGraph=ve,u._3DSpace_lifecycle_getNextRevision=$e,u._3DSpace_lifecycle_getNextStates=De,u._3DSwym_buildDirectMessage=He,u._3DSwym_deleteIdea=et,u._3DSwym_findCommunityToInstantMSG=Z,u._3DSwym_getAllCommunities=Ye,u._3DSwym_getAllNews=We,u._3DSwym_getFamiliarPeople=Xe,u._3DSwym_getIdeaStatusMaturity=qe,u._3DSwym_getMembersCommunity=Q,u._3DSwym_getSWYMIdea=tt,u._3DSwym_get_AllSWYMIdeas=nt,u._3DSwym_get_currentUser=it,u._3DSwym_get_findUser=at,u._3DSwym_get_version=T,u._3DSwym_postIdea=Ze,u._3DSwym_sendMessageData=R,u._AppMngt_get_info_user=le,u._AppMngt_get_users=ue,u._Iterop_AddOrRemoveRows=mt,u._Iterop_Auth_CAS=rt,u._Iterop_GetOneDependencyTable=gt,u._Iterop_ListUsers=dt,u._Iterop_PatchDependencyTable=_t,u._Iterop_PutDependencyTable=ht,u._Iterop_getAllBusinessTables=ut,u._Iterop_getOneBusinessTable=lt,u._Iterop_getOneBusinessTableRows=pt,u._Iterop_jwtUser=ct,u._Iterop_runProcess=ft,u._getPlateformInfos=J,u._getPlatformServices=re,u._getServiceUrl=C,u._getServiceUrl_3DPassport=ce,u._getServiceUrl_Iterop=ot,u._httpCallAuthenticated=m,u._setDraggable=ie,u._setDroppable=oe,u._setupTagger=ae,u.addTagToDoc=Ee,u.compass_getListAdditionalApps=de,u.couleurs=L,u.createUserGroups=pe,u.dataMixing=H,u.deleteUserGroups=ge,u.findAdresse=te,u.getAllContextSecurity=je,u.getCSRFToken=x,u.getCommunes=ee,u.getComplementUG=fe,u.getDataFrom3DSpace=ke,u.getDataFromGouvFr=ne,u.getDatasByTenant=Me,u.getDatasFrom3DSpace=Le,u.getDownloadDocument=Fe,u.getInfoDocTags=Ve,u.getUserGroupsList=me,u.getUsersGroupRules=G,u.get_3DSpace_csrf=Re,u.patchUserGroups=_e,u.patchUserGroupsControl=he,u.pushDataIn3DSpace=Pe,u.readUserGroupControl=Se,u.removeTagToDoc=Be,u.sayHello=St,u.updateEvent=se,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
78
78
  //# sourceMappingURL=wb3Api.umd.cjs.map