generio-sdk 1.0.26 → 1.0.27
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=`https://localhost:7052`;async function t(t){e+``;let n=await fetch(`https://localhost:7052/api/generioApp/recognizeExaminationByUserContext`,{method:`POST`,credentials:`include`,body:JSON.stringify(t),headers:{"Content-Type":`application/json`}});return n.ok?n.json():{isSuccess:!1}}async function n(e,t){return{}}async function r(e,t){return{}}async function i(e,t){return{}}async function a(e){return{}}async function o(t){return(await fetch(e+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).ok?{isSuccess:!0}:{isSuccess:!1}}async function s(){return(await fetch(e+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}})).ok?{isSuccess:!0}:{isSuccess:!1}}async function c(){return!!(await fetch(e+`/api/cookiesAuth/isAuthorized`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}})).ok}function l(t){window.addEventListener(`message`,n=>{e==n.origin&&(console.info(`PostMessageListener: Received message from origin: ${n.origin}`,n.data),n.data.action==`generioReady`&&t&&t(n.data.payload))},!1)}export{e as GENERIO_ORIGIN,a as getExaminationMessage,i as getExtParamValueByStudyInstanceUId,c as isAuthorized,o as login,s as logout,t as recognizeExamination,r as sendMeasurements,n as setExtParams,l as setupPostMessageListener};
|
|
1
|
+
const e=`https://localhost:7052`;async function t(t){e+``;let n=await fetch(`https://localhost:7052/api/generioApp/recognizeExaminationByUserContext`,{method:`POST`,credentials:`include`,body:JSON.stringify(t),headers:{"Content-Type":`application/json`}});return n.ok?n.json():{isSuccess:!1}}async function n(e,t){return{}}async function r(e,t){return{}}async function i(e,t){return{}}async function a(e){return{}}async function o(t){return(await fetch(e+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).ok?{isSuccess:!0}:{isSuccess:!1}}async function s(){return(await fetch(e+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}})).ok?{isSuccess:!0}:{isSuccess:!1}}async function c(){try{return!!(await fetch(e+`/api/cookiesAuth/isAuthorized`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}})).ok}catch{return!1}}function l(t){window.addEventListener(`message`,n=>{e==n.origin&&(console.info(`PostMessageListener: Received message from origin: ${n.origin}`,n.data),n.data.action==`generioReady`&&t&&t(n.data.payload))},!1)}export{e as GENERIO_ORIGIN,a as getExaminationMessage,i as getExtParamValueByStudyInstanceUId,c as isAuthorized,o as login,s as logout,t as recognizeExamination,r as sendMeasurements,n as setExtParams,l as setupPostMessageListener};
|