@beam3_dev/api_module 0.0.241 → 0.0.242
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 +19 -19
- 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
|
@@ -75,7 +75,7 @@ function Me(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 lt(e,t=void 0,n=void 0){const{tenant:s,_3DSwym:i,_3DSwym_token:r,community_id:o,idea_id:a}=e;if(s&&i&&r&&o&&a){const c=`${i}/api/idea/forward`;g(c,{method:"POST",headers:{"Content-type":"application/json;charset=UTF-8",Accept:"application/json","X-DS-SWYM-CSRFTOKEN":r},data:JSON.stringify({community_uri:`swym:prd:${s.toUpperCase()}:community:${o}`,content_uri:`swym:prd:${s.toUpperCase()}:idea:${a}`,timeout:3e4}),type:"json",onComplete(d){t&&t(d)},onFailure(d,l){const p=d;p.status=l.status,p.response=l.errormsg,n&&n(p)}})}else n&&n({status:"error",msg:"Credentials incomplet !",attend:"tenant, _3DSwym , _3DSwym_token, community_id, idea_id",credentials:e})}function pt(e,t=void 0,n=void 0){const s=e._3DSwym+"/api/user/getcurrent/";C(e,i=>{g(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 ft(e,t,n=void 0,s=void 0){const i=e.space+"/api/user/find/login/"+t;C(e,r=>{g(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 mt(e,t=void 0,n=void 0){const{_3DSwym:s,_3DSwym_token:i,subjectUri:r,richMessage:o}=e,a=`${s}/commentproxy/subjects/${r}/comments`,d={method:"POST",headers:{"Content-type":"application/json;charset=UTF-8",Accept:"application/json","X-DS-SWYM-CSRFTOKEN":i},data:JSON.stringify({richMessage:o}),type:"json",onComplete(l,p,m){const f={response:typeof l=="string"?JSON.parse(l):l};f.status=m.status,t&&t(f)},onFailure(l){n&&n(l)}};
|
|
78
|
+
</p>`:e}function lt(e,t=void 0,n=void 0){const{tenant:s,_3DSwym:i,_3DSwym_token:r,community_id:o,idea_id:a}=e;if(s&&i&&r&&o&&a){const c=`${i}/api/idea/forward`;g(c,{method:"POST",headers:{"Content-type":"application/json;charset=UTF-8",Accept:"application/json","X-DS-SWYM-CSRFTOKEN":r},data:JSON.stringify({community_uri:`swym:prd:${s.toUpperCase()}:community:${o}`,content_uri:`swym:prd:${s.toUpperCase()}:idea:${a}`,timeout:3e4}),type:"json",onComplete(d){t&&t(d)},onFailure(d,l){const p=d;p.status=l.status,p.response=l.errormsg,n&&n(p)}})}else n&&n({status:"error",msg:"Credentials incomplet !",attend:"tenant, _3DSwym , _3DSwym_token, community_id, idea_id",credentials:e})}function pt(e,t=void 0,n=void 0){const s=e._3DSwym+"/api/user/getcurrent/";C(e,i=>{g(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 ft(e,t,n=void 0,s=void 0){const i=e.space+"/api/user/find/login/"+t;C(e,r=>{g(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 mt(e,t=void 0,n=void 0){const{_3DSwym:s,_3DSwym_token:i,subjectUri:r,richMessage:o}=e,a=`${s}/commentproxy/subjects/${r}/comments`,d={method:"POST",headers:{"Content-type":"application/json;charset=UTF-8",Accept:"application/json","X-DS-SWYM-CSRFTOKEN":i},data:JSON.stringify({richMessage:o}),type:"json",onComplete(l,p,m){const f={response:typeof l=="string"?JSON.parse(l):l};f.status=m.status,t&&t(f)},onFailure(l){n&&n(l)}};g(a,d)}function gt(e,t=void 0,n=void 0){e.tenant&&b(e,s=>{const i=s.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function _t(e,t=void 0,n=void 0){e.tenant&&b(e,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`;g(o,{async onComplete(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)}})})}function ht(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 St(e,t,n=void 0,s=void 0){e.tenant&&b(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=>{n&&n(c)}).catch(c=>{s&&s(c)})})}async function yt(e,t,n=void 0,s=void 0){e.tenant&&b(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=>{n&&n(c)}).catch(c=>{s&&s(c)})})}async function wt(e,t,n,s=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${n}?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}async function Ct(e,t,n,s=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}async function Tt(e,t,n,s,i=void 0,r=void 0){e.tenant&&b(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/${n}/?t=${t}&b=${s}`,{method:"POST"}).then(c=>c.json()).then(c=>{i&&i(c)}).catch(c=>{r&&r(c,n,s)})})}async function bt(e,t,n,s,i,r=void 0,o=void 0){if(e.tenant){const a=`https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(s)}&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:n,columns:s,body:i})})}}async function Ot(e,t,n,s,i=void 0,r=void 0){if(e.tenant){const o=`https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(s)}`;fetch(o,{method:"POST"}).then(a=>a.json()).then(a=>{i&&i(a)}).catch(a=>{r&&r({error:a,url:o})})}}async function $t(e,t,n,s,i=void 0,r=void 0){e.tenant&&b(e,o=>{o.services.find(c=>c.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(c=>c.json()).then(c=>{i&&i(c)}).catch(c=>{r&&r(c)})})}async function Dt(e,t,n,s=void 0,i=void 0){e.tenant&&b(e,r=>{r.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 It(e,t,n,s,i,r=void 0,o=void 0){e.tenant&&b(e,a=>{a.services.find(d=>d.id==="businessprocess")?.url+"";const c=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,{method:"POST"}).then(d=>d.json()).then(d=>{r&&r(d)}).catch(d=>{o&&o(d)})})}async function Nt(e,t,n,s,i=void 0,r=void 0){e.tenant&&b(e,o=>{o.services.find(c=>c.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(c=>c.json()).then(c=>{i&&i(c)}).catch(c=>{r&&r(c)})})}//!SECTION
|
|
79
79
|
async function vt(e,t,n,s=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/list/one/${n}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{s&&s(o)}).catch(o=>{i&&i(o)})}}//!SECTION
|
|
80
80
|
function At(e){const t="Hello "+e;return console.log(t),t}function Ft(e,t=void 0,n=void 0){return console.log("credentials",e),new Promise(s=>{if(e.token===""&&$(e),!e.space||e.space===""){const o=B();console.log("platformeInfo",o)}k(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}`;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){n&&n(d)}})}},onFailure(o){n&&n(o)}})})}u.UUID=J,u._3DSearch_usersGroup=Ft,u._3DSpace_Create_Doc=Ie,u._3DSpace_Update_Doc=De,u._3DSpace_bookmark_addSubsciptions=Le,u._3DSpace_bookmark_newWorkspace=Re,u._3DSpace_csrf=$,u._3DSpace_download_doc=L,u._3DSpace_download_multidoc=W,u._3DSpace_file_update=R,u._3DSpace_file_update_csr=q,u._3DSpace_file_url_csr=$e,u._3DSpace_get_csrf=F,u._3DSpace_get_docInfo=P,u._3DSpace_get_downloadTicket_multidoc=X,u._3DSpace_get_multiDocInfo=Oe,u._3DSpace_get_securityContexts=k,u._3DSpace_get_ticket=j,u._3DSpace_lifecycle_changeRevision=Pe,u._3DSpace_lifecycle_changeState=ke,u._3DSpace_lifecycle_getGraph=je,u._3DSpace_lifecycle_getNextRevision=Ue,u._3DSpace_lifecycle_getNextStates=Fe,u._3DSwym_ForwardIdea=lt,u._3DSwym_addComment=mt,u._3DSwym_buildDirectMessage=nt,u._3DSwym_deleteIdea=ot,u._3DSwym_editIdea=ct,u._3DSwym_findCommunityToInstantMSG=ee,u._3DSwym_getAllCommunities=et,u._3DSwym_getAllListIdeas=dt,u._3DSwym_getAllNews=Qe,u._3DSwym_getFamiliarPeople=Ze,u._3DSwym_getIdeaStatusMaturity=tt,u._3DSwym_getMembersCommunity=Z,u._3DSwym_getOneIdea=rt,u._3DSwym_get_Token=C,u._3DSwym_get_currentUser=pt,u._3DSwym_get_findUser=ft,u._3DSwym_postIdea=at,u._3DSwym_postIdeaTemplate=it,u._3DSwym_sendMessageData=M,u._AppMngt_get_info_user=fe,u._AppMngt_get_users=pe,u._Iterop_AddOrRemoveRows=Tt,u._Iterop_Auth_CAS=_t,u._Iterop_GetOneDependencyTable=Dt,u._Iterop_GetOneList=vt,u._Iterop_ListUsers=St,u._Iterop_PatchDependencyTable=It,u._Iterop_PutDependencyTable=Nt,u._Iterop_businessTableSearchInRows=bt,u._Iterop_getAllBusinessTables=yt,u._Iterop_getOneBusinessTable=wt,u._Iterop_getOneBusinessTableRows=Ct,u._Iterop_jwtUser=ht,u._Iterop_runProcess=$t,u._Iterop_updateBusinessTable=Ot,u._getPlateformInfos=B,u._getPlatformServices=de,u._getServiceUrl=b,u._getServiceUrl_3DPassport=ue,u._getServiceUrl_Iterop=gt,u._httpCallAuthenticated=g,u._setDraggable=oe,u._setDroppable=ce,u._setupTagger=re,u.addTagToDoc=Ve,u.chunkArray=x,u.compass_getListAdditionalApps=le,u.couleurs=G,u.createUserGroups=me,u.dataMixing=z,u.deleteUserGroups=he,u.findAdresse=ne,u.getAllContextSecurity=Me,u.getCSRFToken=K,u.getCommunes=te,u.getComplementUG=ge,u.getDataFrom3DSpace=Je,u.getDataFromGouvFr=se,u.getDatasByTenant=Ee,u.getDatasFrom3DSpace=Ke,u.getDownloadDocument=Ge,u.getInfoDocTags=ze,u.getUserGroupsList=_e,u.getUsersGroupRules=E,u.get_3DSpace_csrf=Be,u.patchUserGroups=Se,u.patchUserGroupsControl=ye,u.pushDataIn3DSpace=xe,u.readUserGroupControl=we,u.removeTagToDoc=He,u.sayHello=At,u.updateEvent=ae,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
81
81
|
//# sourceMappingURL=wb3Api.umd.cjs.map
|