@beam3_dev/api_module 0.0.269 → 0.0.270
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 +22 -21
- 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 Je(e,t=void 0,s=void 0){const n={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 pt(e,t=void 0,s=void 0){const{tenant:n,_3DSwym:i,_3DSwym_token:r,community_id:o,idea_id:a}=e;if(n&&i&&r&&o&&a){const c=`${i}/api/idea/forward`;_(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:${n.toUpperCase()}:community:${o}`,content_uri:`swym:prd:${n.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,s&&s(p)}})}else s&&s({status:"error",msg:"Credentials incomplet !",attend:"tenant, _3DSwym , _3DSwym_token, community_id, idea_id",credentials:e})}function ft(e,t=void 0,s=void 0){return new Promise((n,i)=>{try{const{_3DDashboard:r,_3DSwym:o}=e;let a;if(console.log("_3DSwym_get_currentUser",e),r){const c=r+"/api/users/current";_(c,{method:"GET",onComplete(d,l,p){const m=JSON.parse(d);m.first_name=m.firstName,m.last_name=m.lastName,a=m},onFailure(d){i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current",d)}})}a?n(a):i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null")}catch(r){i("ERROR | _3DSwym_get_currentUser => ",r)}})}function mt(e,t,s=void 0,n=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,r=>{_(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 _t(e,t=void 0,s=void 0){const{_3DSwym:n,_3DSwym_token:i,subjectUri:r,richMessage:o}=e,a=`${n}/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){s&&s(l)}};_(a,d)}function gt(e,t=void 0,s=void 0){e.tenant&&k(e,n=>{const i=n.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function ht(e,t=void 0,s=void 0){e.tenant&&k(e,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`;_(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){s&&s(a)}})})}function St(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 yt(e,t,s=void 0,n=void 0){if(e.tenant){const i=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${i}/iterop/repository/data/tables?t=${t}`,{method:"GET"}).then(r=>r.json()).then(r=>{s&&s(r)}).catch(r=>{n&&n(r)})}}async function wt(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/one/${s}?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function Tt(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/rows/${s}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function Ct(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`,{method:"POST"}).then(a=>a.json()).then(a=>{i&&i(a)}).catch(a=>{r&&r(a,s,n)})}}async function bt(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 Ot(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=>{i&&i(a)}).catch(a=>{r&&r({error:a,url:o})})}}async function Dt(e,t,s,n=void 0,i=void 0){if(e.tenant){const r=`https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(s)}`;fetch(r,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i({error:o,url:r})})}}async function $t(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,{method:"POST"}).then(a=>a.json()).then(a=>{console.log("_Iterop_runProcess : OK"),i&&i(a)}).catch(a=>{r&&r(a)})}}async function It(e,t,s,n=void 0,i=void 0){if(console.log("_Iterop_GetOneDependencyTable | Run"),e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${s}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function Nt(e,t,s,n,i,r=void 0,o=void 0){if(e.tenant){const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,{method:"POST"}).then(c=>c.json()).then(c=>{r&&r(c)}).catch(c=>{o&&o(c)})}}async function Ut(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,{method:"POST"}).then(a=>a.json()).then(a=>{i&&i(a)}).catch(a=>{r&&r(a)})}}//!SECTION
|
|
78
|
+
</p>`:e}function pt(e,t=void 0,s=void 0){const{tenant:n,_3DSwym:i,_3DSwym_token:r,community_id:o,idea_id:a}=e;if(n&&i&&r&&o&&a){const c=`${i}/api/idea/forward`;_(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:${n.toUpperCase()}:community:${o}`,content_uri:`swym:prd:${n.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,s&&s(p)}})}else s&&s({status:"error",msg:"Credentials incomplet !",attend:"tenant, _3DSwym , _3DSwym_token, community_id, idea_id",credentials:e})}function ft(e,t=void 0,s=void 0){return new Promise((n,i)=>{try{const{_3DDashboard:r,_3DSwym:o}=e;let a;if(console.log("_3DSwym_get_currentUser",e),r){const c=r+"/api/users/current";_(c,{method:"GET",onComplete(d,l,p){console.log("_3DSwym_get_currentUser | response",d);const m=JSON.parse(d);m.first_name=m.firstName,m.last_name=m.lastName,a=m,n(m)},onFailure(d){i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current",d)}})}a?n(a):i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null")}catch(r){i("ERROR | _3DSwym_get_currentUser => ",r)}})}function mt(e,t,s=void 0,n=void 0){const i=e.space+"/api/user/find/login/"+t;T(e,r=>{_(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 _t(e,t=void 0,s=void 0){const{_3DSwym:n,_3DSwym_token:i,subjectUri:r,richMessage:o}=e,a=`${n}/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){s&&s(l)}};_(a,d)}function gt(e,t=void 0,s=void 0){e.tenant&&k(e,n=>{const i=n.services.find(r=>r.id==="businessprocess")?.url+"/api/v2";return t&&t(i),i})}function ht(e,t=void 0,s=void 0){e.tenant&&k(e,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`;_(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){s&&s(a)}})})}function St(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 yt(e,t,s=void 0,n=void 0){if(e.tenant){const i=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${i}/iterop/repository/data/tables?t=${t}`,{method:"GET"}).then(r=>r.json()).then(r=>{s&&s(r)}).catch(r=>{n&&n(r)})}}async function wt(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/one/${s}?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function Tt(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/rows/${s}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function Ct(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`,{method:"POST"}).then(a=>a.json()).then(a=>{i&&i(a)}).catch(a=>{r&&r(a,s,n)})}}async function bt(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 Ot(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=>{i&&i(a)}).catch(a=>{r&&r({error:a,url:o})})}}async function Dt(e,t,s,n=void 0,i=void 0){if(e.tenant){const r=`https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(s)}`;fetch(r,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i({error:o,url:r})})}}async function $t(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,{method:"POST"}).then(a=>a.json()).then(a=>{console.log("_Iterop_runProcess : OK"),i&&i(a)}).catch(a=>{r&&r(a)})}}async function It(e,t,s,n=void 0,i=void 0){if(console.log("_Iterop_GetOneDependencyTable | Run"),e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/dependencytable/one/${s}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}async function Nt(e,t,s,n,i,r=void 0,o=void 0){if(e.tenant){const a=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,{method:"POST"}).then(c=>c.json()).then(c=>{r&&r(c)}).catch(c=>{o&&o(c)})}}async function Ut(e,t,s,n,i=void 0,r=void 0){if(e.tenant){const o=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${o}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,{method:"POST"}).then(a=>a.json()).then(a=>{i&&i(a)}).catch(a=>{r&&r(a)})}}//!SECTION
|
|
79
79
|
async function Ft(e,t,s,n=void 0,i=void 0){if(e.tenant){const r=e.tenant.toLowerCase();fetch(`https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${t}`,{method:"POST"}).then(o=>o.json()).then(o=>{n&&n(o)}).catch(o=>{i&&i(o)})}}//!SECTION
|
|
80
80
|
function Rt(e){const t="Hello "+e;return console.log(t),t}function At(e,t=void 0,s=void 0){return console.log("credentials",e),new Promise(n=>{if(e.token===""&&O(e),!e.space||e.space===""){const o=E();console.log("platformeInfo",o)}R(e,"Common space",["VPLMProjectLeader","VPLMCreator"],void 0,o=>e.ctx=o,o=>{console.log("onError =>",o)},!0);const i=$.DateTime.now().ts,r=`https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;_(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`;_(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=J,u._3DSearch_usersGroup=At,u._3DSpace_Create_Doc=Ne,u._3DSpace_Update_Doc=Ie,u._3DSpace_bookmark_addSubsciptions=Me,u._3DSpace_bookmark_newWorkspace=Le,u._3DSpace_csrf=O,u._3DSpace_download_doc=L,u._3DSpace_download_multidoc=W,u._3DSpace_file_update=P,u._3DSpace_file_update_csr=q,u._3DSpace_file_url_csr=De,u._3DSpace_get_csrf=F,u._3DSpace_get_docInfo=v,u._3DSpace_get_downloadTicket_multidoc=X,u._3DSpace_get_multiDocInfo=Oe,u._3DSpace_get_securityContexts=R,u._3DSpace_get_ticket=A,u._3DSpace_lifecycle_changeRevision=Pe,u._3DSpace_lifecycle_changeState=ke,u._3DSpace_lifecycle_getGraph=je,u._3DSpace_lifecycle_getNextRevision=ve,u._3DSpace_lifecycle_getNextStates=Ae,u._3DSpace_put_docInfo=$e,u._3DSwym_ForwardIdea=pt,u._3DSwym_addComment=_t,u._3DSwym_buildDirectMessage=st,u._3DSwym_deleteIdea=rt,u._3DSwym_editIdea=dt,u._3DSwym_findCommunityToInstantMSG=ee,u._3DSwym_getAllCommunities=tt,u._3DSwym_getAllListIdeas=ut,u._3DSwym_getAllNews=Ze,u._3DSwym_getFamiliarPeople=et,u._3DSwym_getIdeaStatusMaturity=nt,u._3DSwym_getMembersCommunity=Z,u._3DSwym_getOneIdea=ct,u._3DSwym_get_Token=T,u._3DSwym_get_currentUser=ft,u._3DSwym_get_findUser=mt,u._3DSwym_postIdea=ot,u._3DSwym_postIdeaTemplate=at,u._3DSwym_sendMessageData=M,u._AppMngt_get_info_user=fe,u._AppMngt_get_users=pe,u._Iterop_AddOrRemoveRows=Ct,u._Iterop_Auth_CAS=ht,u._Iterop_GetOneDependencyTable=It,u._Iterop_GetOneList=Ft,u._Iterop_PatchDependencyTable=Nt,u._Iterop_PutDependencyTable=Ut,u._Iterop_businessTableSearchInRows=bt,u._Iterop_createBusinessTable=Dt,u._Iterop_getAllBusinessTables=yt,u._Iterop_getOneBusinessTable=wt,u._Iterop_getOneBusinessTableRows=Tt,u._Iterop_jwtUser=St,u._Iterop_runProcess=$t,u._Iterop_updateBusinessTable=Ot,u._getPlateformInfos=E,u._getPlatformServices=de,u._getServiceUrl=k,u._getServiceUrl_3DPassport=ue,u._getServiceUrl_Iterop=gt,u._httpCallAuthenticated=_,u._setDraggable=oe,u._setDroppable=ce,u._setupTagger=re,u.addTagToDoc=Ye,u.chunkArray=x,u.compass_getListAdditionalApps=le,u.couleurs=G,u.createUserGroups=me,u.dataMixing=z,u.deleteUserGroups=he,u.findAdresse=ne,u.getAllContextSecurity=Je,u.getCSRFToken=K,u.getCommunes=te,u.getComplementUG=_e,u.getDataFrom3DSpace=Ge,u.getDataFromGouvFr=se,u.getDatasByTenant=Ke,u.getDatasFrom3DSpace=qe,u.getDownloadDocument=xe,u.getInfoDocTags=Qe,u.getUserGroupsList=ge,u.getUsersGroupRules=B,u.get_3DSpace_csrf=Be,u.patchUserGroups=Se,u.patchUserGroupsControl=ye,u.pushDataIn3DSpace=Ee,u.readUserGroupControl=we,u.removeTagToDoc=ze,u.sayHello=Rt,u.updateEvent=ae,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
81
81
|
//# sourceMappingURL=wb3Api.umd.cjs.map
|