testaugnitoambientsdk
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "testaugnitoambientsdk", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Use this typescript SDK to integrate Augnito’s Ambient Tech within your EMR. To get access credentials or know more about how Augnito Ambient can benefit you, please visit our website and connect with our sales team: https://augnito.ai/", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -15,1 +15,16 @@ # Augnito Ambient SDK | ||
```js | ||
import AmbientConfig from 'augnitoambientsdk/src/config/AmbientConfig'; | ||
import {AugnitoAmbient} from 'augnitoambientsdk/src/AugnitoAmbient'; | ||
``` | ||
### 2- Create the configuration file and instantiate Augnito Ambient Manager | ||
```js | ||
private ambientConfig: AmbientConfig = { | ||
server: '<your server>', | ||
subscriptionCode: '<your subscriptionCode>', | ||
accessKey: '<your accessKey>', | ||
userTag: '<your usertag>' | ||
}; | ||
``` |
@@ -17,3 +17,3 @@ "use strict"; | ||
this._config = _config; | ||
this._baseUrl = `https://${_config.server}/ambient/app`; | ||
this._baseUrl = `https://${_config.server}/ambient`; | ||
} | ||
@@ -20,0 +20,0 @@ getURL(path) { |
@@ -7,3 +7,3 @@ import AmbientConfig from "../config/AmbientConfig"; | ||
constructor(private _config:AmbientConfig) { | ||
this._baseUrl = `https://${_config.server}/ambient/app`; | ||
this._baseUrl = `https://${_config.server}/ambient`; | ||
} | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ "use strict"; | ||
this._config = _config; | ||
this.wssBaseURL = `wss://${_config.server}/ambient/app/process-job`; | ||
this.wssBaseURL = `wss://${_config.server}/ambient/process-job`; | ||
} | ||
@@ -10,0 +10,0 @@ prepareWSSURL(_filetype, _noteparams) { |
@@ -11,3 +11,3 @@ import AmbientConfig from "./AmbientConfig"; | ||
constructor(private _config:AmbientConfig){ | ||
this.wssBaseURL = `wss://${_config.server}/ambient/app/process-job`; | ||
this.wssBaseURL = `wss://${_config.server}/ambient/process-job`; | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -157,5 +157,11 @@ "use strict"; | ||
let res = JSON.parse(e.data); | ||
if ("Type" in res && res.Type === "meta") { | ||
this.onMetaEvent(res.JobID); | ||
this.streamBlobChunks(_blob, this._webSocket); | ||
if ("Type" in res) { | ||
if (res.Type === "meta") { | ||
this.onMetaEvent(res.JobID); | ||
this.streamBlobChunks(_blob, this._webSocket); | ||
} | ||
else if (res.Type === "Error" || res.Type === "error") { | ||
this.onError(res.Data); | ||
this._webSocket && this._webSocket.close(); | ||
} | ||
} | ||
@@ -162,0 +168,0 @@ } |
@@ -132,5 +132,11 @@ import { socketConfig } from '../config/socketConfig.js'; | ||
let res: any = JSON.parse(e.data); | ||
if ("Type" in res && res.Type === "meta") { | ||
this.onMetaEvent(res.JobID); | ||
this.streamBlobChunks(_blob, this._webSocket); | ||
if ("Type" in res){ | ||
if(res.Type === "meta") { | ||
this.onMetaEvent(res.JobID); | ||
this.streamBlobChunks(_blob, this._webSocket); | ||
} | ||
else if(res.Type === "Error" || res.Type === "error"){ | ||
this.onError(res.Data); | ||
this._webSocket && this._webSocket.close(); | ||
} | ||
} | ||
@@ -137,0 +143,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61228
1379
29