generio-sdk 1.0.21 → 1.0.23
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +43 -43
package/dist/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ type HandlerType = (event: {
|
|
|
87
87
|
origin: string;
|
|
88
88
|
data: any;
|
|
89
89
|
}) => Promise<void>;
|
|
90
|
-
declare const GENERIO_ORIGIN = "https://
|
|
90
|
+
declare const GENERIO_ORIGIN = "https://localhost:7052";
|
|
91
91
|
declare function recognizeExamination(model: RecognizeExaminationInputModel): Promise<RecognizeExaminationOutputModel>;
|
|
92
92
|
declare function setExtParams(model: SetExtParamsInputModel, win: Window): Promise<SetExtParamsOutputModel>;
|
|
93
93
|
declare function sendMeasurements(model: SendMeasurementsInputModel, win: Window): Promise<SendMeasurementsOutputModel>;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"post-robot";const t=`https://
|
|
1
|
+
import*as e from"post-robot";const t=`https://localhost:7052`;async function n(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 r(n,r){let{data:i}=await e.send(r,`setExtParams`,n,{domain:t});return i}async function i(n,r){let{data:i}=await e.send(r,`sendMeasurements`,n,{domain:t});return i}async function a(n,r){let{data:i}=await e.send(r,`getExtParamValueByStudyInstanceUId`,n,{domain:t});return i}async function o(n){let{data:r}=await e.send(n,`getExaminationMessage`,void 0,{domain:t});return r}async function s(e){return(await fetch(t+`/api/cookiesAuth/login`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok?(localStorage.setItem(`generio_logged_in_email`,e.email),{isSuccess:!0}):{isSuccess:!1}}async function c(){return(await fetch(t+`/api/cookiesAuth/logout`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`}})).ok?(localStorage.removeItem(`generio_logged_in_email`),{isSuccess:!0}):{isSuccess:!1}}function l(){return localStorage.getItem(`generio_logged_in_email`)}function u(n){e.on(`generioReady`,{domain:t},e=>n(e))}const d=async({source:e,origin:t,data:n})=>{console.log(`Generio is ready:`,t,n),await r({keyValues:[{key:`mr_protocol`,value:`mr_protocol test`}]},e)};export{t as GENERIO_ORIGIN,d as generioReadyHandler,o as getExaminationMessage,a as getExtParamValueByStudyInstanceUId,l as getLoggedInEmail,s as login,c as logout,n as recognizeExamination,i as sendMeasurements,r as setExtParams,u as setupGenerioReadyListener};
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "generio-sdk",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "SDK library for generio integration",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"generio",
|
|
9
|
-
"sdk",
|
|
10
|
-
"models",
|
|
11
|
-
"post-robot"
|
|
12
|
-
],
|
|
13
|
-
"homepage": "https://gener.io",
|
|
14
|
-
"author": "Štefan Varga <stefan.varga@gener.io>",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"main": "./dist/index.js",
|
|
19
|
-
"module": "./dist/index.js",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"exports": {
|
|
22
|
-
".": "./dist/index.js",
|
|
23
|
-
"./package.json": "./package.json"
|
|
24
|
-
},
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "tsdown",
|
|
27
|
-
"dev": "tsdown --watch",
|
|
28
|
-
"test": "vitest",
|
|
29
|
-
"typecheck": "tsc --noEmit",
|
|
30
|
-
"pub": "npm run build && npm version patch && npm publish --access public"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@types/node": "^24.9.1",
|
|
34
|
-
"@types/post-robot": "^10.0.6",
|
|
35
|
-
"bumpp": "^10.3.1",
|
|
36
|
-
"tsdown": "^0.15.11",
|
|
37
|
-
"typescript": "^5.9.3",
|
|
38
|
-
"vitest": "^4.0.4"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"post-robot": "^8.0.32"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "generio-sdk",
|
|
3
|
+
"version": "1.0.23",
|
|
4
|
+
"description": "SDK library for generio integration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"generio",
|
|
9
|
+
"sdk",
|
|
10
|
+
"models",
|
|
11
|
+
"post-robot"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://gener.io",
|
|
14
|
+
"author": "Štefan Varga <stefan.varga@gener.io>",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"module": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./dist/index.js",
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsdown",
|
|
27
|
+
"dev": "tsdown --watch",
|
|
28
|
+
"test": "vitest",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"pub": "npm run build && npm version patch && npm publish --access public"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/node": "^24.9.1",
|
|
34
|
+
"@types/post-robot": "^10.0.6",
|
|
35
|
+
"bumpp": "^10.3.1",
|
|
36
|
+
"tsdown": "^0.15.11",
|
|
37
|
+
"typescript": "^5.9.3",
|
|
38
|
+
"vitest": "^4.0.4"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"post-robot": "^8.0.32"
|
|
42
|
+
}
|
|
43
|
+
}
|