generio-sdk 1.0.34 → 1.0.35
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.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -216,6 +216,6 @@ declare function getExaminationMessage(win: Window): Promise<GetExaminationMessa
|
|
|
216
216
|
declare function login(model: LoginInputModel): Promise<LoginOutputModel>;
|
|
217
217
|
declare function logout(): Promise<LogoutOutputModel>;
|
|
218
218
|
declare function setupPostMessageListener(generioReadyHandler?: (payload: GenerioReadyOutputModel) => void): void;
|
|
219
|
-
declare function
|
|
219
|
+
declare function loadExamination(examinationId: number, studyInstanceUId: string): Promise<OriginDetail>;
|
|
220
220
|
//#endregion
|
|
221
|
-
export { type AppendDiagnoseFormHandlebarsModel, type Column, type ElementColumn, type ElementRow, type ElementSubRow, type FindingGeneratorFormHandlebarsModel, FormTypeEnum, GENERIO_IS_LOGGED_IN, GENERIO_LOGGED_IN_EMAIL, GENERIO_ORIGIN, GetExaminationMessageOutputModel, GetExtParamValueByStudyInstanceUIdInputModel, GetExtParamValueByStudyInstanceUIdOutputModel, KeyValueModel, LoginInputModel, LoginOutputModel, LogoutOutputModel, MeasurementModel, type OriginDataItem, type OriginDetail, type OriginElementDetail, RecognizeExaminationInputModel, RecognizeExaminationOutputModel, SendMeasurementsInputModel, SendMeasurementsOutputModel, SetExtParamsInputModel, SetExtParamsOutputModel, getExaminationMessage, getExtParamValueByStudyInstanceUId,
|
|
221
|
+
export { type AppendDiagnoseFormHandlebarsModel, type Column, type ElementColumn, type ElementRow, type ElementSubRow, type FindingGeneratorFormHandlebarsModel, FormTypeEnum, GENERIO_IS_LOGGED_IN, GENERIO_LOGGED_IN_EMAIL, GENERIO_ORIGIN, GetExaminationMessageOutputModel, GetExtParamValueByStudyInstanceUIdInputModel, GetExtParamValueByStudyInstanceUIdOutputModel, KeyValueModel, LoginInputModel, LoginOutputModel, LogoutOutputModel, MeasurementModel, type OriginDataItem, type OriginDetail, type OriginElementDetail, RecognizeExaminationInputModel, RecognizeExaminationOutputModel, SendMeasurementsInputModel, SendMeasurementsOutputModel, SetExtParamsInputModel, SetExtParamsOutputModel, getExaminationMessage, getExtParamValueByStudyInstanceUId, loadExamination, login, logout, recognizeExamination, sendMeasurements, setExtParams, setupPostMessageListener };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=function(e){return e[e.NewLine=0]=`NewLine`,e[e.Text=1]=`Text`,e[e.BoldText=2]=`BoldText`,e[e.CheckBox=3]=`CheckBox`,e[e.DropDownList=4]=`DropDownList`,e[e.InputText=5]=`InputText`,e[e.ConditionAndOr=6]=`ConditionAndOr`,e[e.Function=7]=`Function`,e[e.Condition=8]=`Condition`,e[e.Button=9]=`Button`,e[e.Append=10]=`Append`,e[e.DigitBox=11]=`DigitBox`,e[e.Merge=12]=`Merge`,e[e.Listing=13]=`Listing`,e[e.Bilateral=14]=`Bilateral`,e[e.Matrix=15]=`Matrix`,e[e.RememberedText=17]=`RememberedText`,e[e.InputTable=18]=`InputTable`,e[e.AppendDiagnose=19]=`AppendDiagnose`,e[e.MoveByExtParams=20]=`MoveByExtParams`,e}({});const t=`https://localhost:7052`,n=`generio-is-logged-in`,r=`generio-logged-in-email`;async function i(e){t+``;let n=await fetch(`https://localhost:7052/api/generioApp/recognizeExaminationByUserContext`,{method:`POST`,credentials:`include`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}});return n.ok?n.json():{isSuccess:!1}}async function a(e,t){return{}}async function o(e,t){return{}}async function s(e,t){return{}}async function c(e){return{}}async function l(e){return(await fetch(t+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok?{isSuccess:!0}:{isSuccess:!1}}async function u(){let e=await fetch(t+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}});return e.ok||e.status===401||e.status===403?{isSuccess:!0}:{isSuccess:!1}}function d(e){window.addEventListener(`message`,n=>{t==n.origin&&(console.info(`PostMessageListener: Received message from origin: ${n.origin}`,n.data),n.data.action==`generioReady`&&e&&e(n.data.payload))},!1)}async function f(e,n){let r=await fetch(t+`/api/GenerioApp/LoadExamination`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({examinationId:e,studyInstanceUId:n})});if(!r.ok)throw Error(`Failed to load examination data`);return await r.json()}export{e as FormTypeEnum,n as GENERIO_IS_LOGGED_IN,r as GENERIO_LOGGED_IN_EMAIL,t as GENERIO_ORIGIN,c as getExaminationMessage,s as getExtParamValueByStudyInstanceUId,f as
|
|
1
|
+
let e=function(e){return e[e.NewLine=0]=`NewLine`,e[e.Text=1]=`Text`,e[e.BoldText=2]=`BoldText`,e[e.CheckBox=3]=`CheckBox`,e[e.DropDownList=4]=`DropDownList`,e[e.InputText=5]=`InputText`,e[e.ConditionAndOr=6]=`ConditionAndOr`,e[e.Function=7]=`Function`,e[e.Condition=8]=`Condition`,e[e.Button=9]=`Button`,e[e.Append=10]=`Append`,e[e.DigitBox=11]=`DigitBox`,e[e.Merge=12]=`Merge`,e[e.Listing=13]=`Listing`,e[e.Bilateral=14]=`Bilateral`,e[e.Matrix=15]=`Matrix`,e[e.RememberedText=17]=`RememberedText`,e[e.InputTable=18]=`InputTable`,e[e.AppendDiagnose=19]=`AppendDiagnose`,e[e.MoveByExtParams=20]=`MoveByExtParams`,e}({});const t=`https://localhost:7052`,n=`generio-is-logged-in`,r=`generio-logged-in-email`;async function i(e){t+``;let n=await fetch(`https://localhost:7052/api/generioApp/recognizeExaminationByUserContext`,{method:`POST`,credentials:`include`,body:JSON.stringify(e),headers:{"Content-Type":`application/json`}});return n.ok?n.json():{isSuccess:!1}}async function a(e,t){return{}}async function o(e,t){return{}}async function s(e,t){return{}}async function c(e){return{}}async function l(e){return(await fetch(t+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok?{isSuccess:!0}:{isSuccess:!1}}async function u(){let e=await fetch(t+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}});return e.ok||e.status===401||e.status===403?{isSuccess:!0}:{isSuccess:!1}}function d(e){window.addEventListener(`message`,n=>{t==n.origin&&(console.info(`PostMessageListener: Received message from origin: ${n.origin}`,n.data),n.data.action==`generioReady`&&e&&e(n.data.payload))},!1)}async function f(e,n){let r=await fetch(t+`/api/GenerioApp/LoadExamination`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({examinationId:e,studyInstanceUId:n})});if(!r.ok)throw Error(`Failed to load examination data`);return await r.json()}export{e as FormTypeEnum,n as GENERIO_IS_LOGGED_IN,r as GENERIO_LOGGED_IN_EMAIL,t as GENERIO_ORIGIN,c as getExaminationMessage,s as getExtParamValueByStudyInstanceUId,f as loadExamination,l as login,u as logout,i as recognizeExamination,o as sendMeasurements,a as setExtParams,d as setupPostMessageListener};
|